:root{--ink:#183b3b;--muted:#607572;--paper:#f5f4ee;--white:#fff;--teal:#1a6759;--line:#dce2da;--accent:#e5a755;--danger:#9b3434}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--teal);text-underline-offset:3px}button,input,select,textarea{font:inherit}button,.button{min-height:46px;border:1px solid var(--teal);border-radius:10px;background:var(--teal);color:white;padding:10px 18px;cursor:pointer;text-decoration:none;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{filter:brightness(.93)}button:disabled{opacity:.6;cursor:wait}.secondary{background:transparent;color:var(--teal)}.quiet{border:0;background:transparent;color:var(--teal);padding:8px 4px;text-decoration:underline;font-weight:500}.danger{color:var(--danger)}input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea{display:block;width:100%;min-height:46px;padding:11px 13px;border:1px solid #a8b7ae;border-radius:8px;background:white;color:var(--ink)}textarea{resize:vertical}label{display:block;font-weight:600;margin-bottom:5px}label input,label select{margin-top:5px}input[type=file]{display:block;width:100%;margin-top:10px;font-size:14px}input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:var(--teal)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3{line-height:1.15;margin:0 0 18px;letter-spacing:-.035em}h1{font-size:clamp(2rem,5vw,3.4rem)}h2{font-size:1.45rem}h3{font-size:1.2rem}p{margin:0 0 16px}main{max-width:1060px;padding:40px 24px 70px;margin:auto;min-height:70vh}section{margin-bottom:30px}footer{padding:25px;text-align:center;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}.site-header{display:flex;justify-content:space-between;align-items:center;padding:18px max(24px,calc((100vw - 1060px)/2 + 24px));gap:20px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-weight:750;text-decoration:none;color:var(--ink)}.brand-mark{color:var(--teal);font-size:32px;line-height:1}.account{font-size:13px;color:var(--muted)}.dictionary-nav{display:flex;justify-content:center;gap:8px;background:#fff;position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line);padding:7px}.dictionary-nav a{padding:9px 20px;border-radius:8px;text-decoration:none;font-weight:650;font-size:14px}.dictionary-nav a:hover{background:#edf3ec}.hero{max-width:720px;padding:22px 0 28px}.hero p:not(.eyebrow),.lead{font-size:18px;color:var(--muted);max-width:720px}.eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:var(--teal);margin-bottom:12px}.panel{background:white;border:1px solid var(--line);padding:24px;border-radius:16px;margin:22px 0}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.page-heading{margin:0 0 26px}.page-heading h1,.section-heading h2,.section-heading h3{margin:0}.stack{max-width:800px;display:flex;flex-direction:column;gap:18px}.stack>p{margin:0}.stack .panel{margin:0}.stack>button{align-self:flex-start}.dictionary-grid,.entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.dictionary-card{background:white;border:1px solid var(--line);padding:25px;border-radius:16px;text-decoration:none;min-height:180px}.dictionary-card h3{margin-top:12px}.entry-card{overflow:hidden;background:white;border:1px solid var(--line);border-radius:16px;text-decoration:none;color:var(--ink);transition:transform .15s}.entry-card:hover{transform:translateY(-2px)}.card-image{aspect-ratio:4/3;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e9eee5;color:var(--muted);font-size:14px}.card-image span:first-child{font-size:42px;color:#6b9587}.card-image img{width:100%;height:100%;object-fit:cover}.card-copy{padding:18px}.card-copy h2{font-size:1.25rem;margin-bottom:8px}.card-copy p{font-size:14px;color:var(--muted)}.badge{display:inline-block;font-size:12px;padding:3px 9px;background:#e9f1e8;border-radius:20px;letter-spacing:0;font-weight:550;margin:2px}.pending{background:#fff0d3;color:#79591c}.empty{padding:40px 26px;border:1px dashed #b7c6b8;border-radius:16px;grid-column:1/-1;color:var(--muted)}.empty h2{color:var(--ink)}.search{display:flex;gap:10px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search input{flex:3;min-width:160px}.search select{flex:1;min-width:130px}.search label{margin:0}.tabs{display:flex;gap:8px;margin:0 0 25px;flex-wrap:wrap}.tabs a{font-size:14px;padding:7px 14px;text-decoration:none;border:1px solid var(--line);border-radius:24px}.tabs a[aria-current]{background:var(--ink);color:white;border-color:var(--ink)}.capture-grid,.entry-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.capture-grid .panel{margin:0}.photo-button{position:relative;overflow:hidden;cursor:pointer}.photo-button input{position:absolute;width:100%;height:100%;opacity:0;inset:0;margin:0;cursor:pointer}.file-alternative{font-weight:400;font-size:14px;margin-top:18px}.photo-preview,.candidate-image{display:block;max-width:100%;max-height:280px;border-radius:10px;margin:18px 0;object-fit:contain}.entry-image{width:100%;max-height:600px;object-fit:contain;border-radius:16px;background:#e9eee5}.entry-layout>.panel{margin:0 0 30px}.image-empty{min-height:260px;display:flex;align-items:center;justify-content:center}.record-controls{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.record-button{background:#fff;color:var(--teal)}.record-button.recording-now{background:#9b3434;color:white;border-color:#9b3434}.help,.credit,.muted{font-size:13px;color:var(--muted)}.help{margin-top:12px}.credit{margin-top:8px}audio{display:block;width:100%;max-width:100%;margin:12px 0}.check{display:flex;align-items:flex-start;gap:12px;font-size:14px;font-weight:400}.check input{margin:2px 0}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:18px}.actions form{margin:0}.inline-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.inline-form input{flex:1;min-width:140px}.notice{padding:16px 20px;border-radius:12px;background:#e5eee1;margin-bottom:20px}.error,.errorlist{color:var(--danger);white-space:pre-line}.draft-box{font-size:14px;padding:15px 18px;background:#ecefe7;border-radius:10px}.draft-box p{margin:0}.draft-box button{font-size:13px}.request-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.request-row:last-child{border:0}.request-row p{margin:8px 0}.queue-card{display:grid;grid-template-columns:160px 1fr;gap:25px;background:white;border:1px solid var(--line);padding:20px;border-radius:16px;margin:18px 0}.queue-card>img,.queue-placeholder{width:160px;height:160px;object-fit:cover;border-radius:10px}.queue-placeholder{display:flex;align-items:center;justify-content:center;background:#e9eee5;font-size:48px}.queue-card h2{margin:0 0 8px}.note{padding:8px 0 16px;border-bottom:1px solid var(--line);margin-bottom:18px}.history{font-size:13px;color:var(--muted);padding-left:20px}details>summary{font-weight:650;cursor:pointer;padding:4px 0;line-height:1.6}details[open]>summary{margin-bottom:20px}.contribution.panel{padding:18px 24px;margin:14px 0}fieldset{border:1px solid var(--line);border-radius:10px;padding:15px}.pagination{display:flex;justify-content:space-between;margin:25px 0}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.skip:focus{padding:15px;display:block}.audio-item{border-bottom:1px solid var(--line);margin-bottom:16px}.audio-item p{font-size:14px;margin-bottom:0}
@media(max-width:700px){main{padding:26px 16px 50px}.site-header{padding:14px 16px}.brand{font-size:14px;gap:8px}.brand-mark{font-size:26px}.account{font-size:11px;max-width:110px;text-align:right}.dictionary-nav{gap:0;justify-content:space-around}.dictionary-nav a{padding:10px 8px;font-size:12px}.hero{padding:10px 0 20px}.hero p:not(.eyebrow),.lead{font-size:16px}.dictionary-grid,.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.capture-grid,.entry-layout{grid-template-columns:1fr}.card-copy{padding:13px}.card-copy h2{font-size:1.1rem}.panel{padding:20px}.page-heading{gap:16px}.page-heading .button{width:100%}.queue-card{grid-template-columns:88px 1fr;gap:15px;padding:16px}.queue-card>img,.queue-placeholder{width:88px;height:88px}.queue-card h2{font-size:1.2rem}.queue-card .actions{grid-column:1/-1}.search{gap:8px}.search button{padding:10px 12px}.search select{font-size:14px}.dictionary-card{padding:18px;min-height:160px}.contribution.panel{padding:16px}.inline-form>button{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.mic-feedback{display:flex;flex-direction:column;gap:4px;margin:16px 0 8px}.mic-feedback meter{display:block;width:100%;height:20px}.mic-feedback .help{margin:0}.recording [data-record-state]{margin:10px 0}.recording [data-microphone-name]{overflow-wrap:anywhere}.word-fields h2{margin-bottom:8px}

.photo-preview{display:block;max-width:100%;max-height:45vh;object-fit:contain;margin:1rem auto;border-radius:12px}.photo-preview[hidden]{display:none}[data-photo-upload] input[type=file]{max-width:100%}

.save-controls{display:flex;align-items:center;gap:16px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}.save-controls>button{flex-shrink:0;min-width:90px}.save-permission{font-size:13px;line-height:1.5;margin:0}.save-state{font-size:13px;color:var(--muted);margin:6px 0 0}dialog[data-leave-dialog]{color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:16px;padding:24px;max-width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}dialog::backdrop{background:rgb(0 0 0 / .45)}dialog .actions{gap:12px}@media(max-width:400px){.save-controls{align-items:flex-start;gap:12px;padding:12px}.save-controls>button{padding:10px 14px;min-width:76px}}

.account{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 12px;overflow-wrap:anywhere}.account form{margin:0}.account button{font-size:inherit;min-height:44px}.audio-entry-context{display:flex;align-items:center;gap:18px;margin-bottom:22px}.audio-entry-context img{width:110px;max-height:150px;object-fit:contain;border-radius:10px}.audio-entry-context h2{overflow-wrap:anywhere}.audio-entry-context>div{min-width:0}.audio-entry-context p{margin:0}.account-login{max-width:600px;margin-left:auto;margin-right:auto}

/* Vocabulary stays beside the picture; each action has a distinct tap target. */
.browse-modes a{min-height:46px;display:inline-flex;align-items:center;font-weight:650}.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.word-row{min-width:0;overflow-wrap:anywhere}.word-list>.word-row{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:20px}.word-row h3{margin-bottom:12px}.word-actions{display:flex;gap:10px 14px;align-items:flex-start;flex-wrap:wrap}.word-actions>.help{margin:12px 0}.word-actions>a{min-height:46px;display:inline-flex;align-items:center}.word-actions>audio{flex-basis:100%}.word-translation{max-width:100%;flex:1 1 145px}.word-translation>summary{min-height:46px;padding:9px 6px;color:var(--teal);white-space:nowrap}.word-translation[open]>summary{margin-bottom:6px}.word-translation>p{padding:10px 12px;background:var(--paper);border-radius:8px;margin-bottom:0}.picture-words .word-row{border-bottom:1px solid var(--line);padding:16px 0}.picture-words .word-row:last-of-type{margin-bottom:18px}.picture-words>h2{margin-bottom:8px}.link-words-editor>summary{min-height:46px;padding:9px 0}.unlink-word{margin-top:12px;overflow-wrap:anywhere}.entry-layout>*{min-width:0}.word-row .help{font-size:12px}@media(max-width:700px){.word-list{grid-template-columns:1fr}.picture-words{padding:18px}.word-actions{gap:8px 12px}}

.picture-words{scroll-margin-top:80px}

.contribution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.contribution-grid .panel{min-width:0}.filter-form{display:flex;flex-wrap:wrap;align-items:end;gap:1rem}.filter-form label{flex:1;min-width:150px}.contribution-grid audio{width:100%;max-width:100%}

@media(max-width:600px){.filter-form label{flex-basis:100%}}

/* Keep each contribution in its entry context. Reference media remain usable. */
.contribution-entries{display:block}.collection-entry{overflow-wrap:anywhere}.collection-entry>.section-heading{margin-bottom:20px}.collection-entry .eyebrow{margin-bottom:8px}.collection-entry-layout{margin-top:20px}.collection-component{padding:16px;margin-bottom:14px;border:1px solid #9bbbac;border-left:4px solid var(--teal);border-radius:10px;background:#fff}.collection-component>:last-child{margin-bottom:0}.collection-component .check{align-items:center;flex-wrap:wrap;min-height:44px;cursor:pointer}.collection-component .component-heading{margin-bottom:12px}.collection-component .component-value{font-size:19px}.collection-component .candidate-image{width:100%;max-height:360px;margin:12px 0}.collection-component.reference-component{background:#f0f1ef;border-color:#cdd1cd;color:#515b57}.reference-component .badge{background:#e0e3df;color:#414d46}.reference-title{color:#59635e}.collection-details{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.collection-details>summary{min-height:44px}.collection-details .collection-component{margin-top:12px}.contribution-entries .collection-entry{margin:24px 0}@media(max-width:700px){.collection-entry-layout{gap:0}.collection-entry.panel{padding:16px}.collection-component{padding:12px}}
/* Dictionary-wide participation controls must stay legible on a phone. */
.dictionary-grid .dictionary-card{margin:0}.withdrawal-confirmation button.danger{background:var(--danger);border-color:var(--danger);color:white}
@media(max-width:700px){.dictionary-grid{grid-template-columns:1fr}.dictionary-grid .actions{align-items:stretch}.dictionary-grid .actions form{width:100%}.dictionary-grid .actions button{width:100%}}

.image-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}

.dictionary-nav{flex-wrap:wrap}.dictionary-nav a[aria-current="page"]{background:#edf3ec}.entry-picture-actions{margin-bottom:22px}

/* Picture-centred sentence capture. */
.capture-picture {display:block;max-width:100%;max-height:55vh;width:auto;height:auto;object-fit:contain;margin:0 auto 1rem;border-radius:1rem;}
.capture-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start;}
.capture-options {display:flex;flex-wrap:wrap;gap:1rem;}
.capture-options p {flex:1;min-width:10rem;}
[data-capture-form] textarea {width:100%;box-sizing:border-box;}
.password-visibility {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  cursor: pointer;
}
.password-visibility input { margin: 0; }
[hidden] {display:none!important;}
@media(max-width:700px) {.capture-layout {grid-template-columns:1fr;}.capture-picture {max-height:38vh;}}
.capture-vocabulary {margin-top:1.5rem;}

.vocabulary-row { margin: 1rem 0; padding: .8rem; border: 1px solid #b7c7c5; border-radius: .5rem; min-width: 0; }
.vocabulary-row input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; }
.vocabulary-row legend { font-weight: 600; }

.capture-modes {border:0;padding:0;margin:0 0 1rem;min-width:0;}
.capture-modes legend {font-weight:600;margin-bottom:.65rem;}
.capture-modes > div {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;}
.capture-modes label {display:flex;align-items:center;gap:.5rem;min-height:3rem;height:100%;padding:.6rem;border:1px solid #bac6c0;border-radius:.6rem;cursor:pointer;box-sizing:border-box;}
.capture-modes input[type=radio][name=input_mode] {width:20px;height:20px;min-height:0;padding:0;flex:none;margin:0;accent-color:var(--teal);}
.capture-modes label:has(input:checked) {background:#edf5ef;border-color:#285744;}
.guided-fields {border:0;padding:0;margin:0;min-width:0;}
.guided-choices > div {grid-template-columns:repeat(2,minmax(0,1fr));}
.guided-choices input[type=radio][name] {display:inline-block;width:20px;height:20px;min-height:0;padding:0;flex:none;margin:0;accent-color:var(--teal);}
@media(max-width:600px) {.capture-modes > div {grid-template-columns:1fr;}}

.interface-language-form {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;}
.interface-language-form label {font-size:.8rem;}
.interface-language-form select {width:auto;min-height:2.5rem;padding:.35rem;}
.interface-language-form button {min-height:2.5rem;}
.learning-language-form {display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;}
.learning-language-form select {width:auto;max-width:100%;}
.learning-languages li {margin:.5rem 0;}
@media(max-width:600px) {.site-header {align-items:flex-start;} .interface-language-form {width:100%;} .learning-language-form {align-items:flex-start;flex-direction:column;}}

.image-ladder{width:100%;border-collapse:collapse;table-layout:fixed}.image-ladder th,.image-ladder td{padding:12px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.image-ladder th:first-child,.image-ladder td:first-child{width:4em}.image-ladder th:last-child,.image-ladder td:last-child{width:5em;text-align:right;font-variant-numeric:tabular-nums}.image-ladder tbody th{font-weight:600}

.account-menu { position: relative; flex-shrink: 0; }
.account-menu > summary {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  cursor: pointer;
  font-weight: 650;
}
.account-menu > .account-menu-content {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(300px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  text-align: left;
  max-height: 75vh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px #183b3b22;
  font-size: 16px;
}
.account-menu-content > a { padding: 10px 4px; }
.account-menu-content .interface-language-form {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.account-menu-content .interface-language-form select { max-width: 100%; min-height: 48px; }
.account-menu-content .interface-language-form label { font-size: inherit; }
.learning-home { max-width: 680px; margin: 0 auto; }
.language-choices, .learning-dictionaries { display: grid; gap: 14px; }
.language-choices button, .dictionary-choice {
  min-height: 56px;
  padding: 16px 20px;
  font-size: 18px;
  text-align: left;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}
.dictionary-choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  font-weight: 650;
}
.dictionary-choice:hover { border-color: var(--teal); }
.site-header { flex-direction: row; align-items: center; }
.site-header .brand { min-width: 0; }

.next-step { margin: 0 0 20px; }
.next-step > summary { min-height: 46px; padding: 10px 0; }
.next-step-label { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.next-step[open] > summary { margin-bottom: 0; }
.next-step > .panel { margin: 8px 0 0; }
.entry-help > summary, .recording-settings > summary { min-height: 46px; padding: 10px 0; }
.recording-settings { margin-top: 12px; }
.dictionary-options > summary { min-height: 46px; padding: 10px 0; color: var(--teal); }
.dictionary-options[open] { flex-basis: 100%; }
.dictionary-options-content { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--white); }
.dictionary-option-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
.dictionary-option-links > a { display: inline-flex; align-items: center; min-height: 46px; }
@media(max-width:700px) { .browse-heading { gap: 6px; margin-bottom: 14px; } }
