:root {
  --ink: #0d0d0b;
  --panel: #191916;
  --line: rgba(242, 240, 233, 0.12);
  --line-strong: rgba(242, 240, 233, 0.26);
  --cream: #f2f0e9;
  --muted: #b3b1a8;
  --dim: #807e76;
  --lime: #d8ff3e;
  --danger: #ff7a6b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --col: min(640px, 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--cream); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- scene layers ------------------------------------------------------------ */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; transition: opacity 0.9s var(--ease); }

.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 13, 11, 0.94) 0%, rgba(13, 13, 11, 0.78) 38%, rgba(13, 13, 11, 0) 62%);
  transition: opacity 0.9s var(--ease);
}
.shade-off .shade, .intro-playing .shade { opacity: 0; }
.stage-slot {
  position: fixed; z-index: 1; pointer-events: none;
  right: 4vw; top: 50%; width: 42vw; height: 70vh; transform: translateY(-46%);
  display: grid; place-items: center;
}
.stage-fallback { display: none; }
.no-webgl .stage-fallback { display: block; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(216, 255, 62, 0.25), transparent 70%); }

/* ---- top bar ------------------------------------------------------------------ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 40px;
  background: linear-gradient(180deg, rgb(13, 13, 11) 0%, rgba(13, 13, 11, 0.97) 55%, rgba(13, 13, 11, 0));
}
.brands { display: flex; align-items: center; gap: 12px; }
.brand-soso { width: 32px; height: auto; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.progress { width: min(220px, 30vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 3px; transition: width 0.8s var(--ease); }

/* ---- page -------------------------------------------------------------------- */
.page {
  position: relative; z-index: 5; min-height: 100vh; min-height: 100dvh;
  padding: calc(92px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) calc(40vh + env(safe-area-inset-bottom, 0px));
}

