/* Window: content groups, split view, field rows, Review Changes, the settings form (ADR-025), the window component, Home, tiles, value cells and the ordered list.
   Loaded after table.css (the order is in base.css). */
/* ---------- Content ---------- */
.page-heading{margin-bottom:24px;max-width:950px}
.page-heading h1{margin-top:2px}
/* Group: a white inset list with 10px corners and a hairline ring. */
.surface,.widget,.group{background:var(--window);border:0;border-radius:var(--r-lg);box-shadow:var(--shadow-card)}
.group{overflow:hidden}
.widget{padding:14px;min-width:0}
.workspace-card{display:flex;gap:12px;align-items:center;margin-top:12px;border:0;padding:12px 14px;border-radius:var(--r-lg);background:var(--window);box-shadow:var(--shadow-card)}
.workspace-card strong{font-size:var(--text-base);font-weight:600}
.workspace-card>span:last-child{margin-left:auto;color:var(--tertiary)}
.workspace-card:hover{background:var(--fill-2);text-decoration:none}
.empty-state{font-size:var(--text-base);color:var(--label-2);padding:14px}
.page-search{display:block;max-width:340px;margin:0 0 20px}
.page-search>span{font-size:var(--text-xs);font-weight:600;color:var(--tertiary);display:block;margin-bottom:4px}
.page-search input{margin:0}
/* Object chooser: a label and a Combo Box above the content they filter. */

/* Split view (Operation): current data on the left, read-only on the pane
   ground; proposed changes on the right; a 6px divider with a grip. */
.split-mode .shell-main{max-width:none}
.split-view{display:grid;grid-template-columns:minmax(0,1fr) 6px minmax(0,1fr);align-items:stretch;border-radius:var(--r-xl);overflow:hidden;background:var(--window);box-shadow:var(--shadow-card)}
.split-panel{min-width:0;background:var(--window);padding:14px 16px;overflow:auto}
.current-panel{background:var(--page)}
.panel-heading{margin:0 0 8px}
.panel-heading h2{font-size:var(--text-base);font-weight:600;margin:0}
.panel-heading .eyebrow{margin:0 0 8px}
.panel-heading p:last-child{margin-bottom:0}
.current-panel h2{font-size:var(--text-base)}
.split-divider{position:relative;cursor:col-resize;background:var(--group-line);touch-action:none;user-select:none;color:transparent;overflow:hidden}
.split-divider::after{content:"";position:absolute;left:2px;top:50%;width:2px;height:28px;margin-top:-14px;border-radius:2px;background:var(--tertiary)}
.split-divider:hover,.split-divider:focus-visible{background:var(--line-strong)}
.panel-tabs{display:none}
/* Field rows of a form sheet: label 150px, control, error and hint below. */
.current-values{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 12px;margin:0 0 14px;align-items:baseline}
.current-values dt{font-size:var(--text-base);color:var(--label-2);padding:6px 0}
.current-values dd{margin:0;padding:6px 0;font-size:var(--text-base);overflow-wrap:anywhere}
.proposed-panel form>p,.proposed-panel fieldset~p{color:var(--label-2);font-size:var(--text-sm);line-height:1.5}
.proposed-panel form>button{margin-top:12px}
/* Review Changes: the old value muted, the new one in accent. */
td.new,.value-new{color:var(--accent-text);font-weight:500}
.value-old{color:var(--label-2)}
.table-scroll table{min-width:480px}
/* A short comparison of figures - was and will be - fits a phone (PA-OPS-068). */
.table-scroll table.figures-fit{min-width:0}
.table-scroll table.figures-fit :is(th,td){white-space:normal}
.table-scroll td:not(.actions-cell){overflow-wrap:anywhere}

.admin-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-block:16px}
.admin-search label{flex:1;min-width:160px;margin:0}
.admin-search a{padding-block:8px}

/* Framework system fields: Created By/On, Last Modified By/On. */
.record-stamps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 16px;margin:16px 0 0;padding:12px 0 0;border-top:var(--hairline-w) solid var(--group-line);font-size:var(--text-sm)}
.record-stamps div{min-width:0}
.record-stamps dt{color:var(--label-2);font-size:var(--text-xs);margin:0 0 2px}
.record-stamps dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* A form window shows the audit stamps of its record in a thin strip between
   the form and the button footer, whichever section is selected: one quiet
   line, Created then Last Modified; it wraps on a phone (ADR-025). */
.record-stamps-line{display:flex;flex-wrap:wrap;gap:1px 22px;margin:0;font-size:var(--text-xs);line-height:1.45;color:var(--label-2);font-variant-numeric:tabular-nums}
.record-stamps-line>span{white-space:nowrap}
.record-stamps-line .stamp-label{color:var(--tertiary)}
.business-content .intro{color:var(--label-2);font-size:var(--text-base)}
.business-content .secondary{margin-top:14px}
.settings-icon.desktop{background:var(--tile-forest)}
.settings-panes{padding:20px 28px 32px;min-width:0;background:var(--page)}
fieldset.settings-panes{border:0;border-radius:0;margin:0}
.settings-pane h3{margin:0 0 12px;font-size:var(--text-xl);font-weight:600}
@media(max-width:700px){.page-heading{margin-bottom:16px}
 .widget{padding:14px}
 .split-view{display:block!important}.split-divider{display:none}
 .js .panel-tabs{display:flex;width:max-content;max-width:100%;padding:2px;background:var(--fill);border-radius:7px;gap:2px;margin:0 0 12px}
 .panel-tabs button{flex:1;min-width:0;min-height:0;background:none;border:0;border-radius:var(--r-xs);padding:3px 10px;font-size:var(--text-sm);color:var(--label)}
 .panel-tabs button[aria-selected=true]{background:var(--window);box-shadow:0 1px 2px #00000026,0 0 0 .5px #0000000f}
 .js [data-active-panel=proposed] .current-panel,.js [data-active-panel=current] .proposed-panel{display:none}
 .current-values,.field{grid-template-columns:1fr}
 .page-search{max-width:none}.current-panel table{min-width:340px}
}
@media(max-width:600px){.admin-search label{flex-basis:100%}}

/* ---------- Settings form (ADR-025): sidebar + pane + footer window ---------- */
.settings-form{display:flex;flex-direction:column;height:calc(100vh - var(--bar) - 120px);min-height:460px;background:var(--window);border:1px solid var(--group-line);border-radius:var(--r-xl);box-shadow:var(--shadow-card);overflow:hidden}
.in-frame .settings-form{height:100vh;min-height:0;border:0;border-radius:0;box-shadow:none}
.in-frame .shell-main:has(.settings-form){padding:0;max-width:none}
.table-frame.own-footer>.settings-footer{display:none}
.settings-form .settings-titlebar{flex:none;gap:8px}
.settings-form .settings-titlebar h1{font-size:var(--text-base);font-weight:600;margin:0}
.settings-body{flex:1;min-height:0;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
/* A window of one section has no sidebar (FW-UI-248): its pane takes the width. */
.settings-body:not(:has(>.settings-side)){grid-template-columns:minmax(0,1fr)}
/* Sidebar of a window: card, search, section labels and items. */
.settings-side{background:var(--sunken);border-right:1px solid var(--group-line);padding:12px 10px;overflow:auto}
.window-search{display:block;width:100%;height:var(--control-sm);min-height:0;margin:0 0 6px;padding:3px 9px;border:var(--hairline-w) solid transparent;border-radius:var(--r-sm);background:var(--fill);font-size:var(--text-base);box-shadow:none}
.window-search:focus{background:var(--control);border-color:var(--accent)}
.settings-heading{margin:12px 8px 3px;font-size:var(--text-xs);font-weight:600;color:var(--tertiary)}
.settings-item{display:flex;align-items:center;gap:8px;width:100%;min-height:var(--control-h);margin:0;padding:4px 8px;border:0;border-radius:var(--r-sm);background:none;color:var(--label);font-size:var(--text-base);font-weight:400;text-align:left;cursor:pointer}
.settings-item:hover{background:var(--fill-2);text-decoration:none}
.settings-item[aria-selected=true],.settings-item[aria-current=page]{background:var(--menu-current);color:var(--on-menu-current)}
.settings-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.settings-item[aria-selected=true] .settings-dot{background:var(--on-menu-current)}
.window-count{margin-left:auto;color:var(--tertiary);font-size:var(--text-xs);font-variant-numeric:tabular-nums}
.settings-item:is([aria-selected=true],[aria-current=page]) :is(.window-count,.settings-count-badge){color:var(--on-accent)}
/* Pane of a window: head with a 34px tile, groups of rows. */
.settings-form .settings-pane,.settings-form .settings-panes>.settings-pane{overflow:auto;padding:20px 28px 32px;background:var(--page);min-width:0}
.settings-form .settings-pane h2{font-size:var(--text-xl);font-weight:600;margin:0}
.settings-card{background:var(--window);border:0;border-radius:var(--r-group);box-shadow:var(--shadow-card),0 .5px 1.5px #0000000a;margin:0 0 14px;overflow:hidden}
.settings-scroll{overflow-x:auto}
/* Row: 38px, label 200px left in ink, value or control right in muted;
   a hairline between rows, inset by 14px. The one row of every group. */
.settings-row{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:38px;margin:0;padding:7px 12px;font-size:var(--text-base);font-weight:400}
a.settings-row{color:var(--label)}
.settings-row+.settings-row::before{content:"";position:absolute;top:0;left:12px;right:0;border-top:var(--hairline-w) solid var(--group-line)}
.settings-row.top{align-items:flex-start}
.settings-row.top>label{padding-top:4px}
.settings-row>label,.settings-row>.settings-label{flex:none;width:200px;margin:0;color:var(--label);font-size:var(--text-base);font-weight:400}
.settings-row>label small,.settings-row>.settings-label small{display:block;color:var(--tertiary);font-size:var(--text-xs)}
.settings-row>div:not([popover]),.settings-row>.settings-value{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right;color:var(--label-2);overflow-wrap:anywhere}
/* A locked value and its lock stand in one line wherever a row draws them - a window, the list's inspector, a sheet
   (the PO 2026-11-19, R070690: «замки висят под назанием»; blind check: the inspector stacked them, 52 px rows). */
.settings-row>.settings-value:has(>.field-lock){flex-direction:row;align-items:center;justify-content:flex-end}
.settings-row>.settings-value>.field-lock{flex:none}
/* A value the reader decides on in the label's colour, as the mockup's `.v.ink` (a task's facts in To Do, FW-UI-288). */
.settings-row>.settings-value.ink,.inspector-body .settings-row>.settings-value.ink{color:var(--label)}
.settings-row :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.window-code-input,.object-code-input,.clearable,.combobox){width:min(320px,100%);max-width:none;margin:0}
/* A date with its calendar button takes the width of the other controls. */
.window.settings-form .settings-row .date-entry{width:min(320px,100%)}
.window.settings-form .settings-row .date-entry .clearable{width:auto}
.settings-row textarea{min-height:52px;resize:vertical}
.settings-row .clearable{display:flex}
.settings-row .clearable input{width:100%!important}
.settings-row.click{cursor:pointer}
.settings-row.click:hover{background:var(--fill-2)}
.settings-date{max-width:180px!important}
.settings-hint,.window-row-hint{flex-basis:100%;margin:2px 0 0;color:var(--tertiary);font-size:var(--text-xs);text-align:left}
.settings-was{display:block;margin-top:2px;color:var(--tertiary);font-size:var(--text-xs)}
.settings-row.is-changed::after{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:2px;background:var(--accent)}
/* In place (FW-FORMS-022): a value the reader may change reads as a value;
   pointed at, it shows its field with a pencil, and is typed in on click. */
form[data-inline-edit] .settings-row:not(.value-cells *)>div :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:transparent;background-color:transparent;text-align:right;cursor:text}
form[data-inline-edit] .settings-row:not(.value-cells *)>div select{cursor:pointer}
form[data-inline-edit] .settings-row:not(.value-cells *):not(:hover):not(:focus-within)>div select{appearance:none}
/* The translations globe always shows (FW-UI-068, PO: hover is not enough); :where keeps the rule as specific as before. */
form[data-inline-edit] .settings-row:not(.value-cells *):not(:hover):not(:focus-within)>div :is(.field-clear,.combobox-arrow,.date-calendar,.field-action:not(:where([data-globe-open]))){visibility:hidden}
form[data-inline-edit] .settings-row:not(.value-cells *):not(:hover):not(:focus-within)>div ::placeholder{color:transparent}
form[data-inline-edit] .settings-row:not(.value-cells *):is(:hover,:focus-within)>div :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--control-line);background-color:var(--control)}
form[data-inline-edit] .settings-row:not(.value-cells *)>div :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:var(--accent);text-align:right}
form[data-inline-edit] .settings-row:not(.value-cells *)>div:has([data-track])::after{content:"\270E";position:absolute;right:2px;top:50%;transform:translateY(-50%);color:var(--tertiary);font-size:var(--text-xs);opacity:0;pointer-events:none}
form[data-inline-edit] .settings-row:not(.value-cells *):hover:not(:focus-within)>div:has([data-track])::after{opacity:1}
/* Tables in place (FW-FORMS-023, mockup docs/design/record-inline-edit.html):
   a narrow Table is typed in its cells, quiet as the rows above; the bin at
   the right of a row, the plus under the last row on the left; a wide
   Table's row opens in the side panel over the right of the window body,
   whose edge peeks out with the row's name. */
form[data-inline-edit] .settings-body{position:relative}
.data-table td.ie-cell{padding-top:3px;padding-bottom:3px}
form[data-inline-edit] td.ie-cell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;margin:0;border-color:transparent;background-color:transparent}
form[data-inline-edit] tr:hover>td.ie-cell :is(input:not([type=checkbox]):not([type=radio]),select,textarea),form[data-inline-edit] td.ie-cell:focus-within :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--control-line);background-color:var(--control)}
form[data-inline-edit][data-inline-edit] :is(tr.is-new>td.ie-cell,[data-ie-new] .settings-row:not(.value-cells *)>div) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--control-line);background-color:var(--control);text-align:left}
form[data-inline-edit][data-inline-edit] table.grid.figures td.ie-cell :is(input:not([type=checkbox]):not([type=radio])),table.grid.figures td.ie-cell :is(input:not([type=checkbox]):not([type=radio])){text-align:right;font-variant-numeric:tabular-nums}
form[data-inline-edit][data-inline-edit] :is(tr.is-new>td.ie-cell,[data-ie-new] .settings-row:not(.value-cells *)>div) :is(.field-clear,.combobox-arrow,.date-calendar,.field-action){visibility:visible}
form[data-inline-edit][data-inline-edit] [data-ie-new] .settings-row:not(.value-cells *)>div ::placeholder{color:var(--tertiary)}
form[data-inline-edit] [data-ie-new] .settings-row:not(.value-cells *)>div:has([data-track])::after{content:none}
form[data-inline-edit] td.ie-cell :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:var(--accent);background-color:var(--control)}
form[data-inline-edit] tr:not(:hover)>td.ie-cell:not(:focus-within) :is(.field-clear,.combobox-arrow,.date-calendar,.field-action){visibility:hidden}
/* CalculatingTable «typed cells shown» (PA-FORMS-050, PO 2026-11-06 «редактируемую часть нужно подстветить»; accepted with the mockup, PA-FORMS-051): in edit state a figures table with read-only figures beside the typed ones shows its typed cells on the soft accent, their fields at all times - a plan's lines, and a Rate or Range Change's matrix as the mockup's fields (M10). */
form[data-inline-edit] table.grid.figures:is([data-plan-table],[data-rate-matrix]) td.ie-cell:has(input){background:var(--accent-soft)}
form[data-inline-edit] table.grid.figures:is([data-plan-table],[data-rate-matrix]) tr:hover>td.ie-cell:has(input){background:var(--accent-soft-strong)}
form[data-inline-edit] table.grid.figures:is([data-plan-table],[data-rate-matrix]) td.ie-cell :is(input:not([type=checkbox]):not([type=radio])){min-width:9ch;border-color:var(--control-line);background-color:var(--control)}
form[data-inline-edit] table.grid.figures:is([data-plan-table],[data-rate-matrix]) td.ie-cell :is(input:not([type=checkbox]):not([type=radio])):focus{border-color:var(--accent)}
form[data-inline-edit] tr:not(:hover)>td.ie-cell:not(:focus-within) ::placeholder{color:transparent}
.data-table tr.is-new td{background:var(--accent-soft)}
.data-table tr.is-removed td{color:var(--tertiary);text-decoration:line-through}
.data-table tr.is-changed td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
.data-table tr.is-failed td{color:var(--red-text)}
.ie-row-tool{width:26px;height:26px}
.data-table :is(td,th).ie-tools{width:1%;padding:2px 6px;text-align:right;white-space:nowrap}
/* A module window's table typed in place (WindowTable, PA-OPS-011): an amount stays readable in its cell */
.window-rows td.ie-cell input[type=number]{min-width:104px}
.data-table tr.ie-plus td,.owned-rows [role=list]>.ie-plus{height:auto;padding:1px 4px;border-bottom:0;line-height:0;text-align:left}
:is(.data-table tr.ie-plus,.owned-rows [role=list]>.ie-plus) .ie-row-tool{width:22px;height:22px}
.data-table tr.ie-plus:hover td{background:none}
.owned-rows .data-table:has(tr.ie-plus){margin-bottom:0}
table.ie-mode-panel tr.ie-row:not(.is-removed),table[data-ie-opens] tr.ie-row{cursor:pointer}
.data-table tr.ie-row.is-open td{background:var(--accent-soft)}
/* List rows (Employee Profile mockup, Family and Dependents; PA-FORMS-006):
   a Table drawn as lines of a list - a 30px avatar, the name over a muted
   line, a badge, the chevron; 38px rows with a hairline between them. A
   line opens its row: in the side panel, or its window. */
