/* Reference screen: restrained navigation and a consistent execution register. */
:root{--instrument-hover:rgba(151,169,187,.055);--instrument-success:#91bfa9;--instrument-warning:#d9b573;--instrument-danger:#e99a9a}
html[data-theme="light"]{--instrument-hover:#f4f7f9;--instrument-success:#276749;--instrument-warning:#855c14;--instrument-danger:#ac3440}
html[data-theme] :is(.sidebar nav,.section-tabs,.settings-grid,.account-dropdown,.topbar) .icon[data-icon]{color:var(--muted);stroke-width:1.55}
html[data-theme] :is(.nav-item.active,.section-tabs button.active) .icon[data-icon]{color:var(--accent)}
html[data-theme] .sidebar .nav-item{font-size:13px;line-height:1.5;border-radius:3px;margin-bottom:4px}
html[data-theme] .sidebar .nav-item.active{background:rgba(100,185,194,.08);color:var(--text);box-shadow:inset 2px 0 var(--accent)}
.workspace-label{letter-spacing:1px;font-size:10px}
.section-navigation{margin-bottom:26px}
html[data-theme] .section-tabs button{font-size:13px;padding:9px 12px}
html[data-theme] .section-tabs button.active{background:transparent;border-color:transparent;border-bottom-color:var(--accent);border-radius:0}
.section-tabs .trash-navigation{font-size:12px;opacity:.85}
.execution-view{min-width:0;max-width:1600px;margin:0 auto}
.execution-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}
.execution-heading h1,.catalog-heading h1{font-size:28px;line-height:1.3;font-weight:600;letter-spacing:-.5px}
.execution-heading p,.catalog-heading p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}
.execution-heading .primary{font-size:13px;min-height:40px;padding:10px 16px;border-radius:3px}
.execution-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.execution-toolbar>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--muted);font-size:11px;flex:1 1 150px}
.execution-toolbar>label:nth-child(2){flex:1.3 1 190px}
.execution-toolbar input,.execution-toolbar select{font-size:13px;min-height:40px;width:100%;border-radius:3px}
.execution-toolbar>.execution-search{position:relative;display:block;flex:2 1 250px}
.execution-search>.icon{position:absolute;left:12px;top:11px;width:17px;height:17px;color:var(--muted)}
.execution-search input{padding-left:38px}
html[data-theme] .execution-reset{background:transparent;border-color:transparent;color:var(--muted);min-height:40px;font-size:12px}
.execution-summary{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:16px 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.execution-summary strong{font-weight:500;color:var(--text);margin-left:6px}
.execution-summary .execution-attention{color:var(--instrument-warning)}
.execution-timezone{margin-left:auto;font-size:11px}
.execution-table{border:1px solid var(--line);border-radius:4px;background:var(--panel)}
.execution-table table{width:100%;min-width:900px;table-layout:fixed}
.execution-table th{font-size:11px;line-height:1.5;text-transform:none;letter-spacing:.15px;font-weight:500;padding:13px 16px;background:transparent;color:var(--muted)}
.execution-table td{padding:16px;font-size:13px;line-height:1.6;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.execution-table th:nth-child(1){width:29%}
.execution-table th:nth-child(2){width:20%}
.execution-table th:nth-child(3){width:13%}
.execution-table th:nth-child(4){width:17%}
.execution-table th:nth-child(5){width:13%}
.execution-table th:nth-child(6){width:8%}
.execution-table tbody tr:last-child td{border-bottom:0}
.execution-table tbody tr:hover,.execution-table tbody tr:focus-within{background:var(--instrument-hover)}
html[data-theme] .execution-table .work-link{display:block;background:transparent;color:var(--text);font-size:14px;font-weight:500;line-height:1.55;border:0;padding:0;margin-top:4px;text-align:left}
html[data-theme] .execution-table .work-link:hover{color:var(--accent)}
.execution-reference{display:block;font-size:10px;line-height:1.5;color:var(--muted);font-family:Consolas,monospace;letter-spacing:.25px}
.execution-table td small{font-size:11px;line-height:1.6;margin-top:5px;color:var(--muted)}
.execution-location{font-size:12px!important;color:var(--muted)}
.execution-dates{font-variant-numeric:tabular-nums;font-size:12px!important}
.execution-table .execution-late{color:var(--instrument-danger)}
.execution-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.5;color:var(--muted)}
.execution-status::before{content:"";width:5px;height:5px;flex-shrink:0;background:currentColor;border-radius:50%}
.execution-status.active,.execution-status.review{color:var(--accent)}
.execution-status.rework{color:var(--instrument-warning)}
.execution-status.done{color:var(--instrument-success)}
.execution-priority{font-size:11px;color:var(--muted)}
.execution-priority.high{color:var(--instrument-warning)}
.execution-priority.critical{color:var(--instrument-danger)}
.execution-empty{padding:48px 24px;text-align:center}
.execution-empty h2{font-size:16px;font-weight:500}
.execution-empty p{font-size:13px;color:var(--muted);line-height:1.7;max-width:460px;margin:10px auto 0}
.execution-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.catalog-heading .eyebrow{display:none}
.catalog-feedback:empty{min-height:0;margin:0;padding:0}
.catalog-toolbar{padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px}
.catalog-toolbar input,.catalog-toolbar select{font-size:13px;min-height:40px;border-radius:3px}
html[data-theme] .catalog-row{background:transparent;border-radius:0;font-size:13px;padding:16px;border-left:0;border-right:0}
.catalog-row strong{font-size:14px;font-weight:500;line-height:1.6}
.catalog-row>span{font-size:11px;font-family:Consolas,monospace;color:var(--muted);overflow-wrap:anywhere}
html[data-theme] .catalog-row-head{background:transparent;color:var(--muted)}
.catalog-row-head>span{font-family:inherit;font-size:11px;text-transform:none;letter-spacing:0}
.catalog-actions button{font-size:13px;border-radius:3px}
@media(max-width:700px){.execution-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}.execution-heading h1,.catalog-heading h1{font-size:24px}.execution-toolbar>.execution-search{flex-basis:100%}.execution-toolbar>label:nth-child(2){flex-basis:100%}.execution-table table{min-width:850px}.execution-summary{gap:12px}.execution-timezone{margin-left:0}.execution-heading .primary{min-height:42px}}

