/* The Manage frame (owner-approved v2, 2026-11-12): the 2.x layout (left sidebar with sections, top bar, card grid) in the Signal tokens (tokens.css).
   Calm hover (a colour change only); nothing moves or flashes. Phone: one bar naming the page that opens the menu as a grouped grid. */
body.framed .top { display: none; }
body.framed main { max-width: none; margin: 0; padding: 0; gap: 0; display: block; }
.frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 6px; padding: 12px 4px 12px 10px; background: var(--sidebar-bg, var(--bg)); border-right: 1px solid var(--line); }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
/* the side menu shows a thin graphite scrollbar whenever its list scrolls (owner, 2026-11-15: no bar reads as the whole list); the stable gutter and the 4px right padding keep the menu the same width with or without it */
.sb-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 12px; }
/* owner row 37: the logo (and wordmark) is one link to the root ("./"); it keeps the head's layout, and a phone tap target is at least 44 px */
.sb-home { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-radius: 8px; }
.sb-home-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sb-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rail .sb-home { gap: 4px; }
.sb-home-phone { justify-content: center; min-width: 44px; min-height: 44px; }
.sb-logo { width: 44px; height: 44px; background: var(--logo-tint, var(--text)); -webkit-mask: url("./assets/mark.png") center / contain no-repeat; mask: url("./assets/mark.png") center / contain no-repeat; }
.sb-word { width: 150px; height: 11px; background: var(--logo-tint, var(--text)); -webkit-mask: url("./assets/wordmark.svg") center / contain no-repeat; mask: url("./assets/wordmark.svg") center / contain no-repeat; }
.sb-search { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--field, var(--card)); color: var(--muted); font: 13px var(--font); text-align: left; cursor: pointer; }
.sb-search:hover { border-color: var(--line-strong, var(--muted)); }
.sb-search .kbd { margin-left: auto; font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav-rule { height: 1px; margin: 12px 12px 6px; background: var(--line); }
.nav-group { margin: 12px 12px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: 13px; }
.nav a .ms { color: var(--muted); }
.nav a:hover { background: var(--soft, var(--panel-soft)); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--text); font-weight: 600; } /* graphite (owner 11-17 "okay go graphite then"): a grey fill; the accent stays in the marker */ /* 2.x: the brand tint marks where you are */
.nav a[aria-current="page"]::before { content: none; }
.nav a[aria-current="page"] .ms { color: inherit; }
.nav .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.fmain { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
/* the page's icon + title (2.x .sl-page-title, be62ac329: 28 px icon and title, weight 600; phones name the page in the phone bar instead). Graphite: the icon in the text colour, not 2.x's teal. */
.topbar h1.page-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 28px; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.topbar h1.page-title .t-icon { font-size: 28px; color: var(--text); }
.topbar h1.page-title .t-icon[hidden] { display: none; }
.topbar h1.page-title .t-text { min-width: 0; overflow-wrap: anywhere; } /* a long title wraps; nothing is cut (graphite.test: no ellipsis) */
.top-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.updated { font-size: 12px; color: var(--muted); }
.chips { display: inline-flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--btn-radius, 4px); background: var(--card); color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft, var(--panel-soft)); border-color: var(--accent); color: var(--text); }
.chip .ms { font-size: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); font: 600 12px var(--font); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--btn, var(--button-bg)); color: var(--btn-t, var(--button-text)); }
.dl { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--btn, var(--button-bg)); border-radius: 4px; background: var(--btn, var(--button-bg)); color: var(--btn-t, var(--button-text)); font: 600 13px var(--font); text-decoration: none; }
.fbody { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fbody > #view, .fbody > .mbox { max-width: none; width: 100%; } /* every page uses the whole area right of the menu (owner, 2026-11-15): no fixed column */
.pill[hidden] { display: none !important; }
.phonebar { display: none; }
/* the phone: swap the sidebar for one bar that opens the menu as a grouped grid. --cols picks the grid (A 2, B 3, C 4 columns): one number, set by PHONE_MENU_COLS in module-shell.mjs */
@media (max-width: 760px) {
  .frame { display: block; }
  .phonebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 8px 12px; background: var(--sidebar-bg, var(--bg)); border-bottom: 1px solid var(--line); }
  .phonebar .sb-logo { width: 30px; height: 30px; }
  .phonebar .cur { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
  .phonebar button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); cursor: pointer; }
  .sidebar { display: none; position: fixed; inset: 61px 0 0 0; z-index: 15; height: auto; border-right: 0; padding: 12px; }
  /* owner P0 11-24 (Android, 412): `body.framed .sidebar { height: 100% }` (below) outranked the height:auto above, so the open menu, which starts 61 px down, was a full
     screen tall and its last 61 px (the copyright and version) sat below the screen, out of reach of its own scroll. The menu runs from its top to the screen's bottom. */
  html body.framed .sidebar { height: auto; } /* one more selector than the desktop rule below, which comes later in this file */
  .frame.menu-open .sidebar { display: flex; }
  body.menu-lock { overflow: hidden; }
  .sb-head { display: none; }
  .sb-search .kbd { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .nav-group { flex: 0 0 100%; margin: 10px 2px 0; }
  .nav-rule { flex: 0 0 100%; margin: 10px 2px 4px; }
  .nav a { flex: 1 1 calc((100% - (var(--cols, 4) - 1) * 8px) / var(--cols, 4)); min-width: 0; flex-direction: column; justify-content: center; height: 64px; gap: 4px; border: 1px solid var(--line); background: var(--card); font-size: 12px; padding: 0 4px; text-align: center; }
  /* Owner 11-21 ("make these buttons larger on mobile. They're all crammed at the top and I would like them to fill the space. Even a small amount of vertical
     scrolling is okay"): two columns of tall tiles that share the height under the bar, the search and the account card (four rows of eight pages), never
     under 96 px; more pages scroll. */
  .nav { gap: 10px; }
  .nav a { flex-basis: calc((100% - (var(--cols, 4) - 1) * 10px) / var(--cols, 4)); height: max(96px, calc((100dvh - 61px - 300px) / 4)); gap: 8px; font-size: 16px; font-weight: 600; border-radius: 8px; } /* the basis uses the same 10 px gap, or two tiles never fit one row */
  .nav a .ms { font-size: 32px; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"] { border-color: var(--btn, var(--button-bg)); box-shadow: inset 0 -3px 0 var(--btn, var(--button-bg)); }
  .topbar { position: static; padding: 10px 12px; }
  .topbar h1, .topbar h1.page-title { display: none; } /* the phone bar names the page; .page-title (flex, line 37) outranked the plain rule, so phones showed the title twice */
  .top-actions { margin-left: 0; width: 100%; }
  .fbody { padding: 12px; }
}
@media (hover: none), (pointer: coarse) { .sb-search .kbd { display: none; } }
/* Search Manage */
.gs-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms { font-family: "SL Icons"; font-weight: normal; font-style: normal; font-size: 19px; line-height: 1; display: inline-block; flex: 0 0 auto; width: 1em; text-align: center; }
@font-face { font-family: "SL Icons"; src: url("./icons.woff2") format("woff2"); font-display: block; }
/* 2.x Signal layer fonts (OFL, fonts-OFL.txt): DM Sans for text, Space Grotesk for headings and card titles. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./dm-sans.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./space-grotesk.woff2") format("woff2"); }
body.framed { font-family: var(--font); letter-spacing: 0; }
body.framed :is(h1, h2, h3, h4) { font-family: var(--font-head, var(--font)); letter-spacing: 0; }
/* Wrap pass 11-19 (cause E, 130 hits on 25 pages): body text never ends on one word alone (owner: "stupid newlines"). Chromium 117+ moves a word down; older engines ignore it. */
:where(body.framed) :where(p, li, dd, .note, [role=status], label) { text-wrap-style: pretty; } /* zero weight and the longhand: never undoes a deliberate nowrap (R7 #5954) */
/* style N2 (owner pick): glass cards over a soft static backdrop, a neon line under the top bar, lime-to-mint icon tiles, richer chips. Tokens: tokens.css. No motion. */
body.framed { background: var(--bg); }
body.framed .frame { background: transparent; }
body.framed .card { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius, 10px); }
body.framed .topbar { position: sticky; border-bottom: 0; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.framed .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
body.framed .pill, body.framed .card-h .when { border: 1px solid currentColor; }
.card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.card-h .tile { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--tile-grad); color: var(--tile-ink); flex: 0 0 auto; }
.card-h .tile .ms { font-size: 18px; }
.card-h h2 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.card-h .when { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--btn-radius, 4px); color: var(--muted); white-space: nowrap; }
.tabs { display: inline-flex; gap: 4px; margin: -4px 0 8px; }
.tabs button { min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--btn-radius, 4px); background: transparent; color: var(--muted); font: 600 11.5px var(--font); cursor: pointer; }
.tabs button[aria-pressed="true"], .tabs button.on { border-color: var(--line-strong); color: var(--text); background: var(--soft, var(--panel-soft)); }
.chip[aria-pressed="true"] { border-color: var(--line-strong); }