/* A section's row that opens (the mockup's .row.link, M13's CSS check): 36 px
   at least, 7/12 px inside, its name in the text's weight and its second
   line 11 px and quiet, a 9 px chevron; a link's name is the accent (the
   mockup's a.row.link), a person's row with its photo keeps the text's
   colour. On a phone 50 px and 11/16 px. */
.list-row{position:relative;display:flex;align-items:center;gap:12px;min-height:36px;padding:7px 12px;color:var(--label);text-decoration:none}
.list-row+.list-row::before{content:"";position:absolute;top:0;left:12px;right:0;border-top:var(--hairline-w) solid var(--field-line)}
:is(a.list-row,.list-row.ie-row:not(.is-removed)){cursor:pointer}
:is(a.list-row,.list-row.ie-row:not(.is-removed)):hover{background:var(--fill-hover);text-decoration:none}
a.list-row:not(:has(>.avatar)) .list-row-main>b{color:var(--accent-text)}
.list-row.is-open{background:var(--accent-soft)}
.list-row.is-changed{box-shadow:inset 3px 0 0 var(--accent)}
.list-row-main{flex:1;min-width:0}
.list-row-main b{display:block;font-weight:400;overflow-wrap:anywhere}
.list-row-main :is(small,.cell-sub){display:block;color:var(--label-2);font-size:11px}
.list-row.is-removed .list-row-main{color:var(--tertiary);text-decoration:line-through}
.list-row.is-failed .list-row-main{color:var(--red-text)}
.list-row .ie-tools{display:flex;flex:none}
.list-row-chevron{flex:none;display:grid;place-items:center;color:var(--label-3)}
.list-row-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.list-row>.list-row-chevron svg{width:9px;height:9px}
@media(max-width:700px){
 .list-row{min-height:50px;padding:11px 16px;gap:10px}
 .list-row+.list-row::before{left:16px}
 .list-row-main b{font:var(--type-ios-body)}
 .list-row-main :is(small,.cell-sub){line-height:1.29}
}
.ie-panel{position:absolute;top:0;right:0;bottom:0;width:min(440px,46%);display:flex;flex-direction:column;background:var(--window);border-left:var(--hairline-w) solid var(--group-line);border-radius:var(--r-xl) 0 0 var(--r-xl);overflow:hidden;box-shadow:var(--popover-shadow);z-index:5;transform:translateX(100%);transition:transform .22s ease-out}
.ie-panel.from-peek{transform:translateX(calc(100% - 28px))}
.ie-panel.is-open{transform:none}
.ie-panel-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:var(--hairline-w) solid var(--group-line)}
.ie-panel-head h3{flex:1;margin:0;font-size:var(--text-md)}
.ie-panel-body{flex:1;overflow:auto;padding:12px 14px}
.ie-panel-body .settings-card{margin:0}
.ie-panel-body>.window-note{margin:0 0 10px}
.ie-panel-body>.message{margin:0 0 12px}
.ie-panel[data-ie-state=edit] .ie-panel-head h3{text-align:center}
.ie-panel[data-ie-state=read] .icon-button+[data-ie-close]{position:relative;margin-left:9px}
.ie-panel[data-ie-state=read] .icon-button+[data-ie-close]::before{content:"";position:absolute;left:-10px;top:5px;bottom:5px;border-left:var(--hairline-w) solid var(--group-line)}
.ie-panel-head .is-save{background:var(--accent);color:var(--on-accent)}
.ie-panel-head .is-save:hover{background:var(--accent-hover);color:var(--on-accent)}
.ie-panel-body .settings-row>:is(label,.settings-label){width:140px}
/* Every side panel - the side pane, a record's row editor, a definition's
   catalogue - is the mockup's glass inspector (aside.inspector.wide; the PO
   2026-11-18, R156762, R322c03): 8 px inside its window, the material's
   glass and edge, the name in the Mac's title type with its line under it,
   the fields on white cards, the foot on the material over a hairline. */
@media(min-width:701px){
 .ie-panel{top:0;right:0;bottom:0;margin:var(--gap-window) var(--gap-window) var(--gap-window) 0;border:0;border-radius:var(--r-sidebar);background:var(--glass);box-shadow:var(--glass-shadow),inset 0 0 0 1px var(--glass-edge);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);transform:translateX(calc(100% + var(--gap-window)))}
 .ie-panel.is-open{transform:none}
 .ie-panel-head{padding:14px;border-bottom:0}
 .ie-panel-head h3{font:var(--type-mac-title)}
 .ie-panel-body{padding:0 14px 12px}
 .ie-panel .ie-panel-body .settings-card{margin:0 0 10px}
 .ie-panel-foot{background:inherit}
 /* A record's row editor stands beside the record from the window's top,
    as the mockup's row-pane: the toolbar and the column narrow by it. */
 .settings-body.is-column>.ie-panel{position:fixed;z-index:6}
 .settings-form:has(>.settings-body.is-column>.ie-panel.is-open)>:is(.settings-titlebar,.settings-footer){margin-right:calc(min(440px,46%) + var(--gap-window))}
}
.ie-peek{position:absolute;top:0;right:0;bottom:0;width:min(440px,46%);display:flex;background:var(--window);border-left:var(--hairline-w) solid var(--group-line);box-shadow:var(--popover-shadow);transform:translateX(100%);transition:transform .18s ease-out;z-index:4;cursor:pointer;pointer-events:none}
.ie-peek.is-shown{transform:translateX(calc(100% - 28px));pointer-events:auto}
.ie-peek.is-shown:hover{transform:translateX(calc(100% - 34px))}
.ie-peek-tab{width:28px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0;color:var(--accent-text)}
.ie-peek-tab svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
.ie-peek-tab span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:var(--text-sm);font-weight:600;white-space:nowrap;overflow:hidden}
@media (max-width:700px){.ie-panel{width:100%}
/* A Table that opens rows reads as the List on a phone: the first value, the
   others under it, the chevron at the edge (FW-UI-083, a proposal to the PO). */
.settings-card:has(>table[data-ie-opens][data-ie-list]){overflow-x:visible}
table[data-ie-opens][data-ie-list],table[data-ie-opens][data-ie-list] tbody{display:block}
/* The List fits the phone: a scrolling table's least width stays off (PA-OPS-070). */
.table-scroll table[data-ie-opens][data-ie-list]{min-width:0}
/* To fix and Awaits read as the List on a phone too: the kind, the record,
   who and since, the row's buttons under them (PA-OPS-068). */
.settings-card:has(>table.problem-list){overflow-x:visible}
.table-scroll table.problem-list{min-width:0}
table.problem-list,table.problem-list tbody{display:block}
table.problem-list thead{display:none}
table.problem-list tr{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:4px;padding:8px 14px;border-bottom:var(--hairline-w) solid var(--group-line)}
table.problem-list tr:last-of-type{border-bottom:0}
table.problem-list td{display:block;padding:0;border:0;height:auto;max-width:none;white-space:normal;background:none}
table.problem-list td:nth-child(2){flex:0 0 100%;color:var(--label);font-weight:500}
table.problem-list td.cell-buttons{flex:0 0 100%;display:flex;flex-wrap:wrap;gap:6px;padding-top:4px;text-align:left}
table[data-ie-opens][data-ie-list] thead{display:none}
table[data-ie-opens][data-ie-list] tr.ie-row{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;min-height:38px;padding:8px 34px 8px 14px;border-bottom:var(--hairline-w) solid var(--group-line)}
table[data-ie-opens][data-ie-list] tr.ie-row:last-of-type{border-bottom:0}
table[data-ie-opens][data-ie-list] tr.ie-row td{display:block;padding:0;border:0;height:auto;max-width:none;white-space:normal;background:none;color:var(--label-2);font-size:var(--text-sm)}
table[data-ie-opens][data-ie-list] tr.ie-row td:first-child{flex:0 0 100%;color:var(--label);font-size:var(--text-base);font-weight:500}
table[data-ie-opens][data-ie-list] tr.ie-row td:empty{display:none}
table[data-ie-opens][data-ie-list] tr.ie-row td:not(:first-child):not(.ie-tools)+td:not(.ie-tools):not(:empty)::before{content:"· "}
table[data-ie-opens][data-ie-list] tr.ie-row td.ie-tools{position:absolute;right:10px;top:0;bottom:0;display:flex;align-items:center;width:auto;padding:0;overflow:visible}
table[data-ie-opens] tr.ie-row.is-open{background:var(--accent-soft)}
table[data-ie-opens][data-ie-list] tr.ie-plus,table[data-ie-opens][data-ie-list] tr.empty-row{display:block}
table[data-ie-opens][data-ie-list] tr.ie-plus td,table[data-ie-opens][data-ie-list] tr.empty-row td{display:block}
}
/* The definition window (FW-UI-070; FW-UI-068 mockup, styles approved by
   the PO 2026-10-29): a split button - an action and its menu ▾ as one
   button (Save draft ▾ › Delete draft…; in the footer the menu opens
   upwards); the grip of an ordered Table's row; the side panel's tools in
   its title line, ↑↓ disabled at the ends; a line between groups of a menu. */