/* PPR editor uses the same typography, spacing and state colors as the register. */
.task-editor{max-width:1280px;margin:0 auto}
.task-editor .task-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px 22px;align-items:center;padding:0 0 24px}
.task-header>[data-task-close]{grid-column:1/-1;justify-self:start;font-size:12px}
.task-header>.task-heading-main{min-width:0}
.task-header .eyebrow{color:var(--muted);font:11px/1.5 Consolas,monospace;letter-spacing:.4px;margin-bottom:6px}
.task-header h1{font-size:28px;font-weight:600;letter-spacing:-.5px;line-height:1.35}
.task-header p{font-size:12px;line-height:1.7;margin-top:8px;max-width:760px}
.task-editor .task-stage{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;white-space:nowrap;padding:0;color:var(--muted)}
.task-stage::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.task-editor .task-stage[data-stage="review"],.task-editor .task-stage[data-stage="active"]{color:var(--accent)}
.task-editor .task-stage[data-stage="approved"]{color:var(--instrument-success)}
.task-editor .task-stage[data-stage="rework"]{color:var(--instrument-warning)}
.task-editor .task-actions{margin:0;gap:8px;align-items:center;flex-wrap:nowrap}
.task-actions button{min-height:40px;font-size:13px;padding:10px 16px;border-radius:3px}
.task-editor .task-more>summary{min-width:40px;min-height:40px;line-height:34px;color:var(--muted)}
.task-more>div{min-width:245px;max-width:calc(100vw - 40px)}
.task-more button{font-size:12px;line-height:1.5;white-space:normal}
.task-editor .task-feedback{font-size:12px;line-height:1.6;color:var(--muted);min-height:0;padding:10px 0}
.task-editor .task-feedback:empty{padding:0;min-height:0}
.task-parameters{padding:0;border-bottom:1px solid var(--line)}
.task-parameters>summary{gap:20px;padding:20px 0}
[data-parameter-summary]{display:flex;flex-wrap:wrap;gap:18px 40px;min-width:0}
.task-meta-cell{display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.task-meta-cell small{font-size:11px;line-height:1.5;color:var(--muted)}
.task-parameters>summary>span:last-child{font-size:12px;color:var(--muted)}
.task-parameters>summary:hover>span:last-child{color:var(--accent)}
.task-editor .task-settings{border:0;border-top:1px solid var(--line);background:transparent;border-radius:0;padding:20px 0;margin:0;gap:18px}
.task-editor .task-instructions{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0 0 26px;padding:16px 0}
.task-editor .task-instructions>summary{font-size:12px;line-height:1.6}
.task-editor .task-columns{grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:28px;margin:0}
.task-editor .task-columns.task-single{grid-template-columns:minmax(0,1fr)}
.task-editor .task-single .task-detail{max-width:none;justify-self:stretch}
.task-editor .task-detail{padding:26px 28px;border:1px solid var(--line);border-radius:4px;background:var(--panel)}
.task-editor .task-roster{padding:0 20px 0 0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent}
.task-roster header h3{font-size:13px;font-weight:500}
.task-roster header p{font-size:11px;color:var(--muted);margin:8px 0 18px}
.task-roster>input,.task-roster>select{font-size:12px;min-height:38px}
html[data-theme] .task-item{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 10px;color:var(--text)}
html[data-theme] .task-item.active{background:var(--instrument-hover);box-shadow:inset 2px 0 var(--accent);color:var(--text)}
.task-item span{font-size:13px;font-weight:500;line-height:1.6}
.task-item small,.task-item em{font-size:11px;line-height:1.6}
.inspection-caption{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:8px;font-variant-numeric:tabular-nums}
.task-detail>header{padding-bottom:20px;margin-bottom:22px}
.task-detail h2{font-size:20px;font-weight:500;line-height:1.5;letter-spacing:-.2px;overflow-wrap:anywhere}
.task-detail>header p{font-size:12px;line-height:1.7;max-width:800px}
.task-editor label{font-size:12px;line-height:1.6;gap:8px}
.task-editor :is(input:not([type="checkbox"]),select,textarea){font-size:13px;border-radius:3px;min-height:40px}
.task-editor textarea{line-height:1.8;padding:12px;min-height:110px}
.task-editor .task-state-fields{gap:20px;margin-bottom:24px}
.task-editor .task-checklist-heading h3{font-size:13px;font-weight:500}
.task-editor .task-check{font-size:13px;line-height:1.6;padding:12px 0}
.task-editor .task-check input{width:17px;height:17px;min-height:0}
.task-editor .task-notes{margin:24px 0}
.task-editor .task-muted{font-size:12px;line-height:1.7;color:var(--muted)}
.task-editor .task-item-files{padding-top:16px;margin-top:22px}
.task-editor :is(.task-item-files,.task-comments-fold)>summary{font-size:12px;line-height:1.6;padding:4px 0}
.task-editor .task-comments-fold{max-width:none;margin:22px 0 0;padding:16px 0;border-top:1px solid var(--line)}
.task-editor .task-discussion{max-width:none;margin:16px 0 0;padding:20px 0;border:0;border-top:1px solid var(--line);background:transparent;border-radius:0}
.task-discussion>h3{display:none}
.task-comments p{font-size:13px;line-height:1.8}
.task-comments small{font-size:11px}
.task-discussion form{max-width:800px}
.task-discussion form button{justify-self:start;min-width:130px;font-size:13px}
.task-editor .task-return{padding:16px;border:1px solid var(--line);border-left:2px solid var(--instrument-warning);border-radius:3px}
.task-editor .task-upload input::file-selector-button{font:inherit;padding:6px 10px;margin-right:12px;border:1px solid var(--line);border-radius:3px;background:var(--panel);color:var(--text);cursor:pointer}
@media(max-width:900px){.task-editor .task-header{grid-template-columns:minmax(0,1fr) auto}.task-editor .task-heading-main{grid-column:1/-1}.task-editor .task-actions{justify-self:end;width:auto}.task-editor .task-columns{grid-template-columns:220px minmax(0,1fr);gap:18px}.task-editor .task-detail{padding:20px}.task-editor .task-settings{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.task-header h1{font-size:24px}.task-editor .task-columns{grid-template-columns:minmax(0,1fr)}.task-editor .task-roster{border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px}.task-roster [data-task-items]{max-height:240px}.task-editor .task-state-fields{grid-template-columns:1fr;gap:16px}.task-parameters>summary{align-items:flex-start;flex-wrap:wrap}[data-parameter-summary]{gap:16px 24px}.task-editor .task-detail{padding:18px}.task-editor .task-settings{grid-template-columns:1fr}.task-settings .task-title{grid-column:auto}.task-editor .task-actions button{padding:10px 12px;font-size:12px}.task-editor .task-return{flex-direction:column}}

/* Places: a compact explorer and a restrained detail pane. */
main:is([data-workspace-view="hierarchy"],[data-workspace-view="calendar"])>.section-navigation{margin-bottom:22px}
main:is([data-workspace-view="hierarchy"],[data-workspace-view="calendar"]) .page-heading .eyebrow{display:none}
main:is([data-workspace-view="hierarchy"],[data-workspace-view="calendar"]) .page-heading h1{font-size:28px;line-height:1.3;letter-spacing:-.5px}
main:is([data-workspace-view="hierarchy"],[data-workspace-view="calendar"]) .page-heading p{font-size:13px;color:var(--muted);line-height:1.6}
.structure-manager{border:0;padding:0;background:transparent;border-radius:0}
.structure-manager>header p{font-size:12px;line-height:1.6;margin:0 0 18px}
.structure-tools{margin:0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px}
.structure-tools>input{font-size:13px;min-height:40px}
.structure-tools>label{font-size:12px}
.structure-tools>button{font-size:12px;min-height:40px;border-radius:3px}
html[data-theme] .structure-tools [data-structure-refresh]{background:transparent;border-color:transparent;color:var(--muted)}
.structure-status{min-height:20px;font-size:12px;padding:8px 0;line-height:1.6}
.structure-status:empty{padding:0}
.structure-manager-grid{grid-template-columns:minmax(280px,1fr) minmax(0,1.7fr);gap:28px}
.structure-tree-panel{border-radius:3px;background:transparent}
.structure-tree-panel [data-structure-tree]{padding:10px}
html[data-theme] .structure-manager .structure-node{font-size:13px;min-height:36px;padding:7px 8px}
.structure-node>.place-name{font-size:13px;line-height:1.5}
.structure-node small{font-size:11px}
.place-counts{font-size:11px;font-weight:400}
.place-icon{opacity:.9}
html[data-theme] .structure-manager .structure-node.active{border-color:var(--line);background:var(--instrument-hover);box-shadow:inset 2px 0 var(--accent)}
.structure-card{padding:22px 24px;border:1px solid var(--line);border-radius:3px;background:var(--panel)}
.structure-card>h3{font-size:18px;line-height:1.5;font-weight:500}
.place-crumbs{margin:10px 0 22px;gap:4px;line-height:1.6}
html[data-theme] .place-crumbs button{color:var(--muted);font-size:11px;background:transparent;border:0}
html[data-theme] .place-crumbs button:hover{color:var(--accent)}
.structure-form fieldset{padding:0}
.structure-form label{font-size:12px;line-height:1.6;margin-bottom:18px}
.structure-form :is(input,select,textarea){font-size:13px;min-height:40px;border-radius:3px}
.structure-card-actions{gap:10px;margin:18px 0;align-items:center}
.structure-card-actions button{font-size:12px;min-height:38px}
html[data-theme] .structure-card-actions [data-cancel-card]{border-color:transparent;background:transparent;color:var(--muted)}
.structure-more{position:relative;margin-left:auto}
.structure-more>summary{font-size:12px;color:var(--muted);cursor:pointer;padding:10px 0}
.structure-more>div{position:absolute;right:0;top:100%;z-index:10;min-width:180px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:3px;box-shadow:0 8px 20px #0003}
html[data-theme] .structure-more button{display:block;width:100%;text-align:left;border:0;background:transparent}
html[data-theme] .structure-more button:hover{background:var(--instrument-hover)}
.structure-related,.structure-history{padding-top:16px;margin-top:20px}
.structure-related>summary,.structure-history>summary{font-size:12px;color:var(--muted);cursor:pointer;padding:2px 0}
.structure-related>label{display:flex;align-items:center;gap:8px;font-size:12px;margin:16px 0}
.structure-related>label input{width:auto}
html[data-theme] .structure-related button{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:12px 0;font-size:13px}
.structure-history p{font-size:12px;line-height:1.7}
.structure-manager summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Calendar: neutral cells, readable events, a bounded agenda. */
main[data-workspace-view="calendar"] .metrics{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;margin-bottom:20px}
main[data-workspace-view="calendar"] .metrics article{padding:16px 20px;background:transparent}
main[data-workspace-view="calendar"] .metrics article:first-child{padding-left:0}
main[data-workspace-view="calendar"] .metrics article>span{font-size:11px;line-height:1.6}
main[data-workspace-view="calendar"] .metrics strong{font-size:22px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums}
main[data-workspace-view="calendar"] .metrics small{display:none}
main[data-workspace-view="calendar"] .filters{gap:12px;margin-bottom:20px}
main[data-workspace-view="calendar"] .filters :is(input,select){font-size:13px;min-height:40px}
main[data-workspace-view="calendar"] .filters .scope{display:none}
.calendar-layout{grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}
.calendar{border-radius:3px;overflow-x:auto}
.calendar .panel-toolbar{padding:18px 16px;gap:12px}
.month-controls{gap:8px;flex-wrap:wrap}
.month-controls h2{font-size:17px;line-height:1.5;font-weight:500;margin-right:12px}
.month-controls button{min-height:34px;font-size:12px;border-radius:3px}
.calendar-mode{font-size:10px;background:transparent;color:var(--muted);padding:0;white-space:nowrap}
.weekdays{font-size:11px;font-weight:400;color:var(--muted);padding:12px 0}
.calendar-grid,.weekdays{min-width:630px}
.calendar .day{min-height:122px;padding:8px;background:transparent}
html[data-theme] .calendar .day.outside{background:var(--instrument-hover)}
html[data-theme] .calendar .day.today{background:rgba(100,185,194,.035)}
.calendar .day.selected-day{box-shadow:inset 0 0 0 1px var(--accent)}
html[data-theme] .calendar .day-number{font-size:12px;line-height:1.4;min-width:27px;min-height:27px;background:transparent;color:var(--text);padding:4px;margin-bottom:8px}
html[data-theme] .calendar .outside .day-number{color:var(--muted)}
html[data-theme] .calendar .today .day-number{background:var(--accent);color:var(--bg)}
html[data-theme] .calendar .event{border:0;border-left:2px solid var(--line);border-radius:2px;background:var(--instrument-hover);color:var(--text);padding:6px 7px;margin-bottom:6px}
html[data-theme] .calendar .event.high{border-left-color:var(--instrument-warning)}
html[data-theme] .calendar .event.critical{border-left-color:var(--instrument-danger)}
html[data-theme] .calendar .event.completed{border-left-color:var(--instrument-success);opacity:.7}
html[data-theme] .calendar .event:hover{background:rgba(130,149,174,.14)}
.calendar .event span{font-size:10px;line-height:1.5;color:var(--muted)}
.calendar .event strong{font-size:11px;line-height:1.5;font-weight:500;margin-top:3px}
.calendar .more{font-size:11px;line-height:1.5;color:var(--muted)}
.calendar .legend{font-size:10px;padding:14px 16px;gap:18px;flex-wrap:wrap}
.calendar .legend i.normal{background:var(--muted)}
.calendar .legend i.high{background:var(--instrument-warning)}
.calendar .legend i.critical{background:var(--instrument-danger)}
.agenda.agenda-compact{display:block;border-radius:3px}
.agenda-compact>header{padding:18px 16px}
.agenda-compact h2{font-size:14px;line-height:1.5;font-weight:500}
.agenda-compact>header>span{font-size:12px;font-variant-numeric:tabular-nums}
.agenda-controls{padding:12px 16px;border-bottom:1px solid var(--line)}
.agenda-controls p{font-size:11px;margin-bottom:0}
.agenda-controls button{font-size:11px;margin-top:8px}
.agenda-date{font-size:11px;line-height:1.5;padding:14px 16px 6px}
.agenda-work-summary strong{font-size:13px;line-height:1.6;font-weight:500}
.agenda-work-summary small{font-size:11px;line-height:1.5}
.agenda-compact-item time{font-size:11px;line-height:1.6}
.agenda-pagination{font-size:11px}
@media(max-width:1250px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.agenda.agenda-compact{display:block}.structure-manager-grid{grid-template-columns:minmax(250px,1fr) minmax(0,1.4fr);gap:20px}}
@media(max-width:900px){.structure-manager-grid{grid-template-columns:1fr}.structure-tree-panel{max-height:40vh}.structure-card{padding:20px}}
@media(max-width:700px){main:is([data-workspace-view="hierarchy"],[data-workspace-view="calendar"]) .page-heading h1{font-size:24px}.structure-tools>input{flex-basis:100%}.structure-card{padding:18px}.structure-more{margin-left:0}.structure-more>div{left:0;right:auto}.calendar .panel-toolbar{padding:14px}.calendar-mode{display:none}main[data-workspace-view="calendar"] .metrics article{padding:12px}main[data-workspace-view="calendar"] .metrics article:first-child{padding-left:12px}.structure-card-actions>button{flex:initial;min-width:0}}

/* Give root objects room without inflating the nested tree. */
.structure-tree-panel [data-structure-tree]{padding:16px 14px}
[data-structure-tree]>.place-branch+.place-branch{margin-top:16px;padding-top:16px}
html[data-theme] .structure-manager .structure-node[data-node-type="site"]{min-height:48px;padding:12px 10px}
.structure-node[data-node-type="site"] .place-counts{margin-left:12px}
[data-structure-tree]>.place-branch>.structure-unit-nodes{margin-top:8px;margin-bottom:12px}
@media(max-width:600px){.structure-tree-panel [data-structure-tree]{padding:12px 10px}[data-structure-tree]>.place-branch+.place-branch{margin-top:12px;padding-top:12px}}
