/* Voice UX mockups — matches shipped product atmosphere (cream, serif display, charcoal CTA) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,650;1,9..144,550&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

:root {
  --bg: #f6f1ea;
  --bg-elev: #fffdf9;
  --ink: #1a1814;
  --muted: #6b6560;
  --line: #e4ddd3;
  --accent: #a34a32;
  --accent-soft: #f0d5cb;
  --peach: #f5d9c8;
  --lavender: #e4d8f0;
  --ok: #2f7a4a;
  --danger: #9b2c2c;
  --shadow: 0 12px 40px rgba(26, 24, 20, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --mock-chrome: 56px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: #ebe4da;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

/* ——— Mockup chrome ——— */
.mock-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--mock-chrome);
  padding: 8px 14px;
  background: rgba(26, 24, 20, 0.92);
  color: #f6f1ea;
  backdrop-filter: blur(8px);
}

.mock-chrome__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 650;
  white-space: nowrap;
}

.mock-chrome__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f6f1ea;
  color: #1a1814;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.mock-chrome__nav {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.mock-chrome__nav button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  color: #d8d0c4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.mock-chrome__nav button[aria-current="true"] {
  background: #f6f1ea;
  color: #1a1814;
  border-color: #f6f1ea;
}

.mock-chrome__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.seg {
  display: inline-flex;
  border: 1px solid #5a534c;
  border-radius: 999px;
  overflow: hidden;
}

.seg button {
  border: 0;
  background: transparent;
  color: #d8d0c4;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: #f6f1ea;
  color: #1a1814;
}

.btn-comments {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.btn-comments__count {
  display: none;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
}

.btn-comments__count:not(:empty) {
  display: inline;
}

.comment-hint {
  font-size: 11px;
  color: #a89f93;
  white-space: nowrap;
}

body.comment-mode .comment-hint {
  color: #f0d5cb;
}

body.comment-mode .comment-hint::before {
  content: "Comment mode · ";
}

/* ——— Stage ——— */
.stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
}

.stage__canvas {
  width: min(1120px, 100%);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(26, 24, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 24, 20, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 720px;
}

body.viewport-iphone .stage__canvas {
  width: 375px;
  min-height: 812px;
  max-height: 812px;
  border-radius: 36px;
  border: 10px solid #1a1814;
  box-shadow: 0 20px 60px rgba(26, 24, 20, 0.25);
  overflow: auto;
}

body.viewport-iphone .stage__canvas::before {
  content: "";
  position: sticky;
  top: 8px;
  display: block;
  width: 120px;
  height: 22px;
  margin: 0 auto 4px;
  background: #1a1814;
  border-radius: 0 0 14px 14px;
  z-index: 5;
}

.screen {
  display: none;
  min-height: 680px;
}

.screen.is-active {
  display: block;
}

body.viewport-iphone .screen {
  min-height: 780px;
}

/* ——— Product UI primitives ——— */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 20px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.pill .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

body.viewport-iphone .header-pills {
  display: none;
}

body.viewport-iphone .menu-btn {
  display: inline-flex;
}

.hero {
  text-align: center;
  padding: 28px 24px 12px;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 550;
}

.hero p {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 24px;
  max-width: 820px;
  margin: 0 auto;
}

body.viewport-iphone .choice-grid {
  grid-template-columns: 1fr;
  padding: 12px 16px;
}

.choice-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  min-height: 200px;
  cursor: pointer;
  background: linear-gradient(160deg, var(--peach), #f8ebe3 60%, #fffdf9);
}

.choice-card.live {
  background: linear-gradient(160deg, var(--lavender), #efeaf7 60%, #fffdf9);
}

.choice-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice-card__tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.choice-card.live .choice-card__tag {
  color: #6b4f8a;
}

.choice-card h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.choice-card__radio {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}

.choice-card[aria-pressed="true"] .choice-card__radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}

.choice-card__wave {
  position: absolute;
  right: 24px;
  top: 54px;
  width: 72px;
  height: 36px;
  opacity: 0.45;
  background:
    radial-gradient(circle at 12% 50%, currentColor 3px, transparent 4px),
    radial-gradient(circle at 28% 35%, currentColor 5px, transparent 6px),
    radial-gradient(circle at 48% 55%, currentColor 7px, transparent 8px),
    radial-gradient(circle at 68% 30%, currentColor 5px, transparent 6px),
    radial-gradient(circle at 88% 50%, currentColor 3px, transparent 4px);
  color: var(--accent);
}

.choice-card.live .choice-card__wave {
  color: #6b4f8a;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-danger {
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.disclosure {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.85);
  overflow: hidden;
}

.disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

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

.disclosure > summary::after {
  content: "▾";
  float: right;
  opacity: 0.6;
}

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

.disclosure__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px 14px;
}

body.viewport-iphone .disclosure__body {
  grid-template-columns: 1fr;
}

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
}