.split-button{display:inline-flex}
.split-button>.plain-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}
.split-button>.tool-menu>summary,.split-button>.split-more{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px;padding:0 8px}
.ie-row-tool[data-grip]{cursor:grab}
.ie-panel-head .segmented>button:disabled{opacity:.4;cursor:default}
.ie-panel-head a.icon-button:hover{text-decoration:none}
.settings-empty{margin:0;padding:14px;color:var(--label-2);font-size:var(--text-base)}
.permission-matrix{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--text-base)}
.permission-matrix th,.permission-matrix td{padding:6px 10px;border-bottom:var(--hairline-w) solid var(--group-line);text-align:center;white-space:nowrap;vertical-align:middle}
.permission-matrix thead th{font-size:var(--text-xs);font-weight:600;color:var(--label-2);vertical-align:bottom}
.permission-matrix thead th input{display:block;margin:4px auto 0}
.permission-matrix th[scope=row],.permission-matrix thead tr:first-child>th:first-child{text-align:left;white-space:normal;font-weight:400;min-width:120px}
[data-role-editor] input.implied{opacity:.45;cursor:not-allowed}[data-role-editor] .check:has(input.implied){color:var(--label-2)}
.permission-matrix tbody tr:last-child>*{border-bottom:0}
.permission-matrix td.is-changed{box-shadow:inset 0 0 0 2px var(--accent-soft-strong)}
/* Permission structure (ADR-030): blocks, owner groups and filters */
.role-block{margin:0 0 18px}
/* Select all of a role section (FW-RBP-011): every permission box shown in the section */
.role-block-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 6px}
.role-block-title h3{margin:0;font-size:var(--text-sm);font-weight:600;color:var(--label-2)}
.role-block-title small{color:var(--tertiary);font-size:var(--text-xs)}
.owner-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;color:var(--tertiary);font-size:var(--text-sm)}
/* Owner filter: a segmented control. */
.owner-filters .owner-chip{margin:0;min-height:0;border:0;background:none;color:var(--label);border-radius:var(--r-xs);padding:3px 10px;font-size:var(--text-sm);font-weight:400;line-height:1.4;box-shadow:none;cursor:pointer}
.owner-filters .owner-chip:hover{background:none}
.owner-filters .owner-chip[aria-pressed=true]{background:var(--window);box-shadow:0 1px 2px #00000026,0 0 0 .5px #0000000f}
.owner-chips{display:inline-flex;gap:2px;padding:2px;border-radius:7px;background:var(--fill)}
/* Owner of an artifact: a badge, green for a module, orange for Custom. */
.owner-tag,.object-kind{display:inline-flex;align-items:center;padding:1px 7px;border-radius:var(--r-capsule);background:var(--fill);color:var(--label-2);font-size:var(--text-xs);font-weight:500;line-height:1.45;white-space:nowrap}
.owner-module{background:var(--green-soft);color:var(--green-text)}
.owner-custom{background:var(--orange-soft);color:var(--orange)}
.permission-matrix tr.owner-group>th{background:var(--window);text-align:left;padding-top:10px}
.owner-heading{margin:4px 0 6px}
.owner-off,.group-empty{display:none!important}
/* Compact matrices: grouped two-row headers, the name column stays visible
   while the matrix scrolls sideways. */
.permission-matrix th,.permission-matrix td{padding:5px 6px}
/* A permission checkbox is the size of the text beside it. */
.permission-matrix input[type=checkbox],.object-actions input[type=checkbox]{width:var(--text-md);height:var(--text-md)}
.permission-matrix thead th.group-head{border-bottom:var(--hairline-w) solid var(--group-line);text-align:center;color:var(--label)}
.permission-matrix tr.sub-head th{font-weight:500}
.permission-matrix th[scope=row],.permission-matrix thead tr:first-child>th:first-child{position:sticky;left:0;z-index:1;background:var(--window);min-width:120px;max-width:220px}
.row-note{color:var(--tertiary);font-weight:400}
.settings-object .object-head{display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:var(--hairline-w) solid var(--group-line)}
.object-actions{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 14px;border-bottom:var(--hairline-w) solid var(--group-line)}
.object-actions label{margin:0;font-size:var(--text-base)}
.object-actions label.is-changed{color:var(--accent-text);font-weight:600}
.object-fields{padding:8px 12px 10px}
.object-fields-title{margin:0 0 4px;font-size:var(--text-sm);font-weight:600;color:var(--label-2)}
.object-fields .settings-empty{padding:4px 0}
.field-row{display:grid;grid-template-columns:minmax(0,1fr) auto 26px;gap:10px;align-items:center;padding:5px 0;border-top:var(--hairline-w) solid var(--group-line)}
.field-row:first-child{border-top:0}
.field-legacy{display:block;color:var(--tertiary);font-size:var(--text-xs)}
/* Type hierarchy of a role: object name above field names and actions;
   matrix headings and row names a step smaller than body text. */
.settings-object .object-head strong{font-size:var(--text-base);font-weight:600}
.permission-matrix thead th{font-size:.625rem}
.permission-matrix thead th.group-head{font-size:var(--text-xs)}
.permission-matrix th[scope=row],.permission-matrix td{font-size:var(--text-md)}
.segmented>label{margin:0;position:relative;padding:0;font-weight:400}
.segmented>label:hover{background:none}
.segmented input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
/* A choice of radios drawn as the segmented control: each segment is the
   mockup's .segmented button (22 px, 12 px type, the chosen one on seg-on;
   FW-UI-208). */
.segmented span{display:flex;align-items:center;min-height:22px;padding:0 10px;border-radius:6px;font:var(--type-mac-callout);color:var(--label);white-space:nowrap;transition:background-color .12s}
.segmented>label:hover>input:not(:checked)+span{background-color:color-mix(in srgb,var(--label) 8%,transparent)}
.segmented>label:active>input:not(:checked)+span{background-color:color-mix(in srgb,var(--label) 15%,transparent);transition:none}
.segmented input:checked+span{background:var(--seg-on);box-shadow:0 .5px 2px #00000033;font-weight:500}
.segmented input:focus-visible+span{outline:3px solid var(--focus)}
.segmented label.is-changed span{color:var(--accent-text)}
.field-remove{display:inline-grid;place-items:center;width:24px;height:20px;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:none;color:var(--label);font-size:1rem;line-height:1}
.field-remove:hover{background:color-mix(in srgb,var(--label) 11%,transparent);color:var(--label)}
.field-remove:active{background:color-mix(in srgb,var(--label) 20%,transparent);transition:none}
.object-add{display:flex;gap:6px;align-items:center;margin-top:6px}
.object-add select{width:auto;margin:0}
.settings-form .settings-footer{flex:none;align-items:center}
.settings-count{flex:1;color:var(--label-2);font-size:var(--text-sm)}
/* A footer status may link to what it counts (FW-UI-106: «Submit waits: 3 to fix, 2 waiting»). */
.settings-count a{color:var(--accent-text)}
.review-dialog{max-width:700px}
.review-dialog .table-dialog-body{max-height:min(60vh,520px);overflow:auto}
.diff-table{width:100%;border-collapse:collapse;font-size:var(--text-base)}
.diff-table th,.diff-table td{padding:6px 10px;border-bottom:var(--hairline-w) solid var(--group-line);text-align:left;vertical-align:top}
.diff-table th{font-size:var(--text-xs);color:var(--label-2);font-weight:600}
.diff-table tr:last-child td{border-bottom:0}
.diff-section{color:var(--label-2);font-size:var(--text-base)}
.diff-old{color:var(--label-2)}
.diff-new{color:var(--accent-text);font-weight:500}
@media(max-width:700px){
 .settings-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
 .settings-side{border-right:0;border-bottom:var(--hairline-w) solid var(--group-line);max-height:190px}
 /* Phone: the section list first; a section replaces it and a fixed bar
    above it leads back to the list. */
 .settings-form[data-mobile-view] .settings-body{grid-template-rows:minmax(0,1fr)}
 .settings-form[data-mobile-view] .settings-side{max-height:none;border-bottom:0}
 .settings-form[data-mobile-view=list] .settings-panes{display:none}
 .settings-form[data-mobile-view=pane] .settings-side{display:none}
 .settings-form[data-mobile-view=pane] .settings-mobile-bar{display:flex}
 .settings-form[data-mobile-view] .settings-panes{min-height:0;overflow:auto;padding:0}
 .settings-form[data-mobile-view] .settings-pane{overflow:visible;padding:14px 14px 20px}
}
/* The footer stays above sticky matrix cells scrolling beneath it. */
/* Above the side panel (z 5): the footer's menus (Save draft ▾) open over it. */
.settings-form .settings-footer{position:relative;z-index:6}
.settings-mobile-bar{display:none;flex:none;align-items:center;gap:10px;padding:6px 10px;border-bottom:var(--hairline-w) solid var(--group-line);background:var(--sunken)}
.settings-mobile-bar .settings-back{margin:0;padding:0;min-height:0;border:0;background:none;color:var(--accent-text);font-size:var(--text-base);font-weight:400;cursor:pointer}
.settings-mobile-bar .settings-back:hover{background:none}
.settings-mobile-bar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base)}
.tone-grey{background:var(--tile-gray)}.tone-forest{background:var(--tile-forest)}.tone-green{background:var(--tile-green)}.tone-blue{background:var(--tile-blue)}.tone-purple{background:var(--tile-purple)}.tone-orange{background:var(--tile-orange)}.tone-brown{background:var(--tile-brown)}.tone-graphite{background:var(--tone-graphite)}
.tone-indigo{background:var(--tile-indigo)}.tone-teal{background:var(--tile-teal)}.tone-red{background:var(--tile-red)}.tone-pink{background:var(--tile-pink)}.tone-mint{background:var(--tile-mint)}.tone-cyan{background:var(--tone-cyan)}.tone-yellow{background:var(--tone-yellow)}.tone-violet{background:var(--tone-violet)}
/* Session limits: the number, its unit and Unlimited on one line. */
.session-limit{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.session-limit input[type=number]{width:96px;min-width:0}
.session-limit input[type=number]:disabled{color:var(--tertiary);background:transparent;cursor:default}
.limit-unit{color:var(--label-2)}
.limit-unlimited{display:inline-flex;align-items:center;gap:6px;font-weight:400;cursor:pointer}
.limit-unlimited input{margin:0}
/* Session idle warning: a large countdown under the message. */
.idle-countdown{margin:12px 0 0;font-size:2rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:center}
.idle-dialog::backdrop{background:var(--scrim)}

/* ---------- Window component (web/window.go, window.html) ----------
   Every window page: the card, search and sections in the sidebar, the
   section head with its icon, groups of rows (label left, control right, at
   most 320px), choice cards, notes, actions and the footer. Tokens only. */
.window .settings-titlebar{gap:10px}
.window .settings-side{background:var(--window)}
.window-badges{position:absolute;right:16px;display:flex;align-items:center;gap:6px}
/* As of in the title bar of a record window (the Employee Profile). */
.window-asof{display:inline-flex;align-items:center;gap:6px;color:var(--label-2);font-weight:400;font-size:var(--text-base);white-space:nowrap}
.window-asof :is(input,.date-entry){width:150px;margin:0}
/* With As of the title bar is a toolbar: the title left, the date, Today
   and the badges right, as in the Employee Profile. */
.settings-titlebar.has-asof{justify-content:flex-start}
.settings-titlebar.has-asof h1{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-titlebar.has-asof .window-badges{position:static;flex:none}
/* Card at the top of a sidebar: a 40px avatar or a 34px tile, name, subtitle. */
.window-card{display:flex;align-items:center;gap:10px;padding:4px 6px 12px;margin:0 0 6px;border-bottom:var(--hairline-w) solid var(--group-line);min-width:0}
.window-card div{min-width:0}
.window-card strong,.window-card small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.window-card strong{font-size:var(--text-base);font-weight:600}
.window-card small{color:var(--label-2);font-size:var(--text-xs)}
/* Switch under the card: a field choosing another page of the record (a
   version), with an optional button under it. */
.window-switch{display:grid;gap:6px;padding:0 0 12px;margin:0 0 6px;border-bottom:var(--hairline-w) solid var(--group-line)}
.window-switch select{width:100%;margin:0}
.window-switch .button{width:100%}
/* Context chooser under a sidebar heading (the employment of the profile):
   the record the sections of the group follow. */
.window-context{display:block;width:calc(100% - 12px);height:var(--control-sm);min-height:0;margin:2px 6px 6px;padding:0 6px;border:var(--hairline-w) solid var(--group-line);border-radius:var(--r-sm);background:var(--page);color:var(--label);font-size:var(--text-base)}
.window-code,.code{font-family:var(--font-mono);font-size:var(--text-sm)}
.window .settings-panes{min-height:0;overflow:auto;padding:0}
.window .window-fieldset>.settings-pane{overflow:visible}
/* A locked part of a window is a wrapper, not a group: its sections stand on the canvas as the others, their cards white (lane B's WP2: a framed form's column and each locked section stood white, a Free one grey). */
.window-fieldset{margin:0;padding:0;border:0;min-width:0;background:none;box-shadow:none;border-radius:0}
/* Head of a pane: a 34px tile, the 20px title and a muted line. */
.window-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.window-head h2{margin:0;font-size:var(--text-xl);font-weight:600}
.window-head p{margin:1px 0 0;color:var(--label-2);font-size:var(--text-base);max-width:70ch}
.window-head p.window-head-line{margin-top:6px;font-size:var(--text-sm)}
/* A section's one caption (the PO 2026-11-20 R29c084): one line, and when
   its words do not fit, «More» at the line's end opens the whole caption -
   as Apple's App Store description. Steps windows keep their instruction. */
.window-head p.sec-caption{display:flex;align-items:baseline;gap:4px}
.window-head p.sec-caption>span{min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.window-head p.sec-caption.is-open{display:block}
.window-head p.sec-caption.is-open>span{white-space:normal}
.window-head p.sec-caption>.sec-caption-more{flex:none;font:inherit;color:var(--accent-text)}
.is-steps .window-head p.sec-caption,.is-steps .window-head p.sec-caption>span{display:block;white-space:normal}
.is-steps .window-head p.sec-caption>.sec-caption-more{display:none}
.window-head-line strong{color:var(--label);font-weight:500}
/* The head's badge and view switch stand on its right (Current / History). */
.window-head>div+:is(.badge,.segmented){margin-left:auto}
.window .message{margin:0 0 12px}
.window-subhead{display:flex;align-items:baseline;gap:8px;margin:14px 12px 6px;color:var(--label-2);font-size:var(--text-xs);font-weight:600;line-height:1.38}
.window-block:first-child>.window-subhead,.window-block:first-child>form>.window-subhead{margin-top:0}
:is(.window-subhead,.object-subhead) span:last-child:not(:first-child):not(.object-layer){margin-left:auto;font-weight:400}
.window-subhead>.window-subhead-action{margin-left:auto;font-weight:400}
/* A route as the mockup's Route (ul.route; FW-UI-291): a person to a row, the node done, now or not reached, a soft line between
   the nodes, the step and its state in a grey line under the name; a state other than an approval is a capsule in that line. */
.route{list-style:none;margin:0;padding:4px 12px}
.route li{position:relative;display:flex;align-items:center;gap:10px;padding:6px 0}
.route li .node{z-index:1;display:grid;flex:none;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--fill-2);color:var(--label-2)}
.route li .node svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.route li.done .node{background:var(--green);color:var(--on-badge)}
.route li.now .node{background:var(--accent);color:var(--on-accent)}
.route li+li::before{content:"";position:absolute;left:10.5px;top:-10px;width:1px;height:18px;background:var(--field-line)}
.route li .who{flex:1;min-width:0;overflow-wrap:anywhere}
.route li .who>span{display:block;font:var(--type-mac-caption);font-weight:400;color:var(--label-2)}
.route li .who>span .badge{vertical-align:baseline}
/* A group's people on demand: the outline disclosure, its chevron turning as the sidebar's (FW-UI-301). */
.route-people>summary{display:inline-flex;align-items:center;gap:4px;list-style:none;cursor:pointer}
.route-people>summary::-webkit-details-marker{display:none}
.route-people>summary svg{flex:none;width:12px;height:12px;fill:none;stroke:var(--label-2);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.route-people[open]>summary svg{transform:rotate(90deg)}
.route-people>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.route-people>.route-name{display:block;font:var(--type-mac-caption);font-weight:400;color:var(--label-2)}
@media(prefers-reduced-motion:reduce){.route-people>summary svg{transition:none}}
.window-subhead>.sb-count{font-weight:400}
.window .settings-card{margin-bottom:0}
/* Ordered list of a pane (rule order, a section's timeline): one card,
   rows with a hairline between them; shared, so every window draws it the
   same (PO 2026-10-21). */
.rule-order{list-style:none;margin:0 0 8px;padding:0;border:0;border-radius:var(--r-lg);background:var(--window);box-shadow:var(--shadow-card);overflow:hidden}
.rule-order li{position:relative;display:flex;align-items:center;gap:12px;min-height:38px;padding:4px 14px}
.rule-order li+li::before{content:"";position:absolute;top:0;left:14px;right:0;border-top:var(--hairline-w) solid var(--group-line)}
.rule-order .icon-button{width:26px;height:26px;font-size:14px}
.rule-order .icon-button:hover{background:var(--fill-2);color:var(--label)}
.rule-order li.is-current{background:var(--accent-soft)}
.rule-order-n{width:22px;color:var(--label-2);text-align:right;font-variant-numeric:tabular-nums}
.rule-order-name{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--label)}
/* Blocks of a pane stand apart (PO 2026-10-21): a block after another one
   keeps a gap, unless it starts with its own subhead (18px) or holds only
   actions (8px of their own). */
.window-block+.window-block:not(:has(>.window-subhead,>form>.window-subhead,>.window-actions:only-child)){margin-top:12px}
.window .settings-row .session-limit{justify-content:flex-end}
.window .settings-row .session-limit input[type=number]{width:96px}
.window-note{margin:10px 12px 0;color:var(--tertiary);font-size:var(--text-sm);max-width:80ch}
/* What a block's content counts, or which page of it is shown: a state beside its actions, never an explanation (FW-UI-187). */
.window-actions>.window-status{margin-right:auto;color:var(--label-2);font-size:var(--text-sm)}
/* Code field: the c_ prefix or a fixed part in mono, joined to the field. */
.window-code-input{display:flex;align-items:stretch;height:var(--control-h);border:var(--hairline-w) solid var(--control-line);border-radius:var(--r-sm);background:var(--control);overflow:hidden}
.window-code-input>span{padding:0 7px;display:grid;place-items:center;background:var(--fill);color:var(--label-2);font-family:var(--font-mono);font-size:var(--text-sm)}
:is(.window-code-input,.object-code-input,.code-input,.rule-message-code) input{width:auto!important;flex:1;min-width:0;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;font-family:var(--font-mono)}
:is(.window-code-input,.object-code-input,.code-input,.rule-message-code) input:focus{box-shadow:none;outline:none}
:is(.window-code-input,.object-code-input,.code-input,.rule-message-code):focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-field)}
/* Choice tile: one of a few equal options; chosen = accent ring on accent-soft. */
.window-choices-card{padding:10px 14px}
.window-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.window-choice{position:relative;display:grid;gap:2px;align-content:start;margin:0;padding:8px 12px;border:0;border-radius:var(--r-lg);background:var(--window);box-shadow:0 0 0 var(--hairline-w) var(--line-strong);cursor:pointer;font-weight:400;text-align:left}
:is(.window-choice,.object-type-tile) input{position:absolute;opacity:0;pointer-events:none}
.window-choice b{font-weight:500;font-size:var(--text-base)}
.window-choice small{color:var(--label-2);font-size:var(--text-xs);line-height:1.35}
:is(.window-choice,.object-type-tile):has(input:checked),.window-choice.is-on{box-shadow:0 0 0 2px var(--accent);background:var(--accent-soft)}
:is(.window-choice,.object-type-tile):has(input:focus-visible){box-shadow:0 0 0 3px var(--focus)}
.window-choice:has(input:disabled),.window-choice.is-off{opacity:.45;cursor:default}
.window-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:8px 0 0}
/* A row of a section's own commands, as the mockup's btn-row: the record's
   commands lead, the section's default command stands at the far end (M10,
   Pay Structures). */
.window-block[data-actions-split]>.window-actions{justify-content:flex-start}
.window-block[data-actions-split]>.window-actions>.primary-button{margin-left:auto}
/* Toggle chips: buttons that may be on together, the pressed ones on the
   soft accent (the mockup's on-chip; Range Change's Points, M10). */
.toggle-chips{display:inline-flex;flex-wrap:wrap;gap:6px}
.toggle-chip[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-text)}
/* A navigation row (M10, the mockup's rows with a chevron): the value in
   the label's colour, a chevron after it, the whole row its target. */
.settings-row:has(>.settings-value>a.row-go){position:relative}
.settings-value>a.row-go{display:inline-flex;align-items:center;gap:6px;color:var(--label);text-decoration:none}
.settings-value>a.row-go::after{content:"";position:absolute;inset:0}
.settings-value>a.row-go .row-chevron{width:13px;height:13px;fill:none;stroke:var(--label-3,var(--label-2));stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.window .settings-footer form{margin:0}
@media(max-width:700px){
 .window-choices{grid-template-columns:1fr}
 .settings-row>label,.settings-row>.settings-label{width:auto;flex:1}
 .settings-row:has(>div :is(input:not([type=checkbox]):not([type=radio]),select,textarea))>label{flex-basis:100%}
 .settings-row:has(>div :is(input:not([type=checkbox]):not([type=radio]),select,textarea))>div{align-items:stretch;text-align:left}
 .settings-row :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.window-code-input,.object-code-input,.clearable,.combobox){width:100%}
 .window.settings-form .settings-row :is(.date-entry,.field-with-action){width:100%}
 .window-badges{display:none}
 .settings-titlebar.has-asof .window-badges{display:flex}
 .settings-titlebar.has-asof .window-badges>.badge{display:none}
}
/* Audit (ADR-025, 2026-10-13): a clock button in the footer after Back, its
   card shows Created and Last Modified of the record. */
.audit-button{display:inline-grid;place-items:center;width:var(--control-sm);height:var(--control-sm);min-height:0;margin:0;padding:0;border:0;border-radius:var(--r-sm);background:none;color:var(--label-2);cursor:pointer;flex:none}
.audit-button:hover{background:var(--fill-2);color:var(--label)}
.audit-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Object scope filters inside a window (object-filter.js). */
.window [data-object-filter-builder]{padding:4px 14px 12px}
.scope-filter-node{border:var(--hairline-w) solid var(--group-line);border-radius:8px;padding:8px;margin:0 0 6px;background:var(--page);min-width:0}
.scope-filter-node legend{padding:0 4px;font-size:var(--text-xs);color:var(--tertiary);font-weight:600}
.scope-filter-node .scope-filter-node{margin-left:12px}
.window [data-filter-objects] h3,.window [data-filter-objects] h4{font-size:var(--text-base);margin:12px 0 4px}
/* The page area takes focus only as the skip-link target: no ring around it. */
#main:focus{outline:none}
/* Home as a summary (FW-UI-189, P15; the Apple mockup's home.html): the
   banner, the cards My tasks and Notifications, the workspaces as tiles and
   the Quick links as a list, on the page's ground. */
/* Home is as wide as the mockup's page (.wide) and lays its cards out by its
   own width, as the mockup's .cards: as many 300 px columns as fit, My tasks
   over two; one column where two do not fit (a window just past the phone's
   width, the sidebar open). */
.home-desk{max-width:1060px;margin:0 auto;padding:0 0 24px;container-type:inline-size}
.home-section{margin:4px 0 8px;font:var(--type-mac-emphasis);color:var(--label)}
/* The blocks stand in the Home's order (FW-UI-088); cards next to each
   other share a row, My tasks twice as wide. The modules' tiles show on a
   phone only (FW-UI-225, the mockup's .st-phone-only): the Mac has the
   sidebar. */
.home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;align-items:start}
.home-grid>.home-block{grid-column:1/-1}
.home-grid>.home-tasks{grid-column:span 2}
@media(min-width:701px){.st-phone-only{display:none}}
.home-grid.wide{grid-template-columns:minmax(0,1fr)}
.home-grid.wide>.home-tasks{grid-column:auto}
@container (max-width:613px){.home-grid{grid-template-columns:minmax(0,1fr)}.home-grid>.home-tasks{grid-column:auto}}
.home-block[hidden],.home-card[hidden],.home-app[hidden]{display:none}
.home-card{display:flex;flex-direction:column;min-width:0;padding:14px 16px;border-radius:var(--r-window);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line),0 1px 3px #0000000d;color:var(--label)}
.home-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;row-gap:6px;padding-bottom:8px}
.home-card-head h2{margin:0;font:var(--type-mac-emphasis)}
.home-card-head .icon-tile{width:22px;height:22px;border-radius:6px}
.home-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:var(--r-capsule);background:var(--red);color:#fff;font:var(--type-mac-caption);font-weight:600}
.home-more{margin-left:auto;font:var(--type-mac-body);font-weight:500;color:var(--accent-text)}
.home-card>.home-row{border-top:var(--hairline-w) solid var(--separator)}
.home-row{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--label);font:var(--type-mac-body);text-decoration:none}
.home-row:hover{text-decoration:none}
.home-row .avatar{width:32px;height:32px;font-size:13px}
.home-row .icon-tile{width:24px;height:24px;border-radius:6px}
.home-row-ttl{flex:1;min-width:0}
.home-row-ttl b{display:block;font-weight:500}
.home-row-ttl span{display:block;font:var(--type-mac-caption);font-size:12px;color:var(--label-2)}
.home-row-ttl .home-late{color:var(--red-text)}
/* A task to approve (N5, P69): Approve and Reject right in the card, as the
   mockup's .task .acts; the task's text still opens it in To Do. In the
   question before a rejection the comment's row stands under the alert's
   text, its label at the leading edge. */
