.project-workspace{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;min-width:0}
.project-toolbar,.project-actions,.project-page,.project-position,.project-view-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-toolbar{justify-content:space-between;margin-bottom:18px}.project-toolbar p{margin:0;max-width:65ch}.project-actions a{padding:8px 12px;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--ink)}
.project-filters,.project-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.project-filters label,.project-form-grid label{min-width:0;display:flex;flex-direction:column;gap:5px;color:var(--ink);font-weight:500}.project-filters input,.project-filters select,.project-form-grid input,.project-form-grid select{width:100%;min-width:0}.project-more-filters,.project-filters>.project-actions,.project-span{grid-column:1/-1}.project-more-filters summary{padding:8px 0;cursor:pointer}.project-form-grid textarea{min-height:76px;resize:vertical;width:100%}
.project-totals{display:flex;flex-wrap:wrap;border-block:1px solid var(--line);gap:0;margin:20px 0}.project-totals>div{padding:12px 18px;flex:1;min-width:135px}.project-totals dt{font-size:12px;color:var(--muted);white-space:nowrap}.project-totals dd{font-size:23px;font-weight:800;margin:3px 0 0;font-variant-numeric:tabular-nums}.project-totals>div:first-child{background:var(--soft)}
.project-view-tabs{margin:14px 0}.project-distribution,.project-columns{border-bottom:1px solid var(--line);padding:10px 0;margin-bottom:10px}.project-distribution summary,.project-columns summary{cursor:pointer;font-weight:600}.project-distribution p{color:var(--muted);margin-top:12px}.project-bars{padding-top:16px}.project-bars>div{display:grid;grid-template-columns:150px 1fr 32px 170px;gap:12px;align-items:center;margin:8px 0;font-variant-numeric:tabular-nums}.project-bars meter{width:100%;height:14px;accent-color:var(--accent)}.project-bars small{color:var(--muted)}
.project-columns label{display:inline-flex;align-items:center;gap:5px;margin:8px 14px 0 0}.project-columns input,.project-check input{width:auto}.project-page{justify-content:space-between;padding:10px 0;color:var(--muted);font-size:13px}.project-page button{margin-left:8px}
.project-table-wrap{overflow:auto;max-width:100%}.project-table{width:100%;min-width:1050px;table-layout:auto;border-collapse:collapse;font-size:13px}.project-table th{white-space:nowrap}.project-table td{vertical-align:middle;padding:12px 10px;max-width:250px;overflow-wrap:anywhere}.project-client{background:none;color:var(--ink);text-align:left;font-weight:700;border:0;padding:0}.project-client:hover{text-decoration:underline}.project-warning{display:block;color:var(--amber);margin-top:4px;font-weight:500}.project-empty{padding:28px 10px}.project-empty p{max-width:65ch}
.project-badge{display:inline-block;border-radius:5px;padding:4px 7px;font-size:12px;line-height:1.4;color:var(--ink);background:var(--soft)}.project-badge[data-tone=blue]{background:var(--blue-bg);color:var(--blue)}.project-badge[data-tone=teal]{background:var(--teal-bg);color:var(--accent)}.project-badge[data-tone=green]{background:var(--green-bg);color:var(--green)}.project-badge[data-tone=amber]{background:var(--amber-bg);color:var(--amber)}.project-badge[data-tone=rose]{background:var(--rose-bg);color:var(--rose)}
.project-panel{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(1060px,94vw);max-width:100vw;padding:0;border:0;border-radius:0;background:var(--surface);color:var(--ink);overflow:auto;box-shadow:-12px 0 35px rgba(0,0,0,.18)}.project-panel::backdrop,.project-dialog::backdrop{background:rgba(5,27,39,.45)}.project-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}.project-panel-heading h2{margin:0;font-size:22px;overflow-wrap:anywhere}.project-panel-nav{display:flex;gap:4px;overflow:auto;padding:12px 24px;border-bottom:1px solid var(--line);background:var(--surface)}.project-panel-nav button{background:none;color:var(--muted);white-space:nowrap;border:0;border-radius:0;padding:9px 8px}.project-panel-nav button[aria-selected=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent);font-weight:700}.project-panel-content,.project-panel>[data-body]:not(:has(.project-panel-nav)){padding:24px}.project-panel fieldset{border:0;padding:0;min-width:0;margin:0}.project-panel fieldset:has(legend){border-block:1px solid var(--line);padding:14px 0;margin:16px 0}.project-panel legend{font-weight:700}.project-panel .project-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-position{margin-bottom:20px}.project-position span{margin-right:12px}.project-warnings{background:var(--amber-bg);color:var(--amber);padding:14px 18px;margin-bottom:20px;border-radius:8px}.project-warnings ul{padding-left:20px;margin:10px 0 0}.project-criteria{padding:18px 0;margin-top:14px;border-top:1px solid var(--line)}.project-criteria .project-form-grid{margin:14px 0}.project-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;padding:7px 0}.project-panel form>fieldset>label,.project-panel form>label{display:block;margin:18px 0}.project-panel form>fieldset>label textarea,.project-panel form>label textarea{display:block;width:100%;min-height:85px;margin-top:6px}.project-panel form button{margin-top:16px}.project-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:400px;overflow:auto}.project-history article,.project-history details,.project-history{border-bottom:1px solid var(--line);padding:14px 0}.project-history p{white-space:pre-wrap;max-width:72ch}.project-document-list{display:grid;gap:12px;margin-bottom:22px}.project-document-list a{color:var(--accent);overflow-wrap:anywhere}.project-error{color:var(--rose);font-weight:600;background:var(--rose-bg);padding:12px;border-radius:6px}.project-error[hidden]{display:none}
.project-dialog{max-width:min(800px,94vw);width:100%;background:var(--surface);color:var(--ink);border:0;border-radius:12px;padding:0}.project-dialog>[data-body]{padding:20px}.project-dialog form{display:grid;gap:12px}.project-panel dl,.project-metrics dl{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:6px 16px}.project-panel dd,.project-metrics dd{margin:0;overflow-wrap:anywhere}.project-metrics{margin-top:18px}.project-metrics>details{padding:16px 0;border-bottom:1px solid var(--line)}.project-metrics summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;cursor:pointer}.project-metrics summary b{flex:1}.project-metrics summary strong{font-size:18px;font-variant-numeric:tabular-nums}.project-metrics p{max-width:75ch}.project-source-list{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:1100px){.project-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.project-bars>div{grid-template-columns:110px 1fr 28px}.project-bars small{grid-column:2/-1}.project-totals>div{min-width:120px;padding:10px 12px}}
@media(max-width:650px){.project-workspace{padding:14px}.project-toolbar{align-items:flex-start}.project-toolbar>.project-actions{width:100%}.project-toolbar button{flex:1}.project-filters,.project-form-grid,.project-panel .project-form-grid{grid-template-columns:1fr}.project-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.project-totals>div{min-width:0;padding:10px 6px}.project-totals dt{white-space:normal;font-size:11px}.project-totals dd{font-size:21px}.project-panel{width:100vw}.project-panel-heading,.project-panel-content,.project-panel>[data-body]:not(:has(.project-panel-nav)){padding:16px}.project-panel-nav{padding:8px 12px}.project-panel-heading h2{font-size:19px}.project-table{min-width:0}.project-table thead{display:none}.project-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:12px 0}.project-table td{display:flex;flex-direction:column;border:0;max-width:none;padding:6px;gap:4px;min-width:0}.project-table td::before{content:attr(data-label);color:var(--muted);font-size:11px}.project-table td:first-child{grid-column:1/-1}.project-table td:last-child{grid-column:1/-1}.project-table td:has(.project-empty)::before{display:none}.project-table td:has(.project-empty){grid-column:1/-1}.project-table td .project-badge{align-self:flex-start}.project-table td button{align-self:flex-start}.project-metrics summary{align-items:flex-start}.project-metrics summary b{flex-basis:100%}.project-metrics dl,.project-panel dl{grid-template-columns:1fr}.project-metrics dt,.project-panel dt{font-weight:700;margin-top:8px}.project-page{align-items:flex-start}.project-view-tabs button{flex:1}.project-panel form button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.project-panel{scroll-behavior:auto}}
.project-totals dt button,.project-analyst{padding:0;border:0;background:none;color:var(--ink);font-size:inherit;text-align:left;border-radius:0;white-space:normal}.project-totals dt button:hover,.project-analyst:hover{color:var(--accent);text-decoration:underline}.project-totals dt button:focus-visible,.project-analyst:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.project-legacy-note{color:var(--muted);font-size:13px;line-height:1.6}.project-evidence-preview{max-width:100%;max-height:320px;object-fit:contain;object-position:left;border:1px solid var(--line)}.project-trend{margin:18px 0;border-bottom:1px solid var(--line);padding:12px 0}.project-trend summary{cursor:pointer;font-weight:600}.project-trend table{width:100%;min-width:650px;margin-top:12px}.project-trend th,.project-trend td{padding:10px;text-align:left;vertical-align:top}.project-support-chart,.project-sector-chart{display:grid;gap:10px;margin:18px 0}.project-support-chart>div,.project-sector-chart>div{display:grid;grid-template-columns:minmax(140px,1fr) 2fr 70px;gap:10px;align-items:center}.project-support-chart meter,.project-sector-chart meter{width:100%;accent-color:var(--accent)}.project-support-chart button{background:none;color:var(--ink);border:0;text-align:left;padding:3px}.project-start-companion{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:16px;margin:18px 0}.project-start-companion p{margin:8px 0}.project-workspace [hidden],.project-panel [hidden]{display:none!important}
.project-workspace form,.project-panel form,.project-dialog form{max-width:none;width:100%;margin-inline:0}.project-filters{align-items:end}.project-sector-chart small{grid-column:2/-1}.project-panel .project-panel-content{padding-inline:24px}@media(max-width:650px){.project-panel .project-panel-content{padding-inline:16px}.project-sector-chart>div,.project-support-chart>div{grid-template-columns:minmax(110px,1fr) 1fr 56px}.project-totals dt button{min-height:36px}}