/* ---- collapse to an icon rail (2.x): chevron by the logo or a click on the logo area; state remembered per browser ---- */
.frame { grid-template-columns: var(--sbw, 232px) minmax(0, 1fr); }
.sb-head { position: relative; cursor: pointer; width: 100%; }
.sidebar { }
.collapse { position: absolute; right: -2px; top: 8px; width: 22px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.collapse:hover { background: var(--soft); color: var(--text); }
.collapse .ms { font-size: 18px; }
.frame.rail { --sbw: 64px; }
/* The fold's motion, from 2.x motion.css (sl-wordmark-out .15s, sl-wordmark-in .36s after .05s, the same easings). 2.x widened the wordmark's letter-spacing from .24em to .42em; this wordmark is an image, so it is stretched by the same ratio instead. Opacity and transform only: the page never moves. Reduced motion: no animation. */
@media (prefers-reduced-motion: no-preference) {
  .frame.rail-folding .sb-word { animation: sb-word-out .15s cubic-bezier(.4, 0, 1, 1) both; }
  .frame.rail-opening:not(.rail) .sb-word { animation: sb-word-in .36s cubic-bezier(.22, .8, .26, 1) .05s both; }
  @keyframes sb-word-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(4px) scaleX(1.14); } }
  @keyframes sb-word-in { from { opacity: 0; transform: translateY(4px) scaleX(1.14); } to { opacity: 1; transform: none; } }
}
.rail .sidebar { padding: 12px 2px 12px 8px; align-items: stretch; }
.rail .sb-word, .rail .sb-search .lbl, .rail .sb-search .kbd, .rail .nav a .lbl, .rail .legal .full { display: none; }
.rail .sb-logo { width: 34px; height: 34px; }
.rail .collapse { position: static; margin: 0 auto; }
.rail .sb-head { flex-direction: column; align-items: center; gap: 4px; }
.rail .collapse .ms { transform: scaleX(-1); }
.rail .sb-search { justify-content: center; padding: 0; }
.rail .nav a { justify-content: center; padding: 0; gap: 0; }
.rail .nav a .badge { position: absolute; top: 7px; right: 12px; width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 50%; background: var(--warn); }
.rail .nav-group { height: 1px; margin: 8px 10px; padding: 0; background: var(--line); font-size: 0; }
.rail .legal { align-items: center; }
.rail .legal .short { display: inline; }
.legal .short { display: none; }
@media (max-width: 760px) { .frame.rail { --sbw: 232px; } .collapse { display: none; } .legal { display: none; } }
/* ---- legal footer (placeholder wording, #3828) ---- */
.legal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 2px; font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; } /* centred under the card (owner 11-17) */
.legal a, .legal button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.legal a:hover, .legal button:hover { color: var(--text); }
.legal-dlg { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); }
.legal-dlg[hidden] { display: none; }
.legal-dlg .box { width: 100%; max-width: 440px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.legal-dlg h2 { margin: 0 0 8px; font-size: 16px; } .legal-dlg p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.legal-dlg ul { margin: 8px 0 14px; padding-left: 18px; } .legal-dlg li { margin: 4px 0; }
.legal-dlg button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
/* phone header: the top bar's items wrap into even rows (no lone right-floated row); a page's primary button may carry .short/.full label spans */
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; gap: 0; }
  .top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; margin-left: 0; }
  .top-actions .chips { margin-left: auto; width: auto; }
  .top-actions .chip { padding: 0 10px; }
  .top-actions .dl, .top-actions .btn { margin-left: auto; }
  .dl .full, .btn .full { display: none; }
}
.dl .short, .btn .short { display: none; }
@media (max-width: 760px) { .dl .short, .btn .short { display: inline; } }
.legal-dlg a { color: var(--accent); text-decoration: underline; }