.home-task{align-items:flex-start}
.home-task-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.home-task-open:hover{text-decoration:none}
.home-acts{display:flex;gap:6px;flex:none;align-self:center;margin:0}
.home-acts[hidden]{display:none}
.home-task-open>.home-chev{margin-left:auto}
/* The task's menu opens at the pointer only (a right click, the menu key,
   a long press), as the mockup's row: it has no button of its own. The row
   carries the list row's ring while the menu is open. */
.home-task-menu>summary{display:none}
.home-task.is-context{border-radius:var(--r-sm);outline:2px solid var(--accent);outline-offset:2px}
.home-task dialog .settings-row{margin-top:10px;padding:0;justify-content:flex-start;text-align:left}
.home-task dialog .settings-row>label{flex:0 1 auto}
.home-task dialog .settings-row>div{flex:1 1 100%}
.home-chev{flex:none;width:9px;height:9px;color:var(--label-3);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* A notification's row on Home (the mockup's): its tile, its title and first line, its time at the trailing edge; the row opens it. */
.home-card>.home-note{border-top:var(--hairline-w) solid var(--separator)}
.home-card>.home-note{min-width:0}
.home-note>.home-row{width:100%;min-width:0;height:auto;margin:0;padding:8px 0;border:0;border-radius:0;background:none;color:var(--label);font:var(--type-mac-body);white-space:normal;text-align:left;align-items:flex-start;cursor:default}
.home-note>.home-row:hover{background:none}
.home-note .icon-tile{width:28px;height:28px;border-radius:7px}
.home-note .home-row-ttl span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-note.unread .home-row-ttl b{font-weight:700}
.home-when{flex:none;font:var(--type-mac-caption);color:var(--label-2)}
.home-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.home-app{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line);color:var(--label);text-decoration:none}
.home-app:hover{text-decoration:none;background:color-mix(in srgb,var(--group) 92%,var(--label))}
.home-app .home-tile{width:40px;height:40px;border-radius:10px}
.home-app b{display:block;font-weight:600}.home-app small{display:block;font-size:12px;color:var(--label-2)}
.home-list{border-radius:var(--r-group);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line),0 .5px 1.5px #0000000a;overflow:hidden}
.home-list>.home-row{position:relative;min-height:36px;padding:7px 12px;gap:12px}
.home-list>.home-row+.home-row::before{content:"";position:absolute;top:0;left:12px;right:0;height:var(--hairline-w);background:var(--separator)}
.home-list>.home-row:hover{background:var(--fill-hover)}
.home-list .home-row-ttl b{font-weight:400}
/* Quick links built by the user (FW-UI-228; PO 2026-11-21: «Edit на Home»,
   «10 ссылок максимум»): Edit stands at the heading's end as «Show all» on
   My tasks; in the edit state each row shows the red remove button and the
   grip of Manage Views' rows (.mv-minus, .mv-grip), its chevron goes, and
   the last row is Add Link. The row keeps the list row's box and its link
   is laid out as a task's (.home-task-open). Add Link's popover is the sidebar search's: its field, its groups. */
.home-ql-head{display:flex;align-items:baseline;gap:8px}
.home-ql-head>.home-section{flex:1 1 auto;min-width:0}
.home-ql-head>.home-ql-edit{flex:none;min-height:0;margin:4px 0 8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;cursor:default}
.home-ql>.home-task-open{gap:12px}
.home-ql>:is(.mv-minus,.mv-grip),.home-ql-add[hidden]{display:none}
.is-editing .home-ql>:is(.mv-minus,.mv-grip){display:grid}
.is-editing .home-ql .home-chev{display:none}
.home-list>.home-ql.is-dragging{background:var(--fill-2)}
.home-ql.is-context{outline:2px solid var(--accent);outline-offset:-2px}
[data-quick-links]:not(.is-editing) .home-ql-only-edit{display:none}
.home-list>.home-ql-add{width:100%;height:auto;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent-text);text-align:left;cursor:default}
.home-list>.home-ql-add[aria-disabled=true]{color:var(--label-3)}
.home-ql-pop>.sr-res{margin-top:8px}
.home-ql-pop .sr-row[aria-disabled=true]{color:var(--label-3)}
.home-ql-tick{flex:none;width:14px;height:14px;color:var(--accent);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.home-ql-tick[hidden]{display:none}
.home-item{display:flex;align-items:center;gap:12px;min-height:38px;padding:8px 14px;font-size:var(--text-base);border-bottom:var(--hairline-w) solid var(--group-line);color:var(--label);text-decoration:none}
.home-item:hover{background:var(--fill-2);text-decoration:none}.home-item small{display:block;color:var(--label-2);font-size:var(--text-sm)}
.home-empty{color:var(--label-2);padding:6px 0;margin:0;font:var(--type-mac-body);max-width:none}
@media(max-width:700px){
 .home-grid{grid-template-columns:minmax(0,1fr)}
 .home-grid>.home-tasks{grid-column:auto}
 .home-card{border-radius:var(--r-sidebar)}
 .home-row{font:var(--type-ios-body)}
 .home-acts{display:none}
 .home-row-ttl span{font:var(--type-ios-footnote)}
 .home-list>.home-row{min-height:50px;padding:11px 16px}
 .home-list>.home-row+.home-row::before{left:58px}
 .home-list .icon-tile{width:30px;height:30px;border-radius:8px}
 .home-section{font:var(--type-ios-headline)}
 /* The modules' tiles of the phone's Home in the phone's body size (FW-UI-225, the mockup's .ws-tile). */
 .home-app{font:var(--type-ios-body)}
 .home-app small{display:inline;line-height:1.29}
}
/* An Operation's window (FW-UI-186, M09; the mockup's operationBody): one
   column as wide as a record, its steps in a row under the title - the
   number in a circle, the accent on the step shown, a green check on a step
   passed, a line between - never a list at the side. The step's own head is
   its line alone, as the mockup's banner: the row names the step. */
.settings-body.is-steps{display:flex;flex-direction:column;overflow:auto;background:var(--page)}
.settings-body.is-steps>.settings-side{flex:none;width:100%;max-width:var(--record-w);max-height:none;margin:0 auto;padding:12px 28px 0;border:0;background:none;overflow:visible}
/* The head (FW-UI-186, the mockup's sheet head): the subject's avatar or the
   tile of what the run is on, the title, then what it is and its state. */
.settings-body.is-steps>.settings-side>.window-card{padding:0 0 8px;margin:0;border:0}
.is-steps>.settings-side>.window-card>:is(.icon-tile,.avatar){width:var(--tile-lg);height:var(--tile-lg)}
.is-steps>.settings-side>.window-card strong{font:var(--type-mac-title)}
.is-steps>.settings-side>.window-card small{color:var(--label-2);font:var(--type-mac-callout)}
.settings-body.is-steps>.settings-side>[role=tablist]{display:flex;align-items:center;gap:6px;counter-reset:step}
/* The destructive action of such a window stands at the leading edge of
   its foot, apart from the others (the mockup's Cancel the change). */
.settings-form:has(>.settings-body.is-steps)>.settings-footer>:is(.danger-button,[data-form-cancel],[data-step-back]){order:-1}
/* A window of one step has no row of steps: a submitted run's state. */
.settings-body.is-steps>.settings-side>[role=tablist]:not(:has(.settings-item+.settings-item)){display:none}
.is-steps>.settings-side .settings-item{counter-increment:step;position:relative;display:inline-flex;flex:none;gap:5px;width:auto;min-height:0;padding:0;border-radius:var(--r-capsule);background:none;box-shadow:none;color:var(--label-2);font:var(--type-mac-callout)}
.is-steps>.settings-side .settings-item .settings-icon{display:none}
.is-steps>.settings-side .settings-item::before{content:counter(step);display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--fill-2);color:var(--label-2);font:var(--type-mac-caption);font-weight:600}
.is-steps>.settings-side .settings-item[aria-selected=true]{background:none;color:var(--label);font-weight:500}
.is-steps>.settings-side .settings-item[aria-selected=true]::before{background:var(--accent);color:var(--on-accent)}
.is-steps>.settings-side .settings-item:has(~.settings-item[aria-selected=true])::before{content:"\2713";background:var(--green);color:var(--on-accent)}
.is-steps>.settings-side .settings-item+.settings-item{margin-left:28px}
.is-steps>.settings-side .settings-item+.settings-item::after{content:"";position:absolute;left:-25px;top:50%;width:22px;height:var(--hairline-w);background:var(--separator)}
.settings-body.is-steps>.settings-panes{flex:none;width:100%;max-width:var(--record-w);margin:0 auto;overflow:visible;background:none}
.is-steps .window-head{display:block;margin:0 0 12px}
.is-steps .window-head>.settings-icon,.is-steps .window-head h2{display:none}
.is-steps .window-head p:not(.window-head-line){max-width:none;margin:0;padding:10px 12px;border-radius:var(--r-lg);background:linear-gradient(var(--msg-info),var(--msg-info)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-info-line);font:var(--type-mac-callout);line-height:1.38}
/* On a narrow screen - a phone, and the side pane - the steps stay in their
   row over the step shown: there is no list of sections to go back to. */
@media(max-width:700px){
 .settings-form[data-mobile-view] .settings-body.is-steps>.settings-side{display:block;padding:8px 16px 0}
 html:not(.in-pane) .settings-body.is-steps>.settings-side>[role=tablist]{justify-content:center}
 .is-steps>.settings-side .settings-item+.settings-item{margin-left:18px}
 .is-steps>.settings-side .settings-item+.settings-item::after{left:-16px;width:12px}
 .is-steps>.settings-side .settings-item{min-width:0;flex:0 1 auto}
 .is-steps>.settings-side .settings-item>span:not([class]){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 html:not(.in-pane) .is-steps>.settings-side>.window-card{text-align:center}
 html:not(.in-pane) .is-steps>.settings-side>.window-card>div{flex:1}
 html:not(.in-pane) .is-steps>.settings-side>.window-card strong{font:var(--type-ios-headline)}
 .settings-form[data-mobile-view] .settings-body.is-steps>.settings-panes{display:block}
 .settings-form[data-mobile-view]:has(>.settings-body.is-steps) .settings-mobile-bar{display:none}
}
/* To Do as a mailbox (FW-UI-189, P49; the Apple mockup's todo.html): the
   reader's tasks in a list at the window's leading edge, the task opened
   beside it as a message beside its list in Mail; its title and count in the
   toolbar's row over the list. On a phone the list stands above the task. */
.scroll:has(>.mailbox-list){display:flex;flex-direction:row;padding:0;overflow:hidden}
.main:has(>.scroll>.mailbox-list)>.toolbar>.tb-title{visibility:hidden}
.mailbox-list{display:flex;flex-direction:column;flex:none;width:300px;min-height:0;border-right:var(--hairline-w) solid var(--separator)}
/* The head stands in the toolbar's row, over its ground. */
.mailbox-head{position:relative;z-index:5;pointer-events:none;display:flex;flex-direction:column;justify-content:center;flex:none;min-height:var(--toolbar-h);padding:0 14px 0 var(--tb-lead-w,56px)}
.mailbox-head>*{pointer-events:auto}
.mailbox-head h2{margin:0;font:var(--type-mac-title)}
.mailbox-head small{font:var(--type-mac-caption);color:var(--label-2)}
.mailbox-rows{flex:none;max-height:calc(100% - var(--toolbar-h) - 26px);margin:6px 8px 20px 14px;overflow:auto;border-radius:var(--r-group);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line),0 .5px 1.5px #0000000a}
.mailbox-row{position:relative;display:flex;align-items:flex-start;gap:10px;padding:9px 12px;color:var(--label);font:var(--type-mac-body);text-decoration:none}
.mailbox-row:hover{background:var(--fill-hover);text-decoration:none}
.mailbox-row.current{background:var(--accent-soft)}
.mailbox-row+.mailbox-row::before{content:"";position:absolute;top:0;left:54px;right:0;height:var(--hairline-w);background:var(--separator)}
.mailbox-row .avatar{flex:none;width:32px;height:32px;font-size:13px}
.mailbox-row .icon-tile{flex:none;width:32px;height:32px;border-radius:8px}
.mailbox-ttl{flex:1;min-width:0}
.mailbox-ttl b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}
.mailbox-ttl span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:var(--type-mac-caption);color:var(--label-2)}
.mailbox-ttl .mailbox-late{color:var(--red-text)}
.mailbox-from{flex:none;font:var(--type-mac-caption);color:var(--label-2)}
.scroll:has(>.mailbox-list)>.settings-form{flex:1;min-width:0}
.scroll:has(>.mailbox-list)>.settings-form>.settings-titlebar{padding-left:20px}
/* The task begins at the list's edge, up to a readable width (the mockup's .todo-detail, PO 2026-11-15: «To Do as one window»; FW-UI-288). */
.scroll:has(>.mailbox-list)>.settings-form>.settings-body.is-steps>.settings-panes{max-width:var(--todo-w);margin:0}
/* The task's commands stand in the toolbar (P56, P57): a footer left with nothing in it is not drawn. */
.scroll:has(>.mailbox-list)>.settings-form>.settings-footer:not(:has(button,a,.settings-count:not(:empty))){display:none}
.mailbox-row.unread .mailbox-dot{background:var(--accent)}
.mailbox-dot{flex:none;width:8px;height:8px;margin:6px -4px 0 -2px;border-radius:50%}
.mailbox-foot{display:flex;justify-content:flex-end;margin:0 8px 20px 14px}
/* The message chosen beside the list: its title and time, its text, Open and Delete. */
.mailbox-read{flex:1;min-width:0;overflow:auto;padding:calc(var(--toolbar-h) + 14px) 28px 28px}
.mailbox-read-head h1{margin:0;font:var(--type-mac-large-title);letter-spacing:var(--type-mac-large-title-tracking)}
.mailbox-read-head small{display:block;margin-top:4px;font:var(--type-mac-caption);color:var(--label-2)}
.mailbox-read-body{max-width:68ch;margin:16px 0 0;font:var(--type-mac-body);white-space:pre-line}
.mailbox-read-acts{display:flex;gap:8px;margin-top:20px}
.mailbox-none{flex:1;display:grid;place-items:center;margin:0;padding:24px;color:var(--label-2);font:var(--type-mac-body);text-align:center}
@media(max-width:700px){
 .scroll:has(>.mailbox-list){display:block;padding:calc(var(--navbar-h) + 4px) 16px 24px;overflow:auto}
 .mailbox-list{width:auto;border:0}
 .mailbox-head{padding:0}
 .mailbox-head h2{font:var(--type-ios-large-title);letter-spacing:var(--type-mac-large-title-tracking)}
 .mailbox-rows{max-height:none;margin:12px 0 18px;border-radius:var(--r-sidebar)}
 .mailbox-row{padding:11px 16px;font:var(--type-ios-body)}
 .mailbox-row+.mailbox-row::before{left:58px}
 .mailbox-ttl span,.mailbox-from{font:var(--type-ios-footnote)}
 .scroll:has(>.mailbox-list)>.settings-form{margin:0 -16px}
 .mailbox-none{padding:24px 0}
 .mailbox-read{overflow:visible;padding:8px 0 0}
 .mailbox-read-head h1{font:var(--type-ios-record-title)}
 .mailbox-read-body{font:var(--type-ios-body)}
 .mailbox-read-acts{justify-content:flex-end}
 /* The task's commands stay in the navigation bar's row over the list, as the mockup's phone toolbar: the decision at its trailing edge, the others before it. */
 .scroll:has(>.mailbox-list)>.settings-form>.settings-titlebar>.glass-group{position:fixed;top:calc(env(safe-area-inset-top) + 9px);right:12px;z-index:5}
 .scroll:has(>.mailbox-list)>.settings-form>.settings-titlebar>.glass-group:has(+.glass-group){right:60px}
}
.home-selection{margin-bottom:14px}.home-selection h2{margin:0 0 8px;font:var(--type-mac-emphasis)}.home-selection p{margin:0 0 8px;font:var(--type-mac-body)}
/* Depth only where the window meets the desktop, at the bottom-left corner:
   the menu's lower edge and the footer's left edge (Product Owner 2026-10-13). */
