
    :root { --ink: #141816; --muted: #59615c; --subtle: #7a827c; --green: #1e5c42; --rail: #15251e; --lime: #d9f36a; --line: #e7e9e6; --line-strong: #d9ddd9; --soft: #f6f7f5; --canvas: #ffffff; --sage: #e5f0e8; --row-hover: #f0f5ef; --board-muted: #687269; --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --serif: 'IBM Plex Serif', Georgia, serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body { margin: 0; background: white; color: var(--ink); font: 14px/1.45 var(--sans); }
    html:has(dialog[open]) { overflow: hidden; }
    button, input, select, textarea { font: inherit; color: inherit; }
    button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
    button { cursor: pointer; }
    button:disabled { cursor: default; opacity: .4; }
    button, a, input, select, textarea { outline-offset: 3px; }
    :focus-visible { outline: 2px solid var(--green); }
    a { color: var(--green); text-underline-offset: 3px; }
    svg.icon { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .skip-link { position: fixed; top: -70px; left: 90px; z-index: 10; background: white; padding: 10px 16px; border: 1px solid var(--green); border-radius: 6px; }
    .skip-link:focus { top: 8px; }
    .mono, time, .count { font-family: var(--mono); font-variant-numeric: tabular-nums; }
    .application-app .app-shell { height: calc(100vh - var(--app-header-height)); height: calc(100dvh - var(--app-header-height)); min-height: 496px; }
    .workspace { width: 100%; max-width: 1320px; min-width: 0; min-height: 0; justify-self: start; flex: 1; display: flex; flex-direction: column; }
    .button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; }
    .button:hover:not(:disabled) { background: var(--soft); border-color: #a3aba5; }
    .button.primary { background: var(--green); border-color: var(--green); color: white; }
    .button.primary:hover { background: #184c36; }
    .button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
    .button.danger { color: #98513b; }
    .button.small { min-height: 29px; padding: 4px 9px; font-size: 11px; }
    .icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
    .icon-button:hover { background: var(--soft); border-color: var(--line); }
    .tabs-row { display: flex; align-items: center; gap: 20px; min-height: 48px; padding: 0 32px; border-bottom: 1px solid var(--line); flex: none; }
    .tabs { display: flex; gap: 28px; align-self: stretch; }
    .tab { position: relative; display: flex; align-items: center; gap: 7px; min-height: 48px; border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 13px; }
    .tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
    .tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); }
    .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: #f0f2f0; color: var(--muted); font-size: 10px; font-weight: 400; }
    .tab .count { min-width: 1ch; height: auto; padding: 0; border-radius: 0; background: transparent; font-family: var(--sans); font-size: inherit; font-weight: 500; line-height: inherit; }
    .tab[aria-selected="true"] .count { color: var(--green); font-weight: 600; }
    .tabs-row > .button { margin-left: auto; min-height: 32px; }
    .toolbar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 15px 32px; }
    .toolbar select { height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 27px 0 9px; background-color: white; color: var(--muted); font-size: 12px; }
    .sort-control { margin-left: auto; }
    .result-count { font-size: 11px; color: var(--subtle); white-space: nowrap; }
    .panel { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; padding: 16px 32px 24px; background: var(--canvas); }
    .workspace:has(.toolbar:not([hidden])) .panel { padding-top: 0; }
    .board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; flex: 1; min-height: 0; }
    .column { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
    .column-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
    .column-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--green); }
    .column-head .count { margin-left: auto; background: var(--sage); color: var(--green); }
    .column-stack { display: flex; flex-direction: column; gap: 6px; min-height: 120px; flex: 1; overflow-y: auto; padding: 8px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
    .column.drag-over .column-stack { background: #edf4ef; }
    .card { position: relative; flex: none; width: 100%; text-align: left; padding: 10px 8px 10px 10px; border: 0; border-radius: 4px; background: #eef4ef; transition: background .15s; }
    .card:hover { background: #e4eee7; }
    .card:focus-visible { outline-offset: -2px; }
    .card.dragging { opacity: .5; }
    .card-identity { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; color: var(--board-muted); font-size: 12px; line-height: 18px; }
    .card-identity strong { color: #253a2d; font-weight: 600; }
    .card-task { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
    .card.overdue .card-task, .card.today .card-task { color: var(--ink); font-weight: 500; }
    .card-task.waiting { color: var(--board-muted); }
    .card-deadline { display: block; margin-top: 4px; font: 12px/16px var(--sans); font-variant-numeric: tabular-nums; color: var(--board-muted); }
    .card-deadline.overdue { color: #a0523c; }
    .card-deadline.today { color: #946b25; }
    .card-drag { position: absolute; right: 3px; top: 12px; color: #a4ada4; opacity: 0; }
    .card-drag .icon { width: 12px; height: 12px; }
    .card:hover .card-drag, .card:focus-visible .card-drag { opacity: 1; }
    .company-mark { width: 27px; height: 27px; flex: none; display: inline-grid; place-items: center; border-radius: 6px; color: #536157; background: #eef1ec; font-size: 11px; font-weight: 500; font-style: normal; }
    .column-empty { padding: 20px 10px; color: var(--subtle); font-size: 11px; }
    .mobile-stages { display: none; }
    .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; min-height: 250px; padding: 40px 20px; text-align: center; }
    .empty-state > .icon { width: 32px; height: 32px; color: #91a394; }
    .empty-state h2 { margin: 0; font: 500 22px var(--serif); }
    .empty-state p { margin: 0; max-width: 360px; color: var(--muted); font-size: 13px; }
    .table-scroll { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 6px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
    table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
    thead { position: sticky; top: 0; z-index: 1; }
    th { background: #f7f8f6; color: var(--muted); font-size: 10px; font-weight: 500; padding: 11px 12px; border-bottom: 1px solid var(--line); }
    td { padding: 11px 12px; border-bottom: 1px solid #eef0ed; font-size: 12px; vertical-align: middle; }
    tr:last-child td { border-bottom: 0; }
    tbody tr:hover { background: #f9faf8; }
    tbody tr.selected { background: #f0f5ef; }
    th.check-cell, td.check-cell { width: 38px; padding-left: 15px; padding-right: 0; }
    input[type="checkbox"] { accent-color: var(--green); width: 14px; height: 14px; vertical-align: middle; margin: 0; cursor: pointer; }
    .company-cell { width: 20%; }
    .role-cell { width: auto; }
    .date-cell { width: 120px; }
    .waiting-cell { width: 100px; }
    .action-cell { width: 155px; text-align: right; padding-right: 16px; }
    .company-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
    .company-row .company-mark { width: 24px; height: 24px; font-size: 10px; }
    .text-button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .text-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
    .role-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .row-location { display: block; margin-top: 2px; font-size: 10px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table-date { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
    .waiting { color: var(--muted); font-size: 11px; }
    .waiting.quiet { color: #858c86; }
    .outcome { display: inline-flex; padding: 3px 7px; border-radius: 4px; background: #f0f2ef; color: var(--muted); font-size: 10px; white-space: nowrap; }
    .outcome.rejected { background: #f0f2ef; color: var(--muted); }
    .sent-table td { height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 11px; line-height: 1.25; }
    .sent-table .company-row { gap: 0; }
    .sent-table .action-cell { width: 135px; }
    .sent-table .button.small { min-height: 23px; padding: 2px 6px; border-color: transparent; background: transparent; color: var(--muted); font-size: 10px; }
    .sent-table .button.small .icon { width: 13px; height: 13px; }
    .sent-table .button.small:hover { border-color: var(--line-strong); background: white; color: var(--green); }
    .sent-table tbody tr:nth-child(even) { background: #fafbf9; }
    .sent-table tbody tr:hover { background: #f0f3ef; }
    .sent-table tbody tr.selected { background: #edf4eb; }
    .table-scroll:has(.table-empty) table { height: 100%; }
    .table-scroll:has(.table-empty) thead { height: 1px; }
    table .table-empty td { height: auto; padding: 18px 12px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; text-align: center; vertical-align: middle; }
    @media (max-width: 760px) { .table-scroll:has(.table-empty) { height: 50dvh; } }
    table tbody tr.table-empty:hover { background: transparent; }
    .pagination { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--subtle); font-size: 11px; }
    .pagination-controls { display: flex; align-items: center; gap: 10px; }
    .bulk { display: flex; flex: none; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 12px; border: 1px solid #cadbcf; border-radius: 6px; background: #f1f6f0; font-size: 12px; }
    .bulk .button { margin-left: auto; }
    dialog { color: var(--ink); border: 1px solid var(--line-strong); padding: 0; background: white; box-shadow: 0 15px 60px #15251e1c; }
    dialog::backdrop { background: #15251e38; backdrop-filter: blur(1.5px); }
    .modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border-radius: 10px; }
    .modal-head { display: flex; gap: 12px; align-items: flex-start; padding: 24px 24px 0; }
    .modal-head .icon-button { margin-left: auto; margin-top: -5px; flex: none; }
    .eyebrow { margin: 0 0 7px; font: 9px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--subtle); }
    .modal h2 { margin: 0; font: 500 23px/1.25 var(--serif); letter-spacing: -.3px; }
    .modal-head p:last-child:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
    .form-body { padding: 22px 24px 24px; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
    .form-grid .full { grid-column: 1 / -1; }
    .field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 500; }
    .field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; font-size: 12px; font-weight: 400; }
    .field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
    .field input::placeholder, .field textarea::placeholder { color: #9ba29b; }
    .field-hint { color: var(--subtle); font-size: 10px; font-weight: 400; }
    .dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 15px 24px; }
    .response-context { display: flex; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 20px; }
    .response-context strong { display: block; font-size: 12px; }
    .response-context span { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
    .response-options { border: 0; padding: 0; margin: 0 0 20px; }
    .response-options legend { font-size: 11px; font-weight: 500; padding: 0; margin-bottom: 9px; }
    .response-choice { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 7px; cursor: pointer; }
    .response-choice:has(input:checked) { background: #f3f7f2; border-color: #a8c0ad; }
    .response-choice input { margin: 0; accent-color: var(--green); }
    .response-choice strong { display: block; font-size: 12px; font-weight: 500; }
    .response-choice small { color: var(--subtle); font-size: 10px; }
    .response-choice .icon { margin-left: auto; width: 14px; height: 14px; color: var(--subtle); }
    .drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
    .drawer-form { display: flex; flex-direction: column; height: 100%; }
    .drawer-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 25px 24px 22px; border-bottom: 1px solid var(--line); }
    .drawer-head .company-mark { width: 37px; height: 37px; font-size: 14px; }
    .drawer-title { min-width: 0; flex: 1; }
    .drawer-title h2 { margin: 0; font: 500 21px/1.35 var(--serif); overflow-wrap: anywhere; }
    .drawer-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
    .drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 23px 24px; }
    .drawer-foot { flex: none; flex-wrap: wrap; padding: 15px 20px; }
    .drawer-foot > :first-child { margin-right: auto; }
    .section-heading { margin: 24px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
    .history { list-style: none; margin: 0; padding: 0; }
    .history li { position: relative; padding: 0 0 19px 20px; border-left: 1px solid var(--line); margin-left: 3px; }
    .history li::before { content: ''; position: absolute; width: 6px; height: 6px; left: -4px; top: 5px; border-radius: 50%; background: #a8b9aa; border: 1px solid white; }
    .history li:last-child { padding-bottom: 0; border-left-color: transparent; }
    .history strong { display: block; font-weight: 400; font-size: 11px; overflow-wrap: anywhere; }
    .history time { display: block; margin-top: 3px; color: var(--subtle); font-size: 9px; }
    .toast { position: fixed; z-index: 5; bottom: 25px; left: calc(50% + 38px); transform: translate(-50%, 12px); display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 15px; border-radius: 7px; background: var(--rail); color: white; box-shadow: 0 4px 20px #15251e22; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; font-size: 12px; }
    .toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .toast button { border: 0; padding: 0; background: transparent; color: var(--lime); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
    .toast button:focus-visible { outline-color: var(--lime); }
    @media (min-width: 761px) and (max-width: 1100px) { .toolbar, .tabs-row { padding-left: 22px; padding-right: 22px; } .panel { padding-left: 22px; padding-right: 22px; overflow-x: auto; } .board { grid-template-columns: repeat(4, minmax(225px, 1fr)); gap: 14px; min-height: 390px; } .table-scroll { min-width: 720px; } }
    @media (max-width: 760px) {
      .application-app .app-shell { height: auto; min-height: 0; }
      .tabs-row { padding: 0 16px; gap: 10px; } .tabs { gap: 16px; } .tab { min-height: 48px; font-size: 12px; }
      .tabs-row > .button { width: 32px; padding: 0; flex: none; }
      .tabs-row .log-label { display: none; }
      .toolbar { padding: 13px 16px; flex-wrap: wrap; gap: 8px; }
      .sort-control { margin-left: auto; } .result-count { display: none; }
      .toolbar select { font-size: 11px; }
      .panel { padding: 14px 16px 24px; min-height: 360px; }
      .mobile-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
      .mobile-stages button { border: 0; border-radius: 4px; padding: 8px 2px; background: transparent; color: var(--muted); font-size: 10px; }
      .mobile-stages button[aria-pressed="true"] { background: white; color: var(--green); box-shadow: 0 1px 3px #15251e12; font-weight: 600; }
      .board { display: block; }
      .column:not(.mobile-current) { display: none; }
      .column-stack { overflow: visible; }
      .card { padding: 10px; }
      .card-identity { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; }
      .toolbar .result-count { display: none; }
      .sort-control { margin-left: auto; }
      .table-scroll { overflow: auto; flex: none; max-height: 65dvh; }
      table { min-width: 650px; } table.closed-table { min-width: 710px; }
      .company-cell { width: 155px; } .date-cell { width: 105px; } .action-cell { width: 138px; }
      .pagination { font-size: 10px; gap: 6px; flex-wrap: wrap; }
      .pagination-controls { gap: 5px; } .pagination .button { font-size: 10px; }
      .bulk { flex-wrap: wrap; gap: 6px; font-size: 11px; }
      .bulk .button { font-size: 10px; padding: 4px 6px; }
      .modal { max-height: calc(100dvh - 24px); width: calc(100vw - 24px); }
      .modal-head { padding: 21px 20px 0; } .form-body { padding: 20px; } .dialog-foot { padding: 14px 20px; }
      .drawer { width: 100vw; border-left: 0; } .drawer-head { padding: 22px 20px 18px; } .drawer-body { padding: 20px; }
      .drawer-foot { gap: 5px; padding: 12px 14px; } .drawer-foot .button { font-size: 11px; padding: 7px 9px; }
      .toast { left: 50%; bottom: 16px; font-size: 11px; gap: 12px; }
    }
    @media (max-width: 380px) { .tabs { gap: 6px; } .tabs-row { gap: 8px; } .tab { font-size: 11px; } }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.save-error { color: #a0523c; font-size: 12px; }

/* Submitted and Closed only. In progress and the shared dialogs retain their styles. */
.records-view .toolbar { min-height: 56px; height: 56px; padding-block: 11px; gap: 14px; flex-wrap: nowrap; }
.records-view .toolbar > label { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.records-view .toolbar > label::after { content: ''; position: absolute; right: 9px; width: 6px; height: 6px; border: solid var(--subtle); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.records-view .toolbar select { appearance: none; field-sizing: content; max-width: 100%; padding: 0 30px 0 8px; border-color: transparent; border-radius: 5px; background: transparent; color: #505b53; font-size: 13px; }
.records-view .toolbar select:hover { background: var(--soft); }
.records-view #age-control, .records-view #outcome-control { margin-left: -9px; }
.records-view .sort-control select { padding-left: 27px; }
.records-view .sort-control::before { content: ''; position: absolute; left: 4px; width: 15px; height: 15px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778179' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M5 5v14m-3-3 3 3 3-3M12 6h10M12 12h7M12 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.records-view .result-count { font-size: 12px; }
.records-view .panel { overflow: hidden; }
.records-view .table-scroll { min-width: 0; border: 0; border-radius: 0; }
.records-view table { min-width: 0; }
.records-view th { height: 34px; padding: 0 12px; border-bottom-color: var(--line-strong); background: white; font-size: 12px; font-weight: 400; }
.records-view td { height: 40px; padding: 5px 12px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; }
.records-view th.check-cell, .records-view td.check-cell { width: 34px; padding-left: 12px; padding-right: 0; }
.records-view .company-cell { width: 236px; padding-left: 0; }
.records-view .date-cell { width: 110px; }
.records-view .waiting-cell { width: 92px; }
.records-view .last-stage-cell { width: 104px; }
.records-view .action-cell { width: 148px; padding-right: 12px; }
.records-view .closed-table .action-cell { width: 100px; }
.records-view tbody tr, .records-view tbody tr:nth-child(even) { background: white; }
.records-view tr[data-row-open] { cursor: pointer; }
.records-view tr[data-row-open]:hover, .records-view tr[data-row-open]:focus-within { background: #f1f6f2; }
.records-view table tbody tr.selected { background: #eaf2ed; }
.company-logo-tile { position: relative; overflow: hidden; }
.company-logo-tile > img[data-company-logo] { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 2px; object-fit: contain; background: white; }
.records-view .company-row { gap: 8px; }
.records-view .records-company-mark { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 5px; background: #eef1ed; color: #626d64; font-size: 9px; font-weight: 500; letter-spacing: .015em; }
.records-view .records-company-name { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.records-view .records-identity { display: flex; align-items: center; min-width: 0; gap: 9px; }
.records-view .records-copy { min-width: 0; }
.records-view .role-title { color: #252d27; font-size: 13px; font-weight: 500; line-height: 1.45; }
.records-view .role-title:hover { color: var(--green); text-decoration: none; }
.records-view .table-date { font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.records-view .waiting { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.records-view .outcome { font-size: 12px; }
.records-view .records-mobile-mark, .records-view .records-mobile-company, .records-view .records-mobile-label { display: none; }
.records-view .records-row-action { min-height: 28px; padding: 4px 7px; gap: 6px; border-color: transparent; background: transparent; color: var(--green); font-size: 12px; font-weight: 500; opacity: 0; }
.records-view .records-row-action .icon { width: 14px; height: 14px; }
.records-view tr:hover .records-row-action, .records-view tr:focus-within .records-row-action { opacity: 1; }
.records-view .records-row-action:hover { border-color: #cad9cf; background: white; color: var(--green); }
.records-view .table-empty td { height: auto; padding: 24px 12px; }
.records-view .records-bulk { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.records-view .records-bulk strong { font-weight: 500; white-space: nowrap; }
.records-view .records-bulk .text-button { color: var(--muted); font-size: 12px; }
.records-view .records-bulk .button { min-height: 30px; font-size: 12px; }
@media (hover: none) { .records-view .records-row-action { opacity: 1; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .records-view .company-cell { width: 190px; }
  .records-view .date-cell { width: 95px; }
  .records-view .action-cell { width: 136px; }
  .records-view .records-row-action { gap: 4px; padding-inline: 4px; font-size: 11px; }
}
@media (max-width: 900px) {
  .records-view .action-cell, .records-view .last-stage-cell { display: none; }
}
@media (max-width: 760px) {
  .records-view .toolbar { gap: 10px; }
  .records-view .toolbar select { font-size: 12px; }
  .records-view .toolbar > label { max-width: 50%; }
  .records-view .toolbar:has(.records-bulk:not([hidden])) .sort-control { display: none; }
  .records-view .table-scroll { width: 100%; }
  .records-view .company-cell, .records-view .records-desktop-label { display: none; }
  .records-view .records-mobile-label, .records-view .records-mobile-company { display: block; }
  .records-view .records-mobile-mark { display: inline-flex; flex: none; }
  .records-view .records-company-mark { width: 24px; height: 24px; }
  .records-view .records-mobile-company { margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .records-view th, .records-view td { padding-inline: 8px; }
  .records-view td { height: 56px; padding-block: 6px; }
  .records-view th.check-cell, .records-view td.check-cell { width: 29px; padding-left: 2px; }
  .records-view .role-cell { padding-left: 0; }
  .records-view .date-cell { width: 75px; }
  .records-view .waiting-cell { width: 65px; }
  .records-view .closed-table .waiting-cell { width: 88px; }
  .records-view .records-bulk { gap: 12px; font-size: 12px; }
  .records-view .records-bulk .button { padding-inline: 8px; font-size: 11px; }
  .records-view .records-bulk .text-button { font-size: 11px; }
}
@media (max-width: 600px) { .records-view .date-cell { display: none; } }

/* Agenda pane: the existing tracker cards and tables keep their own styles. */
.panel:has(.progress-layout) { padding: 0; }
.progress-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); flex: 1; min-width: 0; min-height: 0; }
.board-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 24px 24px; overflow: auto; }
.board-pane .board { grid-template-columns: repeat(4, minmax(220px, 1fr)); min-width: 952px; }
.card.agenda-hover { background: #e4eee7; }
    .agenda { min-width: 0; min-height: 0; padding: 16px 20px 20px; border-right: 1px solid var(--line); background: white; display: flex; flex-direction: column; }
    .agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
    .agenda-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--green); }
    .agenda-head time { font: 10px var(--sans); color: var(--board-muted); white-space: nowrap; }
    .agenda-week { display: flex; align-items: center; gap: 3px; }
    .agenda-week button { width: 22px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--board-muted); font-size: 16px; }
    .agenda-week button:hover { background: var(--row-hover); color: var(--green); }
    .agenda-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
    .agenda-group { margin-top: 8px; }
    .agenda-group h3 { margin: 0; padding: 8px 0 5px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--board-muted); }
    .agenda-scroll > .agenda-group:first-child h3 { border-top: 0; padding-top: 4px; }
    .agenda-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; padding: 6px 0; }
    .agenda-row:hover, .agenda-row:focus-within { background: var(--row-hover); }
    .agenda-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
    .agenda-title { grid-column: 1 / -1; grid-row: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
    .agenda-row.today .agenda-title { font-weight: 500; }
    .agenda-row.overdue .agenda-title, .agenda-row.deadline-soon .agenda-title { font-weight: 600; }
    .agenda-check { display: grid; place-items: center start; width: 26px; height: 26px; margin: -3px 0 0; cursor: pointer; }
    .agenda input.complete-task { appearance: none; display: grid; place-items: center; width: 15px; height: 15px; margin: 0; padding: 0; border: 1px solid #9aa89d; border-radius: 3px; background: white; color: transparent; cursor: pointer; }
    .agenda-check:hover input.complete-task, .agenda input.complete-task:focus-visible { border-color: var(--green); background: var(--sage); }
    .agenda input.complete-task:checked { border-color: var(--green); background: var(--green); }
    .agenda input.complete-task:checked::before { content: ''; width: 7px; height: 4px; margin-top: -2px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); }
    .agenda input.complete-task::after { content: none; }
    .agenda-identity { grid-column: 1; grid-row: 2; display: block; min-width: 0; margin-top: 3px; color: var(--board-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agenda-time { grid-column: 2; grid-row: 2; margin-top: 3px; white-space: nowrap; color: var(--board-muted); font: 11px/1.6 var(--sans); font-variant-numeric: tabular-nums; }
    .agenda-row.interview .agenda-title { grid-column: 1; }
    .agenda-row.interview .agenda-time { grid-row: 1; margin-top: 0; color: var(--ink); line-height: 1.7; }
    .agenda-row.interview .agenda-identity { grid-column: 1 / -1; }
    .agenda-row.deadline-soon .agenda-time { color: #946b25; font-weight: 500; }
    .agenda-time.overdue { color: #a0523c; }
    .agenda-kind { font-family: var(--sans); }
    .agenda-join { grid-column: 2; justify-self: start; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; }
    .agenda-join .icon { width: 12px; height: 12px; }
    .agenda-fold > summary { cursor: pointer; list-style: none; padding: 12px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #a0523c; }
    .agenda-fold > summary::before { content: '›'; margin-right: 6px; }
    .agenda-fold[open] > summary::before { content: '⌄'; }
    .agenda-fold > summary::-webkit-details-marker { display: none; }
    .agenda-clear { padding: 20px 0; margin: 0; font-size: 12px; color: var(--board-muted); line-height: 1.6; }

@media (min-width: 761px) and (max-width: 1100px) {
  .panel:has(.progress-layout) { overflow: hidden; }
}
@media (max-width: 760px) {
  .progress-layout { display: flex; flex-direction: column; }
  .agenda { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 12px; }
  .agenda-head { padding-top: 9px; }
  .agenda-scroll { flex: none; overflow: visible; }
  .agenda-group h3 { padding-top: 8px; }
  .board-pane { overflow: visible; padding: 16px 16px 24px; }
  .board-pane .board { min-width: 0; display: block; }
}
