:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --panel: #fffdf8;
  --surface: #ffffff;
  --field-bg: #fbfaf6;
  --plot-bg: #fffdf8;
  --ink: #202124;
  --muted: #6f706f;
  --line: #d8d5cc;
  --line-strong: #bbb5a8;
  --accent: #d10000;
  --accent-ink: #8f0000;
  --accent-contrast: #ffffff;
  --orange: #b96522;
  --danger: #9d2d37;
  --brand-bg: transparent;
  --brand-ink: #d10000;
  --drop-hover-bg: #fff1f1;
  --upload-bg: #fff4f4;
  --countdown-bg: #fff5f5;
  --countdown-line: rgba(209, 0, 0, 0.18);
  --workspace-bar-bg: rgba(255, 253, 248, 0.82);
  --plot-grid: #e8e1d4;
  --empty-grid-accent: rgba(209, 0, 0, 0.06);
  --empty-grid-warm: rgba(185, 101, 34, 0.08);
  --empty-badge-bg: rgba(255, 253, 248, 0.92);
  --hover-bg: rgba(255, 253, 248, 0.97);
  --hover-border: rgba(32, 33, 36, 0.18);
  --hover-line: rgba(32, 33, 36, 0.58);
  --hover-shadow: 0 16px 44px rgba(30, 28, 23, 0.18);
  --slot-overlay: rgba(245, 243, 238, 0.76);
  --swatch-border: rgba(0, 0, 0, 0.15);
  --zoom-line: rgba(209, 0, 0, 0.56);
  --zoom-fill: rgba(209, 0, 0, 0.1);
  --shadow: 0 14px 38px rgba(30, 28, 23, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111412;
  --panel: #171b18;
  --surface: #202620;
  --field-bg: #141814;
  --plot-bg: #101410;
  --ink: #eef4ef;
  --muted: #a3aea7;
  --line: #323a34;
  --line-strong: #58645b;
  --accent: #ff3a3a;
  --accent-ink: #ffd6d6;
  --accent-contrast: #1b0505;
  --orange: #f0aa58;
  --danger: #ff7f8d;
  --brand-bg: transparent;
  --brand-ink: #ff3a3a;
  --drop-hover-bg: #2c1717;
  --upload-bg: #301515;
  --countdown-bg: #2a1515;
  --countdown-line: rgba(255, 58, 58, 0.28);
  --workspace-bar-bg: rgba(23, 27, 24, 0.86);
  --plot-grid: #273129;
  --empty-grid-accent: rgba(255, 58, 58, 0.1);
  --empty-grid-warm: rgba(240, 170, 88, 0.1);
  --empty-badge-bg: rgba(23, 27, 24, 0.92);
  --hover-bg: rgba(24, 29, 25, 0.97);
  --hover-border: rgba(238, 244, 239, 0.18);
  --hover-line: rgba(238, 244, 239, 0.58);
  --hover-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --slot-overlay: rgba(17, 20, 18, 0.78);
  --swatch-border: rgba(255, 255, 255, 0.18);
  --zoom-line: rgba(255, 58, 58, 0.72);
  --zoom-fill: rgba(255, 58, 58, 0.14);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-ink);
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  height: 100vh;
  overflow: hidden;
}

.side-panel {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100vh;
  min-height: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand > div:nth-child(2) {
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 10px rgba(20, 16, 16, 0.13));
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.help-button {
  margin-left: auto;
  min-height: 32px;
  padding: 0 11px;
  border-color: rgba(209, 0, 0, 0.32);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

:root[data-theme="dark"] .help-button {
  border-color: rgba(255, 58, 58, 0.38);
}

.theme-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.theme-panel .field-label {
  margin: 0;
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.theme-option {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
}

.theme-option.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
}

.theme-option.is-active:hover,
.theme-option.is-active:focus-visible {
  color: var(--accent-contrast);
}

.theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.file-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  justify-items: start;
  padding: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--field-bg);
  cursor: pointer;
}

.file-drop.drag-over {
  border-color: var(--accent);
  background: var(--drop-hover-bg);
}

.file-drop.disabled {
  cursor: wait;
  opacity: 0.64;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-glyph {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--upload-bg);
  color: var(--accent-ink);
  font-size: 1.15rem;
  font-weight: 600;
}

.file-drop strong {
  grid-column: 2;
  font-size: 0.92rem;
}