.ws-pane>.settings-form>.settings-footer{box-shadow:-14px 0 20px -14px #2a3a4a59}
.home-app[hidden]{display:none}
.ws-overview{padding-top:0}.ws-overview-lede{color:var(--label-2);margin:0 2px 12px;font-size:var(--text-base);font-weight:400;line-height:1.45;letter-spacing:normal;max-width:none}.ws-overview .page-search{max-width:320px;margin:0 0 4px}
.rule-warnings{margin:0 0 12px;padding:10px 12px 10px 28px;font:var(--type-mac-callout);line-height:1.38;border-radius:var(--r-lg);background:linear-gradient(var(--msg-warning),var(--msg-warning)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-warning-line)}
.rule-warnings li{margin:2px 0}
.settings-row[hidden]{display:none}
/* Organisation path (forms.md «Organisation in tables», PO 2026-10-18): the
   unit's name with a 20px path button; the Menu popover lists the levels
   top-down, legal then management. */
.cell-org{display:inline-flex;align-items:center;gap:4px;max-width:100%}
.cell-org .cell-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* The path button is the mockup's .pathbtn: inline on the text's line (no taller row), 2 px each side, a 13 px symbol in the secondary label, the label's tint under the pointer. */
.cell-org .row-menu summary{width:auto;height:auto;min-height:0;display:inline-block;vertical-align:middle;padding:0 2px;border-radius:0;font:var(--type-mac-body);color:var(--label-2);cursor:pointer;list-style:none}
.cell-org .row-menu summary svg{width:13px;height:13px}
.cell-org .row-menu summary::-webkit-details-marker{display:none}
.cell-org .row-menu summary:hover,.cell-org .row-menu[open] summary{border-radius:4px;background:color-mix(in srgb,var(--label) 11%,transparent);color:var(--label-2)}
.cell-org .row-menu summary:active{border-radius:4px;background:color-mix(in srgb,var(--label) 20%,transparent)}
.cell-org .row-menu>.menu-popover{min-width:240px}
.settings-card:has(.cell-org){overflow:visible}
/* The same button in a field that holds a unit (FW-UI-090): on the field's
   right, before its clear button and arrow. */
.combobox.has-path input{padding-right:64px}
.combobox>.field-path{position:absolute;top:0;bottom:0;right:44px;display:flex;align-items:center}
.combobox>.field-path[hidden]{display:none}
.combobox>.field-path>summary{width:20px;height:20px;min-height:0;display:inline-grid;place-items:center;border-radius:var(--r-xs);color:var(--label-2);cursor:pointer;list-style:none}
.combobox>.field-path>summary::-webkit-details-marker{display:none}
.combobox>.field-path>summary:hover,.combobox>.field-path[open]>summary{background:var(--fill-2);color:var(--label)}
.combobox>.field-path>.menu-popover{min-width:240px}
.combobox.is-tree input{cursor:pointer}
.settings-row .combobox>.field-path{right:74px}
.settings-row .combobox.has-path>input[type][role][aria-haspopup]{padding-right:100px}
.value-cells .settings-card>.settings-row>div:not([popover]) .combobox>.field-path{right:64px}
/* An email as its recipient sees it: the Notification Centre (FUT-009 mockup). Its own document in a sandboxed frame, so its CSS never touches the application. */
.mail-frame{display:block;width:100%;height:440px;border:0;background:var(--window);border-radius:var(--r-group);box-shadow:var(--shadow-card),0 .5px 1.5px #0000000a}
.mail-frame.is-phone{width:390px;max-width:100%;margin:0 auto}
.record-rule-messages{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.record-rule-messages:empty{display:none}
.record-rule-messages li{padding:10px 12px;font:var(--type-mac-callout);line-height:1.38;border-radius:var(--r-lg);background:linear-gradient(var(--msg-info),var(--msg-info)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-info-line)}
.record-rule-messages li.warning{background:linear-gradient(var(--msg-warning),var(--msg-warning)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-warning-line)}
.record-rule-messages li.error{background:linear-gradient(var(--msg-error),var(--msg-error)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-error-line)}
.record-rule-messages li b{font-weight:600;margin-right:4px}

/* Why a field of a record window looks as it does (ADR-037 §8.1): who owns
   each of its properties, in a popover behind a small "i" by the label. */
.field-why{appearance:none;flex:none;align-self:center;margin:0 8px;width:18px;height:18px;min-width:0;min-height:0;box-shadow:none;padding:0;border-radius:50%;border:var(--hairline-w) solid var(--group-line);background:none;font:italic 600 11px/16px Georgia,serif;text-align:center;color:var(--label-2);cursor:pointer}
.field-why:hover{color:var(--accent-text);border-color:var(--accent)}
/* No explanatory text on a page (PO 2026-11-05): a page or section explains
   itself only behind the «i» - beside the window head's title, a subhead or a
   table's tool row; the head keeps one line of general information. */
/* A section title's (i) stands 4 px after its words, as a row's (FW-UI-227: «(i) везде в 4 px от подписи»). */
.window-head h2>.field-why{display:inline-block;margin:0 0 0 4px;vertical-align:3px}
.table-toolbar>.field-why{margin:0 0 0 2px}
/* A table row's (i) (a role's rights) on its label's middle, 1 px low, as the mockup's .k .help (FW-UI-227, blind round 1). */
th>.field-why{vertical-align:-3px}
/* A group label's (i) stands 4 px after its words, as a row's (FW-UI-227): the label's gap is 8 px. */
:is(.window-subhead,.object-subhead)>.field-why{margin:0 0 0 -4px}
.field-why-card b{display:block;margin-bottom:8px}
.field-why-card>p,.field-why-card>ul,.field-why-card>ol{margin:0;overflow-wrap:anywhere}
.field-why-card>ul,.field-why-card>ol{padding-inline-start:var(--field-help-indent)}
.field-why-card>:is(p,ul,ol)+:is(p,ul,ol){margin-top:var(--field-help-gap)}
.field-why-card dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px}
.field-why-card dt{color:var(--label-2)}
.field-why-card dd{margin:0}

/* The Overview of a Form (ADR-037 §9.4): the record's header and its tiles. */
/* Hero: a 72px avatar, the 22px name and a muted line. */
.form-header{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:18px}
.form-header h2{margin:0;font-size:var(--text-2xl);font-weight:600}
.form-header p{margin:2px 0 0;color:var(--label-2)}
/* The Overview's hero card (PO 2026-10-21): the globe of the name's translations and the badges. */
.form-header .badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
/* A capsule longer than its head's line stays one line and ends with «…»,
   never past the column's edges (M13 blind round 11: a Form's «Version 1 ·
   from … · Read only» ran off both sides at 375); its whole text shows on
   hover and, on a phone, on a press and hold, as a title's (shell.js; PO
   2026-11-19 R46b626: «одна строка с многоточием, полный текст по нажатию
   и удержанию, как у заголовков таблиц»). */
/* The capsule itself is the mockup's .rec-head .capsule: no padding above
   or below, its text centred in the capsule's height (FW-UI-182): a block
   that centres its one line. */
/* The head's text takes the room left beside its photo or tile and no
   more, so a long capsule is cut inside it (a record's head grew with it). */
.form-header>div:has(>.badges){flex:1 1 0;min-width:0;max-width:100%}
.form-header .badges{min-width:0;max-width:100%}
.form-header .badges .badge{display:block;align-content:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* Tile: one figure with its caption (17px, or 14px for text). */
/* Tiles flow in rows; a tile is at least as wide as its longest word, so a
   figure never breaks inside a number - a tile too wide for the row moves
   to the next one (M10's blind check). */
.form-tiles,.tiles{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
:is(.form-tiles,.tiles)>*{flex:1 1 150px}
/* A second row of tiles in one block - a Compensation's salary metrics above its Pay Component Groups (PA-FORMS-021, PO 2026-10-27: «отделить от групп линией») - stands under a hairline. */
.form-tiles+.form-tiles{padding-top:12px;border-top:var(--hairline-w) solid var(--group-line)}
.form-tile,.tile{background:var(--window);border:0;border-radius:var(--r-lg);box-shadow:var(--shadow-card);padding:10px 14px;min-width:min-content}
:is(.form-tile,.tile) small{display:block;color:var(--label-2);font-size:var(--text-xs)}
/* A tile's figure wraps at its spaces («NZD» / «$461,000.00»), never inside
   a number (M10's blind check: «NZD $461,000.» / «00»). */
:is(.form-tile,.tile) b{display:block;margin-top:2px;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:normal}
:is(.form-tile,.tile) b.s{font-size:14px}


/* Attachment - approved control, shared by record and Operation forms. */
.attachment-control{width:320px;max-width:100%;display:grid;gap:10px;justify-items:end;text-align:left}
/* «+ Add Files» (the mockup's .btn with its plus, R156762). */
.attachment-add svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.attachment-control>p{margin:0}
.attachment-files{display:grid;gap:8px;width:100%}
.attachment-files:empty{display:none}
.attachment-file{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
.attachment-file-main{flex:1;min-width:0}
.attachment-file a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attachment-file small{display:block;color:var(--tertiary);font-variant-numeric:tabular-nums}
.attachment-preview{width:72px;height:72px;object-fit:contain;border-radius:var(--r-sm);background:var(--fill);flex:none}
.attachment-file>button.field-clear{display:flex;align-items:center;justify-content:center;width:22px;min-width:0;height:22px;min-height:0;margin:0;padding:0;border:0;border-radius:var(--r-xs);background:transparent;box-shadow:none;color:var(--tertiary);font-size:15px;line-height:1;cursor:pointer;flex:none}
.attachment-file>button.field-clear:hover{background:var(--fill);color:var(--label)}

/* Designer sheet: the same FieldRow and ChoiceTiles in two independent
   panes. The header and actions stay visible; narrow windows stack panes. */
.window-head>div{flex:1;min-width:0}


/* The people a tile counts (PA-FORMS-037): the number opens the choice
   window under the tile, its rows the header search's cards. */
.form-tile b .tile-people{display:inline;padding:0;font:inherit;color:var(--link);cursor:pointer}
.form-tile b .tile-people:hover{text-decoration:underline}
.people-list .ft-list{display:grid;gap:2px;max-height:min(360px,60vh)}
.people-list .ft-list>:is(a,span){display:flex;gap:8px;align-items:center;padding:6px 10px;border-radius:var(--r-xs);overflow-wrap:anywhere;font-size:var(--text-base);color:var(--label)}
.people-list .ft-list>a:hover,.people-list .ft-list>a:focus-visible{background:var(--accent);color:var(--on-accent);text-decoration:none;outline:none}
.people-list .ft-list>a:hover small,.people-list .ft-list>a:focus-visible small{color:inherit;opacity:.85}
.people-list .ft-list small{color:var(--label-2);font-size:var(--text-xs)}
.people-list .ft-list>*>small{margin-left:auto;flex:none}
.people-list .ft-path:empty,.people-list .ft-path[hidden]{display:none}
.people-list .people-more{margin:4px 10px 2px;padding:4px 0;font-size:var(--text-sm);font-weight:600;color:var(--link)}
.people-list .people-more:hover{text-decoration:underline}
.rich-colour{position:relative;display:inline-flex}
.rich-colour-mark{position:absolute;left:6px;right:6px;bottom:4px;height:3px;border-radius:2px;background:currentColor}
.rich-palette{position:absolute;left:0;top:30px;z-index:20;display:grid;grid-template-columns:repeat(6,20px);gap:4px;padding:8px;background:var(--window);border-radius:var(--r-md);box-shadow:var(--popover-shadow)}
.rich-swatch{width:20px;height:20px;padding:0;border-radius:var(--r-xs);border:var(--hairline-w) solid var(--line-strong);cursor:pointer}
.rich-swatch-1{background:#1d2321}.rich-swatch-2{background:#5d6b63}.rich-swatch-3{background:#1f6f4a}.rich-swatch-4{background:#0d4f8b}
.rich-swatch-5{background:#a3261c}.rich-swatch-6{background:#a45a00}.rich-swatch-7{background:#7d5bd9}.rich-swatch-8{background:#ffffff}
.rich-swatch-9{background:#e8f1e3}.rich-swatch-10{background:#e6effa}.rich-swatch-11{background:#fbe9e7}.rich-swatch-12{background:#fff1de}
.rich-none{grid-column:span 6;padding:3px 6px;border:0;border-radius:var(--r-xs);font-size:var(--text-xs);background:var(--fill);color:var(--label);cursor:pointer}
/* FieldRow «value cell» (FW-UI-078, accepted by the PO 2026-10-30: «Утверждаем
   дизайн - делаем такой везде»; mockup docs/design/definition-window.html,
   Rows ▸ value cell). A window with ValueCells draws each row as two cells:
   the label cell, a hairline divider, the value cell - values and inputs
   start at the same x in every row; the cell is the field (no border of
   its own); its trailing 44px column holds the globe, the lock and a list's
   chevron on one vertical line; a switch stays at the trailing edge; the
   focused cell has one rounded ring, inset from both dividers. */
.value-cells{--rc-label:200px}
.value-cells .ie-panel,.ie-panel.value-cells{--rc-label:140px}
.value-cells .settings-card>.settings-row{flex-wrap:nowrap;align-items:stretch;gap:0;padding:0 0 0 12px}
/* A label stands in its column: two lines, then «…» with the whole text on hover; it never moves a control (PO 2026-10-31, FW-UI-089). */
.value-cells .settings-card>.settings-row>:is(label,.settings-label){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;align-self:center;flex:0 1 auto;width:auto;max-width:calc(var(--rc-label) - 22px);margin:8px 0;padding:0}
.value-cells .settings-card>.settings-row>.field-why{align-self:center;margin:0 0 0 4px}
.value-cells .settings-card>.settings-row>:is(div:not([popover]),.settings-value){position:relative;flex:none;width:calc(100% - var(--rc-label));margin-left:auto;min-height:38px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 44px 0 12px;border-left:var(--hairline-w) solid var(--group-line);text-align:left}
.value-cells .settings-card>.settings-row.top>div:not([popover]){align-items:flex-start;padding-top:4px}
/* A text value of several lines starts on the label's line. */
.value-cells .settings-card>.settings-row.top>.settings-value{flex-direction:column;align-items:flex-start;justify-content:center;padding-top:8px;padding-bottom:8px}
.value-cells .settings-card>.settings-row>div:has(>input.switch){justify-content:flex-end;padding-right:14px}
/* A plain pop-up keeps its own look in a value cell (M10's CSS check: Position Management's Legal Entity, the mockup's .popup.plain); the rules below frame every other control. */
.value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),select:not(.plain-popup),textarea,.window-code-input,.clearable,.combobox){width:100%;margin:0;padding-left:0;padding-right:0;border-color:transparent;background-color:transparent;box-shadow:none;text-align:left;text-align-last:left}
.value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),select:not(.plain-popup),textarea,.clearable,.combobox):is(:focus,:focus-within){border-color:transparent;box-shadow:none;outline:none;text-align:left}
.value-cells .settings-card>.settings-row>div .field-with-action{width:100%;position:static}
.value-cells .settings-card>.settings-row>div .field-action{right:14px;top:0;bottom:0;visibility:visible}
/* The globe of a value read stands after the value, not over a field (the
   mockup's .tr-v, blind round 8). */
.value-cells .settings-card>.settings-row>div .tr-v>.field-action{inset:auto}
.value-cells .settings-card>.settings-row.top>div .field-action{top:8px;bottom:auto;height:20px}
.value-cells .settings-card>.settings-row>.settings-value>.field-lock{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
/* A value cell's tools stand in its trailing column on one vertical line: the control's own tool (calendar, globe, lock) at the edge, the clear × before it; the column is as wide in every row (PO 2026-10-30 «крестик выбился из тулбара поля. Стрелки для цифр тоже. И дата»). */
.value-cells .settings-card>.settings-row>:is(div:not([popover]),.settings-value){padding-right:66px}
.value-cells .settings-card>.settings-row>div:not([popover]) :is(.clearable,.date-entry,.combobox){position:static;width:100%}
.value-cells .settings-card>.settings-row>div:not([popover]) :is(.date-calendar,.combobox-arrow,button.field-clear.text-button){top:0;bottom:0;right:14px;height:22px;margin:auto 0}
.value-cells .settings-card>.settings-row>div:not([popover]):has(:is(.date-calendar,.combobox-arrow,.field-action,.field-lock)) button.field-clear.text-button{right:40px}
.value-cells .settings-card>.settings-row.top>div:not([popover]) button.field-clear.text-button{top:6px;bottom:auto;margin:0}
/* The list reaches under its chevron, so a click on the chevron opens it. */
.value-cells .settings-card>.settings-row>div:has(>select:not([hidden]):not([multiple])){padding-right:0}
.value-cells .settings-card>.settings-row>div:not([popover])>select:not(.plain-popup){padding-right:44px}
.value-cells .settings-card>.settings-row>div:has(>select:not([hidden]):not([multiple]))::before{right:22px;visibility:visible!important}
.value-cells .settings-card>.settings-row>div:has([data-track])::after{content:none}
.value-cells .settings-card>.settings-row>div:not([popover]):has(:is(input:not([type=checkbox]):not([type=radio]),select:not(.plain-popup),textarea):focus:not([readonly]):not([disabled]))::after{content:"";position:absolute;inset:5px;border-radius:var(--r-sm);box-shadow:0 0 0 3px var(--focus-field);opacity:1;transform:none;pointer-events:none}
/* A value at fault has the pale red outline of every invalid control (FW-UI-025) drawn where the focus ring is: around the cell, rounded like it (PO 2026-10-30 «при ошибке в поле его обводим красным»). */
.value-cells .settings-card>.settings-row>div:not([popover]) [aria-invalid="true"]{border-color:transparent!important;box-shadow:none}
.value-cells .settings-card>.settings-row>div:not([popover]):has([aria-invalid="true"])::after{content:"";position:absolute;inset:5px;border-radius:var(--r-sm);border:1px solid color-mix(in srgb,var(--red) 60%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 30%,transparent);opacity:1;transform:none;pointer-events:none}
/* The focused cell's ring is for a control that is typed or chosen in: a
   value shown, locked or read only never gets it (PO 2026-10-30: «при клике
   на замке обводки наверное не должно быть?»); the accessories - lock, (i),
   globe - show their own ring for keyboard focus only. */
:is(.field-lock,.field-why,.field-action):focus:not(:focus-visible){outline:none;box-shadow:none}
/* The lock after a value that cannot change (FieldLock): a click opens the
   reason in the (i)'s card. */
.field-lock{vertical-align:middle}
.field-lock+.field-why-card{font-family:var(--font-text)}
/* The (i) card: the help text, then the Field Explanations lines under it. */
.field-why-card>dl:not(:first-child){margin-top:8px}
/* On a phone the label stands above its control (PO 2026-10-31, FW-UI-089):
   the whole line, the value cell the next one, without the divider. */
@media (max-width:700px){.value-cells .settings-card>.settings-row.settings-row{flex-wrap:wrap;justify-content:flex-start;padding-left:0}.value-cells .settings-card>.settings-row.settings-row>:is(label,.settings-label){flex:0 1 auto;max-width:calc(100% - 44px);margin:8px 0 0 14px}.value-cells .settings-card>.settings-row.settings-row>.field-why{align-self:flex-start;margin:8px 0 0 4px}.value-cells .settings-card>.settings-row.settings-row>:is(div:not([popover]),.settings-value){flex:none;width:100%;margin-left:0;padding-left:14px;border-left:0}}
.settings-mobile-bar .settings-back{flex:0 1 auto;min-width:0;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-form .settings-titlebar h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* On a phone a title bar with As of and its tools puts the title on a line
   of its own, ending with an ellipsis, the tools under it: the title is
   never pressed to nothing (FW-UI-137). */
@media(max-width:700px){
 .settings-titlebar.has-asof{flex-wrap:wrap;row-gap:4px;padding-top:6px;padding-bottom:6px}
 .settings-titlebar.has-asof h1{flex:1 1 100%}
}
/* A line of an ordered list (a Form's fields, the rule order) too narrow for
   its tools puts them on a line under its name, at the trailing edge; nothing
   is cut (FW-UI-149). */
.rule-order li{flex-wrap:wrap;row-gap:4px;justify-content:flex-end}
/* A list too narrow for a line's tools (a phone, a side panel) gives the
   name the first line, a choice a line of its own at full width (its
   longest value readable), the tools together on the next one: no tool is
   left alone on a line of its own (FW-UI-149). */
.rule-order{container-type:inline-size}
@container (max-width:560px){.rule-order li:has(>:is(select,.plain-button)):has(>.rule-order-name)>.rule-order-name{flex-basis:calc(100% - 34px)}.rule-order li>select{flex:1 1 100%;min-width:0}.rule-order li>.plain-button{flex:0 1 min-content;white-space:normal}}
/* ---------- Settings windows (FW-UI-191, M14; from M05's value-cell
   hand-over) ---------- */
/* Platform settings and Personal Settings take the mockup's settings rows
   (settings.html, System Settings): the label leading, the control framed
   at the trailing edge, 320 px wide; a value shown or locked stands
   trailing as text; a switch at the edge. Record windows take the same
   rows in their one column (M08, FW-UI-185; the mockup's profile.html); the
   value-cell grid above stays the dialogs' and the other windows'. */
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row{align-items:center;padding:0 12px;min-height:var(--row-mac)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>:is(label,.settings-label){flex:0 1 auto;min-width:0;max-width:none;margin:9px 12px 9px 0}
/* A label with its (i): the (i) stands 4 px after the words (FW-UI-227; a theme's rows had 16 px). */
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>:is(label,.settings-label):has(+.field-why){margin-right:0}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>:is(div:not([popover]),.settings-value){flex:0 1 auto;width:auto;min-width:0;min-height:0;margin:7px 0 7px auto;padding:0;border-left:0;justify-content:flex-end;text-align:right}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>.settings-value{color:var(--label-2)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]):has(:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([readonly]),select,textarea)){flex:0 0 min(320px,58%)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>.settings-value>.field-lock{position:static;transform:none;margin-left:6px}
/* A locked value and its lock stand in one line, the lock after the value,
   in every window and at every width (the mockup's .row: .v, then .lockbtn;
   the PO 2026-11-19, R070690: «замки висят под назанием» - a row marked top
   stacked them). */
.value-cells .settings-card>.settings-row>.settings-value:has(>.field-lock){flex-direction:row;align-items:center}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),textarea,.window-code-input){padding-left:8px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),select:not(.plain-popup),textarea,.window-code-input){width:min(320px,100%);border:var(--hairline-w) solid var(--control-line);border-radius:var(--r-control);background-color:var(--control)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(.clearable,.date-entry,.combobox,.field-with-action){position:relative;width:min(320px,100%)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(.clearable,.date-entry,.combobox,.field-with-action)>:is(input,select){width:100%}
/* One geometry for a field's tools, as the mockup's (R337726; FW-UI-182, blind round 5): the field's own tool - calendar, arrow, globe - a 20 px slot 2 px from the frame's end; the × 2 px before it, or 4 px from the end without one; the text keeps clear of both. */
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(.date-calendar,.combobox-arrow,.field-action){right:2px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) button.field-clear.text-button{right:4px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),textarea){padding-right:26px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(.combobox,.clearable.picker,.field-with-action)>:is(input:not([type=checkbox]),textarea){padding-right:50px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]):has(:is(.date-calendar,.combobox-arrow,.field-action,.field-lock)) button.field-clear.text-button{right:24px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:has(>select:not([hidden]):not([multiple]))::before{right:10px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover])>select:not(.plain-popup){padding-left:10px;padding-right:26px}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]),textarea):is(:focus,:focus-within){border-color:transparent;box-shadow:0 0 0 3px var(--focus-field)}
/* A pop-up button keeps its frame with the focus; the keyboard's focus is the page's outline, as the mockup's .popup (FW-UI-182). */
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover])>select:not(.plain-popup):focus{border-color:var(--control-line);box-shadow:none}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover])>select:not(.plain-popup):focus-visible{outline:3px solid var(--focus);outline-offset:1px}
/* A Combo Box's focus is the mockup's .cbx-btn: the accent line in a soft accent ring; on iPhone the pop-up button's outline (fields.css; FW-UI-182). */
@media(min-width:701px){:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) .combobox.combobox>input{padding-left:9px}:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) .combobox.combobox>input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft-strong)}}
@media(max-width:700px){:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) .combobox.combobox>input{padding-left:10px}:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) .combobox.combobox>input:focus{border-color:var(--control-line);box-shadow:none;outline:3px solid var(--focus);outline-offset:1px}}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]):has(:is(input,select,textarea):focus)::after{content:none}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) [aria-invalid="true"]{border-color:var(--red)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 30%,transparent)}
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]):has([aria-invalid="true"])::after{content:none}
/* A value locked in a field reads as text at the edge, its lock beside it. */
:is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row>div:not([popover]) input[readonly]:not([type=checkbox]):not([type=radio]){width:auto;border-color:transparent;background:transparent;box-shadow:none;text-align:right;color:var(--label-2);padding-right:0}
/* The (i) stands 4 px after its label, on the Mac and on iPhone, as the mockup's .k .help (FW-UI-227; the PO 2026-11-20). */
@media(max-width:700px){
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row{flex-wrap:wrap;row-gap:6px;min-height:var(--row-ios);padding:11px 16px;font:var(--type-ios-body)}
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>:is(label,.settings-label){flex:0 1 auto;min-width:0;max-width:none;margin:0;font:var(--type-ios-body)}
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>.field-why{align-self:flex-end;margin:0 0 3.5px 4px}
 /* A label of two lines keeps its (i) on its line, at the end of its last line (FW-UI-227). */
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>:is(label,.settings-label):has(+.field-why){max-width:calc(100% - 26px)}
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>:is(div:not([popover]),.settings-value){flex:0 1 auto;width:auto;margin:0 0 0 auto;padding-left:0;font:var(--type-ios-body)}
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>div:not([popover]):has(:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([readonly]),select,textarea)){flex:1 1 100%;width:100%;margin-top:0}
 :is([data-settings-values],.personal-settings .settings-layout,:has(>.settings-body.is-column)).value-cells .settings-card>.settings-row.settings-row>div:not([popover]) :is(input:not([type=checkbox]):not([type=radio]):not([readonly]),select,textarea,.window-code-input,.clearable,.date-entry,.combobox,.field-with-action){width:100%}
}

