/* Shell frame: brand, toolbar, frame and sidebar, workspace window and rail, window title bar and footer, header search, Back links.
   Loaded after overlays.css (the order is in base.css). */
/* ---------- Brand ---------- */
.wordmark{display:inline-flex;gap:.28em;align-items:center;font-weight:600;font-size:1.05rem;letter-spacing:-.01em;white-space:nowrap;color:var(--label)}
.wordmark:hover{text-decoration:none}
.brand-light{font-weight:400;color:var(--label-2)}
.brand-mark{display:inline-block;flex:none;width:28px;height:28px;border-radius:8px;margin-right:.3rem;vertical-align:middle}
/* A customer's logo (Theme Manager, FW-UI-104) in place of the mark and wordmark */
.brand-logo{display:block;flex:none;height:28px;width:auto;max-width:200px;object-fit:contain}
/* With a customer's logo the product name follows it, one brand block (PO 2026-11-05 «Я бы оставил название продукта») */
.brand-name{display:inline-flex;align-items:baseline;gap:.28em;white-space:nowrap}
.brand-logo+.brand-name{margin-left:.45em}
.brand-name[hidden]{display:none}
.bar-end{display:flex;align-items:center;gap:16px}

/* ---------- Application shell ---------- */
/* Toolbar: a translucent material bar that stays at the top. */
/* What opens from the bar stands on the surface: the bar's own tones end there */
/* The menu button stands right above the workspace tile of the menu. */
.global-menu,.profile,.header-notifications{position:relative}
.global-menu>summary,.profile>summary,.bar-end>details>summary{list-style:none;display:flex;align-items:center;justify-content:center;position:relative;min-width:var(--avatar-sm);min-height:var(--avatar-sm);padding:0 2px;border-radius:var(--r-sm);color:var(--bar-muted)}
.global-menu>summary::-webkit-details-marker,.profile>summary::-webkit-details-marker,.bar-end>details>summary::-webkit-details-marker{display:none}
.global-menu>summary:hover,.profile>summary:hover,.bar-end>details>summary:hover{background:var(--bar-hover);color:var(--on-bar)}
.bar-end svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* Person group: with two or more employments a 1px line-strong separator, 22px high and 12px from the bell, sets the employment switcher and the avatar apart (Product Owner 2026-10-16). */
/* Login As notice (FW-RBP-015, PO 2026-10-27): in the middle of the bar, no band of its own - muted text-sm with the impersonated name in ink and «Return to my account» as an accent text button; the name gives way first. */
.login-as{display:flex;align-items:center;gap:10px;min-width:0;font-size:var(--text-sm);color:var(--bar-muted)}
.login-as>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.login-as strong{font-weight:600;color:var(--on-bar)}
.login-as form{flex-shrink:0;margin:0}
.login-as .text-button{padding:0;font-size:var(--text-sm);font-weight:600;color:var(--bar-link);white-space:nowrap}
.login-as .text-button:hover{text-decoration:underline}

/* Frame: sidebar + content */
.shell-frame{min-height:calc(100vh - var(--bar) - 49px);display:flex;align-items:stretch}
.shell-main{min-width:0;width:100%;max-width:1360px;padding:20px 32px 56px;margin:0 auto;outline:none}
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:var(--text-sm);color:var(--label-2);margin-bottom:22px}
.breadcrumbs a{color:var(--label-2)}
.breadcrumbs a:hover{color:var(--label);text-decoration:none}
.breadcrumbs a[aria-current=page]{color:var(--label);font-weight:500}
.breadcrumbs span[aria-hidden]{color:var(--tertiary)}

/* Sidebar, as a macOS source list */
.local-nav{flex:0 0 var(--sidebar);border-right:var(--hairline-w) solid var(--group-line);background:var(--sunken);padding:12px 10px}
.local-nav>summary{list-style:none;display:flex;justify-content:space-between;gap:5px;padding:4px 8px;margin-bottom:8px;font-size:var(--text-xs);font-weight:600;color:var(--tertiary)}
.local-nav>summary::-webkit-details-marker{display:none}
.local-nav nav a{display:flex;align-items:center;gap:8px;min-height:var(--control-h);padding:4px 8px;border-radius:var(--r-sm);font-size:var(--text-base);margin:0;color:var(--label)}
.local-nav nav a:hover{background:var(--fill-2);text-decoration:none}
.local-nav nav a[aria-current=page]{background:var(--accent);color:var(--on-accent)}
.local-nav nav>details{margin-top:12px}
.local-nav nav summary{list-style:none;font-size:var(--text-xs);font-weight:600;color:var(--tertiary);padding:3px 8px}
.local-nav nav summary::-webkit-details-marker{display:none}
.local-nav nav summary::before{content:"›";display:inline-block;width:12px;transition:transform .15s}
.local-nav nav details[open]>summary::before{transform:rotate(90deg)}
.local-nav:not([open]){flex:0 0 44px;padding:14px 6px}
.local-nav:not([open])>summary{writing-mode:vertical-rl;gap:10px;min-height:180px;padding:8px 4px}

/* ---------- Workspace window (ADR-026) ----------
   One window per workspace under the top bar, edge to edge. The menu is
   its sidebar, expanded on the overview and folded to a rail on a page; the
   page has its own title bar, pane and footer. The menu ends at the top of
   the footer, the desktop shows under it, and three rounded corners meet
   there. A page that is itself a settings-form window takes the whole page. */