.project-page-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.project-page-controls>label{display:flex;align-items:center;gap:8px;white-space:nowrap}.project-page-controls select{width:auto;min-width:76px}.project-page-controls button{margin-left:0}

.project-status-field{min-width:0;font-size:12px}.project-status-field>span{display:block;margin-bottom:4px}.project-status-filter{position:relative;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.project-status-filter>summary{min-height:40px;padding:9px 12px;cursor:pointer;overflow-wrap:anywhere}.project-status-filter[open]{z-index:5}.project-status-options{position:absolute;top:100%;left:0;right:0;min-width:240px;max-width:calc(100vw - 56px);max-height:320px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px;box-shadow:0 8px 24px #092b4220}.project-status-options>label{display:flex;align-items:center;gap:8px;padding:7px 4px;font-size:12px;cursor:pointer}.project-status-options input{width:auto;min-height:0;flex:0 0 auto}.project-status-options button{width:100%;margin-bottom:6px}.project-status-filter>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Management: compact filters and read-only summary, using the existing theme. */
.project-filters{display:block;padding:16px;border:1px solid var(--line);background:var(--soft);border-radius:10px}
.project-filter-heading{font-size:14px;margin:0 0 14px}.project-filter-main{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(270px,2fr);gap:12px;align-items:end}
.project-filter-flags{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-top:14px}.project-filter-flags>.project-check{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:8px 10px;font-size:12px;min-height:36px}.project-filter-flags>.project-check:has(:checked){border-color:var(--accent);background:var(--teal-bg);color:var(--accent)}
.project-filters .project-date-pair{border:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;min-width:0}.project-date-pair legend{font-size:12px;margin-bottom:5px}.project-date-pair>label{font-size:0;gap:0}.project-date-pair input{font-size:13px}.project-filter-flags>.project-date-pair{flex:0 1 280px}
.project-exclusions{margin:16px 0 8px;border:1px solid var(--teal-line);border-radius:8px;padding:10px 12px;background:var(--surface)}.project-exclusions>summary{cursor:pointer;color:var(--accent);font-weight:600}.project-exclusions>summary span{float:right;font-size:12px;font-weight:400}.project-exclusion-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:12px}.project-exclude-choice>div{max-height:220px;overflow:auto;padding-top:8px}
.project-filters .project-status-options label,.project-filters .project-exclude-choice label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;text-align:left;padding:7px 9px;font-size:13px;border-radius:5px;line-height:1.4;cursor:pointer}.project-filters .project-status-options input,.project-filters .project-exclude-choice input{width:16px;height:16px;margin:0;flex:0 0 16px;accent-color:var(--accent)}.project-status-options label:hover,.project-exclude-choice label:hover{background:var(--soft)}.project-status-options label:has(:checked){background:var(--teal-bg);color:var(--accent)}.project-status-options{z-index:10;min-width:230px}.project-filters>.project-actions{margin-top:10px}.project-filter-hint{font-size:12px;color:var(--muted);margin-right:auto}
.project-summary-view{max-width:100%}.project-summary-section{padding:18px 0;border-bottom:1px solid var(--line)}.project-summary-section h3{font-size:15px;margin:0 0 12px}.project-panel .project-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0 0 14px}.project-summary-grid dt{color:var(--muted);font-size:12px;margin-bottom:5px}.project-summary-grid dd{margin:0;font-weight:600}.project-summary-section p{white-space:pre-wrap;overflow-wrap:anywhere}.project-summary-section a{color:var(--accent)}
@media(max-width:1150px){.project-filter-main{grid-template-columns:repeat(4,minmax(0,1fr))}.project-filter-main .project-date-pair{grid-column:span 2}}
@media(max-width:900px){.project-filter-main,.project-exclusion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-exclusions>summary span{float:none;display:block;margin-top:4px}}
@media(max-width:650px){.project-filter-main,.project-exclusion-grid,.project-panel .project-summary-grid{grid-template-columns:1fr}.project-filter-main .project-date-pair{grid-column:auto}.project-filter-flags>.project-date-pair{flex-basis:100%}.project-filter-flags>.project-check{flex:1 1 160px}.project-filters{padding:12px}}

.project-column-filter{position:relative;font-weight:500}.project-column-filter>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0;list-style:none}.project-column-filter>summary span{color:var(--accent)}.project-column-popover{position:absolute;inset:100% auto auto 0;z-index:20;width:260px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:12px;white-space:normal}.project-column-popover>label{display:block;font-size:12px;margin:10px 0}.project-column-popover input[type=search]{width:100%;margin-top:5px}.project-column-values{max-height:220px;overflow:auto;margin-top:8px}.project-column-values>label{display:flex;align-items:center;gap:9px;padding:6px;font-size:12px;cursor:pointer}.project-column-values>label[hidden]{display:none}.project-column-values input[type=checkbox]{width:16px;flex:0 0 16px;margin:0;accent-color:var(--accent)}.project-column-values>label:hover{background:var(--soft)}.project-table th{background:var(--soft);vertical-align:top}.project-table td{padding:10px;border-bottom:1px solid var(--line);min-width:110px}.project-table td:first-child{min-width:190px;position:sticky;left:0;background:var(--surface);z-index:1}.project-table tr:hover td{background:var(--soft)}.project-table-wrap:has(.project-column-filter[open]){padding-bottom:280px}.project-legacy-note{font-size:12px;color:var(--muted);margin:12px 0}.project-legacy-note summary{cursor:pointer}