/* ---------- The record window as one column (FW-UI-185, M08; D3 = A) ----------
   A record's sections stand one under another in the mockup's record width
   (record-w), parted by the separator above each head (P29, P64); a part's
   name (Person, Employment) is a label with its line. «On this page», the
   SectionIndex, stands at the right while the page is taller than the
   window (PO 2026-11-17); the column scrolls under it. */
.settings-body.is-column{grid-template-columns:minmax(0,1fr);position:relative}
.settings-body.is-column>.settings-panes{grid-column:1;grid-row:1;overflow:auto;padding:8px 0 48px;background:var(--page)}
/* No space of the section's own under its last group: the next head's 30 px
   part the sections, as the mockup's .rsec (M13's CSS check: 38 px). */
.settings-body.is-column .settings-pane{overflow:visible;background:none;max-width:calc(var(--record-w) + 48px);margin:0 0 0 max(0px,calc((100% - var(--record-w) - 208px) / 2 - 24px));padding:0 24px}
.settings-body.is-column .part-label{display:flex;align-items:center;gap:8px;max-width:calc(var(--record-w) + 48px);margin:34px 0 -4px max(0px,calc((100% - var(--record-w) - 208px) / 2 - 24px));padding:0 24px;font:var(--type-mac-emphasis);line-height:1.2;color:var(--label-2)}
.settings-body.is-column .part-label::after{content:"";flex:1;height:var(--hairline-w);background:var(--separator)}
.settings-body.is-column .settings-pane>.window-head{margin:30px 0 8px;padding-top:16px;border-top:var(--hairline-w) solid var(--separator)}
.settings-body.is-column .settings-pane:first-child>.window-head,.settings-body.is-column .part-label+.settings-pane>.window-head,.settings-body.is-column .part-label+.window-fieldset>.settings-pane>.window-head{margin-top:16px;padding-top:0;border-top:0}
.settings-body.is-column .window-head>.settings-icon{display:none}
.settings-body.is-column .window-head h2{font:var(--type-mac-section)}
/* A heading's (i) stands on the heading's line and never makes it taller
   (M13's CSS check: a phone's 22 px (i) made the 24 px heading 28). */
.settings-body.is-column .window-head h2:has(>.field-why){display:flex;align-items:center}
.settings-body.is-column .window-head h2>.field-why{flex:none;vertical-align:0}
/* «On this page»: the mockup's .sec-nav.idx - a line of its own at the left
   of the items, the current one in the accent. */
.settings-body.is-column>.sec-index{position:absolute;z-index:2;top:16px;right:max(12px,calc((100% - var(--record-w) - 208px) / 2));width:176px;max-height:calc(100% - 32px);overflow:auto;padding:4px 0 0;border:0;background:none;display:flex;flex-direction:column;font:var(--type-mac-callout)}
.settings-body.is-column>.sec-index[hidden]{display:none}
.sec-index-title{margin:0 0 4px;padding:2px 12px 3px;font:var(--type-mac-caption);font-weight:600;color:var(--label)}
.sec-index-list{display:flex;flex-direction:column}
.sec-index-list .window-heading{margin:0;padding:10px 12px 3px;font:var(--type-mac-caption);font-weight:600;color:var(--label-2)}
.sec-index-list>.settings-item{display:block;width:100%;min-height:0;margin:0;padding:4px 12px;border:0;border-left:2px solid var(--separator);border-radius:0;background:none;box-shadow:none;color:var(--label-2);font:var(--type-mac-callout);text-align:left;cursor:default}
.sec-index-list>.settings-item:hover{background:none;color:var(--label)}
.sec-index-list>.settings-item[aria-current=true]{border-left-color:var(--accent);color:var(--accent-text);font-weight:600;background:none}
.sec-index-list>.settings-item>:is(.settings-icon,.window-count,.settings-dot){display:none}
/* A long section name wraps in the index, as the mockup's rail; the button's
   nowrap cut it short (lane C's M10 blind round 2: «Management Hierarchy
   Leve»). The pill's menu ends one with an ellipsis. */
.sec-index-list>.settings-item{white-space:normal;line-height:1.3}
.sec-pill-wrap .menu-item>span:last-child{overflow:hidden;text-overflow:ellipsis}
/* The pill of sections (the mockup's .sec-pill): on a window narrower
   than the column and its index, «On this page» steps aside and a glass
   pill after the record's header names the section in view; its menu
   lists the sections. On a phone it stands centred. */
.sec-pill-wrap{display:none;position:sticky;top:8px;z-index:30;margin:10px 0 -4px;padding:0 24px;align-items:center;gap:6px}
/* The title bar's open menu stands over the section pill (M13 blind round
   9: the pill covered ⋯'s versions and took their clicks at 375). */
.scroll>.settings-form>.settings-titlebar:has(details[open]){z-index:31}
.sec-pill-wrap[hidden]{display:none!important}
/* The pill's menu opens over the window and scrolls when its sections run
   long (lane B's WP3 blind round 1: 18 sections opened under the form). */