body.app-shell:has(.ws-window){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
/* The menu head: the workspace tile, its name and subtitle, a divider. The
   top bar's menu button sits right above the tile (same centre). */
/* A child workspace's way back to its parent, above its head (FW-UI-069). */
/* Sidebar items of every source list: 28px, 6px corners, accent when current. */
/* Icon tile: a white glyph on a tone - 22px with 6px corners in lists, 34px
   with 8px corners in heads and cards. Every icon square of the product is one of the two. */
.icon-tile,.settings-icon,.window-section,.home-tile{flex:none;display:inline-grid;vertical-align:middle;place-items:center;width:var(--tile);height:var(--tile);border-radius:6px;background:var(--tile-gray);color:var(--on-tone);font-size:var(--text-xs);font-weight:600}
.icon-tile svg,.settings-icon svg,.window-section svg,.home-tile svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-tile.large,.home-tile,.window-head .window-section{width:var(--tile-lg);height:var(--tile-lg);border-radius:8px}
.icon-tile.large svg,.home-tile svg,.window-head .window-section svg{width:20px;height:20px}
/* The rail: icons only, the name as a tooltip; the arrow shows the menu over the page. */
/* Title bar of a window: centred 13px/600 title on the bar ground. */
.ws-titlebar{flex:none;display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;background:var(--sunken);border-bottom:var(--hairline-w) solid var(--group-line)}
.ws-titlebar h1{margin:0;font-size:var(--text-base);font-weight:600;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-pane{flex:1;min-height:0;overflow:auto;padding:20px 28px 32px;background:var(--page);border-bottom-left-radius:var(--ws-corner)}
/* Footer of a window: Back left, status, actions right; on the bar ground. */
/* A page that is a settings-form window brings its own title bar and footer. */
.ws-pane:has(>.settings-form){display:flex;flex-direction:column;padding:0;overflow:hidden;background:none;border-radius:0}
.ws-pane>.settings-form{flex:1;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;background:none}
.ws-pane>.settings-form>.settings-body{border-bottom-left-radius:var(--ws-corner);overflow:hidden;background:var(--page)}
.ws-pane>.settings-form>.settings-footer{border-left:1px solid var(--group-line);border-radius:var(--ws-corner) 0 0 var(--ws-corner)}
.in-frame .ws-titlebar{display:none!important}
.in-frame .ws-pane{padding:18px 22px;border-radius:0}

/* ---------- Header search ---------- */
/* A search field: 26px, no border, on the fill; a field again while focused. */
.search-field{margin:0;padding:3px 30px 3px 9px;height:var(--control-sm);min-height:var(--control-sm);width:100%;font-size:var(--text-base);background:var(--fill);border-color:transparent;box-shadow:none}
.search-field:focus{background:var(--control);border-color:var(--accent)}
.settings-titlebar{position:relative;min-height:42px;padding:0 16px;display:flex;align-items:center;justify-content:center;text-align:center;border-bottom:1px solid var(--group-line);background:var(--sunken)}
.settings-titlebar h2{margin:0;font-size:var(--text-base);font-weight:600}
/* A dialog drawn inside a window's section keeps the Dialog header (PO
   2026-10-30 «не должен быть такой шрифт в заголовке»). */
.settings-form .settings-pane .settings-titlebar h2{font-size:var(--text-base)}
.settings-titlebar small{display:block;font-weight:400;color:var(--label-2);font-size:var(--text-xs)}
.settings-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;border-top:1px solid var(--group-line);background:var(--window)}
.in-frame .local-nav,.in-frame .breadcrumbs,.in-frame .skip{display:none!important}
.in-frame .shell-frame{display:block;min-height:0}
.in-frame .shell-main{padding:18px 22px}

/* ---------- Responsive ---------- */
@media(min-width:701px) and (max-width:1100px){.local-nav{flex-basis:220px}.shell-main{padding-left:24px;padding-right:24px}}
@media(max-width:700px){
   .login-as>span{display:none}
 .shell-frame{display:block}.shell-main{padding:14px 16px 24px}
 .breadcrumbs{margin-bottom:16px}
 .local-nav,.local-nav:not([open]){width:100%;border-right:0;border-bottom:var(--hairline-w) solid var(--group-line);padding:8px 12px}
 .local-nav>summary,.local-nav:not([open])>summary{writing-mode:horizontal-tb;min-height:0;margin:0;padding:6px 8px}
 .local-nav[open]>summary{margin-bottom:8px}
 /* Workspace window on a phone: no rail. The overview lists the menu above
    its page; a page fills the screen and its menu button opens the menu as
    a drawer. */
         .ws-titlebar{justify-content:flex-start;gap:8px}
 .ws-pane,.settings-form .settings-pane{padding:14px 16px 24px}
  .ws-pane>.settings-form>.settings-footer{border-left:0;border-radius:0}
}
/* Back links lead to the parent list; inside a table popup there is none. */

/* A Back or a title too long for its place ends with an ellipsis; the whole
   text shows on hover and on a long press (FW-UI-137, Apple). A Back is one
   line in its own height, shrinking before the other footer actions. */
:is([data-ws-back],.footer-back>:is(a,button)){display:inline-block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:calc(var(--control-sm) - 8px)}
.settings-footer [data-ws-back],.footer-back{flex:0 1 auto;min-width:0}
.footer-back{display:flex}

/* ---------- The window (FW-UI-180, migration step M03) ----------
   One window as on macOS 26 (the accepted Apple mockup's Window, Sidebar,
   Toolbar, NavigationBar and TabBar; P1, P28, P59, P67, P72, P90, P108):
   the floating glass sidebar with the main menu, and the page under the
   toolbar - Back, the title and the page's tools. The sidebar floats inside
   the window with the even window gap; the gap shows the page's ground. On a
   phone the sidebar gives way to the navigation bar and the floating tab bar.
   The look being replaced above stays until the Theme Manager's sample moves
   (M02) and the clean-up (M16). */
body.app-shell:has(>.app){height:100vh;height:100dvh;margin:0;overflow:hidden;background:var(--page)}
.app{position:fixed;inset:0;display:flex;background:var(--page)}
.sidebar{position:relative;z-index:3;flex:none;width:var(--sidebar-w);margin:var(--gap-window) 0 var(--gap-window) var(--gap-window);border-radius:var(--r-sidebar);background:var(--glass);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);box-shadow:var(--glass-shadow),inset 0 0 0 1px var(--glass-edge);display:flex;flex-direction:column;overflow:hidden;transition:width .2s,margin .2s,opacity .2s}
.app.sidebar-hidden .sidebar,.app.sb-auto:not(.sb-over) .sidebar{width:0;margin-right:calc(-1 * var(--gap-window));opacity:0;visibility:hidden}
/* A sidebar that stepped aside in a narrow window comes back over the page (P59). */
.app.sb-auto.sb-over .sidebar{position:absolute;top:0;bottom:0;left:0;z-index:45;box-shadow:var(--glass-shadow),var(--popover-shadow),inset 0 0 0 1px var(--glass-edge)}
.sb-top{position:relative;flex:none;display:flex;flex-direction:column;gap:8px;padding:12px 10px 6px}
/* The menu over the page has its own Hide at the end of its head, as an iPad sidebar's: the toolbar's toggle lies under the menu (FW-UI-292). */
.sidebar .sb-hide{display:none}
.app.sb-auto.sb-over .sb-hide{display:inline-flex;position:absolute;top:12px;right:10px;color:var(--label-2)}
/* The logo and the product's name (P90): a theme's logo takes the mark's place. */
.sb-brand{display:flex;align-items:center;gap:8px;min-height:var(--tb-item);padding:0 4px;border-radius:6px;font:var(--type-mac-emphasis);color:var(--label);text-decoration:none}
.sb-brand:hover{text-decoration:none}
.sb-logo{flex:none;width:20px;height:20px;border-radius:5px;object-fit:contain}
.sb-light{font-weight:400}
.sb-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 10px 12px}
.sb-section{margin-top:10px}
.sb-section.sb-first{margin-top:2px}
/* A section's heading as the mockup's: 11 px bold, between the secondary and the tertiary label. */
.sb-heading{display:flex;align-items:center;gap:4px;min-height:24px;padding:2px 4px 2px 8px;font:var(--type-mac-caption);font-weight:700;color:color-mix(in srgb,var(--label-2),var(--label-3))}
.sb-hname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;user-select:none}
/* A section's chevron, at its trailing end, shows on hover and on keyboard focus (P61, P67). */
.sb-hdisc{flex:none;display:grid;place-items:center;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;opacity:0;cursor:pointer;transition:opacity .15s}
.sb-hdisc svg,.sb-disc svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.sb-hdisc.open svg,.sb-disc.open svg{transform:rotate(90deg)}
.sb-heading:hover .sb-hdisc,.sb-hdisc:focus-visible{opacity:1}
.sb-row{position:relative;display:flex;align-items:center}
/* A row: the triangle's column, the tinted symbol, the name, a count (P67). */
.sb-item{flex:1;min-width:0;display:flex;align-items:center;gap:7px;min-height:var(--tb-item);margin:0;padding:4px 8px 4px 24px;border:0;border-radius:8px;background:none;color:var(--label);font:var(--type-mac-body);text-align:left;text-decoration:none;cursor:default}
.sb-item:hover{text-decoration:none}
.sb-item .sym{flex:none;display:grid;place-items:center;width:18px;height:18px;color:var(--accent)}
.sb-item .sym svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sb-item .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-count{flex:none;font:var(--type-mac-callout);color:var(--label-2);font-variant-numeric:tabular-nums}
/* The page shown: grey while the sidebar is not in use, the accent while it has the focus (P67). */
.sb-item.current{background:var(--fill-2)}
.sidebar:focus-within .sb-item.current{background:var(--accent);color:var(--on-accent)}
/* A row under the pointer shows it with a list row's quiet fill (PO 2026-11-17, against macOS, whose sidebar has none);
   never the selected row, never on touch. */
