@charset "UTF-8";
:root {
  --paper:#f6f7f3;
  --panel:#fff;
  --ink:#202d29;
  --muted:#65746b;
  --green:#285c48;
  --green-dark:#163f30;
  --line:#dfe5dc;
  --tint:#e8efe7;
  --gold:#86681b;
  --radius:14px;
  --shadow:0 4px 22px #24392c06;
  font-family:"Segoe UI","Noto Sans","DejaVu Sans",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.6;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
a {
  color:var(--green);
  text-underline-offset:4px;
}
a:hover {
  color:var(--green-dark);
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,summary,select,textarea {
  -webkit-tap-highlight-color:transparent;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #c39832;
  outline-offset:3px;
}
button {
  cursor:pointer;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(2.3rem,3.5vw,3.4rem);
  line-height:1.14;
  letter-spacing:-1.2px;
  margin-bottom:16px;
}
h2 {
  font-size:1.14rem;
  line-height:1.35;
  letter-spacing:-.2px;
  margin-bottom:15px;
}
h3 {
  font-size:1.08rem;
}
p {
  margin-bottom:15px;
}
small,.muted {
  color:var(--muted);
}
small {
  font-size:.79rem;
}
strong {
  font-weight:650;
}
::selection {
  background:#dbe8c4;
}
mark {
  background:#e4edc9;
  color:inherit;
  border-radius:3px;
  padding:1px 2px;
}
.sidebar {
  width:235px;
  position:fixed;
  inset:0 auto 0 0;
  padding:34px 23px 22px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  background:#fbfcf8;
  z-index:2;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
  font-size:1.25rem;
  font-weight:650;
  letter-spacing:-.4px;
  margin-bottom:48px;
}
.brand small {
  display:block;
  font-size:.57rem;
  letter-spacing:2.2px;
  font-weight:600;
  margin-top:3px;
}
.brand-symbol {
  background:var(--green);
  color:#fff;
  font:38px Georgia,serif;
  border-radius:10px;
  width:44px;
  height:47px;
  display:grid;
  place-items:center;
  padding-bottom:7px;
}
.nav-label,.eyebrow {
  font-size:.65rem;
  letter-spacing:1.9px;
  font-weight:700;
  color:var(--muted);
}
.nav-label {
  font-size:.58rem;
  margin:0 11px 15px;
  letter-spacing:1.5px;
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:7px;
}
.sidebar nav a {
  font-size:.87rem;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  color:#5c6c62;
}
.sidebar nav a span {
  width:19px;
  font-size:1.15rem;
  line-height:1;
}
.sidebar nav a:hover,.sidebar nav a.active {
  background:var(--tint);
  color:var(--green-dark);
}
.sidebar nav a.active {
  font-weight:650;
}
.sidebar-note {
  margin-top:auto;
  padding:24px 10px 4px;
  font-size:.67rem;
  color:var(--muted);
}
.sidebar-note .eyebrow {
  font-size:.53rem;
  letter-spacing:1.2px;
}
.sidebar-note p {
  font-family:Georgia,serif;
  font-size:1.02rem;
  color:#66786b;
  line-height:1.6;
  margin:13px 0 26px;
}
.privacy-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#6c886c;
  border-radius:50%;
  margin-right:5px;
}
.shell {
  margin-left:235px;
}
.topbar {
  min-height:72px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 42px;
  border-bottom:1px solid var(--line);
  font-size:.78rem;
  color:var(--muted);
  gap:16px;
}
.account {
  display:flex;
  align-items:center;
  gap:18px;
}
.account a {
  text-decoration:none;
  font-weight:600;
}
.account form {
  margin:0;
}
.text-button {
  border:0;
  background:transparent;
  padding:6px 0;
  color:var(--muted);
  font-size:.78rem;
}
main {
  max-width:1450px;
  margin:auto;
  padding:40px 42px 60px;
  min-height:calc(100vh - 145px);
}
footer {
  font-size:.7rem;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding:20px 42px;
  display:flex;
  justify-content:space-between;
  gap:15px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  margin:2px 0 30px;
}
.page-heading .eyebrow,.dictionary-hero .eyebrow {
  display:block;
  margin-bottom:15px;
}
.page-heading p {
  max-width:660px;
  color:var(--muted);
  margin-bottom:0;
}
.page-heading>.button {
  flex-shrink:0;
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:1px solid var(--green);
  background:var(--green);
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  padding:10px 18px;
  font-weight:600;
  font-size:.83rem;
  min-height:43px;
  line-height:1.4;
}
.button:hover {
  color:#fff;
  background:var(--green-dark);
  border-color:var(--green-dark);
}
.button.secondary {
  background:transparent;
  border-color:#cbd7c9;
  color:var(--green);
}
.button.secondary:hover {
  background:var(--tint);
}
.button.small {
  min-height:36px;
  padding:7px 12px;
  font-size:.75rem;
}
.full-width {
  width:100%;
}
.text-link {
  font-size:.85rem;
}
.panel {
  background:var(--panel);
  border:1px solid var(--line);
  padding:25px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin-bottom:24px;
}
.panel-heading,.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.panel-heading h2,.section-heading h2 {
  margin:0;
}
.panel-heading {
  margin-bottom:24px;
}
.panel-heading>span,.section-heading>span,.section-heading>a {
  font-size:.74rem;
  color:var(--muted);
}
.section-heading {
  margin:30px 0 18px;
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:28px;
}
.stat-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:21px 23px;
  display:flex;
  flex-direction:column;
}
.stat-card>span {
  font-size:.75rem;
  color:var(--muted);
}
.stat-card>strong {
  font-family:Georgia,serif;
  font-size:2.6rem;
  font-weight:400;
  line-height:1.5;
  letter-spacing:-1px;
}
.stat-card>small {
  font-size:.67rem;
}
.stat-card.accent {
  background:var(--green-dark);
  color:#fff;
  border-color:var(--green-dark);
}
.stat-card.accent>span,.stat-card.accent>small {
  color:#c7dacb;
}
.overview-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:24px;
}
.journey {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  padding:6px 0 26px;
}
.journey>div {
  border-right:1px solid var(--line);
  padding-right:8px;
}
.journey>div:last-child {
  border:0;
}
.step-number {
  display:block;
  color:#729076;
  font:1.35rem Georgia,serif;
  margin-bottom:12px;
}
.journey strong {
  font-size:.8rem;
}
.journey p {
  font-size:.69rem;
  color:var(--muted);
  margin:5px 0 0;
}
.state-list {
  border-top:1px solid var(--line);
  padding-top:12px;
}
.state-list>div {
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  font-size:.78rem;
}
.state-list strong {
  background:var(--paper);
  padding:0 9px;
  border-radius:5px;
}
.metric-list,.compact-dl {
  display:grid;
  grid-template-columns:1fr auto;
  gap:13px 20px;
  font-size:.79rem;
}
.metric-list dt,.compact-dl dt {
  color:var(--muted);
}
.metric-list dd,.compact-dl dd {
  margin:0;
}
.metric-list {
  margin:25px 0;
}
.panel .muted {
  font-size:.74rem;
}
.table-panel {
  padding:0;
  overflow:hidden;
}
.table-panel .panel-heading {
  padding:23px 25px;
  margin:0;
}
.table-scroll {
  width:100%;
  overflow-x:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:.81rem;
}
th {
  font-size:.64rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.7px;
  font-weight:600;
  background:#fafbf8;
}
th,td {
  padding:16px 21px;
  border-bottom:1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:hover {
  background:#fbfcf9;
}
.lemma {
  font-family:Georgia,serif;
  font-size:1.2rem;
  font-weight:400;
}
.subline {
  font-size:.63rem;
  color:var(--muted);
  margin-top:4px;
}
.ewe-inline {
  font-size:1.12rem;
  font-weight:500;
}
.badge {
  display:inline-block;
  border:1px solid #e0e4dc;
  border-radius:5px;
  padding:3px 8px;
  font-size:.61rem;
  line-height:1.4;
  white-space:nowrap;
  background:#f2f4ef;
  color:#65705d;
}
.gold_accepted,.gold_corrected {
  background:#faf3d9;
  color:#745b14;
  border-color:#ebdfae;
}
.platinum_accepted {
  background:#e3efea;
  color:#2f6357;
  border-color:#bed8ce;
}
.disputed,.needs_review {
  background:#fff0e2;
  color:#925c26;
  border-color:#efd5b9;
}
.rejected {
  background:#f6eaea;
  color:#884b4b;
  border-color:#ead3d3;
}
.count-chip {
  border:1px solid var(--line);
  padding:18px 23px;
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  background:#fff;
  min-width:148px;
}
.count-chip strong {
  font:2rem Georgia,serif;
}
.count-chip span {
  font-size:.68rem;
  color:var(--muted);
  margin-top:4px;
}
.inline-summary {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:.75rem;
  color:var(--muted);
  margin-bottom:22px;
}
.inline-summary strong {
  color:var(--green);
}
progress {
  appearance:none;
  display:block;
  height:5px;
  width:90px;
  margin-top:8px;
  border:0;
  border-radius:8px;
  background:var(--tint);
}
progress::-webkit-progress-bar {
  background:var(--tint);
  border-radius:8px;
}
progress::-webkit-progress-value {
  background:#7c9874;
  border-radius:8px;
}
progress::-moz-progress-bar {
  background:#7c9874;
  border-radius:8px;
}
.filter-panel {
  border:1px solid var(--line);
  border-radius:10px;
  padding:17px 21px;
  background:#fff;
  margin:0 0 24px;
}
.filter-panel summary {
  font-size:.82rem;
  cursor:pointer;
  font-weight:600;
}
.filter-panel summary span {
  font-size:.7rem;
  font-weight:400;
  color:var(--muted);
  margin-left:20px;
}
.filter-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px 20px;
  padding-top:20px;
  align-items:end;
}
input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea {
  border:1px solid #ccd6c9;
  border-radius:7px;
  background:#fff;
  width:100%;
  padding:9px 11px;
  color:var(--ink);
  min-height:42px;
}
textarea {
  resize:vertical;
  line-height:1.5;
}
label {
  display:block;
  font-size:.76rem;
  font-weight:600;
  margin-bottom:6px;
}
input[type=checkbox] {
  accent-color:var(--green);
  width:17px;
  height:17px;
}
form>div {
  margin-bottom:14px;
}
form>div:last-child {
  margin-bottom:0;
}
.filter-grid>div {
  margin:0;
}
.helptext {
  font-size:.7rem;
  color:var(--muted);
  display:block;
}
.helptext ul {
  padding-left:18px;
}
.errorlist {
  color:#9b3131;
  font-size:.78rem;
  padding-left:20px;
}
.notice {
  padding:13px 18px;
  border:1px solid #bed4ba;
  background:#eaf3e6;
  border-radius:8px;
  margin:0 0 25px;
  font-size:.84rem;
}
.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin:30px 0;
  font-size:.78rem;
  color:var(--muted);
}
.empty-state {
  text-align:center;
  padding:55px 30px!important;
  color:var(--muted);
}
.empty-state h2,.empty-state h3 {
  color:var(--ink);
}
.back-link {
  display:inline-block;
  font-size:.76rem;
  text-decoration:none;
  margin-bottom:25px;
}
.lexeme-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:24px;
}
.lexeme-header .eyebrow {
  display:block;
  margin-bottom:10px;
}
.lexeme-header h1 {
  font-size:3.7rem;
  margin-bottom:10px;
}
.lexeme-header p {
  font-size:.78rem;
  color:var(--muted);
  margin:0;
}
.pos-pill {
  font:600 .65rem "Segoe UI",sans-serif;
  letter-spacing:.7px;
  display:inline-block;
  vertical-align:middle;
  color:#5d725b;
  background:#eaf0e5;
  padding:6px 9px;
  border-radius:5px;
}
.instruction {
  display:flex;
  flex-wrap:wrap;
  gap:5px 13px;
  padding:16px 20px;
  background:#eaf0e6;
  border:1px solid #dae5d3;
  border-radius:9px;
  font-size:.78rem;
}
.instruction span {
  color:#60735b;
}
.candidate-list {
  display:grid;
  gap:10px;
}
.candidate-row {
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);
  gap:16px;
  background:#fff;
  border:1px solid var(--line);
  padding:11px 15px;
  border-radius:8px;
  scroll-margin-top:20px;
  align-self:start;
  box-shadow:var(--shadow);
}
.candidate-row:target {
  outline:2px solid #9db58b;
  outline-offset:3px;
}
.candidate-identity {
  min-width:0;
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}
.card-top .eyebrow {
  font-size:.56rem;
  letter-spacing:1.5px;
}
.candidate-row h2 {
  font-size:1.35rem;
  font-weight:500;
  line-height:1.2;
  margin:5px 0;
  overflow-wrap:anywhere;
}
.candidate-controls {
  min-width:0;
}
.candidate-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:.69rem;
  color:var(--muted);
  margin-bottom:6px;
  align-items:center;
}
.machine-details {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:12px 0;
  margin:12px 0 0;
  font-size:.72rem;
  color:var(--muted);
}
summary {
  cursor:pointer;
}
.machine-details .compact-dl {
  margin-top:16px;
  font-size:.72rem;
}
.machine-details p {
  font-size:.72rem;
}
.vote-form fieldset {
  padding:0;
  border:0;
  margin:0 0 15px;
}
.vote-form.is-collapsed {
  display:none;
}
.candidate-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.compact-action {
  padding:7px 11px;
  font-size:.7rem;
}
.vote-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(100px,1fr));
  gap:7px;
}
.vote-option {
  position:relative;
  margin:0;
  display:flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
}
.vote-option input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}
.vote-option span {
  padding:10px 4px;
  border:1px solid #d9dfd4;
  border-radius:7px;
  font-size:.73rem;
  text-align:center;
  width:100%;
  background:#fbfcf9;
}
.vote-option input:checked+span {
  border-color:var(--green);
  background:#e7f0e3;
  color:var(--green-dark);
  font-weight:700;
  box-shadow:inset 0 0 0 1px var(--green);
}
.vote-option input:focus-visible+span {
  outline:3px solid #c39832;
  outline-offset:2px;
}
.comment-field {
  font-size:.75rem;
  color:var(--muted);
  margin-bottom:16px;
}
.comment-field[open] summary {
  margin-bottom:10px;
}
.own-vote,.validated-form {
  font-size:.8rem;
  padding:9px 12px;
  background:#f0f5ec;
  border-radius:6px;
}
.own-vote {
  display:inline-block;
  margin:0 10px 7px 0;
}
.candidate-controls>.text-link {
  display:inline-block;
  margin:0 10px 7px 0;
  font-size:.75rem;
}
.candidate-controls>.button {
  display:inline-block;
  margin:0 8px 7px 0;
}
.closed-note {
  font-size:.8rem;
  background:var(--paper);
  padding:17px;
  border-radius:7px;
  color:var(--muted);
}
.review-link {
  font-size:.69rem;
  display:block;
  margin-top:15px;
  text-align:right;
}
.alternative-panel {
  margin-top:32px;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:55px;
  padding:32px;
}
.alternative-panel h2 {
  font:1.7rem Georgia,serif;
  margin-top:10px;
}
.alternative-panel p {
  font-size:.84rem;
  color:var(--muted);
}
.bilingual {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
}
.bilingual>div+div {
  border-left:1px solid var(--line);
  padding-left:35px;
}
.bilingual p {
  font-size:1.1rem;
  line-height:1.9;
  margin:13px 0 3px;
}
.language-label {
  font-size:.61rem;
  letter-spacing:2px;
  color:var(--muted);
  font-weight:700;
}
.evidence-card .card-top>span:last-child {
  font-size:.7rem;
  color:var(--muted);
}
.review-layout {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);
  gap:24px;
}
.judgment {
  border-top:1px solid var(--line);
  padding:17px 0;
  font-size:.8rem;
}
.judgment .card-top {
  margin-bottom:9px;
}
.judgment details {
  margin-top:10px;
}
.review-evidence {
  border-top:1px solid var(--line);
  padding:17px 0;
  font-size:.91rem;
}
.review-evidence p {
  margin:9px 0;
}
.peer-link {
  display:block;
  border-top:1px solid var(--line);
  text-decoration:none;
  padding:15px 0;
}
.peer-link span {
  display:block;
  font-size:.69rem;
  color:var(--muted);
}
.decision-panel {
  border-top:3px solid var(--green);
}
.decision-panel>p {
  font-size:.79rem;
  color:var(--muted);
}
.decision-panel h2 {
  margin-top:12px;
}
.dictionary-hero {
  padding:16px 0 36px;
  max-width:800px;
}
.dictionary-hero h1 {
  font-size:clamp(2.6rem,4vw,4rem);
}
.dictionary-hero>p {
  color:var(--muted);
  font-size:.9rem;
  line-height:1.8;
}
.search-form {
  margin-top:30px;
}
.search-main {
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:end;
}
.search-main label {
  grid-column:1/-1;
  margin-bottom:-8px;
}
.search-main .button {
  min-height:46px;
}
.search-main input {
  min-height:46px!important;
}
.search-options {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.72rem;
}
.search-options select {
  width:auto;
  max-width:230px;
  font-size:.78rem;
}
.search-options input {
  width:90px!important;
  max-width:90px;
}
.search-options label {
  margin:0;
  white-space:nowrap;
}
.dictionary-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.dictionary-card {
  background:#fff;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.dictionary-card h2 {
  font:1.6rem Georgia,serif;
  margin:24px 0 4px;
}
.translation-arrow {
  font-size:1.3rem;
  color:#9cab91;
}
.dictionary-translation {
  font-size:1.65rem;
  line-height:1.4;
  color:var(--green);
  margin-top:4px;
  overflow-wrap:anywhere;
}
.dictionary-provenance {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:22px;
  font-size:.64rem;
  color:var(--muted);
}
.dictionary-provenance a {
  display:block;
  margin-top:5px;
}
.export-actions {
  display:flex;
  gap:12px;
}
.auth-layout {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:75px;
  align-items:center;
  max-width:1100px;
  margin:55px auto;
}
.auth-layout>div>p {
  font-size:.95rem;
  color:var(--muted);
}
.auth-layout .eyebrow {
  display:block;
  margin-bottom:20px;
}
.auth-layout h1 {
  font-size:clamp(2.8rem,3.6vw,4rem);
}
.auth-panel {
  padding:35px;
}
.auth-panel h2 {
  font-size:1.3rem;
}
.auth-panel>p {
  font-size:.8rem;
  color:var(--muted);
}
.auth-panel>a {
  display:block;
  text-align:center;
  font-size:.76rem;
  margin-top:18px;
}
.auth-panel form {
  margin-top:25px;
}
.letter-sample {
  font-size:2.7rem;
  letter-spacing:10px;
  color:#96ad8b;
  margin-top:32px;
}
.narrow {
  max-width:600px;
  margin:35px auto;
}
.narrow h1 {
  font-size:2.2rem;
}
.skip-link {
  position:fixed;
  left:15px;
  top:-70px;
  z-index:10;
  background:#fff;
  padding:10px 20px;
}
.skip-link:focus {
  top:10px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
[hidden] {
  display:none!important;
}
@media(min-width:1600px) {
  main {
    padding-top:50px;
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:200px;
    padding-inline:15px;
  }
  .shell {
    margin-left:200px;
  }
  main {
    padding:30px 26px;
  }
  .topbar {
    padding-inline:26px;
  }
  .stat-grid {
    gap:12px;
  }
  .stat-card {
    padding:17px;
  }
  .dictionary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .overview-grid {
    grid-template-columns:1fr 1fr;
  }
  .auth-layout {
    gap:30px;
  }
  .candidate-row {
    padding:20px;
  }
  .candidate-meta {
    flex-direction:column;
    gap:5px;
  }
  .filter-grid {
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:900px) {
  .sidebar {
    position:static;
    width:auto;
    padding:16px 22px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:block;
  }
  .brand {
    margin:0 0 12px;
    font-size:1.05rem;
  }
  .brand-symbol {
    width:33px;
    height:36px;
    font-size:29px;
  }
  .brand small {
    font-size:.52rem;
  }
  .sidebar nav {
    flex-direction:row;
    overflow-x:auto;
    gap:5px;
  }
  .sidebar nav a {
    white-space:nowrap;
    font-size:.75rem;
    min-height:40px;
    padding:8px 11px;
  }
  .sidebar nav a span {
    display:none;
  }
  .nav-label,.sidebar-note {
    display:none;
  }
  .shell {
    margin:0;
  }
  .topbar {
    min-height:54px;
    font-size:.7rem;
  }
  .topbar .account {
    gap:12px;
  }
  .page-heading {
    align-items:flex-start;
  }
  .stat-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .overview-grid {
    grid-template-columns:1fr;
  }
  .overview-grid .panel {
    margin-bottom:0;
  }
  .overview-grid {
    margin-bottom:24px;
  }
  .review-layout {
    grid-template-columns:1fr;
  }
  .review-layout>aside {
    order:-1;
  }
  .review-layout>aside .decision-panel {
    margin-top:0;
  }
  .auth-layout {
    margin:20px auto;
  }
  .auth-layout h1 {
    font-size:2.5rem;
  }
  .filter-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .inline-summary {
    flex-direction:column;
    gap:4px;
  }
  .candidate-list {
    gap:16px;
  }
  .alternative-panel {
    gap:25px;
  }
  footer {
    padding-inline:26px;
  }
}
@media(max-width:600px) {
  main {
    padding:25px 18px 40px;
  }
  .topbar {
    padding:12px 18px;
  }
  .topbar>span {
    max-width:140px;
    line-height:1.4;
  }
  .sidebar {
    padding-inline:16px;
  }
  h1 {
    font-size:2.4rem;
  }
  .page-heading {
    flex-direction:column;
    gap:20px;
    margin-bottom:22px;
  }
  .page-heading>.button {
    width:100%;
  }
  .count-chip {
    flex-direction:row;
    align-items:baseline;
    gap:12px;
    padding:10px 16px;
    width:100%;
  }
  .count-chip strong {
    font-size:1.5rem;
  }
  .count-chip span {
    margin:0;
  }
  .stat-grid {
    gap:10px;
  }
  .stat-card {
    padding:16px;
  }
  .stat-card>strong {
    font-size:2.2rem;
  }
  .stat-card>small {
    font-size:.61rem;
  }
  .panel {
    padding:21px;
  }
  .table-panel {
    padding:0;
  }
  .panel-heading {
    align-items:flex-start;
  }
  .panel-heading>span {
    font-size:.63rem;
  }
  .journey {
    gap:10px;
  }
  .journey strong {
    font-size:.75rem;
  }
  .journey p {
    font-size:.64rem;
  }
  th,td {
    padding:13px 16px;
    min-width:120px;
  }
  td:last-child {
    min-width:100px;
  }
  .filter-panel summary span {
    display:block;
    margin:4px 0 0 15px;
    font-size:.65rem;
  }
  .filter-grid {
    grid-template-columns:1fr 1fr;
    gap:15px 12px;
  }
  .filter-grid label {
    font-size:.7rem;
  }
  .candidate-row {
    grid-template-columns:1fr;
    gap:8px;
  }
  .candidate-meta {
    flex-direction:row;
    font-size:.66rem;
  }
  .lexeme-header {
    align-items:flex-start;
    flex-direction:column;
  }
  .lexeme-header h1 {
    font-size:3.2rem;
  }
  .lexeme-header>.button {
    width:100%;
  }
  .section-heading {
    gap:15px;
    align-items:flex-start;
  }
  .section-heading>a {
    max-width:150px;
    text-align:right;
    font-size:.68rem;
  }
  .alternative-panel {
    grid-template-columns:1fr;
    gap:15px;
  }
  .bilingual {
    grid-template-columns:1fr;
    gap:20px;
  }
  .bilingual>div+div {
    border-left:0;
    border-top:1px solid var(--line);
    padding:20px 0 0;
  }
  .bilingual p {
    font-size:1rem;
  }
  .evidence-card .card-top {
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
  .dictionary-grid {
    grid-template-columns:1fr;
  }
  .dictionary-hero h1 {
    font-size:2.8rem;
  }
  .search-main {
    gap:10px;
  }
  .search-options {
    flex-wrap:wrap;
  }
  .search-options label {
    flex-basis:100%;
    margin-bottom:-8px;
  }
  .search-options select {
    max-width:none;
    width:100%;
  }
  .search-options input {
    width:100%!important;
    max-width:none;
  }
  .dictionary-card {
    padding:24px;
  }
  .auth-layout {
    grid-template-columns:1fr;
    gap:20px;
    margin:15px auto;
  }
  .auth-layout h1 {
    font-size:2.7rem;
  }
  .letter-sample {
    margin-top:20px;
    font-size:2rem;
  }
  .auth-panel {
    padding:25px;
  }
  .auth-panel h2 {
    font-size:1.15rem;
  }
  footer {
    padding:18px;
    flex-direction:column;
    gap:3px;
  }
  .instruction {
    font-size:.73rem;
  }
  .pagination {
    gap:12px;
  }
  .pagination .button {
    padding:8px 12px;
    font-size:.72rem;
  }
  .card-top .badge {
    font-size:.57rem;
  }
  .card-top .eyebrow {
    font-size:.52rem;
  }
}
.ewe-keyboard {
  margin-top:8px;
  font-size:.73rem;
  color:var(--muted);
}
.ewe-keyboard>div {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0;
}
.ewe-keyboard button {
  min-width:36px;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f7f9f4;
  color:var(--green-dark);
  font-size:1.1rem;
}
.ewe-keyboard button:hover {
  background:var(--tint);
  border-color:#93aa87;
}
.vote-option input[value="ACCEPT"]+span::before {
  content:"✓ ";
  color:#3f7153;
}
.vote-option input[value="REJECT"]+span::before {
  content:"× ";
  color:#865c52;
}
.vote-option input[value="CORRECT"]+span::before {
  content:"✎ ";
  color:#756830;
}
.vote-option input[value="UNSURE"]+span::before {
  content:"? ";
  color:#6c7570;
}
@media(max-width:600px) {
  .lexeme-header h1 {
    font-size:2.8rem;
  }
  .lexeme-header {
    gap:16px;
    padding-bottom:19px;
  }
  .back-link {
    margin-bottom:17px;
  }
  .instruction {
    padding:12px 16px;
  }
  .section-heading {
    margin-top:23px;
  }
  .candidate-row h2 {
    margin:13px 0;
  }
  .candidate-row .machine-details {
    margin-bottom:17px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
.subline, .dictionary-provenance {
  font-size: .7rem;
}
.candidate-meta {
  font-size: .76rem;
}
.account {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.language-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.language-picker label {
  margin: 0;
  font-size: .75rem;
}
.language-picker select {
  width: auto;
  min-height: 40px;
  padding: 6px 24px 6px 10px;
  font-size: .8rem;
}
.language-picker button {
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signup-layout {
  align-items: start;
}
.role-guide {
  border-left: 3px solid var(--green);
  padding-left: 20px;
  margin-top: 28px;
}
.role-guide h2 {
  font-size: 1.1rem;
}
.role-guide p {
  font-size: .9rem;
  line-height: 1.7;
}
.auth-panel #id_role {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-panel #id_role label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.auth-panel #id_role label:has(input:checked) {
  background: var(--tint);
  border-color: var(--green);
}
.auth-panel input[type=radio] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.signup-link {
  margin-top: 20px;
}
@media(max-width:600px) {
  .topbar .account {
    width: 100%;
    justify-content: flex-start;
    column-gap: 18px;
    row-gap: 8px;
  }
  .language-picker {
    flex-basis: 100%;
  }
  .role-guide {
    margin-top: 20px;
  }
}

.auth-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.auth-panel legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 600;
}

.account-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.french-meaning-field { margin: 1rem 0; }
.account { flex-wrap: wrap; }

/* M4-E compact surface annotation workbench */
.surface-groups { display: grid; gap: 16px; }
.surface-group { overflow: hidden; padding: 0; }
.surface-group-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; background: #fafbf8; border-bottom: 1px solid var(--line); }
.surface-group-header h2 { margin: 0; }
.surface-group-header .subline { margin: 5px 0 0; }
.surface-group-meta { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.surface-candidate-list { list-style: none; margin: 0; padding: 0; }
.surface-candidate-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(92px, auto) minmax(0, 2fr); align-items: center; gap: 14px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.surface-candidate-row:last-child { border-bottom: 0; }
.surface-candidate-meaning, .surface-candidate-status { min-width: 0; }
.surface-candidate-meaning .subline { display: block; margin-top: 3px; }
.surface-candidate-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.surface-candidate-status .subline { white-space: nowrap; }
.surface-candidate-actions, .surface-detail-actions, .surface-detail-vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.surface-candidate-actions .button, .surface-detail-actions .button { width: auto; min-height: 34px; padding: 6px 10px; font-size: .74rem; }
.surface-judgment.is-selected.is-accepted { background: var(--green); border-color: var(--green); color: #fff; }
.surface-judgment.is-selected.is-accepted:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.surface-judgment.is-selected.is-rejected { background: #8b4c3b; border-color: #8b4c3b; color: #fff; }
.surface-judgment.is-selected.is-rejected:hover { background: #713b2e; border-color: #713b2e; color: #fff; }
.surface-candidate-actions .surface-comment { flex: 1 1 100%; min-width: 150px; text-align: right; }
.surface-comment summary { display: inline-block; color: var(--muted); cursor: pointer; font-size: .74rem; }
.surface-comment label { display: block; margin: 7px 0 3px; font-size: .75rem; }
.surface-comment textarea { width: min(100%, 440px); min-height: 58px; margin-left: auto; }
.surface-evidence-link { white-space: nowrap; font-size: .74rem; }
.surface-group-more { border-top: 1px solid var(--line); }
.surface-group-more summary { padding: 10px 20px; color: var(--muted); cursor: pointer; font-size: .78rem; }
.surface-more-close { display: none; }
.surface-group-more[open] .surface-more-open { display: none; }
.surface-group-more[open] .surface-more-close { display: inline; }
.surface-detail-card { padding: 20px; }
.surface-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.surface-detail-top h1 { margin: 5px 0 4px; font-size: clamp(1.35rem, 3vw, 2rem); }
.surface-detail-top p { margin: 0; }
.surface-detail-actions { justify-content: flex-start; margin-top: 18px; }
.surface-detail-vote { justify-content: flex-start; }
.surface-detail-helper { margin: 10px 2px 18px; color: var(--muted); font-size: .82rem; }
.surface-detail-vote .surface-comment { flex-basis: 100%; }
.surface-detail-actions .closed-note { margin-right: 8px; }
.surface-evidence-preview, .surface-evidence-item { display: grid; gap: 10px; }
.surface-evidence-preview { margin-bottom: 12px; }
.surface-evidence-item { padding: 13px 16px; }
.surface-reference { color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 650; }
.surface-evidence-item .bilingual { margin-top: 12px; }
.surface-evidence-item details[open] { padding-bottom: 2px; }
.surface-correction-panel { flex: 1 1 100%; min-width: 0; margin: 4px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf9; }
.surface-correction-panel[hidden] { display: none; }
.surface-correction-panel legend { padding: 0 4px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.surface-correction-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 3px 0 9px; }
.surface-correction-options label { display: flex; align-items: flex-start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .74rem; line-height: 1.35; }
.surface-correction-options label:last-child { grid-column: 1 / -1; }
.surface-correction-input { display: flex; flex-direction: column; gap: 4px; max-width: 360px; margin: 7px 0; font-size: .74rem; font-weight: 650; }
.surface-correction-input[hidden] { display: none; }
.surface-correction-input input { width: 100%; min-height: 34px; }
.surface-correction-panel > .surface-comment { margin: 7px 0; }
.surface-correction-panel > .surface-comment textarea { margin-left: 0; }
@media (max-width: 800px) {
  .surface-group-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .surface-candidate-row { grid-template-columns: 1fr; gap: 7px; }
  .surface-candidate-actions { justify-content: flex-start; }
  .surface-candidate-actions .surface-comment { text-align: left; }
  .surface-comment textarea { margin-left: 0; }
  .surface-detail-top { flex-direction: column; }
  .surface-correction-options { grid-template-columns: 1fr; }
  .surface-correction-options label:last-child { grid-column: auto; }
}
