/* niksharma.dev
   One bold move: a turmeric page with a docket printing out of a slot.
   Everything else is quiet ink type, structured like a menu.
   Fonts are self-hosted (SIL Open Font Licence), so visitors make no
   requests to Google. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/azeret-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/azeret-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --haldi: #f2b124;
  --ink: #1a1712;
  --ink-soft: #3d372d;
  --paper: #fbfaf6;
  --thermal: #6e6a62;
  --leaf: #2d5a37;
  --bg: var(--haldi);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --line: rgb(26 23 18 / 35%);
  --button-fg: var(--haldi);
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1712;
    --fg: #f5efe1;
    --fg-soft: #cfc6b3;
    --line: rgb(245 239 225 / 30%);
    --button-fg: #1a1712;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--leaf);
}

@media (prefers-color-scheme: dark) {
  a:hover {
    text-decoration-color: var(--haldi);
  }
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.name {
  margin: 0 0 1.5rem;
  font-size: clamp(4.25rem, 13vw, 11.5rem);
  line-height: 0.86;
  font-weight: 860;
  font-variation-settings: "wdth" 66;
  letter-spacing: -0.015em;
}

.intro {
  max-width: var(--measure);
  margin: 0 0 2rem;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 2px solid var(--fg);
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-solid {
  background: var(--fg);
  color: var(--button-fg);
}

.button-line {
  background: transparent;
  color: var(--fg);
}

/* The docket printer */

.printer {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  padding-top: 0.25rem;
}

.slot {
  position: relative;
  z-index: 2;
  height: 1rem;
  margin: 0 -0.75rem;
  border-radius: 0.5rem;
  background: var(--ink);
  box-shadow: inset 0 -4px 0 rgb(255 255 255 / 8%);
}

@media (prefers-color-scheme: dark) {
  .slot {
    background: #4a4337;
    box-shadow: inset 0 -4px 0 rgb(0 0 0 / 35%);
  }
}

.feed {
  position: relative;
  z-index: 1;
  margin-top: -0.5rem;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

.receipt {
  --tooth: 0.55rem;
  padding: 1.75rem 1.25rem 2rem;
  background: var(--paper);
  color: #2a2722;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px -18px rgb(26 23 18 / 45%);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x;
  transform: translateY(0);
}

.receipt p {
  margin: 0;
}

.r-shop {
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.r-centre {
  text-align: center;
}

.r-quiet {
  color: var(--thermal);
}

.r-rule {
  height: 0;
  margin: 0.6rem 0 !important;
  border-top: 1px dashed #9c978c;
}

.r-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.r-head {
  color: var(--thermal);
}

.r-sub {
  padding-left: 1.4em;
  color: var(--thermal);
}

.r-total {
  font-weight: 600;
  font-size: 0.95rem;
}

.r-barcode {
  height: 2.6rem;
  margin: 1rem auto 0.4rem;
  width: 82%;
  background: repeating-linear-gradient(
    90deg,
    #2a2722 0 2px,
    transparent 2px 4px,
    #2a2722 4px 5px,
    transparent 5px 8px,
    #2a2722 8px 11px,
    transparent 11px 12px,
    #2a2722 12px 13px,
    transparent 13px 16px
  );
}

.reprint {
  display: block;
  margin: 0.25rem auto 0;
  padding: 0.4rem 0.6rem;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* The print: lines appear in reading order, in short jerks, the way a
   docket printer feeds paper out of the slot. */

.is-printing .receipt {
  animation: print 2.6s steps(22, end) both;
}

@keyframes print {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

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

/* Body sections */

main {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.block {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 2px solid var(--fg);
}

h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 750;
}

.now {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.now p {
  margin: 0;
  color: var(--fg-soft);
}

/* Menu rows: item, dotted leader, note. */

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 56rem;
}

.menu li > a,
.menu li:not(.linked) {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
}

.menu li {
  padding: 0.55rem 0;
}

.menu li > a {
  text-decoration: none;
}

.menu li > a:hover .item {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--leaf);
}

.item {
  font-weight: 700;
  font-size: 1.2rem;
}

.leader {
  border-bottom: 2px dotted var(--line);
  transform: translateY(-0.3em);
}

.note {
  color: var(--fg-soft);
  text-align: right;
}

.contact p {
  max-width: var(--measure);
  margin: 0 0 1.75rem;
  color: var(--fg-soft);
}

.noscript {
  margin-top: 1rem !important;
}

.footer {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  font-size: 0.95rem;
  color: var(--fg-soft);
}

.footer p {
  margin: 0;
}

/* Small screens */

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .printer {
    width: min(100%, 19rem);
  }

  .now {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36rem) {
  .menu li > a,
  .menu li:not(.linked) {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .leader {
    display: none;
  }

  .note {
    text-align: left;
  }
}

/* Auto Translate showcase & live overlay workbench */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
  font-size: 0.95rem;
}

.back-link {
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.topbar-badge {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.at-title {
  font-size: clamp(3.5rem, 11vw, 9rem);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-sub {
  max-width: 46rem;
  margin: 0;
  color: var(--fg-soft);
}

.at-workbench {
  display: grid;
  grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.at-controls {
  padding: 1.35rem;
  background: var(--paper);
  color: #1a1712;
  border: 2px solid var(--fg);
  border-radius: 1rem;
  box-shadow: 0 14px 28px -18px rgb(26 23 18 / 40%);
}

@media (prefers-color-scheme: dark) {
  .at-controls {
    background: #231f19;
    color: #f5efe1;
  }
}

.at-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.at-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.at-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22a048;
  box-shadow: 0 0 0 3px rgb(34 160 72 / 22%);
}

.at-dot.is-paused {
  background: #8a8275;
  box-shadow: none;
}

.at-shortcut-hint {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--fg-soft);
}

.at-field {
  margin-bottom: 1rem;
}

.at-field label,
.at-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.at-field select,
.at-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--fg);
  border-radius: 0.55rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
}

.at-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.at-checkbox-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--leaf);
}

.at-caption {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--fg-soft);
}