.field textarea {
  border-radius: 14px;
  min-height: 88px;
  resize: vertical;
}

.scroll-cue {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 20px;
}

/* Agents */
.section-pad {
  padding: 22px 24px 32px;
}

body.viewport-iphone .section-pad {
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.section-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 650;
}

.agent-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.agent-chip {
  flex: 0 0 auto;
  width: 200px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.agent-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8d8c8;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 8px;
}

.agent-chip strong {
  display: block;
  font-size: 14px;
}

.agent-chip span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hub-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elev);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hub-card__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.hub-card__meta {
  flex: 1;
}

.hub-card__meta .status {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.hub-card__meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
}

.hub-card__meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.viewport-iphone .split-actions {
  grid-template-columns: 1fr;
}

.split-actions .btn-primary,
.split-actions .btn-secondary {
  justify-content: center;
  width: 100%;
}

.hub-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lesson-list {
  margin-top: 18px;
}

.lesson-list h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.lesson-row strong {
  color: var(--accent);
  font-weight: 600;
}

/* Materials */
.mat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
}

body.viewport-iphone .mat-bar {
  top: 26px;
}

.mat-bar__left,
.mat-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-bar__title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mat-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px 8px;
}

.mat-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.mat-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 18px 14px;
}

.mat-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: 40px;
}

.mat-tabs button[aria-current="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.next-step {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.next-step__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.next-step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}

.next-step p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 24px;
}

body.viewport-iphone .card-grid {
  grid-template-columns: 1fr;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.info-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.info-card p,
.info-card pre {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
  font-family: var(--font-ui);
  line-height: 1.4;
}

.details-link {
  margin: 0 18px 24px;
}

/* Interactive */
.prep-panel {
  margin: 0 18px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.prep-panel h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
}

.prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}

/* Before (cluttered) variants */
.before-noise {
  opacity: 0.95;
}

.mode-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 12px;
  font-size: 11px;
  color: var(--muted);
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

.badge.v { background: #f0d5cb; color: var(--accent); }
.badge.t { background: #e4d8f0; color: #6b4f8a; }
.badge.r { background: #d5ebd9; color: #2f7a4a; }
.badge.l { background: #e8e4de; color: #5a534c; }

.chooser-box {
  margin: 0 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

body.viewport-iphone .chooser-box {
  grid-template-columns: 1fr;
}

.chooser-box button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.pill-cluster span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
}

.form-block {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.form-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

body.viewport-iphone .form-row {
  grid-template-columns: 1fr;
}

/* Retro modal */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3;
}

.modal {
  width: min(440px, 100%);
  max-height: 90%;
  overflow: auto;
  background: var(--bg-elev);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.modal h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
}

.modal > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
}

.accordion > summary {
  list-style: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

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

.accordion__body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.privacy-note a {
  color: var(--accent);
}

/* Annotation ribbon */
.anno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 18px 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a1814;
  color: #f6f1ea;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.anno.after {
  background: var(--ok);
}

.anno.before {
  background: var(--danger);
}

/* Comment system */
body.comment-mode [data-mock-id] {
  cursor: crosshair !important;
  outline: 1px dashed transparent;
  outline-offset: 2px;
}

body.comment-mode [data-mock-id]:hover {
  outline-color: var(--accent);
  background-color: rgba(163, 74, 50, 0.06);
}

[data-mock-id].is-comment-selected {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(163, 74, 50, 0.2);
  position: relative;
  z-index: 1;
}

[data-mock-id].has-comments::after {
  content: attr(data-comment-count);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

[data-mock-id] {
  position: relative;
}

.comment-composer {
  position: fixed;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
}

.comment-composer.is-open {
  display: block;
}

.comment-composer__loc {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
  word-break: break-word;
}

.comment-composer textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  resize: vertical;
}

.comment-composer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.comments-panel {
  position: fixed;
  top: calc(var(--mock-chrome) + 8px);
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--mock-chrome) - 24px);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 55;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.comments-panel.is-open {
  display: flex;
}

.comments-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.comments-panel__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.comments-panel__tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.comments-panel__tools button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.comments-panel__list {
  overflow: auto;
  padding: 10px 14px 14px;
  display: grid;
  gap: 10px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.comment-item__loc {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 4px;
}

.comment-item__screen {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comment-item__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.comment-item__actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.comment-item__actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.comments-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 4px;
}

.export-preview {
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1a1814;
  color: #f6f1ea;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  display: none;
}

.export-preview.is-open {
  display: block;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.is-on {
  opacity: 1;
}

.index-intro {
  padding: 28px 24px 12px;
  max-width: 720px;
}

.index-intro h1 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0 0 8px;
}

.index-intro p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.45;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 24px 32px;
}

.index-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.index-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.index-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.tag.after {
  background: #d5ebd9;
  color: #2f7a4a;
}

.tag.before {
  background: #f0d5cb;
  color: var(--accent);
}