.sec-pill-wrap .menu-popover{max-height:min(60vh,calc(100vh - 160px));overflow:auto}
.sec-pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:var(--r-capsule);background:var(--glass);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);box-shadow:var(--glass-shadow);color:var(--label);font:var(--type-mac-body);font-weight:500;list-style:none;cursor:default}
.sec-pill::-webkit-details-marker{display:none}
.sec-pill>span{max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sec-pill>svg{width:11px;height:11px;flex:none;fill:none;stroke:var(--label-2);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* A column too narrow for the index beside the record (settings-form.js
   marks it: the app's sidebar takes its share of the window). */
.settings-body.is-column[data-narrow]>.sec-index{display:none}
.settings-body.is-column[data-narrow] .sec-pill-wrap{display:flex;max-width:calc(var(--record-w) + 48px);margin-left:auto;margin-right:auto}
.settings-body.is-column[data-narrow] :is(.settings-pane,.part-label){margin-left:auto;margin-right:auto}
/* A section gone to from the pill stops under it, its title in view. */
.settings-body.is-column[data-narrow] .settings-pane{scroll-margin-top:48px}
@media(max-width:1000px){
 .settings-body.is-column>.sec-index{display:none}
 .settings-body.is-column .sec-pill-wrap{display:flex;max-width:calc(var(--record-w) + 48px);margin-left:auto;margin-right:auto}
 .settings-body.is-column .settings-pane,.settings-body.is-column .part-label{margin-left:auto;margin-right:auto}
}
@media(max-width:1000px){.settings-body.is-column .settings-pane{scroll-margin-top:48px}}
@media(max-width:700px){
 .settings-body.is-column:is([data-narrow],:not([data-narrow])) .settings-pane{scroll-margin-top:56px}
 .settings-body.is-column .sec-pill-wrap{justify-content:center;margin-top:12px;margin-bottom:-6px}
 .sec-pill{height:38px;padding:0 14px;font:var(--type-ios-subhead);font-weight:500}
 .sec-pill>span{max-width:130px}
}
@media(max-width:700px){
 .settings-form[data-mobile-view] .settings-body.is-column{grid-template-rows:auto minmax(0,1fr)}
 .settings-form[data-mobile-view] .settings-body.is-column>.settings-panes{display:block;overflow:auto;padding:0 0 32px}
 .settings-form[data-mobile-view] .settings-body.is-column .settings-pane{padding:0 16px}
 .settings-body.is-column .part-label{padding:0 32px;font-size:15px;line-height:1.2}
}
/* A section's head in one column (the mockup's .sec-head): the title, then
   at the trailing edge Correct - or, while the section is corrected, the
   count of changes, Cancel and Save (P7, P33). The line under the title
   opens the section's audit: a quiet text button with a small disclosure
   (PO 2026-11-15, R867231). The footer's clock gives way to it. */
.settings-body.is-column .window-head{align-items:flex-start;gap:8px}
/* A record's window in one column says its changes in each section's head:
   a footer with nothing to show or press is not drawn, as the mockup's
   record has none (the white strip under the window, M08). */
.scroll>.settings-form:has(>.settings-body.is-column)>.settings-footer:not(:has(:is(button,a,input,select):not([data-window-audit] *),.settings-count:not(:empty))){display:none}
/* A section corrected in place rings its groups of fields in the accent, as
   the mockup's .editing .group (1.5 px and a soft shadow); a list keeps its
   plain group, its rows edited in the side pane. */
.settings-body.is-column .settings-pane:has(>.window-head .sec-head-tools [data-form-cancel]) .settings-card:not(:has(>table[data-ie-opens])){box-shadow:0 0 0 1.5px var(--accent),0 2px 10px #0000000f}
/* The record's chooser of its context (the Employment) is the mockup's
   pop-up button of a row: 24 px on the Mac; on iPhone 34 px and 17 px, the
   row's width, its label left to the group label above it (.emp-row). */
.settings-body.is-column .settings-row .window-context{height:var(--ctl-mac)}
@media(max-width:700px){
 .settings-body.is-column .settings-row .window-context{height:var(--ctl-ios);font:var(--type-ios-body)}
 .settings-body.is-column .settings-card>.settings-row:has(.window-context)>label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .settings-body.is-column .settings-card>.settings-row:has(.window-context)>div{flex:1 1 100%;width:100%}
 /* Its (i) follows the group label, 4 px after it, the label of the row being hidden (FW-UI-227). */
 .settings-body.is-column .settings-card>.settings-row:has(.window-context)>.field-why{display:none}
 .settings-body.is-column .window-block:has(.window-context)>.window-subhead>.field-why{display:inline-grid;align-self:center}
}
@media(min-width:701px){.settings-body.is-column .window-block:has(.window-context)>.window-subhead>.field-why{display:none}}
/* Its buttons wrap at the trailing edge when the head is narrow, as the
   mockup's .sec-head .trail (a button's words never wrap; FW-UI-182). */
.settings-body.is-column .sec-head-tools{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;flex:0 1 auto;max-width:100%}
.settings-body.is-column .sec-head-tools>.settings-count{margin-right:4px;color:var(--label-2);font:var(--type-mac-callout)}
.settings-body.is-column .window-head .op-line{display:inline-block;max-width:100%;white-space:normal;min-height:0;margin:2px 0 0 -6px;padding:2px 6px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--label-2);font:var(--type-mac-caption);font-weight:400;text-align:left;text-decoration:none;cursor:default}
.settings-body.is-column .window-head .op-line strong{color:inherit;font-weight:400}
/* The line without a run to open is the same line as text (FW-UI-230): no
   chevron, no hover. */
.settings-body.is-column .window-head p.window-head-line{max-width:100%;margin:2px 0 0;padding:2px 0;color:var(--label-2);font:var(--type-mac-caption);font-weight:400}
.settings-body.is-column .window-head p.window-head-line strong{color:inherit;font-weight:400}
.settings-body.is-column .op-chev{display:inline-block;vertical-align:middle;margin-left:3px;width:8px;height:8px;flex:none;fill:none;color:var(--label-3);stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.settings-body.is-column .window-head .op-line:hover{background:var(--fill-2);color:var(--label)}
.settings-body.is-column .window-head .op-line:hover .op-chev{color:var(--label-2)}
.settings-body.is-column .window-head .op-line:active{background:var(--fill-2);filter:brightness(.92)}
.settings-form:has(.settings-body.is-column) [data-window-audit]{display:none}
@media(max-width:700px){
 .settings-body.is-column .window-head{flex-wrap:wrap}
 .settings-body.is-column .window-head>div{flex:1 1 12em}
 .settings-body.is-column .window-head .op-line,.settings-body.is-column .window-head p.window-head-line{font:var(--type-ios-footnote)}
 .settings-body.is-column .sec-head-tools>.settings-count{font:400 12px/1.29 var(--font-text)}
 /* The record on iPhone is the mockup's iOS list: section titles in 20 px,
    group labels in 13 px plain, groups without their shadow, a hairline
    between rows 16 px in. */
 .settings-body.is-column .window-head h2{font:700 20px/1.2 var(--font-text)}
 .settings-body.is-column .window-subhead{margin:18px 16px 6px;font:400 13px/1.29 var(--font-text)}
 .settings-body.is-column .settings-card{box-shadow:none}
 .settings-body.is-column .settings-card>.settings-row+.settings-row::before{left:16px}
}
/* A dated section's History (Q3 A, P78): an icon button in its head opens
   its versions in a popover (the mockup's .hist-list): the date opens the
   record on that day, the Operation and reason lead the fields changed. */
.settings-body.is-column .sec-icon-button{width:var(--ctl-mac);min-width:0;padding:0}
.settings-body.is-column .sec-icon-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.history-card{min-width:min(320px,calc(100vw - 24px))}
.history-card>.history-title{margin:0 0 8px;font:var(--type-mac-emphasis)}
.hist-list{margin:0;padding:0;list-style:none;border-radius:var(--r-group);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line);overflow:hidden}
.hist-list>li{position:relative;display:flex;align-items:flex-start;gap:12px;min-height:36px;padding:7px 12px}
.hist-list>li+li::before{content:"";position:absolute;top:0;left:12px;right:0;height:var(--hairline-w);background:var(--field-line)}
.hist-list .hist-when{flex:0 0 90px;margin:-2px 0 0 -4px;padding:2px 4px;border-radius:6px;color:var(--label);font-variant-numeric:tabular-nums;text-decoration:none}
.hist-list a.hist-when{color:var(--accent-text)}
.hist-list a.hist-when:hover{background:var(--accent-soft)}
.hist-list a.hist-when:active{background:var(--accent-soft-strong)}
.hist-list>li[aria-current=true] .hist-when{font-weight:600}
.hist-list .hist-what{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hist-list .hist-what b{font-weight:400;color:var(--label)}
.hist-list .hist-what small{color:var(--label-2);font:var(--type-mac-caption);font-weight:400}
.hist-list .hist-what .badge{align-self:flex-start}
.hist-list>li>.button{flex:none}
.hist-list>.hist-empty{justify-content:center;color:var(--label-2)}
.history-card>.hist-note{margin:8px 0 0;padding-top:6px;border-top:var(--hairline-w) solid var(--separator);color:var(--label-2);font:var(--type-mac-caption);font-weight:400}
@media(max-width:700px){
 .settings-body.is-column .sec-icon-button{width:var(--ctl-ios)}
 .history-card>.history-title{font:var(--type-ios-subhead);font-weight:600}
 .hist-list>li{min-height:44px;padding:11px 16px}
 .hist-list>li+li::before{left:16px}
 .hist-list .hist-what small,.history-card>.hist-note{font:var(--type-ios-footnote)}
}
/* A version's stamps in place of the History list, the way back first. */
.hist-list .hist-what.op-line{display:flex;flex-direction:column;align-items:flex-start;white-space:normal;margin:-2px 0 -2px -6px;padding:2px 6px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--label);font:inherit;text-align:left;cursor:default;min-height:0}
.hist-list .hist-what.op-line:hover{background:var(--fill-2)}
.hist-list .hist-what.op-line:active{background:var(--fill-2);filter:brightness(.92)}
.hist-list .hist-what.op-line{position:relative;padding-right:18px}
.hist-list .hist-what.op-line>.op-chev{position:absolute;right:6px;top:7px}
.history-card>.hist-back{display:inline-flex;align-items:center;gap:2px;margin:0 0 6px -4px}
.history-card>.hist-back svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.history-card>.hist-audit-line{margin:0 0 8px;color:var(--label-2);font:var(--type-mac-callout)}
.history-card>.hist-stamps{margin:0;display:grid;gap:10px}
.history-card>.hist-stamps dt{color:var(--label-2);font:var(--type-mac-caption)}
.history-card>.hist-stamps dd{margin:2px 0 0}
.history-card>.hist-stamps dd small{display:block;color:var(--label-2);font:var(--type-mac-caption);font-weight:400;font-variant-numeric:tabular-nums}
/* The record's header and its facts in one column (the mockup's .rec-head
   and .stats, Q13 B): the photo, the name, its line and capsules on the
   page; the facts in one grouped grid of three, parted by hairlines. */
.settings-body.is-column .form-header{flex-wrap:nowrap;gap:16px;padding:6px 0 14px}
.settings-body.is-column .form-header>.avatar,.settings-body.is-column .form-header>button>.avatar{width:84px;height:84px;font-size:32px}
.settings-body.is-column .form-header h2{font:var(--type-mac-record-title)}
.settings-body.is-column .form-header p{margin-top:2px;color:var(--label-2)}
.settings-body.is-column .form-header .badges{gap:6px;margin-top:7px}
.settings-body.is-column .form-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hairline-w);margin-top:0;border-radius:var(--r-group);background:var(--field-line);box-shadow:0 0 0 var(--hairline-w) var(--group-line);overflow:hidden}
.settings-body.is-column .form-tile{border-radius:0;background:var(--group);box-shadow:none;padding:9px 12px}
.settings-body.is-column .form-tile small{color:var(--label-2);font:var(--type-mac-caption);font-weight:400}
.settings-body.is-column .form-tile b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.settings-body.is-column .form-tile b a{color:var(--accent-text)}
.settings-body.is-column .form-tile:last-child:nth-child(3n+2){grid-column:span 2}
.settings-body.is-column .form-tile:last-child:nth-child(3n+1){grid-column:span 3}
@media(max-width:700px){
 .settings-body.is-column .form-header{flex-direction:column;gap:8px;text-align:center}
 .settings-body.is-column .form-header .badges{justify-content:center}
 .settings-body.is-column .form-header h2{font-size:28px}
 .settings-body.is-column .form-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .settings-body.is-column .form-tile:last-child:nth-child(n){grid-column:auto}
 .settings-body.is-column .form-tile:last-child:nth-child(odd){grid-column:span 2}
 .settings-body.is-column .form-tile b{font-size:17px;line-height:1.29;white-space:normal}
 .settings-body.is-column .form-header p{font:var(--type-ios-body)}
}
/* On another day than today the record says so over its header (the
   mockup's .asof-bar): a warning-toned line with the way back to today,
   drawn as the product's banners - the tone over the surface with its 1px
   line (PO 2026-11-18 «Давай вернем наши», controls.css «Messages»). */
.asof-bar{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:7px 12px;border-radius:10px;background:linear-gradient(var(--msg-warning),var(--msg-warning)),var(--window);box-shadow:inset 0 0 0 1px var(--message-warning-line);font:var(--type-mac-callout);line-height:1.38}
.asof-bar>svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--orange-text);stroke-width:1.5;stroke-linecap:round}
.asof-bar>span{flex:1;min-width:0}
.asof-bar>.button{flex:none}
@media(max-width:700px){.asof-bar{font:var(--type-ios-footnote)}}
/* A banner over the record's header (Q9 A, the mockup's .banner): an
   ended employment warns, a contingent worker informs; the title in bold,
   its values after it, the note under them. Its tone lies over the surface
   with its 1px line, as every banner (PO 2026-11-18 «Давай вернем наши»). */
.record-banner{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:10px 12px;border-radius:10px;background:linear-gradient(var(--msg-info),var(--msg-info)),var(--window);box-shadow:inset 0 0 0 1px var(--message-info-line);font:var(--type-mac-callout);line-height:1.38}
.record-banner.warn{background:linear-gradient(var(--msg-warning),var(--msg-warning)),var(--window);box-shadow:inset 0 0 0 1px var(--message-warning-line)}
.record-banner>svg{width:16px;height:16px;margin-top:1px;flex:none;fill:none;stroke:var(--accent-text);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.record-banner.warn>svg{stroke:var(--orange-text)}
.record-banner p{margin:0}
.record-banner b{font-weight:600}
.record-banner .record-banner-note{color:var(--label-2)}
@media(max-width:700px){.record-banner{font:var(--type-ios-footnote)}}
/* The compact title of a record window (Q13 B): once its header has
   scrolled away, the title bar names the record - the photo, the name, its
   capsules, then after a separator the Employment's choice, borderless. */
.tb-record{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden}
.tb-record[hidden]{display:none}
/* While the record's header shows, the title bar says what the window is, not its name a second time (the mockup's name-off; FW-UI-302). */
.tb-heading.name-off>h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tb-heading.name-off>.title-path{font:var(--type-mac-body);color:var(--label-2)}
.tb-record>.avatar{flex:none}
.tb-record>.icon-tile{flex:none;width:24px;height:24px;border-radius:6px}
.tb-record>.icon-tile svg{width:14px;height:14px}
.tb-record>span{display:flex;flex-direction:column;min-width:0}
/* The compact title's tile and avatar are spans too, but centre what they hold, as the record's head does (FW-UI-187, the PO 2026-11-21: «иконка съехала вверх»). */
.tb-record>span:is(.icon-tile,.avatar){display:inline-grid;flex-direction:row;place-items:center}
.tb-record>span>b{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--type-mac-emphasis)}
.tb-record>span>.tb-record-line{display:flex;min-width:0;overflow:hidden;white-space:nowrap;color:var(--label-2);font:var(--type-mac-caption)}
/* The window's state or «Edited · n changes» under the name, one at a time (FW-UI-222). */
.tb-record-line .edited-btn{display:inline;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;color:var(--accent-text);cursor:pointer}
.tb-record-line .edited-btn:hover{text-decoration:underline;background:none}
.tb-record>span>small{display:none;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--label-2);font:var(--type-mac-caption)}
.tb-record>.badges{display:flex;flex-wrap:nowrap;gap:6px;margin:0;min-width:0;overflow:hidden}
.tb-record>select{width:auto;max-width:240px;min-height:0;height:var(--tb-item);margin:0;padding:0 22px 0 6px;border:0;border-radius:var(--r-capsule);background-color:transparent;box-shadow:none;color:var(--label);font:var(--type-mac-body)}
/* A narrower window keeps the first capsule; an iPhone names the record
   as its navigation bar does - the photo, the name and its line - and the
   Employment choice stays in the content (the mockup's .tb-title, .nb-title). */
@container (max-width:860px){.tb-record>.badges>.badge:not(:first-child){display:none}.tb-record>select{max-width:40%}}
@media(max-width:700px){.settings-titlebar>.tb-record{order:1;flex:1 1 100%;padding:4px 0}.tb-record>:is(.badges,.tb-sep,select){display:none}.tb-record>span>b{font:var(--type-ios-headline)}.tb-record>span>small{display:block}}
/* A record's lists in one column (the mockup's rows, Q11 C): each row its
   first value, the others under it joined «·», a chevron at the trailing
   edge; the row opens its editor in the side pane, + adds one there. No
   column heads, as the mockup's lists have none. Only a Table the Form
   presents as a list (data-ie-list: PANEL or LIST - addresses, documents);
   every other Table keeps its heads, as the mockup's Funding and Payments
   (FW-UI-187, the PO 2026-11-21: «тут теперь совсем не понятно, что речь
   идет о кост центре»). */
.settings-body.is-column .settings-card:has(>table[data-ie-opens][data-ie-list]){overflow-x:visible}
.settings-body.is-column table[data-ie-opens][data-ie-list],.settings-body.is-column table[data-ie-opens][data-ie-list] tbody{display:block;min-width:0}
.settings-body.is-column table[data-ie-opens][data-ie-list] thead{display:none}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;min-height:var(--row-mac);padding:7px 30px 7px 12px;border-bottom:var(--hairline-w) solid var(--field-line)}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row:last-of-type{border-bottom:0}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td{display:block;height:auto;max-width:none;padding:0;border:0;background:none;white-space:normal;color:var(--label-2);font:var(--type-mac-caption);font-weight:400}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td:first-child{flex:0 0 100%;color:var(--label);font:var(--type-mac-body)}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td:empty{display:none}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td:not(:first-child):not(.ie-tools)+td:not(.ie-tools):not(:empty)::before{content:"· "}
.settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td.ie-tools{position:absolute;top:0;right:8px;bottom:0;display:flex;align-items:center;width:auto;padding:0;overflow:visible}
.settings-body.is-column table[data-ie-opens] tr.ie-row:not(.is-removed):hover{background:var(--fill-hover)}
/* One shading on a hovered row of a record window: the row, never its cells too (FW-UI-185 round 3, the PO 2026-11-20 Re5afbb: «тут двойна закраска и сама таблица и строка в ней»). Here the cells stand as the row's title and sub-line, so a cell's own shading drew a box behind each piece over the row's. */
.settings-body.is-column .settings-card :is(table.ie-mode-panel,table[data-ie-opens]) tr.ie-row:hover>td{background:none}
.settings-body.is-column table[data-ie-opens] tr.ie-row.is-open{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
/* While the editor holds what a + opened - a new row, or a set of shares
   with its new one - that + shows as selected, its accent mark at the
   leading edge, until the editor closes (the mockup's .row-editing; the PO
   2026-11-18, R69cef3; 2026-11-21, R87f7ad). A row opened selects none, and
   a + that cannot be pressed while an editor is open is hidden, its place
   kept (R85a5b3); record-tables.js marks both. */
.settings-body.is-column table[data-ie-opens] tr.ie-plus .ie-row-tool{width:24px;height:20px;border-radius:4px}
.settings-body.is-column table[data-ie-opens] tr.ie-plus .ie-row-tool[data-ie-adding]{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
[data-ie-add][data-ie-waits]{visibility:hidden}
.settings-body.is-column table[data-ie-opens][data-ie-list] :is(tr.ie-plus,tr.empty-row),.settings-body.is-column table[data-ie-opens][data-ie-list] :is(tr.ie-plus,tr.empty-row) td{display:block}
@media(max-width:700px){
 .settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row{min-height:var(--row-ios);padding:11px 34px 11px 16px}
 .settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td{font:var(--type-ios-footnote)}
 .settings-body.is-column table[data-ie-opens][data-ie-list] tr.ie-row td:first-child{font:var(--type-ios-body)}
}
/* The row editor of a record in one column (the mockup's row-pane sheet):
   the row's name and its list under it, the fields, then Delete at the
   leading edge and Cancel and Done at the trailing one. On a row of the
   list the chevron stands for the minus: Delete is in the editor. */
.ie-panel-head:has(>.ie-panel-sub){flex-wrap:wrap;row-gap:2px}
.ie-panel[data-ie-state] .ie-panel-head:has(>.ie-panel-sub)>h3{flex:0 0 100%;margin:0;text-align:left}
.ie-panel-sub{flex:0 0 100%;margin:0;color:var(--label-2);font:400 12px/1.38 var(--font-text)}
.ie-panel-foot{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:var(--hairline-w) solid var(--separator)}
.ie-panel-foot>[data-ie-row-cancel]{margin-left:auto}
.ie-panel-del{display:none}
/* A translatable value read and its globe (the mockup's .tr-v). */
.tr-v{display:inline-flex;align-items:center;justify-content:flex-end;gap:2px;max-width:100%}
/* A section whose answer is awaited (Correct, Save, Cancel before the read
   state has come) says so at once, as the inspector's body does. */
.settings-pane[aria-busy=true]{opacity:.55}
.settings-body.is-column table[data-ie-opens] tr.ie-row td.ie-tools>[data-ie-remove]{display:none}
.settings-body.is-column table[data-ie-opens] tr.ie-row:has(td.ie-tools>[data-ie-remove]:not([hidden])):not(.is-removed)::after{content:"";position:absolute;top:50%;right:14px;width:6px;height:6px;border:solid var(--label-3);border-width:1.5px 1.5px 0 0;transform:translateY(-50%) rotate(45deg)}
@media(max-width:700px){.ie-panel-foot{flex-wrap:wrap;padding:10px 16px 16px}}
/* A record's rows give the label its share, as the mockup's .row .k: up to
   46% of the row, 140 px in the side pane, wrapped between words only. The
   label is as wide as its words, so its (i) stands right after them, inside
   that share, as the mockup's .help inside .k (PO 2026-11-18: «значок с
   информацией появляется посреди строки»). */
@media(min-width:701px){
 .value-cells .settings-body.is-column .settings-card>.settings-row>:is(label,.settings-label){flex:0 1 auto;max-width:46%;min-width:min-content;overflow-wrap:normal}
 .value-cells .settings-body.is-column .settings-card>.settings-row>:is(label,.settings-label):has(+.field-why){max-width:calc(46% - 23px);margin-right:0}
 .value-cells .settings-body.is-column .ie-panel .settings-card>.settings-row>:is(label,.settings-label){flex:0 1 auto;max-width:140px;min-width:0}
 .value-cells .settings-body.is-column .ie-panel .settings-card>.settings-row>:is(label,.settings-label):has(+.field-why){max-width:117px;margin-right:0}
 /* Beside that label the field takes the rest of the pane from 140 px on,
    whatever the label's words: the fields stand in one line. */
 :has(>.settings-body.is-column).value-cells .ie-panel .settings-card>.settings-row>div:not([popover]):has(:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([readonly]),select,textarea)){flex:0 0 calc(100% - 140px);min-width:0;margin-left:auto}
}
/* The row editor takes its room beside the record, as the mockup's
   inspector does: the column narrows while it is open, nothing under it.
   On an iPhone it is a sheet from the bottom over a scrim, Cancel at the
   top left and Done at the top right, as every sheet there (P26). */
@media(min-width:701px){.settings-body.is-column:has(>.ie-panel.is-open)>.settings-panes{margin-right:calc(min(440px,46%) + var(--gap-window))}}
/* A record standing in the side pane edits a Table's row in the pane
   itself, as a row was edited beside the record before the pane came
   (FW-UI-236; the PO 2026-11-20, R8f5681, Re3cbee: «Сделать также как
   работал Cost Centre в Job Info»): the row's editor takes the whole pane
   over the record's fields, which wait under it; its Cancel and Done are the
   pane's only ones while it is open. No second pane, nothing cut. */
@media(min-width:701px){
 .in-pane .settings-body.is-column>.ie-panel{inset:0;width:auto;margin:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;transform:translateX(100%)}
 .in-pane .settings-body.is-column>.ie-panel.is-open{transform:none}
 .in-pane .settings-body.is-column:has(>.ie-panel.is-open)>.settings-panes{visibility:hidden;margin-right:0}
 .in-pane .settings-form:has(>.settings-body.is-column>.ie-panel.is-open)>:is(.settings-titlebar,.settings-footer){visibility:hidden;margin-right:0}
 .in-pane .ie-peek{display:none}
}
@media(max-width:700px){
 .settings-body.is-column>.ie-panel{position:fixed;inset:auto 0 0;width:auto;max-height:94vh;border:0;border-radius:26px 26px 0 0;background:var(--sheet);box-shadow:var(--sheet-shadow),0 0 0 100vmax var(--scrim);transform:translateY(100%);z-index:40}
 .settings-body.is-column>.ie-panel:not(.is-open){box-shadow:none}
 .settings-body.is-column>.ie-panel.is-open{transform:translateY(var(--sheet-drag,0px))}
 .settings-body.is-column>.ie-panel{padding-top:16px}
 /* The sheet's head and actions as the mockup's iPhone sheet: the name in
    17 px and its line in the middle, Cancel and Done as large capsules
    sharing the bar (.sheet-head, .sheet-foot .btn). */
 .settings-body.is-column>.ie-panel>.ie-panel-head{justify-content:center;padding:14px 16px 6px;text-align:center}
 .settings-body.is-column>.ie-panel>.ie-panel-head>h3{font:var(--type-ios-headline);text-align:center}
 .settings-body.is-column>.ie-panel>.ie-panel-head>.ie-panel-sub{text-align:center}
 .settings-body.is-column>.ie-panel>.ie-panel-foot>:is(button,.button):not(.danger-button){flex:1 1 0;min-width:0;min-height:50px;padding:0 16px;border-radius:25px;font:var(--type-ios-body)}
 .settings-body.is-column>.ie-panel>.ie-panel-foot{order:-1;flex-wrap:nowrap;padding:10px 16px;border-top:0;border-bottom:var(--hairline-w) solid var(--separator)}
 .settings-body.is-column>.ie-panel>.ie-panel-foot>[data-ie-row-cancel]{order:-1;margin:0 auto 0 0}
 .settings-body.is-column>.ie-panel>.ie-panel-foot:has(>.foot-hint:not([hidden])){flex-wrap:wrap}
 /* Delete is a row of its own at the sheet's end (the mockup's delRow);
    the bar keeps Cancel and Done. */
 .settings-body.is-column>.ie-panel>.ie-panel-foot>[data-ie-panel-remove]{display:none}
 .settings-body.is-column>.ie-panel>.ie-panel-body{display:flex;flex-direction:column}
 .settings-body.is-column>.ie-panel>.ie-panel-body>.ie-panel-del{display:block;order:9;flex:none;margin:18px 0 0}
 .settings-body.is-column>.ie-panel>.ie-panel-body>.ie-panel-del>button{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--row-ios);padding:0 16px;color:var(--red-text);font:var(--type-ios-body)}
 .settings-body.is-column>.ie-panel>.ie-panel-body>.ie-panel-del>button:active{background-color:color-mix(in srgb,var(--red) 16%,transparent)}
 /* The sheet covers the tab bar, as an iOS sheet does. */
 body:has(.settings-body.is-column>.ie-panel.is-open) .tabbar{visibility:hidden}
}
/* The definition frame (M13; the accepted mockup's rule.html, object-def.html,
   operation-def.html): the definition's card heads its one column as a
   record's does - the large tile, the name, its line and capsules -; the
   title bar holds the Version as a compact pop-up, Actions as ⋯, Save
   Draft with Delete Draft in its ▾, and Publish (window.html). */