.file-drop small {
  grid-column: 2;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  word-break: break-word;
}

.link-panel {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-panel .field-label {
  display: none;
}

.countdown-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid var(--countdown-line);
  border-radius: 8px;
  background: var(--countdown-bg);
}

.countdown-panel span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-panel strong {
  text-align: right;
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.countdown-panel strong.is-expired {
  color: var(--danger);
}

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.link-row input {
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--field-bg);
}

.link-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-meta span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.link-panel button {
  min-height: 32px;
}

.danger-button {
  border-color: rgba(157, 45, 55, 0.45);
  color: var(--danger);
}

.danger-button:hover:not(:disabled),
.danger-button:focus-visible:not(:disabled) {
  border-color: var(--danger);
  color: var(--danger);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.stats-grid div {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stats-grid span,
.field-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stats-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
}

.field-label {
  margin-bottom: -8px;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 11px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--ink);
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.button-row .wide-button,
.button-row button:last-child {
  grid-column: auto;
}

.button-row button.export-button {
  grid-column: 1 / -1;
}

.button-row button {
  min-height: 32px;
  font-size: 0.82rem;
}

.parameter-list {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  flex-direction: column;
  gap: 6px;
  padding-right: 3px;
  scrollbar-gutter: stable;
}

.parameter-item {
  display: grid;
  grid-template-columns: 18px 14px minmax(0, 1fr) 50px 50px;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
}

.parameter-item:hover {
  border-color: var(--line-strong);
}

.parameter-item > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--swatch-border);
}

.parameter-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.threshold-input {
  width: 100%;
  min-width: 0;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 6px;
  font-size: 0.76rem;
}

.threshold-input::placeholder {
  color: var(--muted);
}

.threshold-input.is-invalid {
  border-color: #d82032;
  box-shadow: 0 0 0 2px rgba(216, 32, 50, 0.12);
}

.workspace {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-width: 0;
  overflow: hidden;
}

.workspace-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--workspace-bar-bg);
  backdrop-filter: blur(8px);
}

.workspace-bar strong,
.workspace-bar span {
  display: block;
}

.workspace-bar strong {
  max-width: min(58vw, 780px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.render-note {
  justify-self: end;
  color: var(--orange);
  text-align: right;
}

.workspace-file {
  min-width: 0;
}

.workspace-brand {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(209, 0, 0, 0.18);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 9px 22px rgba(30, 28, 23, 0.08);
}

.workspace-brand img {
  width: 34px;
  height: 34px;
  display: block;
}

.workspace-brand strong {
  max-width: none;
  color: var(--accent-ink);
  font-size: 0.91rem;
  line-height: 1;
}

.workspace-brand span {
  margin-top: 2px;
  font-size: 0.73rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.plot-shell {
  position: relative;
  min-height: 0;
  padding: 18px;
}

.mobile-graph-tools {
  display: none;
}

.plot {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--plot-bg);
  box-shadow: var(--shadow);
}

.zoom-band {
  position: fixed;
  z-index: 16;
  border-left: 1px solid var(--zoom-line);
  border-right: 1px solid var(--zoom-line);
  background: var(--zoom-fill);
  pointer-events: none;
}

.empty-state {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--empty-grid-accent) 1px, transparent 1px),
    linear-gradient(0deg, var(--empty-grid-warm) 1px, transparent 1px),
    var(--plot-bg);
  background-size: 58px 58px;
  color: var(--muted);
}

.empty-state strong {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--empty-badge-bg);
}

.hover-card {
  position: fixed;
  z-index: 20;
  width: auto;
  min-width: min(238px, calc(100vw - 20px));
  max-width: calc(100vw - 24px);
  overflow: visible;
  padding: 7px;
  border: 1px solid var(--hover-border);
  border-radius: 7px;
  background: var(--hover-bg);
  box-shadow: var(--hover-shadow);
  pointer-events: none;
}

.hover-card.pinned-card {
  border-color: var(--accent);
}

#hoverCard {
  z-index: 22;
}

.pinned-cards {
  position: fixed;
  inset: 0;
  z-index: 21;
  pointer-events: none;
}

.pinned-cards .hover-card {
  z-index: 21;
}

.hover-card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  font-size: 0.76rem;
}

.mark-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.hover-grid {
  display: grid;
  grid-template-columns: repeat(var(--hover-columns, 1), minmax(148px, var(--hover-column-width, 230px)));
  align-items: start;
  column-gap: 9px;
}