@media(hover:hover){.sb-item:not(.current):hover{background:var(--fill-hover)}}
.sidebar:focus-within .sb-item.current .sym,.sidebar:focus-within .sb-row:has(>.sb-item.current)>.sb-disc{color:var(--on-accent)}
.sidebar:focus-within .sb-item.current .sb-count{color:color-mix(in srgb,var(--on-accent) 85%,transparent)}
.sb-item:focus-visible,.sb-disc:focus-visible,.sb-hdisc:focus-visible,.sb-brand:focus-visible,.sb-account:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
/* An item with children: its triangle at the leading end, always shown (P67, P110). */
.sb-disc{position:absolute;left:6px;top:50%;z-index:1;display:grid;place-items:center;width:18px;height:18px;margin:-9px 0 0;padding:0;border:0;background:none;color:var(--label-2);cursor:pointer}
.sb-kids .sb-item{padding-left:40px}
.sb-kids>.sb-row>.sb-disc{left:22px}
.sb-kids .sb-kids .sb-item{padding-left:56px}
.sb-kids .sb-kids>.sb-row>.sb-disc{left:38px}
.sb-kids .sb-kids .sb-kids .sb-item{padding-left:72px}
.sb-kids.closed,.sb-sec-kids.closed{display:none}
.sb-empty{margin:12px 8px;font:var(--type-mac-callout);color:var(--label-2)}
.sb-badge{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--badge);color:var(--on-badge);font:var(--type-mac-caption);font-weight:600}
/* The account at the foot (P17), and a Login As above it (FW-RBP-015). */
.sb-foot{flex:none;padding:8px 10px;border-top:var(--hairline-w) solid var(--separator)}
.sb-account{display:flex;align-items:center;gap:9px;width:100%;margin:0;padding:4px 6px;border:0;border-radius:8px;background:none;color:var(--label);text-align:left;cursor:default}
.sb-account:hover{background:var(--fill-hover)}
/* The account's monogram is the mockup's .avatar.m (32 px, 13 px); its letters stay white (PO 2026-11-18 «Белые»: the mockup's .account span greys them). */
.sb-account .avatar{width:32px;height:32px;font-size:13px}
.tb-account .avatar{width:var(--tb-item);height:var(--tb-item);font-size:11px}
/* The name on its line, «Your account» after it on a line of the body's height (the mockup's .account). */
.sb-account-text{flex:1;min-width:0;font:var(--type-mac-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-account-text b{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-account-text span{font:var(--type-mac-caption);font-weight:400;line-height:inherit;color:var(--label-2)}
.sb-login-as{display:flex;flex-direction:column;gap:2px;margin:0 6px 8px;font:var(--type-mac-callout);color:var(--label-2)}
.sb-login-as strong{font-weight:600;color:var(--label)}
.sb-login-as form{margin:0}
.sb-login-as .text-button{margin:0;padding:0;font:var(--type-mac-callout);font-weight:600;color:var(--accent-text);text-align:left}
/* Settings as a mode of the sidebar (FW-UI-225, the mockup's FW-UI-221): its title and groups in place of the workspaces; the gear to the right of the account, pressed while Settings is on. A Login As keeps its line above them. */
.st-sec .st-title{padding:8px 8px 2px;font:var(--type-mac-body);font-weight:700;color:var(--label)}
.st-sec .sb-heading{margin-top:6px}
.sb-foot.st-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.sb-foot.st-foot .sb-login-as{flex:1 0 100%;margin-bottom:4px}
.sb-foot.st-foot .sb-account{flex:1;width:auto;min-width:0}
.sb-foot .st-gear{flex:none;color:var(--label-2);text-decoration:none}
.sb-foot .st-gear.on{background:var(--accent-soft-strong,var(--fill-2));color:var(--accent-text)}
/* A popover from the sidebar or the tab bar: To Do and the account. */
.sb-pop{position:fixed;inset:auto;margin:0;max-height:min(70vh,calc(100vh - 24px));overflow:auto}
.sb-pop form{margin:0}
/* The frame's buttons are parts of their own, not push buttons: controls.css's button look (its shadow, its height) stays off them. */
:is(.sb-hdisc,.sb-item,.sb-disc,.sb-account,.tb-btn,.tb-account,.tabbar>button),:is(.sb-hdisc,.sb-item,.sb-disc,.sb-account,.tb-btn,.tb-account,.tabbar>button):focus-visible{box-shadow:none}
:is(.sb-hdisc,.sb-disc){min-height:0}
/* The account menu as the mockup's: a symbol in the item's leading column. */
.sb-pop .menu-item>.mk{display:grid;place-items:center;color:var(--label)}
.sb-pop .menu-item>.mk svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.sb-pop .menu-item:is(:hover,:focus-visible)>.mk{color:inherit}
.sb-switcher{margin:0}
/* The sidebar's search field (P1, Search): a field on the fill, a field again while focused. */

/* The page and its toolbar */
/* The main area: the page's tone (the mockup's .main.page-bg); a list's has no ground of its own, the window shows (the mockup's .main). */
.main{position:relative;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;container-type:inline-size;background:var(--page)}
.app:has(.scroll>.list-window) .main{background:none}
.toolbar{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;align-items:center;gap:8px;height:var(--toolbar-h);padding:0 14px 0 12px;background:linear-gradient(var(--page) 55%,color-mix(in srgb,var(--page) 0%,transparent));pointer-events:none}
.toolbar>*{pointer-events:auto}
.glass-group{flex:none;display:flex;align-items:center;height:32px;padding:0 2px;border-radius:var(--r-capsule);background:var(--glass);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);box-shadow:0 0 0 var(--hairline-w) var(--separator),0 1px 3px rgba(0,0,0,.06),inset 0 0 0 1px var(--glass-edge)}
.glass-group[hidden]{display:none}
.tb-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:var(--tb-item);min-width:32px;margin:0;padding:0 8px;border:0;border-radius:var(--r-capsule);background:none;color:var(--label);font:var(--type-mac-body);white-space:nowrap;cursor:default}
/* A toolbar button's hover and press are the label's tint, as the mockup's (.tb-btn:hover / :active). */
.tb-btn:hover:not(:disabled){background:color-mix(in srgb,var(--label) 11%,transparent)}
.tb-btn:active:not(:disabled){background:color-mix(in srgb,var(--label) 20%,transparent);transition:none}
.tb-btn:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.tb-btn svg{flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* Back is a chevron alone on the Mac, the page behind it in its tooltip (P72, Q12 B). */
.tb-back .lbl{display:none}
.tb-title{flex:0 1 auto;min-width:0;margin:0 0 0 4px;font:var(--type-mac-title);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-title small{display:block;font:var(--type-mac-caption);font-weight:400;color:var(--label-2);overflow:hidden;text-overflow:ellipsis}
.tb-account{display:none}
.scroll{flex:1;min-height:0;overflow:auto;padding:calc(var(--toolbar-h) + 4px) 24px 40px;outline:none;scroll-padding-top:calc(var(--toolbar-h) + 8px)}
.split-mode .scroll{padding-left:16px;padding-right:16px}
/* A page that is a window: its title bar is the toolbar's row, after Back (P43). */
.main:has(>.scroll>.settings-form)>.toolbar>.tb-title{display:none}
/* Home names itself in its banner's greeting: the toolbar keeps no title (the mockup's home.html). A workspace's Overview on the same
   desk has no greeting, so it keeps the toolbar's title (FW-UI-229: the Overview of Organisation Management showed no title). */
.main:has(>.scroll>.home-desk:not(.ws-overview))>.toolbar>.tb-title{visibility:hidden}
/* A page that is a list on a phone names itself in its large title; the Mac, which has the sidebar, leaves it at once (FW-UI-225). */
.main:has(>.scroll>.phone-list)>.toolbar>.tb-title{visibility:hidden}
.phone-list{display:none}
.scroll:has(>.settings-form){display:flex;flex-direction:column;padding:0;overflow:hidden}
.scroll>.settings-form{flex:1;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;background:none}
/* The window's title bar lies over the toolbar's ground, as the mockup's title and tools are the toolbar's own; the toolbar's buttons beside it take the pointer. */
.scroll>.settings-form>.settings-titlebar{z-index:5;pointer-events:none;min-height:var(--toolbar-h);justify-content:flex-start;gap:8px;padding:0 14px 0 var(--tb-lead-w,56px);text-align:left;border-bottom:0;background:none}
.scroll>.settings-form>.settings-titlebar>*{pointer-events:auto}
.scroll>.settings-form>.settings-titlebar h1{min-width:0;font:var(--type-mac-title);text-align:left}
/* A window's title is the toolbar's title (the mockup's .tb-title): 15 px semibold, its second line 11 px; on iPhone the large title (below). */
.scroll>.settings-form>.settings-titlebar h1 small{display:block;font:var(--type-mac-caption);color:var(--label-2)}
.scroll>.settings-form>.settings-titlebar .window-badges{position:static;flex:none}
.scroll>.settings-form>.settings-body{background:var(--page)}
.scroll>.settings-form>.settings-footer{border-top:var(--hairline-w) solid var(--separator)}
/* Only a list has a bar at its foot (its status bar). A window that is a page - a record, the profile, a definition,
   a settings page - ends with its content, as the mockup's: its footer has no band, no background or line of its own,
   and a footer holding only the audit and an empty count is not drawn where the window's sections carry their
   Operation line, which opens the same stamps (P25; PO 2026-11-18 «статус бар в профиле зачем-то»). */
html:not(.in-pane,.in-sheet) .scroll>.settings-form:not(.list-window)>.settings-footer{border-top:0;background:none}
html:not(.in-pane,.in-sheet) .scroll>.settings-form:not(.list-window):has(.op-line)>.settings-footer:not(:has(>:not([data-window-audit],.settings-count:empty,[hidden]))){display:none}
/* A foot with nothing to show - no button, and a count that says nothing - takes no room (the PO 2026-11-19, Redf4e5:
   «в окне User внизу экрана какая-то надпись read-only»; a window that cannot be changed writes nothing there). It
   stays in the page: the audit card of Actions is its popover. */
html:not(.in-pane,.in-sheet) .scroll>.settings-form:not(.list-window)>.settings-footer:not(:has(>:not(.settings-count:empty,[hidden],[popover]))){min-height:0;padding:0}
/* The frame has no foot (FW-UI-222, the mockup's admin.js): the count is the title line's «Edited · n changes», Discard
   Changes takes Cancel's place, the commands stand in the title bar. The foot stays in the markup for the side pane, the
   sheet and the shell's frame, whose window keeps Cancel and Done at its bottom. */
html:not(.in-frame) .scroll>.settings-form>.settings-footer[data-foot-off]{display:none}
/* In a frame the foot is the window's: the title bar's copies of its commands, the title line's count and Discard
   Changes in ⋯ are the main window's only. */
.in-frame :is([data-main-only],[data-title-edited],[data-title-state]){display:none!important}
.in-frame .menu-popover>[data-main-only]+hr{display:none}
.in-frame .glass-group:has(>[data-main-only]):not(:has(>:not([data-main-only]))),.in-frame .glass-group:has(>details>.menu-popover):not(:has(>details>.menu-popover>:not([data-main-only],hr))){display:none}
/* The title line: the page, then the window's state or «Edited · n changes», parted by « · » (the mockup's tb-title span). */
.title-path>[data-path-text]:empty{display:none}
.title-path>:is([data-title-state],.title-edited):not([hidden])::before{content:" · "}
.title-path>[data-path-text]:empty+:is([data-title-state],.title-edited)::before,.title-path>[data-path-text]:empty+[data-title-state][hidden]+.title-edited::before{content:none}
.title-path .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}
.title-path .edited-btn:hover{text-decoration:underline;background:none}
.title-path .edited-btn:focus-visible{outline:2px solid var(--focus);outline-offset:1px;border-radius:3px}
/* Unsaved changes: the popover of the title line's button - each change a row, was → now under its label, Discard
   Changes at its foot (the mockup's .popover h4, .group .row .ttl, .pop-foot). */
.changes-card h2{margin:0 0 6px;font:var(--type-mac-body);font-weight:700}
.changes-card .changes-list{margin-top:8px;border-radius:var(--r-group);background:var(--group);overflow:hidden;box-shadow:0 0 0 var(--hairline-w) var(--group-line)}
.changes-card .changes-row{position:relative;display:block;min-height:var(--row-mac);padding:7px 12px}
.changes-card .changes-row+.changes-row::before{content:"";position:absolute;top:0;left:12px;right:0;height:var(--hairline-w);background:var(--field-line)}
.changes-card .changes-row b{display:block;font-weight:400;overflow-wrap:anywhere}
.changes-card .changes-row span{display:block;font:var(--type-mac-caption);color:var(--label-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.changes-card .pop-foot{display:flex;justify-content:flex-end;padding:4px 6px 2px}
/* On iPhone Discard Changes is the first item of ⋯ while something is changed; on a Mac it is in the list of the changes. */
@media(min-width:701px){.menu-popover>[data-phone-discard],.menu-popover>[data-phone-discard]+hr{display:none!important}.glass-group:has(>details>.menu-popover>[data-phone-discard]:only-child){display:none}}
.menu-popover>[data-phone-discard][hidden]+hr{display:none}
.glass-group:has(>details>.menu-popover>[data-phone-discard][hidden]:only-child){display:none}
.phone-menu{display:none}
.tabbar{display:none}
/* A page in a table's popup has no window around it. */
.in-frame .sidebar,.in-frame .toolbar,.in-frame .tabbar{display:none!important}
.in-frame .scroll{padding:18px 22px}
.in-frame .scroll:has(>.settings-form){padding:0}
.in-frame .scroll>.settings-form>.settings-titlebar{padding-left:16px}
@media(prefers-reduced-motion:reduce){.sidebar,.sb-hdisc,.sb-hdisc svg,.sb-disc svg{transition:none}}

/* iPhone: the navigation bar named after the page behind, the floating tab bar (P11, P21) */
@media(max-width:700px){
 .app{flex-direction:column;bottom:calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom))}
 .sidebar,.app.sb-auto.sb-over .sidebar{display:none}
 .toolbar{height:var(--navbar-h);padding:0 12px;font:var(--type-ios-body);background:linear-gradient(var(--page) 60%,color-mix(in srgb,var(--page) 0%,transparent))}
 .tb-lead{display:none}
 /* The navigation bar's capsules and buttons as the mockup's .navbar: 44 px groups, 40 px buttons, 22 px symbols. */
 .glass-group{height:44px;padding:0 4px}
 .tb-btn{height:40px;min-width:40px;font:var(--type-ios-body)}
 .tb-btn svg{width:22px;height:22px}
 .tb-back .tb-btn{padding:0 12px 0 6px}
 .tb-back .lbl{display:inline-block;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .tb-title{flex:1;text-align:center;font:var(--type-ios-headline)}
 .tb-account{display:inline-grid;place-items:center;margin:0;padding:0;border:0;background:none;border-radius:50%}
 .scroll{padding:calc(var(--navbar-h) + 4px) 16px 24px}
 .scroll>.settings-form>.settings-titlebar{min-height:var(--navbar-h);padding-right:12px}
 .phone-menu{display:block;margin:0 0 20px;border-radius:var(--r-group);background:var(--group);overflow:hidden}
 /* A workspace's home drawn as a window (M10, the mockup's
    position-management.html): the page and the workspace's menu under it
    scroll as one, not the window inside a shrunk frame. */
 .scroll:has(>.phone-menu):has(>.settings-form){display:block;overflow-y:auto}
 .scroll:has(>.phone-menu)>.settings-form{height:auto;overflow:visible}
 .scroll:has(>.phone-menu)>.settings-form :is(.settings-body,.settings-panes){height:auto;overflow:visible}
 .phone-menu-row{display:flex;align-items:center;gap:12px;min-height:var(--row-ios);padding:0 12px 0 16px;color:var(--label);font:var(--type-ios-body);text-decoration:none}
 .phone-menu-row+.phone-menu-row{border-top:var(--hairline-w) solid var(--field-line)}
 .phone-menu-row:hover{text-decoration:none}
 .phone-menu-row .sym{flex:none;display:grid;place-items:center;width:22px;height:22px;color:var(--accent)}
 .phone-menu-row .sym svg,.phone-menu-chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 .phone-menu-row .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .phone-menu-chev{flex:none;width:14px;height:14px;color:var(--label-3)}
 /* A page that is a list on a phone (FW-UI-225; the mockup's stModulePage): a module's functions, Settings' items in their groups. Its large title, then the groups, each under its caption as a section of iOS Settings. */
 .phone-list{display:block}
 .phone-list-title{margin:0 4px 14px;font:var(--type-ios-large-title);letter-spacing:var(--type-mac-large-title-tracking);color:var(--label)}
 .phone-list-head{margin:26px 16px 7px;font:var(--type-ios-footnote);color:var(--label-2)}
 .phone-list-head:first-of-type{margin-top:8px}
 .tabbar{position:fixed;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:30;display:flex;justify-content:space-around;align-items:center;height:var(--tabbar-h);padding:0;font:var(--type-ios-body);border-radius:calc(var(--tabbar-h) / 2);background:var(--glass);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);box-shadow:var(--glass-shadow),inset 0 0 0 1px var(--glass-edge)}
 .tabbar>a,.tabbar>button{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;margin:0 4px;padding:6px 0;border:0;border-radius:24px;background:none;color:var(--label);font:var(--type-ios-tab);text-decoration:none;cursor:default}
 .tabbar>a:hover{text-decoration:none}
 .tabbar>.on{color:var(--accent-text);background:var(--fill-2)}
 .tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
 .tabbar .sb-badge{position:absolute;top:2px;left:calc(50% + 6px)}
 .in-frame .app{bottom:0}
}
.tb-back .lbl[hidden]{display:none}

/* The window's tools in the toolbar's row, in one order (P54): the title,
   the window's own tools, a separator, As of Date, Operations; each a
   symbol in a glass capsule with its name in the tooltip (P53). */
.settings-titlebar .tb-heading{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;text-align:left}
.settings-titlebar .window-badges{position:static;flex:none}
.tb-asof-line{display:flex;align-items:center;gap:6px;margin:0;font:var(--type-mac-caption);font-weight:400;color:var(--label-2);white-space:nowrap}
.tb-asof-line .text-button{margin:0;padding:0;min-height:0;font:inherit;color:var(--accent-text)}
.tb-sep{flex:none;width:var(--hairline-w);height:18px;margin:0 2px;background:var(--separator)}
.tb-btn.on{color:var(--accent-text)}
.tb-btn svg.tb-chev{width:9px;height:9px;color:var(--label-2)}
/* An inactive toolbar button is the tertiary label, not faded as well (the mockup's .tb-btn:disabled and .tb-btn.inactive). */
.tb-btn:disabled{color:var(--label-3);background:none;opacity:1}
.tb-btn:not(.prominent):not(.danger-text)[aria-disabled="true"]{color:var(--label-3);opacity:1}
/* A window's primary command in the toolbar (P57, FW-UI-189; the mockup's .tb-btn.prominent): the accent, its symbol alone. */
.tb-btn.prominent{width:32px;min-width:0;padding:0;background:var(--accent);color:var(--on-accent)}
.tb-btn.prominent:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 86%,#000)}
.tb-btn.prominent:active:not(:disabled){background:color-mix(in srgb,var(--accent) 72%,#000)}
.tb-btn.prominent:disabled{background:var(--accent);color:var(--on-accent);opacity:.45}
@media(max-width:700px){.tb-btn.prominent{width:36px;background:none;color:var(--accent-text)}.tb-btn.prominent:hover:not(:disabled),.tb-btn.prominent:active:not(:disabled){background:var(--fill-2)}}
/* The toolbar's text command (FW-UI-190, M13; the mockup's .tb-btn.prominent
   with its label and .tb-btn.danger-text): Save or Publish in the accent,
   Discard in red; waiting (P34), it is faded and answers with its reason.
   The set has no spacing tokens: the padding is the capsule's, as .tb-btn's. */
.tb-btn.prominent.tb-text{width:auto;padding:0 12px;font:var(--type-mac-body);font-weight:500}
/* A toolbar pop-up with its word and chevron (the mockup's .tb-btn.tb-text, the version «v7 ▾»): a little more room before the word, medium weight; a quiet command in words (Save Draft) stays a plain .tb-btn. */
summary.tb-btn.tb-text{padding:0 8px 0 10px;font-weight:500}
.tb-btn.danger-text{color:var(--red-text)}
.tb-btn:is(.prominent,.danger-text)[aria-disabled="true"]{opacity:.45}
.tb-btn.prominent[aria-disabled="true"]:is(:hover,:active){background:var(--accent)}
.tb-btn:not(.prominent)[aria-disabled="true"]:is(:hover,:active){background:none}
/* On a phone the command in words keeps the accent's ground in the bar, as
   the mockup's .navbar .tb-btn.prominent (M13's CSS check: Publish, when
   it could be pressed, stood as blue words): 12 px inside, the body size
   at 500. A prominent symbol keeps the phone's plain accent. */
@media(max-width:700px){
 .tb-btn.prominent.tb-text{padding:0 12px;background:var(--accent);color:var(--on-accent);font:var(--type-ios-body);font-weight:500}
 .tb-btn.prominent.tb-text:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 86%,#000)}
 .tb-btn.prominent.tb-text:active:not(:disabled){background:color-mix(in srgb,var(--accent) 72%,#000)}
 .tb-btn.prominent:not(.tb-text)[aria-disabled="true"]:is(:hover,:active){background:none}
 .tb-btn.prominent.tb-text[aria-disabled="true"]:is(:hover,:active){background:var(--accent)}
}
.glass-group>details.tool-menu>summary{list-style:none}
.glass-group>details.tool-menu>summary::-webkit-details-marker{display:none}
.glass-group>details.tool-menu[open]>summary{background:var(--fill-2)}
.tb-popup{display:inline-flex;align-items:center;gap:4px;margin:0;padding:0 2px 0 10px;font:var(--type-mac-body);font-weight:400;color:var(--label-2);white-space:nowrap}
.tb-popup select{width:auto;height:var(--tb-item);min-height:0;margin:0;padding:0 6px;border:0;border-radius:var(--r-capsule);background:none;color:var(--label);font:var(--type-mac-body)}
.glass-group>.plain-button,.glass-group>.button{margin:0;border:0;border-radius:var(--r-capsule);background:none;color:var(--label);min-height:var(--tb-item)}
.tb-asof-pop{width:auto;min-width:220px;padding:10px 12px}
.tb-asof-pop:popover-open{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.tb-asof-pop .window-asof{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%}
.tb-asof-pop .window-asof :is(input,.date-entry){width:100%}
/* What does not fit folds into » from the trailing end of the window's own tools (P53, P57). */
.glass-group.ovf-hidden{display:none}
.tb-ovf-pop .menu-item svg{display:none}
/* The side panel shows and hides from the toolbar (P58), not on a phone. */
.main.side-hidden [data-side-panel]{display:none}
.main.side-hidden .settings-body.has-aside{grid-template-columns:var(--sidebar) minmax(0,1fr)}
/* The side pane (FW-UI-186, M09; the mockup's op-pane, P70, P51): one
   width for a view, a Correct and an Operation; the page beside it keeps
   the rest. It is the mockup's glass inspector (aside.inspector.wide; the
   PO 2026-11-18, R322c03 «Да, делай панель по макету»): it floats 8 px
   inside the window from top to bottom, on the material, as every .ie-panel
   (window.css). The window inside is its own page in a frame that fills the
   pane and shows no ground of its own: the name and «object · category» at
   its head, the fields on white cards, Cancel and Done at its foot on the
   material (the mockup's sheet-head, sheet-body and pinned sheet-foot). On
   a phone the pane is the sheet. The window in the frame takes the phone's
   rules only from a phone (frame.js): beside a Mac page it is a Mac window. */
html:not(.in-pane,.in-sheet) [data-pane-only]{display:none}
.in-pane .foot-hint{display:none}
/* An alert of the pane's window is the Mac's small alert over the pane,
   never the phone's sheet. */
.in-pane dialog:has(>.alert-head,>form>.alert-head){margin:calc(var(--toolbar-h) + var(--gap-window)) auto auto;border-radius:18px}
/* The pane's window has the head in its body: no title bar over it. */
:is(.in-pane,.in-sheet) .settings-form:has(>.settings-body.is-steps)>.settings-titlebar{display:none}
html.in-pane,.in-pane :is(body,.app,.main,.scroll,.scroll>.settings-form,.settings-body,.settings-panes,.scroll>.settings-form>.settings-titlebar,.scroll>.settings-form>.settings-footer){background:transparent}
.in-pane .scroll>.settings-form>.settings-titlebar{align-items:flex-start;min-height:0;padding:14px}
.in-pane .scroll>.settings-form>.settings-titlebar h1{margin:0 0 2px;font:var(--type-mac-title)}
.in-pane .scroll>.settings-form>.settings-titlebar .tb-heading>.title-path{font:400 12px/1.38 var(--font-text)}
.in-pane .scroll>.settings-form>.settings-titlebar>:is(.window-badges,.glass-group){align-self:center}
.in-pane .settings-body.is-column>.settings-panes{padding:0 14px 12px}
.in-pane .settings-body.is-column .settings-card{margin-bottom:10px}
.in-pane .scroll>.settings-form>.settings-footer{padding:10px 14px;border-top:var(--hairline-w) solid var(--separator)}
/* The pane's window is compact, as the mockup's inspector: no «On this
   page» pill over the text; a table fits the pane and wraps its cells
   (FW-UI-186, lane B's blind round of M14B). */
.in-pane .settings-body.is-column :is(.sec-pill-wrap,.sec-index){display:none!important}
.in-pane .table-scroll table{min-width:0;width:100%}
.in-pane .table-scroll :is(th,td){white-space:normal;overflow-wrap:anywhere}
/* A framed window in the pane, on a phone in the sheet (the mockup's
   message, event, check and job panes; FW-UI-191): its head is the
   inspector's - the kind over the name, the line and the capsules under
   it, no tile; a section's head is a group label. Beside its list the title
   bar keeps only its commands, and those the list's toolbar gives for the
   row shown (data-page-only) stand on the window's own page and in the
   sheet. */
.in-pane .scroll>.settings-form:has(.frame-head)>.settings-titlebar .tb-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A window whose head stands on the page (Window.PageHead: a Workflow task, FW-UI-288) keeps the commands in its bar: its title is the head's, read out, not drawn twice - the mockup's To Do bar holds the commands only. */
.settings-form:has(>.settings-body.is-steps .frame-head)>.settings-titlebar .tb-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.settings-form:has(>.settings-body.is-steps .frame-head)>.settings-titlebar{justify-content:flex-end}
.in-pane .scroll>.settings-form:has(.frame-head)>.settings-titlebar:is(:not(:has(>.glass-group,>.window-badges)),:has([data-page-only])){padding:14px 0 0}
.in-pane .scroll>.settings-form>.settings-titlebar:has([data-page-only])>.glass-group{display:none}
:is(.in-pane,.in-sheet) .settings-body.is-column .settings-panes .frame-head{display:block;max-width:none;margin:0;padding:0}
:is(.in-pane,.in-sheet) .settings-body.is-column .frame-head>:is(.frame-tile,.avatar),:is(.in-pane,.in-sheet) .settings-body.is-column .frame-head p{display:none}
:is(.in-pane,.in-sheet) .frame-head .pane-kind{display:block;font:var(--type-mac-caption);font-weight:600;color:var(--label-2)}
:is(.in-pane,.in-sheet) .settings-body.is-column .frame-head h2{margin:6px 0 2px;font:700 15px/1.38 var(--font-text);white-space:normal;overflow:visible;overflow-wrap:anywhere}
:is(.in-pane,.in-sheet) .frame-head .pane-line{display:block;margin:0 0 12px;font:var(--type-mac-body);color:var(--label-2);overflow-wrap:anywhere}
:is(.in-pane,.in-sheet) .frame-head .pane-line:has(+.badges){margin-bottom:8px}
:is(.in-pane,.in-sheet) .settings-body.is-column .frame-head .badges{margin:0 0 12px}
:is(.in-pane,.in-sheet) .settings-body.is-frame.is-column .settings-panes .settings-pane.settings-pane{max-width:none;margin:0;padding:0}
:is(.in-pane,.in-sheet) .settings-body.is-frame.is-column .settings-panes .settings-pane.settings-pane>.window-head.window-head{min-height:0;margin:14px 4px 5px;padding:0;border:0}
:is(.in-pane,.in-sheet) .settings-body.is-frame.is-column .settings-panes .settings-pane>.window-head h2{font:var(--type-mac-caption);font-weight:600;color:var(--label-2)}
/* A row's label keeps its 46 % beside a long value, which wraps (the
   mockup's inspector .row .k): «What it looks at» was cut to «What it…». */
.in-pane .settings-body.is-frame.is-column .settings-card>.settings-row:has(>.settings-value)>:is(label,.settings-label){flex:0 0 46%;max-width:none}
/* In the sheet the head and the labels take the phone's type, from the
   leading edge, and the sheet has no section pill. */
.in-sheet .settings-body.is-column .settings-panes .frame-head{padding:4px 16px 0;text-align:start}
.in-sheet .frame-head .pane-kind{line-height:1.29}
.in-sheet .settings-body.is-column .frame-head h2{margin:6px 0 20px;font:700 20px/1.29 var(--font-text)}
.in-sheet .frame-head .pane-line{font:var(--type-ios-body)}
.in-sheet .settings-body.is-frame.is-column .settings-panes .settings-pane.settings-pane{padding:0 16px}
.in-sheet .settings-body.is-frame.is-column .settings-panes .settings-pane.settings-pane>.window-head.window-head{margin:18px 16px 6px}
.in-sheet .settings-body.is-frame.is-column .settings-panes .settings-pane>.window-head h2{font:var(--type-ios-footnote)}
.in-sheet .settings-body.is-frame.is-column:has(.frame-head) .sec-pill-wrap{display:none}
/* A record's quick view and Correct in its list's side pane (FW-UI-235):
   the head and the sections' labels stand as the list's inspector draws
   them (table.css .inspector-*), so the pane does not change its look when
   Correct turns it into fields. */
.in-pane .scroll>[data-quick]>.settings-titlebar{display:none}
/* «Open the Position» at the head's end, as the list's inspector has it. */
:is(.in-pane,.in-sheet) [data-quick] .frame-head:has(>.pane-open){position:relative;padding-right:28px}
:is(.in-pane,.in-sheet) [data-quick] .frame-head>.pane-open{position:absolute;top:-6px;right:-6px}
.in-pane [data-quick]>.settings-body.is-column>.settings-panes{padding-top:14px}
.in-pane [data-quick]>.settings-body.is-frame.is-column .settings-panes .settings-pane.settings-pane>.window-head.window-head{margin:14px 0 5px 2px}
.in-pane [data-quick]>.settings-body.is-frame.is-column .settings-panes .settings-pane>.window-head h2{line-height:1.38}
/* A window of one section names it once, in its head. */
:is(.in-pane,.in-sheet) .settings-body.is-frame.is-column .settings-panes:not(:has(.settings-pane~.settings-pane,.window-fieldset~.window-fieldset)) .settings-pane.settings-pane>.window-head.window-head:not(:has(.sec-head-tools)){display:none}
.main>.side-pane{top:0;z-index:3;transform:translateX(calc(100% + var(--gap-window)))}
.main>.side-pane.is-open{transform:none}
/* Correct and Add beside the list's inspector turn the pane into the
   record's fields in place: no slide (FW-UI-235, the PO's R04a99b). */
.main>.side-pane.is-instant{transition:none}
/* Beside a Mac page the pane stands over the toolbar's fading ground, as the
   list's inspector does: the toolbar's gradient crossed the pane's top 52 px
   and greyed its head (the PO 2026-11-19, Rc173c8: «боковая панель не
   дорисовывается»). */
/* Every side pane - a window beside a list, a list's inspector, the Organisation Chart's, a window's side part, the
   Form Designer's library and inspector - stands over the toolbar's fading ground, one rule for the kind (the PO
   2026-11-20 with the Org Chart, R7c1855: «вроде бы правили это уже?»; FW-UI-219). */
@media(min-width:701px){.main>.side-pane,.main [data-side-panel],.main :is(.designer-library,.designer-inspector){z-index:5}.main :is(.ph-inspector,.window-aside,.designer-library,.designer-inspector){position:relative}}
.side-pane-view{flex:1;width:100%;min-height:0;border:0;background:transparent}
/* The pane takes the inspector's place (P70): a list's own inspector steps
   aside while the pane is open and comes back as it was when it closes. */
@media(min-width:701px){.main.has-side-pane>.scroll{margin-right:calc(min(440px,46%) + var(--gap-window))}.main.has-side-pane :is(.list-window>.list-inspector,.ph-window>.ph-inspector){display:none}}
@media(max-width:700px){
 .main>.side-pane{position:fixed;inset:auto 0 0;top:auto;width:auto;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}
 .main>.side-pane:not(.is-open){box-shadow:none}
 .side-pane-view{border-radius:26px 26px 0 0;background:var(--sheet)}
 /* The sheet's grabber (R0bba21): the system's 36 x 5 bar at the top, a
    strip the finger takes to swipe the sheet down; the sheet follows it. */
 .main>.side-pane{padding-top:16px}
 .main>.side-pane.is-open{transform:translateY(var(--sheet-drag,0px))}
 /* The sheet covers the tab bar while it is open. */
 .app-shell:has(.side-pane.is-open) .tabbar{display:none}
}
/* In the sheet the window's actions stand first, as a sheet's navigation bar
   (the mockup's IPhoneOperation; M06's sheet: the foot first). */
.in-sheet .settings-form>.settings-footer{order:-1;border-top:0;border-bottom:var(--hairline-w) solid var(--separator)}
.in-sheet .settings-form>.settings-footer>:is(button,.button,.primary-button,.quiet-button):not(.audit-button){flex:1 1 0;min-width:0;min-height:50px;padding:0 16px;border-radius:25px;font:var(--type-ios-body)}
@media(max-width:700px){.tb-insp{display:none!important}.settings-titlebar .tb-heading{flex:1 1 100%}}
/* The grabber of a sheet on iPhone (shell.js tpSheetGrabber; R0bba21). */
.sheet-grabber{display:none}
@media(max-width:700px){
 .sheet-grabber{display:block;position:absolute;top:0;left:0;right:0;z-index:5;height:16px;touch-action:none;cursor:grab}
 .sheet-grabber::before{content:"";position:absolute;top:6px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:3px;background:var(--label-3)}
 .is-dragged{transition:none!important}
}
.glass-group.tb-own,.glass-group.tb-fixed{flex:none}
.tb-ops .tb-btn{gap:1px;padding:0 6px}
/* A command with its menu, Apple's Menu(primaryAction:) in a toolbar (FW-WORKFLOW-038): the symbol does the command; the chevron beside it, in the same capsule, opens the menu, as a long press on the symbol does. */
.glass-group>.tb-btn+.tool-menu.tb-pull>summary.tb-btn{min-width:0;margin-left:-8px;padding:0 6px 0 2px}
.tb-asof.on svg{stroke-width:1.8}
/* The window's ground (P28): the page's colour, white on a list with its table. */
@media(min-width:701px){
 .app:has(.scroll>.list-window){background:var(--window)}
 /* The toolbar's ground is the window's tone under it (the mockup's .toolbar and .toolbar.over-page). */
 .app:has(.scroll>.list-window) .main>.toolbar{background:linear-gradient(var(--window) 55%,color-mix(in srgb,var(--window) 0%,transparent))}
}
@media(max-width:700px){
 /* The tab bar floats over the page, which scrolls under it; a window's own
    footer stands above it. */
 .app:not(:has(.scroll>.settings-form)),.app:has(.scroll>.settings-form.list-window){bottom:0}
 .app:not(:has(.scroll>.settings-form)) .scroll{padding-bottom:calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom))}
 /* A list scrolls under the tab bar too, as the mockup's (its status bar is a Mac's only). */
 .app .scroll>.settings-form.list-window .settings-panes{padding-bottom:calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom))}
 .phone-menu{margin:20px 0 0}
}
@media(max-width:700px){
 /* A window as the page: the navigation bar holds Back at its leading end,
    the window's tools on its trailing end, the window's title under them
    the whole width (iOS's navigation bar over a large title); without Back
    and tools there is no empty line. */
 .main>.scroll>.settings-form>.settings-titlebar,.main>.scroll>.settings-form>.settings-titlebar.has-asof{flex-wrap:wrap;justify-content:flex-end;align-items:center;row-gap:0;padding:0 12px 6px}
 .main>.scroll>.settings-form>.settings-titlebar>:is(.tb-heading,h1,h2,:has(h1)){order:1;flex:1 1 100%}
 .main>.scroll>.settings-form>.settings-titlebar h1{font:var(--type-ios-large-title);letter-spacing:var(--type-mac-large-title-tracking);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 /* On iPhone the navigation bar's Back names the parent: the large title
    has no subtitle (FW-UI-180). */
 .main>.scroll>.settings-form>.settings-titlebar .tb-heading>.title-path{display:none}
 /* A framed window (M13's definition frame, lane D's is-frame) is named
    once on iPhone: by its frame's head, under the navigation bar's Back;
    the large title steps aside, its tools stay (lanes B and C). */
 .main>.scroll>.settings-form:has(>.settings-body.is-frame)>.settings-titlebar>.tb-heading{display:none}
 .main>.scroll>.settings-form>.settings-titlebar h1 small{font:var(--type-ios-footnote);letter-spacing:0}
 .main:has(>.toolbar>.tb-back:not([hidden]))>.scroll>.settings-form>.settings-titlebar::before{content:"";order:-1;flex:none;width:0;height:var(--navbar-h)}
 .main:has(>.scroll>.settings-form) .tb-back .lbl{max-width:calc(100vw - var(--tb-trail-w,0px) - 64px)}
 /* A window with a frame head (the card with its tile and name) has no
    large title on a phone: the card heads the window, as the mockup's
    phone; the title stays for a screen reader (M08, lane D's M13 check). */
 /* A record's window has no large title either: its head names the record
    (the mockup's iPhone profile: the photo, the name, then the facts); the
    name comes into the navigation bar when the head scrolls away (M08). */
 .main>.scroll>.settings-form:has(>.settings-body.is-column .form-header)>.settings-titlebar>.tb-heading{display:none}
 html:not(.in-pane) .main>.scroll>.settings-form:has(.frame-head)>.settings-titlebar h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}

/* Search (FW-UI-181, M04; the Search component, P24, P87, P88): the
   sidebar's field, its results in a popover under it, the ⌘K window in the
   middle of the window and, on a phone, the same window as a sheet. */
.header-search{position:relative;min-width:0}
.header-search-form{position:relative;display:flex;align-items:center;margin:0}
.header-search-form>svg{position:absolute;left:8px;top:50%;width:13px;height:13px;transform:translateY(-50%);color:var(--label-2);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.header-search-form input{width:100%;height:var(--tb-item);min-height:0;margin:0;padding:0 28px 0 27px;border:0;border-radius:8px;background:var(--fill-2);font:var(--type-mac-body)}
.header-search-form input:focus{background:var(--control)}
.header-search-form input::-webkit-search-cancel-button{display:none}
/* The results under the sidebar's field: wider than the sidebar, as the mockup's. */
.sr-pop{position:fixed;inset:auto;margin:0;width:380px;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain}
.sr-h{display:flex;align-items:baseline;gap:4px;padding:6px 8px 4px;font:var(--type-mac-caption);font-weight:600;color:var(--label-2)}
.sr-count{font-weight:500;color:var(--label-3)}
.sr-group{margin:0 0 4px;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}
.sr-res .sr-group>a.sr-row{position:relative;display:flex;align-items:center;gap:12px;min-height:36px;margin:0;padding:7px 12px;border-radius:0;color:var(--label);font:var(--type-mac-body);text-decoration:none;white-space:normal;cursor:default}
.sr-res .sr-group>a.sr-row+.sr-row::before{content:"";position:absolute;top:0;left:12px;right:0;height:var(--hairline-w);background:var(--separator)}
.sr-res .sr-group>a.sr-row:is(:hover,:focus-visible){background:var(--fill-hover);color:var(--label);outline:none}
.sr-res .sr-group>a.sr-row.kb{background:var(--accent-soft-strong);color:var(--label)}
.sr-row .icon-tile{width:24px;height:24px;border-radius:6px}
.sr-row .avatar{width:32px;height:32px;font-size:13px}
.sr-ttl{flex:1;min-width:0}
.sr-ttl b{display:block;font-weight:400}
.sr-ttl span{display:block;font:var(--type-mac-caption);color:var(--label-2)}
.sr-chev{flex:none;width:9px;height:9px;color:var(--label-3);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr-status{margin:0;padding:6px 8px;color:var(--label-2)}
/* The ⌘K window: a sheet in the middle of the window, its field large, the keys at its foot. */
.search-window{max-width:560px;margin-top:12vh;padding:10px}
.search-window>.settings-titlebar,.search-window>.settings-footer{display:none}
.search-window .header-search-form input{height:40px;padding-left:34px;border-radius:10px;font:var(--type-ios-body)}
.search-window .header-search-form>svg{left:11px;width:16px;height:16px}
.sr-window-res{flex:1 1 auto;min-height:0;max-height:52vh;margin-top:8px;overflow:auto}
.search-window[open]>form.header-search-form{display:flex;flex-direction:row;flex:none}
.sr-foot{display:flex;align-items:center;gap:6px;margin:0;padding:8px 4px 0;font:var(--type-mac-caption);color:var(--label-2)}
.kbd{padding:1px 5px;border:var(--hairline-w) solid var(--separator);border-radius:5px}
@media(max-width:700px){
 /* iPhone: the Search tab's sheet, rising from the bottom with Cancel and its title; no keys. */
 .search-window{width:100%;max-width:none;height:94vh;max-height:94vh;margin:auto 0 0;padding:0 16px 16px;border-radius:26px 26px 0 0}
 .search-window>.settings-titlebar{display:block}
 .search-window>.settings-footer{display:flex}
 .search-window .header-search-form input{height:36px;border-radius:12px;padding-left:32px}
 .search-window .header-search-form>svg{left:10px}
 .sr-window-res{max-height:none;margin-top:4px}
 .sr-h{padding:12px 4px 6px;font:var(--type-ios-footnote);font-weight:600}
 .sr-res .sr-group>a.sr-row{min-height:50px;padding:11px 16px;gap:10px;font:var(--type-ios-body)}
 .sr-res .sr-group>a.sr-row+.sr-row::before{left:58px}
 .sr-row .icon-tile{width:30px;height:30px;border-radius:8px}
 .sr-group{box-shadow:none}
 .sr-ttl span{font:var(--type-ios-footnote)}
 .sr-foot{display:none}
}