/* The definition's card stands before its first section, at the column's
   level, in the column's own box (M13 blind round 3: the pill after it sticks
   through the whole window). */
.settings-body.is-column .settings-panes .frame-head{max-width:calc(var(--record-w) + 48px);margin:0 0 0 max(0px,calc((100% - var(--record-w) - 208px) / 2 - 24px));padding:6px 24px 14px}
/* A record window's head drawn from its card (RecordHead) stands in the record's own column, as the profile's header and the mockup's .rec-head (FW-UI-187). */
.settings-body.is-column:not(.is-frame) .settings-panes .frame-head{box-sizing:border-box;max-width:var(--record-w);margin-left:max(24px,calc((100% - var(--record-w) - 208px) / 2));padding:6px 0 14px}
@media(max-width:700px){.settings-form[data-mobile-view] .settings-body.is-column:not(.is-frame) .settings-panes .frame-head{margin:0 16px;padding:6px 0 14px}}
/* The window's message stands in the column, as the card (M13 blind round
   11: a standard Form's note ran the main's full width). The mockup's banner
   is a child of its column with 12 px under it and no margin round it
   (.rsec > .banner); here the column is not an element, so the message is
   moved to the column's start and kept to its width, its margins the
   mockup's (orchestrator 2026-11-21). */
.settings-body.is-column .settings-panes>.window-fieldset>.message,.settings-body.is-column .settings-panes>.message{box-sizing:border-box;position:relative;left:max(24px,calc((100% - var(--record-w) - 208px) / 2));max-width:min(var(--record-w),calc(100% - max(24px,calc((100% - var(--record-w) - 208px) / 2)) - 24px));margin:0 0 12px}
@media(max-width:700px){.settings-body.is-column .settings-panes>.window-fieldset>.message,.settings-body.is-column .settings-panes>.message{left:16px;max-width:calc(100% - 32px)}}
.settings-body.is-column[data-narrow]>.settings-panes>.frame-head{margin-left:auto;margin-right:auto}
@media(max-width:1000px){.settings-body.is-column .settings-panes .frame-head{margin-left:auto;margin-right:auto}}
@media(max-width:700px){.settings-form[data-mobile-view] .settings-body.is-column .settings-panes .frame-head{padding:6px 16px 14px}}
@media(max-width:700px){.settings-form[data-mobile-view] .settings-body.is-column .settings-panes .frame-head.is-card{margin:0 16px;padding:18px 16px;box-shadow:none}}
.settings-body.is-column .frame-head>.frame-tile{width:84px;height:84px;border-radius:20px}
.settings-body.is-column .frame-head>.frame-tile svg{width:52px;height:52px;stroke-width:1.4}
.settings-body.is-column .frame-head>div{min-width:0}
.settings-body.is-column .frame-head h2{overflow-wrap:anywhere}
/* The head of a Workflow task on the page (Window.PageHead, FW-UI-288): the accepted mockup's To Do detail - .rec-head with a large avatar (avatar l), «Operation · subject» at 22 px, the line and the capsules under it. */
.settings-body.is-steps .frame-head{flex-wrap:nowrap;gap:16px;padding:6px 28px 14px}
.settings-body.is-steps .frame-head>.avatar{width:64px;height:64px;font-size:24px}
.settings-body.is-steps .frame-head>.frame-tile{width:64px;height:64px;border-radius:15px}
.settings-body.is-steps .frame-head>.frame-tile svg{width:40px;height:40px;stroke-width:1.4}
.settings-body.is-steps .frame-head>div{min-width:0}
.settings-body.is-steps .frame-head h2{font:700 22px/1.15 var(--font-display);overflow-wrap:anywhere}
.settings-body.is-steps .frame-head p{margin:2px 0 0;color:var(--label-2)}
.settings-body.is-steps .frame-head .badges{gap:6px;margin-top:7px}
/* A workspace overview's head (the mockup's S.pm and S.workspace): a group
   as wide as the sections, its 56 px tile, the name at 20 pt and its line,
   the capsule at the end. */
.settings-body.is-column .settings-panes .frame-head.is-card{box-sizing:border-box;max-width:var(--record-w);margin-left:max(0px,calc((100% - var(--record-w) - 208px) / 2));gap:14px;align-items:center;padding:18px 16px;border-radius:var(--r-group);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line)}
.settings-body.is-column .frame-head.is-card>.frame-tile{width:56px;height:56px;border-radius:13px}
.settings-body.is-column .frame-head.is-card>.frame-tile svg{width:30px;height:30px}
.settings-body.is-column .frame-head.is-card>div{flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.settings-body.is-column .frame-head.is-card h2{grid-column:1;font:700 20px/1.2 var(--font-display);white-space:normal}
.settings-body.is-column .frame-head.is-card p{grid-column:1;margin-top:0;color:var(--label-2)}
.settings-body.is-column .frame-head.is-card .badges{grid-column:2;grid-row:1 / span 2;margin-top:0}
/* The ⋯ is a toolbar symbol: 17 px as the others (the mockup's .tb-btn svg). */
.tb-btn svg.tb-ellipsis{width:17px;height:17px}
.tb-btn svg.tb-ellipsis path{stroke-width:2.4}
/* A tool row's round «⋯» (the mockup's More beside Apply, M10). */
.tool-menu>summary.tool-more{display:inline-grid;place-items:center;width:var(--ctl-mac);height:var(--ctl-mac);padding:0;border-radius:50%}
.tool-menu>summary.tool-more svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tool-menu>summary.tool-more svg path{stroke-width:2.4}
/* A definition's tables wrap their cells at the spaces, as the mockup's
   table.mini, instead of holding each on one line: a table fits its column
   on a phone; one still wider scrolls with its faded edge, as the mockup's
   group scrolls (M13 blind round 8: Fields 496 px in 343). */
.settings-body.is-frame :is(table.data-table,table.grid) :is(td,th){white-space:normal;overflow-wrap:break-word}
/* A definition's General texts - Description, What changes and why - are
   one line, as the mockup's fields, and grow with what they hold (M13
   blind round 14: three lines tall, General taller than the mockup's). */
.settings-body.is-frame [data-form-pane="general"] .settings-row textarea{min-height:0;field-sizing:content;max-height:12lh}
/* One line of such a text is the field's 24 px (the mockup's textarea.field),
   34 px on a phone. */
@media(max-width:700px){.settings-form .settings-body.is-frame [data-form-pane="general"] .settings-card>.settings-row>div textarea{min-height:34px}}
@media(min-width:701px){.settings-form .settings-body.is-frame [data-form-pane="general"] .settings-card>.settings-row>div textarea{padding-top:2px;padding-bottom:2px;line-height:1.38}}
/* A section that is the first in a fieldset of its own, after the head or
   after another fieldset, is parted as every section: the line over its
   head and 30 px (M13's CSS check: a Business Rule's sections had neither). */
.settings-body.is-frame :is(.frame-head,.window-fieldset)~.window-fieldset>.settings-pane:first-child>.window-head{margin-top:30px;padding-top:16px;border-top:var(--hairline-w) solid var(--separator)}
/* A note under a group (a section's hint, the Route's) is the mockup's
   footnote: 11 px and quiet, 6 px under the group and 4 px in; 13 px and
   7 px on a phone. It is a definition's note (its sections' ids): the
   same class elsewhere also marks a paragraph of its own (the mockup's
   .muted, Pay Scales' read-only note), which keeps its rule. */
.settings-body.is-frame :is([id^="object-pane"],[id^="form-pane"],[id^="operation-designer-pane"],[id^="operation-type-pane"],[id^="rule-pane"],[id^="workflow-pane"]) :is(.settings-hint.window-note,.wf-route .window-note){margin:6px 4px 0;color:var(--label-2);font-size:11px;line-height:1.38}
@media(max-width:700px){.settings-body.is-frame :is([id^="object-pane"],[id^="form-pane"],[id^="operation-designer-pane"],[id^="operation-type-pane"],[id^="rule-pane"],[id^="workflow-pane"]) :is(.settings-hint.window-note,.wf-route .window-note){margin:7px 16px 0;font-size:13px;line-height:1.29}}
/* A definition's Code in a row reads in the text's face and size, as the
   mockup's row value (M13's CSS check: the mockup has no monospace there). */
.settings-body.is-frame .settings-value.window-code{font:inherit}
/* A heading and the row's first cell - «In use from», «Version 1» - stay on
   one line above a phone; the longer text cells wrap instead (M13 blind
   round 14: a Form's six Versions columns broke both at 680). */
@media(min-width:701px){
 .settings-body.is-frame :is(table.data-table,table.grid) :is(th,td:first-child){white-space:nowrap}
}
/* A column's place on a phone (WindowItemColumn.Phone): its line under the
   row's first cell stands only there (the orchestrator 2026-11-18). */
.data-table .cell-sub.phone-line{display:none}
.frame-draft{gap:0}
.frame-draft>.tool-menu>.frame-draft-more{width:22px;padding:0}
.frame-draft>.tool-menu>.frame-draft-more svg{width:9px;height:9px;color:var(--label-2)}
.frame-draft>.tool-menu>.menu-popover{right:0;left:auto}
@media(max-width:700px){
 /* The frame's insets on a phone, as the mockup's: the cards 16 from the
    edge, their rows and the section headings 16 further in (M13 blind
    round 4: 14 and 14). Record windows keep theirs. */
 .settings-form[data-mobile-view] .settings-body.is-frame .settings-pane{padding:0 16px}
 .settings-body.is-frame .settings-pane>.window-head{padding-left:16px}
 .settings-form .settings-body.is-frame .settings-card>.settings-row.settings-row{padding-left:16px;padding-right:16px}
 /* A definition's table fits its column as the mockup's: «In use from»
    is the second line under the version, a column the mockup has not is
    left to the row's panel (the orchestrator 2026-11-18). */
 .settings-body.is-frame table.data-table [data-phone-col]{display:none}
 .settings-body.is-frame table.data-table .phone-line{display:block}
 /* A definition's table of rows that open is a list on a phone, as the
    mockup's table.def-table: no headings; a row's first cell is its name
    on a line of its own (15 px), the other cells follow on the next line
    (13 px, quiet); the chevron stands at the row's end, the grip is left
    out. A table shown only that lists what a definition has (Used by,
    data-def-rows) is such a list too; a table typed in its cells, and a
    table of figures (table.grid, the mockup's table.mini), stays a table. */
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) thead{display:none}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]),.settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody{display:block}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus){position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:9px 34px 9px 16px;border-bottom:var(--hairline-w) solid var(--separator)}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:last-child{border-bottom:0}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus)>td{display:block;max-width:none;height:auto;padding:0;border:0;font-size:13px;line-height:1.29;color:var(--label-2)}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus)>td:empty{display:none}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus)>:is(td:first-child:not(.ie-tools),td.ie-tools:first-child+td){flex:1 0 100%;font-size:15px;color:var(--label)}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus)>td.ie-tools:first-child{display:none}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tbody tr:not(.empty-row,.ie-plus)>td.ie-tools:last-child{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:auto;padding:0}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tr:is(.empty-row,.ie-plus){display:block}
 .settings-body.is-frame :not(.wf-route)>.settings-card>:is(table.ie-mode-panel,table[data-def-rows]) tr:is(.empty-row,.ie-plus)>td{display:block}
}
/* The frame head's name stays on one line and ends with «…»; the kind line
   under it keeps its own wrapping. Its whole text shows on hover and, on a
   phone, on a long press (shell.js; FW-UI-204, PO 2026-11-18 Ra2c2e2). */
.settings-body.is-column .frame-head h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
/* On a phone the head is a centred column: its text takes the column's
   width, not its own, so the name is cut there too. */
.settings-body.is-column .frame-head>div{max-width:100%}
/* A button under a group with a leading symbol (the mockup's .btn-row .btn
   svg: «+ New Selection», FW-UI-191). */
.window-actions .plain-button>svg{width:12px;height:12px;margin-right:4px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* A text of several lines in the settings rows (Theme Manager's Description,
   theme.html; FW-UI-191): one line of it is the field's 24 px, 34 px on a
   phone, as a definition's General text. */
[data-settings-values].value-cells .settings-row textarea{min-height:0;field-sizing:content;max-height:12lh}
@media(max-width:700px){.settings-form[data-settings-values].value-cells .settings-card>.settings-row>div textarea{min-height:34px}}
@media(min-width:701px){.settings-form[data-settings-values].value-cells .settings-card>.settings-row>div textarea{padding-top:2px;padding-bottom:2px;line-height:1.38}}