.at-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.22rem;
  border: 1.5px solid var(--fg);
  border-radius: 0.6rem;
}

.at-seg-btn {
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.at-seg-btn.is-active {
  background: var(--fg);
  color: var(--button-fg);
}

.at-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  text-align: center;
}

.at-metrics span {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-soft);
}

.at-metrics strong {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.86rem;
}

.at-full-btn {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.at-privacy-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-soft);
}

.at-stage-wrap {
  border: 2px solid var(--fg);
  border-radius: 1rem;
  overflow: hidden;
  background: #f4f6fa;
  color: #101828;
  box-shadow: 0 18px 36px -22px rgb(26 23 18 / 45%);
}

.at-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #1a1712;
  color: #fbfaf6;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.74rem;
}

.at-dots {
  display: flex;
  gap: 0.35rem;
}

.at-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #6e6a62;
}

.at-window-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgb(242 177 36 / 20%);
  color: #f2b124;
}

.at-stage {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.at-layout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.at-layout-meme,
.at-layout-chat {
  grid-template-columns: 1fr;
}

.at-region-card {
  position: relative;
  padding: 0.9rem 1rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #101828;
}

.at-region-card.tone-muted {
  background: #e4e7ec;
  color: #475467;
}

.at-region-card.tone-amber {
  background: linear-gradient(135deg, #f9c942, #e58e26);
  color: #1a1712;
  border-color: #c87a19;
}

.at-region-card.tone-dark {
  background: linear-gradient(135deg, #161d2f, #2d1b3d);
  color: #f8fafc;
  border-color: #364152;
}

.at-region-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  opacity: 0.78;
}

.at-region-body {
  position: relative;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}

.at-source-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.at-region-card.tone-small .at-source-text {
  font-size: 0.88rem;
}

.at-overlay-box {
  position: absolute;
  inset: -0.2rem -0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.at-overlay-box.style-contrast {
  background: rgb(12 16 22 / 92%);
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 32%);
}

.at-overlay-box.style-adaptive {
  background: rgb(255 255 255 / 82%);
  color: #101828;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgb(16 24 40 / 16%);
}

.at-overlay-box.style-adaptive.tone-dark {
  background: rgb(20 24 38 / 80%);
  color: #f8fafc;
  border-color: rgb(255 255 255 / 20%);
}

.at-overlay-box.style-adaptive.tone-amber {
  background: rgb(249 201 66 / 84%);
  color: #14120e;
  border-color: rgb(20 18 14 / 20%);
}

.at-downloads-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.at-card {
  padding: 1.5rem;
  border: 2px solid var(--fg);
  border-radius: 1rem;
  background: rgb(251 250 246 / 35%);
}

@media (prefers-color-scheme: dark) {
  .at-card {
    background: rgb(255 255 255 / 4%);
  }
}

.at-card-tag {
  margin: 0 0 0.4rem !important;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.at-steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.96rem;
  color: var(--fg-soft);
}

.at-steps li {
  margin-bottom: 0.45rem;
}

.at-meta-box {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 0.6rem;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.74rem;
}

.at-meta-box div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
  overflow-wrap: anywhere;
}

.at-meta-box span {
  color: var(--fg-soft);
  flex-shrink: 0;
}

@media (max-width: 62rem) {
  .at-workbench,
  .at-downloads-grid,
  .at-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.2.0 Gemini visuals, inline SVGs, illustrated meme stage & Cultural Lore Inspector */

.inline-svg {
  width: 0.95rem;
  height: 0.95rem;
  vertical-align: -0.15em;
  margin-right: 0.25rem;
}

.at-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.at-brand-row .eyebrow {
  margin: 0;
}

.at-brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  border: 2px solid var(--fg);
  box-shadow: 0 8px 18px -8px rgb(26 23 18 / 45%);
}

.at-visual-split {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.at-visual-card {
  border: 2px solid var(--fg);
  border-radius: 1rem;
  overflow: hidden;
  background: #14120e;
  color: #f5efe1;
  box-shadow: 0 18px 34px -20px rgb(26 23 18 / 55%);
}

.at-visual-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.at-visual-caption {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgb(245 239 225 / 16%);
}

.at-visual-caption span {
  display: block;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: #f2b124;
  letter-spacing: 0.05em;
}

.at-visual-caption strong {
  font-size: 0.95rem;
}

.at-pipeline-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.15rem;
}

.at-stage-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.at-layout-illustrated {
  padding: 0;
}

.at-illustrated-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0e14;
  overflow: hidden;
}

