:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f5f5f7; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-nav {
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-size: 17px; font-weight: 700; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.center-label { color: #86868b; font-size: 13px; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 84px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.heading-side { display: grid; justify-items: end; gap: 12px; }
.eyebrow, .kicker { margin: 0 0 8px; color: #6e6e73; font-size: 13px; font-weight: 650; }
.heading h1 { margin: 0; font-size: clamp(44px,6vw,72px); line-height: .98; letter-spacing: -.055em; }
.heading > div > p:last-child { margin: 20px 0 0; color: #6e6e73; font-size: 18px; }
.local-state { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; background: rgba(255,255,255,.72); color: #6e6e73; font-size: 12px; white-space: nowrap; }
.local-state span { width: 7px; height: 7px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 4px rgba(52,168,83,.12); }
.local-state b { font-weight: 500; }
.local-state[data-source="preview-cloud"] { border-color: rgba(0,113,227,.16); color: #245f91; background: #edf5ff; }
.local-state[data-source="preview-cloud"] span { background: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.page-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.page-actions button, .modal-actions button, .item-action {
  min-height: 34px; padding: 0 12px; border: 1px solid rgba(0,0,0,.09); border-radius: 10px;
  background: rgba(255,255,255,.82); color: #424245; font-size: 12px; font-weight: 600; cursor: pointer;
}
.page-actions button:hover, .modal-actions button:hover, .item-action:hover { background: #fff; border-color: rgba(0,0,0,.16); }
.page-actions button:disabled, .modal-actions button:disabled { cursor: default; opacity: .55; }
.notice { margin: -16px 0 22px; padding: 12px 15px; border: 1px solid rgba(52,168,83,.18); border-radius: 14px; background: #eef8f1; color: #28763d; font-size: 13px; }
.notice[data-tone="error"] { border-color: rgba(196,43,28,.17); background: #fff1ef; color: #a52b20; }
.notice[hidden] { display: none; }
.overview { display: grid; grid-template-columns: minmax(0,2.2fr) repeat(3,minmax(130px,.7fr)); gap: 14px; margin-bottom: 18px; }
.review-card, .library { border: 1px solid rgba(0,0,0,.055); background: rgba(255,255,255,.92); box-shadow: 0 12px 40px rgba(0,0,0,.035); }
.review-card { min-height: 144px; border-radius: 26px; }
.today-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; background: radial-gradient(circle at 92% 6%,rgba(0,113,227,.16),transparent 35%),#fff; }
.today-card h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.today-card h2 strong { color: #0071e3; font-size: 42px; letter-spacing: -.045em; }
.today-card p:last-child { margin: 8px 0 0; color: #86868b; font-size: 12px; }
.today-card button { min-height: 44px; padding: 0 19px; border: 0; border-radius: 999px; background: #e8e8ed; color: #86868b; font-size: 14px; font-weight: 700; }
.today-card button:not(:disabled) { background: #0071e3; color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(0,113,227,.2); }
.today-card button:not(:disabled):hover { background: #0077ed; }
.metric { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: #6e6e73; font-size: 13px; }
.metric strong { color: #1d1d1f; font-size: 36px; letter-spacing: -.04em; }
.library { min-height: 430px; padding: 30px; border-radius: 30px; }
.deleted-help { margin: 0; color: #86868b; font-size: 12px; }
.deleted-help strong { color: #1d1d1f; }
.deleted-list { display: grid; }
.deleted-library { min-height: 320px; }
.deleted-item { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(240px,1fr) auto; align-items: center; gap: 30px; padding: 22px 4px; border-bottom: 1px solid rgba(0,0,0,.075); }
.deleted-item:last-child { border-bottom: 0; }
.deleted-item h3 { margin: 0 0 5px; color: #424245; font-size: 18px; letter-spacing: -.018em; }
.deleted-item p { margin: 0; color: #86868b; font-size: 13px; }
.deleted-meta { line-height: 1.55; }
.restore-action { min-width: 82px; color: #0066cc; }
.back-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid rgba(0,0,0,.09); border-radius: 12px; background: #fff; color: #0066cc; font-size: 13px; text-decoration: none; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,0,0,.08); }
.toolbar h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.controls { display: flex; align-items: center; gap: 10px; }
.search { min-width: min(290px,34vw); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(0,0,0,.09); border-radius: 13px; background: #f5f5f7; color: #86868b; }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
select { height: 40px; padding: 0 34px 0 13px; border: 1px solid rgba(0,0,0,.09); border-radius: 13px; background: #f5f5f7; color: #1d1d1f; }
.item { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(280px,1.25fr) auto; gap: 30px; padding: 24px 4px; border-bottom: 1px solid rgba(0,0,0,.075); }
.item:last-child { border-bottom: 0; }
.meta { display: flex; align-items: center; gap: 8px; color: #86868b; font-size: 11px; }
.kind { padding: 4px 8px; border-radius: 999px; background: #edf5ff; color: #2466a8; font-weight: 650; }
.kind.collocation { background: #edf8f2; color: #287c52; }
.kind.pattern { background: #f1edf9; color: #6e4a9e; }
.item h3 { margin: 10px 0 5px; font-size: 20px; letter-spacing: -.018em; }
.meaning, .source p { margin: 0; }
.meaning { color: #424245; font-size: 14px; }
.source { align-self: center; padding-left: 18px; border-left: 2px solid #e8e8ed; }
.source p { color: #424245; font-size: 14px; line-height: 1.55; }
.source span { display: block; margin-top: 7px; overflow: hidden; color: #86868b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.item-actions { align-self: center; display: grid; gap: 7px; min-width: 82px; }
.item-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.source-link { color: #0066cc; }
.danger-link { color: #b42318; }
.loading { display: grid; gap: 12px; padding-top: 26px; }
.loading[hidden], .empty[hidden] { display: none; }
.loading span { height: 78px; border-radius: 18px; background: #f3f3f5; }
.empty { padding: 72px 20px 52px; text-align: center; }
.empty b { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: #edf5ff; color: #0071e3; font-size: 18px; }
.empty h3 { margin: 16px 0 8px; font-size: 19px; }
.empty p { margin: 0; color: #86868b; font-size: 13px; }
.modal { width: min(560px,calc(100vw - 32px)); max-height: min(84vh,760px); padding: 0; border: 0; border-radius: 24px; background: transparent; color: #1d1d1f; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.modal::backdrop { background: rgba(20,20,24,.34); backdrop-filter: blur(6px); }
.modal-card { display: grid; gap: 18px; margin: 0; padding: 26px; border: 1px solid rgba(0,0,0,.07); border-radius: 24px; background: #fff; }
.modal-card.compact { gap: 16px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.icon-close { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #f0f0f2; color: #6e6e73; font-size: 20px; cursor: pointer; }
.modal-copy { margin: 0; color: #6e6e73; font-size: 13px; line-height: 1.55; }
.modal-feedback { margin: 0; padding: 12px 13px; border: 1px solid rgba(196,43,28,.17); border-radius: 12px; background: #fff1ef; color: #a52b20; font-size: 12px; line-height: 1.55; }
.limit-grid { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: end; }
.limit-grid > label:not(.check-row), .edit-grid label, .modal-card > label { display: grid; gap: 7px; color: #6e6e73; font-size: 12px; font-weight: 600; }
.modal input:not([type="checkbox"]), .modal select, .modal textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(0,0,0,.11); border-radius: 11px; outline: 0; background: #f5f5f7; color: #1d1d1f; }
.modal textarea { min-height: 86px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: rgba(0,113,227,.55); box-shadow: 0 0 0 3px rgba(0,113,227,.1); }
.modal input:disabled { color: #86868b; opacity: .65; }
.check-row { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; color: #424245; font-size: 12px; }
.edit-grid { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.modal-actions button { min-height: 40px; padding: 0 17px; border-radius: 12px; }
.modal-actions .primary { border-color: #0071e3; background: #0071e3; color: #fff; }
.modal-actions .primary:hover { border-color: #0077ed; background: #0077ed; }
.modal-actions .danger { border-color: #c43228; background: #c43228; color: #fff; }
.modal-actions .danger:hover { border-color: #b42318; background: #b42318; }
.danger-text { color: #b42318; }
.warning { margin: 0; padding: 12px 13px; border-radius: 12px; background: #fff6e5; color: #7a4b00; font-size: 12px; line-height: 1.55; }
.import-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 0; }
.import-summary div { min-width: 0; padding: 12px 9px; border-radius: 12px; background: #f5f5f7; text-align: center; }
.import-summary dt { color: #86868b; font-size: 10px; line-height: 1.35; }
.import-summary dd { margin: 7px 0 0; font-size: 22px; font-weight: 700; }
[hidden] { display: none !important; }
.review-modal { width: min(780px,calc(100vw - 32px)); max-height: min(88vh,820px); padding: 0; border: 0; border-radius: 28px; background: transparent; color: #f5f5f7; box-shadow: 0 34px 100px rgba(0,0,0,.45); }
.review-modal::backdrop { background: rgba(8,10,12,.62); backdrop-filter: blur(12px); }
.review-shell { min-height: 570px; display: grid; grid-template-rows: auto 1fr; padding: 28px 30px 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; background: radial-gradient(circle at 92% 0,rgba(0,113,227,.13),transparent 30%),#111514; }
.review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.09); }
.review-heading .eyebrow { color: #a1a1a6; }
.review-stage { display: inline-flex; margin-top: 4px; color: #d2d2d7; font-size: 12px; font-weight: 650; }
.review-heading-actions { display: flex; align-items: center; gap: 8px; }
.review-heading-actions > button:not(.icon-close) { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.07); color: #d2d2d7; font-size: 12px; cursor: pointer; }
.review-heading .icon-close { background: rgba(255,255,255,.09); color: #d2d2d7; }
.review-question, .review-feedback, .review-complete { align-self: center; width: min(100%,650px); margin: 0 auto; padding: 38px 0 14px; }
.review-prompt { margin: 0 0 12px; color: #8e8e93; font-size: 14px; }
.review-question h2, .review-feedback h2, .review-complete h2 { margin: 0; color: #f5f5f7; font-size: clamp(30px,5vw,48px); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.review-answer { margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: rgba(255,255,255,.055); }
.review-answer strong { display: block; color: #fff; font-size: 19px; }
.review-answer p { margin: 14px 0 0; color: #e5e5e7; font-size: 15px; line-height: 1.55; }
.review-answer span { display: block; margin-top: 5px; color: #8e8e93; font-size: 13px; }
.review-preparing { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 14px; color: #a1a1a6; }
.review-preparing span { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.12); border-top-color: #2997ff; border-radius: 50%; animation: review-spin .8s linear infinite; }
.review-preparing p { margin: 0; font-size: 14px; }
@keyframes review-spin { to { transform: rotate(360deg); } }
.review-mode-note { margin: 14px 0 0; padding: 11px 13px; border: 1px solid rgba(255,159,10,.18); border-radius: 12px; background: rgba(255,159,10,.08); color: #ffb340; font-size: 12px; line-height: 1.5; }
.review-context { margin-top: 20px; color: #f5f5f7; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: clamp(24px,4vw,36px); line-height: 1.45; letter-spacing: -.018em; }
.review-context mark { padding: 1px 4px; border-radius: 6px; background: rgba(48,209,88,.17); color: #8ae8a2; }
.review-english-cue { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(41,151,255,.2); border-radius: 14px; background: rgba(0,113,227,.09); }
.review-english-cue span { display: block; color: #64b5ff; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.review-english-cue p { margin: 7px 0 0; color: #d9ecff; font-size: 14px; line-height: 1.55; }
.production-task { margin-top: 18px; padding: 20px 21px; border: 1px solid rgba(41,151,255,.22); border-radius: 18px; background: linear-gradient(145deg,rgba(0,113,227,.13),rgba(0,113,227,.055)); }
.production-task span, .production-hint span, .production-suggestion span { display: block; color: #64b5ff; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.production-task p { margin: 9px 0 0; color: #f5f5f7; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: clamp(22px,3.6vw,31px); line-height: 1.42; letter-spacing: -.015em; }
.production-instruction { margin: 10px 2px 0; color: #8e8e93; font-size: 12px; line-height: 1.5; }
.production-hint { margin-top: 12px; padding: 12px 15px; border: 1px solid rgba(255,159,10,.18); border-radius: 13px; background: rgba(255,159,10,.08); }
.production-hint span { color: #ffb340; }
.production-hint p { margin: 6px 0 0; color: #f2d5a2; font-size: 13px; line-height: 1.5; }
.production-form { display: grid; gap: 9px; margin-top: 18px; }
.production-form > label { color: #a1a1a6; font-size: 12px; font-weight: 650; }
.production-form textarea { width: 100%; min-height: 100px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; outline: 0; resize: vertical; background: rgba(255,255,255,.065); color: #fff; font-size: 16px; line-height: 1.55; }
.production-form textarea:focus { border-color: rgba(41,151,255,.7); box-shadow: 0 0 0 3px rgba(41,151,255,.12); }
.production-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-form > div > span { color: #6e6e73; font-size: 11px; }
.production-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.production-retry { margin-top: 14px; padding: 13px 15px; border: 1px solid rgba(255,159,10,.2); border-radius: 13px; background: rgba(255,159,10,.08); }
.production-retry strong { color: #ffb340; font-size: 13px; }
.production-retry p { margin: 6px 0 0; color: #d2d2d7; font-size: 12px; line-height: 1.5; }
.review-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 30px; }
.review-option { min-height: 64px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.055); color: #f5f5f7; text-align: left; line-height: 1.45; cursor: pointer; }
.review-option:hover { border-color: rgba(0,113,227,.78); background: rgba(0,113,227,.16); }
.review-option:disabled { cursor: default; opacity: .55; }
.review-tools, .recall-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.review-tools button, .recall-actions button, .primary-review { min-height: 42px; padding: 0 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.08); color: #f5f5f7; font-size: 13px; font-weight: 650; cursor: pointer; }
.review-tools .primary-review, .primary-review { border-color: #0071e3; background: #0071e3; color: #fff; }
#retryExamplesBtn, #retryProductionBtn { border-color: rgba(255,159,10,.28); color: #ffb340; }
.cloze-form { display: grid; gap: 24px; margin-top: 22px; }
.cloze-sentence { padding: 21px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.045); color: #f5f5f7; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: clamp(21px,3vw,30px); line-height: 1.8; }
.cloze-input { max-width: min(230px,70vw); min-width: 82px; margin: 0 5px; padding: 3px 8px 4px; border: 0; border-bottom: 2px solid #2997ff; border-radius: 7px 7px 2px 2px; outline: 0; background: rgba(0,113,227,.13); color: #fff; font-family: inherit; font-size: .86em; text-align: center; }
.cloze-input:focus { background: rgba(0,113,227,.23); box-shadow: 0 0 0 3px rgba(41,151,255,.13); }
.cloze-form > button { justify-self: end; }
.recall-actions { align-items: stretch; flex-wrap: wrap; justify-content: flex-start; }
.recall-actions p { flex: 0 0 100%; margin: 0 0 3px; color: #8e8e93; font-size: 12px; }
.review-feedback { text-align: center; }
.feedback-badges { display: flex; align-items: center; justify-content: center; gap: 8px; }
.feedback-mark { display: inline-flex; min-height: 31px; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(48,209,88,.13); color: #66df85; font-size: 12px; font-weight: 750; }
.feedback-mark[data-rating="hard"] { background: rgba(255,159,10,.14); color: #ffb340; }
.feedback-mark[data-rating="again"] { background: rgba(255,69,58,.14); color: #ff6961; }
.feedback-kind { display: inline-flex; min-height: 31px; align-items: center; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #a1a1a6; font-size: 11px; font-weight: 650; }
.feedback-answer { margin: 20px 0 0; padding: 28px 26px 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.055); text-align: left; }
.feedback-source { margin: 0; color: #f5f5f7; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: clamp(24px,3.7vw,34px); line-height: 1.4; letter-spacing: -.022em; overflow-wrap: anywhere; }
.feedback-source mark { padding: 1px 4px; border-radius: 6px; background: rgba(48,209,88,.17); color: #8ae8a2; }
.feedback-entry { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; margin-top: 21px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.feedback-entry strong { color: #d2d2d7; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.feedback-entry span { color: #8e8e93; font-size: 13px; line-height: 1.45; }
.feedback-answer[data-has-context="false"] .feedback-source { display: none; }
.feedback-answer[data-has-context="false"] .feedback-entry { margin-top: 0; padding-top: 0; border-top: 0; }
.feedback-answer[data-has-context="false"] .feedback-entry strong { color: #fff; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: clamp(30px,4.5vw,42px); line-height: 1.2; }
.production-feedback { margin-top: 13px; padding: 16px 17px; border: 1px solid rgba(41,151,255,.15); border-radius: 16px; background: rgba(0,113,227,.07); text-align: left; }
.production-feedback > p { margin: 0; color: #e5e5e7; font-size: 13px; line-height: 1.6; }
.production-quality { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.production-quality span { padding: 5px 8px; border-radius: 999px; background: rgba(48,209,88,.12); color: #7ee198; font-size: 10px; font-weight: 700; }
.production-quality span[data-quality="minor"] { background: rgba(255,159,10,.13); color: #ffb340; }
.production-quality span[data-quality="fail"] { background: rgba(255,69,58,.13); color: #ff6961; }
.production-suggestion { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.production-suggestion p { margin: 6px 0 0; color: #d9ecff; font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.5; }
.review-feedback .primary-review { margin-top: 22px; }
.review-complete { text-align: center; }
.review-complete > span { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 50%; background: rgba(48,209,88,.14); color: #66df85; font-size: 27px; }
.review-complete .eyebrow { color: #8e8e93; }
.review-complete > p:not(.eyebrow) { margin: 14px 0 26px; color: #a1a1a6; }
@media (max-width:900px) {
  .overview { grid-template-columns: repeat(3,1fr); }
  .today-card { grid-column: 1/-1; }
  .item { grid-template-columns: 1fr; gap: 16px; }
  .source { padding: 14px 0 0; border: 0; border-top: 1px solid #e8e8ed; }
  .item-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width:680px) {
  .center-label { display: none; }
  .shell { width: calc(100% - 28px); padding: 42px 0 64px; }
  .heading { display: grid; gap: 22px; }
  .heading-side { justify-items: start; }
  .page-actions { justify-content: flex-start; }
  .heading h1 { font-size: 48px; }
  .heading > div > p:last-child { margin-top: 14px; font-size: 15px; }
  .local-state { justify-self: start; }
  .overview { gap: 8px; }
  .review-card { min-height: 112px; border-radius: 20px; }
  .today-card { display: grid; padding: 22px; }
  .metric { min-width: 0; padding: 16px 12px; }
  .metric span { font-size: 11px; }
  .metric strong { font-size: 27px; }
  .library { padding: 22px 18px; border-radius: 24px; }
  .toolbar, .controls { align-items: stretch; flex-direction: column; }
  .deleted-item { grid-template-columns: 1fr; align-items: flex-start; gap: 12px; }
  .search { width: 100%; min-width: 0; }
  select { width: 100%; }
  .modal-card { padding: 21px 18px; border-radius: 20px; }
  .edit-grid { grid-template-columns: 1fr; }
  .import-summary { grid-template-columns: repeat(2,1fr); }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .review-modal { width: calc(100vw - 20px); }
  .review-shell { min-height: min(650px,calc(100vh - 20px)); padding: 22px 18px; border-radius: 22px; }
  .review-question, .review-feedback, .review-complete { padding-top: 28px; }
  .review-options { grid-template-columns: 1fr; }
  .review-context { font-size: 24px; }
  .feedback-answer { padding: 22px 18px 18px; }
  .feedback-source { font-size: 23px; }
  .cloze-sentence { padding: 17px 14px; font-size: 21px; }
  .cloze-input { max-width: 62vw; margin-top: 4px; margin-bottom: 4px; }
  .production-task { padding: 17px 15px; }
  .production-task p { font-size: 21px; }
  .production-form > div { align-items: stretch; flex-direction: column; }
  .production-form .primary-review { width: 100%; }
  .review-tools, .recall-actions { justify-content: stretch; }
  .review-tools button, .recall-actions button { flex: 1 1 auto; }
}
