.tool-workspace.tool-resizable-workspace:not(.tool-stacked) .tool-result {
  min-height: 140px;
}
.tool-container {
  max-width: 1200px;
  padding: 0 24px;
}
.page-hero {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.page-hero .container {
  max-width: 1200px;
}
.page-hero .eyebrow {
  display: none !important;
}
.page-hero h1 {
  display: none !important;
}
.page-hero .hero-copy {
  display: none !important;
}
.tool-info-section {
  padding: 28px 0 12px;
}
.tool-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.tool-info-card {
  min-height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(241, 247, 244, 0.96)
  );
  box-shadow: var(--shadow);
}
.tool-info-card .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-info-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font:
    700 1.12rem/1.3 "Space Grotesk",
    sans-serif;
}
.tool-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}
.tool-info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}
.tool-info-list li + li {
  margin-top: 6px;
}
.faq-section {
  padding: 52px 0 64px;
  background: var(--paper);
}
.faq-section .section-heading {
  max-width: 860px;
  margin: 0 auto 18px;
  align-items: flex-start;
}
.faq-section .section-heading .eyebrow,
.faq-section .section-heading p {
  display: none !important;
}
.faq-section .section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.75rem;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border: 0;
}
.faq-item {
  margin-bottom: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font:
    600 1.05rem/1.35 "Space Grotesk",
    sans-serif;
  text-align: left;
}
.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand);
  font:
    400 1.5rem/1 "DM Sans",
    sans-serif;
}
.faq-question[aria-expanded="true"]::after {
  content: "\2212";
}
.faq-question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.faq-section .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  margin: 0;
  opacity: 1;
  overflow: hidden;
  transform: none;
  transition: grid-template-rows 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-section .faq-answer-content {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.2s ease;
}
.faq-section .faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
}
.faq-section .faq-item[data-open="true"] .faq-answer-content {
  padding-bottom: 18px;
  opacity: 1;
  transform: translateY(0);
}
.tool-tags {
  display: none !important;
}
.meta-tag {
  display: inline-flex;
  border: 1px solid rgba(35, 87, 217, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark, #19483e);
  font-size: 0.72rem;
  font-weight: 700;
}
.tool-workspace {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(320px, auto);
  gap: 14px 18px;
  align-items: stretch;
  margin: 0 0 56px;
  padding: 0 16px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tool-container {
  margin-top: 0;
  padding-top: 0;
}
.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-header .tool-header-brand-name {
  /* font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #101828; */
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.2rem;
    font-weight: bolder;
    color: blue;
}
.site-header .brand-logo {
  /* width: 26px;
  height: 26px; */
  display: block;
    height: 51px;
    width: 70px;
}
.tool-workspace-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #354541;
  border-radius: 11px;
  background: #202b29;
}
.tool-workspace-toolbar .button {
  min-height: 34px;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1;
}
html[data-tool]:not([data-tool="markdown-preview"])
  .tool-workspace-toolbar
  .tool-actions
  .button {
  min-height: 34px;
}
.tool-toolbar-utilities {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.tool-toolbar-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.46rem 0.72rem;
  color: #bfe8d5;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.46rem 0.72rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:focus-visible {
  outline: 3px solid rgba(35, 87, 217, 0.2);
  outline-offset: 2px;
}
.button-primary {
  background: linear-gradient(135deg, #1b725d 0%, #0f5e72 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(19, 92, 84, 0.12);
}
.button-soft {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(35, 87, 217, 0.16);
  color: var(--brand-dark);
}
.button-soft:hover {
  background: #edf4ff;
  border-color: rgba(35, 87, 217, 0.2);
}
.button-icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.button-label {
  display: inline-block;
  white-space: nowrap;
}
.button-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.tool-form {
  max-width: none;
  display: contents;
}
#tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-content: start;
  gap: 13px 14px;
  padding: 20px;
  background: #f2f8f5;
  border: 1px solid #d9e7e0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 440px;
}
.field-wide,
#tool-controls > .option-row,
#tool-controls > .color-input-row,
#tool-controls > .color-swatches {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 8px;
}
.field-grid {
  display: grid;
  gap: 12px;
}
.field-grid-dimensions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
}
.tool-workspace:not(.markdown-workspace) #tool-controls.has-textarea {
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
}
#tool-controls.has-textarea .field-textarea {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
#tool-controls.has-textarea .field-textarea textarea {
  height: 100%;
  min-height: 0;
  resize: vertical;
}
html[data-tool="base64-encoder"] #tool-controls.has-textarea {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.tool-result {
  min-height: 440px;
}
.tool-workspace:not(.markdown-workspace) #tool-controls {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 440px;
}
.tool-workspace:not(.markdown-workspace) .tool-result {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 440px;
  height: 100%;
}
.field label {
  font-weight: 700;
  font-size: 0.86rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea {
  min-height: 180px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(27, 114, 93, 0.15);
  border-color: var(--brand);
}
.field input[type="range"] {
  min-height: 24px;
  padding: 0;
  accent-color: var(--brand);
}
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.option-row label {
  flex: 0 0 auto;
  white-space: nowrap;
}
.option-row input {
  accent-color: var(--brand);
}
.image-resizer-options {
  gap: 6px 12px;
}
.image-resizer-options label {
  font-size: 0.82rem;
  white-space: normal;
}
.tool-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
html[data-tool] .button-soft {
  border: 1px solid rgba(35, 87, 217, 0.18);
  background: var(--sky);
  color: var(--brand-dark);
}
html[data-tool] .button-soft:hover {
  background: #d8e6ff;
  color: #12358e;
}
html[data-tool] .button:disabled {
  cursor: wait;
  opacity: 0.82;
}
.loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: tool-spin 0.7s linear infinite;
}
.loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--brand-dark);
  font-weight: 700;
}
@keyframes tool-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation-duration: 1.8s;
  }
}
html[data-tool]:not([data-tool="markdown-preview"]) .tool-actions .button {
  min-height: 38px;
  border-radius: 10px;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
html[data-tool]:not([data-tool="markdown-preview"])
  .tool-actions
  .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(24, 34, 48, 0.12);
}
.tool-workspace:not(.markdown-workspace) #tool-controls {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 100%;
}
.tool-workspace:not(.markdown-workspace) .tool-result {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 320px;
  height: 100%;
}
.tool-resizable-workspace:not(.tool-stacked) {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
}
.tool-resizable-workspace:not(.tool-stacked) {
  grid-template-columns: minmax(0, var(--tool-panel-first, 1fr)) 12px minmax(
      0,
      var(--tool-panel-second, 1fr)
    );
}
.tool-resizable-workspace:not(.tool-stacked) #tool-controls {
  grid-column: 1;
  grid-row: 2;
}
.tool-resizable-workspace:not(.tool-stacked) .tool-panel-divider {
  grid-column: 2;
  grid-row: 2;
}
.tool-resizable-workspace:not(.tool-stacked) .tool-result {
  grid-column: 3;
  grid-row: 2;
}
.tool-resizable-workspace.tool-stacked {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(260px, auto) 12px minmax(260px, auto);
}
.tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace) {
  grid-template-rows: auto minmax(
      260px,
      var(--tool-panel-first, 1fr)
    ) 12px minmax(260px, var(--tool-panel-second, 1fr));
}
.tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace) {
  height: max(720px, calc(100dvh - 260px));
  grid-template-rows: auto minmax(0, var(--tool-panel-first, 1fr)) 12px minmax(
      0,
      var(--tool-panel-second, 1fr)
    );
}
.tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace)
  #tool-controls,
.tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace)
  .tool-result {
  min-height: 0;
  overflow: auto;
}
.tool-resizable-workspace.tool-stacked #tool-controls {
  grid-column: 1;
  grid-row: 2;
}
.tool-resizable-workspace.tool-stacked .tool-panel-divider {
  grid-column: 1;
  grid-row: 3;
  cursor: row-resize;
}
.tool-resizable-workspace.tool-stacked .tool-result {
  grid-column: 1;
  grid-row: 4;
}
.tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace)
  .tool-result {
  grid-column: 1;
  grid-row: 4;
}
.tool-resizable-workspace .tool-panel-divider {
  z-index: 2;
}
.tool-resizable-workspace.tool-stacked .tool-panel-divider::after {
  top: 5px;
  right: 0;
  bottom: auto;
  left: 0;
  width: auto;
  height: 2px;
}
.tool-resizable-workspace.tool-stacked .tool-panel-divider:hover::after,
.tool-resizable-workspace.tool-stacked
  .tool-panel-divider:focus-visible::after {
  top: 3px;
  right: 0;
  left: 0;
  width: auto;
  height: 6px;
}
html[data-tool="word-counter"] #tool-controls {
  grid-template-rows: minmax(0, 1fr);
  min-height: 320px;
}
html[data-tool="word-counter"] #tool-controls .field {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
html[data-tool="word-counter"] #tool-controls textarea {
  height: 100%;
  min-height: 0;
  resize: vertical;
}
.tool-workspace.tool-stacked:not(.markdown-workspace) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(260px, auto) minmax(260px, auto);
}
.tool-workspace.tool-stacked:not(.markdown-workspace) #tool-controls {
  grid-column: 1;
  grid-row: 2;
}
.tool-workspace.tool-stacked:not(.markdown-workspace) .tool-result {
  grid-column: 1;
  grid-row: 3;
  min-height: 260px;
}
.tool-result {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 320px;
  height: 100%;
  padding: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #f2f8f5;
  border: 1px solid #d9e7e0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  line-height: 1.6;
}
.tool-result:empty::before {
  content: "Your result will appear here.";
  color: var(--muted);
}
.tool-result.is-error {
  border-color: #cf7156;
  background: #fff6f1;
  color: #813d2c;
}
.tool-result.is-text-result {
  display: block;
  padding: 0;
  overflow: hidden;
  white-space: normal;
  background: linear-gradient(145deg, #fff, #f6faf8);
}
.result-shell {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}
.result-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.result-header h2 {
  margin: 0;
  color: var(--ink);
  font:
    600 1.08rem/1.25 "Space Grotesk",
    sans-serif;
}
.result-count {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.result-body {
  min-width: 0;
  padding: 16px;
}
.result-value {
  max-height: min(58vh, 560px);
  min-height: 124px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid #e5eaf4;
  border-radius: 12px;
  background: #f7f9fd;
  color: var(--ink);
  font:
    500 0.94rem/1.65 "DM Sans",
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.result-value.result-code {
  background: #f2f5fa;
  color: #23354d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
}
.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.result-metric {
  min-width: 0;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f9fd;
}
.result-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result-metric strong {
  display: block;
  color: var(--ink);
  font:
    600 1rem/1.4 "Space Grotesk",
    sans-serif;
  overflow-wrap: anywhere;
}
.result-metric-highlight {
  border-color: rgba(35, 87, 217, 0.22);
  background: linear-gradient(135deg, #edf2ff, #f8faff);
}
.result-metric-highlight strong {
  color: var(--brand-dark);
  font-size: 1.15rem;
}
.tool-result.is-error .result-shell {
  display: block;
}
.tool-result.is-error .result-header {
  border-color: rgba(207, 113, 86, 0.25);
  background: #fff0e9;
}
.tool-result.is-error .result-kicker {
  color: #a84d36;
}
.tool-result.is-preview {
  white-space: normal;
}
.tool-result.is-preview h1,
.tool-result.is-preview h2,
.tool-result.is-preview h3 {
  margin: 0 0 12px;
}
.tool-result.is-preview p {
  margin: 0 0 12px;
}
.tool-result.is-preview ul {
  padding-left: 22px;
}
.tool-result.is-preview blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
}
.tool-result.is-preview pre {
  overflow: auto;
  padding: 14px;
  background: #eef3f1;
  border-radius: 10px;
}
.tool-result.is-preview code {
  font-family: Consolas, monospace;
}
.tool-result.is-preview .qr-image,
.tool-result.is-preview .resized-preview {
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.tool-result.is-preview .button {
  display: inline-flex;
  margin: 8px 0;
}
.base64-file-result {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.base64-file-result h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}
.base64-file-result p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.base64-media-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(52vh, 480px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  object-fit: contain;
}
.base64-audio-preview {
  display: block;
  width: min(100%, 480px);
}
.qr-result {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.qr-result {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.qr-result .qr-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0;
  image-rendering: pixelated;
}
.qr-actions {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}
.qr-actions {
  display: flex;
  width: 100%;
  justify-content: center;
}
.qr-actions .qr-download {
  min-height: 50px;
}
.qr-result .privacy-note {
  max-width: 680px;
  margin: 4px 0 0;
}
.markdown-editor-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.markdown-editor-heading label:first-child {
  font-weight: 700;
  font-size: 0.92rem;
}
.markdown-upload-button {
  min-height: 38px;
  padding: 9px 12px;
  cursor: pointer;
}
.markdown-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.markdown-file-input:focus-visible + textarea {
  outline: 3px solid rgba(35, 87, 217, 0.25);
}
.markdown-editor-field:focus-within textarea {
  outline: 3px solid rgba(35, 87, 217, 0.18);
}
.markdown-editor-field {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.markdown-editor-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.markdown-editor-field textarea {
  min-height: 0;
}
.markdown-drop-hint {
  color: var(--muted);
  font-size: 0.8rem;
}
.markdown-editor-field.is-drag-over textarea {
  outline: 3px dashed var(--brand);
  outline-offset: 3px;
  background: #f4f7ff;
}
.privacy-note {
  color: var(--muted);
  font-size: 0.82rem;
}
.contrast-preview {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1b725d;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}
.color-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.color-swatch {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--swatch);
  color: #162522;
}
.color-swatch span {
  display: block;
  padding: 30px 3px 8px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.88));
  font-size: 0.7rem;
}
.tool-result[data-copy-state="Copied"]::after {
  content: "Copied";
  display: block;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}
.tool-result[data-byte-size]:not([data-byte-size=""])::after {
  content: "Output size: " attr(data-byte-size) " bytes";
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.field input[type="color"] {
  width: 100%;
  min-height: 54px;
  padding: 5px;
  cursor: pointer;
}
.color-input-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.color-input-row .field:first-child input[type="color"] {
  min-height: 48px;
}
.word-result {
  display: grid;
  gap: 20px;
}
.word-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.word-result-heading h2 {
  margin: 0;
  font-size: 1.22rem;
}
.word-result-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}
.word-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.word-stat {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.word-stat span,
.contrast-ratio span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}
.word-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font:
    600 1.65rem/1.1 "Space Grotesk",
    sans-serif;
}
.word-stat-primary {
  grid-column: 1 / -1;
  border-color: rgba(35, 87, 217, 0.24);
  background: linear-gradient(135deg, #eaf0ff, #f7f9ff);
}
.word-stat-primary strong {
  color: var(--brand);
  font-size: 2.25rem;
}
.word-terms {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--rose);
  border-radius: 0 10px 10px 0;
}
.word-terms h3 {
  margin: 0 0 5px;
  font-size: 0.92rem;
}
.word-terms p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contrast-results {
  display: grid;
  gap: 16px;
}
.contrast-ratio {
  padding: 18px;
  border-radius: 12px;
  background: var(--sky);
}
.contrast-ratio strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-dark);
  font:
    700 2.1rem/1.1 "Space Grotesk",
    sans-serif;
}
.contrast-checks {
  display: grid;
  gap: 8px;
}
.contrast-checks p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.contrast-checks strong {
  color: var(--brand-dark);
}
.image-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.image-original-only {
  grid-template-columns: minmax(0, 1fr);
}
.image-detail {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.image-detail h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.image-detail p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.image-detail .resized-preview {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--paper);
}
.markdown-full-preview {
  grid-template-columns: minmax(0, 1fr);
}
.markdown-full-preview #tool-controls {
  display: none;
}
.markdown-full-preview .tool-result {
  grid-column: 1;
  grid-row: 3;
  min-height: min(72vh, 760px);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
  font-size: 1.08rem;
}
.markdown-full-preview .tool-actions {
  justify-content: center;
}
.tool-fullscreen .page-hero,
.tool-fullscreen .faq-section {
  display: none !important;
}
.tool-fullscreen .site-header,
.tool-fullscreen .site-footer {
  display: none !important;
}
.tool-fullscreen main {
  padding: 0 !important;
}
.tool-fullscreen .tool-container {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: 18px clamp(12px, 3vw, 36px);
  overflow: auto;
  background: var(--paper);
}
.tool-fullscreen .tool-workspace {
  min-height: 100%;
  margin: 0 auto;
  padding: 12px 0;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
}
.tool-fullscreen .tool-workspace-toolbar {
  grid-row: 1;
  position: relative;
  top: auto;
  z-index: 2;
  min-height: 54px;
  margin-bottom: 4px;
  padding: 6px 0;
  background: var(--paper);
}
.tool-fullscreen
  .tool-workspace:not(.markdown-workspace):not(.tool-stacked)
  #tool-controls,