/* Sidebar account card (2.x portal.html .menu-account family at be62ac329; tokens mapped to tokens.css). */
.menu-account{display:none;margin-top:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:10px;text-align:center;box-shadow:none}
.menu-account.is-ready{display:block}
.menu-account-row{display:flex;align-items:center;justify-content:center;gap:8px}
.menu-identity-bubble{appearance:none;width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--card) 90%,transparent);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:0;padding:4px 10px;overflow:hidden}
.menu-identity-bubble.status-active{border-color:color-mix(in srgb,var(--good) 56%,var(--line));background:var(--good-bg);color:var(--good)}
.menu-identity-bubble.status-inactive{border-color:color-mix(in srgb,var(--bad) 56%,var(--line));background:var(--bad-bg);color:var(--bad)}
.menu-identity-bubble.status-limited{border-color:color-mix(in srgb,var(--warn) 56%,var(--line));background:var(--warn-bg);color:var(--warn)}
.menu-identity{font-size:12px;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:0;flex:1 1 auto;min-width:0;width:100%;max-width:100%}
.menu-identity-initials{display:none;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.menu-identity-full{display:inline-block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-align:center} /* one line across the card (owner 11-17: "I hate ugly new lines"); a long name is shortened in the middle in module-shell.mjs, the full one in the title */
.menu-company{margin-top:6px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.menu-logout{display:inline-flex;align-items:center;gap:6px;width:auto;margin-top:8px;padding:5px 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-size:12px;font-weight:600;box-shadow:none;cursor:pointer}
.menu-logout:hover{color:var(--text);border-color:var(--text)}
.menu-logout .ms{font-size:16px}
.rail .menu-account{padding:6px 4px}
.rail .menu-identity-full,.rail .menu-company,.rail .menu-logout .nav-label{display:none}
.rail .menu-identity-initials{display:inline}
/* A rename left open when the menu is folded: its field and buttons do not fit the rail (owner 11-17 screenshot), so they are not drawn there; the menu never scrolls sideways (2.x .sidebar overflow-x: hidden). */
.rail .menu-account-row .acct-input,.rail .menu-account-row .acct-save,.rail .menu-account-row .acct-cancel{display:none}
.sidebar{overflow-x:hidden}
/* Renaming the account in the card (owner 11-17: "they re all crammed in stupidly", "the buttons are way too small"): the field takes the card's width, Save and Cancel share the line under it at a normal size, Save as the main button. */
.menu-account-row:has(.acct-input){flex-wrap:wrap;gap:8px}
.menu-account-row .acct-input{flex:1 1 100%;width:100%;box-sizing:border-box;min-height:38px;padding:6px 10px;font-size:14px;text-align:left}
.menu-account-row .acct-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.menu-account-row .acct-save,.menu-account-row .acct-cancel{flex:1 1 0;justify-content:center;min-height:36px;padding:0 12px;font-size:13px}
.menu-account-row .acct-save{background:var(--btn,var(--button-bg));color:var(--btn-t,var(--button-text));border-color:transparent}
.menu-account:has(.acct-input) .menu-logout{margin-top:12px}
@media (max-width:760px){.menu-account{margin-top:0;width:100%;padding:8px 10px}}

/* Sidebar foot: the theme switch above the account card. */
.sb-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.sb-foot .menu-account{margin-top:0}
.sb-theme{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px}
.sb-theme .seg button{min-height:30px;padding:0 9px;font-size:11.5px}
.rail .sb-theme{display:none}
/* The theme control (owner 11-26, row 78: "update the switch on manage to match"): the site footer's switch, Light | Dark, centered with
   no word beside it (owner 11-28): a 2px border toned toward the page, 4px corners, 32px tall, 13px semibold; the chosen half a soft fill of the theme (dark on dark, light on
   light: owner 11-26, "not always a light eyesore"), its word in the text colour, the other plain muted text. System has no half (hidden, as before); while it is the choice, the half the system picks reads chosen. */
.sidebar .sb-foot{display:flex;flex-direction:column;gap:8px}
.sidebar .sb-foot>.sb-theme{order:2;justify-content:center;padding:2px 2px 0}
.sidebar .sb-theme .seg{display:inline-flex;flex:none;border:2px solid color-mix(in srgb,var(--text) 40%,var(--bg));border-radius:4px;overflow:hidden;padding:0;gap:0;background:transparent;box-shadow:none}
.sidebar .sb-theme .seg>button{min-height:32px;min-width:0;padding:0 10px;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:13px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:none}
.sidebar .sb-theme .seg>button:nth-child(3){display:none}
@media (max-width:760px){.sidebar .sb-theme .seg>button{min-height:44px;padding:0 16px}} /* a phone: 44 px taps (owner rule), the menu is wide enough */
.sidebar .sb-theme .seg>button[aria-pressed="true"]{background:color-mix(in srgb,var(--text) 16%,var(--bg));color:var(--text)}
.sidebar .sb-theme .seg>button:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
/* The name box and Log out are the switch's set (owner 11-28: the name box "looks incredibly generic"): the same border, corners and weight, with
   no card around them. */
.sidebar .sb-foot .menu-account{border:0;background:transparent;padding:0}
.sidebar .sb-foot .menu-identity-bubble.status-unknown,.sidebar .sb-foot .menu-logout{box-sizing:border-box;min-height:36px;border:2px solid color-mix(in srgb,var(--text) 40%,var(--bg));border-radius:4px;background:transparent;font-size:13px;font-weight:600}
.sidebar .sb-foot .menu-identity{font-size:13px;font-weight:600}
.sidebar .sb-foot .menu-identity-bubble.status-unknown{color:var(--text)}
.sidebar .sb-foot .menu-logout:hover{color:var(--text);border-color:var(--text)}
.sidebar .sb-foot .menu-logout{padding:0 16px}
/* System chosen: the half in force reads chosen (light unless the system is dark) */
.sidebar .sb-theme .seg:has(>button:nth-child(3)[aria-pressed="true"])>button:nth-child(1){background:color-mix(in srgb,var(--text) 16%,var(--bg));color:var(--text)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .sidebar .sb-theme .seg:has(>button:nth-child(3)[aria-pressed="true"])>button:nth-child(1){background:transparent;color:var(--muted)}
  :root:not([data-theme="light"]) .sidebar .sb-theme .seg:has(>button:nth-child(3)[aria-pressed="true"])>button:nth-child(2){background:color-mix(in srgb,var(--text) 16%,var(--bg));color:var(--text)}
}

/* One title per page (module-shell oneTitle): the bar names the page; the page's own first heading is not drawn twice. */
.sl-one-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ...and the page head that held it keeps no title-sized band above its controls (seq 7: an empty ~35-45 px strip on every page, the android-ssh beta 81 item).
   `:not(#_)` outranks each page's own head padding (.sl-page-head, .cc-header, .lv-header, .home-header), whose sheets load later. */
:is(header, .sl-page-head):has(h1.sl-one-title):not(#_) { padding-top: 4px; }
/* A head that holds nothing but that hidden title (Audit, Billing, Users) is not drawn at all: no empty strip and rule above the page. The title is aria-hidden already. */
:is(header, .sl-page-head):has(> h1.sl-one-title:only-child):not(#_) { display: none; }
/* A bar with nothing in it (narrow screens hide its title) is not drawn: no empty strip under the phone bar. */
@media (max-width: 760px) { .topbar.bare { display: none; } }
/* Inside the ShadowLatch app (boot.js sets html.in-app): the app's own header carries the logo, so Manage draws none: not the top bar's brand, not the phone bar's mark, not the sidebar's mark and wordmark. */
html.in-app .top .brand, html.in-app .phonebar .sb-logo, html.in-app .sb-head .sb-logo, html.in-app .sb-head .sb-word, html.in-app .sb-home { display: none; } /* the logo link too (light-reviewer-3 on #6639): no empty focusable link that reloads the app's page */
html.in-app .top:not(:has(.pill:not([hidden]))) { display: none; }

/* Inside the app, ONE navigation and ONE title (Android walk G3, G4, G7): the app's bottom bar and strip already name where you are, so Manage draws no page-name text of its own in its bar and no second search button
   (Search Manage stays at the top of the Pages menu); the bar is one full-width button naming the open page (Menu while the menu is open); the page's own heading (H1) is the only title. */
html.in-app .phonebar .cur, html.in-app .phonebar .pb-search { display: none; }
html.in-app .phonebar { padding: 6px 12px; position: static; }
html.in-app .phonebar .pb-menu { width: 100%; justify-content: flex-start; gap: 8px; padding: 0 12px; }
.pb-lbl, .pb-caret, .pb-menu .pb-page-ic { display: none; }
html.in-app .pb-menu[aria-expanded="false"] .pb-page-ic { display: inline-block; }
html.in-app .pb-menu[aria-expanded="false"] .pb-menu-ic { display: none; }
html.in-app .pb-lbl { display: inline; font-weight: 600; white-space: nowrap; }
html.in-app .pb-caret { display: inline-flex; margin-left: auto; color: var(--muted); }
html.in-app .pb-menu[aria-expanded="true"] .pb-caret { transform: rotate(180deg); }
/* MSP v1 / P19: the account switcher (module-shell.mjs accountSwitcher), drawn only with two or more accounts. The 2.x form (accounts.css be62ac329):
   ONE row under Search Manage, as wide and as tall as it (initials, the name, a caret), opening a list placed against it. Graphite only: the open
   list and the current account are marked in the text colour, not an accent. */
.acct-sw{min-width:0}
.acct-sw[hidden]{display:none}
.acct-btn{display:flex;align-items:center;gap:8px;width:100%;min-width:0;height:40px;margin:0;padding:0 8px 0 6px;border:1px solid var(--line);border-radius:4px;background:var(--field,var(--card));color:var(--text);font:600 13px var(--font);text-align:left;white-space:nowrap;overflow:hidden;cursor:pointer;box-shadow:none}
.acct-btn:hover,.acct-btn[aria-expanded="true"]{border-color:var(--line-strong,var(--muted))}
.acct-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:4px;background:var(--soft,var(--panel-soft));color:var(--text);font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1}
.acct-text{flex:1 1 auto;min-width:0;overflow:hidden}
.acct-text b{display:block;font-weight:600;overflow-wrap:anywhere}
.acct-btn>.ms{flex:none;margin-left:auto;font-size:18px;color:var(--muted)}
/* Folded to the rail (R7 #5367 MUST): the initials alone, centred in the rail; the name and caret hide, the row and its list stay usable. */
.rail .acct-btn{justify-content:center;padding:0}
.rail .acct-text,.rail .acct-btn>.ms{display:none}
/* the open list: at the top of the frame (fixed), placed by accountSwitcher place() */
.acct-menu{position:fixed;z-index:40;left:8px;top:8px;display:flex;flex-direction:column;gap:2px;max-height:min(70vh,520px);overflow:auto;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--card);box-shadow:0 12px 32px rgba(0,0,0,.18)}
.acct-menu[hidden]{display:none}
.acct-search{display:flex;align-items:center;gap:6px;margin:2px 2px 6px;padding:0 8px;border:1px solid var(--line);border-radius:4px;background:var(--field,var(--card))}
.acct-search[hidden]{display:none}
.acct-search .ms{font-size:17px;color:var(--muted)}
.acct-find{flex:1;min-width:0;height:34px;border:0;background:transparent;padding:0;color:var(--text);font:13px var(--font);outline:none}
.acct-none{margin:6px 9px;font-size:12.5px;color:var(--muted)}
.acct-none[hidden]{display:none}
.acct-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.acct{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0;min-height:44px;padding:4px 6px;border-radius:4px}
.acct[hidden]{display:none}
.acct.cur{background:var(--soft,var(--panel-soft));box-shadow:inset 2px 0 0 var(--text)}
.acct-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:600;color:var(--text)}
.acct-note{flex:0 1 auto;font-size:11.5px;color:var(--muted)}
.acct.gone .acct-name{color:var(--muted)}
.acct-ask{flex:1 1 100%;font-size:12px;overflow-wrap:anywhere}
.acct-go{flex:1 1 auto;display:flex;align-items:center;min-width:0;min-height:36px;padding:0 4px;border:0;border-radius:4px;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.acct-go:hover{background:var(--soft,var(--panel-soft))}
.acct-rm,.acct-rm-yes,.acct-rm-keep,.acct-edit,.acct-save,.acct-cancel{min-height:32px;padding:2px 8px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);font:600 12px var(--font);cursor:pointer;box-shadow:none}
.acct-rm:hover,.acct-rm-yes:hover,.acct-rm-keep:hover,.acct-edit:hover,.acct-save:hover,.acct-cancel:hover{color:var(--text);border-color:var(--text)}
.acct-input{flex:1 1 auto;min-width:0;min-height:36px;padding:4px 8px;border:1px solid var(--line);border-radius:4px;background:var(--field,transparent);color:var(--text);font-size:13px}
.acct-tail{display:flex;flex-direction:column;margin-top:4px;border-top:1px solid var(--line)}
.acct-tail:empty{display:none}
.acct-add,.acct-manage{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 9px;border:0;border-radius:4px;background:transparent;color:var(--text);font:600 13px var(--font);text-align:left;cursor:pointer}
.acct-add:hover,.acct-manage:hover{background:var(--soft,var(--panel-soft))}
.acct-add .ms,.acct-manage .ms{font-size:18px;color:var(--muted)}

/* The whole menu scrolls as one, as 2.x (.sidebar overflow-y: auto); the foot is not pinned (pinning it squeezed the page list into a small scroll box, owner 11-17 side-by-side). Log out is drawn in the text colour so it never reads as a disabled control. */
.menu-logout{color:var(--text)}
/* A theme switch is instant (theme-pref.mjs applyTheme): no control fades from the old theme's colours. */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* Every menu item in view on a 768 px desktop window, and Log out always in view (owner 11-17). The list is never a scroll box (as #5526); its rows share the window's
   height: each link is (window height - the logo and search above, about 196 px - the section headings) / the number of links, between 22 and 38 px, so the last one ends
   inside the window and tall windows keep 38 px rows. Log out sits at the end of the top bar (always in view), so the menu's foot can scroll as 2.x without hiding it;
   the foot's own Log out is for phones. */
@media (min-width: 761px) {
  .sidebar > .sb-head, .sidebar > .sb-search, .sidebar > .nav, .sidebar > .sb-foot, .sidebar > .legal { flex: none; }
  /* The owner's 8-item menu (GO 11-19) at 2.x be62ac329's computed sizes (IA map v4, sample D/E, lanes/owner-samples-2026-11-19/menu README section 4): a 220 px menu,
     42 px rows 4 px apart, 13 px DM Sans at 650 (2.x's font; frame.css already loads it), 20 px icons 8 px from the label, a 54 px logo over a 164 x 15 wordmark.
     Eight rows end near y=540 at 1080 (about 590 with the account switcher): no scroll. The rail keeps its own sizes (.rail rules above win). */
  .frame:not(.rail) { --sbw: 220px; }
  .frame:not(.rail) .sidebar { padding: 14px 4px 12px 12px; gap: 10px; }
  .nav { gap: 4px; margin-top: 0; }
  .nav a { height: 42px; padding: 0 12px; gap: 8px; font: 650 13px "DM Sans", var(--font, sans-serif); border-radius: 4px; }
  .nav a[aria-current="page"] { font-weight: 650; }
  .nav a .ms { font-size: 20px; }
  .sb-search { font-family: "DM Sans", var(--font, sans-serif); }
  .sb-head { gap: 7px; padding: 6px 0 18px; }
  .frame:not(.rail) .sb-logo { width: 62px; height: 54px; }
  .frame:not(.rail) .sb-word { width: 164px; height: 15px; }
  .nav a[aria-current="page"]::before { top: 5px; bottom: 5px; }
  .sidebar .menu-logout { display: none; }
}
.top-logout { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text); font: 600 13px var(--font); cursor: pointer; box-shadow: none; }
.top-logout:hover { border-color: var(--text); }
.top-logout .ms { font-size: 17px; }
@media (max-width: 760px) { .top-logout { display: none; } }

/* The running version under the legal lines, as 2.x .menu-buildinfo: small and quiet. */
.legal .legal-build{font-size:10px;color:var(--muted);opacity:.85;font-variant-numeric:tabular-nums}
.legal .legal-build:empty{display:none}

/* The entry's tabs (owner's 8-item menu, 11-19): one strip above the page. Each tab is a page's own route (#flow, #billing ...), so a link to it still opens it. */
.hub-tabs { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 2px; margin: 0 0 16px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); max-width: 100%; box-sizing: border-box; overflow: visible; } /* 2.x .v-seg.v-subseg (network-v3.css:30): a shaded strip whose chosen tab is a filled pill, so it reads as tabs (owner 11-21); never a scroll box (the 1 px bar under Log out) */
.hub-tabs[hidden] { display: none; }
.hub-tab { flex: none; display: inline-flex; align-items: center; white-space: nowrap; min-height: 40px; padding: 6px 16px; border-radius: 6px; color: var(--muted); text-decoration: none; font: 600 14px var(--font, system-ui, sans-serif); }
@media (max-width: 760px) { .hub-tab { min-height: 44px; } } /* the 44 px tap rule on a phone (build1 gate, #6013) */
.hub-tab:hover { color: var(--text); }
.hub-tab[aria-current="page"] { color: var(--text); background: var(--accent-soft, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line)); } /* 2.x .v-segbtn[aria-selected=true] */
/* The open-alerts count on Alerts: on a phone tile it sits in the tile's corner. */
@media (max-width: 760px) { .nav a .badge { position: absolute; top: 6px; right: 8px; margin: 0; } }

