:root {
  color-scheme: light only;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933; background: #f4f6f8; font-synthesis: none;
  --ink: #1f2933; --muted: #6f7b87; --line: #dfe4e8; --soft: #f7f8f9;
  --red: #e30a1c; --red-dark: #b20d1c; --green: #176b43; --yellow: #a86300;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: #f4f6f8; font-size: 13px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
small { display: block; color: var(--muted); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #4679ae; outline-offset: 2px; }
.layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: #fff; border-right: 1px solid var(--line); padding: 24px 14px 14px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 32px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand strong { display: block; font-size: 14px; line-height: 17px; }
.brand small { font-size: 12px; margin-top: 3px; }
.nav-label { color: #919ba4; font-size: 10px; letter-spacing: .1em; font-weight: 700; padding: 0 12px; margin: 0 0 8px; }
.nav-label.second { margin-top: 26px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 4px; border-radius: 4px; font-size: 13px; font-weight: 550; color: #596571; }
.nav-link:hover { background: #f6f7f8; text-decoration: none; }
.nav-link.active { background: #fff1f2; color: var(--red-dark); }
.nav-link svg { width: 17px; height: 17px; }
.nav-link b { margin-left: auto; font-size: 10px; background: #edf0f2; color: #596571; padding: 2px 6px; border-radius: 3px; }
.user-menu { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 15px 4px 2px; background: #fff; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink); }
.user-menu>span:nth-child(2) { flex: 1; }
.user-menu strong { font-size: 12px; }
.user-menu small { font-size: 10px; margin-top: 4px; }
.avatar { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #e7eaed; color: #56616b; border-radius: 50%; font-size: 10px; font-weight: 650; flex-shrink: 0; }
.avatar.small { width: 25px; height: 25px; font-size: 9px; }
.avatar.tiny { width: 21px; height: 21px; font-size: 8px; }
.avatar-stack { display: flex; gap: 4px; }
.workarea { margin-left: 232px; min-width: 0; }
.topbar { height: 58px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 22px; padding: 0 28px; }
.breadcrumb { color: #596571; font-size: 12px; }
.breadcrumb>span { color: #afb8c0; padding: 0 10px; }
.search-launch { display: flex; align-items: center; gap: 10px; min-width: 260px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); padding: 7px 10px; font-size: 11px; }
kbd { font-size: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: auto; background: #fafbfc; }
.today { color: var(--muted); font-size: 11px; }
.mobile-toggle { display: none!important; }
main { padding: 24px 28px 28px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 650; margin-bottom: 7px; }
h1 { font-size: 27px; letter-spacing: -.025em; line-height: 1.2; font-weight: 700; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: #52606c; min-height: 34px; padding: 0 12px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.button:hover { background: #f7f8f9; border-color: #b9c1c8; text-decoration: none; }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.danger { color: var(--red-dark); border-color: #efc8cd; background: #fff4f5; }
.button.quiet { background: var(--soft); }
.button.small { min-height: 28px; padding: 0 9px; font-size: 11px; }
.button svg { width: 14px; height: 14px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: transparent; color: var(--muted); padding: 5px; }
.icon-button:hover { background: #edf0f2; color: var(--ink); }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: #52606c; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { padding: 16px 18px; background: #fff; border: 1px solid var(--line); }
.metric>div { display: flex; align-items: center; justify-content: space-between; color: #77838d; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.metric>div svg { width: 16px; height: 16px; color: #9ca7b1; }
.metric>strong { display: block; font-size: 29px; line-height: 1; margin: 14px 0 9px; letter-spacing: -.03em; }
.metric.red>strong { color: var(--red); }
.metric p { color: var(--muted); font-size: 11px; }
.panel { background: #fff; border: 1px solid var(--line); min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; }
.section { margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.section-heading>div:first-child { display: flex; align-items: baseline; gap: 10px; }
.muted { color: var(--muted); font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 265px; background: #fff; border: 1px solid var(--line); padding: 0 10px; border-radius: 4px; color: #89939c; }
.search-field input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; height: 32px; font-size: 12px; color: var(--ink); }
.search-field:focus-within { border-color: #7f9bb7; }
.filter-pills { display: flex; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.filter-pills button { padding: 7px 11px; font-size: 11px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); white-space: nowrap; }
.filter-pills button:last-child { border-right: 0; }
.filter-pills button.selected { background: #eef1f4; color: var(--ink); font-weight: 650; }
.table-scroll { overflow: auto; overscroll-behavior-inline: contain; scrollbar-color: #aeb8c1 #f1f3f5; scrollbar-width: auto; }
.table-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.table-scroll::-webkit-scrollbar-thumb { background: #b3bcc4; border: 3px solid #f1f3f5; border-radius: 6px; }
.table-scroll::-webkit-scrollbar-track { background: #f1f3f5; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
th { background: #f5f7f9; color: #6f7b87; text-align: left; font-size: 10px; font-weight: 650; padding: 9px 10px; border-bottom: 1px solid #cfd6dc; white-space: nowrap; }
td { padding: 7px 10px; border-bottom: 1px solid #e7ebef; vertical-align: middle; white-space: nowrap; height: 35px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7f9fb; }
td small { font-size: 10px; margin-top: 3px; }
.cell-link { font-weight: 600; color: #253642; }
.cell-link:hover { color: var(--red-dark); }
.text-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.ic-table th, .ic-table td { border-right: 1px solid #edf0f2; }
.ic-table th:first-child, .ic-table td:first-child { position: sticky; left: 0; background: #fff; border-right: 1px solid #cfd6dc; z-index: 2; }
.ic-table th:first-child { background: #f5f7f9; }
.projects-table td { height: 40px; }
.project-number-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-number-actions .project-edit { min-height: 24px; padding: 0 6px; gap: 4px; flex: none; }
.project-register-scroll { max-height: calc(100dvh - 250px); min-height: 260px; }
.projects-table .project-text { min-width: 140px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.projects-table .project-name-cell { min-width: 210px; max-width: 270px; }
.projects-table th, .projects-table td { border-right: 1px solid #edf0f2; }
.projects-table th:first-child, .projects-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 2; border-right-color: #cfd6dc; }
.projects-table th:first-child { background: #f5f7f9; z-index: 4; }
.toolbar>select { font: inherit; font-size: 11px; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 8px; }
.toolbar>.muted { font-size: 11px; white-space: nowrap; margin-left: auto; }
.project-register-details { margin-bottom: 18px; }
.project-register-details .fact strong { white-space: normal; overflow-wrap: anywhere; }
.project-summary small { display: block; margin-top: 6px; font-size: 10px; }
.picture-column { width: 98px; }
.projects-table .picture-cell { padding: 4px 12px; }
.project-picture, .picture-empty { display: flex; align-items: center; justify-content: center; width: 60px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 2px; overflow: hidden; }
.project-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-picture:hover, button.picture-empty:hover { border-color: var(--red); }
.picture-empty { color: var(--muted); gap: 5px; font-size: 11px; }
button.picture-empty { cursor: pointer; }
.project-summary.with-picture { grid-template-columns: 152px repeat(4,minmax(0,1fr)); }
.project-summary .project-picture-summary { padding: 10px 12px; }
.project-picture-summary .project-picture.large, .project-picture-summary .picture-empty.large { width: 124px; height: 68px; }
.project-picture-summary>span { margin-bottom: 5px!important; }
.picture-edit { border: 0; padding: 4px 0 0; color: var(--muted); background: none; font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.picture-dialog-preview { display: flex; justify-content: center; margin: 0 0 18px; }
.picture-dialog-preview .project-picture.large { width: 100%; max-width: 360px; height: 200px; }
.picture-file-name { overflow-wrap: anywhere; font-size: 11px; }
@media (max-width:1000px) { .project-summary.with-picture { grid-template-columns: 152px 1fr 1fr; }.project-summary .project-picture-summary { grid-row: span 2; } }
@media (max-width:560px) { .project-summary.with-picture { grid-template-columns: 1fr 1fr; }.project-summary .project-picture-summary { grid-row: auto; grid-column: span 2; border-bottom: 1px solid var(--line); } }
.numeric { font-variant-numeric: tabular-nums; text-align: center; }
.example-label { font-size: 9px; font-weight: 500; color: #7e8a94; margin-left: 8px; }
.person-cell { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 3px; padding: 3px 6px; font-size: 10px; line-height: 1.2; font-weight: 600; color: #6a7681; background: #f0f2f4; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.done, .badge.ontrack { color: #176b43; background: #eaf6ef; }
.badge.overdue { color: #b20d1c; background: #fff0f1; }
.badge.soon, .badge.ongoing { color: #966000; background: #fff5e4; }
.badge.na, .badge.cancelled { color: #818b94; background: #f0f2f4; }
.table-progress { display: flex; align-items: center; gap: 8px; }
.progress-track { height: 4px; background: #e8edf1; border-radius: 2px; overflow: hidden; min-width: 50px; }
.progress-track>span { display: block; height: 100%; background: var(--red); }
.table-progress .progress-track { width: 70px; }
.table-progress small { display: inline; margin: 0; }
.project-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.project-summary>div { padding: 14px 16px; border-right: 1px solid var(--line); }
.project-summary>div:last-child { border: 0; }
.project-summary>div>span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.project-summary strong { font-size: 12px; font-weight: 600; }
.assignment-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.assignment-grid>div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.assignment-grid>div>span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.assignment-grid strong { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.back-link { display: inline-block; color: var(--muted); font-size: 11px; margin-bottom: 13px; }
.ic-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ic-title-row h1 { display: flex; align-items: center; gap: 12px; font-size: 25px; }
.ic-title-row p { margin-top: 7px; font-size: 12px; line-height: 1.5; color: #596571; max-width: 800px; }
.ic-context { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 14px 0 16px; color: var(--muted); font-size: 11px; }
.ic-context>a, .ic-context>span { display: flex; align-items: center; gap: 6px; }
.ic-context .ic-progress-label { margin-left: auto; }
.ic-progress-label b { color: var(--ink); }
.ic-progress-label .progress-track { width: 70px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #cfd6dc; margin-bottom: 18px; overflow-x: auto; }
.tabs>button { display: flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6f7b87; padding: 10px 17px; font-size: 12px; white-space: nowrap; }
.tabs>button:first-child { padding-left: 0; padding-right: 22px; }
.tabs>button.active { color: var(--red-dark); border-bottom-color: var(--red); font-weight: 650; }
.tabs>button>span { font-size: 9px; padding: 1px 5px; background: #e9edf0; border-radius: 3px; color: #7b8791; }
.overview-layout { display: grid; grid-template-columns: 1fr 275px; gap: 18px; }
.facts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.fact { padding: 13px 16px; }
.facts-grid .fact { border-bottom: 1px solid #edf0f2; }
.fact>span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.fact>strong { font-size: 12px; font-weight: 600; }
.description-block { padding: 14px 16px; border-top: 1px solid #edf0f2; }
.description-block>span { font-size: 10px; color: var(--muted); }
.description-block p { margin-top: 8px; white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.completion-panel { padding: 16px; }
.completion-value { display: flex; align-items: baseline; gap: 9px; margin: 17px 0 12px; }
.completion-value strong { font-size: 29px; line-height: 1; }
.completion-value>span { font-size: 10px; color: var(--muted); }
.completion-counts { display: flex; justify-content: space-between; margin-top: 15px; font-size: 10px; color: var(--muted); }
.completion-counts b { color: var(--ink); margin-right: 3px; }
.completion-panel>p { margin-top: 15px; font-size: 10px; color: var(--muted); }
.insight-panel { margin-top: 18px; }
.insight-panel>div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; background: #f0f4f8; border: 1px solid #d8e1ea; color: #53697a; margin-bottom: 16px; font-size: 12px; line-height: 1.6; }
.notice svg { margin-top: 2px; }
.notice.warning { background: #fff9ef; border-color: #efdfbf; color: #76551e; }
.bulk-actions { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #eef1f4; border: 1px solid var(--line); border-bottom: 0; font-size: 11px; color: #6f7b87; }
.bulk-actions label { display: flex; align-items: center; gap: 5px; }
.bulk-actions>span:last-child { margin-left: auto; font-size: 10px; }
.bulk-actions .button { min-height: 24px; font-size: 10px; }
input[type=checkbox] { accent-color: var(--red); width: 13px; height: 13px; margin: 0; }
.cell-input[aria-invalid=true], .field input[aria-invalid=true] { outline: 1px solid var(--red); outline-offset: -1px; background: #fff4f4; }
.work-scroll { max-height: max(320px,calc(100dvh - 375px)); }
.work-table { width: max-content; min-width: 100%; table-layout: fixed; }
.work-table th { position: sticky; top: 0; z-index: 4; height: 32px; }
.work-table td, .work-table th { padding: 3px 6px; border-right: 1px solid #e4e9ed; }
.work-table td { height: 34px; }
.work-table th:last-child, .work-table td:last-child { border-right: 0; }
.work-table .row-select { width: 28px; min-width: 28px; text-align: center; }
.work-table .task-number { width: 50px; min-width: 50px; text-align: right; padding-right: 10px; color: #7e8b96; font-variant-numeric: tabular-nums; }
.work-table .work-name { width: 300px; min-width: 300px; max-width: 300px; }
.work-name>div { display: flex; align-items: center; gap: 4px; }
.row-name { display: inline-block; text-align: left; border: 0; padding: 0; background: transparent; color: #26333d; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.row-name:hover { color: var(--red-dark); text-decoration: underline; }
.custom-mark { color: var(--red-dark); }
.work-table .function-cell { width: 185px; min-width: 185px; }
.work-table .person-select-cell { width: 160px; min-width: 160px; }
.work-table .date-cell { min-width: 94px; font-size: 11px; font-variant-numeric: tabular-nums; }
.work-table .date-cell:has(input) { width: 134px; min-width: 134px; }
.cell-input { width: 100%; height: 26px; min-height: 0; background: transparent; border: 1px solid transparent; border-radius: 2px; padding: 3px 5px; font-size: 11px; color: #394752; }
select.cell-input { cursor: pointer; padding-right: 3px; }
.cell-input:hover { background: #fff; border-color: #cbd4dc; }
.cell-input:focus { background: #fff; border-color: #7a9aba; outline: 1px solid #7a9aba; outline-offset: 0; }
.cell-input::placeholder { color: #a0a9b1; }
.work-table tr:hover .cell-input { border-color: #dce2e8; background: #fff; }
.work-table tr.is-dirty td { background: #fffbea; }
.work-table tr.is-dirty .cell-input { background: #fffefa; }
.work-table tr.is-saving { opacity: .65; pointer-events: none; }
.work-table .excluded .row-name { color: #87939c; }
.work-table .status-cell { min-width: 122px; width: 122px; }
.work-table .required-cell { min-width: 105px; width: 105px; }
.category-cell { max-width: 160px; min-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; color: #6b7782; }
.amount-cell { width: 115px; min-width: 115px; position: relative; }
.cost-input { text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.amount-cell:has(.unit) .cost-input { padding-right: 35px; }
.unit { position: absolute; right: 8px; top: 11px; font-size: 8px; color: #919ba4; pointer-events: none; }
.documents-cell { min-width: 220px; }
.inline-files { display: flex; align-items: center; gap: 5px; }
.file-upload-button, .file-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 25px; border: 1px solid #d5dce2; border-radius: 3px; background: #fff; padding: 0 6px; font-size: 10px; color: #536574; cursor: pointer; }
.file-upload-button:hover, .file-chip:hover { color: var(--red-dark); border-color: #adbac5; }
.file-upload-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-upload-button:focus-within { outline: 2px solid #4679ae; }
.file-chip span { max-width: 165px; overflow: hidden; text-overflow: ellipsis; }
.notes-cell { min-width: 280px; }
.inline-notes { display: flex; align-items: center; gap: 6px; }
.inline-notes .cell-input { width: 165px; min-width: 165px; }
.comment-preview { display: flex; align-items: center; gap: 5px; max-width: 220px; background: transparent; border: 0; padding: 0; font-size: 10px; color: #6f7b87; text-align: left; }
.comment-preview>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-count { border-radius: 3px; padding: 2px 5px; background: #edf1f5; color: #586c7e; }
.save-cell { position: sticky; right: 0; background: #fff; border-left: 1px solid #d5dde4; min-width: 66px; z-index: 2; }
.work-table th:last-child { position: sticky; right: 0; z-index: 5; border-left: 1px solid #d5dde4; }
.row-save { display: flex; align-items: center; gap: 3px; background: #fff; border: 1px solid #c7d0d8; color: #5e6e7b; font-size: 10px; height: 24px; border-radius: 3px; padding: 0 5px; }
.row-save:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.tasks-table td:nth-child(3), .documentation-table td:nth-child(2) { position: sticky; left: 0; background: #fff; z-index: 2; border-right: 1px solid #c4cfd8; }
.tasks-table th:nth-child(3), .documentation-table th:nth-child(2) { left: 0; z-index: 6; border-right: 1px solid #c4cfd8; }
.finance-table td:nth-child(3) { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid #c4cfd8; }
.finance-table th:nth-child(3) { left: 0; z-index: 6; border-right: 1px solid #c4cfd8; }
.info-wrap { display: inline-flex; position: relative; flex-shrink: 0; }
.info { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: #8b98a3; }
.info:hover { color: #466782; }
.tooltip { display: none; }
#info-tooltip { position: fixed; z-index: 90; max-width: min(380px,90vw); background: #25333e; color: #fff; border-radius: 4px; padding: 11px 13px; font-size: 12px; line-height: 1.6; box-shadow: 0 3px 12px #182c3426; pointer-events: none; white-space: pre-wrap; }
.table-footnote { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #82909b; margin-top: 9px; line-height: 1.6; }
.finance-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #fff; border: 1px solid var(--line); }
.finance-summary .fact { border-right: 1px solid var(--line); }
.finance-summary .fact:last-child { border-right: 0; }
.finance-summary .fact strong { font-size: 20px; letter-spacing: -.02em; }
.finance-note { font-size: 10px; color: var(--muted); margin: 8px 0 18px; }
.empty-state { text-align: center; padding: 32px 18px; color: var(--muted); }
.empty-icon { display: block; margin-bottom: 10px; color: #a0aab3; }
.empty-state h3 { color: #65727d; font-size: 13px; }
.empty-state p { font-size: 12px; line-height: 1.6; margin-top: 7px; }
.empty-state .button { margin-top: 14px; }
.approval-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel-intro { font-size: 12px; line-height: 1.6; color: var(--muted); padding: 16px 18px 0; }
.approval-steps { padding: 18px; }
.approval-step { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: #fafbfc; }
.approval-step>div { flex: 1; }
.approval-step p { font-size: 12px; margin-top: 4px; }
.approval-step small { font-size: 10px; margin-top: 4px; }
.approval-step.current { border-color: #e6c08b; background: #fffbf4; }
.step-number { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 11px; background: #e9edf1; border-radius: 3px; color: #778693; }
.approval-step.completed .step-number { background: #eaf6ef; color: #176b43; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.readiness { padding: 8px 18px; }
.readiness>button { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; font-size: 12px; color: var(--ink); }
.readiness>button:last-child { border: 0; }
.readiness>button>span:nth-child(2) { flex: 1; }
.readiness small { font-size: 10px; margin-top: 4px; }
.readiness-icon { color: #a86300; }
.readiness-icon.complete { color: #176b43; }
.inline-warning { color: #a06a24; font-size: 11px; padding: 0 18px 18px; }
.timeline { padding: 18px 24px; }
.timeline>div { padding: 0 0 18px 18px; border-left: 1px solid var(--line); position: relative; }
.timeline>div:last-child { padding-bottom: 0; }
.timeline strong { font-size: 12px; }
.timeline small { font-size: 10px; margin-top: 5px; }
.timeline p { font-size: 12px; color: #6f7b87; margin-top: 8px; }
.timeline-dot { position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #9ba8b3; }
.export-menu { position: relative; }
.export-menu summary { list-style: none; }
.export-menu summary::-webkit-details-marker { display: none; }
.export-menu>div { position: absolute; right: 0; top: calc(100% + 5px); width: 230px; padding: 5px; background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 18px #21314015; border-radius: 4px; z-index: 12; }
.export-menu a { display: flex; align-items: center; gap: 7px; padding: 9px; font-size: 11px; }
.export-menu a:hover { background: #f1f4f7; text-decoration: none; }
.page-footer { display: flex; justify-content: space-between; padding: 0 28px 18px; font-size: 10px; color: #9aa5ae; }
.dialog-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: #14202b55; z-index: 50; display: flex; justify-content: center; align-items: center; padding: 24px; }
.dialog { width: 540px; max-width: 100%; max-height: calc(100dvh - 48px); overflow: auto; background: #fff; border-radius: 5px; box-shadow: 0 12px 45px #10203230; }
.dialog.wide-dialog { width: 760px; }
.dialog.side-dialog { position: absolute; inset: 0 0 0 auto; width: 620px; height: 100dvh; max-height: 100dvh; border-radius: 0; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px; z-index: 3; }
.dialog-heading h2 { font-size: 20px; line-height: 1.4; }
.dialog-heading .eyebrow { display: block; font-size: 9px; }
.dialog-content { padding: 20px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.field>span { font-weight: 600; color: #596571; }
.field.wide { grid-column: 1/-1; }
.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .field select, .field textarea, .assignment-fields input, .assignment-fields select { background: #fff; border: 1px solid #cfd6dc; border-radius: 4px; color: var(--ink); min-height: 36px; padding: 8px 10px; font-size: 12px; width: 100%; min-width: 0; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input[readonly] { background: #f5f7f9; color: #84919b; }
.field small { font-size: 10px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9ba6af; }
.form-divider { border-top: 1px solid var(--line); padding-top: 18px; margin: 20px 0 15px; }
.form-divider p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.form-error { font-size: 12px; color: var(--red-dark); margin-top: 14px; line-height: 1.6; }
.form-error:empty { display: none; }
.form-grid+.notice { margin-top: 20px; }
.team-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-checkboxes label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px; font-size: 11px; }
.team-checkboxes small { margin-top: 3px; font-size: 10px; }
.access-form { display: grid; gap: 18px; }
.access-form .form-actions { margin-top: 0; }
.access-settings { display: grid; gap: 18px; }
.access-roles legend { font-size: 12px; font-weight: 650; padding: 0; margin-bottom: 4px; }
.access-roles-intro { color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
.access-role-list { border-top: 1px solid var(--line); }
.access-role { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.access-role:hover { background: #f7f9fa; }
.access-role:has(input:checked) { background: #fafbfc; }
.access-role input[type=checkbox] { flex: 0 0 15px; width: 15px; height: 15px; min-height: 0; padding: 0; }
.access-role strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; }
.access-role small { font-size: 11px; line-height: 1.45; margin-top: 2px; }
.access-note { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.assignment-fields { display: grid; grid-template-columns: 1fr 1fr 26px; gap: 8px; margin-bottom: 8px; align-items: center; }
.secondary-actions { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.item-explanation { display: flex; align-items: flex-start; gap: 9px; padding: 12px; background: #f3f6f8; border: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: #5e707e; margin-bottom: 18px; }
.item-explanation svg { margin-top: 2px; }
.row-status-strip { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; margin-bottom: 18px; }
.attachment-list>div { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 10px 0; color: #7c8a96; }
.attachment-list a { flex: 1; min-width: 0; }
.attachment-list strong { display: block; font-size: 12px; overflow-wrap: anywhere; color: #435b6e; }
.attachment-list small { font-size: 10px; margin-top: 4px; }
.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 18px; margin-top: 12px; border: 1px dashed #b4c0cb; background: #f8fafb; color: #708596; cursor: pointer; }
.upload-drop strong { font-size: 12px; margin-top: 7px; }
.upload-drop span { font-size: 10px; margin-top: 5px; color: var(--muted); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.comments article { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 14px; }
.comments article>div { display: flex; align-items: center; gap: 7px; }
.comments strong { font-size: 11px; }
.comments time { font-size: 10px; color: var(--muted); margin-left: auto; }
.comments p { white-space: pre-wrap; color: #526572; line-height: 1.7; font-size: 12px; margin-top: 9px; }
.count { font-size: 10px; background: #edf1f4; padding: 2px 5px; border-radius: 3px; margin-left: 5px; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled .form-grid { opacity: .7; }
.dialog-intro, .dialog-content form>p, .dialog-content>p { font-size: 12px; line-height: 1.7; color: #607380; margin-bottom: 18px; }
.search-large { min-width: 0; }
.search-group { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; margin: 20px 4px 7px; }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: #fff; padding: 10px 7px; text-align: left; color: #637989; }
.search-result:hover { background: #f4f6f8; }
.search-result>span { flex: 1; min-width: 0; }
.search-result strong { font-size: 12px; color: var(--ink); }
.search-result small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 90vw; }
.toast { display: flex; align-items: center; gap: 9px; background: #25333e; color: #fff; padding: 12px 17px; border-radius: 4px; box-shadow: 0 4px 16px #15263425; font-size: 12px; }
.toast.error { background: #a4202d; }
.load-error { max-width: 600px; margin: 20vh auto; padding: 30px; }
.load-error p { margin: 20px 0; }
.load-error button { padding: 10px 16px; }
@media (min-width:1600px) { .sidebar { width: 252px; }.workarea { margin-left: 252px; } main { padding: 28px 36px; }.topbar { padding: 0 36px; } }
@media (max-width:1100px) { .sidebar { width: 210px; }.workarea { margin-left: 210px; } main { padding: 20px; }.topbar { padding: 0 20px; }.today { display: none; }.metrics { gap: 10px; }.metric { padding: 14px; }.overview-layout { grid-template-columns: 1fr; }.overview-layout>div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.insight-panel { margin-top: 0; }.facts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.approval-layout { grid-template-columns: 1fr; }.finance-summary .fact strong { font-size: 17px; }.bulk-actions>span:last-child { display: none; }.assignment-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:760px) { .sidebar { width: 232px; transform: translateX(-100%); box-shadow: 8px 0 24px #1b293020; }.sidebar.is-open { transform: translateX(0); }.workarea { margin-left: 0; }.mobile-toggle { display: inline-flex!important; }.topbar { height: 52px; padding: 0 14px; gap: 10px; }.breadcrumb { font-size: 11px; }.breadcrumb>span { padding: 0 4px; }.search-launch { min-width: 0; padding: 6px; }.search-launch span, .search-launch kbd { display: none; } main { padding: 18px 14px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }.page-heading h1 { font-size: 24px; }.metrics { grid-template-columns: 1fr 1fr; }.metric>strong { font-size: 26px; }.metric p { font-size: 10px; }.project-summary { grid-template-columns: 1fr 1fr; }.project-summary>div:nth-child(2) { border-right: 0; }.project-summary>div { padding: 12px; }.assignment-grid { grid-template-columns: 1fr; }.ic-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }.ic-title-row h1 { font-size: 23px; }.ic-context { gap: 10px 15px; }.ic-context .ic-progress-label { margin-left: 0; }.tabs>button { padding: 10px 12px; }.filter-pills { max-width: 100%; overflow-x: auto; }.filter-pills button { padding: 7px 9px; }.toolbar .search-field { flex: 1; min-width: 210px; }.work-scroll { max-height: 60dvh; }.work-table .work-name { min-width: 240px; width: 240px; max-width: 240px; }.tasks-table td:nth-child(3), .documentation-table td:nth-child(2), .finance-table td:nth-child(3), .tasks-table th:nth-child(3), .documentation-table th:nth-child(2), .finance-table th:nth-child(3) { position: static; }.save-cell { position: static; }.work-table th:last-child { position: sticky; right: auto; }.table-footnote { flex-direction: column; gap: 3px; }.facts-grid { grid-template-columns: 1fr 1fr; }.overview-layout>div:last-child { grid-template-columns: 1fr; }.finance-summary { grid-template-columns: 1fr 1fr; }.finance-summary .fact:nth-child(2) { border-right: 0; }.finance-summary .fact strong { font-size: 18px; }.modal-backdrop { padding: 10px; }.dialog { max-height: calc(100dvh - 20px); }.dialog.side-dialog { width: 100%; }.dialog-heading { padding: 16px; }.dialog-content { padding: 16px; }.dialog-heading h2 { font-size: 18px; }.field input, .field select, .field textarea { font-size: 16px; }.form-grid { gap: 14px 10px; }.team-checkboxes { grid-template-columns: 1fr; }.row-status-strip { flex-wrap: wrap; }.page-footer { padding: 0 14px 14px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto!important; animation: none!important; transition: none!important; } }
/* Keep focused cells clear of the fixed name and Save columns. */
.work-scroll { scroll-padding-inline: 310px 74px; }
@media(max-width:760px) { .work-scroll { scroll-padding-inline: 10px; } }

/* File previews keep the working table and any unsaved edits behind the viewer. */
.file-preview-open { overflow: hidden; }
.file-viewer-backdrop { position: fixed; inset: 0; z-index: 80; padding: 24px; display: flex; align-items: center; justify-content: center; background: #14202bb8; }
.file-viewer { display: flex; flex-direction: column; width: min(1280px,100%); height: min(920px,calc(100dvh - 48px)); min-height: 0; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 70px #10203250; }
.file-viewer-heading { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #d5dce2; flex-shrink: 0; }
.file-type { font-size: 9px; font-weight: 750; text-transform: uppercase; color: #b20d1c; border: 1px solid #ebc4c9; background: #fff1f2; border-radius: 3px; padding: 10px 6px; }
.file-viewer-heading>div { flex: 1; min-width: 0; }
.file-viewer-heading h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-viewer-heading p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #83909c; margin-top: 5px; }
.file-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 18px; border-bottom: 1px solid #d5dce2; background: #f8fafb; font-size: 11px; color: #647583; }
.file-viewer-toolbar[hidden] { display: none; }
.file-viewer-toolbar>div, .file-viewer-toolbar>label { display: flex; gap: 8px; align-items: center; }
.file-viewer-toolbar select, .preview-page-number { border: 1px solid #ced7df; border-radius: 3px; padding: 5px 7px; font-size: 11px; background: #fff; color: #344858; }
.preview-page-number { width: 54px; }
.preview-zoom { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.file-viewer-content { flex: 1; min-height: 0; overflow: auto; background: #e5eaef; overscroll-behavior: contain; }
.file-viewer-footer { display: flex; justify-content: space-between; gap: 15px; padding: 9px 18px; border-top: 1px solid #d5dce2; font-size: 10px; color: #7c8b97; background: #fff; line-height: 1.5; }
.file-viewer-footer>span:last-child { white-space: nowrap; }
.preview-loading, .preview-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: #6e7f8d; text-align: center; padding: 25px; }
.preview-empty p { max-width: 520px; font-size: 12px; line-height: 1.7; }
.preview-spinner { width: 26px; height: 26px; border: 2px solid #c7d0d9; border-top-color: #b20d1c; border-radius: 50%; animation: preview-spin .8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.pdf-preview, .image-preview { padding: 18px 32px; text-align: center; }
.pdf-preview canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px #17212b20; }
.image-preview img { display: block; margin: 0 auto; height: auto; object-fit: contain; box-shadow: 0 2px 12px #17212b20; background: #fff; }
.docx-preview { padding: 26px; }
.document-paper { width: min(800px,100%); margin: 0 auto; background: #fff; color: #24313b; padding: 50px 60px; box-shadow: 0 2px 12px #17212b18; font-family: Georgia,serif; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.document-paper h1, .document-paper h2, .document-paper h3, .document-paper h4 { font-family: Inter,ui-sans-serif,system-ui,sans-serif; line-height: 1.4; margin: 1.25em 0 .65em; color: #202f3b; }
.document-paper h1 { font-size: 28px; }.document-paper h2 { font-size: 21px; }.document-paper h3 { font-size: 17px; }
.document-paper p { margin: 0 0 .8em; }.document-paper img { max-width: 100%; height: auto; }.document-paper a { color: #2c6390; text-decoration: underline; }
.document-paper table { border-collapse: collapse; margin: 18px 0; font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 12px; }
.document-paper td, .document-paper th { border: 1px solid #cfd8df; white-space: normal; padding: 8px 10px; height: auto; }.document-paper td p { margin: 0; }
.document-paper blockquote { border-left: 3px solid #cfd8df; margin: 18px 0; padding-left: 18px; color: #697b89; }
.xlsx-preview { background: #fff; }
.sheet-preview { table-layout: fixed; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.sheet-preview th { background: #edf1f4; color: #7e8c98; font-size: 10px; font-weight: 500; text-align: center; border-right: 1px solid #d6dfe6; border-bottom: 1px solid #d6dfe6; padding: 5px; }
.sheet-preview thead th { position: sticky; top: 0; z-index: 3; }
.sheet-preview tbody th { position: sticky; left: 0; z-index: 2; width: 42px; }
.sheet-preview thead th:first-child { left: 0; z-index: 4; }
.sheet-preview td { padding: 6px 8px; border-right: 1px solid #e2e8ed; border-bottom: 1px solid #e2e8ed; height: 28px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.sheet-preview tbody tr:hover td { background: #f8fafc; }
.sheet-preview .has-cell-note { position: relative; }.sheet-preview .has-cell-note:after { content: ''; position: absolute; top: 0; right: 0; border-top: 6px solid #e30a1c; border-left: 6px solid transparent; }
@media(max-width:760px) { .file-viewer-backdrop { padding: 0; }.file-viewer { width: 100%; height: 100dvh; border-radius: 0; }.file-viewer-heading { padding: 12px; gap: 8px; }.file-viewer-heading .button { font-size: 10px; padding: 0 7px; }.file-viewer-heading h2 { font-size: 12px; }.file-type { display: none; }.file-viewer-toolbar { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }.file-viewer-toolbar select { max-width: 210px; }.file-viewer-footer { padding: 8px 12px; }.file-viewer-footer>span:last-child { display: none; }.docx-preview { padding: 14px; }.document-paper { padding: 24px 20px; font-size: 13px; }.pdf-preview, .image-preview { padding: 18px 16px; }.sheet-range { font-size: 10px; } }

/* Excel import review keeps the same compact table language. */
.excel-import-file { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line,#dce3e9); background: #f7f9fb; margin-bottom: 12px; font-size: 12px; }
.excel-import-file>span { font-weight: 600; }.excel-import-file input { max-width: 100%; }
.import-summary { display:flex; justify-content:space-between; gap:12px; padding:14px 0; border-top:1px solid #dce3e9; font-size:12px; }.import-summary span { color:#748390; }
.import-issues { padding:12px 14px; margin:0 0 14px; border-left:3px solid #d49b38; background:#fff9ed; font-size:12px; }.import-issues.error { border-color:#e30a1c; background:#fff1f2; }.import-issues h3 { font-size:12px; margin-bottom:8px; }.import-issues ul { padding-left:17px; max-height:150px; overflow:auto; }.import-issues li { margin:5px 0; line-height:1.5; }.import-issues strong { display:block; }
.import-changes { max-height:43vh; overflow:auto; border:1px solid #dce3e9; }.import-changes table { table-layout:fixed; width:100%; }.import-changes th { position:sticky; top:0; background:#edf1f5; z-index:1; }.import-changes td { vertical-align:top; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; padding:9px 10px; }.import-changes td:first-child { width:34%; }.import-changes td strong,.import-changes td span { display:block; }.import-changes td small { color:#748390; font-size:10px; }.import-changes td>span { color:#748390; }.import-changes td:last-child { background:#f1f8f3; }.import-no-changes { padding:20px 0; color:#176b43; }

/* Compact filters share the column widths and remain visible while scrolling. */
.projects-table thead { position: sticky; top: 0; z-index: 5; }
.projects-table thead th { background: #f5f7f9; }
.projects-table .project-column-filters th { padding: 4px 5px 6px; }
.projects-table .project-column-filters[hidden] { display: none; }
.project-column-filters input, .project-column-filters select { width: 100%; min-width: 68px; height: 27px; padding: 3px 6px; border: 1px solid #d4dce3; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; font-weight: 400; }
.project-column-filters input { min-width: 110px; }
.project-column-filters .has-filter input, .project-column-filters .has-filter select { border-color: #ae1422; background: #fff5f5; }
.project-column-filters input:focus, .project-column-filters select:focus { outline: 2px solid #e3061326; outline-offset: 1px; border-color: #ae1422; }
