/* Wordbook design system — recreated from the design handoff prototype.
   Tokens on :root; dark theme via media query + [data-theme] override. */
:root {
  --accent: #2A78D6;
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --ink: #1C1C1E;
  --muted: #8A8A8E;
  --line: #ECEBE8;
  --amber: #D89032;
  --green: #0F9D77;
  --danger: #C24A3F;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416; --card: #1E1E21; --ink: #F2F2F0; --muted: #98989E; --line: #2A2A2E;
  }
}
:root[data-theme="light"] {
  --bg: #F7F6F3; --card: #FFFFFF; --ink: #1C1C1E; --muted: #8A8A8E; --line: #ECEBE8;
}
:root[data-theme="dark"] {
  --bg: #141416; --card: #1E1E21; --ink: #F2F2F0; --muted: #98989E; --line: #2A2A2E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }
a { color: var(--accent); text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
input:focus, textarea:focus { outline: none; border-color: var(--accent) !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { outline: none; }

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- app shell ---------- */
.screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.word-list, .form-scroll, .session-scroll { min-height: 0; }

/* ---------- shared header ---------- */
.appbar, .words-top .bar {
  display: flex;
  align-items: center;
}
.appbar {
  padding: 6px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 24px; flex: none;
}
.icon-btn.muted { color: var(--muted); }
.title { flex: 1; font-size: 19px; font-weight: 700; }
.title.center { text-align: center; }
.text-btn { color: var(--accent); font-size: 14.5px; font-weight: 600; min-height: 44px; padding: 0 4px; }

.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}

/* ---------- login ---------- */
.login-screen { justify-content: center; padding: 0 36px; gap: 28px; align-items: center; text-align: center; }
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.login-screen h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.login-sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.login-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.login-form input {
  height: 52px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 16px; font-size: 16px; background: var(--card); width: 100%;
}
.footnote { font-size: 12.5px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; }

/* ---------- buttons ---------- */
.btn-primary {
  width: 100%; height: 56px; border-radius: 14px; background: var(--accent);
  color: #fff; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.btn-primary.h52 { height: 52px; border-radius: 12px; }
.btn-outline {
  height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.btn-outline.accent { color: var(--accent); font-weight: 600; }

/* ---------- dashboard ---------- */
.dash-header { padding: 26px 22px 4px; display: flex; align-items: baseline; justify-content: space-between; }
.dash-header .wordmark { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.dash-header .date { font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 16px 22px 0; }
.stat {
  background: var(--card); border-radius: 14px; padding: 16px 14px;
  border: 1px solid var(--line); color: var(--ink);
}
.stat b { display: block; font-size: 26px; font-weight: 700; }
.stat.s-new b { color: var(--accent); }
.stat.s-revisit b { color: var(--amber); }
.stat.s-familiar b { color: var(--green); }
.stat span { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: block; }
.dash-ctas { padding: 18px 22px 0; display: flex; flex-direction: column; gap: 10px; }
.dash-secondary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.allwords-card {
  margin: 20px 22px 0; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; color: var(--ink);
}
.allwords-card b { font-size: 16px; font-weight: 600; }
.allwords-card span { font-size: 14px; color: var(--muted); }
.dash-section { padding: 26px 22px 0; }
.dash-section:last-child { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.dash-section .head { display: flex; align-items: center; justify-content: space-between; }
.card-rows { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card-rows .row {
  min-height: 52px; padding: 0 18px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--ink);
}
.card-rows .row:last-child { border-bottom: none; }
.card-rows .row b { font-size: 15.5px; font-weight: 500; }
.card-rows .row span { font-size: 13.5px; color: var(--muted); }
.share-row { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.share-row:last-child { border-bottom: none; }
.share-row .top { display: flex; align-items: baseline; justify-content: space-between; }
.share-row .top b { font-size: 15px; font-weight: 600; }
.share-row .top span { font-size: 12.5px; color: var(--muted); }
.share-row .url { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-family: var(--mono); word-break: break-all; }
.share-row .actions { display: flex; gap: 18px; margin-top: 9px; }
.share-row .actions button { font-size: 13px; font-weight: 600; padding: 2px 0; }
.share-row .actions .copy { color: var(--accent); }
.share-row .actions .view { color: var(--muted); }
.share-row .actions .revoke { color: var(--danger); }
.empty-note { font-size: 13.5px; color: var(--muted); padding: 6px 2px; }

/* ---------- words screen ---------- */
.words-top {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 0; z-index: 5;
}
.words-top .bar { display: flex; align-items: center; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1 1 34%; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 15px; background: var(--card); min-width: 0;
}
.search-row select {
  flex: 1 1 33%; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font-size: 14px; padding: 0 6px; min-width: 0;
}
.pos-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 20px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.small-btn { min-height: 24px; font-size: 13px; padding: 0; }
.pos-actions { display: flex; align-items: center; gap: 16px; }
.size-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.size-chips { display: flex; gap: 6px; }
.size-chip {
  min-width: 40px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--muted); background: transparent;
}
.size-chip.on {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
}
.word-list { flex: 1; overflow-y: auto; background: var(--card); }

.wrow { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* Leaving the filter: collapse the row away rather than blinking it out. */
.wrow.removing {
  max-height: 0 !important; opacity: 0;
  transition: max-height .24s ease, opacity .18s ease;
  pointer-events: none;
}
.wrow .backdrop { position: absolute; inset: 0; display: flex; align-items: stretch; justify-content: space-between; }
.wrow .backdrop .bump-bg {
  display: flex; align-items: center; padding: 0 20px; font-size: 13.5px; font-weight: 700;
  background: color-mix(in oklab, var(--accent) 16%, var(--card)); color: var(--accent);
}
/* Swipe-left reveals the two statuses the word is not in; tap to move it. */
.wrow .backdrop .status-actions { display: flex; align-items: stretch; }
.wrow .status-act {
  width: 92px; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; color: #fff;
}
.wrow .status-act.st-new { background: var(--accent); }
.wrow .status-act.st-revisit { background: var(--amber); }
.wrow .status-act.st-familiar { background: var(--green); }
.wrow .slide {
  position: relative; background: var(--card);
  touch-action: pan-y; cursor: pointer;
}
.wrow .head { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 20px; }
.wrow .head-spacer { flex: 1; min-width: 8px; }
/* List membership sits at the right edge of the word's own row, collapsed or not. */
.pills { display: flex; gap: 5px; flex: none; max-width: 45%; overflow: hidden; justify-content: flex-end; }
.pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--pill); background: color-mix(in oklab, var(--pill) 14%, var(--card));
  max-width: 110px; overflow: hidden; text-overflow: ellipsis;
}
.wrow .headword {
  font-family: var(--serif); font-size: 22px; font-weight: 650;
  letter-spacing: -0.01em; line-height: 1.3;
}
.wrow .cb {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  border: 1.5px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px;
}
.wrow .cb.on { border-color: var(--accent); background: var(--accent); }
.wrow .body { padding: 2px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.phonetic { font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.prompt-word + .phonetic { font-size: 16px; margin-top: -6px; }
.answer-word + .phonetic { font-size: 15px; margin-top: -6px; }
.wrow .meaning { font-size: 15.5px; line-height: 1.55; }
.wrow .meaning .pos { font-style: italic; color: var(--accent); margin-right: 8px; }
/* Full-width so the whole row is a tap target, not just the label + arrow. */
.subtoggle {
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  min-height: 36px; width: 100%; margin: -4px 0;
}
.subtoggle .arrow { font-size: 10px; }
.zh-lines { font-size: 15px; line-height: 1.6; }
.examples { display: flex; flex-direction: column; gap: 8px; }
.example {
  border-left: 2px solid var(--line); padding-left: 12px;
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.wrow .photo-thumb {
  width: 120px; height: 80px; border-radius: 10px; border: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.wrow .foot { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.status-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-label.new { color: var(--accent); }
.status-label.revisit { color: var(--amber); }
.status-label.familiar { color: var(--green); }
.wrow .foot .spacer { flex: 1; }
.wrow .foot button, .wrow .foot a { font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 6px 0; }

.loading-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px; color: var(--muted); font-size: 13px;
}
.spinner {
  width: 14px; height: 14px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
.end-marker { text-align: center; padding: 22px; color: var(--muted); font-size: 13px; }
.list-spacer { height: calc(80px + env(safe-area-inset-bottom)); }

.batch-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.batch-bar button { width: 100%; height: 50px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; }

/* ---------- bottom sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 20; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
  animation: sheetUp .28s cubic-bezier(.22,.9,.3,1);
  max-height: 80dvh; overflow-y: auto;
}
.sheet .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto; flex: none; }
.sheet h2 { font-size: 17px; font-weight: 700; }
.sheet .sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
.sheet .rows .srow {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 50px; border-bottom: 1px solid var(--line); width: 100%; text-align: left;
}
.sheet .rows .srow:last-child { border-bottom: none; }
.sheet .rows .srow b { font-size: 15.5px; font-weight: 500; }
.sheet .rows .srow span { font-size: 13px; color: var(--muted); }
.sheet .rows a.srow { color: var(--ink); min-height: 56px; }
.sheet .rows a.srow span { max-width: 55%; text-align: right; }
.newlist-row { display: flex; gap: 8px; }
.newlist-row input {
  flex: 1; height: 46px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 15px; background: var(--bg); min-width: 0;
}
.newlist-row button { height: 46px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600; }
.field-label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet select {
  height: 46px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); font-size: 15px; padding: 0 12px; width: 100%;
}
.expiry-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.expiry-chip {
  height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--muted); background: transparent;
}
.expiry-chip.on {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 30;
  background: #26262A; color: #fff; border-radius: 12px; padding: 12px 18px;
  font-size: 14px; display: flex; align-items: center; gap: 16px;
  white-space: nowrap; animation: toastIn .25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 92vw;
}
.toast .undo { color: #5BD6AE; font-weight: 700; cursor: pointer; }

/* ---------- review / test session ---------- */
.session-bar { display: flex; align-items: center; padding: 6px 14px; }
.session-bar .close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 20px; }
.session-bar .progress-text { flex: 1; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.session-bar .spacer44 { width: 44px; }
.progress-track { height: 3px; margin: 0 22px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }
.session-scroll { flex: 1; overflow-y: auto; padding: 0 28px; }
.prompt-block {
  min-height: 34vh; display: flex; flex-direction: column;
  justify-content: center; gap: 14px; padding: 24px 0;
}
.prompt-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prompt-label .scope { color: var(--accent); }
.prompt-word { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; text-wrap: pretty; }
.prompt-word.meaning-prompt { font-size: 26px; }
.prompt-word .pos { font-style: italic; color: var(--accent); font-size: .7em; margin-right: 8px; }
.typed-input {
  height: 52px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 16px; font-size: 18px; background: var(--card); width: 100%;
}
.check-result { font-size: 15px; font-weight: 600; margin-top: 10px; }
.check-result.good { color: var(--accent); }
.check-result.bad { color: var(--danger); }
.answer-block { border-top: 1px solid var(--line); padding: 20px 0 16px; display: flex; flex-direction: column; gap: 12px; }
.answer-word { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.answer-block .meaning { font-size: 16px; line-height: 1.55; }
.answer-block .meaning .pos { font-style: italic; color: var(--accent); margin-right: 8px; }
.answer-block .zh-inline { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.card-photo {
  width: 100%; max-width: 260px; aspect-ratio: 3 / 2; border-radius: 12px;
  border: 1px solid var(--line); background-size: cover; background-position: center;
}
.session-dock { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.grade-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grade-row button { height: 56px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.grade-noclue { background: #F6E3E1; color: #B4453A; }
.grade-notsure { background: #F5EAD8; color: #A5701F; }
.grade-familiar { background: color-mix(in oklab, var(--accent) 16%, var(--card)); color: var(--accent); }
.done-state {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 0 36px; text-align: center;
}
.done-circle {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 36px; display: flex; align-items: center;
  justify-content: center; animation: pop .5s ease;
}
.done-state h1 { font-size: 24px; font-weight: 700; }
.done-state .summary { font-size: 15px; color: var(--muted); line-height: 1.6; }
.done-state .home-btn {
  height: 50px; padding: 0 32px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; color: var(--ink);
}

/* ---------- add / edit ---------- */
.form-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 150px; display: flex; flex-direction: column; gap: 22px; }
.hero-input {
  border: none; border-bottom: 1.5px solid var(--line); border-radius: 0;
  padding: 4px 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 700;
  background: transparent; letter-spacing: -0.01em; width: 100%;
}
.phonetic-input {
  border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0; font-size: 15px; color: var(--muted);
  background: transparent; width: 100%; margin-top: 10px;
}
.meaning-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.meaning-card .mhead { display: flex; align-items: center; justify-content: space-between; }
.meaning-card .mlabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meaning-card .remove { font-size: 13px; color: var(--danger); padding: 4px 0 4px 12px; }
.pos-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-chip {
  height: 32px; padding: 0 13px; display: flex; align-items: center;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--muted); background: transparent;
}
.pos-chip.on {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
}
.meaning-card input, .meaning-card textarea {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
}
.meaning-card input { height: 46px; padding: 0 14px; font-size: 15.5px; width: 100%; }
.meaning-card textarea { padding: 12px 14px; font-size: 14.5px; resize: vertical; line-height: 1.55; width: 100%; }
.add-meaning-tile {
  height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--line); border-radius: 14px;
  font-size: 14.5px; font-weight: 600; color: var(--accent); width: 100%;
}
.photo-row { display: flex; gap: 12px; align-items: flex-start; }
.photo-wrap { position: relative; width: 110px; height: 76px; flex: none; }
.photo-wrap .img {
  width: 110px; height: 76px; border-radius: 12px; border: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.photo-wrap .x {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--ink); color: var(--card); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.photo-picker {
  width: 110px; height: 76px; flex: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  border: 1.5px dashed var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.note-input { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 15px; background: var(--card); width: 100%; }
.delete-row {
  height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid #EAD5D2; color: var(--danger);
  font-size: 15px; font-weight: 600; margin-top: 6px; width: 100%;
}
.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.save-bar button {
  width: 100%; height: 54px; border-radius: 14px; background: var(--accent);
  color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.status-chip-line { margin-top: 10px; }

/* iPad and up: center content column */
@media (min-width: 700px) {
  .screen > *, .word-list, .words-top, .batch-bar > *, .save-bar > * { max-width: 720px; margin-left: auto; margin-right: auto; width: 100%; }
  .sheet { max-width: 560px; left: 50%; right: auto; transform: translateX(-50%); }
  @keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
}
