/* Process-driven Work view over the existing task and AI workflows. */
.runtime-nav { grid-column: 1; grid-row: 1 / 4; }
.runtime-page-head { grid-column: 2 / 4; grid-row: 1; padding: 25px 30px 20px; align-items: center; }
.runtime-page-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.runtime-page-title h1 { color: #112039; font-size: 31px; line-height: 1.15; }
.runtime-page-title p { color: #677791; font-size: 14px; margin: 5px 0 0; }
.runtime-page-actions { flex: 0 1 540px; justify-content: flex-end; }
/* THE SAME ✦ ASK AI EVERYWHERE (Bryan's review, 2026-11-26, 18:26: "it says Ask AI and now just that little symbol; it should
   always be consistent"): My Tasks words its opener like the shell's corner button and the editor's. */
#open-work-ai { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--brand, #007b77); border-radius: 999px; background: #fff; color: var(--brand, #007b77); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
#open-work-operations[hidden] { display: none; }
.work-status-tabs { display: flex; gap: 8px; grid-column: 2 / 4; grid-row: 2; padding: 0 30px; border-bottom: 1px solid #d8e0e8; background: #fff; }
.work-status-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 12px 18px; background: transparent; color: #46546b; font: inherit; font-size: 14px; cursor: pointer; }
.work-status-tabs button[aria-current="page"] { color: var(--brand, #087b7a); border-bottom-color: var(--brand, #087b7a); font-weight: 700; }
.work-status-tabs button:hover { color: var(--brand, #087b7a); }
.task-inbox { grid-column: 2; grid-row: 3; background: #fff; }
.task-work { display: flex !important; grid-column: 3; grid-row: 3; background: #fff; }
.work-shell.work-nothing-open .task-inbox { grid-column: 1; }
.work-list { flex: 1; }
.work-row { min-height: 84px; padding: 15px 17px; border-left: 3px solid transparent; }
.work-row.selected { box-shadow: none; border-left-color: var(--brand); background: #eef8f6; }
.work-row-main strong { color: #172740; font-size: 13px; }
.work-row-main span { color: #52617a; font-size: 11px; }
.work-due { font-size: 11px; }
.work-overview { flex: 1; min-height: 0; overflow: auto; padding: 30px min(4vw,48px) 44px; }
.work-overview[hidden], #work-task-editor[hidden] { display: none !important; }
.work-overview-empty { max-width: 820px; }
/* THE STEP OF A CASE (Bryan's review, 2026-11-03: "giving this a little bit more landscape, looks a little bit
   squished here, too much room here"). What to do and the document's name across the top, its one action and the
   ⋯ at the top right; under them, where there is room, the document's first page, big, beside the process
   progress. A case about no document keeps its step on the left and the progress beside it (video review,
   2026-10-09: "The full screen is not being used here"). */
@media (min-width: 1100px) {
  .work-overview:has(> #case-progress:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); column-gap: clamp(28px, 4vw, 56px); align-content: start; }
  .work-overview:has(> #case-progress:not([hidden])) > .work-overview-empty { max-width: none; }
  .work-overview:has(> #case-progress:not([hidden])) > .case-progress { max-width: none; margin-top: 0; }
  .work-overview:has(> #case-progress:not([hidden])):has(.task-cover) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 56px); align-content: start; }
  .work-overview:has(> #case-progress:not([hidden])):has(.task-cover) > .work-overview-empty { display: contents; }
  .work-overview:has(> #case-progress:not([hidden])):has(.task-cover) .work-detail-head { grid-column: 1 / -1; grid-row: 1; }
  .work-overview:has(> #case-progress:not([hidden])):has(.task-cover) .work-detail-body { grid-column: 1; grid-row: 2; min-width: 0; }
  .work-overview:has(> #case-progress:not([hidden])):has(.task-cover) > .case-progress { grid-column: 2; grid-row: 2; max-width: none; margin-top: 22px; }
}
.work-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; }
.work-detail-title { min-width: 0; }
/* What to do, in green: the step's own name, never the process's. */
.work-detail-eyebrow { display: block; color: var(--brand, #087a75); font-size: 12px; font-weight: 700; }
.work-detail-eyebrow .work-due { font-size: inherit; }
.work-detail-head h2 { margin: 8px 0 0; color: #172740; font-size: clamp(22px,2.1vw,30px); line-height: 1.2; }
.work-detail-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.work-detail-actions .primary { white-space: nowrap; }
.work-detail-actions .view-step { padding: 9px 12px; border: 1px solid #b7c5ca; border-radius: 7px; background: #fff; color: #34444e; font-weight: 700; white-space: nowrap; cursor: pointer; }
.work-detail-actions .view-step:hover, .work-detail-actions .view-step:focus-visible { border-color: var(--brand, #087b7a); color: var(--brand, #087b7a); }
/* ⋯ — Details, and Delete for the administrator, out of the way. */
.work-detail-menu { position: relative; }
.work-detail-menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #c9d4d8; border-radius: 8px; background: #fff; color: #34444e; font-size: 18px; font-weight: 700; line-height: 1; list-style: none; cursor: pointer; }
.work-detail-menu > summary::-webkit-details-marker { display: none; }
.work-detail-menu > summary:hover, .work-detail-menu > summary:focus-visible, .work-detail-menu[open] > summary { border-color: var(--brand, #087b7a); color: var(--brand, #087b7a); }
.work-detail-menu-items { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; min-width: 168px; padding: 6px; border: 1px solid #d7dfe2; border-radius: 9px; background: #fff; box-shadow: 0 12px 30px #10202826; }
.work-detail-menu-items button { padding: 9px 11px; border: 0; border-radius: 6px; background: transparent; color: #172740; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.work-detail-menu-items button:hover, .work-detail-menu-items button:focus-visible { background: #eef8f6; }
.work-detail-menu-items .work-detail-menu-danger { color: #b42318; }
.work-detail-menu-items .work-detail-menu-danger:hover, .work-detail-menu-items .work-detail-menu-danger:focus-visible { background: #fef3f2; }
.case-details-dialog { width: min(480px, calc(100vw - 32px)); }
.case-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 12px 0 18px; font-size: 13px; }
.case-details dt { color: #5e6e78; font-weight: 650; }
.case-details dd { margin: 0; color: #172740; overflow-wrap: anywhere; }
.case-progress { max-width: 820px; margin: 26px 0 0; padding: 0; border: 0; border-radius: 0; }
.case-progress h3 { margin: 0; padding: 0 0 12px; border-bottom: 1px solid #dce5e6; font-size: 15px; }
.case-steps { margin-top: 14px; }
.case-step { padding: 0 0 22px 25px; font-size: 13px; }
.case-step::before { left: -6px; width: 12px; height: 12px; top: 3px; }
.case-step strong { font-size: 13px; }
.case-step span { display: block; margin-top: 4px; font-size: 11px; }
.case-step.now::before { background: #97a6ad; box-shadow: none; }
.case-step.now.needs-you::before { background: #d99a16; box-shadow: 0 0 0 3px #fff0c8; }
.case-step.now strong { color: #34444e; }
.case-step.now.needs-you strong { color: #805600; }
.case-step em { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 4px; background: #fff3d6; color: #946000; font-size: 10px; font-style: normal; font-weight: 700; }
/* A STAGE OPENS INTO ITS PEOPLE (customer call, 2026-10-30): the stage's name is the button, each
   person a dot — green finished, amber waiting, red overdue — with when. */
.case-step details > summary { display: flex; align-items: start; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.case-step details > summary::-webkit-details-marker { display: none; }
.case-step details > summary:hover strong, .case-step details > summary:focus-visible strong { color: var(--brand); }
.case-step-name { display: grid; gap: 4px; min-width: 0; }
.case-step .case-step-name > span { margin-top: 0; color: #587875; font-weight: 650; }
.case-step.ahead .case-step-name > span { color: #8a979e; font-weight: 500; }
.case-step.skipped::before { background: #fff; box-shadow: inset 0 0 0 2px #cfd5df; }
.case-step.skipped strong { color: #8a979e; font-weight: 500; }
.case-step.skipped .case-step-name > span { color: #8a979e; font-weight: 500; }
.case-step.has-late .case-step-name > span { color: #b42335; }
.case-step details > summary::after { content: '▾'; color: #8a979e; font-size: 11px; transition: transform .15s; }
.case-step details[open] > summary::after { transform: rotate(180deg); }
.case-step-people { display: grid; gap: 7px; margin: 10px 0 2px; padding: 11px 13px; border: 1px solid #dfe7e7; border-radius: 6px; background: #f7f9f9; list-style: none; }
.step-person { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 12px; }
.case-step .step-person-dot { width: 9px; height: 9px; border-radius: 50%; background: #aeb9bf; }
.case-step .step-person.done .step-person-dot { background: #178a52; }
.case-step .step-person.open .step-person-dot { background: #e0a21b; }
.case-step .step-person.late .step-person-dot { background: #c43743; }
.case-step .step-person-who { color: #34444e; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.case-step .step-person-when { color: #667783; font-size: 11px; white-space: nowrap; }
.case-step .step-person.late .step-person-when { color: #b42335; font-weight: 650; }
.case-step .step-person > span { margin-top: 0; }
@media (max-width: 520px) { .step-person { grid-template-columns: 10px minmax(0, 1fr); } .case-step .step-person-when { grid-column: 2; white-space: normal; } }
/* THE DOCUMENT'S FIRST PAGE, AS BIG AS LOOKS GOOD (Bryan's review, 2026-11-03: "this cover page here should be as
   big as we possibly can without making it look ugly"). Until there is a picture of it, a page drawn from the
   register stands in, the same shape. */
.work-detail-number { margin: 6px 0 0; color: #5e6e78; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
/* Why an administrator cannot take someone else's check themselves, and who can (step-in.js). */
.work-step-in-why { margin: 10px 0 0; max-width: 62ch; color: #4d5f69; font-size: 13px; line-height: 1.45; }
/* Why a step sent back is with this person, under its title (tasks.js renderWorkOverview; Bryan's call, 2026-11-04). */
.work-why-back { margin: 10px 0 0; max-width: 72ch; padding: 8px 12px; border-left: 3px solid #d97706; border-radius: 4px; background: #fffbeb; color: #3f3a2c; font-size: 13px; line-height: 1.5; }
/* Centred in its column (Bryan's review video, 2026-11-06). THE WHOLE PAGE ON SCREEN (Bryan's review, 2026-11-16, item 13): its width is also
   held to what the window's height leaves below the header, so the whole cover is seen without scrolling or zooming out. */
.task-cover { display: block; width: min(100%, 560px, max(300px, calc((100vh - 360px) * 210 / 297))); margin: 22px auto 0; border: 1px solid #d7dfe2; border-radius: 4px; background: #fff; box-shadow: 0 10px 28px #10202818; overflow: hidden; }
.task-cover-page img { display: block; width: 100%; height: auto; }
.task-cover-card { display: flex; flex-direction: column; justify-content: center; gap: 12px; aspect-ratio: 210 / 297; padding: 14% 11%; background: linear-gradient(180deg, #fff 0 64%, #eef4f4 64% 100%); }
.task-cover-card strong { color: #172740; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.task-cover-card span { color: #4d5f69; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.task-cover-card small { color: #667783; font-size: 13px; }
/* WHO: the company's people in a list, someone outside by choice; a group is one line
   (customer call, 2026-10-30). */
.who-cell input[data-table-cell="email"]:not([hidden]) { margin-top: 4px; }
.consult-group { padding: 10px 0; border-top: 1px solid var(--line, #e4e7ec); }
.consult-group:first-child { border-top: 0; }
.consult-group-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #cfe0df; border-radius: 7px; background: #f3f8f8; }
.consult-group-name { display: grid; gap: 2px; min-width: 0; flex: 1; }
.consult-group-name strong { color: #172740; font-size: 13px; overflow-wrap: anywhere; }
.consult-group-name span { color: #5e6e78; font-size: 11px; }
.consult-group-edit { font-size: 12px; font-weight: 700; }
.consult-group-list { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; display: none; min-width: 220px; max-width: min(360px, 90vw); max-height: 240px; margin: 0; padding: 8px 12px; overflow: auto; border: 1px solid #d7dfe2; border-radius: 7px; background: #fff; box-shadow: 0 10px 26px #10202826; list-style: none; font-size: 12px; }
.consult-group-list li { padding: 3px 0; color: #34444e; }
.consult-group-head:hover .consult-group-list, .consult-group-head:focus-within .consult-group-list { display: block; }
.document-open { margin-top: 18px; }
#work-task-editor { display: flex; flex: 1; flex-direction: column; min-height: 0; }
#work-task-editor .work-head { min-height: auto; }
#work-task-editor .task-form { min-height: 0; }
.work-ai-rail { display: none; }
body.work-ai-open .work-ai-rail { display: flex !important; position: fixed; top: var(--work-topbar-h,68px); right: 0; bottom: 0; height: auto; width: min(410px,100vw); z-index: 40; border-left: 1px solid var(--line); box-shadow: -18px 0 40px #10202824; }
body.work-ai-open .work-ai-close { display: inline-block; }
/* THE PANEL TAKES ROOM, IT DOES NOT COVER (Fluence replay, 2026-11-26: at 1600px the open panel sat
   over Review Now and the click never reached it). Where the page is wide enough to work beside it,
   the page gives up the panel's width and reflows; narrower, the panel opens over the page and its x
   closes it. The width is the panel's own (work.css narrows it to 400px below 1150px). */
@media (min-width: 1000px) {
  body.work-ai-open .library-shell > main.work-main { margin-right: min(410px, 100vw); }
}
@media (min-width: 1000px) and (max-width: 1150px) {
  body.work-ai-open .library-shell > main.work-main { margin-right: min(400px, 100vw); }
}
@media(max-width:900px) {
  .runtime-page-head { padding: 20px; }
  .work-status-tabs { padding: 0 20px; }
}
@media(max-width:760px) {
  /* The list's row is its own height (min 180px, at most 35vh) and the open step takes what is
     left below it. With the list in the last, flexible row, a tall step (a document's cover and its
     progress, PR #10907) shrank that row to a few pixels and the step lay over the list: its rows
     could not be pressed. */
  .runtime-nav { grid-row: 1 / 5; }
  .runtime-page-head { grid-column: 2; grid-row: 1; min-height: 116px; height: auto; flex-wrap: wrap; padding: 16px; }
  .runtime-page-title h1 { font-size: 24px; }
  .runtime-page-actions { flex: 1 1 100%; }
  .work-status-tabs { grid-column: 2; grid-row: 2; padding: 0 10px; }
  .work-status-tabs button { padding: 11px 9px; font-size: 12px; }
  .task-inbox { grid-column: 2; grid-row: 3; min-height: 180px; max-height: 35vh; border-bottom: 1px solid var(--line); }
  .task-work { grid-column: 2; grid-row: 4; min-height: 45vh; }
  .task-inbox.task-open { display: flex; }
  .task-inbox.task-open + .task-work { position: static; display: flex; }
  .work-overview { padding: 23px 17px; }
  .work-detail-head { flex-wrap: wrap; }
  .work-detail-title { flex: 1 1 100%; }
  .task-cover { width: min(100%, 420px); }
}

/* Documents this person was asked to read, above their tasks: each opens the issued PDF. */
.work-reading { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #dce3f5; border-radius: 10px; background: #f8faff; }
.work-reading[hidden] { display: none; }
/* When a document has to be read by: amber as it nears, red once it has passed, nothing while it
   is on track (a date that always shouts is one people stop reading). */
.work-reading .work-read-due[data-state="approaching"] { color: #8a5514; font-weight: 600; }
.work-reading .work-read-due[data-state="overdue"] { color: #a8351f; font-weight: 600; }
.work-reading h2 { margin: 0 0 6px; font-size: 0.9rem; }
/* Your Actions: every row opens its detail in place (Bryan, ACT-0083, 2026-11-15). */
.work-reading li[data-action] { cursor: pointer; border-radius: 6px; }
.work-reading li[data-action]:focus-visible { outline: 2px solid #3056d3; outline-offset: 2px; }
.work-reading .work-action-detail { cursor: default; margin: 4px 0 6px; padding: 6px 8px; border-left: 3px solid #dce3f5; }
.work-reading .work-action-detail p { margin: 0 0 4px; }
.work-reading ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.work-reading a { display: block; overflow-wrap: anywhere; font-weight: 600; }
.work-reading small { color: var(--muted, #667085); font-weight: 400; }
/* The approval task: the document first (its green button opens the draft for the acceptor, Bryan's review
   2026-11-06), then the PDF the approval is recorded against (a plain button, .document-open below). */
.approval-document .button.primary, .approval-pdf .button.primary { display: inline-block; }
.approval-preview-side .approval-document { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border, #e4e7ec); }
.approval-preview-side .approval-document p { margin: 0; }
.approval-preview-side .approval-document .muted { font-size: 0.9em; }
/* The step's PDF while it is being prepared (approval-pdf.js): its button waits, and says nothing it cannot do. */
.approval-pdf .button[aria-disabled="true"] { opacity: 0.55; cursor: progress; pointer-events: none; }
/* Before and after (tasks.js beforeTemplateSection): the file as imported, beside the final preview of the PDF being approved. */
.before-template-frame { width: 100%; height: 70vh; border: 1px solid var(--line, #d0d5da); border-radius: 6px; background: #fff; }
.approval-pdf-state[data-state="opened"] { color: var(--ok, #166534); }
/* WHY "ACCEPT" WAITS, BESIDE THE FIELD AT FAULT (Bryan's review, 2026-11-15, item 15: the button "ran away" when the footer
   grew a line for the reason). The footer never changes shape; the reason is drawn under what it is about (tasks.js
   approvalWaitAnchor), and the footer's own note stays hidden. */
.task-form footer #approval-wait { display: none !important; }
.approval-block { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--warning, #b66b12); background: #fffaf0; color: var(--warning, #8a4f0c); font-size: 13px; border-radius: 4px; }
/* A review date before the issue date, said under the date (item 21). */
.runtime-field .field-problem { display: block; margin-top: 4px; color: var(--danger, #b91c1c); font-size: 12px; }
/* The signature is asked last, and only of an approval (item 11; tasks.js placeApprovalSignature). */
.approval-signature.awaiting-approved { display: none !important; }
.form-section > .approval-signature { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #e2e8f0); }
/* The approver's own mark (approval-signature.js): a pad a finger can sign on a phone. */
.approval-signature-pad { border: 1px solid var(--line, #cbd5e1); border-radius: 8px; background: #fff; max-width: 560px; }
.approval-signature-pad canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.approval-signature-actions, .approval-signature-initials { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.approval-signature-initials input { width: 8em; }
.approval-signature-done { color: var(--ok, #166534); }
.approval-signature-error { color: var(--danger, #b91c1c); }
/* LONG DOCUMENT NUMBERS (2026-10-24): a number like ABC_APZ-AU_OHS_PL_…_ENG has no spaces. It
   breaks at the <wbr> after its separators (breakableTitle() in tasks.js), and as a last resort
   anywhere, so it never runs over the process progress beside it. */
.work-detail-head small, .work-detail-head h2, .work-row-main strong, .work-row-number, #task-breadcrumb, .exception-panel .case-line, #work-reading a span, #work-reading small { overflow-wrap: anywhere; }
.work-row-main .work-row-number { color: var(--muted); font-size: 11px; }
/* The step's header: the document's title, its number underneath (Bryan's review, 2026-11-12, item 6). */
#task-breadcrumb .breadcrumb-title, #task-breadcrumb .breadcrumb-number { display: block; }
#task-breadcrumb .breadcrumb-number { color: var(--muted); font-size: 11px; }
.work-row-main .work-row-about { color: #34444e; font-size: 12px; overflow-wrap: anywhere; }
#work-reading a { color: var(--ink); text-decoration: none; }
#work-reading a:hover > span, #work-reading a:focus-visible > span { text-decoration: underline; }
/* The number and revision under the title; the actions box shares .work-reading and keeps its line. */
#work-reading a small { display: block; font-size: 11px; }
/* "Open the document" is a button, as its class says: nothing styled a.button on this page. The
   approval block's green primary button (approvalDocumentLink) is left exactly as it was. */
.document-open a.button:not(.primary) { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-weight: 650; text-decoration: none; }
.document-open a.button:not(.primary):hover { background: var(--soft); }

/* The final preview (tasks.js drawApprovalPreview): every page, one under the other, with what was entered beside it. */
.approval-preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 36%); gap: 18px; align-items: start; }
.approval-preview-pages { max-height: 80vh; overflow-y: auto; padding: 12px; border-radius: 10px; background: #eef0f3; }
.approval-preview-page { display: block; width: 100%; height: auto; margin: 0 auto 12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.approval-preview-side { position: sticky; top: 12px; display: grid; gap: 16px; max-height: calc(100vh - 24px); overflow-y: auto; min-width: 0; }
.approval-preview-about:empty { display: none; }
.approval-preview-about .approval-about { margin: 0; padding-top: 12px; border-top: 1px solid var(--line, #e4e7ec); }
/* Fields lined up, with room between them (Bryan, 2026-11-13, item 13). */
.approval-preview-meta dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; column-gap: 14px; row-gap: 12px; align-items: baseline; }
.approval-preview-meta dt { margin: 0; font-size: 0.8em; color: var(--muted, #667085); text-transform: uppercase; letter-spacing: 0.03em; }
.approval-preview-meta dd { margin: 0; overflow-wrap: anywhere; }
.approval-preview-meta ul { margin: 0; padding-left: 16px; }
.approval-preview-comments { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line, #e4e7ec); }
.approval-preview-comments h3 { margin: 0 0 8px; font-size: 0.8em; color: var(--muted, #667085); text-transform: uppercase; letter-spacing: 0.03em; }
.approval-preview-meta .approval-preview-comments ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.approval-preview-comment { display: grid; gap: 2px; padding: 8px 10px; border-left: 3px solid var(--accent, #f5b301); background: var(--surface-2, #fafafa); overflow-wrap: anywhere; }
@media (max-width: 760px) { .approval-preview-layout { grid-template-columns: 1fr; } .approval-preview-side { position: static; max-height: none; overflow: visible; } }
.approval-comment-author { font-weight: 600; }
/* What the document covers, under "What you are approving" (Sam, 2026-11-04): the AI's ticks the acceptor may untick. */
.approval-covers { margin: 10px 0 4px; }
/* What it is about, as entered, in the New Document form's picker (Bryan's review, 2026-11-11). */
.approval-about { display: grid; gap: 10px; margin: 10px 0 4px; }
.approval-about-title { margin: 0; }
.approval-about-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line, #e4e7ec); border-radius: 10px; }
.approval-about-field legend { padding: 0 4px; font-weight: 600; font-size: 0.9rem; }
.approval-about-laws { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.approval-about-laws[hidden] { display: none; }
.approval-about-laws li { display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.approval-about-state { margin: 0; color: #475467; font-size: 0.85rem; }
.approval-about-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.approval-about-state[hidden] { display: none; }
/* The Department line laid out like the fields around it (Bryan, 2026-11-21: "neat and tidy"): its name above the box, the hint under it. */
.approval-about-department { display: grid; gap: 4px; min-width: 0; padding: 8px 10px 10px; border: 1px solid var(--line, #e4e7ec); border-radius: 10px; }
.approval-about-department > span { font-weight: 600; font-size: 0.9rem; }
.approval-about-department > input, .approval-about-department > select { width: 100%; max-width: 320px; box-sizing: border-box; }
.approval-about-department > small { color: var(--muted, #667085); }
.approval-about-kept { margin: 0; color: #475467; font-size: 0.9rem; overflow-wrap: anywhere; }
.approval-covers-title { margin: 0 0 6px; overflow-wrap: anywhere; }
.approval-covers-suggested { display: grid; gap: 4px; }
.approval-covers-suggested-title { margin: 8px 0 4px; color: #475467; font-size: 0.85rem; }
.approval-cover { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; overflow-wrap: anywhere; }
.approval-cover input { margin-top: 3px; flex: none; }
/* A task opening (tasks.js showOpening): one quiet line until the step is drawn whole (Bryan's review video, 2026-11-06). */
.work-opening { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: var(--muted, #667085); font-size: 13px; }
.work-opening-spinner { width: 16px; height: 16px; border: 2px solid var(--brand-line, #9bdedb); border-top-color: var(--brand, #007b77); border-radius: 50%; animation: work-opening-spin .8s linear infinite; }
@keyframes work-opening-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .work-opening-spinner { animation: none; } }
.work-opening-failed { color: var(--danger, #b42318); font-size: 13px; }
/* The documents a person contributes to: the name, then the number and revision under it (Bryan's review video, 2026-11-06). */
#work-contributing a small { display: block; font-size: 11px; }

/* "What it is about" on the acceptance step (Bryan, 2026-11-13, item 14): every tick the same blue, each section folds to its heading. */
.approval-about input[type="checkbox"] { accent-color: var(--accent, #1f6feb); }
.approval-about-field > legend[data-folds] { cursor: pointer; user-select: none; }
.approval-about-field.is-folded > :not(legend) { display: none !important; }
.approval-about-laws li .approval-cover { display: flex; gap: 8px; align-items: baseline; }
.approval-preview-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--amber, #b7791f); background: var(--surface-2, #f7f5ef); font-size: 0.95em; }
.task-cover-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 210 / 297; color: #4d5f69; font-size: 14px; }
.task-cover-loading .work-opening-spinner { width: 28px; height: 28px; border-width: 3px; }
/* The worked-out review date (tasks.js showAutomaticReviewNote): its box is hidden, only the note shows. The hidden
   attribute alone loses to .field{display:block} (Bryan's review, 2026-11-21). */
.runtime-field [data-review-date-automatic][hidden] { display: none !important; }
/* THE REVIEW DATE READS CLEARLY (Bryan's review, 2026-11-26, 08:38: "kind of just like a fading comment... it just needs to be bold"). */
[data-runtime-field] p[data-review-date-note] { color: var(--text, #101828); font-weight: 700; opacity: 1; }

/* THE DECISION READS AT A GLANCE (Bryan's review, 2026-11-23: "make the Accept button bold, obvious"): each outcome a
   firm, clickable choice; the chosen one in the brand colour, bold, and the step's button big enough to find. */
.decision-option { cursor: pointer; font-weight: 600; font-size: 14px; padding: 13px 14px; border-width: 1.5px; transition: border-color .15s, background .15s; }
.decision-option:hover { border-color: var(--brand, #3156d9); }
.decision-option:has(input:checked) { border-color: var(--brand, #3156d9); background: #eef2ff; color: var(--brand, #3156d9); font-weight: 700; box-shadow: 0 0 0 2px rgba(49, 86, 217, .15); }
.decision-option input { width: 18px; height: 18px; accent-color: var(--brand, #3156d9); }
.task-form footer #complete-task.primary { height: 42px; padding: 0 22px; font-size: 14px; font-weight: 700; }
/* On a phone the ⋯ sits at the left of its row, so its list opens to the right of it: pinned right, Details and
   Delete opened off the left edge of the screen (phone sweep, 25 Nov). */
@media (max-width: 640px) {
  .work-detail-menu-items { right: auto; left: 0; max-width: calc(100vw - 32px); }
  .work-detail-menu-items button { min-height: 44px; font-size: 15px; }
}
