
    :root { --header-h: 64px; --rail-w: 112px; --content-max: 1480px; }
    * { box-sizing: border-box; }
    body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--prizm-color-bg); color: var(--prizm-color-fg); font-family: var(--prizm-font-sans); font-size: 14px; line-height: 1.45; }
    button, input, select, textarea { font: inherit; }
    button { color: inherit; }
    svg { display: block; }
    [hidden] { display: none !important; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    .topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: minmax(300px,1fr) minmax(260px,420px) auto; align-items: center; gap: 24px; padding: 0 20px 0 18px; background: var(--prizm-color-topbar); color: var(--prizm-color-topbar-fg); border-bottom: 1px solid rgb(255 255 255 / .08); }
    .brand, .brand-lockup, .top-actions, .profile { display: flex; align-items: center; }
    .brand { gap: 12px; min-width: 0; }
    .brand-lockup { gap: 12px; min-width: 0; }
    .brand-mark { width: 56px; height: 28px; flex: 0 0 56px; background: url("../assets/dsta-logo-white.svg") center / contain no-repeat; }
    .brand-name { overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .global-search { position: relative; }
    .global-search .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: rgb(244 242 236 / .66); }
    .global-search input { width: 100%; height: 38px; padding: 0 42px 0 38px; color: var(--prizm-color-topbar-fg); background: rgb(244 242 236 / .06); border: 1px solid rgb(244 242 236 / .16); border-radius: var(--prizm-radius-md); outline: none; }
    .global-search input::placeholder { color: rgb(244 242 236 / .6); }
    .global-search input:focus { border-color: var(--prizm-color-topbar-accent); box-shadow: 0 0 0 2px rgb(91 142 232 / .24); }
    .shortcut { position: absolute; right: 9px; top: 8px; padding: 2px 6px; color: rgb(244 242 236 / .64); border: 1px solid rgb(244 242 236 / .18); border-radius: var(--prizm-radius-sm); font-size: 12px; }
    .top-actions { gap: 14px; }
    .icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--prizm-radius-md); background: transparent; cursor: pointer; }
    .icon-btn:hover { background: rgb(255 255 255 / .08); }
    .notification { position: relative; color: var(--prizm-color-topbar-fg-muted); }
    .notification::after { content: ""; position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--prizm-color-topbar-accent); box-shadow: 0 0 0 2px var(--prizm-color-topbar); }
    .profile { gap: 10px; padding-left: 14px; border-left: 1px solid rgb(244 242 236 / .2); }
    .profile-copy { text-align: right; line-height: 1.25; }
    .profile-copy strong { display: block; font-size: 13px; }
    .profile-copy span { color: var(--prizm-color-topbar-fg-muted); font-size: 12px; }
    .avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--prizm-color-accent); color: var(--prizm-color-accent-fg); font-size: 12px; font-weight: 700; }
    .mobile-menu { display: none; color: var(--prizm-color-topbar-fg); }

    .sidebar { position: fixed; z-index: 45; left: 0; top: var(--header-h); bottom: 0; width: var(--rail-w); background: var(--prizm-color-surface); border-right: 1px solid var(--prizm-color-border); }
    .primary-nav { padding: 8px 0; }
    .nav-item { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; color: var(--prizm-color-fg-muted); border-left: 3px solid transparent; text-align: center; text-decoration: none; font-size: 12px; }
    .nav-item svg { width: 18px; height: 18px; }
    .nav-item:hover { background: var(--prizm-color-bg-muted); color: var(--prizm-color-fg); }
    .nav-item.active { color: var(--prizm-color-accent); background: color-mix(in srgb, var(--prizm-color-accent) 7%, var(--prizm-color-surface)); border-left-color: var(--prizm-color-accent); font-weight: 700; }

    .app-main { min-height: 100dvh; padding: calc(var(--header-h) + 22px) 28px 48px calc(var(--rail-w) + 28px); }
    .page { width: min(100%, var(--content-max)); margin: 0 auto; }
    .breadcrumb ol { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0; color: var(--prizm-color-fg-muted); list-style: none; font-size: 12px; }
    .breadcrumb a { color: inherit; text-decoration: none; }
    .breadcrumb a:hover { color: var(--prizm-color-accent); }
    .project-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 32px; padding: 4px 0 22px; }
    .project-hero h1 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
    .project-title-row { display: flex; align-items: center; gap: 10px; }
    .scope-icon-button { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg-muted); cursor: pointer; }
    .scope-icon-button:hover { border-color: var(--prizm-color-accent); background: var(--prizm-color-bg-muted); color: var(--prizm-color-accent); }
    .scope-icon-button svg { width: 17px; height: 17px; }
    .scope-icon-button:focus-visible { outline: 2px solid var(--prizm-color-focus); outline-offset: 2px; }
    .project-description { max-width: 760px; margin: 5px 0 0; color: var(--prizm-color-fg-muted); font-size: 13px; }
    .project-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
    .project-meta { margin: 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .updated { color: var(--prizm-color-fg-subtle); font-size: 12px; white-space: nowrap; }
    .project-hero-actions { min-width: 152px; display: grid; justify-items: end; gap: 14px; }

    .project-browser { display: grid; grid-template-columns: minmax(190px,.65fr) minmax(420px,1.35fr); align-items: center; gap: 24px; padding: 16px 18px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-md); background: var(--prizm-color-surface); box-shadow: var(--prizm-shadow-sm); }
    .project-browser-copy strong, .project-browser-copy span { display: block; }
    .project-browser-copy strong { font-size: 13px; }
    .project-browser-copy span { margin-top: 4px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .project-browser-copy a { color: var(--prizm-color-accent); text-decoration: none; }
    .project-browser-copy a:hover { text-decoration: underline; }
    .project-browser-controls { width: min(100%,520px); justify-self: end; }
    .project-groups { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-subtle); }
    .project-group { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 0; border-radius: calc(var(--prizm-radius-sm) - 2px); background: transparent; color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
    .project-group:hover { color: var(--prizm-color-fg); }
    .project-group[aria-selected="true"] { background: var(--prizm-color-surface); color: var(--prizm-color-accent); box-shadow: var(--prizm-shadow-sm); }
    .project-group b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--prizm-color-bg-muted); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .project-select-field { display: grid; gap: 5px; color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .project-select-field select { width: 100%; min-height: 40px; padding: 0 36px 0 11px; border: 1px solid var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); font: inherit; font-size: 12px; cursor: pointer; }

    .context-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .context-meta span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--prizm-color-border); }
    .context-meta strong { color: var(--prizm-color-fg); }
    .btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
    .btn:hover { background: var(--prizm-color-bg-muted); }
    .btn:active { transform: translateY(1px); }
    .btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
    .btn-primary { border-color: var(--prizm-color-accent); background: var(--prizm-color-accent); color: var(--prizm-color-accent-fg); }
    .btn-primary:hover { border-color: var(--prizm-color-accent-hover); background: var(--prizm-color-accent-hover); }
    .btn-sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
    .btn-ghost { border-color: transparent; background: transparent; color: var(--prizm-color-accent); }
    .btn-danger { border-color: var(--prizm-color-danger); background: var(--prizm-color-danger); color: var(--prizm-color-accent-fg); }
    .btn-danger:hover { background: color-mix(in srgb, var(--prizm-color-danger) 88%, var(--prizm-color-fg)); }

    .workspace { display: grid; grid-template-columns: minmax(0,1fr); overflow: hidden; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-md); background: var(--prizm-color-surface); box-shadow: var(--prizm-shadow-sm); }
    .flow-nav { padding: 18px 0; border-right: 1px solid var(--prizm-color-border); background: var(--prizm-color-bg-subtle); }
    .flow-nav h2 { margin: 0; padding: 0 18px 12px; font-size: 13px; }
    .flow-nav p { margin: -6px 0 12px; padding: 0 18px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .flow-complete { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 9px; margin: 0 14px 12px; padding: 10px; border: 1px solid color-mix(in srgb,var(--prizm-color-success) 32%,var(--prizm-color-border)); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-success-bg); }
    .flow-complete .flow-icon { border-color: var(--prizm-color-success); color: var(--prizm-color-success); }
    .flow-complete strong, .flow-complete small { display: block; }
    .flow-complete strong { color: var(--prizm-color-success); font-size: 12px; }
    .flow-complete small { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .flow-filter { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 12px 14px; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; cursor: pointer; }
    .flow-filter + .flow-filter { border-top: 1px solid var(--prizm-color-border); }
    .flow-filter:hover { background: var(--prizm-color-bg-muted); }
    .flow-filter[aria-pressed="true"] { border-left-color: var(--prizm-color-accent); background: color-mix(in srgb, var(--prizm-color-accent) 7%, var(--prizm-color-surface)); }
    .flow-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); color: var(--prizm-color-fg-muted); }
    .flow-icon svg { width: 15px; height: 15px; }
    .flow-filter[aria-pressed="true"] .flow-icon { border-color: var(--prizm-color-accent); color: var(--prizm-color-accent); }
    .flow-filter strong, .flow-filter small { display: block; }
    .flow-filter strong { font-size: 12px; }
    .flow-filter small { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .flow-filter b { min-width: 22px; color: var(--prizm-color-fg-muted); font-size: 12px; text-align: right; }
    .flow-rule { margin: 16px 14px 0; padding: 12px; border-left: 3px solid var(--prizm-color-info); background: var(--prizm-color-info-bg); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .flow-rule strong { display: block; margin-bottom: 3px; color: var(--prizm-color-fg); font-size: 12px; }

    .work-area { min-width: 0; }
    .work-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--prizm-color-border); }
    .work-head h2 { margin: 0; font-size: 15px; }
    .work-head p { margin: 3px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .work-head-actions { display: flex; align-items: center; gap: 14px; }
    .record-count { color: var(--prizm-color-fg-muted); font-size: 12px; white-space: nowrap; }
    .view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-subtle); }
    .view-option { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: calc(var(--prizm-radius-sm) - 2px); background: transparent; color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
    .view-option svg { width: 14px; height: 14px; }
    .view-option[aria-pressed="true"] { background: var(--prizm-color-surface); color: var(--prizm-color-accent); box-shadow: var(--prizm-shadow-sm); }
    .batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid color-mix(in srgb,var(--prizm-color-accent) 28%,var(--prizm-color-border)); background: color-mix(in srgb,var(--prizm-color-accent) 6%,var(--prizm-color-surface)); }
    .batch-bar-copy strong, .batch-bar-copy span { display: block; }
    .batch-bar-copy strong { color: var(--prizm-color-accent); font-size: 12px; }
    .batch-bar-copy span { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .batch-actions { display: flex; gap: 8px; }
    .batch-bar.is-empty { background: var(--prizm-color-surface); border-bottom-color: var(--prizm-color-border); }
    .batch-bar.is-empty .batch-bar-copy strong { color: var(--prizm-color-fg); }
    .record-layout { display: grid; grid-template-columns: minmax(650px,2.25fr) minmax(330px,.95fr); min-height: 560px; }
    .record-layout.list-only { grid-template-columns: minmax(0,1fr); }
    .record-layout.list-only .record-list { border-right: 0; }
    .record-layout.list-only .task-panel { display: none; }
    .record-layout.list-only .record-table-head, .record-layout.list-only .record-row { grid-template-columns: 28px minmax(180px,1fr) minmax(150px,.8fr) minmax(250px,1.35fr) minmax(210px,1fr); }
    .record-layout.list-only .record-interview-head, .record-layout.list-only .record-interview-detail { display: block; }
    .record-list { min-width: 0; border-right: 1px solid var(--prizm-color-border); }
    .record-table-head, .record-row { display: grid; grid-template-columns: 28px minmax(170px,1.25fr) minmax(140px,.85fr) minmax(180px,1.2fr); align-items: center; gap: 12px; padding: 0 16px; }
    .record-table-head { min-height: 34px; background: var(--prizm-color-bg-subtle); color: var(--prizm-color-fg-subtle); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .record-row { min-height: 78px; border-top: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); cursor: pointer; }
    .record-row:hover { background: color-mix(in srgb, var(--prizm-color-bg-muted) 50%, var(--prizm-color-surface)); }
    .record-row.selected, .record-row:has([data-select-record]:checked) { box-shadow: none; background: var(--prizm-color-bg-muted); }
    .record-check { display: grid; place-items: center; }
    .record-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--prizm-color-accent); }
    .record-check input:disabled { opacity: .32; cursor: not-allowed; }
    .record-interview-head, .record-interview-detail { display: none; }
    .record-interview-detail { min-width: 0; }
    .record-interview-detail strong, .record-interview-detail small { display: block; }
    .record-interview-detail strong { color: var(--prizm-color-fg); }
    .record-interview-detail small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .record-row strong, .record-row small { display: block; }
    .record-row strong { font-size: 12px; }
    .record-row small { margin-top: 3px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .status { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-muted); color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .status.warning { background: var(--prizm-color-warning-bg); color: var(--prizm-color-warning); }
    .status.info { background: var(--prizm-color-info-bg); color: var(--prizm-color-info); }
    .status.success { background: var(--prizm-color-success-bg); color: var(--prizm-color-success); }
    .next-action { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .record-layout.list-only .next-action strong { color: var(--prizm-color-fg); }
    .record-layout.list-only .next-action small { color: var(--prizm-color-accent); font-weight: 700; }
    .due { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .due-date, .due-time { display: block; white-space: nowrap; }
    .due-time { margin-top: 3px; color: var(--prizm-color-fg-subtle); }
    .due.overdue { color: var(--prizm-color-danger); font-weight: 700; }
    .due.overdue .due-time { color: inherit; }
    .record-empty { display: grid; min-height: 300px; place-items: center; padding: 32px; text-align: center; color: var(--prizm-color-fg-muted); }
    .record-empty svg { width: 28px; height: 28px; margin: 0 auto 10px; }
    .record-empty strong { display: block; color: var(--prizm-color-fg); }
    .record-empty p { max-width: 300px; margin: 5px auto 0; font-size: 12px; }

    .task-panel { min-width: 0; background: var(--prizm-color-surface); }
    .task-panel-inner { position: sticky; top: calc(var(--header-h) + 16px); }
    .candidate-head { padding: 18px; border-bottom: 1px solid var(--prizm-color-border); }
    .candidate-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .candidate-title h3 { margin: 0; font-size: 17px; }
    .candidate-title p { margin: 3px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .candidate-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
    .candidate-meta div { padding: 9px 10px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); }
    .candidate-meta span, .candidate-meta strong { display: block; }
    .candidate-meta span { color: var(--prizm-color-fg-subtle); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .candidate-meta strong { margin-top: 3px; font-size: 12px; }
    .record-person-panel .candidate-head { padding: 22px 22px 12px; border-bottom: 0; }
    .record-person-panel .candidate-title h3 { font-size: 16px; }
    .record-person-panel .candidate-title p { margin-top: 5px; font-size: 12px; }
    .record-person-panel .candidate-meta { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
    .record-person-panel .candidate-meta div { min-height: 58px; padding: 11px 12px; }
    .record-person-panel .candidate-meta span { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
    .record-person-panel .candidate-meta strong { margin-top: 4px; font-size: 12px; line-height: 1.45; }
    .record-person-body { padding: 10px 22px 22px; }
    .record-person-body h4 { margin: 0 0 12px; font-size: 12px; }
    .document-list { display: grid; gap: 8px; }
    .document-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); text-align: left; cursor: pointer; }
    .document-row:hover { border-color: var(--prizm-color-border-strong); background: var(--prizm-color-bg-muted); }
    .document-row svg { width: 23px; height: 23px; color: var(--prizm-color-accent); }
    .document-row strong, .document-row small { display: block; }
    .document-row strong { font-size: 12px; font-weight: 600; }
    .document-row small { max-width: 190px; margin-top: 2px; overflow: hidden; color: var(--prizm-color-fg-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .document-download { color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .request-history { margin-bottom: 18px; }
    .request-history h4 { margin-bottom: 10px; }
    .history-list { display: grid; gap: 8px; }
    .history-item { padding: 11px 12px; border: 1px solid var(--prizm-color-border); border-left: 3px solid var(--prizm-color-accent); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); }
    .history-item.applicant-reply { border-left-color: var(--prizm-color-warning); background: color-mix(in srgb,var(--prizm-color-warning-bg) 45%,var(--prizm-color-surface)); }
    .history-item.current { border-left-color: var(--prizm-color-success); background: color-mix(in srgb,var(--prizm-color-success-bg) 45%,var(--prizm-color-surface)); }
    .history-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .history-item-head strong { font-size: 12px; }
    .history-item-head span { color: var(--prizm-color-fg-subtle); font-size: 12px; }
    .history-item p { margin: 6px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; line-height: 1.5; }
    .history-slot-detail { margin-top: 6px; color: var(--prizm-color-fg-muted); font-size: 12px; line-height: 1.5; }
    .history-slot-detail span { display: block; margin-bottom: 2px; }
    .history-slot-detail ul { margin: 0; padding-left: 18px; }
    .history-slot-detail li + li { margin-top: 2px; }
    .history-toggle { width: 100%; min-height: 34px; margin-top: 8px; padding: 0 11px; border: 1px solid var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
    .history-toggle:hover { background: var(--prizm-color-bg-muted); }
    .history-toggle:focus-visible { outline: 2px solid var(--prizm-color-focus); outline-offset: 2px; }
    .history-drawer-backdrop { z-index: 62; }
    .history-drawer { z-index: 63; }
    .history-drawer-body { min-height: 0; flex: 1; overflow-y: auto; padding: 18px; }
    .history-drawer-intro { margin-bottom: 16px; }
    .history-drawer-intro strong, .history-drawer-intro span { display: block; }
    .history-drawer-intro strong { font-size: 18px; }
    .history-drawer-intro span { margin-top: 4px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .meeting-link { width: fit-content; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--prizm-color-accent); font-size: 12px; font-weight: 700; text-decoration: none; }
    .meeting-link:hover { text-decoration: underline; }
    .meeting-link:focus-visible { outline: 2px solid var(--prizm-color-focus); outline-offset: 3px; }
    .record-person-action { display: flex; gap: 12px; margin-top: 18px; }
    .record-person-action .btn { min-width: 0; min-height: 38px; flex: 1; justify-content: center; }
    .task-body { padding: 18px; }
    .task-body h4 { margin: 0 0 6px; font-size: 13px; }
    .task-body > p { margin: 0 0 14px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .detail-list { display: grid; gap: 8px; margin-bottom: 16px; }
    .detail-item { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--prizm-color-border); font-size: 12px; }
    .detail-item:last-child { border-bottom: 0; }
    .detail-item span { color: var(--prizm-color-fg-muted); }
    .detail-item strong { text-align: right; }
    .panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .notes-preview { margin: 12px 0 16px; padding: 12px; border-left: 3px solid var(--prizm-color-warning); background: var(--prizm-color-warning-bg); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .outcome-summary { display: grid; gap: 8px; padding: 12px; border: 1px solid color-mix(in srgb,var(--prizm-color-success) 35%,var(--prizm-color-border)); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-success-bg); }
    .outcome-summary strong { color: var(--prizm-color-success); font-size: 12px; }
    .outcome-summary span { color: var(--prizm-color-fg-muted); font-size: 12px; }

    .kanban-view { min-height: 560px; background: var(--prizm-color-bg-subtle); }
    .kanban-scroll { min-width: 0; overflow-x: auto; }
    .kanban-board { min-width: 1100px; display: grid; grid-template-columns: repeat(5,minmax(205px,1fr)); gap: 12px; padding: 14px; }
    .kanban-column { min-width: 0; padding: 10px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-muted); }
    .kanban-column-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 48px; padding: 2px 2px 10px; }
    .kanban-column-head strong, .kanban-column-head small { display: block; }
    .kanban-column-head strong { font-size: 12px; }
    .kanban-column-head small { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .kanban-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 11px; background: var(--prizm-color-surface); color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .kanban-cards { display: grid; gap: 8px; align-content: start; }
    .kanban-card { width: 100%; display: block; padding: 11px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); text-align: left; box-shadow: var(--prizm-shadow-sm); cursor: pointer; }
    .kanban-card:hover { border-color: var(--prizm-color-border-strong); background: color-mix(in srgb,var(--prizm-color-accent) 3%,var(--prizm-color-surface)); }
    .kanban-card:active { transform: translateY(1px); }
    .kanban-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .kanban-card-head strong { font-size: 12px; }
    .kanban-card-school { display: block; margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .kanban-card-next { min-height: 36px; margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--prizm-color-border); color: var(--prizm-color-fg-muted); font-size: 12px; line-height: 1.4; }
    .kanban-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--prizm-color-fg-subtle); font-size: 12px; }
    .kanban-card-foot .overdue { color: var(--prizm-color-danger); font-weight: 700; }
    .kanban-open { color: var(--prizm-color-accent); font-weight: 700; }
    .kanban-empty { padding: 22px 8px; color: var(--prizm-color-fg-subtle); font-size: 12px; text-align: center; }
    .kanban-drawer-backdrop { position: fixed; z-index: 60; inset: var(--header-h) 0 0; border: 0; background: rgb(10 22 40 / .28); cursor: default; }
    .kanban-drawer { position: fixed; z-index: 61; top: var(--header-h); right: 0; bottom: 0; width: min(480px,100vw); display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--prizm-color-border); background: var(--prizm-color-bg-subtle); box-shadow: -16px 0 40px rgb(10 22 40 / .18); }
    .kanban-drawer-head { position: sticky; z-index: 2; top: 0; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); }
    .kanban-drawer-head strong { font-size: 12px; }
    .kanban-drawer #kanbanTaskPanel { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow-y: auto; }
    .kanban-drawer .candidate-head, .kanban-drawer .task-body, .kanban-drawer .record-person-body { background: var(--prizm-color-bg-subtle); }
    .kanban-drawer .record-person-body { flex: 1; }
    .kanban-drawer .task-body { display: flex; flex: 1; flex-direction: column; }
    .kanban-drawer-actions { position: sticky; z-index: 3; bottom: 0; flex: 0 0 auto; display: flex; gap: 8px; padding: 14px 18px max(22px,env(safe-area-inset-bottom)); border-top: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); box-shadow: 0 -6px 16px rgb(10 22 40 / .06); }
    .kanban-drawer-actions:empty { display: none; }
    .kanban-drawer-actions .btn { flex: 1; }
    .kanban-drawer .inline-schedule-form { min-height: 100%; display: flex; flex-direction: column; }
    .kanban-drawer .inline-schedule-form .dialog-head { flex: 0 0 auto; }
    .kanban-drawer .inline-schedule-form .dialog-head h2 { display: none; }
    .kanban-drawer .inline-schedule-form .dialog-body { min-width: 0; min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; }
    .kanban-drawer .inline-schedule-form .dialog-foot { display: none; }
    .kanban-drawer .inline-schedule-form .method-grid { grid-template-columns: 1fr; }
    .kanban-drawer .inline-schedule-form .availability-picker,
    .kanban-drawer .inline-schedule-form .schedule-fields,
    .kanban-drawer .inline-schedule-form .field { min-width: 0; max-width: 100%; }
    .kanban-drawer .inline-schedule-form .availability-picker-head { display: grid; grid-template-columns: minmax(0,1fr); }
    .kanban-drawer .inline-schedule-form .slot-week-picker,
    .kanban-drawer .inline-schedule-form .duration-field { width: 100%; min-width: 0; }
    .kanban-drawer .inline-schedule-form .slot-date,
    .kanban-drawer .inline-schedule-form .slot-time { min-width: 0; }
    body.drawer-open { overflow: hidden; }

    .calendar-view { min-height: 560px; background: var(--prizm-color-bg-subtle); }
    .calendar-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 18px; border-bottom: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); }
    .calendar-toolbar strong, .calendar-toolbar small { display: block; }
    .calendar-toolbar strong { font-size: 12px; }
    .calendar-toolbar small { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .calendar-toolbar-main { display: flex; align-items: end; gap: 14px; }
    .calendar-week-picker { width: 230px; display: grid; gap: 5px; }
    .calendar-week-picker > span:first-child { color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .calendar-legend { display: flex; align-items: center; gap: 14px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
    .calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--prizm-color-info); }
    .calendar-legend .tentative { background: var(--prizm-color-warning); }
    .calendar-legend .available { border: 1px dashed var(--prizm-color-accent); background: transparent; }
    .calendar-planner { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 506px; }
    .shortlist-panel { padding: 14px; border-right: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); }
    .shortlist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .shortlist-head h3 { margin: 0; font-size: 12px; }
    .shortlist-head p { margin: 3px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .shortlist-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 11px; background: var(--prizm-color-bg-muted); color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .shortlist-list { display: grid; gap: 8px; margin-top: 12px; }
    .shortlist-candidate { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); text-align: left; cursor: grab; }
    .shortlist-candidate:hover { border-color: var(--prizm-color-border-strong); background: var(--prizm-color-bg-muted); }
    .shortlist-candidate[aria-pressed="true"] { border-color: var(--prizm-color-accent); box-shadow: inset 0 0 0 1px var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 6%,var(--prizm-color-surface)); }
    .shortlist-candidate.dragging { opacity: .56; cursor: grabbing; }
    .candidate-initials { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--prizm-color-info-bg); color: var(--prizm-color-info); font-size: 12px; font-weight: 700; }
    .shortlist-candidate strong, .shortlist-candidate small { display: block; }
    .shortlist-candidate strong { font-size: 12px; }
    .shortlist-candidate small { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .shortlist-candidate > span:last-child { grid-column: 1 / -1; display: block; padding-top: 7px; border-top: 1px solid var(--prizm-color-border); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .shortlist-empty { padding: 18px 10px; border: 1px dashed var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); color: var(--prizm-color-fg-muted); font-size: 12px; text-align: center; }
    .calendar-selection { margin-top: 12px; padding: 9px 10px; border-left: 3px solid var(--prizm-color-accent); background: var(--prizm-color-info-bg); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .calendar-scroll { min-width: 0; overflow-x: auto; }
    .calendar-grid { min-width: 860px; display: grid; grid-template-columns: repeat(5,minmax(160px,1fr)); }
    .calendar-day { min-height: 500px; border-right: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); }
    .calendar-day:last-child { border-right: 0; }
    .calendar-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 12px; border-bottom: 1px solid var(--prizm-color-border); }
    .calendar-day-head strong { font-size: 12px; }
    .calendar-day-head span { color: var(--prizm-color-fg-subtle); font-size: 12px; }
    .calendar-events { display: grid; gap: 8px; align-content: start; min-height: 454px; padding: 10px; }
    .calendar-event { width: 100%; display: block; padding: 10px; border: 1px solid color-mix(in srgb,var(--prizm-color-info) 32%,var(--prizm-color-border)); border-left: 3px solid var(--prizm-color-info); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-info-bg); color: var(--prizm-color-fg); text-align: left; cursor: pointer; }
    .calendar-event.duration-30 { min-height: 82px; }
    .calendar-event.duration-60 { min-height: 116px; }
    .calendar-event.tentative { border-color: color-mix(in srgb,var(--prizm-color-warning) 32%,var(--prizm-color-border)); border-left-color: var(--prizm-color-warning); background: var(--prizm-color-warning-bg); }
    .calendar-event time, .calendar-event strong, .calendar-event span { display: block; }
    .calendar-event time { color: var(--prizm-color-fg-muted); font-size: 12px; font-weight: 700; }
    .calendar-event strong { margin-top: 4px; font-size: 12px; }
    .calendar-event span { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .calendar-slot { width: 100%; min-height: 54px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 8px 9px; border: 1px dashed var(--prizm-color-border-strong); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg-muted); text-align: left; cursor: pointer; }
    .calendar-slot:hover, .calendar-slot.drop-ready { border-color: var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 5%,var(--prizm-color-surface)); color: var(--prizm-color-accent); }
    .calendar-slot.drop-target { border-style: solid; border-color: var(--prizm-color-accent); box-shadow: inset 0 0 0 1px var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 9%,var(--prizm-color-surface)); }
    .calendar-slot time { font-size: 12px; font-weight: 700; }
    .calendar-slot span { font-size: 12px; text-align: right; }
    .calendar-slot small { grid-column: 1 / -1; color: var(--prizm-color-fg-subtle); font-size: 12px; }
    .calendar-empty { padding: 18px 10px; color: var(--prizm-color-fg-subtle); font-size: 12px; text-align: center; }
    .calendar-confirm-summary { display: grid; gap: 10px; }
    .calendar-confirm-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--prizm-color-border); }
    .calendar-confirm-row span { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .calendar-confirm-row strong { font-size: 12px; }

    dialog { width: min(94vw,640px); max-height: 90vh; padding: 0; overflow: auto; color: var(--prizm-color-fg); background: var(--prizm-color-surface-elevated); border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-lg); box-shadow: 0 18px 48px rgb(10 22 40 / .22); }
    dialog::backdrop { background: rgb(10 22 40 / .5); }
    dialog.dialog-sheet { position: fixed; z-index: 61; inset: var(--header-h) 0 0 auto; width: min(480px,100vw); height: calc(100dvh - var(--header-h)); max-height: none; margin: 0; overflow: hidden; border-radius: 0; border-width: 0 0 0 1px; box-shadow: -16px 0 40px rgb(10 22 40 / .18); }
    dialog.dialog-sheet form { height: 100%; display: flex; flex-direction: column; }
    dialog.dialog-sheet .dialog-head, dialog.dialog-sheet .dialog-foot { min-width: 0; max-width: 100%; flex: 0 0 auto; }
    dialog.dialog-sheet .dialog-body { min-width: 0; max-width: 100%; min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; }
    dialog.dialog-sheet .method-grid { grid-template-columns: 1fr; }
    dialog.dialog-sheet .method-option { min-height: 0; }
    dialog.dialog-sheet .availability-picker, dialog.dialog-sheet .schedule-fields, dialog.dialog-sheet .field { min-width: 0; max-width: 100%; }
    dialog.dialog-sheet .availability-picker-head { display: grid; grid-template-columns: minmax(0,1fr); }
    dialog.dialog-sheet .slot-week-picker, dialog.dialog-sheet .duration-field { width: 100%; min-width: 0; }
    dialog.dialog-sheet .slot-date, dialog.dialog-sheet .slot-time { min-width: 0; }
    dialog.dialog-sheet .slot-date span, dialog.dialog-sheet .shared-slot-item span { min-width: 0; overflow-wrap: anywhere; }
    .dialog-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--prizm-color-border); }
    .dialog-head h2 { margin: 0; font-size: 18px; }
    .dialog-head p { margin: 5px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .dialog-body { padding: 18px 22px 22px; }
    .dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: var(--prizm-color-bg-muted); border-top: 1px solid var(--prizm-color-border); }
    .method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
    .method-option { position: relative; display: block; min-height: 112px; padding: 13px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); cursor: pointer; }
    .method-option:has(input:checked) { border-color: var(--prizm-color-accent); box-shadow: inset 0 0 0 1px var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 5%,var(--prizm-color-surface)); }
    .method-option input { position: absolute; right: 12px; top: 12px; }
    .method-option strong, .method-option small { display: block; padding-right: 22px; }
    .method-option strong { font-size: 12px; }
    .method-option small { margin-top: 6px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .schedule-fields { display: grid; gap: 12px; margin-top: 16px; }
    .field { display: grid; gap: 6px; }
    .field label, .field legend { color: var(--prizm-color-fg); font-size: 12px; font-weight: 700; }
    .field input, .field select, .field textarea { width: 100%; min-height: 38px; padding: 8px 10px; color: var(--prizm-color-fg); background: var(--prizm-color-surface); border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); outline: none; }
    .field textarea { min-height: 112px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--prizm-color-accent); box-shadow: 0 0 0 2px color-mix(in srgb,var(--prizm-color-accent) 18%,transparent); }
    .field small { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .slot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .availability-picker { padding: 12px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-subtle); }
    .availability-picker-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
    .availability-picker-head strong { font-size: 12px; }
    .duration-field { width: 196px; display: grid; gap: 6px; }
    .duration-field span { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .duration-field select { min-height: 36px; }
    .slot-week-picker { display: grid; gap: 6px; min-width: 230px; }
    .slot-week-picker > span { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .slot-week-controls { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; }
    .slot-week-controls button,.slot-week-controls input { min-height: 36px; border: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); color: var(--prizm-color-fg); }
    .slot-week-controls button { padding: 0; cursor: pointer; }
    .slot-week-controls button:first-child { border-radius: var(--prizm-radius-sm) 0 0 var(--prizm-radius-sm); }
    .slot-week-controls button:last-child { border-radius: 0 var(--prizm-radius-sm) var(--prizm-radius-sm) 0; }
    .slot-week-controls input { width: 100%; padding: 6px 8px; border-width: 1px 0; border-radius: 0; }
    .slot-week-range { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .slot-date-heading { display: block; margin-top: 14px; font-size: 12px; }
    .slot-date-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
    .slot-date { min-height: 48px; padding: 6px 4px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); cursor: pointer; }
    .slot-date strong,.slot-date span { display: block; }
    .slot-date strong { font-size: 12px; }
    .slot-date span { margin-top: 2px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .slot-date[aria-pressed="true"] { border-color: var(--prizm-color-accent); box-shadow: inset 0 0 0 1px var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 6%,var(--prizm-color-surface)); color: var(--prizm-color-accent); }
    .slot-time-heading { display: block; margin-top: 14px; font-size: 12px; }
    .slot-time-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
    .slot-time { min-height: 48px; display: grid; place-items: center; gap: 1px; padding: 6px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); color: var(--prizm-color-fg); cursor: pointer; }
    .slot-time span { font-size: 12px; font-weight: 700; }
    .slot-time small { font-size: 12px; }
    .slot-time:hover:not(:disabled) { border-color: var(--prizm-color-accent); background: color-mix(in srgb,var(--prizm-color-accent) 4%,var(--prizm-color-surface)); }
    .slot-time[aria-pressed="true"] { border-color: var(--prizm-color-accent); background: var(--prizm-color-accent); color: var(--prizm-color-accent-fg); }
    .slot-time[aria-pressed="true"] small { color: inherit; }
    .slot-time:disabled { background: var(--prizm-color-bg-muted); color: var(--prizm-color-fg-subtle); cursor: not-allowed; opacity: .72; }
    .slot-time:disabled small { color: inherit; }
    .shared-slot-summary { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--prizm-color-border); }
    .shared-slot-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .shared-slot-summary-head strong { font-size: 12px; }
    .shared-slot-count { color: var(--prizm-color-fg-muted); font-size: 12px; }
    .shared-slot-list { display: grid; gap: 6px; margin-top: 8px; }
    .shared-slot-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-surface); }
    .shared-slot-item span { font-size: 12px; }
    .shared-slot-remove { min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: var(--prizm-radius-sm); background: transparent; color: var(--prizm-color-fg-muted); cursor: pointer; }
    .shared-slot-remove:hover { background: var(--prizm-color-bg-muted); color: var(--prizm-color-danger); }
    .shared-slot-empty { margin: 8px 0 0; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .skip-note { padding: 12px; border-left: 3px solid var(--prizm-color-warning); background: var(--prizm-color-warning-bg); color: var(--prizm-color-fg-muted); font-size: 12px; }
    .edit-schedule-note { margin-bottom: 16px; padding: 11px 12px; border-left: 3px solid var(--prizm-color-info); background: var(--prizm-color-info-bg); }
    .edit-schedule-note strong, .edit-schedule-note span { display: block; }
    .edit-schedule-note strong { color: var(--prizm-color-info); font-size: 12px; }
    .edit-schedule-note span { margin-top: 3px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .profile-block { padding: 13px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-subtle); }
    .profile-block h3 { margin: 0 0 7px; font-size: 12px; }
    .profile-block p { margin: 0; color: var(--prizm-color-fg-muted); font-size: 12px; }

    .toast-region { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; gap: 8px; }
    .toast { width: min(360px,calc(100vw - 40px)); padding: 13px 15px; color: var(--prizm-color-fg); background: var(--prizm-color-surface-elevated); border: 1px solid var(--prizm-color-border); border-left: 3px solid var(--prizm-color-success); border-radius: var(--prizm-radius-md); box-shadow: var(--prizm-shadow-md); }
    .toast strong, .toast span { display: block; }
    .toast span { margin-top: 3px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .icon-btn:focus-visible, .nav-item:focus-visible, .btn:focus-visible, .project-group:focus-visible, .project-select-field select:focus-visible, .flow-filter:focus-visible, .record-row:focus-visible, .view-option:focus-visible, .kanban-card:focus-visible, .calendar-event:focus-visible, .shortlist-candidate:focus-visible, .calendar-slot:focus-visible { outline: 2px solid var(--prizm-color-focus); outline-offset: 2px; }

    @media (max-width: 1180px) {
      .record-layout { grid-template-columns: minmax(430px,1.35fr) minmax(280px,.85fr); }
      .record-table-head, .record-row { grid-template-columns: 28px minmax(140px,1fr) minmax(108px,.72fr); }
      .record-table-head > :nth-child(4), .record-row > :nth-child(4) { display: none; }
    }
    @media (max-width: 900px) {
      .topbar { grid-template-columns: 1fr auto; gap: 12px; }
      .global-search { display: none; }
      .mobile-menu { display: inline-grid; }
      .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 28px rgb(10 22 40 / .18); }
      body.nav-open .sidebar { transform: translateX(0); }
      .app-main { padding-left: 18px; padding-right: 18px; }
      .workspace { grid-template-columns: minmax(0,1fr); }
      .calendar-planner { grid-template-columns: 1fr; }
      .shortlist-panel { border-right: 0; border-bottom: 1px solid var(--prizm-color-border); }
      .shortlist-list { display: flex; overflow-x: auto; padding-bottom: 3px; }
      .shortlist-candidate { min-width: 210px; }
    }
    @media (max-width: 700px) {
      .profile-copy { display: none; }
      .profile { gap: 0; padding-left: 0; border-left: 0; }
      .brand-name { max-width: 170px; }
      .app-main { padding: calc(var(--header-h) + 16px) 12px 28px; }
      .project-hero { grid-template-columns: 1fr; gap: 14px; }
      .project-hero-actions { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
      .project-hero-actions .btn { justify-self: end; }
      .project-browser { grid-template-columns: 1fr; gap: 12px; }
      .project-browser-controls { width: 100%; justify-self: stretch; }
      .project-groups { width: 100%; }
      .project-group { flex: 1; justify-content: center; }
      .workspace { grid-template-columns: 1fr; }
      .record-layout { grid-template-columns: 1fr; }
      .record-list { border-right: 0; }
      .task-panel { border-top: 1px solid var(--prizm-color-border); }
      .task-panel-inner { position: static; }
      .flow-nav { border-right: 0; border-bottom: 1px solid var(--prizm-color-border); }
      .flow-nav p, .flow-rule { display: none; }
      .flow-complete { margin-bottom: 10px; }
      .flow-nav h2 { padding-bottom: 10px; }
      .flow-filters { display: flex; overflow-x: auto; border-top: 1px solid var(--prizm-color-border); }
      .flow-filter { min-width: 175px; border-top: 0 !important; border-left: 1px solid var(--prizm-color-border); border-bottom: 3px solid transparent; }
      .flow-filter[aria-pressed="true"] { border-left-color: var(--prizm-color-border); border-bottom-color: var(--prizm-color-accent); }
      .record-table-head { display: none; }
      .record-row { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px; }
      .record-row > :nth-child(4) { display: block; }
      .record-row .record-check { grid-row: 1; grid-column: 2; justify-self: end; }
      .record-row > span:nth-child(4) { grid-column: 1 / -1; }
      .record-row > span:nth-child(4)::before { content: "Next action: "; color: var(--prizm-color-fg-subtle); font-weight: 700; }
      .batch-bar { align-items: stretch; flex-direction: column; }
      .batch-actions .btn { flex: 1; }
      .work-head { align-items: flex-start; flex-direction: column; }
      .work-head-actions { width: 100%; justify-content: space-between; }
      .calendar-toolbar { align-items: stretch; flex-direction: column; padding: 12px 14px; }
      .calendar-toolbar-main { align-items: stretch; flex-direction: column; }
      .calendar-week-picker { width: 100%; }
      .calendar-legend { flex-wrap: wrap; }
      .calendar-grid { min-width: 0; display: block; }
      .calendar-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--prizm-color-border); }
      .calendar-events { min-height: 0; background-image: none; }
      .method-grid, .profile-grid, .slot-grid { grid-template-columns: 1fr; }
      .slot-date-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .slot-time-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .dialog-foot { align-items: stretch; flex-direction: column-reverse; }
      .dialog-foot .btn { width: 100%; }
      .kanban-drawer { width: 100vw; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
    #documentPreviewDialog { width: min(760px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
    .record-person-action { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .record-person-action > p { flex-basis: 100%; }
    .record-person-action > .btn { white-space: normal; }
    #profileDialog .profile-grid { grid-template-columns: 1fr; }
    #profileDialog .dialog-body { overflow-wrap: anywhere; }
    body:has(#profileDialog[open]) { overflow: hidden; }
    .document-preview-paper { margin-top: 16px; padding: 28px; border: 1px solid var(--prizm-color-border); background: var(--prizm-color-surface); }
    .document-preview-paper h3 { margin-top: 24px; }
    .document-preview-paper table { width: 100%; margin-top: 20px; border-collapse: collapse; }
    .document-preview-paper th, .document-preview-paper td { padding: 12px; text-align: left; border-bottom: 1px solid var(--prizm-color-border); }
    @media (min-width: 761px) and (max-width: 1280px) {
      .record-layout:not(.list-only) .record-table-head > :nth-child(5) { display: none; }
      .record-layout:not(.list-only) .record-row > :nth-child(5) { grid-column: 2 / -1; padding-bottom: 12px; }
    }
    body[data-scroll-layout="v2"] #recordRows { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
    @media (min-width: 761px) {
      body[data-scroll-layout="v2"] .app-main { height: 100dvh; min-height: 580px; padding-bottom: 24px; overflow: hidden; }
      body[data-scroll-layout="v2"] .page { height: 100%; display: flex; flex-direction: column; }
      body[data-scroll-layout="v2"] .breadcrumb, body[data-scroll-layout="v2"] .project-hero { flex-shrink: 0; }
      body[data-scroll-layout="v2"] .workspace { flex: 1; min-height: 0; }
      body[data-scroll-layout="v2"] .work-area { min-height: 0; display: flex; flex-direction: column; }
      body[data-scroll-layout="v2"] .work-head, body[data-scroll-layout="v2"] .batch-bar { flex-shrink: 0; }
      body[data-scroll-layout="v2"] .record-layout { flex: 1; min-height: 0; overflow: hidden; }
      body[data-scroll-layout="v2"] .record-list { min-height: 0; display: flex; flex-direction: column; }
      body[data-scroll-layout="v2"] .record-table-head { flex-shrink: 0; }
      body[data-scroll-layout="v2"] #recordRows { flex: 1; min-height: 0; }
      body[data-scroll-layout="v2"] .task-panel { overflow-y: auto; overscroll-behavior-y: contain; }
      body[data-scroll-layout="v2"] .task-panel-inner { position: static; }
    }
    @media (max-width: 760px) {
      body[data-scroll-layout="v2"] #recordRows { max-height: 50dvh; }
    }
    .scroll-layout-note { font-size: 10px; font-weight: 400; color: var(--prizm-color-fg-muted); white-space: nowrap; }
  .status-sort{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;padding:4px 0;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.status-sort:hover{color:var(--prizm-color-accent)}.status-sort:focus-visible{outline:2px solid var(--prizm-color-focus);outline-offset:3px}

    .schedule-presentation-control { display: flex; align-items: center; gap: 8px; color: var(--prizm-color-fg-muted); font-size: 12px; }
    .schedule-presentation-control select { padding: 7px 10px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); color: var(--prizm-color-fg); background: var(--prizm-color-surface); font: inherit; }
    #scheduleDialog { overflow: hidden; }
    #scheduleDialog:not(.dialog-sheet) { width: min(1040px,94vw); height: min(820px,90dvh); max-height: 90dvh; }
    #scheduleForm { height: 100%; display: flex; flex-direction: column; }
    #scheduleForm > .dialog-head, #scheduleForm > .dialog-foot { flex-shrink: 0; }
    #scheduleForm > .dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    .schedule-applicants { margin-bottom: 18px; }
    .schedule-applicants > strong { display: block; margin-bottom: 8px; font-size: 13px; }
    #scheduleApplicantList { display: flex; flex-wrap: wrap; gap: 6px; }
    .schedule-applicant { padding: 5px 9px; border: 1px solid var(--prizm-color-border); border-radius: var(--prizm-radius-sm); background: var(--prizm-color-bg-muted); font-size: 12px; }
    #scheduleSubmit:disabled { opacity: .5; cursor: not-allowed; }
    #scheduleDialog:not(.dialog-sheet) .shared-slot-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    @media (max-width: 600px) {
      #scheduleDialog:not(.dialog-sheet) .shared-slot-list { grid-template-columns: 1fr; }
      .schedule-presentation-control { flex-wrap: wrap; }
    }
