/* Rumbo's shared control and editor language. Loaded after feature styles. */
:root {
  --field-bg: #fbf9f4;
  --field-hover: #f2ede3;
  --focus-halo: #8055161c;
  --editor-shadow: 0 24px 72px #29271f26, 0 3px 12px #29271f0a;
  --select-arrow: url("/chevron-down.svg");
}
body.dark {
  --field-bg: #302c24;
  --field-hover: #3b352a;
  --focus-halo: #edbd7026;
  --editor-shadow: 0 24px 72px #0007, 0 3px 12px #0003;
  --select-arrow: url("/chevron-down-dark.svg");
}
/* Preserve feature-specific sizing (calendar slots, compact actions, recordings). */
button { border-radius: 10px; touch-action: manipulation; }
button:not(:disabled) { transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
button.primary:not(:disabled):hover { box-shadow: 0 3px 10px #29271f18; }
button[aria-busy=true] { cursor: progress; }
input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=color]), select, textarea,
:is(#task-dialog,.record-dialog) :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background-color: var(--field-bg);
  color: var(--ink);
  padding: 11px 13px;
  min-height: 46px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
input:not([type=checkbox],[type=radio],[type=range],[type=hidden]):hover, select:hover, textarea:hover { background-color: var(--field-hover); }
input:not([type=checkbox],[type=radio],[type=hidden]):focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo); background-color: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 400; }
input[readonly], textarea[readonly] { background-color: var(--bg); }
input:disabled, select:disabled, textarea:disabled { opacity: .65; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
select:not([multiple],[size]), :is(#task-dialog,.record-dialog) select:not([multiple],[size]) {
  appearance: none; -webkit-appearance: none;
  background-image: var(--select-arrow); background-repeat: no-repeat;
  background-position: right 14px center; background-size: 16px;
  padding-right: 42px; text-overflow: ellipsis;
}
:is(#task-dialog,.record-dialog) {
  border-radius: 20px; border-color: var(--line); box-shadow: var(--editor-shadow);
  scrollbar-width: thin; scrollbar-color: var(--control-line) transparent;
}
:is(#task-dialog,.record-dialog)::backdrop { background: #25231d70; }
:is(#close-task,.close-dialog), .ws-dialog-heading > button {
  width: 44px; height: 44px; min-height: 44px; border-radius: 50%; font-size: 25px;
  color: var(--muted); background: transparent; border: 1px solid transparent;
}
:is(#close-task,.close-dialog):hover, .ws-dialog-heading > button:hover { background: var(--soft); color: var(--ink); border-color: var(--line); }
/* Real editors have a fixed heading and action row, with only the fields scrolling. */
:is(#task-dialog,.record-dialog):has(> .record-editor) {
  padding: 0; width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: hidden;
}
:is(#task-dialog,.record-dialog):has(> .record-editor)[open] { display: flex; flex-direction: column; }
:is(#task-dialog,.record-dialog) > .record-editor {
  display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
  padding: 0; border: 0; background: var(--surface); margin: 0;
}
.editor-heading { padding: 26px 28px 22px; margin: 0; border: 0; flex-shrink: 0; }
.editor-eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
:is(#task-dialog,.record-dialog) .editor-heading h2 {
  margin: 0 0 6px; padding-right: 32px; max-width: none; font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em;
}
.editor-intro { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 45ch; }
:is(#task-dialog,.record-dialog):has(> .record-editor) > :is(#close-task,.close-dialog) { top: 18px; right: 18px; z-index: 1; }
#editor { display: flex; flex-direction: column; gap: 0; min-height: 0; overflow: hidden; margin: 0; }
.editor-body { display: grid; gap: 20px; padding: 0 28px 24px; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 12px; }
:is(#task-dialog,.record-dialog) #editor label { font-size: 12px; font-weight: 600; gap: 8px; color: var(--ink); min-width: 0; }
:is(#task-dialog,.record-dialog) #editor :is(input,select,textarea) { font-size: 14px; font-weight: 400; }
.field-optional { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 7px; }
:is(#task-dialog,.record-dialog) #editor .editor-title input { font-size: 19px; line-height: 1.4; font-weight: 550; letter-spacing: -.02em; min-height: 54px; }
:is(#task-dialog,.record-dialog) #editor .editor-title input::placeholder { font-size: 17px; letter-spacing: -.015em; }
:is(#task-dialog,.record-dialog) #editor textarea { min-height: 84px; }
#editor[data-kind=notes] textarea { min-height: 220px; }
.editor-next-step { padding: 14px; background: var(--soft); border-radius: 12px; }
.editor-next-step input { background-color: var(--surface); }
.editor-metadata, .editor-finance-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; }
.editor-options { border-top: 1px solid var(--line); margin: 0; padding-top: 4px; }
.editor-options summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 44px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 550; list-style: none; }
.editor-options summary::-webkit-details-marker { display: none; }
.editor-options summary::after { content: ''; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; width: 7px; height: 7px; transform: rotate(45deg); margin-right: 6px; flex-shrink: 0; }
.editor-options[open] summary::after { transform: rotate(225deg); }
.editor-options[open] > .editor-metadata { padding-top: 10px; }
.editor-finance-fields { border: 0; padding: 0; margin: 0; }
.editor-finance-fields legend { font-size: 12px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); width: 100%; margin-bottom: 16px; padding: 0 0 10px; }
.editor-finance-fields > label:has([name=referenceId],[name=commitment],textarea), .editor-finance-fields > p { grid-column: 1/-1; }
.editor-body > .form-feedback:empty { display: none; }
.editor-body > .form-feedback:not(:empty) { padding: 12px; margin: 0; border-left: 3px solid var(--danger); background: var(--bg); }
#editor .editor-footer, .capture-footer {
  display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 16px 28px; margin: 0; border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0;
}
.editor-footer button, .capture-footer button { min-width: 108px; min-height: 44px; padding: 10px 18px; font-size: 13px; }
.editor-cancel { border-color: transparent; background: transparent; color: var(--muted); }
.editor-cancel:hover { color: var(--ink); background: var(--soft); }
/* The same hierarchy in Dot captures, calendar composers and connection settings. */
.ws-dialog .ws-dialog-heading { align-items: flex-start; border-bottom: 1px solid var(--line); padding: 0 0 18px; margin-bottom: 22px; }
.ws-dialog .ws-dialog-heading h2 { margin: 0; padding: 0; font-size: 24px; letter-spacing: -.03em; }
.ws-dialog .ws-dialog-heading > button { flex-shrink: 0; padding: 0; }
#ws-editor { gap: 18px; }
#ws-editor .editor-title input { font-size: 18px; min-height: 52px; }
#ws-editor .ws-capture-context { border-block: 1px solid var(--line); padding: 4px 0; }
#ws-editor .ws-capture-context > summary { min-height: 44px; display: flex; align-items: center; }
#ws-editor .capture-hint { margin: 0; font-size: 12px; }
#ws-editor .capture-footer { padding: 16px 0 0; }
#event-create-dialog .event-composer-heading h2 { font-size: 25px; }
#event-create-dialog .event-destination { background: var(--bg); padding: 14px; border-radius: 12px; }
#event-create-dialog .event-destination label { font-size: 12px; font-weight: 600; }
#event-create-dialog .event-composer-footer { padding-block: 16px 0; }
.integration-settings details > summary, .record-dialog details > summary { cursor: pointer; }
.integration-settings form > button:not(.text-button,.quiet-button) { justify-self: start; max-width: 100%; padding-inline: 18px; }
.integration-settings form { gap: 18px; }
@media (max-width:600px) {
  input:not([type=checkbox],[type=radio],[type=range],[type=hidden]), select, textarea,
  :is(#task-dialog,.record-dialog) :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea),
  :is(#task-dialog,.record-dialog) #editor :is(input,select,textarea) { font-size: 16px; }
  :is(#task-dialog,.record-dialog):has(> .record-editor) { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .editor-heading { padding: 22px 20px 18px; }
  :is(#task-dialog,.record-dialog) .editor-heading h2 { font-size: 23px; }
  .editor-body { padding-inline: 20px; padding-bottom: 20px; gap: 18px; }
  :is(#task-dialog,.record-dialog):has(> .record-editor) > :is(#close-task,.close-dialog) { top: 12px; right: 12px; }
  #editor .editor-footer { padding: 14px 20px max(14px,env(safe-area-inset-bottom)); }
  .editor-footer button { min-width: 0; flex: 1; }
  .editor-metadata, .editor-finance-fields { gap: 12px; }
  .field-optional { margin-left: 4px; }
  #editor[data-kind=notes] textarea { min-height: 190px; }
  .editor-next-step { padding: 12px; }
  .integration-settings form > button:not(.text-button,.quiet-button) { justify-self: stretch; }
}
@media (max-width:360px) {
  .editor-metadata, .editor-finance-fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-height:500px) {
  .editor-heading { padding-block: 16px 12px; }
  .editor-intro { display: none; }
  #editor .editor-footer { padding-block: 10px; }
}
@media (forced-colors:active) {
  select:not([multiple],[size]), :is(#task-dialog,.record-dialog) select:not([multiple],[size]) { appearance: auto; -webkit-appearance: auto; background-image: none; }
  input,select,textarea { border-color: ButtonText; }
  :is(#task-dialog,.record-dialog) { border-color: CanvasText; }
}
@media (prefers-reduced-motion:reduce) {
  button:not(:disabled), input, select, textarea { transition: none; }
}

/* Reset inherited dialog heading limits at the composed capture boundary. */
#ws-dialog .ws-dialog-heading > div { flex: 1; min-width: 0; }
#ws-dialog .ws-dialog-heading h2 { max-width: none; padding: 0; margin: 0; font-size: 24px; text-wrap: wrap; }
#ws-dialog:has(> #ws-editor)[open] { display: flex; flex-direction: column; overflow: hidden; }
#ws-dialog:has(> #ws-editor) > .ws-dialog-heading { flex-shrink: 0; }
#ws-editor { overflow: auto; min-height: 0; overscroll-behavior: contain; padding: 4px; margin: -4px; }
#ws-editor .capture-footer { position: sticky; bottom: -4px; padding-bottom: 4px; z-index: 1; }
#event-create-form .event-composer-body { padding: 4px; margin-inline: -4px; }

/* Availability is a hint on the task, never an automatic calendar reservation. */
.task-suggestion-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-copy .task-slot-hint { display: block; margin-top: 6px; color: var(--accent); font-size: 12px; line-height: 1.5; font-weight: 500; }
/* Meeting recordings: a calm recorder and readable notes, separate from WhatsApp. */
.meeting-layout { grid-template-columns: minmax(260px,340px) minmax(0,1fr); gap: 36px; align-items: start; }
.meeting-capture { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.meeting-capture h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 14px; }
.meeting-capture-intro { color: var(--muted); font-size: 14px; line-height: 1.6; }
.meeting-record-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.meeting-record-actions .primary { flex: 1; min-height: 48px; }
.meeting-record-actions #audio-pause { min-height: 48px; }
.meeting-capture .audio-file-form { margin: 12px 0 0; border: 0; padding: 0; }
.meeting-import { display: block; text-align: center; padding: 12px; min-height: 44px; color: var(--muted); cursor: pointer; border: 1px dashed var(--control-line); border-radius: 10px; }
.meeting-import:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.meeting-import input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.meeting-save-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 12px 0 0; }
.meeting-capture #audio-draft:has(.meeting-draft-heading) { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; display: grid; gap: 14px; }
.meeting-draft-heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 12px; }
.meeting-draft-heading span { color: var(--muted); font-size: 11px; }
.meeting-draft-save .primary { width: 100%; }
.meeting-draft-options summary, .meeting-capture .audio-privacy summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-size: 12px; color: var(--muted); }
.meeting-draft-options[open] { display: grid; gap: 12px; }
.meeting-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.meeting-capture .audio-privacy { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 0; }
.meeting-capture .audio-privacy p { font-size: 12px; color: var(--muted); }
.meeting-library { min-width: 0; }
.meeting-library > .section-heading { align-items: center; margin-bottom: 20px; }
.meeting-library > .section-heading h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
.meeting-library .audio-library-filters { margin-bottom: 18px; }
.meeting-jobs { display: grid; gap: 14px; }
.meeting-entry { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.meeting-note > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; min-height: 76px; cursor: pointer; list-style: none; }
.meeting-note > summary::-webkit-details-marker { display: none; }
.meeting-entry-copy { display: grid; gap: 5px; min-width: 0; }
.meeting-entry-copy strong { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.meeting-entry-copy > span { font-size: 12px; color: var(--muted); }
.meeting-state { font-size: 11px; line-height: 1.5; padding: 5px 9px; border-radius: 20px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.meeting-state[data-status=ready] { background: var(--soft); color: var(--ink); }
.meeting-note[open] > summary { border-bottom: 1px solid var(--line); }
.meeting-document { padding: 22px; }
.meeting-notes-body { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.meeting-notes-body h2,.meeting-notes-body h3,.meeting-notes-body h4 { font-size: 15px; line-height: 1.4; font-weight: 650; margin: 24px 0 10px; letter-spacing: -.01em; }
.meeting-notes-body > :first-child { margin-top: 0; }
.meeting-notes-body p { margin: 0 0 12px; }
.meeting-notes-body ul,.meeting-notes-body ol { padding-left: 20px; margin: 0 0 16px; }
.meeting-notes-body li { padding-left: 3px; margin: 6px 0; }
.meeting-notes-body code,.meeting-notes-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.meeting-document > details { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 18px; }
.meeting-document details > summary { min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--muted); font-size: 12px; }
.meeting-transcript-text { white-space: pre-wrap; line-height: 1.7; font-size: 13px; }
.meeting-edit textarea { min-height: 120px; }
.meeting-next-actions { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.meeting-next-actions h4 { font-size: 13px; margin: 0 0 10px; }
.meeting-processing { color: var(--muted); font-size: 13px; line-height: 1.6; }
.meeting-empty { padding: 32px 24px; border: 1px dashed var(--line); border-radius: 14px; }
.meeting-empty h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 10px; }
.meeting-empty p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
@media(max-width:1100px) { .meeting-layout { grid-template-columns: minmax(0,1fr); gap: 28px; } }
@media(max-width:600px) {
 .meeting-capture { padding: 20px; }
 .meeting-capture h2 { font-size: 24px; }
 .meeting-note > summary { padding: 16px; gap: 10px; }
 .meeting-entry-copy strong { font-size: 15px; }
 .meeting-state { max-width: 98px; white-space: normal; text-align: center; }
 .meeting-document { padding: 18px; }
 .meeting-library > .section-heading h2 { font-size: 20px; }
}
/* Meeting folders keep capture one action away and notes easy to browse. */
.meeting-folders { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.meeting-folders button { display:inline-flex; align-items:center; gap:9px; padding:10px 12px; min-height:44px; border-radius:12px; background:var(--surface); font-size:13px; font-weight:500; }
.meeting-folders button[aria-pressed=true] { background:var(--ink); color:var(--surface); border-color:var(--ink); }
.meeting-folders svg { width:18px; height:18px; flex:none; }
.meeting-folders small { font-size:11px; opacity:.65; margin-left:4px; }
.meeting-folders .meeting-new-folder { border-style:dashed; color:var(--muted); }
.meeting-folder-dialog { width:min(440px,calc(100vw - 32px)); border:1px solid var(--line); border-radius:20px; padding:26px; background:var(--surface); }
.meeting-folder-dialog h2 { font-size:22px; margin:0; }
.meeting-folder-dialog p { color:var(--muted); font-size:14px; line-height:1.6; }
.meeting-folder-dialog label { margin:20px 0; }
.meeting-folder-dialog .primary { width:100%; }
.meeting-organize-form { display:grid; gap:14px; padding:10px 0 6px; }
.meeting-organize-form button { justify-self:start; }
.meeting-capture #audio-draft:empty { display:none; }
.meeting-capture .meeting-record-actions { position:sticky; bottom:90px; z-index:2; }
@media(max-width:600px){ .meeting-capture h2{font-size:23px;} .meeting-folders{gap:8px;} .meeting-folders button{font-size:12px; padding:10px;} .meeting-folders button span{max-width:190px;overflow-wrap:anywhere;} }
#recording-banner:not(:empty) { background:var(--soft); color:var(--ink); border-bottom:1px solid var(--line); padding:12px 20px; }
#recording-banner p:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#recording-banner .recording-state { font-weight:600; }
#recording-banner .recording-state::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#ae4b36; margin-right:8px; }
#recording-banner .recording-clock { font-variant-numeric:tabular-nums; font-size:13px; color:var(--muted); }
#recording-banner .recording-protection { font-size:12px; color:var(--muted); margin-top:4px; }
#recording-banner button { margin-left:auto; }
/* A compact library and a full-screen reader replace stacked documents. */
body[data-current-view=audio] .page-header { margin-bottom:20px; }
body[data-current-view=audio] #subtitle:empty { display:none; }
.audio-layout.meeting-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; width:100%; }
.meeting-capture { padding:18px 22px 8px; border-radius:14px; }
.meeting-capture-toolbar,.meeting-capture-buttons { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.meeting-capture-copy { min-width:0; }
.meeting-capture h2 { font-size:18px; line-height:1.3; margin:0; letter-spacing:-.025em; }
.meeting-capture-copy p { margin:4px 0 0; font-size:12px; color:var(--muted); }
.meeting-capture-buttons { justify-content:flex-end; flex-shrink:0; gap:10px; }
.meeting-capture .meeting-record-actions { position:static; margin:0; flex-wrap:nowrap; gap:8px; }
.meeting-record-actions .primary { flex:none; padding-inline:20px; }
.meeting-capture .audio-file-form { margin:0; }
.meeting-import { border-style:solid; padding:11px 18px; font-size:13px; font-weight:500; color:var(--ink); white-space:nowrap; }
.meeting-save-note { margin-top:8px; }
.meeting-capture .audio-privacy { margin-top:8px; }
.meeting-capture .audio-privacy summary { min-height:40px; padding-block:10px; }
.meeting-capture #audio-draft:has(.meeting-draft-heading) { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.65fr); gap:12px 18px; padding-top:14px; margin-top:14px; }
.meeting-draft-heading,.meeting-draft-options,.audio-memory-warning,#audio-draft>.warning { grid-column:1/-1; }
.meeting-draft-heading { margin:0; }
.meeting-draft-save { align-self:center; }
.meeting-library > .section-heading { margin-bottom:12px; }
.meeting-library > .section-heading h2 { font-size:18px; }
.meeting-folders { flex-wrap:nowrap; overflow-x:auto; margin-bottom:12px; padding-bottom:4px; scrollbar-width:thin; }
.meeting-folders button { flex:none; padding:8px 12px; min-height:42px; }
.meeting-library .audio-library-filters { display:flex; gap:12px; margin-bottom:12px; }
.meeting-library .search-box { flex:1; min-width:0; }
.meeting-library .audio-filter { flex:0 0 180px; }
.meeting-jobs { gap:0; border:1px solid var(--line); border-radius:14px; background:var(--surface); overflow:hidden; }
.meeting-entry { border:0; border-radius:0; border-bottom:1px solid var(--line); }
.meeting-entry:last-child { border-bottom:0; }
.meeting-open { width:100%; border:0; border-radius:0; padding:14px 18px; display:flex; align-items:center; gap:18px; text-align:left; background:transparent; min-height:76px; font-weight:400; }
.meeting-open:hover { background:var(--bg); }
.meeting-entry-copy { flex:1; min-width:0; gap:4px; }
.meeting-entry-copy strong { font-size:14px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.meeting-entry-copy>span { font-size:12px; }
.meeting-open-arrow { color:var(--muted); font-size:18px; }
.meeting-empty { border:0; padding:22px; }
.meeting-reader-open { overflow:hidden; }
dialog.meeting-reader { position:fixed; inset:0; margin:0; width:100vw; max-width:none; height:100dvh; max-height:none; padding:0; border:0; border-radius:0; background:var(--bg); color:var(--ink); overflow:hidden; }
dialog.meeting-reader[open] { display:flex; flex-direction:column; }
.meeting-reader-header { display:flex; flex:none; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:20px; width:100%; max-width:none; margin:0; padding:20px max(28px,calc((100vw - 1100px)/2)); border-bottom:1px solid var(--line); background:var(--surface); }
.meeting-reader-header>div { min-width:0; }
.meeting-reader-header h2 { margin:0; padding:0; max-width:none; font-size:24px; letter-spacing:-.03em; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.meeting-reader-header p { margin:0 0 4px; color:var(--muted); font-size:12px; }
#meeting-reader-close { flex:none; min-height:44px; padding:10px 16px; }
.meeting-reader-tabs { display:flex; flex:none; justify-content:center; gap:6px; padding:10px 24px; border-bottom:1px solid var(--line); background:var(--surface); }
.meeting-reader-tabs button { border:1px solid transparent; padding:10px 16px; min-height:44px; font-size:13px; font-weight:500; white-space:nowrap; background:transparent; }
.meeting-reader-tabs button[aria-selected=true] { background:var(--soft); border-color:var(--line); color:var(--ink); }
.meeting-reader-content { flex:1; min-height:0; width:100%; overflow:auto; overscroll-behavior:contain; padding:28px max(28px,calc((100vw - 1040px)/2)) max(30px,env(safe-area-inset-bottom)); outline-offset:-3px; }
.meeting-reader .meeting-document { max-width:1040px; margin:0 auto; padding:0; }
.meeting-reader .meeting-notes-body { font-size:16px; line-height:1.75; }
.meeting-reader .meeting-notes-body h2,.meeting-reader .meeting-notes-body h3,.meeting-reader .meeting-notes-body h4 { font-size:18px; margin-top:24px; }
.meeting-note-actions { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.meeting-note-actions>span { font-size:12px; color:var(--muted); }
.meeting-pane-heading { margin-bottom:22px; }
.meeting-pane-heading h3 { font-size:22px; margin:0 0 6px; letter-spacing:-.025em; }
.meeting-pane-heading>span { font-size:13px; color:var(--muted); }
.meeting-reader .meeting-transcript-text { font-size:16px; margin:0; }
.meeting-reader .meeting-organize-form { max-width:660px; }
.meeting-reader .audio-review { display:grid; gap:18px; }
.meeting-reader .audio-review button { justify-self:start; }
.meeting-reader .audio-proposal { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:12px; padding:16px; }
.meeting-reader .audio-proposal p { margin:0; }
.meeting-reader .audio-proposal button { flex:none; min-height:44px; }
.meeting-reader audio { width:100%; max-width:720px; }
.meeting-media-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.meeting-download { border:1px solid var(--control-line); padding:10px 16px; min-height:44px; border-radius:10px; color:var(--ink); background:var(--surface); display:inline-flex; align-items:center; text-decoration:none; }
.meeting-segments { margin-top:28px; }
.meeting-segments>summary { min-height:44px; padding:12px 0; cursor:pointer; }
@media(max-width:760px){
 .meeting-capture { padding:14px 16px 6px; }
 .meeting-capture-toolbar { align-items:stretch; flex-direction:column; gap:12px; }
 .meeting-capture-copy p { display:none; }
 .meeting-capture h2 { font-size:16px; }
 .meeting-capture-buttons { justify-content:flex-start; }
 .meeting-capture .meeting-record-actions { flex:1; }
 .meeting-record-actions .primary { flex:1; padding-inline:14px; }
 .meeting-import { padding-inline:16px; }
 .meeting-capture #audio-draft:has(.meeting-draft-heading) { grid-template-columns:minmax(0,1fr); }
 .meeting-library .audio-library-filters { gap:8px; }
 .meeting-library .audio-filter { flex-basis:124px; }
 .meeting-library input,.meeting-library select { padding-block:10px; }
 .meeting-open { padding:12px; gap:10px; min-height:76px; }
 .meeting-entry-copy strong { font-size:14px; }
 .meeting-state { flex:none; font-size:10px; max-width:84px; white-space:normal; text-align:center; }
 .meeting-open-arrow { display:none; }
 .meeting-reader-header { padding:calc(12px + env(safe-area-inset-top)) 16px 12px; gap:12px; }
 .meeting-reader-header h2 { font-size:19px; }
 .meeting-reader-header p { font-size:11px; }
 #meeting-reader-close { padding:8px 12px; font-size:12px; }
 .meeting-reader-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:8px 12px; gap:4px; }
 .meeting-reader-tabs button { min-width:0; padding:9px 4px; font-size:12px; white-space:normal; }
 .meeting-reader-content { padding:20px 18px max(24px,env(safe-area-inset-bottom)); }
 .meeting-note-actions { align-items:flex-start; flex-direction:column; gap:6px; margin-bottom:20px; }
 .meeting-reader .audio-proposal { flex-direction:column; align-items:stretch; gap:12px; }
 .meeting-media-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
}
.meeting-reader-feedback { position:absolute; z-index:2; left:50%; transform:translateX(-50%); bottom:max(18px,env(safe-area-inset-bottom)); margin:0; padding:12px 18px; border-radius:12px; width:max-content; max-width:calc(100% - 32px); background:var(--ink); color:var(--surface); font-size:13px; line-height:1.5; box-shadow:0 4px 18px #0002; pointer-events:none; }
.meeting-reader-feedback[hidden] { display:none; }
/* A lightweight preview comes before the expanded document. */
dialog.meeting-reader:not(.meeting-reader-expanded) { width:min(640px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); inset:auto 0 auto 0; top:50%; transform:translateY(-50%); margin:0 auto; border:1px solid var(--line); border-radius:20px; }
.meeting-reader:not(.meeting-reader-expanded) .meeting-reader-header { padding:20px 22px 16px; }
.meeting-reader:not(.meeting-reader-expanded) .meeting-reader-header h2 { font-size:21px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.meeting-reader:not(.meeting-reader-expanded) .meeting-reader-content { flex:0 1 auto; padding:20px 22px; max-height:calc(100dvh - 160px); }
.meeting-reader-tabs[hidden] { display:none; }
.meeting-reader-controls { display:flex; align-items:center; gap:8px; flex:none; }
.meeting-reader-controls button { min-height:44px; font-size:12px; padding:9px 12px; }
.meeting-preview-summary h3 { font-size:15px; margin:0 0 10px; }
.meeting-preview-summary p { font-size:14px; line-height:1.7; color:var(--muted); margin:0 0 18px; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.meeting-preview-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.meeting-preview-actions .primary { grid-column:1/-1; }
.meeting-preview-actions button { min-height:44px; }
.meeting-task-ownership { margin:0 0 20px; max-width:720px; font-size:14px; line-height:1.6; color:var(--muted); }
.meeting-task-selection { max-width:800px; }
.meeting-task-selection fieldset { border:0; padding:0; margin:0 0 18px; }
.meeting-task-selection legend { font-size:14px; font-weight:600; margin-bottom:12px; }
.meeting-task-choice { display:flex; align-items:flex-start; gap:14px; border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:16px; margin:0 0 10px; cursor:pointer; }
.meeting-task-choice:has(input:checked) { background:var(--soft); border-color:var(--accent); }
.meeting-task-choice input[type=checkbox] { flex:none; width:20px; height:20px; margin:3px 0 0; }
.meeting-task-choice>span { display:grid; gap:6px; min-width:0; }
.meeting-task-choice strong { font-size:15px; line-height:1.5; }
.meeting-task-choice small,.meeting-task-choice>span>span { font-size:12px; line-height:1.6; color:var(--muted); }
.meeting-other-actions,.meeting-created-actions { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; }
.meeting-other-actions h4,.meeting-created-actions h4 { margin:0 0 12px; font-size:14px; }
.meeting-other-actions p,.meeting-created-actions p { font-size:13px; line-height:1.6; color:var(--muted); }
.meeting-dot-review { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px; }
.meeting-dot-review p { font-size:14px; line-height:1.6; margin-top:0; }
@media(max-width:600px){
 .meeting-reader:not(.meeting-reader-expanded) .meeting-reader-header { padding:16px; }
 .meeting-reader:not(.meeting-reader-expanded) .meeting-reader-header h2 { font-size:18px; }
 .meeting-reader:not(.meeting-reader-expanded) .meeting-reader-content { padding:16px; }
 .meeting-reader-controls { gap:6px; }
 .meeting-reader-controls button { padding-inline:10px; }
 .meeting-reader-expanded #meeting-reader-back { max-width:84px; line-height:1.4; }
}
.meeting-selection-actions { position:sticky; bottom:-20px; background:var(--bg); padding:14px 0 20px; border-top:1px solid var(--line); margin-top:12px; }
.meeting-selection-actions button { min-height:44px; }

/* Delete remains discoverable without nesting a button inside the open row. */
.meeting-entry { display:flex; align-items:center; }
.meeting-entry .meeting-open { flex:1; min-width:0; }
.meeting-row-delete { width:44px; height:44px; flex:none; display:inline-flex; align-items:center; justify-content:center; margin-right:10px; padding:10px; border-radius:10px; }
.meeting-row-delete svg { width:18px; height:18px; }
.meeting-row-delete:hover:not(:disabled) { background:var(--soft); }
.meeting-preview-footer { display:flex; justify-content:flex-end; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.meeting-preview-delete { min-height:44px; padding:10px 14px; }
@media(max-width:600px){ .meeting-row-delete { margin-right:6px; } }

dialog.meeting-citation-dialog { width:min(36rem,calc(100% - 2rem)); max-height:85dvh; overflow:auto; }
.meeting-citation-dialog header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.meeting-citation-dialog h2 { margin:0; overflow-wrap:anywhere; }
.meeting-citation-dialog header button { flex:none; width:44px; height:44px; padding:0; }
.meeting-citation-dialog [role=status] { color:var(--muted); }
.meeting-citation-dialog audio { display:block; width:100%; margin-block:1rem; }
.meeting-citation-dialog blockquote { margin:1rem 0 0; padding-inline-start:1rem; border-inline-start:3px solid var(--line); overflow-wrap:anywhere; white-space:pre-wrap; }


#meeting-reader-share:not([hidden]) { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
#meeting-reader-share svg { flex:none; }
.meeting-share-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; margin:auto; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:var(--editor-shadow); }
.meeting-share-dialog::backdrop { background:#24201980; }
.meeting-share-dialog header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 20px; border-bottom:1px solid var(--line); }
.meeting-share-dialog header h2 { margin:0; font-size:20px; line-height:1.3; }
.meeting-share-dialog [data-share-close] { width:44px; height:44px; border:0; padding:0; background:transparent; font-size:22px; }
.meeting-share-content { display:grid; gap:12px; padding:18px 20px 20px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.meeting-share-content p { margin:0; color:var(--muted); }
.meeting-share-content .meeting-share-name { color:var(--ink); font-size:16px; font-weight:650; }
.meeting-share-content [data-share-controls] { display:grid; gap:12px; justify-items:start; width:100%; }
.meeting-share-content label { width:100%; min-width:0; }
.meeting-share-content input { width:100%; min-width:0; font-size:16px; }
.meeting-share-actions { display:flex; flex-wrap:wrap; gap:8px 12px; }
.meeting-share-actions a { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); text-underline-offset:3px; }
.meeting-share-content [data-share-feedback]:empty { display:none; }
@media(max-width:620px){
 #meeting-reader-share span { display:none; }
 #meeting-reader-share:not([hidden]) { width:44px; padding-inline:0; }
 .meeting-share-dialog header,.meeting-share-content { padding-inline:14px; }
}