/* The current page's colours: "green" (2.x be62ac329's computed colours; owner YES 2026-11-19) when module-shell.mjs MENU_ACTIVE says so, as it does; otherwise "graphite" (owner 11-17). */
.frame[data-active="green"] .nav a[aria-current="page"] { background: #e5f2d9; color: #35551c; }
:root[data-theme="dark"] .frame[data-active="green"] .nav a[aria-current="page"] { background: #273522; color: #c2fa84; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frame[data-active="green"] .nav a[aria-current="page"] { background: #273522; color: #c2fa84; } }

/* A tab's one-line lead drawn straight in the page box (the Activity tab; 2.x .sl-page-role, portal.html be62ac329:16734) */
.mbox > .sl-page-role { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; max-width: 720px; text-wrap-style: pretty; }

/* No whole-page scroll, ever (owner 11-21, 3.0.0.62/63 at 1907 x 980, Linux Chrome, classic scrollbars: the page itself scrolled down and sideways,
   the header cut off, the menu clipped on the left, a gap at the bottom). Once Manage is mounted the document is locked to the window and only the
   content column (.fmain) scrolls; the menu scrolls on its own. <main> is fixed to the window, so nothing beside it (the sign-in scene handed to <body>
   during the reveal, a dialog, a toast) can make the document taller or wider. Sticky bars stick inside .fmain, which is now their scroller. */
html:has(body.framed), body.framed { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.framed main { position: fixed; inset: 0; overflow: hidden; }
body.framed .shell { height: 100%; }
body.framed .frame { height: 100%; min-height: 0; overflow: hidden; }
body.framed .sidebar { height: 100%; }
body.framed .fmain { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; } /* the column never scrolls sideways either: wide tables scroll inside their own wrappers */
@media (max-width: 760px) {
  body.framed .frame { display: flex; flex-direction: column; }
  body.framed .phonebar { flex: none; height: 61px; box-sizing: border-box; } /* its final height from the first paint (the menu below it opens at 61 px): the icon font arriving never moves the page */
  body.framed .fmain { flex: 1 1 auto; height: auto; }
}

/* Motion (owner 11-21: "nice smooth quick animations and transitions ... fast enough that the user just thinks wow this is a really nice site").
   One family: --ease-out for things arriving, --ease-in-out for things moving. prefers-reduced-motion: no motion at all. */
:root { --motion-fast: 120ms; --motion-page: 180ms; --motion-dialog: 150ms; --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-in-out: cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { :root { --motion-fast: 0ms; --motion-page: 0ms; --motion-dialog: 0ms; } }
/* The page stage: the old view and the new one share one cell, so the page below never moves while they cross (page-motion.mjs). */
.mstage { display: grid; min-width: 0; }
.mstage > .mview { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mstage > .mview > .hub-tabs[hidden] { display: none; }
/* The tab strip inside a view: the view's gap is its only space below (its own margin doubled it into a ~30 px band). On a phone it is a compact,
   full-width segmented control, the tabs sharing it equally (owner 11-21 on Activity: "symmetrical, premium", no empty band under the tabs). */
.mstage > .mview > .hub-tabs { margin: 0; }
/* Owner rule: no tab label wraps, at any width (#7100 did the phone; at 834 px "Alert settings" still went to a second line). A row too long for its
   space scrolls sideways, and its cut edge fades (is-over-start / is-over-end, set by module-shell.mjs) so a cut tab never reads as the end of the row. */
.mstage > .mview > .hub-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.mstage > .mview > .hub-tabs::-webkit-scrollbar { display: none; }
.mstage > .mview > .hub-tabs.is-over-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.mstage > .mview > .hub-tabs.is-over-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.mstage > .mview > .hub-tabs.is-over-start.is-over-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
@media (max-width: 760px) {
  .mstage > .mview { gap: 10px; }
  .mstage > .mview > .hub-tabs { display: flex; align-self: stretch; max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .mstage > .mview > .hub-tabs::-webkit-scrollbar { display: none; }
  /* equal shares while every label fits its share; otherwise each tab is as wide as its label and the row scrolls sideways (owner 11-26: no label wraps) */
  .mstage > .mview > .hub-tabs > .hub-tab { flex: 1 1 0; justify-content: center; padding: 6px 10px; min-width: max-content; }
}
/* the page getting ready: laid out but not shown (visibility, so its own reflow as data lands is not a shift anyone sees) */
.mstage > .mview-next { visibility: hidden; pointer-events: none; }
.mstage > .mview-snap { pointer-events: none; }
/* The menu: the current page's highlight eases in, nothing jumps. */
.nav a { transition: background-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out); }
/* Dialogs scale and fade in. */
@keyframes sl-dialog-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
dialog[open] { animation: sl-dialog-in var(--motion-dialog) var(--ease-out); }

/* First open: a page is shown once its own stylesheet is in, never unstyled then moving (css-ready.mjs, owner 11-21). Its space is kept. */
.page-styling { visibility: hidden !important; }

/* The Alerts bell (owner 11-21: "put the alerts button next to logout at the top right rather than its own page"): left of Log out on a desktop
   window, in the phone bar on a phone; the open-alerts count sits on its corner (the same count Home shows). */
.bell { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; transition: border-color var(--motion-fast) var(--ease-out); }
.bell:hover { border-color: var(--text); }
.bell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bell .ms { font-size: 18px; }
.bell .bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 700 11px/18px var(--font); text-align: center; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--bg); }
.bell .bell-count[hidden] { display: none; }
.phonebar .pb-bell { display: none; }
@media (max-width: 760px) { .phonebar .pb-bell { display: inline-flex; min-width: 44px; min-height: 44px; } .topbar .top-bell { display: none; } } /* a phone target is at least 44 x 44 */

/* The (i) for explanatory text (icons.mjs infoTip; owner rule 11-21): a small button next to a title; its note opens under it. */
.sl-i { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; font-weight: 400; }
.sl-i-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sl-i-btn:hover, .sl-i-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.sl-i-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sl-i-btn .ms { font-size: 20px; }
.sl-i-note { position: absolute; z-index: 30; top: calc(100% + 6px); left: -8px; width: max-content; max-width: min(360px, calc(100vw - 16px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, var(--panel, #1b1c1f)); color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; text-transform: none; letter-spacing: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.sl-i-note[hidden] { display: none; }
/* owner P0 11-24: an open note is placed by icons.mjs placeNote (fixed, inside the viewport, flipped above when there is no room); it wraps, scrolls inside
   when taller than the screen, and has its own ✕ (a tap outside never closes it) */
.sl-i-note:not([hidden]) { white-space: normal; overflow-wrap: anywhere; overflow-y: auto; z-index: 80; padding-right: 48px; }
/* the note's close: an icon button with its own edge and a focus ring (owner 11-26: it read as a stray letter) */
.sl-i-x:not(#_) { position: absolute; top: 6px; right: 6px; box-sizing: border-box; display: inline-grid; place-items: center; width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); line-height: 1; cursor: pointer; }
.sl-i-x:not(#_):hover { color: var(--text); border-color: var(--muted); background: color-mix(in srgb, var(--text) 8%, transparent); }
.sl-i-x:not(#_):focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; }
.sl-i-x .ms { font-size: 18px; }
@media (pointer: coarse), (max-width: 760px) { .sl-i-note:not([hidden]) { min-height: 58px; padding-right: 60px; } .sl-i-x:not(#_) { width: 44px; height: 44px; min-width: 44px; min-height: 44px; } }
html.in-app .sl-i-note:not([hidden]) { min-height: 58px; padding-right: 60px; } html.in-app .sl-i-x:not(#_) { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.sl-i-note .sl-i-p { display: block; margin: 0 0 8px; } .sl-i-note .sl-i-p:last-child { margin-bottom: 0; }
.sl-i-note strong { color: var(--text); font-weight: 600; }
.sl-i-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .sl-i-row .sl-i { margin-left: 0; }
.sl-i-note .sl-i-h { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.sl-title-row { display: flex; align-items: center; gap: 4px; min-width: 0; } .sl-title-row > h2, .sl-title-row > h3 { margin: 0; min-width: 0; } .sl-title-row .sl-i { margin-left: 0; }
/* A phone's tap target for the (i) is 44 px (the gate's tap rule; the icon stays 20 px). The app's WebView can report a wide window, so html.in-app counts too. */
@media (pointer: coarse), (max-width: 760px) { .sl-i-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; } }
html.in-app .sl-i-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }

/* Owner row 38 (all of Manage; here because the frame owns .fmain and .sidebar): "scrolling with a modal open should never scroll the page behind it" (2.x: body:has(.modal:not(.hidden)) { overflow: hidden }).
   ONE lock: while a modal is open (a native <dialog> opened with showModal, or any shown element marked aria-modal="true"), every page scroller is held:
   the document, the framed main column and the side menu. overflow: hidden keeps each one's scroll position, so it is where it was after the close;
   scrollbar-gutter keeps the width. The modal itself scrolls inside, and its scroll never chains out to the page. */
html:has(dialog:modal, [aria-modal="true"]:not([hidden])),
html:has(dialog:modal, [aria-modal="true"]:not([hidden])) :is(body, .fmain, .sidebar) { overflow: hidden !important; overscroll-behavior: none; scrollbar-gutter: stable; }
dialog, [aria-modal="true"], .rl-modal-panel, .pw-panel { overscroll-behavior: contain; }

/* The ONE waiting bar for every page (waiting-bar.mjs mountShellWaiting; owner 11-24: one list across all of Manage). It was Library's; the shell owns it now, so every page has it
   without loading Library's stylesheet. Fixed at the bottom at every width over the content column, under a dialog (45 < .wb-modal 50), and the toast sits above it. */
.wb { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; margin: 0 0 12px; border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--card, var(--panel)); /* owner 11-24: solid, never see-through (page rows showed through it) */ border-radius: var(--surface-radius, 8px); white-space: nowrap; }
.wb[hidden] { display: none; }
.wb-count { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Coordinator 11-24 (B+): in a browser without the account key the bar says where account-wide changes are sent, with its (i), instead of Send. */
/* R7 on #6966: the line wraps inside the bar (the bar's row is nowrap); it takes the room the Review button would, never past the bar */
.wb-apponly { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.wb-apponly .wb-i { flex: none; }
.wb-apponly .wb-i { display: inline-flex; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.wb-apponly .wb-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb .rl-btn { flex: none; }
.rl-btn.wb-reading { visibility: hidden; } /* the send button's place, kept while the owner apps' way is being read (waiting-bar.mjs ownerGate) */
@media (max-width: 760px) { .wb:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; margin: 0; box-shadow: var(--shadow-md); background: var(--card); } }
/* Owner P0 11-27 ("after one change, you can't save any else"): the waiting bar is fixed at the bottom, and a dialog opened inside a page sits in that
   page's stacking context, so the bar covered the dialog's footer (Done, Save) at phone widths. While ANY dialog is open the bar (and Profiles' own
   bar) is not drawn: the shared dialogs (aria-modal: Library, the shell's bar, every makeDialog page), native modal <dialog>s, and the page modals
   by class. A dialog kept closed in the markup (hidden itself, or inside a hidden parent: Search, the legal text) doesn't count. It's position: fixed, so nothing on the page moves (the page keeps its room for it, wb-reserve), and it is back the moment the dialog closes. */
body:has(.modal:not(.hidden), [aria-modal="true"]:not([hidden]):not([hidden] *), dialog[open], .lib-modal:not([hidden]), .rl-modal:not([hidden]), .gs-modal:not([hidden]), .dev-modal:not([hidden]), .av-dialog:not([hidden])) .wb:not([hidden]),
body:has(.modal:not(.hidden), [aria-modal="true"]:not([hidden]):not([hidden] *), dialog[open], .lib-modal:not([hidden]), .rl-modal:not([hidden]), .gs-modal:not([hidden]), .dev-modal:not([hidden]), .av-dialog:not([hidden])) .rl-bar:not([hidden]) { display: none; }
.wb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wb-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.wb-list li.is-stale { border-color: var(--warn); }
/* Owner 11-24: a waiting row's values (a variable's entries) under its label, muted. */
.wb-list li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.wb-vals { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.wb-err { margin: 8px 0 0; color: var(--bad); min-height: 1.2em; }
@media (min-width: 761px) {
  .wb:not([hidden]) { position: fixed; left: calc(var(--sbw, 232px) + 24px); right: 24px; bottom: 16px; z-index: 45; margin: 0; box-shadow: var(--shadow-md); background: var(--card); }
}
.wb-host[hidden] { display: none; }
body:has(.wb:not([hidden])) .wb-toast { bottom: 84px; }
@media (max-width: 760px) { body:has(.wb:not([hidden])) .wb-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
/* its dialog and notice (the shared makeDialog with prefix wb), the same look as Library's */
.wb-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.wb-mpanel { width: min(700px, 100%); max-height: min(760px, calc(100vh - 32px)); max-height: min(760px, calc(100dvh - 32px)); /* the visible height on a phone (its address bar), so the footer is on screen */ display: flex; flex-direction: column; background: var(--card, var(--panel)); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); overflow: hidden; }
.wb-mhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, var(--panel)); }
.wb-mhead h3 { margin: 0; font-size: 18px; }
.wb-x:not(#_) { width: 34px; height: 34px; min-height: 34px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); }
.wb-x .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wb-mbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 14px; }
.wb-mfoot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.wb-mfoot .rl-btn { width: auto; }
@keyframes wb-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wb-nudge { animation: wb-nudge .25s; }
.wb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 10px 14px; border-radius: var(--surface-radius, 6px); background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-md, 0 6px 18px rgba(0, 0, 0, .25)); }
.wb-toast[hidden] { display: none; }
/* Room for the bar on every page, up front (LR on #6955, owner: no layout jumps): the page's end always has 96 px, as Library's did, so the bar covers no row and nothing moves
   when it appears. Library's own 96 px is not added to it. */
body.wb-reserve .fbody { padding-bottom: 96px; }
body.wb-reserve .lib { padding-bottom: 0; }

/* the bar's text never clips on a phone (a wider count, "12 changes waiting", beside two buttons): tighter gaps and button padding, and the text may wrap */
@media (max-width: 760px) { .wb:not([hidden]) { gap: 6px; padding: 8px 8px 8px 12px; white-space: normal; } .wb .rl-btn { padding-left: 10px; padding-right: 10px; } .wb-count { overflow-wrap: normal; } }
/* Review groups its rows by what they change, in plain words (waiting-groups.mjs): a small heading over each list */
/* #7308: what an account-wide change needs is two sentences; on a phone it takes its own line under the count and Discard (the Profiles bar too). */
@media (max-width: 760px) { .wb:has(> .wb-apponly):not(#_) { flex-wrap: wrap; } .wb:has(> .wb-apponly):not(#_) > .wb-count, .rl-bar:has(> .rl-apponly):not(#_) > .rl-bar-count { flex: 1 1 auto; margin-right: auto; }
  .rl-bar:has(> .wb-apponly):not(#_) { flex-wrap: wrap; } .wb-apponly:not(#_) { order: 3; flex: 1 0 100%; margin: 0; } }
.wb-groups { display: grid; gap: 6px; }
.wb-ghead { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wb-groups .wb-ghead:first-child { margin-top: 0; }

/* graphite (owner 11-24): a soft sheen at the top of the sidebar, like the padlock's body; the shell's own sheet styles the shell */
body.framed .sidebar { background-image: linear-gradient(180deg, color-mix(in srgb, var(--text) 3%, transparent), transparent 40%); }