/* loader: shown from first paint until the 3D scene has compiled */
.loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader img { width: 56px; height: auto; animation: breathe 1.6s ease-in-out infinite; }
.loader-bar { width: 140px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; background: var(--lime); border-radius: 2px; animation: slide 1.1s ease-in-out infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* hero */
.hero { min-height: calc(100vh - 180px); display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.kicker { margin: 0 0 22px; font: 600 13px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.lead { margin: 28px 0 0; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(30px, 3.4vw, 46px); max-width: 18ch; }
.hero .kicker { margin-bottom: 16px; }
.hero .lead { margin-top: 20px; }
.why { margin-top: 30px; max-width: 64ch; border-top: 1px solid var(--line); padding-top: 14px; }
.why summary { cursor: pointer; color: var(--muted); font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.why summary::-webkit-details-marker { display: none; }
.why summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 13px; line-height: 1; }
.why[open] summary::before { content: "−"; }
.why summary:hover { color: var(--cream); }
.why ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.why li { display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--c); }
.why li b { font-size: 15px; }
.why li span, .why-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.why-note { margin: 14px 0 0; }

/* kinetic words */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0 0.08em; margin: -0.14em 0 -0.08em; }
.split .w > span { display: inline-block; transform-origin: 50% 100%; animation: word 0.95s var(--ease) both; animation-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
@keyframes word { from { transform: translateY(105%) rotateX(-70deg); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.reveal { animation: reveal 0.9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 16px 28px; font-weight: 650; font-size: 17px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.btn-primary { background: var(--cream); color: #11110f; }
.btn-primary:hover { background: #fff; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { padding: 12px 20px; font-size: 15px; }
.hint { color: var(--dim); font-size: 14px; }
.linkish { background: none; border: 0; padding: 6px 2px; color: var(--dim); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.linkish:hover { color: var(--cream); }

/* ---- conversation --------------------------------------------------------------- */
.chat { max-width: var(--col); }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.msg .avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); box-shadow: 0 0 0 4px rgba(242, 240, 233, 0.06);
}
.msg .avatar img { width: 22px; filter: brightness(0); }
.msg.cont .avatar { visibility: hidden; }
.msg .text { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.45; letter-spacing: -0.005em; padding-top: 5px; }
.msg { animation: fadeIn 0.35s ease-out both; }
.msg.instant { animation: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.msg .text strong { color: var(--cream); font-weight: 650; }
.msg .text .q-hint { display: block; margin-top: 8px; font-size: 0.72em; line-height: 1.45; color: var(--muted); }
.msg .text ul.summary { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.86em; line-height: 1.45; }
.msg .text ul.summary li { padding-left: 14px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.msg .text ul.summary b { color: var(--cream); font-weight: 600; }

@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.me { display: flex; justify-content: flex-end; }
.me span {
  max-width: 85%; padding: 11px 18px; border-radius: 20px 20px 6px 20px;
  background: rgba(242, 240, 233, 0.1); border: 1px solid var(--line-strong); color: var(--cream); font-weight: 500; font-size: 16px;
  animation: fadeIn 0.3s ease-out both;
}
.me.instant span { animation: none; }
@keyframes meIn { from { opacity: 0; transform: translateX(30px) scale(0.92); } to { opacity: 1; transform: none; } }

.widget { margin-left: 52px; animation: reveal 0.6s var(--ease) both; animation-delay: 0.05s; }
.thread.busy { cursor: progress; }
.thread.busy .widget, .thread.busy .me button { opacity: 0.6; transition: opacity 0.2s; }
.widget.instant { animation: none; }

/* choice chips */
.choices { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.choices.row { flex-direction: row; flex-wrap: wrap; }
.choice {
  position: relative; text-align: left; border: 1px solid var(--line-strong); background: rgba(242, 240, 233, 0.03);
  border-radius: 16px; padding: 13px 18px; font-size: 16px; line-height: 1.35; color: var(--cream);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  animation: fadeIn 0.3s ease-out both;
}
.widget.instant .choice { animation: none; }
@keyframes chipIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.choice:hover { border-color: var(--muted); background: rgba(242, 240, 233, 0.06); }
.choice[aria-pressed="true"] { border-color: var(--cream); background: rgba(242, 240, 233, 0.14); box-shadow: inset 3px 0 0 var(--lime); }
.widget-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

/* inputs */
.ask { display: flex; gap: 10px; flex-wrap: wrap; }
.ask input, .ask textarea, .field input, .field textarea {
  flex: 1 1 260px; min-width: 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgba(242, 240, 233, 0.05); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.ask input:focus, .field input:focus, .field textarea:focus { border-color: var(--cream); box-shadow: 0 0 0 3px rgba(242, 240, 233, 0.1); }
.fields { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field textarea { min-height: 96px; resize: vertical; }
/* Inside a column flex container the shared flex-basis would become a height. */
.field input, .field textarea { flex: none; }
.fields.identity { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields.identity .wide, .fields.identity .widget-foot, .fields.identity .field-error { grid-column: 1 / -1; }
.fields.identity .widget-foot { margin-top: 2px; }
.field .optional { font-weight: 400; color: var(--dim); }
@media (max-width: 760px) { .fields.identity { grid-template-columns: 1fr; } }

/* automatic save status, next to the progress bar */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-link { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.topbar-link:hover { color: var(--cream); border-color: var(--muted); }
.save-status { font-size: 12.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.save-status[data-state="saved"]::before { background: var(--lime); }
.save-status[data-state="saving"]::before { background: var(--muted); animation: blink 1s infinite; }
.save-status[data-state="offline"] { color: var(--danger); }
.save-status[data-state="offline"]::before { background: var(--danger); }
.brand-name { white-space: nowrap; }
@media (max-width: 760px) {
  /* On phones the status is a dot; only a connection problem keeps a short text. */
  .save-status { font-size: 0; gap: 0; }
  .save-status[data-state="offline"] { font-size: 11px; gap: 6px; max-width: 150px; white-space: normal; line-height: 1.25; }
}
.field-error { color: var(--danger); font-size: 14px; min-height: 0; margin-top: 8px; }

/* module cards; the stage beside the conversation shows the selected topics */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.module-card {
  position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong); background: rgba(242, 240, 233, 0.03); box-shadow: inset 0 3px 0 var(--c);
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
  animation: fadeIn 0.3s ease-out both;
}
.widget.instant .module-card { animation: none; }
.module-card:hover { transform: translateY(-4px); }
.module-card[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); box-shadow: inset 0 3px 0 var(--c), 0 0 0 1px var(--c); }
.module-card .body { display: block; padding: 22px 18px 18px; }
.module-card h3 { margin: 0; padding-right: 30px; font-size: 17px; line-height: 1.2; letter-spacing: -0.015em; }
.module-card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.module-card .tick {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s;
}
.module-card .tick svg { width: 14px; height: 14px; stroke: #11110f; stroke-width: 3; fill: none; opacity: 0; transition: opacity 0.2s; }
.module-card[aria-pressed="true"] .tick { background: var(--c); border-color: transparent; }
.module-card[aria-pressed="true"] .tick svg { opacity: 1; }

.ask.other { margin-top: 12px; }
.legend { margin: 0 0 10px; color: var(--dim); font-size: 13px; }
.module-card .duration { display: block; margin-top: 10px; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.subhead { margin: 18px 0 10px; font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

/* summary card */
.recap { display: grid; gap: 10px; }
.recap-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(242, 240, 233, 0.03); }
.recap-row b { display: block; }
.recap-row span { color: var(--muted); font-size: 14px; }
.recap-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 10px; }

/* skip / toast */
.skip {
  position: fixed; right: clamp(16px, 4vw, 48px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 12;
  border: 1px solid var(--line-strong); background: rgba(13, 13, 11, 0.6); border-radius: 999px; padding: 9px 18px; color: var(--muted); font-size: 14px;
}
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; transform: translateX(-50%);
  padding: 13px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 15px; max-width: min(92vw, 520px);
}
.toast.error { border-color: var(--danger); }
.noscript { position: relative; z-index: 5; padding: 120px 24px; text-align: center; }

/* ---- responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .shade { background: linear-gradient(90deg, rgba(13, 13, 11, 0.95) 0%, rgba(13, 13, 11, 0.85) 55%, rgba(13, 13, 11, 0.2) 85%); }
  .stage-slot { right: 0; width: 38vw; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shade { background: linear-gradient(180deg, rgba(13, 13, 11, 0.2) 0%, rgba(13, 13, 11, 0.86) 34%, rgba(13, 13, 11, 0.94) 100%); }
  .stage-slot { top: 64px; right: 0; left: 0; width: 100%; height: 30vh; transform: none; }
  .chatting .shade { background: rgba(13, 13, 11, 0.86); }
  .chatting.shade-off .shade { opacity: 1; background: rgba(13, 13, 11, 0.3); }
  .page { padding-top: calc(28vh + 40px); }
  .hero { min-height: auto; }
  .hero .lead { margin-top: 14px; font-size: 16px; }
  .hero-actions { margin-top: 20px; gap: 12px; }
  .topbar-link { padding: 5px 10px; font-size: 12px; }
  /* in the conversation the logo alone leaves room for the topic button and progress */
  .chatting .brand-name { display: none; }
  .topbar { gap: 12px; }
  .topbar-right { gap: 10px; }
  .chatting .progress { width: 64px; }
  .widget { margin-left: 0; }
  .msg { grid-template-columns: 30px 1fr; gap: 10px; }
  .msg .avatar { width: 30px; height: 30px; }
  .msg .avatar img { width: 17px; }
  .modules { grid-template-columns: 1fr; }
  .module-card { flex-direction: row; align-items: center; }
  .module-card .body { padding: 16px 48px 16px 18px; }
  .progress { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* Answers can be corrected without restarting the conversation. */
.me .answer-edit { display: inline-block; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 10px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.me .answer-edit:hover { color: var(--cream); }

/* a second tab of the same conversation became outdated */
.stale-notice { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 16px; width: min(92vw, 620px); padding: 14px 16px 14px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--danger); font-size: 15px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.stale #thread { opacity: 0.5; }
@media (max-width: 760px) { .stale-notice { flex-direction: column; align-items: flex-start; } }

/* ---- conversation layout ----------------------------------------------------------------------
   On wide screens the question column and a compact stage sit side by side and are centred together.
   Below that the stage becomes a small emblem under the top bar and never pushes the question down. */
.stage-slot { transition: left 0.8s var(--ease), top 0.8s var(--ease), width 0.8s var(--ease), height 0.8s var(--ease); }
.chatting { --gutter: clamp(16px, 4vw, 48px); --gap: 56px; --stage-w: clamp(300px, 30vw, 520px); }
@media (min-width: 960px) {
  .chatting { --chat-w: min(900px, calc(100vw - 2 * var(--gutter) - var(--stage-w) - var(--gap))); --frame-left: calc((100vw - var(--chat-w) - var(--gap) - var(--stage-w)) / 2); }
  .chatting .chat { max-width: none; width: var(--chat-w); margin-left: calc(var(--frame-left) - var(--gutter)); }
  .chatting .stage-slot { left: calc(var(--frame-left) + var(--chat-w) + var(--gap)); right: auto; top: 50%; width: var(--stage-w); height: min(64vh, 600px); transform: translateY(-50%); }
}
@media (max-width: 1279px) {
  .chatting .brand-name { display: none; }
  .chatting .save-status { font-size: 0; gap: 0; }
  .chatting .save-status[data-state="offline"] { font-size: 12px; gap: 6px; }
}
@media (max-width: 959px) {
  /* the emblem sits in the free middle of the top bar, drawn above it; "Soru 4/22" replaces the bar */
  .chatting #scene { z-index: 11; pointer-events: none; }
  .chatting .stage-slot { top: calc(8px + env(safe-area-inset-top, 0px)); left: 58px; right: auto; width: min(120px, calc(100vw - 290px)); height: 52px; transform: none; }
  .chatting .progress { display: none; }
  .chatting .page { padding-top: calc(92px + var(--notice, 0px) + env(safe-area-inset-top, 0px)); }
  html:has(body.chatting) { scroll-padding-top: calc(72px + var(--notice, 0px) + env(safe-area-inset-top, 0px)); }
  /* choosing topics is the show moment: the stage becomes a band under the top bar (and under the
     connection message when it is shown), over a dark backdrop; scrolling keeps content below the band */
  .chatting.stage-feature .stage-slot { top: calc(56px + var(--notice, 0px) + env(safe-area-inset-top, 0px)); left: 0; width: 100%; height: 24vh; }
  .chatting.stage-feature .stage-backdrop { opacity: 1; }
  .chatting.stage-feature .page { padding-top: calc(80px + 24vh + var(--notice, 0px) + env(safe-area-inset-top, 0px)); }
  html:has(body.chatting.stage-feature) { scroll-padding-top: calc(80px + 24vh + var(--notice, 0px) + env(safe-area-inset-top, 0px)); }
  .chatting .chat { max-width: 900px; }
}
.chatting .shade { opacity: 0; }

/* the question waiting for an answer stands out; answers keep their size */
.msg .text { max-width: 780px; transition: font-size 0.3s var(--ease); }
.msg.is-active .text { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.msg.is-active .text .q-hint { font-size: 16px; font-weight: 400; letter-spacing: 0; }

/* select-all-that-apply: one aligned column of equal boxes with a clear check */
.choices.list { display: grid; gap: 8px; max-width: 780px; }
.choices.list .choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; }
.choices.list .choice::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  background: transparent center / 14px no-repeat; transition: background-color 0.2s, border-color 0.2s;
}
.choices.list .choice[aria-pressed="true"] { box-shadow: none; }
.choices.list .choice[aria-pressed="true"]::before {
  background-color: var(--cream); border-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%2311110f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* where the respondent is */
.where { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .where { font-size: 12px; }
  .where-name { display: none; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  /* the question column is narrow here: topic cards stack */
  .chatting .modules { grid-template-columns: 1fr; }
  .chatting .module-card .body { padding: 16px 48px 16px 18px; }
}

/* behind the large mobile stage band, so the conversation scrolling underneath does not show through */
.stage-backdrop {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  height: calc(80px + 24vh + var(--notice, 0px) + env(safe-area-inset-top, 0px)); background: linear-gradient(180deg, var(--ink) 88%, rgba(13, 13, 11, 0));
}

/* the connection message gets its own row under the top bar instead of squeezing the buttons */
@media (max-width: 1279px) {
  .chatting .save-status[data-state="offline"] {
    position: fixed; z-index: 12; top: calc(60px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 12px; white-space: normal;
    background: var(--panel); border: 1px solid var(--danger); font-size: 13px; line-height: 1.35; gap: 8px;
  }
}

/* optional program / firm detail under an answer that says the work runs in a program or at a firm */
.source { margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-strong); display: grid; gap: 12px; max-width: 780px; }
.source .legend { margin: 0; }
.source .choice { font-size: 14px; padding: 9px 14px; border-radius: 12px; }
.source .field { display: grid; gap: 6px; }
.source .field label { font-size: 14px; color: var(--muted); }
.source .hint { margin: 0; font-size: 13px; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--cream); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.chip:hover { border-color: var(--cream); }

/* where a topic stands; the tick only says it is selected */
.module-card .topic-progress { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.module-card .topic-progress[data-progress="devam"], .module-card .topic-progress[data-progress="son"] { color: var(--cream); border-color: var(--muted); }
.module-card .topic-progress[data-progress="tamam"] { color: #11110f; background: var(--c); border-color: var(--c); font-weight: 600; }

/* closing overview: review every answer without reopening a finished topic */
.btn-quiet { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.recap-hint { margin: 12px 0 0; }
.review { display: grid; gap: 14px; margin-top: 14px; }
.review-module { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.review-module h4 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.review-module h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.review-module ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.review-module li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.review-module li span { color: var(--muted); grid-column: 1; }
.review-module li b { font-weight: 500; grid-column: 1; }
.review-module li .answer-edit, .review-note .answer-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.review-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.review .answer-edit { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 8px 6px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.review .answer-edit:hover { color: var(--cream); }

/* ---- SoSo Labs Start ---------------------------------------------------------------------------- */
.workspace-name { font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
@media (max-width: 760px) { .chatting .workspace-name { display: none; } }
.start-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding-top: 96px; padding-bottom: 48px; }
.start-logo { width: min(340px, 64vw); height: min(30vh, 300px); display: grid; place-items: center; }
.start-logo img { width: 70%; height: auto; }
.entry { width: min(560px, 100%); }
.code-form { max-width: 460px; margin-left: auto; margin-right: auto; }
.entry h1 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.entry .lead { margin: 12px auto 0; }
.code-form { margin-top: 26px; display: grid; gap: 10px; text-align: left; }
.code-form label { font-size: 14px; color: var(--muted); }
.code-form input {
  padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(242, 240, 233, 0.04);
  color: var(--cream); font: 600 18px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase;
}
.code-form input:focus { outline: none; border-color: var(--cream); box-shadow: 0 0 0 3px rgba(242, 240, 233, 0.1); }
.code-form .field-error { margin: 0; min-height: 1.3em; }
.entry-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.opening { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
