/* LATITUDE DOCS — editorial analyst-brief design system.
   Tokens are OKLCH; every one has a light and a dark value. */

/* TOKENS */

:root {
  --bg: oklch(0.972 0.004 90);
  --card: oklch(1 0 0);
  --ink: oklch(0.25 0.03 265);
  --muted: oklch(0.446 0.022 260);
  --border: oklch(0.885 0.006 90);
  --track: oklch(0.955 0.004 90);

  --primary: oklch(0.53 0.16 245);
  --brand: oklch(0.52 0.22 348);
  --success: oklch(0.5 0.12 150);
  --warning: oklch(0.5 0.13 62);
  --destructive: oklch(0.53 0.2 28);

  --radius: 0.575rem;
  --title-font: "Newsreader", Georgia, "Times New Roman", serif;
  --body-font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono-font: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 68ch;
  --page: 1400px;
  --rail: 202px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: oklch(0.121 0.002 260);
  --card: oklch(0.172 0.003 260);
  --ink: oklch(0.96 0.003 260);
  --muted: oklch(0.66 0.007 260);
  --border: oklch(1 0 0 / 0.1);
  --track: oklch(1 0 0 / 0.055);

  --primary: oklch(0.72 0.13 240);
  --brand: oklch(0.73 0.185 348);
  --success: oklch(0.74 0.12 152);
  --warning: oklch(0.81 0.12 82);
  --destructive: oklch(0.68 0.19 28);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.121 0.002 260);
    --card: oklch(0.172 0.003 260);
    --ink: oklch(0.96 0.003 260);
    --muted: oklch(0.66 0.007 260);
    --border: oklch(1 0 0 / 0.1);
    --track: oklch(1 0 0 / 0.055);

    --primary: oklch(0.72 0.13 240);
    --brand: oklch(0.73 0.185 348);
    --success: oklch(0.74 0.12 152);
    --warning: oklch(0.81 0.12 82);
    --destructive: oklch(0.68 0.19 28);

    color-scheme: dark;
  }
}

/* BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklch, var(--primary) 22%, transparent);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--border);
}

/* LAYOUT */

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 28px;
}

/* Two-column body: sticky nav rail beside the article. */
.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 64px;
}

.rail {
  position: sticky;
  top: 24px;
  flex: 0 0 var(--rail);
  min-width: 180px;
  align-self: flex-start;
}

.article {
  flex: 1 1 560px;
  min-width: 0;
}

@media (max-width: 860px) {
  .rail {
    position: static;
    flex-basis: 100%;
  }
}

/* TYPOGRAPHY */

/* Tiny tracked-out uppercase label. The workhorse of this system. */
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--primary {
  color: var(--primary);
}

.eyebrow--brand {
  color: var(--brand);
}

.doc-title {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.018em;
  margin: 16px 0 24px;
  text-wrap: balance;
}

.lede {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.36;
  letter-spacing: -0.006em;
  margin: 0 0 22px;
  max-width: var(--measure);
  text-wrap: pretty;
}

.article h2 {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.01em;
  margin: 0;
}

.article h3 {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 32px 0 10px;
}

.article p,
.article li {
  max-width: var(--measure);
  text-wrap: pretty;
}

.article p {
  margin: 0 0 16px;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.article li {
  margin-bottom: 6px;
}

.article li::marker {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono-font);
  font-feature-settings: "tnum" 1;
}

/* Dotted underline marking a cited or sourced value. */
.cite {
  border-bottom: 1.5px dotted var(--brand);
  cursor: help;
}

blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--brand);
  font-family: var(--title-font);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

/* SECTIONS — hairline rules, never cards. */

.section {
  border-top: 1px solid var(--border);
  padding: 58px 2px 16px;
  scroll-margin-top: 24px;
}

.section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.section__body {
  padding-top: 22px;
}

/* METADATA STRIP — divided cells under the title. */

.metastrip {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  margin-bottom: 26px;
}

.metastrip__cell {
  padding: 0 24px;
  border-left: 1px solid var(--border);
}

.metastrip__cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.metastrip__label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.metastrip__value {
  font-size: 14px;
  font-weight: 500;
}

/* STATS — oversized serif numerals. */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 48px;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: clamp(42px, 5.4vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.stat__unit {
  font-family: var(--mono-font);
  font-size: 20px;
  color: var(--muted);
}

.stat__label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 12px;
}