.hover-column {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.hover-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 0.73rem;
  line-height: 1.15;
}

.hover-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-row.threshold-alert span:nth-child(2),
.hover-row.threshold-alert strong {
  color: #d82032;
  font-weight: 900;
  animation: thresholdPulse var(--threshold-duration, 1.8s) ease-in-out infinite;
}

@keyframes thresholdPulse {
  0%,
  100% {
    color: var(--ink);
    text-shadow: none;
  }
  45% {
    color: #d82032;
    text-shadow: 0 0 10px rgba(216, 32, 50, 0.45);
  }
}

.hover-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hover-card.dense-hover {
  padding: 6px;
}

.hover-card.dense-hover h2 {
  margin-bottom: 4px;
}

.hover-card.dense-hover .hover-row {
  gap: 5px;
  padding: 1px 0;
  font-size: 0.68rem;
}

@media (max-width: 860px), (pointer: coarse) {
  .mobile-graph-tools {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(30, 28, 23, 0.12);
  }

  .mobile-graph-tool {
    min-height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .mobile-graph-tool.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
  }

  .plot {
    touch-action: none;
  }

  .hover-card.mobile-scan-card {
    max-width: calc(100vw - 20px);
    max-height: min(36vh, 280px);
    overflow: auto;
  }
}

.notice {
  padding: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--slot-overlay);
  backdrop-filter: blur(7px);
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--slot-overlay);
  backdrop-filter: blur(8px);
}

.help-panel {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.help-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.help-header strong,
.help-header span {
  display: block;
}

.help-header strong {
  color: var(--accent-ink);
  font-size: 1rem;
}

.help-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.help-close-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 1.28rem;
  line-height: 1;
}

.help-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.help-content section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.help-content h2 {
  margin: 0 0 6px;
  color: var(--accent-ink);
  font-size: 0.88rem;
}

.help-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.slot-panel {
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.slot-panel strong {
  font-size: 1rem;
}

.slot-panel span {
  color: var(--muted);
  line-height: 1.4;
}

.seo-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.seo-disclosure {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.seo-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 0;
  color: var(--accent-ink);
  cursor: pointer;
  list-style: none;
}

.seo-disclosure > summary::-webkit-details-marker {
  display: none;
}

.seo-disclosure > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-left: auto;
  border: 1px solid rgba(209, 0, 0, 0.26);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.seo-disclosure[open] > summary::after {
  content: "-";
}

.seo-disclosure > summary span,
.seo-disclosure > summary small {
  display: block;
}

.seo-disclosure > summary span {
  font-size: 0.9rem;
  font-weight: 900;
}

.seo-disclosure > summary small {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.seo-inner {
  width: 100%;
  margin: 0;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
}

.seo-intro {
  max-width: 760px;
}

.seo-kicker {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-intro h2,
.seo-faq h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.seo-intro p:not(.seo-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.seo-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.seo-copy section {
  min-width: 0;
}

.seo-copy h3 {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 0.95rem;
}

.seo-copy p,
.seo-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.seo-faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.seo-faq h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.seo-faq details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.seo-faq summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.seo-faq p {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .side-panel {
    grid-column: 1;
    grid-row: 2;
    position: static;
    height: auto;
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .parameter-list {
    flex: 0 0 auto;
    max-height: min(420px, 56vh);
    overflow: auto;
  }

  .help-modal {
    padding: 10px;
  }

  .help-panel {
    max-height: calc(100vh - 20px);
  }

  .help-content {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .seo-disclosure {
    width: min(100% - 24px, 720px);
  }

  .seo-disclosure > summary {
    min-height: 44px;
  }

  .seo-inner {
    width: 100%;
    padding: 34px 0 42px;
  }

  .seo-copy {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workspace {
    grid-column: 1;
    grid-row: 1;
    height: 72vh;
    min-height: 460px;
    z-index: 2;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .workspace-bar {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
  }

  .workspace-bar strong {
    max-width: calc(100vw - 44px);
  }

  .workspace-brand {
    justify-self: start;
    max-width: calc(100vw - 44px);
  }

  .workspace-brand span {
    white-space: normal;
  }

  .render-note {
    justify-self: start;
    text-align: left;
  }

  .plot {
    height: 100%;
    min-height: 0;
  }
}
