/* Make It Pop: a designer's desk. Warm paper, black ink, and a yellow highlighter. */

:root {
  --paper: #FBF8F1;
  --paper-deep: #F3EEE3;
  --ink: #1D1C1A;
  --muted: #625D55;
  --line: #E8E1D3;
  --card: #FFFFFF;
  --field: #FFFDF8;
  --highlighter: #FFE066;
  --tomato: #C8371C;
  --tomato-deep: #A82D16;
  --tomato-tint: #FBE9E4;
  --tomato-ink: #8E2A16;
  --green: #2E7D4F;
  --green-tint: #E6F2EA;
  --green-ink: #1F5E3A;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(29, 28, 26, 0.04), 0 12px 32px -20px rgba(29, 28, 26, 0.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  background-color: var(--paper);
  /* Dot-grid notebook paper. */
  background-image: radial-gradient(rgba(29, 28, 26, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

.page { max-width: 1120px; margin: 0 auto; padding: 48px 20px 40px; }

/* ---------- Header ---------- */

.masthead { max-width: 760px; margin-bottom: 28px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* The highlighter stroke: slightly uneven ends, a little tilt, like a real marker. */
.marker,
.hl {
  background-image:
    linear-gradient(104deg, rgba(255, 224, 102, 0) 0.9%, rgba(255, 224, 102, 1) 2.4%, rgba(255, 224, 102, 0.8) 5.8%, rgba(255, 224, 102, 0.55) 93%, rgba(255, 224, 102, 0.85) 96%, rgba(255, 224, 102, 0) 98%),
    linear-gradient(183deg, rgba(255, 224, 102, 0) 0%, rgba(255, 224, 102, 0.35) 7.9%, rgba(255, 224, 102, 0) 15%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.marker {
  display: inline-block;
  padding: 0 0.18em;
  margin: 0 -0.04em;
  border-radius: 0.5em 0.2em;
  transform: rotate(-2deg);
}

.promise { margin: 16px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 620px; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.steps li { display: flex; align-items: center; gap: 8px; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Cards and inputs ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input-card { padding: 20px; }

.input-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.input-label { display: block; font-weight: 700; }
.shot-btn { display: inline-flex; align-items: center; gap: 7px; }

.shot-status { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.shot-status.is-busy::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid var(--line);
  border-top-color: var(--tomato);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.shot-status.is-done { color: var(--green-ink); font-weight: 500; }
.shot-status.is-error { color: var(--tomato-ink); font-weight: 500; }
.input-card.is-dropping textarea { border-color: var(--tomato); border-style: dashed; background: var(--tomato-tint); }
.input-card.is-reading .shot-btn { pointer-events: none; opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  resize: vertical;
}

textarea::placeholder { color: #766F65; }

.input-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.samples-label { font-size: 0.9rem; color: var(--muted); margin-right: 2px; }

.decode-wrap { display: flex; align-items: center; gap: 12px; }
.shortcut { font-size: 0.8rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  font: 500 0.95rem/1 var(--sans);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { background: var(--paper-deep); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--tomato);
  border-color: var(--tomato);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(200, 55, 28, 0.7);
}

.btn-primary:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }
.btn-large { padding: 14px 30px; font-size: 1.05rem; }
.btn-small { padding: 8px 14px; font-size: 0.88rem; }
.btn-ghost { border-color: var(--line); background: var(--card); }

.btn:disabled,
.btn:disabled:hover {
  cursor: not-allowed;
  background: #E9E3D8;
  border-color: #E9E3D8;
  color: #8F887E;
  box-shadow: none;
}

.link-btn {
  font: 500 0.85rem/1.2 var(--sans);
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(98, 93, 85, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid rgba(200, 55, 28, 0.45); outline-offset: 2px; }
textarea:focus-visible { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(200, 55, 28, 0.18); }

/* ---------- Screens ---------- */

.screen:not([hidden]) { animation: screen-in 0.35s ease both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 248, 241, 0.97);
  border-bottom: 1px solid var(--line);
}

.appbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appbar-mark { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.appbar-mark .marker { padding: 0 0.14em; }

.page-work { padding-top: 28px; }

.round-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.round-title { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.round-title:focus { outline: none; }

.summary { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-ask { background: var(--tomato-tint); color: var(--tomato-ink); }
.chip-ready { background: var(--green-tint); color: var(--green-ink); }

/* The three steps of a feedback round */

.round {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.round-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.round-btn:hover { border-color: #CFC6B6; transform: translateY(-1px); }

.round-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.round-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.round-name { font-weight: 700; }
.round-status { font-size: 0.88rem; color: var(--muted); }
.round-bar { display: block; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.round-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width 0.3s ease; }

.round-step.is-next .round-btn { border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(200, 55, 28, 0.12), var(--shadow); }
.round-step.is-next .round-num { background: var(--tomato); color: #fff; }
.round-step.is-done .round-num { background: var(--green); color: #fff; font-size: 0; }
.round-step.is-done .round-num::after { content: "\2713"; font-size: 0.95rem; }
.round-step.is-done .round-status { color: var(--green-ink); font-weight: 500; }

/* Phone tabs between the two lists */

.tabs { display: none; }

.tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.92rem/1.2 var(--sans);
  cursor: pointer;
}

.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-count { opacity: 0.75; margin-left: 2px; }

.lists { display: grid; gap: 20px; }

@media (min-width: 820px) {
  .lists { grid-template-columns: 1.08fr 1fr; align-items: start; }
}

.list { padding: 20px 20px 8px; }

.list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}

.list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.list-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.list-ask .list-icon { background: var(--tomato-tint); color: var(--tomato-ink); }
.list-ready .list-icon { background: var(--green-tint); color: var(--green-ink); }

.count { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); }
.list-hint { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 16px 0; border-top: 1px dashed var(--line); }

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

.kind-label, .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kind-label { background: var(--tomato-tint); color: var(--tomato-ink); }
.tag { background: var(--paper-deep); color: var(--muted); }

.quote { margin: 10px 0 12px; font-size: 1.08rem; line-height: 1.55; }

.hl {
  color: inherit;
  padding: 0.05em 0.28em;
  margin: 0 -0.06em;
  border-radius: 0.6em 0.25em;
}

.question {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--tomato);
  border-radius: 0 10px 10px 0;
  background: #FFF7F4;
  color: #3A3733;
}

.question-label { font-weight: 700; color: var(--tomato-ink); }

/* Ready list */

.progress { margin: 0 0 10px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 0.3s ease; }
.progress-text { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); }

.all-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-ink);
  font-weight: 700;
  animation: rise 0.3s ease both;
}

.all-done p { margin: 0; }

.task { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }

.task input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 2px solid #BDB4A5;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.task input::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s ease;
}

.task input:checked { background: var(--green); border-color: var(--green); }
.task input:checked::after { transform: rotate(45deg) scale(1); }

.task-text { font-size: 1.02rem; transition: color 0.2s ease; }
.is-done .task-text { color: #766F65; text-decoration: line-through; text-decoration-color: rgba(29, 28, 26, 0.35); }

.item-meta { margin: 8px 0 0 34px; }

.empty { margin: 4px 0 16px; padding: 14px; border-radius: 10px; background: var(--paper); color: var(--muted); }

.nothing-found {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px dashed #CFC6B6;
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
}

/* ---------- Footer and toast ---------- */

.footer { margin-top: 48px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.footer strong { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: calc(100% - 32px);
  text-align: center;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45);
  animation: rise 0.25s ease both;
}

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

.toast { animation-name: toast-rise; }

@keyframes toast-rise {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Sheets (send questions, report) ---------- */

body.has-sheet { overflow: hidden; }

.sheet {
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100% - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(29, 28, 26, 0.55);
  overflow: hidden;
}

.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.25s ease both; }
.sheet-wide { max-width: 860px; }
.sheet::backdrop { background: rgba(29, 28, 26, 0.45); }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

.sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 1.4rem; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover { background: var(--paper-deep); }

.sheet-body { padding: 16px 20px; overflow-y: auto; flex: 1; background: var(--paper); }
.sheet-hint { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* The message as it will look in the chat */
textarea.bubble {
  min-height: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 14px 14px 4px 14px;
  background: #DCF4CE;
  color: #1B2B17;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.btn-green, .btn-whatsapp {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.btn-green:hover, .btn-whatsapp:hover { background: var(--green-ink); border-color: var(--green-ink); }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.field { display: grid; gap: 4px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }

.field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--sans);
}

.field input:focus-visible { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(200, 55, 28, 0.18); }

/* ---------- The report document (preview and PDF) ---------- */

.doc-wrap { border-radius: 12px; box-shadow: 0 1px 0 rgba(29, 28, 26, 0.04), 0 10px 30px -18px rgba(29, 28, 26, 0.4); }

.doc {
  padding: 28px 30px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
}

.doc-eyebrow { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tomato-ink); }
.doc-title { margin: 4px 0 10px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }

.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; font-size: 0.88rem; }
.doc-meta div { display: flex; gap: 6px; }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; font-weight: 700; }

.doc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 10px; }
.doc-stat { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.doc-num { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.doc-label { display: block; font-size: 0.78rem; color: var(--muted); }
.doc-stat.is-done { background: var(--green-tint); }
.doc-stat.is-done .doc-num { color: var(--green-ink); }
.doc-stat.is-waiting { background: var(--tomato-tint); }
.doc-stat.is-waiting .doc-num { color: var(--tomato-ink); }

.doc-bar { height: 6px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.doc-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }

.doc-sec { margin-top: 20px; }
.doc-sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.doc-sec h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.doc-review-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }

.doc-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

.sec-done .doc-mark { background: var(--green); color: #fff; }
.sec-doing .doc-mark { border: 2px solid #BDB4A5; color: transparent; }
.sec-waiting .doc-mark { background: var(--tomato-tint); color: var(--tomato-ink); }

.doc-body { flex: 1; min-width: 0; }
.doc-text { margin: 0; }
.doc-question { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); }
.doc-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.doc-box { flex: none; width: 18px; height: 18px; margin: 1px 14px 0 8px; border: 2px solid #BDB4A5; border-radius: 4px; }
.doc-note { margin: 18px 0 0; font-size: 0.85rem; color: var(--muted); }

.print-root { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Print: "Download PDF" saves only the report ---------- */

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .screen, .toast, dialog { display: none !important; }
  .print-root { display: block; }
  .print-root .doc { border: none; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Small screens ---------- */

@media (max-width: 819px) {
  .tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
  }
  .lists[data-tab="ask"] .list-ready,
  .lists[data-tab="ready"] .list-ask { display: none; }
  .fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .page { padding-top: 32px; }
  .page-work { padding-top: 20px; }
  .eyebrow { font-size: 0.76rem; padding: 4px 10px; }
  .promise { font-size: 1.05rem; }
  .input-card { padding: 16px; }
  .decode-wrap { width: 100%; }
  .decode-wrap .btn-large { flex: 1; }
  .shortcut { display: none; }
  .appbar-inner { padding: 8px 14px; }
  .appbar-mark { display: none; }
  .round { gap: 6px; }
  .round-btn { flex-direction: column; gap: 6px; padding: 10px; }
  .round-num { width: 26px; height: 26px; font-size: 0.8rem; }
  .round-name { font-size: 0.85rem; line-height: 1.2; }
  .round-status { font-size: 0.75rem; line-height: 1.25; }
  .list { padding: 16px 16px 4px; }
  .list-head { flex-direction: column; }
  .list-head .btn { align-self: stretch; }
  .lang-switch.lang-switch { width: 100%; flex-wrap: nowrap; }
  .lang-switch .seg { flex: 1; padding: 9px 6px; white-space: nowrap; }
  .lang-switch-label { display: none; }
  .sheet { width: 100%; max-width: none; max-height: 92%; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet-actions .btn { flex: 1; justify-content: center; text-align: center; }
  .fields { grid-template-columns: 1fr; }
  .doc { padding: 18px 16px; }
  .doc-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Question language switch */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  width: fit-content;
  max-width: 100%;
}

.lang-switch-label { padding: 0 6px 0 10px; font-size: 0.85rem; color: var(--muted); }

.seg {
  font: 500 0.85rem/1 var(--sans);
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.seg.is-active { background: var(--ink); color: #fff; }
.kind-label[title] { cursor: help; }
.chip-clarity { background: var(--ink); color: #fff; cursor: help; }