.at-illustrated-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.at-illustrated-slot {
  position: absolute;
  left: 6%;
  right: 6%;
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
}

.at-illustrated-slot.pos-top {
  top: 5%;
}

.at-illustrated-slot.pos-bottom {
  bottom: 5%;
}

.at-illustrated-source {
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  background: rgb(10 14 20 / 74%);
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 750;
  text-align: center;
  text-shadow: 0 2px 6px #000;
}

.at-overlay-box.is-illustrated {
  inset: 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
}

.at-overlay-main {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 800;
}

.at-overlay-sub {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #f2b124;
  opacity: 0.95;
}

.at-sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.at-chip {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  cursor: pointer;
}

.at-chip:hover {
  background: var(--fg);
  color: var(--button-fg);
}

.at-inspector {
  padding: 1.15rem 1.25rem;
  border: 2px solid var(--fg);
  border-radius: 1rem;
  background: var(--paper);
  color: #1a1712;
}

@media (prefers-color-scheme: dark) {
  .at-inspector {
    background: #231f19;
    color: #f5efe1;
  }
}

.at-inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.at-inspector-head span {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--button-fg);
}

.at-inspector-list {
  display: grid;
  gap: 0.85rem;
  max-height: 22rem;
  overflow-y: auto;
}

.at-inspector-item {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.at-insp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.at-insp-source {
  font-weight: 750;
  font-size: 0.98rem;
}

.at-insp-tag {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--fg-soft);
}

.at-insp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.at-insp-col {
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  opacity: 0.72;
}

.at-insp-col.is-selected {
  opacity: 1;
  border-width: 1.5px;
  border-color: var(--fg);
}

.at-insp-col span {
  display: block;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.2rem;
}

.at-insp-col p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.at-insp-note {
  margin: 0.55rem 0 0 !important;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--leaf);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .at-insp-note {
    color: var(--haldi);
  }
}

@media (max-width: 62rem) {
  .at-visual-split,
  .at-insp-compare {
    grid-template-columns: 1fr;
  }
}

/* v0.3.0 Hold-Option-to-Peek, Dual-Meaning Chips, Multi-AI Consensus & Cultural Glossary */
.at-stage.is-peeking .at-overlay-box {
  opacity: 0.08;
  transition: opacity 120ms ease;
}

.at-btn-stack {
  display: grid;
  gap: 0.5rem;
}

.at-wordplay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.at-wp-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  background: rgb(242 177 36 / 14%);
}

.at-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.at-glossary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.at-glossary-search {
  flex: 1 1 18rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--fg);
  border-radius: 0.65rem;
  background: var(--paper);
  color: #1a1712;
  font-family: inherit;
  font-size: 0.95rem;
}

.at-glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.at-glossary-card {
  padding: 1rem;
  border: 1.5px solid var(--fg);
  border-radius: 0.85rem;
  background: rgb(251 250 246 / 40%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}

@media (prefers-color-scheme: dark) {
  .at-glossary-card {
    background: rgb(255 255 255 / 5%);
  }
}

.at-glossary-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--fg-soft);
}

.at-glossary-phrase {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.at-glossary-adapted {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.at-glossary-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--fg-soft);
}

@media (max-width: 62rem) {
  .at-ai-grid,
  .at-glossary-grid {
    grid-template-columns: 1fr;
  }
}