.tool-fullscreen
  .tool-workspace:not(.markdown-workspace):not(.tool-stacked)
  .tool-result {
  grid-row: 2;
  min-height: 0;
}
.tool-fullscreen .tool-workspace.tool-stacked:not(.markdown-workspace) {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
}
.tool-fullscreen
  .tool-workspace.tool-stacked:not(.markdown-workspace)
  #tool-controls {
  grid-row: 2;
}
.tool-fullscreen
  .tool-workspace.tool-stacked:not(.markdown-workspace)
  .tool-result {
  grid-row: 3;
  min-height: 0;
}
.tool-fullscreen .tool-resizable-workspace.tool-stacked {
  grid-template-rows: auto minmax(0, 1fr) 12px minmax(0, 1fr);
}
.tool-fullscreen
  .tool-workspace.tool-resizable-workspace.tool-stacked:not(
    .markdown-workspace
  ) {
  grid-template-rows: auto minmax(0, var(--tool-panel-first, 1fr)) 12px minmax(
      0,
      var(--tool-panel-second, 1fr)
    );
}
.tool-fullscreen .tool-resizable-workspace.tool-stacked .tool-result {
  grid-row: 4;
}
.tool-fullscreen
  .tool-workspace.tool-resizable-workspace.tool-stacked:not(.markdown-workspace)
  .tool-result {
  grid-row: 4;
}
.tool-fullscreen .tool-result {
  max-height: calc(100dvh - 230px);
  overflow: auto;
}
.tool-fullscreen .markdown-workspace #tool-actions {
  top: 0;
}
.markdown-workspace {
  --markdown-split: 50%;
  grid-template-columns: minmax(0, var(--markdown-split)) 12px minmax(0, 1fr);
  grid-template-rows: auto auto clamp(360px, 66vh, 760px);
  gap: 14px 8px;
  align-items: stretch;
}
.markdown-workspace .tool-workspace-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 44px;
}
.markdown-workspace #tool-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 48px;
  padding: 0 0 4px;
  background: var(--paper);
}
.markdown-workspace #tool-controls {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.markdown-workspace #tool-controls .field {
  min-height: 0;
  height: 100%;
}
.markdown-workspace #tool-controls textarea {
  min-height: 0;
  height: 100%;
  resize: none;
}
.markdown-workspace .tool-result {
  grid-column: 3;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}