.project-read-field{display:flex;flex-direction:column;gap:5px;padding:0 0 8px}.project-read-field>span{font-size:13px}.project-read-field strong{padding:8px 10px;background:var(--soft);border-radius:6px}.project-read-field small{color:var(--muted)}

/* Never compress the spreadsheet into letter-by-letter columns on notebooks. */
.project-workspace .project-table-wrap{overflow:auto;max-width:100%;min-width:0;overscroll-behavior-inline:contain}
.project-workspace .project-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:collapse}
.project-workspace .project-table th,.project-workspace .project-table td{min-width:120px;max-width:320px;white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:10px 12px}
.project-workspace .project-table td[data-label="Observação"],.project-workspace .project-table td[data-label="Critérios pendentes"],.project-workspace .project-table td[data-label="Próxima ação"]{white-space:normal;overflow-wrap:anywhere;min-width:280px;line-height:1.5}
.project-workspace .project-table td:first-child{min-width:200px}.project-workspace .project-table button,.project-workspace .project-table .project-badge{white-space:nowrap;word-break:normal;overflow-wrap:normal}
.project-workspace .project-column-filter{min-width:120px}.project-workspace .project-column-popover{white-space:normal}
.project-workspace .project-table th:first-child{position:sticky;left:0;z-index:3;min-width:200px;background:var(--soft)}
@media(max-width:1366px){.project-workspace{padding:16px}.project-totals>div{min-width:115px;padding:10px 12px}.project-totals dt{white-space:normal}.project-workspace .project-table{font-size:12px}.project-workspace .project-table th,.project-workspace .project-table td{padding:9px 10px}}
@media(max-width:650px){.project-workspace .project-table{display:table}.project-workspace .project-table thead{display:table-header-group}.project-workspace .project-table tbody{display:table-row-group}.project-workspace .project-table tr{display:table-row;border:0;margin:0}.project-workspace .project-table th,.project-workspace .project-table td{display:table-cell;white-space:nowrap}.project-workspace .project-table td::before{content:none;display:none}}

/* Keep horizontal navigation reachable while the table continues below the viewport. */
.project-floating-scroll{position:fixed;bottom:env(safe-area-inset-bottom,0px);height:24px;overflow-x:scroll;overflow-y:hidden;z-index:22;background:var(--surface);border:1px solid var(--line);border-radius:6px 6px 0 0;box-shadow:0 -3px 12px #092b4218;scrollbar-width:auto;scrollbar-color:var(--muted) var(--soft)}
.project-floating-scroll[hidden]{display:none!important}.project-floating-scroll-track{height:1px;pointer-events:none}

.project-active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;font-size:12px}.project-active-filters button{display:flex;align-items:center;gap:8px;font-size:12px;padding:6px 9px}.project-column-popover{position:fixed;inset:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;z-index:40}.project-table-wrap:has(.project-column-filter[open]){padding-bottom:0}.project-column-actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.project-column-popover>button{margin-top:8px;width:100%}.project-column-popover select{width:100%;margin-top:6px}.project-status-options{min-width:min(280px,calc(100vw - 56px))}.project-filters [name=management_status]{min-width:0}.project-filter-main{grid-template-columns:minmax(150px,1.4fr) minmax(175px,1.5fr) repeat(4,minmax(100px,1fr)) minmax(250px,2fr)}@media(max-width:1150px){.project-filter-main{grid-template-columns:repeat(3,minmax(0,1fr))}.project-filter-main .project-date-pair{grid-column:span 2}}@media(max-width:750px){.project-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-filter-main{grid-template-columns:1fr}.project-filter-main .project-date-pair{grid-column:auto}.project-active-filters button{max-width:100%;white-space:normal;text-align:left}}

.project-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.project-filter-heading h3{font-size:14px;margin:0}.project-filter-heading button{font-size:12px}

.project-filter-main{grid-template-columns:minmax(160px,1.5fr) minmax(180px,1fr) minmax(160px,1fr)}.project-more-filters>.project-form-grid{margin-top:14px}@media(max-width:750px){.project-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-filter-main{grid-template-columns:1fr}}

.project-filter-main{grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(160px,1fr))}.project-email-cell{min-width:160px;max-width:210px}.project-email-cell select{width:100%;font-size:13px;min-height:36px}.project-email-cell small{display:block;max-width:28ch;white-space:normal;line-height:1.4;color:var(--muted);margin-top:4px}.project-email-cell small:empty{display:none}@media(max-width:900px){.project-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-filter-main{grid-template-columns:1fr}.project-email-cell select{font-size:16px;min-height:44px}}
/* Creation is a centered workspace; existing project panels keep their drawer layout. */
.project-panel.project-create-dialog{inset:0;margin:auto;width:min(1184px,calc(100vw - 64px));max-width:calc(100vw - 64px);height:calc(100dvh - 64px);max-height:960px;border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 64px #0003;overflow:hidden;display:flex;flex-direction:column}
.project-create-dialog>.project-panel-heading{position:static;flex:0 0 auto;padding:20px 28px}.project-create-dialog>[data-body]{padding:0!important;min-height:0;overflow:auto;overscroll-behavior:contain}.project-create-intro{padding:20px 28px 0;margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.project-create-dialog #projectCreate{margin:0;display:block}.project-create-dialog .project-create-section{padding:24px 28px;border-bottom:1px solid var(--line);margin:0}.project-create-section h3{margin:0;font-size:16px;line-height:1.5}.project-create-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.project-create-section-heading output,.project-create-section-heading [data-module-count]{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.project-create-help{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 16px}.project-create-dialog .project-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:16px}.project-create-dialog .project-form-grid label{font-size:13px;line-height:1.5;min-width:0}.project-create-dialog :is(input:not([type=radio],[type=checkbox]),select,textarea){width:100%;margin-top:6px}.project-create-dialog input[type=url],.project-create-dialog textarea{overflow-wrap:anywhere}.project-create-dialog :is(input,select,textarea,button):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.project-create-dialog .project-classification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-create-dialog .project-classification-grid fieldset{border:1px solid var(--line);padding:12px;margin:0;border-radius:8px;min-width:0}.project-classification-grid legend{font-size:13px;padding:0 6px}.project-classification-grid fieldset>label{display:flex;align-items:center;gap:10px;padding:9px 10px;margin:0;min-height:40px;font-size:13px;line-height:1.4;border-radius:5px;cursor:pointer}.project-classification-grid label span{flex:1}.project-classification-grid label small{font-size:11px;color:var(--muted);white-space:nowrap}.project-classification-grid label:has(:checked){background:var(--soft,var(--surface-2));box-shadow:inset 3px 0 var(--accent)}.project-create-dialog input:is([type=radio],[type=checkbox]){width:16px;height:16px;min-height:16px;margin:0;flex:0 0 16px;accent-color:var(--accent)}
.project-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-create-dialog .project-module-choice{display:flex;align-items:center;gap:9px;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-size:13px;line-height:1.4;cursor:pointer;min-width:0}.project-module-choice span{flex:1;overflow-wrap:anywhere}.project-module-choice small{font-size:10px;color:var(--muted);max-width:8ch}.project-module-choice:has(:checked){background:var(--soft,var(--surface-2))}.project-module-choice:has(:disabled){cursor:default}.project-module-choice:has(:checked:not(:disabled)){border-color:var(--accent)}
.project-module-request>label{font-size:13px}.project-create-dialog .project-module-request textarea{display:block;resize:vertical;min-height:180px;font-size:13px;line-height:1.6;background:var(--soft,var(--surface-2))}.project-create-copy-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.project-create-copy-actions [data-copy-feedback]{font-size:12px;color:var(--muted);line-height:1.5;flex:1;min-width:180px}.project-create-dialog .project-create-copy-actions button{margin-top:12px}.project-create-dialog .project-create-section>label{display:block;font-size:13px;margin:0}.project-create-dialog .project-create-section>label textarea{min-height:88px;resize:vertical}
.project-create-dialog .project-create-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:12px;padding:16px 28px;background:var(--surface);border-top:1px solid var(--line)}.project-create-footer [data-create-feedback]{font-size:12px;line-height:1.5;color:var(--muted);margin-right:auto;max-width:50ch}.project-create-dialog .project-create-footer button{margin:0;flex:0 0 auto;min-height:42px}.project-create-dialog [data-project-error]{margin:16px 28px}.project-create-dialog [hidden]{display:none!important}
.project-create-dialog button.secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.project-create-dialog button.secondary:hover:not(:disabled){background:var(--soft,var(--surface-2));color:var(--ink)}
@media(max-width:900px){.project-create-dialog .project-form-grid,.project-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-panel.project-create-dialog{width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}}
@media(max-width:600px){.project-panel.project-create-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:8px}.project-create-dialog>.project-panel-heading{padding:16px}.project-create-dialog .project-create-section{padding:20px 16px}.project-create-intro{padding:16px 16px 0}.project-create-dialog .project-form-grid,.project-create-dialog .project-classification-grid,.project-module-grid{grid-template-columns:1fr}.project-create-dialog :is(input:not([type=radio],[type=checkbox]),select,textarea){font-size:16px}.project-create-dialog .project-create-footer{padding:12px 16px;flex-wrap:wrap;gap:8px}.project-create-footer [data-create-feedback]{flex:1 0 100%;max-width:none}.project-create-dialog .project-create-footer button{flex:1 1 auto}.project-classification-grid fieldset>label{min-height:44px}.project-create-dialog [data-project-error]{margin:16px}.project-create-copy-actions{gap:8px}}
@media(max-width:600px){.project-workspace .project-table th:first-child,.project-workspace .project-table td:first-child{width:140px;min-width:140px;max-width:140px;white-space:normal;overflow-wrap:anywhere}.project-workspace .project-table td:first-child .project-client{white-space:normal;overflow-wrap:anywhere;text-align:left}}