/* PILLS & DOTS */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--primary { color: var(--primary); }
.pill--brand { color: var(--brand); }
.pill--success { color: var(--success); }
.pill--warning { color: var(--warning); }
.pill--danger { color: var(--destructive); }

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

/* TABLES — ruled rows, no vertical lines, monospaced figures. */

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14px;
}

.article th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}

.article td:last-child,
.article th:last-child {
  padding-right: 0;
}

.article tbody tr:last-child td {
  border-bottom: 0;
}

.num {
  font-family: var(--mono-font);
  font-feature-settings: "tnum" 1;
  text-align: right;
}

/* CODE */

code {
  font-family: var(--mono-font);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--track);
}

pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.65;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* CALLOUT — a rule and an eyebrow, not a tinted box. */

.callout {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--primary);
}

.callout__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.callout--warning { border-left-color: var(--warning); }
.callout--warning .callout__label { color: var(--warning); }
.callout--danger { border-left-color: var(--destructive); }
.callout--danger .callout__label { color: var(--destructive); }

/* NAV RAIL */

.toc__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 600;
}

.toc__list {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}

/* Static groove; .toc__thumb slides along it to mark the active entry. */
.toc__list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}

.toc__thumb {
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ink), color-mix(in oklch, var(--ink) 62%, transparent));
  transition: top 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.toc__link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px 6px 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.toc__link:hover {
  color: var(--ink);
}

.toc__link[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

/* SEARCH */

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(21px, 2.3vw, 27px);
  font-weight: 500;
  letter-spacing: -0.006em;
}

.search__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search__input:focus {
  outline: none;
}

.search:focus-within {
  border-bottom-color: var(--primary);
}

.search__hint {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--muted);
}

.search:focus-within .search__hint {
  visibility: hidden;
}

.statusrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.keyhints {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.keyhints kbd {
  padding: 2px 6px;
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono-font);
  font-size: 11px;
}

.keyhints kbd:first-child {
  margin-left: 0;
}

.search__status {
  margin: 12px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* COLLECTIONS */

.collection {
  margin-top: 44px;
}

.collection__name {
  margin: 0 0 12px;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* INDEX LIST */

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.index__item {
  border-bottom: 1px solid var(--border);
}

.index__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.index__link:hover {
  background: var(--track);
}

.index__title {
  display: block;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
}

.index__desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  max-width: var(--measure);
}

.index__date {
  flex: none;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--muted);
}