.markdown-divider {
  grid-column: 2;
  grid-row: 3;
  align-self: stretch;
  position: relative;
  border-radius: 8px;
  cursor: col-resize;
  touch-action: none;
}
.markdown-divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  transition:
    background 0.15s,
    width 0.15s,
    left 0.15s;
}
.markdown-divider:hover::after,
.markdown-divider:focus-visible::after {
  left: 3px;
  width: 6px;
  background: var(--brand);
}
.markdown-divider:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.markdown-resizing {
  cursor: col-resize;
  user-select: none;
}
.markdown-workspace.markdown-full-preview {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto clamp(360px, 66vh, 760px);
}
.markdown-workspace.markdown-full-preview #tool-controls,
.markdown-workspace.markdown-full-preview .markdown-divider {
  display: none;
}
.markdown-workspace.markdown-full-preview .tool-result {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
  font-size: 1.08rem;
}
.markdown-standalone-preview {
  overflow: hidden;
}
.markdown-standalone-preview .site-header,
.markdown-standalone-preview .page-hero,
.markdown-standalone-preview .faq-section,
.markdown-standalone-preview .site-footer {
  display: none !important;
}
.markdown-standalone-preview main,
.markdown-standalone-preview .tool-container {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.markdown-standalone-preview .markdown-workspace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(12px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  background: var(--paper);
}
.markdown-return-bar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}
.markdown-return-bar span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.markdown-standalone-workspace .tool-workspace-toolbar,
.markdown-standalone-workspace #tool-actions,
.markdown-standalone-workspace #tool-controls,
.markdown-standalone-workspace .markdown-divider {
  display: none !important;
}
.markdown-standalone-workspace .tool-result {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: clamp(22px, 5vw, 64px);
  overflow: auto;
  background: var(--surface);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.markdown-workspace {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  grid-template-rows: auto clamp(500px, 78vh, 900px);
  gap: 12px 10px;
  align-items: stretch;
}
.markdown-workspace .tool-workspace-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
}
.markdown-workspace #tool-actions {
  grid-column: auto;
  grid-row: auto;
  position: static;
  min-height: 44px;
  padding: 0;
  background: transparent;
}
.markdown-workspace #tool-controls {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.markdown-workspace #tool-controls .field {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.markdown-workspace #tool-controls textarea {
  height: 100%;
  min-height: 0;
  resize: none;
  overflow: auto;
}
.markdown-workspace .tool-result {
  grid-column: 3;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.markdown-workspace .markdown-divider {
  grid-column: 2;
  grid-row: 2;
  z-index: 2;
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(360px, 1fr) 12px minmax(360px, 1fr);
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview) #tool-controls {
  grid-column: 1;
  grid-row: 2;
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview) .markdown-divider {
  grid-column: 1;
  grid-row: 3;
  cursor: row-resize;
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview) .tool-result {
  grid-column: 1;
  grid-row: 4;
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview)
  .markdown-divider::after {
  top: 5px;
  right: 0;
  bottom: auto;
  left: 0;
  width: auto;
  height: 2px;
}
.markdown-workspace.tool-stacked:not(.markdown-full-preview)
  .markdown-divider:hover::after,
