:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --bg: #e7ecdf; --paper: #fffcf4; --ink: #30382c; --moss: #4b6045;
  --plum: #69465e; --gold: #d4ae62; --quiet: #5c6153; --line: #c6ccbb;
  --wash: #e8ecdf; --warning: #fff0cb; --roof: #b75b3d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
a { color: var(--plum); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
button, .button, input:not([type=file]), select, summary { min-height: 48px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem .85rem; border: 1px solid var(--moss); border-radius: 14px;
  background: var(--moss); color: #fff; text-decoration: none;
  white-space: normal; overflow-wrap: anywhere; cursor: pointer; min-width: 48px;
}
button.secondary, .button.secondary { background: transparent; color: var(--moss); }
button:disabled { opacity: .65; cursor: not-allowed; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: 1.8rem; line-height: 1.18; font-weight: 650; margin: .4rem 0 1rem; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; line-height: 1.3; }
h3 { font-size: 1.1rem; }
p { margin: .65rem 0; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 550; min-width: 0; margin: .65rem 0; }
input, select, textarea { width: 100%; border: 1px solid var(--quiet); background: var(--paper); border-radius: 10px; padding: .65rem; }
textarea { resize: vertical; min-height: 100px; line-height: 1.5; scroll-margin-block: 1rem; }
input[type=file] { padding: .5rem 0; min-height: 48px; font-size: .875rem; }
input::file-selector-button { font: inherit; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--wash); padding: .6rem; max-width: 100%; white-space: normal; }
summary { display: flex; align-items: center; cursor: pointer; color: var(--plum); padding: .5rem 0; }
details { margin: .5rem 0; }
.topbar {
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: max(.4rem, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) .4rem max(12px, env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
}
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-size: 1.15rem; font-weight: 700; color: var(--moss); text-decoration: none; gap: .4rem; }
.brand small { font-size: .75rem; font-weight: 500; }
.frame { width: min(100%, 920px); margin: auto; padding: 12px max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.paper, .handoff-preview { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.quiet { color: var(--quiet); font-size: .9rem; }
.eyebrow { color: var(--moss); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.notice { padding: .7rem; background: var(--warning); border-radius: 12px; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.identity-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.identity-row p { font-size: .85rem; color: var(--quiet); }
.welcome { display: grid; align-items: center; }
.house { display: block; width: 100%; max-height: 175px; }
.desktop-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 1rem 0 1.5rem; }
.desktop-actions > a { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; min-height: 128px; padding: .6rem .2rem; color: var(--ink); text-decoration: none; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.6rem; border-radius: 14px; background: var(--wash); color: var(--moss); }
#assigned-link .tile-icon { background: #f1e5ed; color: #69465e; }
#new-link .tile-icon { background: var(--gold); color: #30382c; }
.tile-label { font-size: .78rem; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.tile-count { font-size: .85rem; margin-top: auto; color: var(--quiet); }
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.categories a { min-height: 64px; display: flex; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--paper); overflow-wrap: anywhere; }
.field-pair, .filters { display: grid; gap: .5rem; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.task-list { display: grid; gap: .75rem; }
.task-card { display: block; min-width: 0; min-height: 48px; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-decoration: none; color: var(--ink); }
.task-card:hover { border-color: var(--plum); }
.task-card h3 { margin: 0 0 .5rem; }
.full-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.attachment { padding: .7rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#task-view > .button, #task-view > button, #task-help > button, #handoff-view > button { margin: .35rem .35rem .35rem 0; }
#task-view, #create-view, #list-view, #handoff-view { min-width: 0; }
#task-view .full-text { max-height: none; overflow: visible; }
#uncertain-list form { margin-block: 1rem; }
#attachment-list input[type=file] { width: 100%; min-width: 0; }
#manual-submit { width: 100%; margin-top: .5rem; position: static; }
#draft-feedback:empty { display: none; }
.analysis-area { border-top: 1px solid var(--line); margin-top: 1rem; }
.warning { margin-bottom: 1rem; background: var(--warning); }
.skip { position: absolute; left: -9999px; min-height: 44px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--paper); padding: .6rem; }
.preview-media { display: block; width: 100%; max-width: 100%; max-height: 60vh; object-fit: contain; margin-block: .6rem; }
.preview-status { color: var(--quiet); }
.handoff-preview { margin: 1rem 0; }
#created-results .task-card { margin-block: .6rem; }
.question-group { min-width: 0; border: 1px solid var(--line); border-radius: 14px; margin: 1rem 0; padding: .8rem; }
.question-group legend { font-weight: 650; overflow-wrap: anywhere; }
.question-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.question-choices button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.question-choices button[aria-pressed=true] { background: var(--wash); outline: 2px solid var(--moss); }
.clarification-footer { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.clarification-footer .clarification-details { flex: 1; min-width: 0; }
.clarification-remove { min-height: 44px; margin: 0; color: var(--quiet); }
.queued-jobs { margin-bottom: 20px; }
.queued-jobs h2 { margin: 0 0 12px; }
.queued-job { padding: 12px 0; }
.queued-job + .queued-job { border-top: 1px solid var(--line); }
.queued-job p { margin: 0 0 8px; }
#result-dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; overflow: auto; overflow-wrap: anywhere; }
#result-dialog::backdrop { background: rgb(0 0 0 / .45); }
#result-drafts { display: grid; gap: .6rem; margin-block: 1rem; }
#result-close { width: 100%; margin-top: .8rem; }
.search-confirm { padding: .8rem; background: var(--paper); border-radius: 14px; }
.search-confirm label { flex-direction: row; align-items: center; min-height: 44px; }
.search-confirm input[type=checkbox] { width: 24px; min-height: 24px; flex-shrink: 0; }
@media (min-width: 600px) {
  .welcome { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .house { max-height: 240px; }
  .desktop-actions { gap: 14px; }
  .desktop-actions > a { padding: 1rem; }
  .tile-label { font-size: 1rem; }
  .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-pair, .filters { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #20271f; --paper: #2a3228; --ink: #f0eedf; --moss: #b4c6a4; --plum: #dfb9d0; --quiet: #c0c5b6; --line: #56604e; --wash: #364331; --warning: #413822; }
  button, .button { background: #536c48; color: #fff; }
  button.secondary, .button.secondary { background: transparent; color: var(--moss); }
  #assigned-link .tile-icon { background: #523c4b; color: #dfb9d0; }
  .house { filter: brightness(.9); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 15mm; }
  :root { color-scheme: light; }
  body { background: white; color: black; font-size: 12pt; }
  body > *, main > *, #app > *, #handoff-view > * { display: none !important; }
  body.printing-task > main, body.printing-task main > #app,
  body.printing-task #app > #handoff-view,
  body.printing-task #handoff-view > .handoff-preview { display: block !important; }
  .handoff-preview { background: white; color: black; border: 0; padding: 0; }
  .handoff-preview img { max-height: 180mm; break-inside: avoid; }
  .handoff-preview button, .handoff-preview a, .handoff-preview audio, .handoff-preview video,
  .handoff-preview .preview-status { display: none !important; }
  .handoff-preview h1 { font-size: 20pt; }
}

/* Four equal desktop-like actions; no selected mode. */
.source-tiles { container:source-actions / inline-size; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; margin:.75rem 0; }
.source-tiles button { aspect-ratio:1; width:100%; min-width:48px; min-height:48px; padding:4px; flex-direction:column; gap:4px; background:var(--paper); color:var(--ink); border:1px solid var(--quiet); border-radius:16px; font-size:.8125rem; line-height:1.2; }
.source-tiles button > svg { color:#9a4630; width:24px; height:24px; min-width:24px; min-height:24px; max-height:24px; flex:0 0 24px; }
.source-tiles button > span { flex:0 0 auto; max-width:100%; white-space:nowrap; overflow-wrap:normal; word-break:normal; line-break:auto; }
/* Query the tile container in rem: responds to root text size, not initial media em. */
@container source-actions (width < 18rem) { .source-tiles button { grid-column:span 2; } }
.source-tiles button:active { background:var(--wash); }
.composer { padding:.8rem; }
.composer h2 { font-size:1rem; margin:.2rem 0 .5rem; }
.source-row { padding:.5rem 0; border-bottom:1px solid var(--line); display:flow-root; }
.source-row p { margin:.2rem 0; }
.source-row img.local-preview { width:84px; height:84px; max-height:none; float:left; margin:0 .6rem .4rem 0; }
.source-row video.local-preview { width:100%; height:160px; max-height:none; margin:.35rem 0; }
.source-row audio.local-preview { width:100%; height:54px; max-height:none; margin:.35rem 0; }
.source-row-actions { clear:both; padding-top:.3rem; }
.source-excerpt { white-space:pre-wrap; max-height:5.5rem; overflow:auto; margin:.2rem 0 .5rem; }
.source-row-actions,.source-secondary { display:flex; gap:6px; flex-wrap:wrap; }
.source-row-actions button { font-size:.875rem; padding:.45rem .6rem; background:var(--paper); color:var(--ink); border-color:var(--quiet); }
.assignment-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
.assignment-fields label:first-child { grid-column:1 / -1; }
.assignment-fields label { margin:.4rem 0; font-size:.9rem; }
.create-actions { position:fixed; z-index:3; left:0; right:0; bottom:var(--viewport-bottom,0px); width:min(100%,920px); margin-inline:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); background:var(--paper); border-top:1px solid var(--line); }
#create-view { padding-bottom:calc(var(--create-actions-height,80px) + 1rem); }
#create-view input, #create-view select, #create-view textarea, #create-view button, #create-view summary { scroll-margin-bottom:calc(var(--create-actions-height,80px) + 1rem); }
.source-sheet input, .source-sheet textarea, .source-sheet button { scroll-margin-block:8px; }
.create-actions #manual-submit { width:auto; flex:1; margin:0; }
.create-actions #create-back { background:var(--paper); }
.create-actions button, .source-footer button { min-width:0; padding:6px 4px; line-height:1.25; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.source-sheet { box-sizing:border-box; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:20px; position:fixed; top:calc(var(--viewport-top,0px) + 8px + env(safe-area-inset-top)); bottom:auto; left:0; right:0; margin:0 auto; width:min(38rem,calc(100% - 16px)); max-width:calc(100% - 16px); height:min(34rem,calc(var(--sheet-available,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); max-height:calc(var(--sheet-available,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow:clip; padding:0; overscroll-behavior:contain; }
.source-sheet[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.source-header { min-width:0; padding:8px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.source-header h2 { min-width:0; }
.source-header #source-close { flex:none; min-width:48px; min-height:48px; padding:4px; font-size:.8125rem; line-height:1.2; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.source-middle { min-height:0; min-width:0; overflow-y:auto; padding:8px 12px; overscroll-behavior:contain; scroll-padding-block:8px; }
.source-middle #source-status { margin:0 0 8px; }
.source-sheet .source-secondary button { overflow-wrap:normal; word-break:normal; }
.source-sheet::backdrop { background:rgb(0 0 0 / .45); }
.source-sheet h2 { margin:0; }
.source-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--paper); }
.source-sheet textarea { font-size:1rem; min-height:8rem; }
.local-preview,#live-view { display:block; width:100%; max-height:32vh; object-fit:contain; border-radius:12px; background:var(--wash); }
#record-clock { display:inline-block; font-variant-numeric:tabular-nums; padding:.5rem; }
#record-status:not(:empty) { font-weight:700; color:var(--plum); }
#record-status:not(:empty)::before { content:''; display:inline-block; width:.65rem; height:.65rem; border-radius:50%; background:#b42318; margin-right:.4rem; }
.topbar { padding-top:calc(.5rem + env(safe-area-inset-top)); }
@media (min-width:600px) { .source-tiles { max-width:440px; } .assignment-fields { grid-template-columns:repeat(3,minmax(0,1fr)); } .assignment-fields label:first-child { grid-column:auto; } }
@media (prefers-color-scheme:dark) { .source-tiles button > svg { color:#e6a088; } }
@media (prefers-reduced-motion:reduce) { .source-sheet,.source-tiles button { animation:none; transition:none; scroll-behavior:auto; } }

/* C15 Jardim: supplied reference palette; system fonts, no demo runtime/assets. */
:root, :root[data-theme="light"] {
  color-scheme:light; --bg:#f7f5ee; --paper:#fffef9; --surface:#fffef9; --wash:#f0eee5;
  --ink:#2f382d; --moss:#586c46; --quiet:#636b5b; --muted:#636b5b; --line:#d9ddcf;
  --plum:#765069; --gold:#9b7833; --clay:#a35f44; --roof:#a35f44;
  --moss-soft:#e7eddd; --plum-soft:#efe5ed; --gold-soft:#f3ecd8; --clay-soft:#f3e5dd;
  --warning:#f3ecd8; --action-bg:#586c46; --action-ink:#fffef9; --hero-wash:#f0eddf;
  --green:#586c46; --cream:#f7f5ee; --soft:#e7eddd; --border:#8b927f; --glaze:#586c46; --ochre:#9b7833;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark; --bg:#20271f; --paper:#2a3229; --surface:#2a3229; --wash:#323b30;
    --ink:#eeeede; --moss:#bacaa3; --quiet:#b3b8a7; --muted:#b3b8a7; --line:#535e4c;
    --plum:#d2b5c9; --gold:#ddc082; --clay:#e3ab8c; --roof:#e3ab8c;
    --moss-soft:#3b4932; --plum-soft:#463642; --gold-soft:#49412d; --clay-soft:#4c382e;
    --warning:#49412d; --action-bg:#52683d; --action-ink:#fffef9; --hero-wash:#333e2c;
    --green:#bacaa3; --cream:#20271f; --soft:#3b4932; --border:#859477; --glaze:#bacaa3; --ochre:#ddc082;
  }
}
:root[data-theme="dark"] {
  color-scheme:dark; --bg:#20271f; --paper:#2a3229; --surface:#2a3229; --wash:#323b30;
  --ink:#eeeede; --moss:#bacaa3; --quiet:#b3b8a7; --muted:#b3b8a7; --line:#535e4c;
  --plum:#d2b5c9; --gold:#ddc082; --clay:#e3ab8c; --roof:#e3ab8c;
  --moss-soft:#3b4932; --plum-soft:#463642; --gold-soft:#49412d; --clay-soft:#4c382e;
  --warning:#49412d; --action-bg:#52683d; --action-ink:#fffef9; --hero-wash:#333e2c;
  --green:#bacaa3; --cream:#20271f; --soft:#3b4932; --border:#859477; --glaze:#bacaa3; --ochre:#ddc082;
}

h1,h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.025em; }
body { background:var(--bg); color:var(--ink); }
button,.button { background:var(--action-bg); color:var(--action-ink); }
button.secondary,.button.secondary { color:var(--moss); background:var(--paper); }
.topbar { max-width:1120px; margin:auto; background:transparent; gap:.8rem; padding-inline:16px; }
.brand { font:1.45rem Georgia,serif; letter-spacing:.12em; }
.brand-icon { width:36px; height:36px; flex:none; }
.brand small { letter-spacing:0; }
.topbar nav { gap:.8rem; font-size:.85rem; }
.theme-picker { margin:0; font-size:.75rem; gap:.1rem; color:var(--quiet); }
.theme-picker select { width:auto; min-height:44px; padding:.25rem .5rem; }
.frame { max-width:1120px; width:100%; padding-inline:16px; }
#main { padding-bottom:calc(10rem + env(safe-area-inset-bottom)); }
.identity-row { margin-block:.4rem 1rem; }
.welcome.jardim-hero { position:relative; display:block; overflow:hidden; isolation:isolate; min-height:14rem; border:1px solid var(--line); border-radius:22px; background:var(--hero-wash); }
.hero-art { position:absolute; inset:0 0 0 auto; width:72%; height:100%; object-fit:cover; object-position:70% 56%; z-index:0; }
.jardim-hero::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,var(--hero-wash) 0%,var(--hero-wash) 30%,transparent 88%); }
.hero-copy { position:relative; z-index:2; padding:1.5rem; max-width:65%; }
.hero-copy h1 { font-size:2rem; line-height:1.15; margin:.8rem 0; }
.hero-copy p:last-child { font-size:.9rem; }
.hero-copy .eyebrow { max-width:18em; }
.desktop-actions { container:home-actions / inline-size; margin:1.25rem 0 2rem; gap:.65rem; }
.desktop-actions>a { box-shadow:0 8px 24px #2f382d08; }
.desktop-actions .tile-label { max-width:100%; overflow-wrap:normal; word-break:normal; hyphens:none; }
@container home-actions (width < 18rem) { .desktop-actions>a { grid-column:span 2; } }
.tile-icon svg { width:24px; height:24px; flex:none; }
#mine-link .tile-icon { background:var(--plum-soft); color:var(--plum); }
#assigned-link .tile-icon { background:var(--gold-soft); color:var(--gold); }
#new-link { background:var(--action-bg); color:var(--action-ink); }
#new-link .tile-icon { background:transparent; color:inherit; }
#new-link .tile-count { color:inherit; }
.categories { gap:.8rem; margin-bottom:1.8rem; }
.categories .board-card { position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; min-width:0; width:100%; min-height:10rem; aspect-ratio:1.12; padding:1rem; overflow:hidden; border-radius:18px; color:var(--ink); gap:.45rem; }
.palette-0 { --accent:var(--clay); --tint:var(--clay-soft); }
.palette-1 { --accent:var(--moss); --tint:var(--moss-soft); }
.palette-2 { --accent:var(--gold); --tint:var(--gold-soft); }
.palette-3 { --accent:var(--plum); --tint:var(--plum-soft); }
.board-icon { width:32px; height:32px; min-height:32px; color:var(--accent); flex:none; margin-bottom:auto; }
.board-watermark { position:absolute; width:100px; height:100px; right:-6px; top:4px; opacity:.09; color:var(--accent); z-index:-1; transform:rotate(-12deg); }
.board-card h3 { margin:.3rem 0 0; font-size:1rem; line-height:1.3; min-width:0; max-width:100%; }
.board-meta { font-size:.75rem; color:var(--quiet); min-width:0; max-width:100%; overflow-wrap:anywhere; }
.board-card progress { display:block; width:100%; min-width:0; max-width:100%; height:5px; border:0; border-radius:5px; background:var(--wash); accent-color:var(--accent); }
.board-card progress::-webkit-progress-bar { background:var(--wash); border-radius:5px; }
.board-card progress::-webkit-progress-value { background:var(--accent); border-radius:5px; }
.board-card progress::-moz-progress-bar { background:var(--accent); }
.task-list { grid-template-columns:minmax(0,1fr); gap:.5rem; }
.jardim-task { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:.8rem; padding:.9rem 1rem; border-radius:15px; }
.jardim-task h3 { font-size:1rem; line-height:1.35; margin:0; }
.task-copy { min-width:0; }
.task-meta { display:flex; flex-wrap:wrap; gap:.3rem .65rem; align-items:center; font-size:.8rem; color:var(--quiet); margin:.4rem 0 0; }
.category-pill { padding:.15rem .4rem; color:var(--accent); background:var(--tint); border-radius:6px; }
.assignee-name { margin:.25rem 0 0; font-size:.8rem; }
.member-initial { width:2rem; height:2rem; display:grid; place-items:center; border-radius:50%; background:var(--moss-soft); color:var(--moss); font-family:Georgia,serif; }
.task-marker { width:16px; height:16px; border:2px solid var(--moss); border-radius:50%; }
.task-marker.is-complete { background:var(--moss-soft); box-shadow:inset 0 0 0 3px var(--paper); }
.jardim-task>.full-text { grid-column:1/-1; }
.empty-state { padding:1rem; border:1px dashed var(--line); border-radius:16px; }
.home-next { margin-top:1.75rem; }
.home-next h2 { margin:.3rem 0; }
#home-summary { padding-block:1rem; }
.jardim-nav { position:fixed; z-index:2; bottom:0; left:0; right:0; display:flex; flex-wrap:wrap; gap:4px; justify-content:center; background:var(--paper); border-top:1px solid var(--line); padding:8px 12px calc(8px + env(safe-area-inset-bottom)); }
.jardim-nav a { flex:1 1 4.5em; max-width:12rem; min-width:0; min-height:48px; display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; font-size:.8rem; padding:.4rem; color:var(--quiet); border-radius:12px; overflow-wrap:normal; }
.jardim-nav [aria-current=page] { color:var(--moss); background:var(--moss-soft); }
.jardim-nav .nav-add { background:var(--action-bg); color:var(--action-ink); font-weight:650; }
.source-tiles button { background:var(--paper); color:var(--ink); border-color:var(--line); }
.source-tiles button>svg { color:var(--clay); }
.source-header h2 { font-family:inherit; font-weight:550; }
.history-event { padding:.8rem 0; border-bottom:1px solid var(--line); }
@media (max-width:600px) {
  .topbar { padding-inline:12px; }
  .topbar nav { width:100%; justify-content:space-between; }
  .frame { padding-inline:12px; }
  .hero-art { width:100%; object-position:75% 52%; }
  .hero-copy { padding:1.2rem; max-width:85%; }
  .hero-copy h1 { font-size:1.7rem; }
  .hero-copy p:last-child { max-width:14em; }
  .jardim-hero::after { background:linear-gradient(90deg,var(--hero-wash) 0%,var(--hero-wash) 12%,transparent 100%); }
  .categories .board-card { padding:.85rem; aspect-ratio:auto; }
  .desktop-actions { gap:4px; }
  .desktop-actions>a { padding:.6rem 1px; }
  .desktop-actions .tile-label { font-size:.75rem; }
}
@media (forced-colors:active) { .task-marker,.category-pill,.jardim-nav a,.board-card { border:1px solid ButtonText; } }


/* Keep all four actions readable on narrow phones without shrinking text. */
@media (max-width:360px) {
  .desktop-actions { grid-template-columns: minmax(0,.85fr) minmax(0,.85fr) minmax(0,1.15fr) minmax(0,1.15fr); }
}

/* Very large text on a narrow phone needs full-width action labels. */
@container home-actions (width < 10rem) { .desktop-actions>a { grid-column:span 4; } }

/* Jardim UX5 production: compact navigation, warm paper, explicit capture. */
:root,:root[data-theme=light] {color-scheme:light;--bg:#faf7f1;--paper:#fffdfa;--ink:#393c36;--quiet:#6f7369;--line:#e5e1d7;--moss:#53664b;--moss-soft:#e9efdf;--plum:#79546f;--plum-soft:#f2e9ef;--gold:#9a7b39;--gold-soft:#f3ecd9;--clay:#ad6851;--clay-soft:#f5e6de;--wash:#f1ede5;--action-bg:#dce6cc;--action-ink:#33452d;--warning:#f6edd6;--hero-wash:#eee7d8}
:root[data-theme=dark] {color-scheme:dark;--bg:#302f32;--paper:#39383b;--ink:#f2ece3;--quiet:#c7c1b9;--line:#535155;--moss:#c6d2b3;--moss-soft:#4b5345;--plum:#d2b3c9;--plum-soft:#534853;--gold:#ddc082;--gold-soft:#514b3e;--clay:#dfac93;--clay-soft:#55463f;--wash:#444347;--action-bg:#56614b;--action-ink:#faf7ee;--warning:#554c39;--hero-wash:#444347}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#302f32;--paper:#39383b;--ink:#f2ece3;--quiet:#c7c1b9;--line:#535155;--moss:#c6d2b3;--moss-soft:#4b5345;--plum:#d2b3c9;--plum-soft:#534853;--gold:#ddc082;--gold-soft:#514b3e;--clay:#dfac93;--clay-soft:#55463f;--wash:#444347;--action-bg:#56614b;--action-ink:#faf7ee;--warning:#554c39;--hero-wash:#444347}}
body{font-size:15px}h1{font-size:2.35rem}h2{font-size:1.65rem}button,.button{border-color:var(--line);font-size:.9rem}input,select,textarea{border-color:var(--line)}button:hover,.button:hover{filter:brightness(.97)}a{color:var(--moss)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.workspace-header{max-width:1200px;margin:auto;padding:22px 32px 26px}.brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);letter-spacing:-.8px;font:28px Georgia,serif;text-decoration:none;margin-bottom:22px}.brand-emblem{width:64px;height:64px;overflow:hidden;border-radius:19px;border:1px solid #d5cbb7;background:#eee7d8;box-shadow:0 3px 12px #79634612;flex:none}.brand-emblem img{width:100%;height:100%;object-fit:cover;object-position:86% 50%}.brand-casa{color:var(--moss)}.workspace-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nav-tile{display:flex;gap:13px;align-items:center;padding:17px;border-radius:17px;border:1px solid var(--line);background:var(--paper);text-align:left;font-size:13px;min-height:74px;text-decoration:none;color:var(--ink);min-width:0}.nav-icon{width:39px;height:39px;background:var(--wash);border-radius:12px;display:grid;place-items:center;flex:none;color:var(--moss)}.nav-icon svg{width:23px;height:23px}.nav-create{background:var(--moss-soft);border-color:var(--line)}.nav-create .nav-icon{background:var(--action-bg)}.nav-tile[aria-current=page]{box-shadow:inset 0 0 0 1px #a9b894;border-color:#a9b894}.frame{max-width:1200px;padding-inline:32px}#main{padding-top:0;padding-bottom:30px}.welcome.jardim-hero{min-height:0;height:165px;margin-bottom:24px}.hero-art{width:100%;object-position:65% 49%}.jardim-hero::after{background:linear-gradient(180deg,#33261518,transparent 60%)}.hero-location{position:absolute;left:16px;top:15px;padding:6px 10px;border-radius:9px;font-size:11px;color:#4a4b3f;background:#fffaf0e8;z-index:2}.home-views{display:flex;gap:10px;margin:0 0 25px}.home-views a{display:flex;align-items:center;gap:10px;text-decoration:none;min-height:44px;background:var(--wash);border-radius:99px;padding:8px 17px;font-size:13px}.home-views span{color:var(--quiet)}#home-summary,footer.frame{font-size:11px}#gate{max-width:640px;margin:25px auto}.section-title{margin-bottom:22px}.section-title h1{margin:0}.board-shortcuts{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 18px;margin:0 0 13px;scrollbar-width:thin}.board-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;width:94px;flex:0 0 94px;border:0;background:transparent;color:var(--ink);padding:4px 0;font-size:11px;min-height:96px;overflow-wrap:normal}.board-shortcut .board-icon{width:58px;height:58px;padding:15px;margin:0;border-radius:17px;border:1px solid var(--line);background:var(--wash);color:var(--accent,var(--moss));transition:none}.board-shortcut[aria-pressed=true] .board-icon{background:var(--tint,var(--moss-soft));box-shadow:0 0 0 2px #a9b894;border-color:transparent}.board-shortcut[aria-pressed=false]{opacity:.6}.board-shortcut span{max-width:100%;line-height:1.3}.list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.list-tabs{display:flex;gap:5px;flex-wrap:wrap}.list-tabs a{min-height:44px;display:flex;align-items:center;padding:8px 13px;border-radius:99px;font-size:12px;color:var(--quiet);text-decoration:none}.list-tabs a[aria-current=page]{background:var(--moss-soft);color:var(--ink)}#sort-tasks{font-size:11px;border:0;background:transparent;color:var(--quiet);min-height:44px}.search-field{margin:0 0 15px}.search-field input{background:var(--paper);padding-left:16px;border-radius:13px;font-size:14px}#visible-count{font-size:11px}.task-list{gap:8px}.jardim-task{padding:16px 18px;grid-template-columns:18px minmax(0,1fr) auto;border-radius:15px}.jardim-task h3{font-size:15px;font-weight:550}.task-meta{font-size:11px}.assignee-name{font-size:12px}.task-marker{border-width:1px}.member-initial{background:var(--plum-soft);color:var(--plum)}#task-view,#handoff-view{max-width:850px;margin:auto;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:25px}#create-view{max-width:850px;margin:auto}#create-title{margin-bottom:25px}.composer{padding:26px}.source-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}.source-tiles button{min-height:60px;flex-direction:row;gap:9px;border-radius:13px;font-size:13px;padding:10px}.source-tiles button svg{width:22px;height:22px;color:var(--moss)}.composer-label{font-size:13px;font-weight:400;margin-bottom:10px}#composer-text{padding:16px;background:var(--bg);min-height:140px;font-size:15px}.source-row{padding:12px;border:0;border-radius:13px;background:var(--bg);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;margin-top:12px}.source-row>p{font-size:12px;margin:0;grid-column:1}.source-row .local-preview{max-width:100%;max-height:140px;width:auto;grid-column:1}.source-row>audio{height:35px;width:100%;max-width:340px}.source-row-actions{grid-column:2;grid-row:1/5;align-self:start;display:flex;flex-direction:column;gap:2px}.source-row-actions button{font-size:11px;min-height:32px;padding:4px 8px;border:0;background:transparent;color:var(--quiet)}.source-row-actions button:nth-child(2),.source-row-actions button:nth-child(3){display:none}#draft-feedback,#provider-state{font-size:11px}#draft-feedback{margin-top:20px}#manual-fields{font-size:13px}#manual-fields>summary{min-height:40px}#manual-fields .assignment-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.create-actions{position:static;display:flex;justify-content:flex-end;gap:8px;background:transparent;padding:0;margin-top:22px;border:0}.create-actions button,#manual-submit{width:auto;flex:none;margin:0}#analyze-submit{min-width:170px}#create-back{margin-right:auto}.source-choice{display:grid;gap:12px;margin:15px 0}.source-choice button{min-height:56px}.source-header h2{font-family:Georgia,serif;font-size:26px}.source-sheet{border-color:var(--line);box-shadow:0 20px 80px #30251c25}.source-secondary{display:flex;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .paper{padding:25px}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}#settings-view h1{margin-bottom:25px}#result-dialog{width:min(720px,calc(100% - 24px))}#uncertain-list form{padding:22px}#uncertain-list:empty::after{content:'Неопубликованных поручений нет.';color:var(--quiet)}
@media(max-width:640px){.workspace-header{padding:18px 16px 22px}.frame{padding-inline:16px}.brand{font-size:25px;margin-bottom:19px}.brand-emblem{width:54px;height:54px;border-radius:16px}.workspace-nav{gap:7px}.nav-tile{flex-direction:column;gap:8px;padding:10px 3px;font-size:10px;line-height:1.3;text-align:center;border:0;background:transparent;min-height:92px}.nav-icon{width:45px;height:45px;border-radius:14px}.nav-create{background:transparent}.nav-create .nav-icon{background:var(--action-bg)}.nav-tile[aria-current=page]{box-shadow:none}.nav-tile[aria-current=page] .nav-icon{box-shadow:0 0 0 2px #a9b894}.nav-tile span:last-child{max-width:90px;overflow-wrap:normal;word-break:normal}h1{font-size:1.85rem}h2{font-size:1.5rem}.section-title .button{font-size:11px;padding:8px 12px}.welcome.jardim-hero{height:145px}.board-shortcuts{gap:9px;margin-inline:-2px}.board-shortcut{width:81px;flex-basis:81px}.board-shortcut .board-icon{width:53px;height:53px;padding:13px}.list-toolbar{gap:2px}.list-tabs{gap:2px}.list-tabs a{font-size:10px;padding:7px 9px}#sort-tasks{padding-left:0}.jardim-task{padding:14px 12px;gap:10px}.jardim-task h3{font-size:14px}.task-meta{gap:4px 7px}.composer{padding:18px}.source-tiles{gap:8px}.source-tiles button{font-size:11px;gap:6px;flex-direction:column;padding:10px 4px;min-height:69px}.create-actions{flex-wrap:wrap}.create-actions button{font-size:12px}#analyze-submit{min-width:135px}#manual-fields .assignment-fields{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.source-row{grid-template-columns:minmax(0,1fr) 70px}.source-row-actions button{font-size:10px}#task-view,#handoff-view{padding:20px}.source-sheet{width:calc(100% - 20px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.card-heading{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.card-heading h1{flex:1 1 60%;margin-bottom:12px}.card-heading button{font-size:12px;min-height:42px}.card-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:var(--quiet);font-size:12px;margin:0 0 24px}.card-meta .category-pill{color:var(--moss);background:var(--moss-soft);padding:5px 9px}.card-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.card-footer{display:flex;flex-wrap:wrap;gap:8px 18px;padding-top:18px;border-top:1px solid var(--line);font-size:11px}#task-description{font-size:16px;line-height:1.7}.card-review{padding:18px;background:var(--wash);border-radius:14px;margin-bottom:20px}#task-view>details{border-top:1px solid var(--line);padding:5px 0}#task-view>details>summary{font-size:13px;color:var(--quiet)}#task-view #task-history-toggle{border:0;padding-left:0;font-size:13px;color:var(--quiet)}

/* Task-focused layout: one navigation row; content and direct actions first. */
.workspace-header{display:flex;align-items:center;gap:24px;padding-block:18px 24px}
.workspace-header .brand{margin:0;flex:0 0 auto;font-size:24px;gap:10px}
.workspace-header .brand-emblem{width:48px;height:48px;border-radius:14px}
.workspace-nav{flex:1;gap:8px}
.nav-tile{min-height:56px;padding:10px;gap:8px;font-size:12px}
.nav-icon{width:32px;height:32px;border-radius:10px}
.nav-icon svg{width:20px;height:20px}
.card-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;margin-bottom:12px}
.card-heading h1{font-size:30px;line-height:1.2;margin:0;overflow-wrap:break-word}
.text-action{border:0;background:transparent;color:var(--moss);padding:8px 0;min-height:44px;box-shadow:none}
.card-heading .text-action{white-space:nowrap;font-size:14px;min-width:64px}
.card-meta{font-size:13px;gap:8px 12px;margin-bottom:20px}
#task-description{font-size:16px;font-weight:400;line-height:1.55;margin:0 0 22px;white-space:pre-wrap}
.task-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin-bottom:16px}
.task-photos .attachment{margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column}
.task-photos .attachment img{order:-1}
.task-photos .attachment>p:first-child{display:none}
.task-photos .attachment:has(img) .preview-open,.task-photos .attachment:has(img) .preview-status{display:none}
.task-photos .preview-status{font-size:13px;padding:0 12px}
.task-photos .preview-media{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:14px;margin:0}
.task-photos .attachment>.button{font-size:12px;border:0;padding:6px 0;background:transparent;min-height:44px}
.task-files .attachment{margin:0 0 12px;padding:12px;border-radius:12px;background:var(--wash)}
.task-files .preview-status{font-size:12px}
.card-actions{margin:20px 0;gap:10px}
.card-actions button{min-height:48px;font-size:15px}
.return-form{flex-basis:100%;margin-top:4px}
.return-form textarea{font-size:16px;min-height:88px}
.task-extra{margin-top:22px!important;font-size:13px}
.task-extra summary{min-height:44px;gap:8px}
.task-extra>summary::before{content:'⌄';font-size:18px}
.task-extra[open]>summary::before{content:'⌃'}
.task-extra>.secondary{font-size:13px;margin:4px 12px 4px 0}
:root{--danger:#a33f36}
:root[data-theme=dark]{--danger:#f0aaa1}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--danger:#f0aaa1}}
.danger-action{display:block;color:var(--danger);font-size:14px;margin-top:20px;text-align:left}
.danger-confirm{background:#a33f36;color:white}
.delete-dialog{width:min(420px,calc(100% - 32px));padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink)}
.delete-dialog::backdrop{background:#24282166}
.delete-dialog h2{font-size:23px;margin-top:0}
.question-group{min-width:0;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:12px}
.question-group legend{max-width:100%;font-size:16px;line-height:1.4;font-weight:600;overflow-wrap:break-word;padding:0 4px}
.question-group label{font-size:14px}
.question-group input{min-width:0;width:100%;font-size:16px}
#result-drafts .paper{padding:18px}
@media(max-width:900px){.workspace-header{gap:14px}.workspace-header .brand{font-size:20px}.nav-tile{flex-direction:column;gap:4px;text-align:center;padding:6px;font-size:11px}.nav-icon{width:36px;height:36px}}
@media(max-width:640px){
 .workspace-header{gap:10px;padding:calc(10px + env(safe-area-inset-top)) 16px 18px}
 .workspace-header .brand{width:40px;min-width:40px;min-height:48px;overflow:hidden}
 .workspace-header .brand>span:last-child{display:none}
 .workspace-header .brand-emblem{width:40px;height:40px;border-radius:12px}
 .workspace-nav{gap:4px;min-width:0}
 .nav-tile{min-height:64px;padding:2px;font-size:11px;gap:4px}
 .nav-icon{width:38px;height:38px;border-radius:12px}
 .nav-tile span:last-child{line-height:1.15;min-width:0}
 #task-view{padding:20px 16px;border-radius:18px}
 .card-heading{gap:10px}.card-heading h1{font-size:25px;line-height:1.2;letter-spacing:-.02em}
 .card-meta{font-size:12px;margin-bottom:18px}
 .card-actions{display:grid;grid-template-columns:1fr}.card-actions>button{width:100%}
 .delete-dialog .card-actions{grid-template-columns:1fr 1fr}
 .task-photos{grid-template-columns:1fr}
}

/* Recording: completion stays in the fixed dialog footer at every viewport. */
.source-footer button{min-height:48px}.source-footer #source-use{touch-action:manipulation}#record-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#record-status{margin:4px 0}#record-clock{margin-left:auto}#source-status:empty{display:none}

/* Compact attachment controls; the single remove action keeps a full touch target. */
.source-row-actions button:nth-child(n){display:inline-flex;min-width:44px;min-height:44px;font-size:14px}
.source-row:has(.local-preview){grid-template-columns:92px minmax(0,1fr) 44px;align-items:center}
.source-row:has(.local-preview) .local-preview{grid-column:1;grid-row:1/3;width:92px;max-height:92px;object-fit:contain}
.source-row:has(.local-preview)>p{grid-column:2;overflow-wrap:anywhere}
.source-row:has(.local-preview) .source-row-actions{grid-column:3;grid-row:1/3}
.search-links{display:flex;gap:8px;flex-wrap:wrap}.search-topic{margin-bottom:8px}
#manual-fields>summary{font-weight:400;color:var(--quiet);font-size:14px;min-height:44px;display:flex;align-items:center}

.source-row:has(audio.local-preview){grid-template-columns:minmax(0,1fr) 44px}
.source-row:has(audio.local-preview) audio.local-preview{grid-column:1/-1;grid-row:2;width:100%;max-height:54px}
.source-row:has(audio.local-preview)>p{grid-column:1}
.source-row:has(audio.local-preview) .source-row-actions{grid-column:2;grid-row:1}

/* Restored metadata is recoverable, but does not block a new source. */
.source-recovery{border-top:1px solid var(--line);padding-top:8px;margin-top:10px}
.source-recovery>summary{font-size:14px;color:var(--quiet);min-height:44px;display:flex;align-items:center;cursor:pointer}
.source-row:not(:has(.local-preview)){grid-template-columns:minmax(0,1fr);gap:4px;padding:12px}
.source-row:not(:has(.local-preview))>p{grid-column:1;overflow-wrap:anywhere}
.source-row:not(:has(.local-preview)) .source-row-actions{grid-column:1;grid-row:auto;flex-direction:row;justify-content:flex-start}
.source-row:not(:has(.local-preview)) .source-row-actions button{white-space:normal;word-break:normal;overflow-wrap:normal;width:auto;max-width:100%}
#form-feedback:empty{display:none}

/* Ordinary files need a name and an action; reserve status text for actual errors. */
.preview-status:empty{display:none}
.task-files .attachment:not(:has(.preview-open)){display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.task-files .attachment:not(:has(.preview-open))>p:first-child{flex:1 1 120px;margin:0;min-width:0}
.task-files .attachment:not(:has(.preview-open))>.button{font-size:13px;min-height:44px}
.source-row.source-file-row:not(:has(.local-preview)){grid-template-columns:minmax(0,1fr) 44px;align-items:center}
.source-row.source-file-row:not(:has(.local-preview)) .source-row-actions{grid-column:2;grid-row:1/3;align-self:center;padding:0}

/* A stable, role-scoped review entry; compact on phone widths. */
.home-views{flex-wrap:wrap}
.home-views a[data-review-link]{background:var(--moss-soft);color:var(--ink)}
.list-tabs a[data-review-link]{gap:6px}

/* Review a recording before the explicit Analyze action. Keep native media
   controls large enough to operate on a phone; retake is always optional. */
.source-row:has(.local-preview){grid-template-columns:92px minmax(0,1fr)}
.source-row:has(.local-preview) .source-row-actions,
.source-row.source-file-row:not(:has(.local-preview)) .source-row-actions{grid-column:1/-1;grid-row:auto;flex-direction:row;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.source-row.source-file-row:not(:has(.local-preview)){grid-template-columns:minmax(0,1fr)}
.source-row:has(video.local-preview),.source-row:has(audio.local-preview){grid-template-columns:minmax(0,1fr)}
.source-row:has(video.local-preview)>p,.source-row:has(audio.local-preview)>p{grid-column:1}
.source-row:has(video.local-preview) video.local-preview{grid-column:1;grid-row:1;width:100%;height:auto;max-height:240px;float:none;margin:0 0 8px}
.source-row:has(audio.local-preview) audio.local-preview{grid-column:1;grid-row:1;width:100%;max-width:none;max-height:54px}
#recovery.analysis-processing{background:var(--wash);border-color:var(--line);padding:12px 16px}
#recovery.analysis-processing h2{font-family:inherit;font-size:16px;margin:0 0 4px}
#recovery.analysis-processing p{font-size:14px;margin:0}
#recovery.analysis-processing button{margin-top:8px}

/* One composition surface: text, sources, then optional assignment overrides. */
#create-view{max-width:760px;padding-bottom:24px}
#create-view .composer-back{border:0;background:transparent;color:var(--moss);padding:6px 0;min-height:44px;font-size:16px;margin:0 0 10px;box-shadow:none}
#create-title{font-size:30px;font-weight:400;line-height:1.2;margin:0 0 18px}
#create-form.composer{border:0;border-radius:0;background:transparent;padding:0;box-shadow:none}
#composer-text{margin:0 0 16px;height:136px;min-height:136px;resize:vertical;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px;font-size:16px;line-height:1.5}
#create-form .source-tiles{gap:10px;margin:0 0 22px}
#create-form .source-tiles button{aspect-ratio:auto;min-height:72px;padding:10px 4px;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:16px;background:var(--paper);font-size:13px;font-weight:500}
#create-form .source-tiles button svg{width:25px;height:25px}
#sources-title{font-family:Georgia,serif;font-weight:400;font-size:23px;line-height:1.2;margin:0 0 10px}
#create-form .source-row{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr) 44px;gap:8px 14px;align-items:center;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin:0}
#create-form .source-row .local-preview{grid-column:1;grid-row:1;width:100%;height:96px;max-height:96px;max-width:none;object-fit:cover;border-radius:12px;margin:0;background:var(--wash)}
#create-form .source-row video.local-preview{object-fit:contain}
#create-form .source-copy{grid-column:2;grid-row:1;min-width:0}
#create-form .source-copy p{margin:0;overflow-wrap:anywhere;font-size:13px;line-height:1.35}
#create-form .source-copy .source-name{font-size:16px;font-weight:600;color:var(--ink)}
#create-form .source-retake{border:0;background:transparent;box-shadow:none;color:var(--moss);text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:4px 0;max-width:100%;font-weight:400;font-size:14px;white-space:normal;overflow-wrap:normal;word-break:normal}
#create-form .source-row .source-row-actions{display:flex;grid-column:3;grid-row:1;align-self:center;padding:0;gap:0}
#create-form .source-row .source-remove{width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;padding:0;background:var(--wash);font-size:24px;font-weight:400;color:var(--ink)}
#create-form .source-row[data-kind="audio"]{grid-template-columns:minmax(0,1fr) 44px}
#create-form .source-row[data-kind="audio"] .local-preview{grid-column:1/-1;grid-row:2;height:44px;max-height:44px;object-fit:contain}
#create-form .source-row[data-kind="audio"] .source-copy,#create-form .source-row:not(:has(.local-preview)) .source-copy{grid-column:1;grid-row:1}
#create-form .source-row[data-kind="audio"] .source-row-actions,#create-form .source-row:not(:has(.local-preview)) .source-row-actions{grid-column:2;grid-row:1}
#create-form .source-row:not(:has(.local-preview)){grid-template-columns:minmax(0,1fr) 44px}
.composer-assignment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:18px 0 6px}
.composer-assignment label{min-width:0;gap:0;color:var(--quiet);font-size:13px;font-weight:400;margin:0;line-height:1.5}
.composer-assignment select{margin-top:5px;min-height:48px;max-width:100%;padding:10px 28px 10px 12px;border:1px solid var(--line);border-radius:12px;font-size:16px;font-weight:400;color:var(--ink);background-color:var(--paper);text-overflow:ellipsis}
#manual-fields>summary{display:flex;min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:3px;padding:8px 0}
#manual-fields #task-options{margin:4px 0 12px}
#create-form .create-actions{position:static;display:block;width:100%;margin:6px 0 0;padding:0;background:transparent;border:0}
#create-form .create-actions button{width:100%;min-height:52px;margin:0;border-radius:16px;font-size:17px;font-weight:600}
#create-form #draft-feedback:empty,#create-form #provider-state:empty,#create-form #source-count:empty,#create-form #sources-empty:empty{display:none}
#create-form #provider-state{margin:6px 0;font-size:13px;line-height:1.4}
@media(min-width:641px){#create-title{font-size:38px}#composer-text{min-height:150px}#create-form .source-row .local-preview{height:130px;max-height:130px}#create-form .source-row{grid-template-columns:230px minmax(0,1fr) 44px}.composer-assignment{margin-top:22px}}
@media(max-width:360px){#create-title{font-size:29px}#create-form .source-row{gap:6px 10px;grid-template-columns:112px minmax(0,1fr) 44px}.composer-assignment{gap:8px}.composer-assignment select{padding-left:9px;font-size:16px}}

@media(max-width:360px){.workspace-header{padding-inline:12px;gap:6px}.workspace-nav{gap:3px}.nav-tile{font-size:10px}.nav-tile span:last-child{max-width:100%}}

/* Status belongs to the action, not to an operational dashboard. */
.inline-feedback{margin:10px 0;color:var(--ink);font-size:14px;line-height:1.45;background:transparent;border:0;padding:0}
.inline-feedback:empty{display:none}
.recovery-actions{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin:8px 0 18px}
.recovery-actions p{flex:1 1 220px;margin:0}
.recovery-actions button{font-size:14px;min-height:44px;background:transparent;color:var(--moss);text-decoration:underline;border:0;padding:4px 0}
#result-dialog #result-drafts .paper{border:0;background:transparent;padding:0;margin:12px 0}
#result-dialog #result-drafts .paper+.paper{border-top:1px solid var(--line);padding-top:16px}
#result-dialog h2{margin-bottom:14px}
#result-close{background:transparent;color:var(--moss);border:0;text-decoration:underline;font-size:14px}
#gate-message:empty{display:none}

/* Questions are ordinary work items, outside the creation form. */
#clarifications-view{max-width:960px;margin:0 auto}
#clarifications-view .section-title{align-items:baseline;gap:16px}
#clarifications-title{margin:0;font-size:36px;outline:none}
.quiet-link{color:var(--moss);font-size:14px;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px}
#clarifications-list{display:grid;gap:0;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:0 22px}
#clarifications-list:empty{display:none}
.clarification-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(240px,1.4fr) auto;align-items:center;gap:12px 20px;padding:22px 0;margin:0;min-width:0}
.clarification-row+.clarification-row{border-top:1px solid var(--line)}
.clarification-name{font-family:inherit;font-size:18px;line-height:1.4;font-weight:600;margin:0;overflow-wrap:anywhere}
.clarification-fields{display:grid;gap:10px;min-width:0}
.clarification-fields label{margin:0;min-width:0;font-size:14px;font-weight:400;color:var(--quiet);gap:4px}
.clarification-fields select,.clarification-fields input,.clarification-fields textarea{min-height:48px;width:100%;min-width:0;margin:0;font-size:16px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px}
.clarification-create{min-height:48px;min-width:98px;align-self:end;margin:0;border-radius:12px}
.clarification-details{grid-column:1/-1;margin:0;border:0;padding:0;font-size:14px}
.clarification-details summary{cursor:pointer;color:var(--quiet);min-height:44px;align-content:center}
.clarification-details label{font-size:14px;margin:8px 0}
.clarification-row .question-group{border:0;padding:0;margin:0;min-width:0}
.clarification-row .question-group legend{font-size:14px;font-weight:400;padding:0;color:var(--quiet)}
.clarification-row .question-choices{margin:6px 0;gap:6px}
.clarification-row .question-choices button{min-height:44px}
#clarifications-empty{margin:24px 0;font-size:16px}
[data-clarification-link]{background:var(--plum-soft)!important;color:var(--ink)}
[data-clarification-tab]{gap:6px}
@media(max-width:640px){
  #clarifications-title{font-size:30px}
  #clarifications-view .section-title{gap:12px;margin-bottom:18px}
  #clarifications-list{padding:0 16px;border-radius:16px}
  .clarification-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:20px 0}
  .clarification-name{grid-column:1/-1;font-size:18px}
  .clarification-fields{grid-column:1;gap:12px}
  .clarification-create{grid-column:2;min-width:86px;padding-inline:12px;font-size:14px}
  .clarification-details{grid-column:1/-1}
}

/* A compact queue count stays with assignments navigation. */
.queue-status { display:block; font-size:.65rem; line-height:1.25; max-width:7rem; margin-top:.15rem; }