/* Client groups and overlapping subtotals share the current response scope. */
.project-workspace .project-totals--groups{margin-bottom:.5rem}
.project-count-basis,.project-subtotals-note,.project-count-attention{font-size:.875rem;line-height:1.5;color:var(--muted);margin:.5rem 0}
.project-count-basis strong{color:var(--ink)}
.project-subtotals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:.75rem 0;padding:.75rem 0;border-block:1px solid var(--line)}
.project-subtotals>div{min-width:0}
.project-subtotals dt{font-size:.875rem;color:var(--muted)}
.project-subtotals dd{margin:.25rem 0 0}
.project-subtotals dd>strong{font-size:1.125rem;font-variant-numeric:tabular-nums}
.project-subtotals p{font-size:.875rem;line-height:1.5;margin:.25rem 0 0;color:var(--muted);overflow-wrap:anywhere}
.project-subtotals button,.project-count-attention button{padding:0;border:0;background:none;color:var(--accent);font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:.16em}
.project-subtotals button:focus-visible,.project-count-attention button:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
.project-count-warning{padding:.75rem;background:var(--amber-bg,#fff6e7);color:var(--ink);border:1px solid var(--warn-line,var(--line));font-size:.875rem;line-height:1.5}
@media(max-width:650px){.project-subtotals{grid-template-columns:minmax(0,1fr)}}

/* Meeting workspace: shared tokens, four readable columns, secondary tools tucked away. */
.project-workspace .project-filter-main{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}
.project-quick-filters,.project-saved-views{grid-column:1/-1;display:flex;align-items:end;flex-wrap:wrap;gap:.75rem}
.project-saved-views{padding-top:.75rem;border-top:1px solid var(--line)}
.project-saved-views>label{flex:1 1 12rem}.project-saved-views>small{flex-basis:100%;color:var(--muted)}
.project-filters .project-status-field{min-width:0;display:flex;flex-direction:column;gap:.3rem}
.project-status-filter{position:relative;min-width:0}
.project-status-filter>summary{padding:.55rem .75rem;border:1px solid var(--line);border-radius:.4rem;cursor:pointer;overflow-wrap:anywhere;background:var(--surface)}
.project-status-filter>.project-status-options{position:absolute;top:100%;left:0;z-index:25;width:max-content;max-width:min(28rem,80vw);max-height:50dvh;overflow:auto;padding:.75rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.4rem;box-shadow:0 .4rem 1.5rem #092b4218}
.project-status-options>label{display:flex;flex-direction:row;align-items:center;gap:.6rem;padding:.45rem 0}
.project-status-options input[type=checkbox]{width:1rem;height:1rem;flex:0 0 1rem;accent-color:var(--accent)}
.project-operational-summary{margin:1rem 0;padding:.75rem 0;border-block:1px solid var(--line)}
.project-operational-summary>summary{font-weight:600;cursor:pointer}
.project-view-tabs button[aria-pressed=true]{background:var(--teal-bg);color:var(--accent);border-color:var(--accent)}
.project-operational-wrap{min-width:0;max-width:100%}
.project-operational-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.875rem;line-height:1.5}
.project-operational-table th{padding:.75rem;text-align:left;background:var(--soft);border-block:1px solid var(--line);font-weight:600}
.project-operational-table th:nth-child(1){width:21%}.project-operational-table th:nth-child(2){width:22%}.project-operational-table th:nth-child(3){width:30%}.project-operational-table th:nth-child(4){width:27%}
.project-operational-table td{padding:1rem .75rem;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.project-operational-table td>small,.project-pending-preview small{display:block;color:var(--muted);margin-top:.3rem}
.project-operational-table p{margin:.4rem 0}.project-operational-table .project-client{font:inherit;font-weight:700;overflow-wrap:anywhere}
.project-operational-table .project-quick-open{margin-top:.65rem;font-size:.8125rem;white-space:normal;text-align:left}
.project-observation-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.project-observation-text.is-compact{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.project-pending-preview{padding-left:1rem;margin:.5rem 0}.project-pending-preview li+li{margin-top:.5rem}
.project-operational-warning{color:var(--rose)!important;font-weight:600}.project-next-preview{border-left:2px solid var(--line);padding-left:.65rem;color:var(--muted)}
.project-panel-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;border-bottom:1px solid var(--line);padding:0 1.5rem;background:var(--surface)}
.project-panel-navigation .project-panel-nav{padding:.6rem 0;border:0;flex:1 1 auto;flex-wrap:wrap;overflow:visible}
.project-secondary-sections{position:relative;flex:0 1 auto}.project-secondary-sections>summary{padding:.65rem;cursor:pointer;color:var(--accent);font-size:.875rem}
.project-secondary-sections>div{position:absolute;right:0;top:100%;z-index:4;display:grid;gap:.4rem;min-width:16rem;max-width:80vw;padding:.75rem;background:var(--surface);border:1px solid var(--line);border-radius:.4rem;box-shadow:0 .4rem 1.5rem #092b4218}
.project-secondary-sections button{text-align:left}.project-secondary-sections button[aria-current=page]{background:var(--teal-bg);color:var(--accent)}
.project-client-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-bottom:1.25rem}
.project-client-navigation>span{font-size:.875rem;color:var(--muted)}
.project-operational-panel h3{font-size:1rem;margin:0 0 .9rem}.project-operational-panel .project-position{margin-bottom:.75rem}
.project-operational-panel section,.project-observation-history{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.project-operational-panel form{min-width:0}.project-operational-panel .project-form-grid{gap:1rem}
.project-operational-panel textarea{min-height:6rem}.project-operational-panel .small{color:var(--muted);line-height:1.5}
.project-operational-panel summary{cursor:pointer;padding:.65rem 0;color:var(--accent);font-weight:500}
.project-pending-item{display:flex;align-items:start;justify-content:space-between;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.project-pending-item>div{min-width:0}.project-pending-item p{margin:0 0 .4rem;white-space:pre-wrap;overflow-wrap:anywhere}
.project-pending-item small,.project-observation-history article>small,.project-history>small{display:block;color:var(--muted);font-size:.8125rem;line-height:1.5}
.project-pending-item button{flex:0 0 auto}.project-observation-history article{padding:.9rem 0;border-bottom:1px solid var(--line)}
.project-observation-history article p{margin:0 0 .4rem;white-space:pre-wrap;overflow-wrap:anywhere}
.project-history>small{margin-top:.4rem}.project-history details{border:0}.project-history dd{white-space:pre-wrap}
.project-workspace :is(button,summary,input,select,textarea):focus-visible,.project-panel :is(button,summary,input,select,textarea):focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
@media(max-width:800px){
 .project-workspace .project-filter-main{grid-template-columns:1fr}
 .project-operational-table thead{display:none}.project-operational-table tbody{display:block}
 .project-operational-table tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:.75rem 0}
 .project-operational-table td{display:block;border:0;padding:.5rem;min-width:0}.project-operational-table td::before{content:attr(data-label);display:block;font-size:.8125rem;font-weight:600;color:var(--muted);margin-bottom:.35rem}
 .project-operational-table td:nth-child(n+3),.project-operational-table td[colspan]{grid-column:1/-1}
 .project-operational-table td[colspan]::before{display:none}.project-operational-table .is-compact{-webkit-line-clamp:5}
 .project-panel-navigation{padding:0 1rem}.project-panel-navigation .project-panel-nav{gap:0}.project-panel-navigation .project-panel-nav button{font-size:.875rem}
 .project-secondary-sections{margin-bottom:.5rem}.project-secondary-sections>div{left:0;right:auto}
}
@media(max-width:600px){
 .project-operational-panel .project-form-grid{grid-template-columns:1fr}
 .project-saved-views>label{flex-basis:100%}.project-pending-item{flex-wrap:wrap}
 .project-operational-panel :is(input,select,textarea){font-size:1rem}.project-client-navigation button{flex:1 1 auto}
}

/* A native filter button covers its label, number and the free area of the box. */
.project-indicator-card{position:relative;border-radius:.3rem;cursor:pointer;min-height:2.75rem}
.project-indicator-card .project-indicator-button{position:static}
.project-indicator-card .project-indicator-button::after{content:"";position:absolute;inset:0;border-radius:inherit}
.project-indicator-card:hover{background:var(--soft)}
.project-indicator-card:has(.project-indicator-button[aria-pressed=true]){background:var(--teal-bg);outline:1px solid var(--accent);outline-offset:-1px}
.project-indicator-card:has(.project-indicator-button:focus-visible){outline:2px solid var(--focus,var(--accent));outline-offset:2px}
.project-indicator-card .project-indicator-button:focus-visible{outline:none}
.project-count-attention .project-indicator-button[aria-pressed=true]{font-weight:700;text-decoration:underline}

/* Client management: primary totals, then six mutually exclusive situations. */
.project-dashboard { margin-block: 1rem; }
.project-dashboard-highlights { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; margin: 0 0 .75rem; }
.project-dashboard-highlights .project-highlight { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; }
.project-dashboard-highlights dt { max-width: 24ch; margin: 0; }
.project-dashboard-highlights dd { margin: 0; font-size: clamp(1.5rem, 1.8vw, 2.25rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.project-dashboard-highlights .project-indicator-button { background: none; border: 0; box-shadow: none; color: var(--ink); font-size: .875rem; font-weight: 700; text-align: left; white-space: normal; line-height: 1.45; padding: 0; min-height: 0; }
.project-dashboard-highlights .project-highlight.is-attention { background: var(--amber-bg); border-color: var(--warn-line); }
.project-dashboard-highlights .is-attention :is(dd,button) { color: var(--amber); }
.project-dashboard .project-totals--groups { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .25rem; margin: 0; padding: .5rem 0; border-block: 1px solid var(--line); background: transparent; }
.project-dashboard .project-totals--groups > div { padding: .625rem .75rem; min-width: 0; border: 0; }
.project-dashboard .project-totals--groups dt { min-height: 2.7em; line-height: 1.35; }
.project-dashboard .project-totals--groups .project-indicator-button { font-size: .8125rem; line-height: 1.4; padding: 0; color: var(--muted); text-align: left; }
.project-dashboard .project-totals--groups dd { margin: .3rem 0 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.project-count-details { margin-top: .5rem; font-size: .875rem; }
.project-count-details > summary { width: fit-content; max-width: 100%; padding: .5rem 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.project-count-details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: .25rem; }
.project-count-details .project-count-basis { max-width: 90ch; }
.project-dashboard + .project-view-tabs { margin-top: .5rem; }
@media(max-width:1000px) { .project-dashboard .project-totals--groups { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) {
 .project-dashboard-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
 .project-dashboard-highlights .project-highlight { padding: .75rem; flex-wrap: wrap; gap: .5rem; }
 .project-dashboard-highlights .project-highlight:first-child { grid-column: 1 / -1; flex-wrap: nowrap; }
 .project-dashboard .project-totals--groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .project-dashboard .project-totals--groups dt { min-height: 0; }
}

/* Gestão de clientes — overview only. Keep other project panels on their existing styles. */
main:has(.project-overview) > .heading { display: none; }
.project-workspace.project-overview {
  --project-progress: var(--blue);
  --project-completed: var(--green);
  --project-transferred: var(--accent);
  --project-support: var(--violet);
  --project-suspended: var(--amber);
  --project-stopped: var(--rose);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}
.project-overview *, #projectAdvanced.project-filter-drawer * { box-sizing: border-box; }
.project-overview > [data-project-results] { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.project-overview > [data-project-results] > .project-active-filters { margin: 0; }
.project-overview .project-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.project-overview [data-status=progress] { --project-status: var(--project-progress); --project-status-bg: var(--blue-bg); }
.project-overview [data-status=completed] { --project-status: var(--project-completed); --project-status-bg: var(--green-bg); }
.project-overview [data-status=transferred] { --project-status: var(--project-transferred); --project-status-bg: var(--teal-bg); }
.project-overview [data-status=support] { --project-status: var(--project-support); --project-status-bg: var(--violet-bg); }
.project-overview [data-status=suspended] { --project-status: var(--project-suspended); --project-status-bg: var(--amber-bg); }
.project-overview [data-status=stopped] { --project-status: var(--project-stopped); --project-status-bg: var(--rose-bg); }
.project-overview [data-tone=progress] { --project-status: var(--project-progress); --project-status-bg: var(--blue-bg); }
.project-overview [data-tone=completed] { --project-status: var(--project-completed); --project-status-bg: var(--green-bg); }
.project-overview [data-tone=transferred] { --project-status: var(--project-transferred); --project-status-bg: var(--teal-bg); }
.project-overview [data-tone=support] { --project-status: var(--project-support); --project-status-bg: var(--violet-bg); }
.project-overview [data-tone=suspended] { --project-status: var(--project-suspended); --project-status-bg: var(--amber-bg); }
.project-overview [data-tone=stopped] { --project-status: var(--project-stopped); --project-status-bg: var(--rose-bg); }
.project-overview .project-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
  margin: 0;
}
.project-overview .project-heading > div:first-child { min-width: 0; }
.project-overview .project-heading h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.project-overview .project-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.project-overview .project-header-actions { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-overview .project-header-actions > button { min-height: 40px; white-space: nowrap; }
.project-overview .project-refresh-block { display: grid; justify-items: end; gap: 4px; }
.project-overview .project-refresh-block button { min-height: 40px; }
.project-overview .project-refresh-block small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.project-overview .project-filters { padding: 16px 24px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.project-overview .project-filter-main { display: grid; grid-template-columns: minmax(240px,1.6fr) minmax(160px,1fr) minmax(160px,1fr) auto; align-items: end; gap: 16px; }
.project-overview .project-filter-main > label, .project-overview .project-multiselect { font-size: 12px; font-weight: 600; line-height: 1.4; min-width: 0; }
.project-overview .project-filter-main > label { display: flex; flex-direction: column; gap: 5px; }
.project-overview .project-filter-main :is(input:not([type=checkbox]),select), .project-overview .project-multiselect > button { width: 100%; min-width: 0; height: 40px; min-height: 40px; margin: 0; }
.project-overview .project-filter-buttons { display: flex; align-items: center; gap: 8px; }
.project-overview .project-filter-buttons > button, .project-overview .project-filter-buttons > .project-savedmenu > button { height: 40px; min-height: 40px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.project-overview .project-multiselect { position: relative; display: grid; gap: 5px; }
.project-overview .project-multiselect > span { display: block; }
.project-overview .project-multiselect > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; font-size: 13px; font-weight: 500; }
.project-overview .project-multiselect > button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-overview .project-multiselect > button[aria-expanded=true], .project-overview .project-savedmenu > button[aria-expanded=true] { border-color: var(--accent); }
.project-overview .project-multi-options, .project-overview .project-saved-options, .project-overview .project-column-options {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  width: max-content; min-width: 100%; max-width: min(360px,calc(100vw - 48px)); max-height: min(360px,60dvh);
  overflow: auto; overscroll-behavior: contain; padding: 8px; margin: 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.project-overview .project-multi-options label, .project-overview .project-column-options label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; padding: 8px; margin: 0; font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer; white-space: normal; }
.project-overview .project-multi-options label:hover, .project-overview .project-column-options label:hover { background: var(--soft); }
.project-overview .project-multi-options label:has(:checked) { background: var(--teal-bg); color: var(--accent); }
.project-overview .project-multi-options input, .project-overview .project-column-options input { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 0; accent-color: var(--accent); }
.project-overview .project-multi-options > button { width: 100%; min-height: 36px; margin: 0 0 4px; font-size: 12px; }
.project-overview .project-savedmenu, .project-overview .project-column-picker { position: relative; }
.project-overview .project-saved-options { left: auto; right: 0; min-width: 280px; }
.project-overview .project-saved-options > p { color: var(--muted); margin: 8px; font-size: 13px; line-height: 1.5; }
.project-overview .project-saved-options > button { width: 100%; min-height: 40px; margin-top: 8px; }
.project-overview .project-saved-row { display: flex; align-items: stretch; gap: 4px; }
.project-overview .project-saved-row + .project-saved-row { border-top: 1px solid var(--line); }
.project-overview .project-saved-row > button { min-height: 40px; padding: 8px; background: transparent; border: 0; color: var(--ink); font-size: 13px; }
.project-overview .project-saved-row > button:first-child { flex: 1; min-width: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.project-overview .project-saved-row > button:last-child { flex: 0 0 40px; color: var(--muted); }
.project-overview .project-saved-row > button:hover { background: var(--soft); }
.project-overview .project-active-filters { gap: 8px; margin: 12px 0 0; line-height: 1.4; }
.project-overview .project-active-filters:empty { display: none; }
.project-overview .project-active-filters button { min-height: 28px; border: 1px solid var(--teal-line); border-radius: 6px; padding: 4px 8px; color: var(--accent); background: var(--teal-bg); font-size: 11px; font-weight: 600; max-width: 100%; white-space: normal; text-align: left; }
.project-overview .project-overview-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; box-shadow: none; }
.project-overview .project-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin: 0 0 16px; }
.project-overview .project-section-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -.015em; }
.project-overview .project-section-heading small { font-size: 12px; color: var(--muted); }
.project-overview .project-overdue-alert { margin: 0 0 16px; }
.project-overview button.project-overdue-alert, .project-overview .project-overdue-alert > button { display: flex; align-items: center; gap: 8px; min-height: 40px; width: 100%; padding: 8px 12px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; text-align: left; font-weight: 600; }
.project-overview button.project-overdue-alert:hover, .project-overview .project-overdue-alert > button:hover { border-color: var(--amber); }
.project-overview button.project-overdue-alert[aria-pressed=true], .project-overview .project-overdue-alert > button[aria-pressed=true] { outline: 2px solid var(--amber); outline-offset: 2px; }
.project-overview .project-composition { display: flex; width: 100%; height: 20px; gap: 2px; margin: 0; border-radius: 6px; background: var(--soft); }
.project-overview .project-composition > button { flex: 0 1 var(--portion,0%); min-width: 0; min-height: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--project-status,var(--muted)); }
.project-overview .project-composition-empty { color: var(--muted); font-size: 12px; line-height: 20px; padding-inline: 8px; }
.project-overview .project-composition > button:first-child { border-radius: 6px 0 0 6px; }
.project-overview .project-composition > button:last-child { border-radius: 0 6px 6px 0; }
.project-overview .project-composition > button:only-child { border-radius: 6px; }
.project-overview .project-composition > button:hover { filter: brightness(.92); }
.project-overview .project-composition > button[aria-pressed=true] { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 1; }
.project-overview .project-composition-legend, .project-overview .project-owner-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-overview .project-composition-legend > span, .project-overview .project-owner-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.project-overview .project-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--project-status,var(--muted)); }
.project-overview .project-overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: 0; }
.project-overview .project-completed-group { display: contents; }
.project-overview .project-stat-card { position: relative; min-width: 0; min-height: 130px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.project-overview .project-completed-group > .project-stat-card { border-color: var(--ok-line,var(--line)); background: color-mix(in srgb,var(--green-bg) 35%,var(--surface)); }
.project-overview .project-stat-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; min-height: 130px; padding: 24px; margin: 0; background: transparent; color: var(--ink); border: 0; border-radius: 11px; text-align: left; font-weight: 500; white-space: normal; }
.project-overview .project-stat-label { display: block; max-width: calc(100% - 12px); min-height: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.project-overview .project-stat-value { display: block; font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.project-overview .project-stat-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.project-overview .project-completed-label { position: absolute; top: 6px; left: 24px; max-width: calc(100% - 56px); color: var(--green); font-size: 10px; font-weight: 700; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.project-overview .project-stat-main:hover { background: var(--soft); }
.project-overview .project-stat-card:has(.project-stat-main[aria-pressed=true]) { border-color: var(--accent); background: var(--teal-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.project-overview .project-stat-card:has(.project-stat-main:focus-visible) { outline: 2px solid var(--focus,var(--accent)); outline-offset: 3px; }
.project-overview .project-stat-main:focus-visible { outline: none; }
.project-overview .project-info { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; font-weight: 600; z-index: 1; }
.project-overview .project-info:hover { border-color: var(--line); background: var(--soft); color: var(--ink); }
.project-overview .project-filter-buttons > button.project-info { position: static; flex: 0 0 24px; width: 24px; min-width: 24px; height: 40px; min-height: 40px; padding: 0; border-color: transparent; background: transparent; }
.project-overview .project-count-equation { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-overview .project-owner-dashboard .project-section-heading { align-items: center; }
.project-overview .project-owner-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.project-overview .project-owner-tools label { display: flex; align-items: center; gap: 8px; }
.project-overview .project-owner-tools select { width: auto; height: 40px; min-height: 40px; max-width: 100%; margin: 0; }
.project-overview .project-owner-legend { margin: 0 0 16px; }
.project-overview .project-owner-row { display: grid; grid-template-columns: 160px minmax(0,1fr) 48px minmax(180px,220px); gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--line); }
.project-overview .project-owner-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.project-overview .project-owner-row .project-analyst { min-height: 32px; line-height: 1.4; font-size: 13px; font-weight: 600; }
.project-overview .project-owner-bar { display: flex; gap: 1px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft); }
.project-overview .project-owner-bar > span { display: block; flex: 0 1 var(--portion,0%); min-width: 0; height: 10px; background: var(--project-status,var(--muted)); }
.project-overview .project-owner-count { font-size: 20px; line-height: 1.2; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.project-overview .project-owner-sizes { font-size: 11px; color: var(--muted); line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.project-overview .project-owner-description { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-overview .project-table-card { padding: 24px; }
.project-overview .project-table-card .project-view-tabs { display: flex; align-items: center; gap: 24px; margin: 0 0 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.project-overview .project-view-tabs > button { min-height: 40px; margin: 0 0 -1px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; }
.project-overview .project-view-tabs > button[aria-pressed=true], .project-overview .project-view-tabs > button[aria-selected=true] { border-bottom-color: var(--accent); color: var(--accent); background: transparent; }
.project-overview .project-table-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 0 0 16px; flex-wrap: wrap; }
.project-overview .project-table-tools > .project-page { flex: 1; padding: 0; margin: 0; }
.project-overview .project-page { gap: 12px 24px; margin: 0; padding: 16px 0 0; font-size: 12px; }
.project-overview .project-page-controls { gap: 8px; }
.project-overview .project-page-controls :is(button,select), .project-overview .project-column-picker > button { min-height: 40px; margin: 0; font-size: 12px; }
.project-overview .project-page-controls select { height: 40px; min-width: 64px; }
.project-overview .project-page-controls > a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; margin: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; text-decoration: none; }
.project-overview .project-page-controls > a:hover { border-color: var(--accent); }
.project-overview .project-table-footer { margin: 16px 0 0; padding: 0; }
.project-overview .project-column-options { right: 0; left: auto; min-width: 240px; }
.project-overview .project-column-options > button { min-height: 40px; width: 100%; margin-top: 8px; }
.project-overview .project-table-wrap, .project-overview .project-operational-wrap { overflow: auto; max-width: 100%; min-width: 0; max-height: min(65dvh,720px); overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; }
.project-overview .project-operational-table { width: 100%; min-width: 900px; margin: 0; border-collapse: separate; border-spacing: 0; }
.project-overview .project-operational-table th { position: sticky; top: 0; z-index: 2; background: var(--soft); color: var(--muted); }
.project-overview .project-table { width: max-content; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.project-overview .project-table :is(th,td) { padding: 12px 16px; line-height: 1.5; }
.project-overview .project-table th { position: sticky; top: 0; z-index: 2; color: var(--muted); background: var(--soft); font-size: 12px; font-weight: 600; vertical-align: middle; }
.project-overview .project-table th:first-child { z-index: 3; }
.project-overview .project-table td { border-bottom: 1px solid var(--line); background: var(--surface); }
.project-overview .project-table tbody tr:last-child td { border-bottom: 0; }
.project-overview .project-table tbody tr:hover td { background: var(--soft); }
.project-overview .project-table :is(th,td)[data-key=management_status], .project-overview .project-table :is(th,td)[data-key=status] { min-width: 160px; max-width: 220px; }
.project-overview .project-table .project-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.project-overview .project-badge[data-status] { border: 1px solid color-mix(in srgb,var(--project-status) 30%,var(--line)); background: var(--project-status-bg,var(--soft)); color: var(--project-status); }
.project-overview .project-badge:is([data-tone=progress],[data-tone=completed],[data-tone=transferred],[data-tone=support],[data-tone=suspended],[data-tone=stopped]) { border: 1px solid color-mix(in srgb,var(--project-status) 30%,var(--line)); background: var(--project-status-bg,var(--soft)); color: var(--project-status); }
.project-overview [role=tooltip] { position: absolute; right: 8px; top: 40px; z-index: 4; width: max-content; max-width: min(280px,calc(100vw - 64px)); padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.project-overview .project-table td:first-child .project-client { line-height: 1.5; }
.project-overview .project-start-review-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.project-overview .project-start-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; width: 100%; }
.project-overview .project-start-review-actions > strong { color: var(--ink); font-size: 13px; }
.project-overview .project-start-review-actions > button { min-height: 40px; margin: 0; font-size: 12px; }
.project-overview .project-start-review-actions > button[aria-pressed=true] { background: var(--teal-bg); border-color: var(--accent); color: var(--accent); }
.project-overview .project-start-review-panel { width: 100%; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.project-overview .project-start-review-panel .project-section-heading { align-items: center; gap: 12px 16px; margin-bottom: 12px; }
.project-overview .project-start-review-panel .project-section-heading h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.5; }
.project-overview .project-start-review-panel .project-section-heading > span { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; }
.project-overview .project-start-review-panel .project-section-heading > button { min-height: 40px; margin: 0 0 0 auto; font-size: 12px; }
.project-overview .project-review-help { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-overview .project-review-list { max-height: min(50dvh,480px); overflow: auto; overscroll-behavior: contain; }
.project-overview .project-review-list > p { margin: 0; line-height: 1.5; }
.project-overview .project-review-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.project-overview .project-review-row > div:first-child { min-width: 0; flex: 1; }
.project-overview .project-review-row .project-client { max-width: 100%; min-height: 32px; font-size: 13px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.project-overview .project-review-row .project-review-dot { margin-left: 8px; }
.project-overview .project-review-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-overview .project-review-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; }
.project-overview .project-review-actions > button { min-height: 40px; margin: 0; font-size: 12px; }
.project-overview .project-review-actions > span { color: var(--muted); font-size: 12px; }
.project-overview .project-start-review-strip > button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 12px; }
.project-overview .project-start-review-strip > button[aria-pressed=true] { background: var(--teal-bg); border-color: var(--accent); color: var(--accent); }
.project-overview .project-review-dot[data-review=validated], .project-overview .project-review-dot[data-review=doubt] { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: middle; }
.project-overview .project-review-dot[data-review=validated] { background: var(--green); }
.project-overview .project-review-dot[data-review=doubt] { background: var(--amber); }
.project-overview .project-review-dot:not([data-review=validated],[data-review=doubt]) { display: none; }
.project-overview :is(button,input,select,summary):focus-visible, #projectAdvanced.project-filter-drawer :is(button,input,select,summary):focus-visible { outline: 2px solid var(--focus,var(--accent)); outline-offset: 3px; }
.project-overview :is(.project-multi-options,.project-saved-options,.project-column-options)[hidden], #projectAdvanced.project-filter-drawer [hidden] { display: none !important; }

/* This native dialog is the only project dialog changed by the overview release. */
#projectAdvanced.project-filter-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px,100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh; padding: 0; overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: var(--surface); border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow);
}
#projectAdvanced.project-filter-drawer::backdrop { background: color-mix(in srgb,var(--brand) 35%,transparent); }
#projectAdvanced .project-drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 3; padding: 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
#projectAdvanced .project-drawer-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; }
#projectAdvanced .project-drawer-heading button { min-height: 40px; margin: 0; }
#projectAdvanced .project-advanced-body { display: grid; gap: 24px; padding: 24px; }
#projectAdvanced .project-advanced-body > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
#projectAdvanced .project-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#projectAdvanced .project-form-grid label { font-size: 12px; }
#projectAdvanced .project-form-grid :is(input:not([type=checkbox]),select) { min-height: 40px; width: 100%; margin: 0; }
#projectAdvanced .project-quick-filters { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
#projectAdvanced .project-quick-filters > * { min-height: 40px; margin: 0; }
#projectAdvanced .project-quick-filters > .project-multiselect { gap: 0; }
#projectAdvanced .project-quick-filters > .project-multiselect > span { display: none; }
#projectAdvanced .project-quick-filters input[role=switch] { appearance: none; display: inline-block; flex: 0 0 36px; width: 36px; height: 20px; min-height: 20px; margin: 0; padding: 2px; border: 0; border-radius: 10px; background: var(--muted); vertical-align: middle; cursor: pointer; transition: background-color .15s; }
#projectAdvanced .project-quick-filters input[role=switch]::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transform: translateX(0); transition: transform .15s; }
#projectAdvanced .project-quick-filters input[role=switch]:checked { background: var(--accent); }
#projectAdvanced .project-quick-filters input[role=switch]:checked::before { transform: translateX(16px); }
#projectAdvanced .project-quick-filters input[role=switch]:disabled { cursor: default; opacity: .55; }
#projectAdvanced .project-quick-filters .project-check { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; font-size: 13px; }
#projectAdvanced .project-quick-filters > button { min-height: 40px; font-size: 12px; }
#projectAdvanced input:is([type=checkbox],[type=radio]) { width: 16px; height: 16px; min-height: 0; margin: 0; flex: 0 0 16px; accent-color: var(--accent); }
#projectAdvanced .project-filter-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
#projectAdvanced .project-filter-flags > .project-check { min-height: 40px; font-size: 12px; }
#projectAdvanced .project-exclusions { margin: 0; border-color: var(--line); }
#projectAdvanced .project-exclusions > summary { font-size: 13px; }
#projectAdvanced .project-exclusion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#projectAdvanced .project-exclude-choice label { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 8px 4px; font-size: 12px; }
#projectAdvanced .project-status-options { background: var(--surface); color: var(--ink); z-index: 5; }
#projectAdvanced .project-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
#projectAdvanced .project-actions button { min-height: 40px; }

@media(min-width:1800px) {
  .project-overview .project-overview-metrics { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 16px; }
  .project-overview .project-stat-main { padding-inline: 16px; }
  .project-overview .project-completed-label { left: 16px; max-width: calc(100% - 40px); }
}
@media(max-width:1200px) {
  .project-overview .project-filter-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr); }
  .project-overview .project-filter-buttons { grid-column: 1 / -1; justify-content: flex-end; }
  .project-overview .project-owner-row { grid-template-columns: 140px minmax(0,1fr) 40px minmax(150px,190px); gap: 12px; }
}
@media(max-width:900px) {
  .project-overview .project-heading { flex-wrap: wrap; }
  .project-overview .project-header-actions { margin-left: auto; }
  .project-overview .project-filter-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-overview .project-filter-main > :first-child { grid-column: 1 / -1; }
  .project-overview .project-filter-buttons { grid-column: 1 / -1; }
  .project-overview .project-overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-overview .project-owner-row { grid-template-columns: 140px minmax(0,1fr) 40px; }
  .project-overview .project-owner-sizes { grid-column: 2 / -1; text-align: left; margin-top: -8px; }
  .project-overview .project-table-tools > .project-page { flex-basis: 100%; }
}
@media(max-width:800px) {
  .project-overview .project-operational-table { display: table; }
  .project-overview .project-operational-table thead { display: table-header-group; }
  .project-overview .project-operational-table tbody { display: table-row-group; }
  .project-overview .project-operational-table tr { display: table-row; border: 0; padding: 0; }
  .project-overview .project-operational-table td { display: table-cell; padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .project-overview .project-operational-table td::before { display: none; content: none; }
  .project-overview .project-review-row { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
  .project-overview .project-review-row > div:first-child { flex-basis: 100%; }
  .project-overview .project-review-actions { justify-content: flex-start; }
}
@media(max-width:600px) {
  .project-workspace.project-overview { gap: 16px; }
  .project-overview > [data-project-results] { gap: 16px; }
  .project-overview .project-heading h1 { font-size: 24px; }
  .project-overview .project-heading p { font-size: 12px; }
  .project-overview .project-header-actions { justify-content: flex-start; margin: 0; width: 100%; }
  .project-overview .project-refresh-block { justify-items: start; }
  .project-overview .project-overview-card, .project-overview .project-filters { padding: 16px; }
  .project-overview .project-filter-main { gap: 12px; }
  .project-overview .project-filter-buttons { justify-content: flex-start; flex-wrap: wrap; }
  .project-overview .project-filter-buttons > button, .project-overview .project-filter-buttons > .project-savedmenu { flex: 1 1 auto; }
  .project-overview .project-filter-buttons > .project-savedmenu > button { width: 100%; }
  .project-overview .project-filter-main input:not([type=checkbox]) { font-size: 16px; }
  .project-overview .project-saved-options { right: auto; left: 0; min-width: min(280px,calc(100vw - 64px)); }
  .project-overview .project-overview-metrics { gap: 12px; }
  .project-overview .project-stat-main { min-height: 130px; padding: 24px 12px 16px; }
  .project-overview .project-stat-label { font-size: 11px; max-width: calc(100% - 8px); }
  .project-overview .project-completed-label { left: 12px; max-width: calc(100% - 40px); }
  .project-overview .project-info { right: 6px; top: 6px; }
  .project-overview .project-stat-value { font-size: 32px; }
  .project-overview .project-section-heading h2 { font-size: 18px; }
  .project-overview .project-composition-legend, .project-overview .project-owner-legend { gap: 8px 12px; font-size: 11px; }
  .project-overview .project-owner-row { grid-template-columns: minmax(0,1fr) 40px; gap: 8px 12px; }
  .project-overview .project-owner-row > :first-child { grid-column: 1; }
  .project-overview .project-owner-count { grid-column: 2; grid-row: 1; }
  .project-overview .project-owner-bar { grid-column: 1 / -1; grid-row: 2; }
  .project-overview .project-owner-sizes { grid-column: 1 / -1; margin-top: 0; }
  .project-overview .project-table-card .project-view-tabs { gap: 16px; }
  .project-overview .project-view-tabs > button { flex: 0 1 auto; }
  .project-overview .project-page { align-items: flex-start; }
  .project-overview .project-page-controls { gap: 8px; }
  .project-overview .project-page-controls > label { font-size: 11px; }
  .project-overview .project-start-review-panel { padding: 16px; }
  .project-overview .project-start-review-panel .project-section-heading > button { margin-left: 0; }
  .project-overview .project-start-review-actions { gap: 8px; }
  .project-overview .project-start-review-actions > strong { flex-basis: 100%; }
  .project-overview .project-review-actions > button { padding-inline: 8px; }
  .project-overview .project-table :is(th,td) { padding: 12px; }
  #projectAdvanced .project-drawer-heading, #projectAdvanced .project-advanced-body { padding: 16px; }
  #projectAdvanced .project-form-grid, #projectAdvanced .project-exclusion-grid { grid-template-columns: 1fr; }
  #projectAdvanced .project-form-grid :is(input:not([type=checkbox]),select) { font-size: 16px; }
  #projectAdvanced .project-quick-filters { gap: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .project-overview button, #projectAdvanced button { transition: none; }
  #projectAdvanced .project-quick-filters input[role=switch], #projectAdvanced .project-quick-filters input[role=switch]::before { transition: none; }
}
/* Start validation extends the existing project dialog and semantic palette. */
.project-start-logistics{display:grid;gap:16px;margin:20px 0}
.project-start-logistics label{display:grid;gap:6px;margin:0;font-size:13px;font-weight:700}
.project-start-logistics select{width:100%;min-height:44px;margin:0;color:var(--ink);background:var(--surface)}
.project-start-logistics fieldset{display:grid;gap:16px;padding:16px;border:1px solid var(--line);border-radius:8px;margin:0;min-width:0}
.project-start-logistics fieldset[hidden]{display:none}
.project-start-logistics legend{padding:0 6px;font-size:13px;font-weight:700}
.project-start-logistics .project-review-help{margin:0;font-size:12px;line-height:1.65;color:var(--muted)}
.project-start-logistics-summary{display:block;margin-top:6px;color:var(--muted);line-height:1.6}
.project-start-logistics :focus-visible{outline:2px solid var(--focus);outline-offset:3px}