.markdown-workspace.tool-stacked:not(.markdown-full-preview)
  .markdown-divider:focus-visible::after {
  top: 3px;
  right: 0;
  left: 0;
  width: auto;
  height: 6px;
}
.markdown-workspace.markdown-full-preview {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(500px, 78vh);
}
.markdown-workspace.markdown-full-preview #tool-result {
  grid-column: 1;
  grid-row: 2;
  max-width: 1100px;
  margin-inline: auto;
}
.markdown-standalone-preview main {
  display: block;
}
.markdown-standalone-preview .markdown-workspace.markdown-standalone-workspace {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: clamp(12px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  background: var(--paper);
}
.markdown-standalone-preview .markdown-return-bar {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}
.markdown-standalone-preview .markdown-workspace-toolbar,
.markdown-standalone-preview #tool-actions,
.markdown-standalone-preview #tool-controls,
.markdown-standalone-preview .markdown-divider {
  display: none !important;
}
.markdown-standalone-preview
  .markdown-workspace.markdown-standalone-workspace
  .tool-result {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 5vw, 64px);
  overflow: auto;
  background: var(--surface);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.markdown-resizing,
.markdown-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
.tool-workspace[data-theme="dark"] {
  --ink: #e7efec;
  --muted: #a9bab3;
  --paper: #18211f;
  --surface: #202b29;
  --line: #394943;
  --brand: #79c8a8;
  --brand-dark: #a8e0c8;
  --sky: #293d36;
  --rose: #3a302b;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}
.tool-workspace[data-theme="dark"] #tool-controls,
.tool-workspace[data-theme="dark"] .tool-result:not(.is-error) {
  background: #202b29;
  border-color: #394943;
  color: #e7efec;
}
.tool-workspace[data-theme="dark"] .field label,
.tool-workspace[data-theme="dark"] .markdown-editor-heading label:first-child {
  color: #e7efec;
}
.tool-workspace[data-theme="dark"] .field input,
.tool-workspace[data-theme="dark"] .field select,
.tool-workspace[data-theme="dark"] .field textarea {
  border-color: #465650;
  background: #151e1c;
  color: #edf4f1;
}
.tool-workspace[data-theme="dark"] .field input::placeholder,
.tool-workspace[data-theme="dark"] .field textarea::placeholder {
  color: #9aaca5;
}
.tool-workspace[data-theme="dark"] .tool-result.is-text-result {
  background: linear-gradient(145deg, #202b29, #1b2623);
}
.tool-workspace[data-theme="dark"] .result-header {
  border-color: #394943;
  background: #263532;
}
.tool-workspace[data-theme="dark"] .result-value,
.tool-workspace[data-theme="dark"] .result-metric,
.tool-workspace[data-theme="dark"] .word-stat,
.tool-workspace[data-theme="dark"] .image-detail {
  border-color: #394943;
  background: #18211f;
  color: #e7efec;
}
.tool-workspace[data-theme="dark"] .result-value.result-code {
  background: #151e1c;
  color: #dce8e2;
}
.tool-workspace[data-theme="dark"] .result-metric-highlight,
.tool-workspace[data-theme="dark"] .word-stat-primary {
  border-color: #466d5d;
  background: #263b33;
}
.tool-workspace[data-theme="dark"] .result-count {
  border-color: #465650;
  background: #18211f;
  color: #bdcbc5;
}
.tool-workspace[data-theme="dark"] .tool-result.is-preview pre {
  background: #151e1c;
  color: #e7efec;
}
.tool-workspace[data-theme="dark"] .image-detail .resized-preview {
  background: #151e1c;
}
.tool-workspace[data-theme="dark"] .word-terms {
  background: #3a302b;
}
.tool-workspace[data-theme="dark"] .contrast-ratio {
  background: #293d36;
}
.tool-workspace[data-theme="dark"] .contrast-ratio strong,
.tool-workspace[data-theme="dark"] .contrast-checks strong {
  color: #a8e0c8;
}
.tool-workspace[data-theme="dark"] .contrast-checks p {
  border-color: #394943;
}
.tool-workspace[data-theme="dark"]
  .markdown-editor-field.is-drag-over
  textarea {
  background: #263b33;
}
@media (prefers-reduced-motion: reduce) {
  .faq-section .faq-answer,
  .faq-section .faq-answer-content {
    transition: none;
  }
}
@media (max-width: 760px) {
  .tool-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero {
    padding: 24px 0 16px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-hero .hero-copy {
    font-size: 0.92rem;
  }
  .tool-workspace {
    margin-top: 6px;
    padding: 10px;
  }
  .tool-workspace-toolbar {
    padding: 7px;
    gap: 6px;
  }
  .tool-workspace-toolbar .button {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.84rem;
  }
  .tool-workspace-toolbar .button .button-label,
  .tool-toolbar-utilities .button .button-label {
    display: none !important;
  }
  .tool-workspace-toolbar .button,
  .tool-toolbar-utilities .button {
    justify-content: center;
  }
  .tool-workspace:not(.markdown-workspace) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 8px 0;
  }
  .tool-resizable-workspace:not(.tool-stacked) {
    height: max(700px, calc(100dvh - 230px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(
        0,
        var(--tool-panel-first, 1fr)
      ) 12px minmax(0, var(--tool-panel-second, 1fr));
  }
  .tool-resizable-workspace:not(.tool-stacked) {
    height: max(850px, calc(100dvh - 100px));
    grid-template-rows: auto minmax(
        300px,
        var(--tool-panel-first, 1fr)
      ) 12px minmax(300px, var(--tool-panel-second, 1fr));
  }
  .tool-resizable-workspace:not(.tool-stacked) #tool-controls {
    grid-row: 2;
  }
  .tool-resizable-workspace:not(.tool-stacked) .tool-panel-divider {
    grid-column: 1;
    grid-row: 3;
    cursor: row-resize;
  }
  .tool-resizable-workspace:not(.tool-stacked) #tool-controls,
  .tool-resizable-workspace:not(.tool-stacked) .tool-result {
    min-height: 0;
    overflow: auto;
  }
  .tool-resizable-workspace:not(.tool-stacked) {
    grid-template-rows: auto minmax(
        140px,
        var(--tool-panel-first, 1fr)
      ) 12px minmax(140px, var(--tool-panel-second, 1fr));
  }
  .tool-workspace.tool-resizable-workspace:not(.tool-stacked) #tool-controls,
  .tool-workspace.tool-resizable-workspace:not(.tool-stacked) .tool-result {
    min-height: 300px;
    height: 100%;
  }
  .tool-resizable-workspace:not(.tool-stacked) .tool-result {
    grid-column: 1;
    grid-row: 4;
  }
  .tool-workspace:not(.markdown-workspace) #tool-controls {
    grid-column: 1;
    grid-row: 2;
  }
  .tool-workspace:not(.markdown-workspace) .tool-result {
    grid-column: 1;
    grid-row: 3;
    min-height: 240px;
  }
  .tool-workspace-toolbar {
    grid-column: 1;
  }
  #tool-controls {
    padding: 18px;
  }
  .color-input-row {
    grid-template-columns: 1fr;
  }
  .image-comparison {
    grid-template-columns: 1fr;
  }
  .word-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-header {
    padding: 15px 16px;
  }
  .result-body {
    padding: 12px;
  }
  .result-value {
    max-height: 48vh;
    padding: 13px;
  }
  .result-metrics {
    grid-template-columns: 1fr;
  }
  .tool-fullscreen {
    overflow: hidden;
  }
  .tool-fullscreen .tool-workspace {
    align-content: start;
  }
  .tool-fullscreen .tool-result {
    max-height: none;
  }
  .tool-fullscreen .tool-container {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    padding: 12px 14px;
  }
  .tool-fullscreen .tool-workspace.tool-resizable-workspace {
    height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    grid-template-rows: 56px minmax(0, 1.2fr) 12px minmax(0, 0.8fr) !important;
  }
  .tool-fullscreen .tool-workspace.tool-resizable-workspace #tool-controls {
    grid-column: 1;
    grid-row: 2 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .tool-fullscreen
    .tool-workspace.tool-resizable-workspace
    .tool-panel-divider {
    grid-column: 1;
    grid-row: 3 !important;
  }
  .tool-fullscreen .tool-workspace.tool-resizable-workspace .tool-result {
    grid-column: 1;
    grid-row: 4 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .tool-fullscreen
    .tool-workspace:not(.markdown-workspace):not(.tool-resizable-workspace) {
    height: calc(100dvh - 24px);
    min-height: 0;
    grid-template-rows: 56px minmax(0, 1fr) minmax(0, 1fr);
  }
  .tool-fullscreen
    .tool-workspace:not(.markdown-workspace):not(.tool-resizable-workspace)
    #tool-controls {
    grid-column: 1;
    grid-row: 2 !important;
    min-height: 0;
    height: auto;
  }
  .tool-fullscreen
    .tool-workspace:not(.markdown-workspace):not(.tool-resizable-workspace)
    .tool-result {
    grid-column: 1;
    grid-row: 3 !important;
    min-height: 0;
    height: auto;
  }
  .markdown-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto clamp(360px, 55vh, 640px) 12px clamp(
        360px,
        55vh,
        640px
      );
    gap: 10px;
  }
  .markdown-workspace #tool-controls {
    grid-column: 1;
    grid-row: 2;
  }
  .markdown-workspace .markdown-divider {
    grid-column: 1;
    grid-row: 3;
    cursor: row-resize;
  }
  .markdown-divider::after {
    top: 5px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }
  .markdown-divider:hover::after,
  .markdown-divider:focus-visible::after {
    top: 3px;
    right: 0;
    left: 0;
    width: auto;
    height: 6px;
  }
  .markdown-workspace .tool-result {
    grid-column: 1;
    grid-row: 4;
  }
  .tool-resizable-workspace.tool-stacked .tool-panel-divider::after {
    top: 5px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }
  .tool-resizable-workspace .tool-panel-divider::after {
    top: 5px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }
  .tool-resizable-workspace .tool-panel-divider:hover::after,
  .tool-resizable-workspace .tool-panel-divider:focus-visible::after {
    top: 3px;
    right: 0;
    left: 0;
    width: auto;
    height: 6px;
  }
  .markdown-workspace.markdown-full-preview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .markdown-workspace.markdown-full-preview .tool-result {
    grid-column: 1;
    grid-row: 2;
  }
  .markdown-standalone-preview .markdown-workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .markdown-standalone-workspace .tool-result {
    grid-column: 1;
    grid-row: 2;
  }
  .markdown-resizing {
    cursor: row-resize;
  }
}
body.markdown-standalone-preview
  .markdown-workspace.markdown-standalone-workspace {
  grid-template-rows: auto minmax(0, 1fr) !important;
}
body.markdown-standalone-preview
  .markdown-workspace.markdown-standalone-workspace
  .tool-result {
  grid-row: 2 !important;
}