/* CONTROLS */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb__sep {
  color: var(--border);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* MOTION — a short staggered reveal on first paint, nothing on scroll. */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[data-reveal] {
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

[data-reveal="1"] { animation-delay: 0.04s; }
[data-reveal="2"] { animation-delay: 0.12s; }
[data-reveal="3"] { animation-delay: 0.2s; }
[data-reveal="4"] { animation-delay: 0.28s; }
[data-reveal="5"] { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* PRINT */

@media print {
  .rail {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* FLOATING ACTION BUTTON — circular at rest, its menu unfurls on hover. */

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fab__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 20px oklch(0 0 0 / 0.16);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.fab__button--label {
  font-family: var(--mono-font);
  font-size: 13px;
  font-weight: 500;
}

.fab:hover .fab__button,
.fab:focus-within .fab__button {
  transform: scale(1.06);
  background: var(--track);
}

/* Translate + opacity rather than display, so it eases both ways. Pointer
   events stay off while collapsed or the invisible menu would swallow clicks. */
.fab__menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.2);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab:hover .fab__menu,
.fab:focus-within .fab__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fab__item {
  display: block;
  width: 100%;
  padding: 7px 11px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s;
}

.fab__item:hover {
  background: var(--track);
}

.fab__hint {
  padding: 6px 11px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* MORPHING MODAL */

.morph {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

.morph__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: oklch(0 0 0 / 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  cursor: default;
}

.morph__panel {
  position: relative;
  transform-origin: bottom right;
  width: min(400px, 100%);
  max-height: min(76vh, 620px);
  overflow: hidden auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 70px oklch(0 0 0 / 0.32);
}

.morph__content {
  padding: 22px 24px 24px;
}

.morph__title {
  margin: 0 0 16px;
  font-family: var(--title-font);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.morph__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.morph__input {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.morph__modes {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.morph__mode {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s;
}

.morph__mode:has(input:checked) {
  border-color: var(--primary);
}

.morph__mode strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}

.morph__mode span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.morph__primary {
  width: 100%;
  margin-top: 2px;
  padding: 11px 16px;
  background: var(--ink);
  border: 0;
  border-radius: 9px;
  color: var(--bg);
  font-family: var(--body-font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.morph__primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.morph__status {
  margin: 12px 0 0;
  min-height: 1em;
  font-size: 12.5px;
}

.morph__status--muted { color: var(--muted); }
.morph__status--ok { color: var(--success); }
.morph__status--error { color: var(--destructive); }

.morph__share {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

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

.morph__url {
  padding: 0;
  background: none;
  font-size: 11.5px;
  word-break: break-all;
}

.morph__shareActions {
  display: flex;
  gap: 4px;
  margin: 8px 0 0 -11px;
}

.morph__versions {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 12.5px;
}

.morph__versions li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.morph__seq {
  display: inline-block;
  min-width: 2.4em;
  font-family: var(--mono-font);
  color: var(--muted);
}

.morph__versions--pick li {
  display: block;
  padding: 0;
}

.morph__pick {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s;
}

.morph__pick:hover {
  background: var(--track);
}

.morph__pick.is-current {
  background: var(--track);
  font-weight: 600;
}

@media print {
  .fab,
  .morph {
    display: none;
  }
}

/* ICONS */

.ico {
  width: 15px;
  height: 15px;
  flex: none;
}

.fab__item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fab__item .ico {
  color: var(--muted);
}

.fab__item:hover .ico {
  color: var(--ink);
}

/* SKELETONS */

.skel {
  display: grid;
  gap: 14px;
}

.skel__row {
  display: grid;
  gap: 7px;
}

.skel__bar {
  display: block;
  height: 11px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    var(--track) 0%,
    color-mix(in oklch, var(--muted) 22%, var(--track)) 50%,
    var(--track) 100%
  );
  background-size: 220% 100%;
  animation: skel-sweep 1.25s ease-in-out infinite;
}

.skel__bar--sm {
  height: 9px;
  opacity: 0.7;
}

@keyframes skel-sweep {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel__bar {
    animation: none;
  }
}

/* SHARE LINK CARD */

.linkcard {
  margin: 4px 0 14px;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.linkcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.linkcard__url {
  display: block;
  padding: 0;
  background: none;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-all;
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.iconbtn:hover {
  color: var(--ink);
  background: var(--track);
}

.iconbtn.is-done {
  color: var(--success);
  border-color: var(--success);
}

/* VERSION LIST */

.vlist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.vlist__row {
  display: grid;
  grid-template-columns: 2.6em 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 2px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

.vlist__seq {
  font-family: var(--mono-font);
  color: var(--primary);
}

.vlist__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vlist__date {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

/* Withdrawn versions stay listed so the state is visible and reversible. */
.vlist__row.is-revoked .vlist__seq,
.vlist__row.is-revoked .vlist__name {
  color: var(--muted);
  text-decoration: line-through;
}

.vlist__row.is-revoked .vlist__date {
  color: var(--destructive);
}

.iconbtn--sm {
  width: 24px;
  height: 24px;
  border-color: transparent;
}

.iconbtn--sm .ico {
  width: 13px;
  height: 13px;
}

.iconbtn--sm:hover {
  border-color: var(--border);
}

/* SECONDARY ACTIONS */

.morph__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ghostbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.ghostbtn:hover {
  background: var(--track);
}

.ghostbtn--danger:hover {
  color: var(--destructive);
  border-color: var(--destructive);
}

.morph__note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.morph__empty {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* APP CHROME */

body.is-wide .page {
  max-width: 1100px;
}

.viewer {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
  background: var(--bg);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 20px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--bg);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dash__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 44px 0 8px;
}

.morph__primary--inline {
  width: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* EDITOR */

.editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 16px;
}

.editor__title {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.018em;
}

.editor__title:focus {
  outline: none;
}

.editor__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor__html {
  width: 100%;
  min-height: 56vh;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 12.5px;
  line-height: 1.6;
  resize: vertical;
}

.editor__hint {
  margin: 12px 0 60px;
  font-size: 12.5px;
  color: var(--muted);
}
