/* Generated from the approved prototype (docs/design/prototypes/web-app.html):
   rules that match its rendered views, in their original cascade order.
   Add new rules to app.css rather than editing this file by hand. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/landing/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/landing/fonts/familjen-grotesk-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/landing/fonts/albert-sans-600-latin.woff2") format("woff2"); }
:root { --paper: #F5F5F2; --surface: #FFFFFF; --ink: #1E2A31; --muted: #5E6A6F; --line: #E2E3DE; --soft: #EEEEEA; --focus: #2F5F7C; --accent: #2F5F7C; --paint: #B8432F; --moss: #5F7658; --ok: #2F6B4A; --ok-bg: #E3EEE6; --warn: #75561A; --warn-bg: #F3EAD5; --p-white: #FFFFFF; --p-light: #F4F3EE; --p-shade: #D9D8D1; --p-crown: #C0452F; --p-eye: #23201D; --f-ui: "Inter", ui-sans-serif, system-ui, sans-serif; --f-disp: "Familjen Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif; --f-brand: "Albert Sans", ui-sans-serif, system-ui, sans-serif; --f-label: "Inter", ui-sans-serif, system-ui, sans-serif; --host-bg: #FFFFFF; --host-ink: #1F1F1F; --host-muted: #6B6B6B; --host-line: #E4E4E4; --host-surface: #F4F4F4; --host-bubble: #EEEEEE; --d-accent: var(--accent); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { color-scheme: dark; --paper: #111517; --surface: #181D20; --ink: #E7EBEC; --muted: #9AA5AA; --line: #262D31; --soft: #1E2427; --focus: #8DB5CF; --accent: #8DB5CF; --paint: #E07A63; --moss: #9DB793; --ok: #7CC79C; --ok-bg: #16291E; --warn: #E3C27A; --warn-bg: #2E2614; --host-bg: #212121; --host-ink: #ECECEC; --host-muted: #A3A3A3; --host-line: #363636; --host-surface: #2A2A2A; --host-bubble: #303030; }
}
.wmark { white-space: nowrap; font-family: var(--f-brand, "Albert Sans"), system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); display: inline-block; }
.wmark .wb { position: relative; display: inline-block; }
.wmark .wb::after { content: ""; position: absolute; left: var(--fx, .118em); top: var(--fy, .06em); width: var(--flagw, .28em); height: var(--flagh, .18em); background: var(--flagc, var(--p-crown)); clip-path: polygon(0px 0px, 100% 0px, 76% 50%, 100% 100%, 0px 100%); }
.wb svg.bg, .wb svg.eyes { position: absolute; left: 0px; top: 0px; height: 1em; overflow: visible; pointer-events: none; }
.wmark { --eyec: var(--paper); }
:root { --ground: #EFF4F6; --ground-deep: #E6EEF1; --land: #FEFDFB; --surface: #FFFFFF; --soft: #F3F2EE; --ink: #1E2A31; --muted: #5E6A6F; --line: #E4E2DA; --flag: #C0452F; --flag-soft: #F6E4DF; --focus: #2F5F7C; --ok: #2F6B4A; --ok-soft: #E2EEE6; --warn: #7D5512; --warn-soft: #F4EAD3; --shoal: #EFF6F5; --beach: #EADFC6; --sea-top: #E3ECF0; --sea-bot: #CFDCE3; --sea-hi: #FFFFFF; --a1: #7B98AD; --a2: #93A585; --a3: #D6B26C; --a4: #A393B5; --a5: #C79A86; --sh-card: 0 0 0 1px rgba(30,42,49,.035), 0 1px 2px rgba(30,42,49,.03), 0 10px 24px -18px rgba(30,42,49,.14); --sh-float: 0 0 0 1px rgba(30,42,49,.04), 0 2px 4px rgba(30,42,49,.03), 0 18px 36px -22px rgba(30,42,49,.2); --t-fast: 150ms; --t-base: 300ms; --t-slow: 600ms; --ease: cubic-bezier(.3,.7,.2,1); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { color-scheme: dark; --ground: #16242C; --ground-deep: #101B21; --land: #1B282F; --surface: #22313A; --soft: #1F2D35; --ink: #E7EBEC; --muted: #9FB0B7; --line: #2E3E46; --flag: #E0735D; --flag-soft: #3A2622; --focus: #8DB5CF; --ok: #7CC79C; --ok-soft: #173024; --warn: #E3C27A; --warn-soft: #33291A; --shoal: #1D2D35; --beach: #4D4E46; --land-a: #2A353A; --land-b: #232E33; --foam: #3F525B; --isle-shadow: #05090B; --isle-ink: #E7EBEC; --isle-muted: #A6B3B9; --sea-top: #1B2B34; --sea-bot: #101B21; --sea-hi: #5E8092; --sea-k: .3; --sh-card: 0 1px 0 rgba(0,0,0,.2), 0 18px 36px -26px rgba(0,0,0,.7); --sh-float: 0 28px 56px -30px rgba(0,0,0,.8); }
}
* { box-sizing: border-box; }
h1, h2, h3, p { margin: 0px; }
/* The sea is painted on the root so it fills the canvas edge to edge; the body's default margin used to leave a strip of another colour. */
html { background: linear-gradient(180deg, var(--ground), var(--ground-deep) 1800px) no-repeat var(--ground-deep); }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
.note { font-size: 13.5px; color: var(--muted); max-width: 70ch; }
code, .mono { font-family: var(--f-label); font-size: 12.5px; }
.b { font: 500 15px/1 var(--f-ui); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease; }
.b:hover { border-color: var(--muted); }
.b:active { transform: translateY(1px); }
.b:focus-visible, .sw:focus-visible, .seg button:focus-visible, .fld input:focus-visible, .fld select:focus-visible, .ds-index a:focus-visible, .nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.b.primary { background: var(--ink); border-color: var(--ink); color: var(--land); }
.b.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--land)); }
.b.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.b.quiet:hover { color: var(--ink); background: var(--soft); }
.b.sm { padding: 9px 14px; font-size: 13.5px; }
@keyframes spin { 
  100% { transform: rotate(360deg); }
}
.sw { position: relative; width: 40px; height: 24px; border-radius: 999px; border: 0px; padding: 0px; cursor: pointer; background: var(--ink); transition: background var(--t-base) ease; flex: 0 0 auto; }
.sw::after { content: ""; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--land); box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px; transition: left var(--t-base) var(--ease); }
.sw[aria-pressed="false"] { background: color-mix(in srgb, var(--muted) 38%, var(--surface)); }
.sw[aria-pressed="false"]::after { left: 3px; background: var(--surface); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font: 500 13.5px/1 var(--f-ui); border: 0px; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background var(--t-fast) ease, color var(--t-fast) ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: rgba(30, 42, 49, 0.12) 0px 1px 2px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentcolor; flex: 0 0 auto; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
@keyframes pulse { 
  50% { opacity: 0.35; }
}
.av { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: rgb(30, 42, 49); }
svg.agent { width: 36px; height: 36px; flex: 0 0 auto; }
.tile { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.tile svg { width: 18px; height: 18px; }
.chev { color: var(--muted); font-size: 18px; }
.nav { display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--land) 82%, transparent); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--sh-card); overflow-x: auto; }
.nav .wmark { font-size: 21px; margin-right: 14px; --eyec: var(--land); }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: rgba(30, 42, 49, 0.1) 0px 1px 2px; }
.nav a .n { min-width: 18px; height: 18px; border-radius: 999px; background: var(--flag); color: rgb(255, 255, 255); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding-inline: 5px; }
.dlg { background: var(--surface); border-radius: 24px; padding: 26px; display: grid; gap: 12px; box-shadow: var(--sh-float); max-width: 420px; }
.dlg h4 { margin: 0px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.dlg p { color: var(--muted); }
.dlg .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 12px; }
.empty svg { width: 260px; max-width: 100%; height: auto; overflow: visible; }
.empty b { font-size: 17px; font-weight: 600; }
.empty span { color: var(--muted); font-size: 14px; max-width: 34ch; }
@keyframes drift { 
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
*, ::before, ::after { animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
}
.wmark { font-family: var(--f-brand); }
.tok, code, .mono, .lrow time { font-family: var(--f-ui); font-feature-settings: "ss02", "tnum"; }
body { font-family: var(--f-ui); }
.shell { display: grid; grid-template-columns: 236px minmax(0px, 1fr); align-items: start; min-height: 100vh; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.side nav a svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side nav a .n { margin-left: auto; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px; background: var(--flag); color: rgb(255, 255, 255); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; font-feature-settings: "tnum"; }
.main { min-width: 0px; padding: 26px 32px 80px 12px; }
.view[hidden] { display: none !important; }
.vh { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.vh h1 { font-family: var(--f-disp); font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; }
.vh p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.sec-t { display: flex; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0px 0px 10px 4px; }
.pane { background: var(--land); border-radius: 20px; box-shadow: var(--sh-card); }
.queue { display: grid; gap: 10px; }
.dc { background: var(--land); border-radius: 18px; box-shadow: var(--sh-card); padding: 16px 18px; display: grid; gap: 12px; transition: opacity var(--t-slow) ease, transform var(--t-slow) var(--ease); }
.dc-top { display: flex; align-items: flex-start; gap: 12px; }
.dc-top .txt { flex: 1 1 0%; min-width: 0px; display: grid; gap: 3px; }
.dc-top .txt b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.dc-top .txt b em { font-style: normal; font-weight: 500; color: var(--muted); }
.dc-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dc-more { display: grid; gap: 12px; }
.dc-more[hidden] { display: none; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0px 12px; min-height: 40px; flex: 1 1 220px; max-width: 360px; }
.search:focus-within { border-color: var(--focus); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.search input { border: 0px; outline: none; background: transparent; font: 14.5px var(--f-ui); color: var(--ink); flex: 1 1 0%; min-width: 0px; padding: 9px 0px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13px/1 var(--f-ui); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--land); }
.chip:focus-visible, .prow2:focus-visible, .side nav a:focus-visible, .sortsel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.detail { padding: 22px; display: grid; gap: 22px; }
.back { display: none; }
.srow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; }
.srow + .srow { border-top: 1px solid var(--line); border-radius: 0px; }
.srow .t { flex: 1 1 220px; display: grid; line-height: 1.35; min-width: 0px; }
.srow .t b { font-weight: 600; font-size: 14.5px; }
.srow .t span { font-size: 12.5px; color: var(--muted); }
.srow .e { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.addr { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; flex: 1 1 280px; }
.addr code { flex: 1 1 0%; min-width: 0px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.b svg { width: 16px; height: 16px; }
.pane[hidden], .dc-more[hidden] { display: none !important; }
.modal { position: fixed; inset: 0px; z-index: 50; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--ground-deep) 64%, transparent); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal .dlg { width: min(100%, 440px); animation: pop var(--t-base) var(--ease); }
@keyframes pop { 
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
}
.toasts { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0px, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); min-height: 48px; }
.facts > div:first-child { border-top: 0px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; min-width: 0px; }
.facts select { font: 14px var(--f-ui); color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 100%; }
.fieldset { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 8px 32px; width: 100%; max-width: 400px; }
.fieldset label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.box { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.mini-list { display: grid; }
.mini-list div { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.mini-list div:first-child { border-top: 0px; }
.mini-list time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.mini-list svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 860px) {
.shell { grid-template-columns: minmax(0px, 1fr); }
.main { padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 96px); }
.back { display: inline-flex; justify-self: start; }
.facts > div { grid-template-columns: minmax(0px, 1fr); gap: 6px; }
.fieldset { grid-template-columns: minmax(0px, 1fr); }
}
.narrow { width: min(100%, 720px); margin-inline: auto; }
.narrow.wide { width: min(100%, 880px); }
.menu { background: var(--surface); border-radius: 14px; box-shadow: var(--sh-float); padding: 12px; display: grid; gap: 10px; font-size: 13px; }
.menu[hidden] { display: none; }
.attn { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink); text-decoration: none; font-size: 14px; }
.attn svg { width: 17px; height: 17px; color: var(--warn); flex: 0 0 auto; }
.attn span { flex: 1 1 0%; }
.attn b { font-weight: 600; }
.attn em { font-style: normal; color: var(--warn); font-weight: 500; white-space: nowrap; }
.queue { gap: 14px; }
.dc { padding: 18px 20px; gap: 14px; }
.dc .kind { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dc .kind .exp { margin-left: auto; text-transform: none; letter-spacing: 0px; font-weight: 400; font-size: 12.5px; }
.dc .kind .exp.soon { color: var(--flag); font-weight: 500; }
.dc-top .txt b { font-size: 16px; }
.dc-top .txt .why { font-size: 13.5px; color: var(--muted); }
.dc .facts-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.dc .facts-inline span { font-size: 13px; background: var(--soft); border-radius: 999px; padding: 5px 11px; }
.dc .facts-inline span.new { background: color-mix(in srgb, var(--a4) 22%, var(--surface)); }
.detail { padding: 0px; background: transparent; box-shadow: none; gap: 16px; }
.none { font-size: 13.5px; color: var(--muted); padding: 4px 2px; }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 14px; margin-bottom: 30px; }
.ccard { background: var(--land); border-radius: 20px; box-shadow: var(--sh-card); padding: 18px; display: grid; gap: 14px; align-content: start; }
.ccard.warnc { box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent), var(--sh-card); }
.ccard .h { display: flex; align-items: center; gap: 12px; }
.ccard .h .t { flex: 1 1 0%; min-width: 0px; display: grid; line-height: 1.35; }
.ccard .h .t b { font-weight: 600; font-size: 15px; }
.ccard .h .t span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .who { display: flex; align-items: center; }
.ccard .who .av { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--land); margin-left: -6px; }
.ccard .who .av:first-child { margin-left: 0px; }
.ccard .who .more { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.ccard .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ccard.add { border: 1.5px dashed var(--line); box-shadow: none; background: transparent; place-content: center; justify-items: center; text-align: center; min-height: 170px; }
.ccard.add span { font-size: 13px; color: var(--muted); max-width: 26ch; }
@media (max-width: 860px) {
.cgrid { grid-template-columns: minmax(0px, 1fr); }
}
a.b { text-decoration: none; }
.ccard .h .t span { white-space: normal; }
.cgrid { grid-template-columns: minmax(0px, 1fr); gap: 12px; }
.ccard { padding: 18px 20px; gap: 12px; }
.ccard .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ccard .foot .acts { margin-left: auto; }
.ccard.add { min-height: 0px; padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ccard.add:hover { border-color: var(--muted); }
.ccard.add span { max-width: none; }
.detail { display: block; }
.pd { background: var(--land); border-radius: 20px; box-shadow: var(--sh-card); padding: 24px 28px 28px; display: grid; gap: 20px; }
.pd-h { display: flex; align-items: center; gap: 14px; }
.pd-h .t { flex: 1 1 0%; display: grid; line-height: 1.3; min-width: 0px; }
.pd-h .t span { color: var(--muted); font-size: 13.5px; }
.more { position: relative; }
.pmenu { position: absolute; right: 0px; top: calc(100% + 6px); z-index: 5; min-width: 190px; padding: 6px; gap: 2px; }
.mi { text-align: left; font: 14px var(--f-ui); color: var(--ink); background: transparent; border: 0px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.mi:hover, .mi:focus-visible { background: var(--soft); outline: none; }
.none { font-size: 13.5px; color: var(--muted); padding: 10px 0px 4px; }
@media (max-width: 860px) {
.pd { padding: 18px 18px 22px; }
.ccard .foot .acts { margin-left: 0px; }
}
.shell { display: block; min-height: 0px; }
.topbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 20; max-width: 1240px; margin: 10px auto 0px; padding-inline: 24px; }
.topbar .nav { overflow: visible; }
.nav a.wmark { display: inline-block; padding: 0px; gap: 0px; border-radius: 0px; color: var(--ink); font-size: 21px; margin-right: 14px; text-decoration: none; --eyec: var(--land); }
.nav a.wmark:hover { color: var(--ink); }
.topnav { display: flex; gap: 4px; }
.topnav a svg { display: none; }
.topnav a .n { margin-left: 2px; }
.nav a .n.w { background: var(--warn-soft); color: var(--warn); }
.acct { position: relative; margin-left: auto; }
.avbtn { border: 0px; background: transparent; padding: 0px; border-radius: 50%; cursor: pointer; display: grid; }
.avbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.acct .menu { position: absolute; right: 0px; top: calc(100% + 10px); width: 260px; z-index: 30; }
.acct .menu b { font-weight: 600; font-size: 14px; }
.acct .menu .b { justify-self: start; }
.main { max-width: 1240px; margin: 0px auto; padding: 26px 24px 80px; }
@media (max-width: 860px) {
.topbar { padding-inline: 12px; }
.topnav { display: none; }
.main { padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 96px); }
}
body { min-height: 100vh; }
.pd { padding: 30px 34px 34px; gap: 30px; }
.pd-h { gap: 16px; align-items: center; }
.av.xl { width: 56px; height: 56px; font-size: 22px; flex: 0 0 auto; }
.av.xl svg { width: 24px; height: 24px; color: var(--ink); }
.pd-h .nm { font-family: var(--f-disp); font-size: 28px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; overflow-wrap: anywhere; min-width: 0px; }
.pd-h .sub { font-size: 14px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.pd-h .sub a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.pd-h .sub a:hover { text-decoration-color: var(--ink); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { border-color: var(--muted); }
.iconbtn:focus-visible, .lnk:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.callout { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--flag-soft); }
.callout > i { width: 8px; height: 8px; border-radius: 50%; background: var(--flag); flex: 0 0 auto; animation: 2.2s ease-in-out 0s infinite normal none running pulse; }
.callout > div { flex: 1 1 0%; display: grid; line-height: 1.35; min-width: 0px; overflow-wrap: anywhere; }
.callout b { font-size: 15px; font-weight: 600; }
.callout span { font-size: 13.5px; color: var(--muted); }
.pd .sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pd .sh h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.pd .sh .c { font-size: 13.5px; color: var(--muted); font-feature-settings: "tnum"; }
.items, .acts { list-style: none; margin: 0px; padding: 0px; }
.item { display: grid; grid-template-columns: 38px minmax(0px, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0px; }
.item .tile { width: 38px; height: 38px; border-radius: 11px; }
.item .m { display: grid; gap: 2px; line-height: 1.35; min-width: 0px; }
.item .m b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; min-width: 0px; }
.item .m span { font-size: 13.5px; color: var(--muted); }
.item .rt { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.until { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink); font-feature-settings: "tnum"; }
.until i { width: 7px; height: 7px; border-radius: 50%; background: var(--flag); }
.until.off { color: var(--muted); font-weight: 400; }
.until.off i { background: transparent; border: 1.5px solid var(--muted); }
.lnk { font: 13px var(--f-ui); color: var(--muted); background: none; border: 0px; padding: 0px; cursor: pointer; text-decoration: none; }
.lnk:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.more-lnk { margin-top: 12px; }
.item.over .m b { color: var(--muted); font-weight: 500; }
.item.over .tile { opacity: 0.6; }
.acts li { display: grid; grid-template-columns: 70px minmax(0px, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0px; border-bottom: 1px solid var(--line); }
.acts li:last-child { border-bottom: 0px; }
.acts .when { display: grid; font-size: 14px; font-weight: 500; font-feature-settings: "tnum"; line-height: 1.3; }
.acts .m { display: grid; gap: 2px; line-height: 1.4; min-width: 0px; }
.acts .m b { font-size: 14.5px; font-weight: 500; }
.acts .m b em { font-style: normal; color: var(--muted); font-weight: 400; }
.acts .m span { font-size: 13px; color: var(--muted); }
.acts .flag { font-size: 12.5px; font-weight: 500; color: var(--warn); white-space: nowrap; padding-top: 2px; }
.acts .flag.wait { color: var(--flag); }
.acts li.ref .m b { color: var(--warn); }
.pd .none { padding: 6px 0px 0px; }
@media (max-width: 860px) {
.pd { padding: 20px 18px 24px; gap: 24px; }
.pd-h .nm { font-size: 24px; }
.item { grid-template-columns: 38px minmax(0px, 1fr); }
.item .rt { grid-column: 2; place-items: center start; display: flex; gap: 14px; }
.acts li { grid-template-columns: 58px minmax(0px, 1fr); }
.acts .flag { grid-column: 2; padding: 0px; }
.callout { flex-wrap: wrap; }
}
.grp .items { border-left: 2px solid var(--line); padding-left: 14px; margin-left: 7px; }
.chart14 { display: grid; gap: 8px; margin: 6px 0px 14px; }
.chart14 .nums { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.chart14 .nums b { color: var(--ink); font-weight: 600; font-feature-settings: "tnum"; }
.chart14 .nums .rf b, .chart14 .nums .rf { color: var(--warn); }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0px, 1fr)); gap: 5px; height: 56px; align-items: end; }
.bar { height: 100%; display: flex; align-items: flex-end; }
.bar i { width: 100%; min-height: 2px; background: color-mix(in srgb, var(--a1) 55%, var(--soft)); border-radius: 4px 4px 2px 2px; position: relative; overflow: hidden; display: block; }
.bar:last-child i { background: var(--a1); }
.bar i u { position: absolute; left: 0px; right: 0px; top: 0px; background: var(--warn); opacity: 0.8; text-decoration: none; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.chips.small { margin: 4px 0px 10px; }
.chips.small .chip { padding: 6px 11px; font-size: 12.5px; }
.dg { margin-top: 10px; }
.dg-h { display: flex; align-items: baseline; gap: 8px; padding: 6px 0px 0px; font-size: 13.5px; }
.dg-h b { font-weight: 600; }
.dg-h span { color: var(--muted); font-size: 12.5px; font-feature-settings: "tnum"; }
.dg .acts li { grid-template-columns: 96px minmax(0px, 1fr) auto; }
.dg .acts .when { font-weight: 400; font-size: 13px; color: var(--muted); padding-top: 1px; }
@media (max-width: 860px) {
.dg .acts li { grid-template-columns: 80px minmax(0px, 1fr); }
.grp .items { padding-left: 10px; margin-left: 4px; }
}
.detail .pd { background: transparent; box-shadow: none; padding: 4px 0px 0px; gap: 26px; }
.pd .grp { background: var(--land); border-radius: 18px; box-shadow: var(--sh-card); padding: 4px 20px; }
.pd .grp .items { border-left: 0px; padding-left: 0px; margin-left: 0px; }
.grp-more { display: block; width: calc(100% + 40px); margin: 0px -20px -4px; padding: 12px 20px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: none; border-top: 1px solid var(--line); background: transparent; border-radius: 0px 0px 18px 18px; font: 500 13px var(--f-ui); color: var(--muted); text-align: left; cursor: pointer; }
.grp-more:hover { color: var(--ink); background: color-mix(in srgb, var(--soft) 60%, transparent); }
.grp-more:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pd .grp.chartc { padding: 18px 20px 14px; }
.pd .grp.chartc .chart14 { margin: 0px 0px 12px; }
.pd .grp.chartc .chips.small { margin: 0px; }
.pd .dg { background: var(--land); border-radius: 18px; box-shadow: var(--sh-card); padding: 4px 20px; margin-top: 12px; }
.pd .dg-h { padding: 14px 0px 10px; border-bottom: 1px solid var(--line); }
.pd .more-lnk { margin-top: 14px; }
.pd .callout { box-shadow: none; }
.pd .sh { margin-bottom: 10px; padding-inline: 2px; }
@media (max-width: 860px) {
.detail .pd { padding: 0px; }
.pd .grp, .pd .dg { padding: 4px 16px; }
.grp-more { width: calc(100% + 32px); margin: 0px -16px -4px; padding: 12px 16px; }
}
.gtools { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); margin: -2px 2px 10px; }
.gcard { background: var(--land); border-radius: 18px; box-shadow: var(--sh-card); overflow: hidden; transition: box-shadow var(--t-base) ease; }
.gcard + .gcard { margin-top: 10px; }
.gc-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: transparent; border: 0px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.gc-h:hover { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.gc-h:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 18px; }
.gi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: 0 0 auto; }
.gi svg { width: 18px; height: 18px; color: var(--ink); }
.gt { flex: 1 1 0%; min-width: 0px; display: grid; line-height: 1.35; }
.gt b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.gt span { font-size: 13px; color: var(--muted); font-feature-settings: "tnum"; }
.gm { display: grid; justify-items: end; line-height: 1.25; }
.gm span { font-size: 11.5px; color: var(--muted); }
.gm b { font-size: 14px; font-weight: 600; font-feature-settings: "tnum"; }
.chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.chev::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-base) var(--ease); }
.gcard.open .chev::before { transform: rotate(225deg) translate(-2px, -2px); }
.gcard .items { margin: 0px 18px; border-top: 1px solid var(--line); }
.gcard .item.noi { grid-template-columns: minmax(0px, 1fr) auto; padding: 13px 0px 13px 52px; }
.gcard .grp-more { width: 100%; margin: 0px; padding: 12px 18px 12px 70px; }
.grp.flat .item .tile { width: 34px; height: 34px; }
@media (max-width: 860px) {
.gc-h { padding: 12px 14px; gap: 12px; }
.gm span { display: none; }
.gcard .items { margin: 0px 14px; }
.gcard .item.noi { grid-template-columns: minmax(0px, 1fr); padding-left: 0px; }
.gcard .item.noi .rt { grid-column: 1; }
.gcard .grp-more { padding-left: 14px; }
}
.gcard { overflow: visible; }
.gc-h { border-radius: 18px; }
.gcard.open .gc-h { border-radius: 18px 18px 0px 0px; }
.gcard .items, .pd .grp.flat .items { margin: 0px; border-top: 1px solid var(--line); }
.pd .grp.flat { padding: 0px; }
.pd .grp.flat:not(.ended) .items { border-top: 0px; }
.pd .item { grid-template-columns: minmax(0px, 1fr) auto 34px; gap: 16px; padding: 13px 12px 13px 70px; border-bottom: 1px solid var(--line); transition: background var(--t-fast) ease; }
.pd .grp.flat .item { grid-template-columns: 38px minmax(0px, 1fr) auto 34px; padding-left: 18px; }
.pd .item:last-child { border-bottom: 0px; border-radius: 0px 0px 18px 18px; }
.pd .grp.flat:not(.ended) .item:first-child { border-radius: 18px 18px 0px 0px; }
.pd .grp.flat:not(.ended) .item:only-child { border-radius: 18px; }
.pd .item:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.pd .item .m b { font-size: 14.5px; }
.pd .item .m span { font-size: 13px; }
.pd .item .rt { display: grid; justify-items: end; gap: 2px; line-height: 1.35; }
.pd .item .use { font-size: 12.5px; color: var(--muted); font-feature-settings: "tnum"; white-space: nowrap; }
.pd .item .b.sm { padding: 7px 12px; font-size: 13px; }
.pd .item.pz { grid-template-columns: minmax(0px, 1fr) auto auto; }
.pd .grp.flat .item.pz { grid-template-columns: 38px minmax(0px, 1fr) auto auto; }
.iconbtn.sm { width: 32px; height: 32px; border-color: transparent; background: transparent; }
.iconbtn.sm:hover, .iconbtn.sm[aria-expanded="true"] { background: var(--surface); border-color: var(--line); }
.rm .pmenu { top: calc(100% + 4px); }
.gcard .grp-more { width: 100%; margin: 0px; padding: 12px 18px 12px 70px; border-radius: 0px 0px 18px 18px; }
.pd .dg { padding: 0px; }
.pd .dg-h { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.pd .dg .acts li { padding: 12px 18px; }
.pd .dg .acts li:last-child { border-bottom: 0px; }
.pd .gcard .item.noi { grid-template-columns: minmax(0px, 1fr) auto 34px; padding: 13px 12px 13px 70px; }
.pd .gcard .item.noi.pz { grid-template-columns: minmax(0px, 1fr) auto auto; }
.pd .gcard .item.noi .rt { grid-column: auto; }
@media (max-width: 860px) {
.pd .gcard .item.noi, .pd .gcard .item.noi.pz { grid-template-columns: minmax(0px, 1fr) auto; padding: 12px 10px 12px 16px; }
.pd .gcard .item.noi .rt { grid-column: 1; }
.pd .item, .pd .grp.flat .item, .pd .item.pz, .pd .grp.flat .item.pz { grid-template-columns: minmax(0px, 1fr) auto; padding: 12px 10px 12px 16px; gap: 6px 12px; }
.pd .grp.flat .item .tile { display: none; }
.pd .item .rt { grid-area: 2 / 1; place-items: baseline start; display: flex; gap: 10px; flex-wrap: wrap; }
.pd .item > :last-child { grid-area: 1 / 2 / span 2; align-self: center; }
.gcard .grp-more { padding-left: 16px; }
.pd .dg .acts li { padding: 12px 16px; }
}
.gtools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0px 2px 12px; }
.gtools .sp { flex: 1 1 0%; }
.gstats { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--muted); }
.gstats b { color: var(--ink); font-weight: 600; font-feature-settings: "tnum"; }
.callout.warnc { background: var(--warn-soft); }
.callout.warnc > i { background: var(--warn); animation: auto ease 0s 1 normal none running none; }
.gc-h .av { flex: 0 0 auto; }
.gcard a.grp-more { display: block; text-decoration: none; }
@media (max-width: 1100px) {
.arow2 > :last-child { grid-area: 2 / 4; }
}
@media (max-width: 860px) {
.arow2 > :last-child { grid-area: 2 / 3 / span 2; }
}
.v-list .vh { align-items: end; }
.s-sum { font-size: 15px; }
.slist { background: var(--land); border-radius: 20px; box-shadow: var(--sh-card); overflow: hidden; }
.srow { display: grid; grid-template-columns: 36px minmax(0px, 1fr) auto 18px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background var(--t-fast) ease; }
.srow:last-child { border-bottom: 0px; }
.slist .srow, .slist .srow + .srow { border-radius: 0px; border-top: 0px; flex-wrap: nowrap; }
.srow:hover { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.srow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.srow .av svg { width: 17px; height: 17px; color: var(--ink); }
.srow .t { display: grid; gap: 1px; line-height: 1.35; min-width: 0px; }
.srow .t b { font-size: 15px; font-weight: 600; }
.srow .t span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .r { display: grid; justify-items: end; gap: 2px; }
.srow .go::before { content: ""; display: block; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); }
.spage .back { display: inline-flex; justify-self: start; margin-left: -10px; }
.spage .detail { display: block; }
@media (max-width: 860px) {
.v-list .vh { flex-direction: column; align-items: stretch; }
.srow { grid-template-columns: 36px minmax(0px, 1fr) 14px; padding: 12px 14px; }
.srow .r { grid-area: 2 / 2; justify-items: start; display: flex; gap: 10px; }
.srow .go { grid-area: 1 / 3 / span 2; }
}
.stabs { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin: 6px 0px 14px; }
.stabs .sp { flex: 1 1 0%; }
.utabs { display: flex; gap: 22px; }
.utabs button { font: 500 15px var(--f-ui); color: var(--muted); background: none; border-width: 0px 0px 2px; border-style: none none solid; border-color: currentcolor currentcolor transparent; border-image: none; padding: 12px 0px 11px; margin-bottom: -1px; cursor: pointer; }
.utabs button:hover { color: var(--ink); }
.utabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.utabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.search.small { max-width: 240px; min-height: 36px; flex: 0 1 240px; padding: 0px 10px; margin-bottom: 6px; }
.search.small input { padding: 7px 0px; font-size: 14px; }
.sortwrap { position: relative; margin-bottom: 6px; }
.sortwrap .sr { position: absolute; left: -9999px; }
.s-sort { font: 500 14px var(--f-ui); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 30px 8px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.s-sort:hover { border-color: var(--muted); }
.s-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sfilter { margin: -4px 0px 12px; }
.sfilter[hidden] { display: none; }
@media (max-width: 860px) {
.stabs { flex-wrap: wrap; border-bottom: 0px; }
.utabs { width: 100%; border-bottom: 1px solid var(--line); }
.stabs .sp { display: none; }
.search.small { max-width: none; flex: 1 1 auto; margin-bottom: 0px; }
.sortwrap { margin-bottom: 0px; }
}
.s-sum[hidden] { display: none; }
.utabs button { display: inline-flex; align-items: center; gap: 7px; }
.tb { font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--soft); color: var(--muted); font-feature-settings: "tnum"; }
.tb.red { background: var(--flag-soft); color: var(--flag); }
.tb.amb { background: var(--warn-soft); color: var(--warn); }
.utabs button[aria-selected="true"] .tb:not(.red):not(.amb) { background: var(--ink); color: var(--land); }
.v-list .vh { margin-bottom: 8px; }
@media (max-width: 860px) {
.utabs { gap: 16px; overflow-x: auto; }
.utabs button { white-space: nowrap; }
}
.utabs button { white-space: nowrap; }
.stabs .search.small { flex: 0 1 220px; min-width: 150px; }
:root { --sea-top: #EFF4F6; --sea-bot: #E3ECF0; --sea-hi: #FFFFFF; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --sea-top: #16242C; --sea-bot: #101B21; --sea-hi: #5E8092; --sea-k: .3; }
}
.shell, .topbar { position: relative; z-index: 1; }
.topbar { position: sticky; z-index: 20; }
.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout { box-shadow: 0 0 0 1px color-mix(in srgb, var(--beach) 55%, transparent), 0 0 22px 4px color-mix(in srgb, var(--sea-hi) 55%, transparent), 0 10px 24px -18px rgba(30,42,49,.18); }
.ccard.add { box-shadow: none; }
/* On the dark sea a light halo glows, so land gets a hairline edge and a dark lift instead. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout) { box-shadow: 0 0 0 1px rgba(255,255,255,.055), 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 32px -20px rgba(0,0,0,.75); }
:root:not([data-theme="light"]) .ccard.add { box-shadow: none; }
}
.vh { position: relative; }
@keyframes bob2 { 
  50% { transform: translateY(-2.5px); }
}
.zz { font: 600 11px var(--f-ui); fill: var(--muted); animation: 3.2s ease-in-out 0s infinite normal none running zz; }
.zz.z2 { font-size: 9px; animation-delay: -1.6s; }
@keyframes zz { 
  0% { opacity: 0; transform: translate(0px, 4px); }
  40% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(4px, -8px); }
}
.av.isle-av { box-shadow: 0 0 0 2px var(--land), 0 0 0 3px color-mix(in srgb, var(--beach) 80%, transparent); }
.agent .eyes { transform-box: fill-box; transform-origin: center center; animation: blink 6s var(--bd, 0s) infinite; }
.agent .look { transition: transform var(--t-base) var(--ease); }
.agent .happy { opacity: 0; }
@keyframes blink { 
  0%, 95%, 100% { transform: scaleY(1); }
  97.5% { transform: scaleY(0.12); }
}
@keyframes hop { 
  0% { transform: translateY(0px); }
  35% { transform: translateY(-5px); }
  60% { transform: translateY(0px); }
  78% { transform: translateY(-2px); }
  100% { transform: translateY(0px); }
}
.dc:not(.done) .dc-top > .agent { animation: 3.2s ease-in-out 0s infinite normal none running bob2; }
.dc { position: relative; }
@keyframes sail { 
  0% { transform: none; }
  35% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateX(70px) rotate(1.5deg); opacity: 0; }
}
@keyframes sink { 
  100% { transform: translateY(12px) scale(0.98); opacity: 0; }
}
@keyframes raise { 
  100% { transform: translateY(0px); }
}
@media (prefers-reduced-motion: reduce) {
.agent .eyes, .dc:not(.done) .dc-top > .agent, .scene .wait-a .bobber, .zz { animation: auto ease 0s 1 normal none running none !important; }
}
.vh:has(.wm) { position: relative; }
.v-list .vh { min-height: 0px; align-items: flex-end; padding: 18px 0px 4px; }
.vh > div:not(.wm) { position: relative; z-index: 1; }
.wm { position: absolute; z-index: 0; pointer-events: none; }
.wm svg { display: block; overflow: visible; }
.vh:has(.wm) { align-items: flex-start; padding-top: 30px; min-height: 0px; }
.vh:has(.wm) h1 { margin-bottom: 14px; }
.v-list .vh:has(.wm) h1 { margin-bottom: 10px; }
.v-list .vh:has(.wm.stamp) h1 { margin-bottom: 26px; }
.v-list .vh { min-height: 0px; }
@media (max-width: 860px) {
.v-list .vh:has(.wm), .vh:has(.wm) { align-items: flex-start; text-align: left; flex-direction: column; }
.vh:has(.wm) { padding-top: 24px; }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .wm { opacity: 1; }
}
.bdgs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; align-items: center; }
.bdg { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font: 500 12px/1 var(--f-ui); color: var(--ink); background: var(--soft); white-space: nowrap; font-feature-settings: "tnum" 1; }
.bdg svg { width: 12px; height: 12px; flex: 0 0 auto; opacity: 0.75; }
.bdg.q { background: transparent; color: var(--muted); padding: 0px 4px; box-shadow: none; }
.bdg.red { background: var(--flag-soft); color: var(--flag); }
.bdg.red.strong { background: var(--flag); color: rgb(255, 255, 255); }
.bdg.red.strong svg { opacity: 1; }
.bdg.amb { background: var(--warn-soft); color: var(--warn); }
.bdg.blue { background: color-mix(in srgb, var(--a1) 18%, var(--surface)); color: rgb(53, 80, 94); }
.bdg.wait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentcolor; animation: 2.2s ease-in-out 0s infinite normal none running pulse; }
.srow .r, .item .rt, .arow2 .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.srow .t > .bdgs { margin-top: 5px; }
.gt .bdgs { margin-top: 5px; }
.ccard .foot .bdgs { margin: 0px; }
.item .m > .bdgs, .arow2 .m > .bdgs { margin-top: 5px; }
@media (max-width: 860px) {
.srow .r, .item .rt, .arow2 .rt { flex-flow: wrap; align-items: center; }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .bdg.blue { color: rgb(191, 211, 222); }
}
.shell::before { content: ""; position: fixed; inset: 0px; z-index: 0; pointer-events: none; opacity: 0.75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='28'%3E%3Cpath d='M0 14 q22.5 -7 45 0 t45 0 t45 0 t45 0' fill='none' stroke='%23B9CCD5' stroke-opacity='.4' stroke-width='.9'/%3E%3C/svg%3E") 0px 0px / 180px 28px; }
.shell > * { position: relative; z-index: 1; }
.shell > .topbar { position: sticky; z-index: 20; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .shell::before { opacity: 0.25; }
}

/* Moments: approval stamps and leaving cards (not reached by the prototype crawl). */
.toast { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--land); border-radius: 999px; padding: 11px 18px 11px 14px; font-size: 14px; box-shadow: var(--sh-float); }
.toast svg { width: 17px; height: 17px; }
.toasts .toast { animation: pop var(--t-base) var(--ease); max-width: calc(100vw - 40px); }
.dc.sail { animation: sail .85s cubic-bezier(.5,.1,.3,1) .5s forwards; }
.dc.sink { animation: sink .6s ease-in .45s forwards; }
.dc.sail .dc-acts, .dc.sink .dc-acts { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .dc.sail, .dc.sink { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* Pieces the prototype did not draw: dialogs, forms, notices, the sign-in
   screen and small layout helpers. Built from the same tokens as design.css. */

#root { min-height: 100vh; }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 14.5px; }
.center { text-align: center; }
.sp { flex: 1 1 0%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; text-underline-offset: 3px; }
.danger, .b.danger { color: var(--flag); }
.b.danger { border-color: color-mix(in srgb, var(--flag) 40%, var(--line)); }
.b.danger:hover { background: var(--flag-soft); border-color: var(--flag); }
.mi.danger { color: var(--flag); }
.b:disabled { opacity: .55; cursor: default; transform: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 10px; }

/* Header: the nav keeps its icons for the phone tab bar only. */
.appnav { gap: 6px; }

/* Notices */
.notice { border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; background: var(--soft); }
.notice.warn { background: var(--warn-soft); color: var(--ink); }
.notice.error { background: var(--flag-soft); color: var(--ink); }
.notice.info { background: color-mix(in srgb, var(--a1) 16%, var(--surface)); }
.notice a { color: inherit; }
.form-error { color: var(--flag); font-size: 13.5px; min-height: 0; margin: 0; }
.form-error:empty { display: none; }

/* Dialogs on the native element */
dialog.sheet { border: 0; padding: 0; border-radius: 24px; background: var(--land); color: var(--ink); box-shadow: var(--sh-float); width: min(calc(100vw - 32px), 520px); max-height: calc(100vh - 48px); }
dialog.sheet.wide { width: min(calc(100vw - 32px), 640px); }
dialog.sheet[open] { animation: pop var(--t-base) var(--ease); display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog.sheet::backdrop { background: color-mix(in srgb, var(--ground-deep) 64%, transparent); backdrop-filter: blur(3px); }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 20px 20px 8px 24px; }
.sheet-h h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.sheet-h .iconbtn span { font-size: 20px; line-height: 1; }
.sheet-b { padding: 8px 24px 24px; overflow: auto; display: grid; gap: 14px; }
.sheet-b > p { color: var(--muted); font-size: 14.5px; }
.acts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form.account { padding: 24px; }
.form.account + .form.account { margin-top: 18px; }
.fld { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); border: 0; margin: 0; padding: 0; min-width: 0; }
.fld > span { font-weight: 500; }
.fld legend { font-weight: 500; padding: 0; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .facts textarea { font: 14.5px var(--f-ui); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.fld input[readonly] { background: var(--soft); color: var(--muted); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible, .facts textarea:focus-visible, .facts select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.inline-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.share-block { display: grid; gap: 14px; }
.pick { display: grid; gap: 8px; }
.pick .b { justify-content: space-between; }
@media (max-width: 560px) { .fld-row { grid-template-columns: minmax(0, 1fr); } }

/* A real checkbox, drawn as the design's switch */
.switch { position: relative; }
.switch input { position: absolute; right: 0; width: 40px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.switch .sw-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--ink); flex: 0 0 auto; transition: background var(--t-base) ease; pointer-events: none; }
.switch .sw-ui::after { content: ""; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--land); box-shadow: rgba(0, 0, 0, .2) 0 1px 2px; transition: left var(--t-base) var(--ease); }
.switch input:not(:checked) + .sw-ui { background: color-mix(in srgb, var(--muted) 38%, var(--surface)); }
.switch input:not(:checked) + .sw-ui::after { left: 3px; background: var(--surface); }
.switch input:disabled + .sw-ui { opacity: .5; }
.switch input:focus-visible + .sw-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Request and result cards */
.dc-form { display: grid; gap: 12px; }
.dc-note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.dc-note svg { width: 16px; height: 16px; flex: none; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.choice legend { float: left; font-size: 13.5px; color: var(--muted); margin-right: 6px; padding: 0; }
.choice label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--ink); margin: 0; }
.choice-select { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.choice-select select { font: 14px var(--f-ui); color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.facts textarea { padding: 7px 10px; font-size: 14px; }
.facts dd .note { margin-left: 4px; }
.seg.small button { padding: 7px 12px; font-size: 13px; }
.rec.none { color: var(--muted); font-size: 13.5px; margin: 0; }
.kv { display: grid; gap: 4px; margin: 0; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.nil { color: var(--muted); }
.kv dd.long { white-space: pre-wrap; max-height: 14em; overflow: auto; font: 12.5px/1.5 var(--f-label); }
@media (max-width: 560px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Exact results and actions drawn as their resource (Records.tsx): an email
   as an email, an event as an event. Each record is a card with a gentle
   gradient, a thin rim and a soft lift; in dark mode only the rim. */
.review-content { display: grid; gap: 10px; }
.rc-count { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rcard { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--soft))); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(30, 42, 49, .04), 0 10px 22px -18px rgba(30, 42, 49, .22); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rcard { background: var(--surface); box-shadow: none; } }
:root[data-theme="dark"] .rcard { background: var(--surface); box-shadow: none; }
.rc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rc-who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.rc-who b { font-weight: 600; overflow-wrap: anywhere; }
.rc-who small, .rc-when { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.rc-when { align-self: start; white-space: nowrap; flex: none; margin-top: 2px; }
.rc-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: none; }
.rc-icon svg { width: 18px; height: 18px; }
.rc-title { font: 600 16px/1.35 var(--f-ui); margin: 0; overflow-wrap: anywhere; }
.rc-none { color: var(--muted); font-weight: 400; }
.rc-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.rc-text.clamp { display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.rc-more { justify-self: start; font-size: 13px; }
.rc-note { color: var(--muted); font-size: 12.5px; }
.rc-alt { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
/* One grid for the whole list, so labels of any length line up. */
.rc-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.rc-rows > div { display: contents; }
.rc-rows dt { color: var(--muted); }
.rc-rows dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.rc-others { padding-top: 8px; border-top: 1px solid var(--line); }
.rc-tile { width: 42px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; align-content: center; flex: none; }
.rc-tile small { font-size: 9.5px; font-weight: 700; color: var(--flag); letter-spacing: .04em; }
.rc-tile b { font-size: 17px; line-height: 1; }
.rc-status { align-self: start; font-size: 12px; font-weight: 500; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 3px 9px; flex: none; }
.rc-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rc-files li { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rc-files svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.rc-files span { display: grid; min-width: 0; }
.rc-files b { font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
.rc-files small { color: var(--muted); font-size: 12px; }
.rc-spans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-spans li { display: flex; gap: 12px; align-items: center; }
.rc-all { font-size: 13px; }
.rc-all summary, .support summary { color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; list-style: none; border-radius: 6px; }
.rc-all summary::-webkit-details-marker, .support summary::-webkit-details-marker { display: none; }
.rc-all summary::before, .support summary::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t-fast) ease; }
.rc-all[open] summary::before, .support[open] summary::before { transform: rotate(45deg); }
.rc-all summary:hover, .support summary:hover { color: var(--ink); }
.rc-all summary:focus-visible, .support summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Ids only support needs, folded away at the end of a page. */
.support { margin-top: 24px; font-size: 13px; }
.support .facts { margin-top: 10px; }
.rc-all .kv { margin-top: 8px; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.rc-settings { padding: 0 4px; }
@media (max-width: 560px) {
  .rcard { padding: 12px 14px; }
  .rc-mail .rc-head { flex-wrap: wrap; }
  .rc-mail .rc-when { flex-basis: 100%; margin-top: -10px; padding-left: 48px; }
  /* Long labels of other fields stack over their values. */
  .rc-others { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .rc-others > div + div > dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .rc-all summary::before, .support summary::before { transition: none; } }

/* A field's own error, under it (the saved-link form). */
.fld-error { color: var(--flag); font-size: 13px; margin: -4px 0 0; }
.fld input[aria-invalid="true"] { border-color: var(--flag); }


/* Lists and details */
.back-lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; margin: 0 0 14px -4px; padding: 6px 4px; }
.back-lnk:hover { color: var(--ink); }
.back-lnk svg { width: 16px; height: 16px; }
.tile-av { border-radius: 12px; background: var(--soft); }
.tile-av svg { width: 17px; height: 17px; color: var(--ink); }
.av.xl.tile-av { border-radius: 16px; }
.row-acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ended-list { margin-top: 10px; opacity: .85; }
.flat-list .items { border-top: 0 !important; }
.slist.agents { margin-bottom: 14px; }
.srow .r .b { white-space: nowrap; }
.sec-t { margin-top: 6px; }
.ct { font-size: 15px; font-weight: 600; }
.cnote { font-size: 14px; }
.ccard.mcp { margin-bottom: 12px; }
details.info { font-size: 13.5px; color: var(--muted); margin: 0 4px 24px; }
details.info summary { cursor: pointer; }
details.info p { margin: 8px 0; }
.access-detail { font-size: 12.5px; color: var(--muted); }
.access-detail summary { cursor: pointer; }
.access-detail code { display: block; }
.arow { grid-template-columns: 14px minmax(0, 1fr) auto 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.ref { background: var(--warn); }
section + section { margin-top: 4px; }
.pd section { display: grid; gap: 0; }

/* Sign-in and the share link page */

.gcard > .items:first-child { border-top: 0; }
@media (min-width: 861px) {
  .pd .gcard .item.noi, .pd .item { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.plain-card .items { border-top: 0; }

/* The header is glass: the page shows through it as it scrolls by. */
.topbar .nav { background: color-mix(in srgb, var(--land) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
/* In dark mode the land colour sits too close to the sea, so the header
   capsule takes the lighter card surface and a hairline edge, as dark cards do.
   The selected place, which uses that surface elsewhere, takes a lighter tint. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar .nav { background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: 0 0 0 1px var(--line), var(--sh-card); }
  :root:not([data-theme="light"]) .topbar .nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 12%, var(--surface)); }
}
:root[data-theme="dark"] .topbar .nav { background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: 0 0 0 1px var(--line), var(--sh-card); }
:root[data-theme="dark"] .topbar .nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 12%, var(--surface)); }
/* The page's gradient reaches the deep sea colour by the end of the page, or
   by 1800px on a long page, so the area a phone shows when bouncing past the
   bottom, painted in that flat colour, continues it without a seam. */
html { background: linear-gradient(180deg, var(--ground), var(--ground-deep) min(1800px, 100%)) no-repeat var(--ground-deep); }
/* The sea is still: the gradient and this faint wave pattern, as on the
   landing page and in the iOS app. It sits behind content, never competes. */
.shell::before { opacity: .3; }
/* On the dark sea the light wave strokes read much brighter, so they are
   drawn far fainter there: present, never busy. The landing page matches. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shell::before { opacity: .05; }
}
:root[data-theme="dark"] .shell::before { opacity: .05; }
/* Page art may bleed past the content edge, but never widens the page:
   iOS lets a reader pan sideways to anything beyond the screen. */
.main { overflow-x: clip; }
/* The main region takes focus after navigation so screen readers start
   there; it is not a control, so it draws no focus ring. */
.main:focus { outline: none; }
/* Empty states sit on the sea, not on a card. */
.empty { padding-block: 28px 12px; }
/* Permission rows outside a person page: name, badges, then actions. */
.flat-list .item.noi { grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; padding: 13px 12px 13px 18px; border-bottom: 1px solid var(--line); }
.flat-list .item.noi:last-child { border-bottom: 0; }
.flat-list .item .rt { align-items: flex-end; }
@media (max-width: 860px) {
  .flat-list .item.noi { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 10px 12px 14px; gap: 6px 12px; }
  .flat-list .item .rt { grid-area: 2 / 1; flex-direction: row; align-items: center; }
  .flat-list .item > :last-child { grid-area: 1 / 2 / span 2; align-self: center; }
}
/* The waiting queue at the top of Your embassies. */
/* Activity rows open the permission behind them. */
button.srow { width: 100%; background: transparent; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.srow .t .h { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }

/* The wordmark, drawn as on the landing page. */
/* The wordmark starts at the capsule's padding, in line with the first
   place's label below it on a phone; it is not a padded nav link. */
.appnav .brand-link { text-decoration: none; color: var(--ink); margin-right: 14px; display: inline-flex; padding-left: 0; }
.brand-link .wmark { font-size: 21px; --eyec: var(--land); }
.wb svg.eyes .eye { fill: var(--eyec); }
.wmark.big { font-size: 46px; margin-bottom: 2px; }

/* Screens outside the app, on the sea (D194). */
.sea-page { min-height: 100vh; }
.signin { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; }
.request-diagnostics { text-align:left;width:100%;min-width:0;margin:0 0 20px; }
.request-diagnostics h2 { font-size:16px;margin:0 0 12px; }
.request-diagnostics dl { margin:0;font-size:13px; }
.request-diagnostics dl > div { border-top:1px solid var(--line);padding:8px 0; }
.request-diagnostics dt { color:var(--muted);margin-bottom:3px; }
.request-diagnostics dd { margin:0;white-space:pre-wrap;overflow-wrap:anywhere; }
.clickable { cursor: pointer; }
.slist .srow.clickable:hover, .acts li.clickable:hover { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.arow { grid-template-columns: 14px minmax(0, 1fr) auto 18px; }
.srow .r .b.sm { padding: 6px 10px; font-size: 13px; }
.dg .acts li { grid-template-columns: 96px minmax(0, 1fr) auto; }
.flag-col { display: grid; justify-items: end; gap: 2px; }

.empty img { width: 180px; max-width: 100%; height: auto; opacity: .55; }

/* Titles start at the same height on every page. */
.main .vh, .main .v-list .vh, .main .vh:has(.wm), .main .v-list .vh:has(.wm) { padding: 30px 0 0; margin: 0 0 18px; min-height: 0; align-items: flex-start; flex-direction: row; }
.main .vh h1, .main .v-list .vh:has(.wm) h1, .main .vh:has(.wm) h1 { margin: 0; }
.main .vh p { margin-top: 8px; }
.form.account { max-width: 560px; }
@media (max-width: 860px) { .main .vh, .main .v-list .vh, .main .vh:has(.wm) { padding-top: 22px; } }

/* Header menus: one surface, a header, then plain rows with icons. */
.acct .menu { padding: 8px; gap: 0; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 16px; background: var(--land); }
.acct-menu { width: 280px; }
.acct-h { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-h .av { width: 40px; height: 40px; font-size: 16px; }
.acct-h div { display: grid; line-height: 1.3; min-width: 0; }
.acct-h b { font-size: 15px; font-weight: 600; }
.acct-h span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-items { display: grid; gap: 2px; }
.menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font: 14px var(--f-ui); color: var(--ink); text-decoration: none; background: transparent; border: 0; cursor: pointer; text-align: left; }
.menu .mi svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.menu .mi:hover, .menu .mi:focus-visible { background: var(--soft); outline: none; }
.menu-foot { font-size: 12px; color: var(--muted); padding: 10px 10px 4px; margin-top: 6px; border-top: 1px solid var(--line); line-height: 1.4; }
.menu-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-h b { font-size: 15px; font-weight: 600; }
/* The account menu points at the avatar that opened it: the arrow's centre
   sits under the 36px avatar's centre. The arrow crosses the header capsule, which is nearly the
   same colour, so popovers and arrows take a full-strength outline. */
.acct .menu { border-color: var(--line); }
.acct .menu::before { content: ""; position: absolute; top: -7px; right: 11px; width: 12px; height: 12px; background: var(--land);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  border-top-left-radius: 3px; transform: rotate(45deg); }
.empty picture { display: contents; }

/* The J2 wordmark: outlines, sized by font-size like text. */
.wmark .wm-svg { display: block; height: 1.02em; width: auto; overflow: visible; }
.wmark { display: inline-flex; align-items: center; line-height: 1; }
.wmark .wb::after { content: none; }

/* Places: in the header on wide screens; on a phone, in the bottom bar
   (13-places-bar.css), and the header holds the server and your avatar. */
.topnav .short { display: none; }
@media (max-width: 860px) {
  .appnav .topnav { display: none; }
  /* Header popovers open right under their button, which their arrow points at. */
  .appnav .acct .menu { top: calc(100% + 10px); }
}


/* Decision moments, symmetric for approve and decline. The agent reacts first,
   then the card lifts away (approved) or slips down (declined). The global
   reduced-motion rule turns all of this off. */
.agent .eyes, .agent .happy { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.agent.is-happy .eyes { opacity: 0; animation: none; }
.agent.is-happy .happy { opacity: 1; }
.agent.is-happy { animation: hop .6s var(--ease) .05s 1 both; }
.agent.is-down .eyes { animation: none; transform: translateY(5px) scaleY(.78); }
.agent.is-down { animation: nod .7s ease-in-out .05s 1 both; transform-origin: 50% 80%; }
@keyframes nod { 30% { transform: translateY(2px) rotate(-5deg); } 60% { transform: translateY(1px) rotate(3deg); } 100% { transform: none; } }
.dc.sail { animation: lift .7s cubic-bezier(.3,.1,.3,1) .55s forwards; }
.dc.sink { animation: slip .6s ease-in .55s forwards; }
@keyframes lift { 30% { transform: translateY(-4px); opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes slip { 100% { transform: translateY(12px) scale(.985); opacity: 0; } }

/* The confirmation's agent. */
.toast .tmark { position: relative; display: inline-grid; flex: none; }
.toast .tmark svg.agent { width: 24px; height: 24px; }

/* Empty states: the lone agents blink and glance around (inside the art). */

/* Rows that open a page: the title's link stretches over the whole row, so
   the row is one target, and the row shows the link's focus. A button kept
   on the row (Reconnect) sits above the stretched link. */
.linked { position: relative; }
.linked:hover { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.linked:has(.stretch:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.linked .row-acts { display: flex; align-items: center; gap: 10px; }
.linked .row-acts .b { position: relative; z-index: 1; }
.linked .go::before { content: ""; display: block; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); }
.acts li.linked { cursor: pointer; }

/* A permission's page and one use from Activity, as in the native app. */
.perm-purpose { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.perm-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.perm-end p { flex: 1 0 100%; margin: 0; font-size: 13px; color: var(--muted); }
.entry-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.entry-mark.ok { background: var(--ok-soft); color: var(--ok); }
.entry-mark.ref { background: var(--warn-soft); color: var(--warn); }
.entry-mark svg { width: 24px; height: 24px; }
.entry-note { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.facts dd a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.facts dd code { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.facts dd.trace code { flex: 1 1 200px; min-width: 0; }
@media (max-width: 600px) { .facts > div { grid-template-columns: 1fr; gap: 2px; align-items: start; } }

/* A request on its own page, as the native request sheet: grouped sections
   with their heading above, rows inside rounded groups. */
.req { display: grid; gap: 22px; padding-bottom: 8px; }
.req-head { background: var(--land); border-radius: 20px; box-shadow: var(--sh-card); padding: 18px; display: grid; gap: 14px; }
.req-who { display: flex; align-items: center; gap: 14px; }
.req-who svg.agent { width: 48px; height: 48px; flex: none; }
.req-who h1 { font: 600 20px/1.2 var(--f-ui); margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
.req-who > div { min-width: 0; }
.req-who p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.req-purpose { background: var(--soft); border-radius: 14px; padding: 10px 14px; font-size: 15px; display: grid; gap: 2px; }
.req-purpose small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.req-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.req-pills .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.req-pills .pill svg { width: 13px; height: 13px; }
.req-pills .pill.urgent { background: var(--flag-soft); color: var(--flag); }
.req form { display: grid; gap: 22px; }
.req-sec { display: grid; gap: 8px; min-width: 0; }
.req-sec > h2 { font: 600 15px var(--f-ui); margin: 0 4px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.req-sec > h2 .tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 8px; }
.req-group { background: var(--land); border-radius: 16px; box-shadow: var(--sh-card); padding: 2px 16px; min-width: 0; border: 0; margin: 0; }
.req-group > * + * { border-top: 1px solid var(--line); }
.req-foot { margin: 0 4px; font-size: 12.5px; color: var(--muted); }
.req-acct { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.req-acct .tile-sm { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: none; }
.req-acct .tile-sm svg { width: 18px; height: 18px; }
.req-acct .t { display: grid; min-width: 0; }
.req-acct .t b { font-size: 14.5px; font-weight: 600; }
.req-acct .from { font-size: 13px; color: var(--muted); }
.req-acct select { font: inherit; color: var(--ink); background: transparent; border: 0; padding: 0; max-width: 100%; }
.req-acct span.from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A tick per account (D83): on a request, on a permission's page and in the
   prompt after connecting another account. Long addresses end in an ellipsis. */
.acct-list { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; }
.acct-list > legend:not(.sr-only) { padding: 10px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; cursor: pointer; min-width: 0; }
.acct-opt + .acct-opt { border-top: 1px solid var(--line); }
.acct-opt input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); margin: 0; display: grid; place-items: center; cursor: pointer; opacity: .6; }
.acct-opt input:checked { background: var(--ink); border-color: var(--ink); opacity: 1; }
.acct-opt input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--land); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.acct-opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.acct-opt input:disabled { cursor: default; }
.acct-opt.locked { cursor: default; }
.acct-opt.locked input:checked { opacity: .55; }
.acct-opt .acct-t { display: grid; min-width: 0; gap: 1px; }
.acct-opt .acct-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-opt .acct-t small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-opt.off .acct-t b { color: var(--muted); }
.acct-note { margin: 0; padding: 0 0 10px; font-size: 12.5px; color: var(--muted); }
/* On a request the accounts sit under "Email from 2 accounts", in line with its words, so they read as its choice and not as parts. */
.req-group > .req-accts { min-width: 0; border-top: 0; margin-top: -8px; padding: 0 0 6px 46px; }
.req-accts .acct-opt { padding: 7px 0; font-size: 13.5px; }
.req-accts .acct-opt + .acct-opt { border-top: 0; }
.req-accts .acct-note { padding: 2px 0 6px; }
.pd .acct-card { padding: 2px 20px; }
.acct-read { list-style: none; margin: 0; padding: 0; }
.acct-read li { padding: 11px 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-read li + li { border-top: 1px solid var(--line); }
.acct-save { display: grid; gap: 8px; margin-top: 10px; }
.new-acct-list { display: grid; gap: 4px; max-height: min(50vh, 420px); overflow: auto; min-width: 0; }
.new-acct-list .acct-list + .acct-list { border-top: 1px solid var(--line); }
.new-acct .search input { width: 100%; }
@media (max-width: 600px) { .pd .acct-card { padding: 2px 16px; } }

/* One of your assistants (Assistant.tsx): each of your accounts with an
   Allowed / Ask me / Blocked choice and what that choice does. A long address
   ends in an ellipsis; in a narrow card the choice moves under the account and
   fills the row, like an iOS segmented control. */
.aa-page .pd-h > svg.agent.aa-face { width: 56px; height: 56px; }
.pd .aa-card { padding: 2px 20px; container: aa / inline-size; }
.aa-list { list-style: none; margin: 0; padding: 0; }
.aa-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic t seg" ". why why"; column-gap: 14px; row-gap: 6px; align-items: center; padding: 14px 0; }
.aa-row + .aa-row { border-top: 1px solid var(--line); }
.aa-row > .aa-ic { grid-area: ic; width: 36px; height: 36px; }
.aa-t { grid-area: t; display: grid; gap: 1px; min-width: 0; line-height: 1.35; }
.aa-t b { font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-t small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-row > .aa-seg, .aa-row > .aa-other { grid-area: seg; }
.aa-other { font-size: 13.5px; color: var(--muted); }
.aa-why { grid-area: why; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.aa-row[aria-busy] .aa-seg { opacity: .7; }
.aa-none { margin: 0; padding: 14px 0; font-size: 14px; color: var(--muted); }
.aa-foot { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.aa-leave { gap: 0; }
@container aa (max-width: 560px) {
  .aa-row { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "ic t" ". seg" ". why"; column-gap: 12px; row-gap: 8px; }
  .aa-row > .seg.aa-seg { display: flex; justify-self: stretch; }
  .aa-row > .seg.aa-seg button { flex: 1; min-height: 36px; }
}
@media (max-width: 600px) { .pd .aa-card { padding: 2px 16px; } }
.req-warn { margin: 0; padding: 10px 0; font-size: 13.5px; color: var(--warn); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.req-warn p { margin: 0; flex: 1 1 220px; }
.req .part { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; font-size: 14px; }
.req label.part { cursor: pointer; }
.req .part .pl { color: var(--muted); font-size: 13.5px; }
.req .part .pv { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.req .part .pv .strong { font-weight: 600; }
.req .part .pv .long { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req .part .pf { justify-self: start; font-size: 12px; font-weight: 500; background: var(--soft); border-radius: 999px; padding: 2px 9px; }
.req .part .pn { font-size: 12px; color: var(--muted); white-space: nowrap; }
.req .part.faint { opacity: .4; }
.req .part.off { opacity: .55; }
.req .part.off .pv > span:first-child { text-decoration: line-through; }
.req .part .pc { display: flex; gap: 6px; align-self: center; }
.req .part input[type="checkbox"] { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); margin: 0; display: grid; place-items: center; cursor: pointer; opacity: .6; }
.req .part input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); opacity: 1; }
.req .part input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--land); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.req .part input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.req-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 0; }
.req-chips .chip { font-size: 12.5px; background: var(--soft); border-radius: 9px; padding: 4px 10px; }
.req-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.req-opt.col { align-items: flex-start; }
.req-opt input[type="date"], .req-opt select, .req-opt textarea { font: 14px var(--f-ui); color: var(--ink); background: var(--soft); border: 0; border-radius: 9px; padding: 6px 10px; }
.req-opt textarea { width: min(60%, 280px); resize: vertical; text-align: right; }
.req-opt .sw-ui { margin-left: auto; }
.req-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 600px) {
  .req-results { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .req-results > * { flex: 0 0 78%; scroll-snap-align: start; }
}
.xcard { background: var(--land); border-radius: 16px; box-shadow: var(--sh-card); padding: 14px; display: grid; gap: 6px; font-size: 13.5px; min-width: 0; }
.xcard.muted { color: var(--muted); }
.xcard .xm { display: flex; gap: 10px; align-items: center; }
.xcard .xm > span:last-child { display: grid; min-width: 0; }
.xcard .xm b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xcard .ini { width: 28px; height: 28px; border-radius: 50%; background: var(--a5); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.xcard small, .xcard .xs { color: var(--muted); font-size: 12px; }
.xcard .xt { font-size: 14px; font-weight: 600; }
.xcard .xb { margin: 0; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.xcard .xa { display: inline-flex; gap: 5px; align-items: center; justify-self: start; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.xcard .xa svg { width: 13px; height: 13px; }
.xcard .xe { display: flex; gap: 12px; align-items: center; }
.xcard .xe > span:last-child { display: grid; gap: 1px; }
.xcard .tile-date { width: 42px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; align-content: center; flex: none; }
.xcard .tile-date small { font-size: 9.5px; font-weight: 700; color: var(--flag); letter-spacing: .04em; }
.xcard .tile-date b { font-size: 17px; line-height: 1; }
.xcard .warn { color: var(--warn); font-weight: 600; }
.xcard .xr { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.xcard .xr div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.xcard .xr dt { color: var(--muted); font-size: 12px; }
.xcard .xr dd { margin: 0; overflow-wrap: anywhere; }
.req .choices { padding: 0 16px; }
.choice-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.choice-row input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); margin: 1px 0 0; flex: none; cursor: pointer; }
.choice-row input:checked { border: 6px solid var(--ink); }
.choice-row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-row span { display: grid; gap: 2px; }
.choice-row b { font-weight: 600; font-size: 14.5px; }
.choice-row small { color: var(--muted); font-size: 13px; }
.req-note { font: 14.5px var(--f-ui); color: var(--ink); background: var(--land); border: 0; border-radius: 16px; box-shadow: var(--sh-card); padding: 12px 16px; width: 100%; resize: vertical; }
.req-details { font-size: 13px; color: var(--muted); margin: 0 4px; }
.req-details code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.req-dock { display: contents; }
.req-bar { display: grid; gap: 8px; }
.req-bar .hint { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 0; font-size: 13px; color: var(--muted); }
.req-bar .hint svg { width: 14px; height: 14px; }
.req-bar .acts { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) {
  /* The decision floats in an opaque raised capsule on a shelf: the dock is
     fixed to the bottom of the screen and paints the page's own background,
     fading in over 70px above the capsule, so scrolled content never reads
     behind or beside it, nor under Safari's toolbar. Fixed rather than
     sticky: Safari keeps a fixed layer with the viewport on its scrolling
     thread, while a bottom-sticky bar shook as the toolbar resized the page.
     The form reserves the capsule's measured height and its gap, and toasts
     rise above it. */
  .req-dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; padding: 70px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(12px, env(safe-area-inset-left, 0px)); background: linear-gradient(to top, var(--ground-deep) calc(100% - 70px), color-mix(in srgb, var(--ground-deep) 0%, transparent)); }
  .req-bar { pointer-events: auto; padding: 10px; border-radius: 28px; background: var(--raised); box-shadow: 0 0 0 1px var(--raised-edge), var(--raised-lift); }
  .req-bar .hint { padding-top: 2px; }
  .req form { padding-bottom: calc(var(--req-bar-h, 0px) + env(safe-area-inset-bottom, 0px) + 24px); }
  .toasts { bottom: max(calc(env(safe-area-inset-bottom, 0px) + 22px), calc(var(--req-bar-h, 0px) + env(safe-area-inset-bottom, 0px) + 24px)); }
  .req-bar .acts .b.primary { flex: 1; justify-content: center; }
  .req .part { grid-template-columns: 78px minmax(0, 1fr) auto; }
}

/* Error reports remain reachable after a toast disappears or navigation. */
.error-report-trigger { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; }
.error-report-trigger .b { background: var(--surface); box-shadow: 0 2px 12px #0002; }
.error-details-link { display: block; margin-top: 8px; }
.error-record { margin: 20px 0; }
.error-record > summary { cursor: pointer; overflow-wrap: anywhere; margin-bottom: 12px; }
.error-record .request-diagnostics { margin: 0; }

/* A message row without an avatar or actions spans the whole list row. */
.slist .srow > .t:only-child { grid-column: 1 / -1; }
.slist .srow > .t:only-child span { white-space: normal; }

/* Toasts span the screen inside the page gutter, so a confirmation is not
   wrapped into half the viewport by a left: 50% transform. */
.toasts { left: 16px; right: 16px; transform: none; }
.toasts .toast { max-width: min(560px, 100%); }

/* Raised surfaces at the bottom of the screen: the phone decision capsule and
   toasts. Opaque, one step lighter than the cards, with a hairline edge and a
   lift that is as soft in dark mode as in light. */
:root { --raised: #FFFFFF; --raised-edge: rgba(30, 42, 49, .10); --raised-lift: 0 1px 2px rgba(30, 42, 49, .06), 0 10px 26px -12px rgba(30, 42, 49, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --raised: #2A3B45; --raised-edge: rgba(255, 255, 255, .09); --raised-lift: 0 1px 2px rgba(0, 0, 0, .18), 0 10px 26px -12px rgba(0, 0, 0, .45); } }
.toast { background: var(--raised); color: var(--ink); border-radius: 20px; box-shadow: 0 0 0 1px var(--raised-edge), var(--raised-lift); }
/* While a toast shows, a short shelf fades the page behind it, so it never
   sits on top of a row. The request page's dock already provides one. */
@media (max-width: 860px) {
  .toasts:has(.toast)::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; height: calc(env(safe-area-inset-bottom, 0px) + 130px); background: linear-gradient(to top, var(--ground-deep) 45%, color-mix(in srgb, var(--ground-deep) 0%, transparent)); animation: shelf var(--t-base) var(--ease); pointer-events: none; }
  body:has(.req-dock) .toasts:has(.toast)::before { display: none; }
}
@keyframes shelf { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toasts:has(.toast)::before, .toasts .toast { animation: none; } }

/* Dark mode lifts land with a hairline edge and a lighter surface. The drop
   shadow stays as soft as in light mode instead of a heavy dark pool. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sh-card: 0 1px 2px rgba(0,0,0,.16), 0 8px 20px -14px rgba(0,0,0,.32);
    --sh-float: 0 0 0 1px rgba(255,255,255,.05), 0 2px 4px rgba(0,0,0,.16), 0 14px 30px -18px rgba(0,0,0,.4);
  }
  :root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout) { box-shadow: 0 0 0 1px rgba(255,255,255,.055), 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px -14px rgba(0,0,0,.32); }
  :root:not([data-theme="light"]) .ccard.add { box-shadow: none; }
}

/* The pale sea-blue fill of a shared part. */
:root { --selected: #D3E0E8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --selected: #2F4855; } }

/* What a permission asks for, on its own page: limits as chips, then the
   parts of the resource as a strip, filled when shared and faint when not.
   Lists show one plain line instead. Built from divs so row span rules
   (ellipsis, muted type) do not reach it. */
.scope { display: grid; gap: 6px; min-width: 0; margin-top: 6px; font-size: 12.5px; line-height: 1; color: var(--ink); }
.scope .limits { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.scope .lim { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 4px 9px 4px 7px; border-radius: 999px; background: var(--soft); }
.scope .lim > svg { width: 13px; height: 13px; flex: none; color: var(--muted); }
.scope .lim .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: 2px; }
.scope .lim.kw .tx::before { content: "\201C"; color: var(--muted); }
.scope .lim.kw .tx::after { content: "\201D"; color: var(--muted); }
.scope .lim .more, .scope .more-lim { color: var(--muted); font-weight: 500; }
.scope .dots { display: inline-flex; flex: none; margin-left: -3px; }
.scope .dot { width: 17px; height: 17px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 600; color: #1E2A31; }
.scope .dot + .dot { margin-left: -5px; box-shadow: 0 0 0 1.5px var(--soft); }
.scope .parts { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.scope .pt { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--selected); color: var(--ink); }
.scope .pt svg { width: 13px; height: 13px; }
.scope .pt.off { background: transparent; color: var(--muted); opacity: .45; box-shadow: inset 0 0 0 1px var(--line); }
.scope .cap { color: var(--muted); margin-left: 5px; }
.scope .check { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--muted); }
.scope .check svg, .scope .act svg { width: 13px; height: 13px; }
.scope .act { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--muted); }
.perm-scope { padding: 2px 0 10px; }
.perm-scope .scope { margin-top: 0; }

/* ------------------------------------------------------------------ calm
   The four places (2026-10-04): direction first, slim rows, one status per
   row. Red only for decisions waiting and access in use that ends within two
   days; amber only for stopped uses and accounts to sign in to again;
   everything else is muted. */
:root { --inset: #F5F4EF; --meter: #9DB4C2; --meter-track: #EEF2F3; --bar: #C9D7DF; --bar-today: #7F9AAB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --inset: #22323B; --meter: #5E8092; --meter-track: #24343D; --bar: #3A5462; --bar-today: #8DB5CF; } }
:root[data-theme="dark"] { --inset: #22323B; --meter: #5E8092; --meter-track: #24343D; --bar: #3A5462; --bar-today: #8DB5CF; }

.main .vh p.lede-line { font-size: 17px; line-height: 1.45; color: var(--muted); margin-top: 8px; max-width: 62ch; }

/* A plain card of rows, and its section heading above. */
.card { background: var(--land); border-radius: 18px; box-shadow: var(--sh-card); overflow: hidden; }
/* One column no wider than the page, so a long row (Activity's chips) scrolls or wraps inside it instead of widening it. */
.home, .you-share, .shared, .activity, .accounts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.hsec, .ygroup { display: grid; gap: 10px; margin-top: 30px; min-width: 0; }
.vh + .hsec, .vh + .ygroup { margin-top: 12px; }
.hsec > h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 2px; }
.hsec > h2 .c, .gh .c { font-size: 14px; font-weight: 400; color: var(--muted); }
.gh { display: flex; align-items: baseline; gap: 10px; margin: 0 2px; min-width: 0; }
.gh h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.gh .lnk { font-weight: 500; font-size: 14px; }
.gh .lnk.danger { color: var(--ink); }
.gnote { margin: -2px 2px 0; font-size: 14px; color: var(--muted); }
.lnk.danger { color: var(--ink); }

/* Small marks at the start of a row: an amber alert, an amber account tile. */
.hlist { list-style: none; margin: 0; padding: 0; }
.tile-av.amb { background: var(--warn-soft); color: var(--warn); }
.tile-av.amb svg { color: var(--warn); }
.lk-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: var(--muted); }
.lk-ic svg { width: 22px; height: 22px; }
.lk-ic.amb { border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.lk-ic.amb svg { width: 19px; height: 19px; }

/* Small charts. */
.wbars { display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; padding-bottom: 6px; }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wbar .wcol { flex: 1; display: flex; align-items: flex-end; width: 7px; }
.wbar .wcol i { display: block; width: 100%; border-radius: 2px; background: var(--bar); }
.wbar:last-child .wcol i { background: var(--bar-today); }
.wbars.labelled { height: 96px; gap: 10px; padding: 0; }
.wbars.labelled .wcol { width: 22px; }
.wbars.labelled .wcol i { border-radius: 5px; }
.wbars small { font-size: 12px; color: var(--muted); }
.meter { display: block; width: 110px; height: 6px; border-radius: 999px; background: var(--meter-track); overflow: hidden; flex: none; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--meter); }

/* Segmented view switches: By person / By type, Your data / Your assistant. */
/* Like iOS segmented controls: the selected half is a white raised pill with
   ink text on a light track. Ink fills are kept for primary actions. */
:root { --seg-track: color-mix(in srgb, var(--ink) 7%, var(--ground)); --seg-on: var(--surface); --seg-lift: 0 1px 2px rgba(30, 42, 49, .14), 0 0 0 .5px rgba(30, 42, 49, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seg-track: color-mix(in srgb, var(--ink) 7%, var(--ground-deep)); --seg-on: color-mix(in srgb, var(--ink) 16%, var(--surface)); --seg-lift: 0 1px 2px rgba(0, 0, 0, .35); } }
:root[data-theme="dark"] { --seg-track: color-mix(in srgb, var(--ink) 7%, var(--ground-deep)); --seg-on: color-mix(in srgb, var(--ink) 16%, var(--surface)); --seg-lift: 0 1px 2px rgba(0, 0, 0, .35); }
.view-seg { background: var(--seg-track); box-shadow: none; padding: 3px; gap: 2px; }
.view-seg button { font-size: 14px; font-weight: 500; padding: 8px 16px; color: var(--muted); white-space: nowrap; }
.view-seg button:hover:not([aria-pressed="true"]):not(:disabled) { color: var(--ink); }
.view-seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-lift); }
.view-seg.small { justify-self: start; }
.view-seg.small button { padding: 6px 12px; font-size: 13px; }
.view-seg button:disabled { opacity: .45; cursor: default; }
.ytools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.sfilter { margin: 12px 2px 0; font-size: 14px; color: var(--muted); }
.ysearch { flex: 0 1 300px; max-width: 300px; min-height: 42px; margin-left: auto; }
@media (max-width: 600px) {
  .view-seg { flex: 1 1 100%; }
  .view-seg button { flex: 1; min-height: 40px; }
  .ysearch { flex: 1 1 100%; max-width: none; margin-left: 0; }
}

/* Slim rows: avatar, name, one plain line, one status. */
.prow .t b .h { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.st { font-size: 13.5px; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum"; }
.st.red { color: var(--flag); font-weight: 500; }
.st.pill { padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.st.red.pill { background: var(--flag-soft); }
.st.amb.pill { background: var(--warn-soft); color: var(--warn); }
.st.faint { opacity: .75; }
.amb-t { font-style: normal; color: var(--warn); white-space: nowrap; }
.prow .r { align-items: flex-end; }
.slist > .grp-more { display: block; width: 100%; margin: 0; border-radius: 0; text-align: left; font: 14px var(--f-ui); color: var(--muted); background: none; border: 0; padding: 14px 18px; cursor: pointer; }
.slist > .grp-more:hover { color: var(--ink); }
.ended-list .prow { opacity: .8; }
/* Why a permission can't be answered right now: a quiet line under its row or
   its badges, never amber, since the account is at fault, not the person. */
.pnote { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.slist > .pnote { margin-top: -8px; padding: 0 18px 12px 68px; border-bottom: 1px solid var(--line); }
.slist > .pnote:last-child { border-bottom: 0; }
.slist > .srow:has(+ .pnote) { border-bottom: 0; }
.perm-page > .pnote { margin-top: -14px; }
@media (max-width: 860px) {
  .slist > .pnote { margin-top: -6px; padding: 0 14px 12px 64px; }
  .prow { grid-template-columns: 36px minmax(0, 1fr) auto 14px; }
  .prow .r { grid-area: auto; justify-items: end; display: grid; }
  .prow .go { grid-area: auto; }
}
@media (max-width: 420px) {
  .prow { gap: 10px; }
  .slist > .pnote { padding-left: 60px; }
  .prow .st.pill { padding: 3px 8px; }
}

/* By type: one card per resource (Email, Calendar, Documents), then a row
   per permission with its own limit. No level per template (2026-10-04). */
.tcard { margin-top: 18px; }
.tc-h { display: flex; align-items: flex-start; gap: 8px 14px; padding: 18px 18px 16px; flex-wrap: wrap; }
.tc-h .tile-av { width: 36px; height: 36px; margin-top: 1px; }
.tc-t { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.tc-t h2 { font: 600 22px/1.2 var(--f-disp); letter-spacing: -.02em; }
.tc-t .tc-n { font-size: 14px; color: var(--muted); font-feature-settings: "tnum"; }
.tc-t .tc-from { font-size: 13px; color: var(--muted); opacity: .85; overflow-wrap: anywhere; }
.tc-h .tc-end { flex: none; align-self: center; font-size: 14px; font-weight: 500; }
.you-share .tcard > .slist.tlist { background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
.slist .typerow .d .act-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.slist .typerow .d .act-tag:first-child { margin-left: 0; }
@media (max-width: 600px) {
  .tc-h { padding: 16px 14px 14px; column-gap: 12px; }
  .tc-h .tc-end { flex-basis: 100%; text-align: left; padding-left: 48px; }
}

/* A person's page: callouts, then each direction's permissions as rows. */
.pd.person .slist { box-shadow: none; border: 1px solid var(--line); border-radius: 16px; }
.callout.quiet { background: var(--soft); }
.callout.quiet > i { background: var(--muted); animation: none; }
.person-end { padding-top: 16px; border-top: 1px solid var(--line); }
.end-list { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 14.5px; max-height: 40vh; overflow: auto; }

/* Activity. */
.act-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.show-sel { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.week-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 24px; margin-top: 20px; }
.wk-t { display: grid; gap: 4px; max-width: 46ch; }
.wk-t h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wk-t b { font: 600 34px/1.1 var(--f-disp); letter-spacing: -.02em; }
.wk-t span { color: var(--muted); font-size: 15px; }
.day-sec > h2 { font-size: 17px; }
@media (max-width: 600px) {
  .week-card { padding: 18px; }
}

/* Accounts and assistants. */
.acrow .ac-label::before { content: "· "; }
.acrow.warn .ac-line { color: var(--warn); }
.acrow .ac-acts { display: flex; gap: 16px; margin-right: auto; }
.acrow .ac-acts .lnk { font-size: 13.5px; }
.add-row { width: 100%; background: transparent; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.add-row .tile-av svg { width: 17px; height: 17px; }
.add-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.add-row .chev::before { content: ""; display: block; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); }
.add-row[aria-expanded="true"] .chev::before { transform: rotate(-135deg); }
.slist.agents .srow > svg.agent { width: 36px; height: 36px; }
.mcp-box { padding: 4px 18px 18px 68px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.mcp-box .addr { margin: 0; }
@media (max-width: 600px) { .mcp-box { padding: 4px 16px 16px; } }

/* The header: Home's count, and an amber dot on the avatar while an account
   needs signing in again. */
.avbtn { position: relative; }
.av-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--land); }
.menu .mi .mi-n { margin-left: auto; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--warn-soft); color: var(--warn); }
.topnav a .n { margin-left: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card { box-shadow: 0 0 0 1px rgba(255,255,255,.055), 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px -14px rgba(0,0,0,.32); }
}
:root[data-theme="dark"] .card { box-shadow: 0 0 0 1px rgba(255,255,255,.055), 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px -14px rgba(0,0,0,.32); }
.bars.week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }

/* ------------------------------------------------------------ calm, round 2
   One anatomy for every list row (2026-10-04): a lead (avatar, icon or time),
   the text, then either a status and a chevron, or a footer with the row's
   button at the bottom right. Long names stay on one line and end in an
   ellipsis, a "· @username" gives way first, a description takes up to two
   lines, and the status never squeezes the name. Lists are size containers:
   when one is narrow, the status moves under the description in every row of
   that list, so the rows still match. */
.slist, .hlist { container: rows / inline-size; }
ul.slist { list-style: none; margin: 0; padding: 0; }

.srow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px; grid-template-areas: "lead t r go"; column-gap: 14px; row-gap: 0; align-items: center; padding: 14px 18px; }
.srow > .av, .srow > .tile-av, .srow > svg.agent, .srow > .lk-ic, .srow > .when { grid-area: lead; }
.srow > svg.agent { width: 36px; height: 36px; }
.srow > .t { grid-area: t; }
.slist .srow > .r { grid-area: r; display: flex; flex-direction: column; align-items: flex-end; justify-items: end; gap: 3px; }
.slist .srow > .r:empty { display: none; }
.slist .srow > .go, .slist .srow > .chev { grid-area: go; }
.srow > .meter { grid-area: m; }
.srow.userow { grid-template-columns: 36px minmax(0, 1fr) auto auto 14px; grid-template-areas: "lead t m r go"; }
.srow.use { grid-template-columns: 58px minmax(0, 1fr) auto 14px; }
.srow > .when { align-self: start; padding-top: 1px; font-size: 13.5px; color: var(--muted); font-feature-settings: "tnum"; }

/* Rows with a button: the footer holds what is left to say (when it was
   sent, when to decide by, a status) and the button at the bottom right. */
.srow.xrow { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "lead t f"; align-items: start; column-gap: 14px; }
.srow.xrow > .xf { grid-area: f; align-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 8px 14px; flex-wrap: wrap; }
.srow.xrow > .xf .b { white-space: nowrap; }
.srow.xrow > .xf .b.sm { padding: 7px 14px; font-size: 13.5px; }
.srow.xrow > .xf .due { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.srow.xrow > .xf .due.soon { color: var(--flag); font-weight: 500; }
.srow.xrow:not(.linked):hover { background: transparent; }
.linked .xf .b:not(.stretch), .linked .xf .lnk { position: relative; z-index: 1; }
/* Accounts keep their actions and status under the text at every width. */
.srow.xrow.acrow { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "lead t" ". f"; row-gap: 10px; }
.srow.xrow.acrow > .xf { justify-content: flex-end; }

/* The text: name line, description, purpose. */
.srow .t { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.srow .t span { overflow: visible; white-space: normal; text-overflow: clip; }
.srow .t > .nm { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--ink); font-size: 15px; }
.srow .t > .nm > b, .srow .t > .nm > h3, .srow .t > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink); }
.srow .t > .nm > .h { flex: 0 10000 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.srow .t > .d, .srow .t > span:not([class]), .srow .t > .ac-line { font-size: 13.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; }
.srow .t > .d.full { display: block; -webkit-line-clamp: none; }
/* Which of your accounts a permission reads from: one line, a long address ends in an ellipsis. */
.srow .t > .d.acct-from { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.srow .t > .d.q { color: var(--muted); }
.srow .t > .d code { font-size: 12px; overflow-wrap: anywhere; }
/* A sentence that starts with who reads as a sentence: a long name wraps in
   full, since cutting it mid-sentence ("Maximilian Feat… ’s assistant")
   reads badly. Name-only rows shorten instead. */
.srow .t > .sen { font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: break-word; }
.srow .t .who { font-weight: 600; }
.srow.use .t > .sen { font-size: 14.5px; }
.srow.use .t .who { font-weight: 500; }

/* Narrow lists: the status goes under the description in every row. */
@container rows (max-width: 520px) {
  .srow { grid-template-columns: 36px minmax(0, 1fr) 14px; grid-template-areas: "lead t go" "lead r go"; column-gap: 12px; padding: 12px 14px; }
  .slist .srow > .r { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; margin-top: 5px; }
  .srow.userow { grid-template-columns: 36px minmax(0, 1fr) 14px; grid-template-areas: "lead t go" "lead r go"; }
  .srow.userow > .meter { display: none; }
  .srow.use { grid-template-columns: 50px minmax(0, 1fr) 14px; }
  .srow.xrow { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "lead t" ". f"; row-gap: 10px; }
  .srow.xrow > .xf { justify-content: space-between; }
  .srow.xrow > .xf > :only-child { margin-left: auto; }
  .slist > .pnote { margin-top: -6px; padding: 0 14px 12px 62px; }
}

/* "Show N more" rows, whether a button, a link or a list item's button. */
.slist > a.grp-more, .grp-more-li > .grp-more { display: block; width: 100%; margin: 0; border-radius: 0; text-align: left; font: 500 14px var(--f-ui); color: var(--focus); background: none; border: 0; border-top: 1px solid var(--line); padding: 13px 18px; cursor: pointer; text-decoration: none; }
.slist > .grp-more { color: var(--focus); font-weight: 500; }
.grp-more-li { list-style: none; }

/* Text links and selected accents take the brand sea blue, not underlined ink. */
.lnk, .gnote a, .pnote a, .acrow .ac-line a, .facts dd a, .pd-h .sub a, .notice a, .hsec-h .lnk { color: var(--focus); text-decoration: none; }
.lnk:hover, .gnote a:hover, .pnote a:hover, .acrow .ac-line a:hover, .facts dd a:hover, .pd-h .sub a:hover, .notice a:hover { color: var(--focus); text-decoration: underline; text-underline-offset: 3px; }
.lnk.danger, .gh .lnk.danger { color: var(--ink); }
.gnote a { white-space: nowrap; }

/* Home: Needs you, This week, Accounts and assistants. */
.hsec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 2px; min-width: 0; }
.hsec-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.hsec-h .lnk { margin-left: auto; font-size: 14px; font-weight: 500; white-space: nowrap; }
.home .vh { margin-bottom: 6px; }
.home .vh + .hsec { margin-top: 14px; }
.home-week { margin-top: 0; align-items: center; padding: 18px 22px; gap: 14px 24px; }
.home-week .wk-t b { font-size: 30px; }
.home-week .wk-t span { font-size: 14.5px; }
.home-week .amb-t { font-weight: 500; }
.home-week .wbars.labelled { height: 72px; gap: 8px; }
.home-week .wbars.labelled .wcol { width: 16px; }
.wk-load { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .home-week { padding: 16px 18px; }
  .home-week .wbars.labelled { width: 100%; justify-content: space-between; }
}

/* Titles: the words, then their small drawing, on one line. */
.vh h1 { flex-wrap: nowrap; }
.vh h1 .tt { flex: 0 1 auto; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 560px) {
}

/* A permission's page: who and until when, then what it lets them see. */
.perm-head { display: grid; gap: 10px; justify-items: start; }
.perm-head > .pnote { margin: 0; }
.sees-card { padding: 2px 20px; }
.sees-card .facts { margin: 0; }
.sees-card .facts > div { grid-template-columns: 104px minmax(0, 1fr); align-items: start; padding: 13px 0; min-height: 0; }
.sees-card .facts dt { padding-top: 1px; font-size: 13.5px; }
.sees-card .facts dd { font-size: 14.5px; display: block; overflow-wrap: break-word; }
.lim-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lim-words li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.lim-words svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--muted); }
.parts-dd { display: grid !important; gap: 6px; }
.parts-dd .perm-scope { padding: 0; }
.parts-words { font-size: 13.5px; color: var(--muted); }
.perm-purpose { color: var(--ink); background: var(--land); border-radius: 16px; box-shadow: var(--sh-card); padding: 14px 18px; font-size: 15px; }
.pd .perm-end { display: flex; }
.perm-check { margin: 0; font-size: 14.5px; color: var(--ink); padding: 0 2px; }
@media (max-width: 600px) {
  .sees-card { padding: 2px 16px; }
  .sees-card .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Activity digests: a stopped use keeps its sentence in ink; only the
   Stopped label is amber. */
.acts li.ref .m b { color: var(--ink); }
.acts .flag { font-weight: 600; }
.acts .m .acct-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* An account added is a change you made, not a use: quieter than the uses around it. */
.acts li.change .m b { font-weight: 400; overflow-wrap: anywhere; }
.srow.use.change .sen { overflow-wrap: anywhere; }
.dc-top .txt { min-width: 0; }
.dc-top .txt .from-acct { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A callout's button sits at its bottom right. */
.callout > .b { align-self: flex-end; }

/* Each line of a row's text keeps to the column, so a long name shortens
   instead of widening it; words inside a sentence keep the sentence's type. */
.srow .t > * { min-width: 0; }
.srow.use { grid-template-columns: 74px minmax(0, 1fr) auto 14px; }
.srow.use > .when { align-self: center; padding: 0; white-space: nowrap; }
@container rows (max-width: 520px) { .srow.use { grid-template-columns: 66px minmax(0, 1fr) 14px; column-gap: 10px; } }
@container rows (max-width: 340px) { .srow.use { grid-template-columns: minmax(0, 1fr) 14px; grid-template-areas: "lead go" "t go" "r go"; } .srow.use > .when { padding-bottom: 2px; } }
.srow .t > .sen span { font-size: inherit; color: inherit; }
.st.amb { color: var(--warn); font-weight: 500; }
/* What an account needs is said in full. */
.srow .t > .ac-line { display: block; -webkit-line-clamp: none; }

/* Stopped uses have the same anatomy as every other use: the time, the
   sentence, then the amber Stopped at the start of the line under it, and
   the chevron centred in its own column at the right, on a phone too. */
.dg .acts li { grid-template-columns: 96px minmax(0, 1fr) 14px; }
@media (max-width: 860px) { .dg .acts li { grid-template-columns: 70px minmax(0, 1fr) 14px; gap: 12px; } }
.acts .go-col { align-self: center; display: grid; place-items: center; }
.acts .stop-line .flag, .srow .t > .stop-line .st { padding: 0; margin-right: 4px; }
.acts .m .stop-line .flag { color: var(--warn); font-size: 12.5px; }
.srow .t > .stop-line .st.pill { font-size: 12.5px; vertical-align: 1px; }

/* The band behind the floating header: the top of the sea, opaque under the
   status bar and down to the capsule, fading out just below it, so content
   scrolling up is never readable around the capsule. It takes no space and
   no taps. */
.shell > .top-band { position: fixed; top: 0; left: 0; right: 0; z-index: 15; pointer-events: none;
  --cap-top: calc(env(safe-area-inset-top, 0px) + 10px); --cap-h: 58px;
  height: calc(var(--cap-top) + var(--cap-h) + 32px);
  background: linear-gradient(180deg, var(--ground) calc(var(--cap-top) + var(--cap-h)), color-mix(in srgb, var(--ground) 0%, transparent)); }
@media (max-width: 860px) { .shell > .top-band { --cap-h: 50px; } }

/* Grey shapes where content is on its way, light and dark. They shimmer
   gently unless the reader prefers reduced motion. */
:root { --sk: color-mix(in srgb, var(--ink) 8%, transparent); --sk-hi: color-mix(in srgb, var(--ink) 3%, transparent); }
.sk { display: block; background: var(--sk); border-radius: 7px; }
.sk-list .srow.sk-row { min-height: 66px; }
.sk-list .srow.sk-row:hover { background: transparent; }
.sk-av { width: 36px; height: 36px; border-radius: 48% 52% 45% 55% / 52% 48% 55% 45%; grid-area: lead; }
.sk-av.tile { border-radius: 12px; }
.sk-row .t { display: grid; gap: 8px; }
.sk-l { height: 12px; }
.sk-l.sm { height: 10px; }
.w34 { width: 34%; } .w38 { width: 38%; } .w46 { width: 46%; } .w48 { width: 48%; } .w52 { width: 52%; }
.w54 { width: 54%; } .w55 { width: 55%; } .w56 { width: 56%; } .w62 { width: 62%; } .w70 { width: 70%; }
.sk-week { display: grid; gap: 10px; }
.sk-fig { width: 112px; height: 22px; }
.sk-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 56px; align-items: end; margin-top: 6px; }
.sk-bars .sk { height: 30%; border-radius: 5px 5px 3px 3px; }
.sk-bars .sk:nth-child(2) { height: 55%; } .sk-bars .sk:nth-child(3) { height: 40%; } .sk-bars .sk:nth-child(4) { height: 75%; }
.sk-bars .sk:nth-child(5) { height: 50%; } .sk-bars .sk:nth-child(6) { height: 65%; } .sk-bars .sk:nth-child(7) { height: 45%; }
.sk-page { margin-top: 8px; }
.av.sk-avatar { background: var(--sk); }
@media (prefers-reduced-motion: no-preference) {
  .sk { background: linear-gradient(90deg, var(--sk) 0 35%, var(--sk-hi) 50%, var(--sk) 65% 100%) 0 0 / 300% 100%; animation: sk-shimmer 1.6s linear infinite; }
}
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ------------------------------------------------------------- islands
   The islands refresh (2026-10-09; docs/design/tokens.json): cards sit
   straight on the sea in Shell, between white and sand, with a hairline edge
   and no glow; lagoon marks actions and you; each kind of thing has one look
   (src/ui/entities.tsx); rows carry one bold line and a quiet right side. */
:root {
  --ground: #E3F0F3; --ground-deep: #D6E9EE; --sea-top: #E3F0F3; --sea-bot: #D6E9EE;
  --land: #FDFAF5; --surface: #FFFFFF; --soft: #EFE5D3; --sand: #EFE5D3; --line: #E1E6E4;
  --ink: #1E2A31; --muted: #5E6A6F;
  --lagoon: #1A7385; --lagoon-soft: #D3EAEE; --on-lagoon: #FFFFFF; --accent: var(--lagoon);
  --card-edge: rgba(120, 95, 50, .10);
  --a1: #7393D6; --a2: #86B07A; --a3: #E3B55A; --a4: #A98FC9; --a5: #E0957A;
  --sh-card: 0 0 0 1px var(--card-edge);
  --sh-float: 0 0 0 1px var(--card-edge), 0 14px 32px -20px rgba(15, 30, 38, .28);
  --bar: color-mix(in srgb, var(--lagoon) 30%, var(--ground)); --bar-today: var(--lagoon);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1E26; --ground-deep: #0B171D; --sea-top: #0F1E26; --sea-bot: #0B171D;
    --land: #1E2B30; --surface: #1E333D; --soft: #34352D; --sand: #34352D; --line: #263A44;
    --ink: #E7EEF0; --muted: #9DB0B8;
    --lagoon: #6CC3D1; --lagoon-soft: #173F4A; --on-lagoon: #0F1E26;
    --card-edge: rgba(255, 255, 255, .06);
    --sh-float: 0 0 0 1px var(--card-edge), 0 16px 36px -20px rgba(0, 0, 0, .7);
    --bar: color-mix(in srgb, var(--lagoon) 35%, var(--ground)); --bar-today: var(--lagoon);
  }
}
:root[data-theme="dark"] {
  --ground: #0F1E26; --ground-deep: #0B171D; --sea-top: #0F1E26; --sea-bot: #0B171D;
  --land: #1E2B30; --surface: #1E333D; --soft: #34352D; --sand: #34352D; --line: #263A44;
  --ink: #E7EEF0; --muted: #9DB0B8;
  --lagoon: #6CC3D1; --lagoon-soft: #173F4A; --on-lagoon: #0F1E26;
  --card-edge: rgba(255, 255, 255, .06);
  --sh-float: 0 0 0 1px var(--card-edge), 0 16px 36px -20px rgba(0, 0, 0, .7);
  --bar: color-mix(in srgb, var(--lagoon) 35%, var(--ground)); --bar-today: var(--lagoon);
}

/* Flat cards: a hairline edge, no halo and no lift, in both modes. */
.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note { box-shadow: var(--sh-card); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card) { box-shadow: var(--sh-card); }
}
.callout { box-shadow: none; }

/* Islands on the sea: a person's and a permission's pages have no panel of
   their own; their cards sit on the sea. */
.pd { background: none; box-shadow: none; padding: 6px 0 24px; }

/* You are the lagoon island; kinds of data sit on sand tiles. */
.av.isle-av.me { color: var(--on-lagoon); }
.tile-av { background: var(--sand); }
.lnk, .hsec-h .lnk { color: var(--lagoon); }
.b.primary { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-lagoon); }
.b.primary:hover { background: color-mix(in srgb, var(--lagoon) 88%, var(--ink)); }
.nav a[aria-current="page"], .topbar .nav a[aria-current="page"] { background: var(--lagoon-soft); color: var(--ink); box-shadow: none; }

/* Your accounts: a white tile with the service's mark and a plug. */
.acct-tile { position: relative; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 26%; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(15, 30, 38, .14); font: 800 9px/1 var(--f-ui); }
.acct-tile.lg { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.acct-tile .plug { position: absolute; right: -22%; bottom: -22%; width: 55%; height: 55%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--lagoon); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--land); }
.acct-tile .plug svg { width: 72%; height: 72%; stroke-width: 3; }
.acct-tile.lg .plug { box-shadow: 0 0 0 2px var(--land); }
/* An account's own page: its tile at the size of a person's island. */
.acct-tile.xl { width: 56px; height: 56px; border-radius: 15px; font-size: 26px; }
.acct-tile.xl .plug { box-shadow: 0 0 0 2.5px var(--land); }
.pd-h > .acct-tile.xl { margin-right: 6px; }
.acct-page .acct-state { display: block; }
.acct-page .acct-state .st { margin-right: 4px; }
.acct-page .acct-state .st.amb { color: var(--warn); }
.acct-page .pd-h > .b { flex: none; align-self: center; }
.acct-tile.warn .plug { background: var(--warn); }
.acct-tile.p-google { color: #4285F4; } .acct-tile.p-microsoft { color: #0F6CBD; } .acct-tile.p-apple { color: #3693F3; } .acct-tile.p-notion { color: #1E2A31; } .acct-tile.p-other { color: #1E2A31; }
.atok { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.atok .aname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.astack { display: inline-flex; align-items: center; flex: none; }
.astack .acct-tile { box-shadow: inset 0 0 0 1px rgba(15, 30, 38, .14), 0 0 0 2px var(--land); }
.astack .acct-tile + .acct-tile { margin-left: -5px; }
.astack .acct-tile:not(:last-child) .plug { display: none; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px 4px 5px; border-radius: 9px; background: var(--surface); box-shadow: 0 0 0 1px var(--card-edge); font: 500 13px/1.3 var(--f-ui); color: var(--ink); border: 0; }
.achip.more { padding: 4px 10px; color: var(--lagoon); cursor: pointer; }
.achip .aname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A week of use in seven small bars. */
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.spark i { display: block; width: 3px; border-radius: 1px; }
.spark .on { background: var(--lagoon); }
.spark .off { height: 2px; background: color-mix(in srgb, var(--muted) 28%, transparent); }
.spark .fut { opacity: .45; }

/* Permission rows in three lines: one bold line, then quiet ones; on the
   right, line by line, the end date, the week and the approval. */
.slist .srow.prow3 { display: flex; align-items: center; gap: 14px; padding: 13px 18px 14px; }
.srow.prow3 > .pbody { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 3px; align-items: center; }
.srow.prow3 .pbody > * { display: flex; align-items: center; min-width: 0; min-height: 20px; }
.srow.prow3 .pbody > .brk { display: none; }
.srow.prow3 .c-nm { grid-area: 1 / 1; }
.srow.prow3 .c-date { grid-area: 1 / 2; justify-self: end; }
.srow.prow3 .c-shape { grid-area: 2 / 1; }
.srow.prow3 .c-use { grid-area: 2 / 2; justify-self: end; }
.srow.prow3 .c-acct { grid-area: 3 / 1; }
.srow.prow3 .c-appr { grid-area: 3 / 2; justify-self: end; }
.srow.prow3 .c-shape > .pshape { min-width: 0; }
/* A narrow list: the date stays on the right, the rest runs left to right. */
@container rows (max-width: 520px) {
  .slist .srow.prow3 { gap: 12px; padding: 12px 14px 13px; }
  .srow.prow3 > .pbody { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; }
  .srow.prow3 .pbody > .brk { display: block; flex-basis: 100%; height: 0; min-height: 0; }
  .srow.prow3 .c-nm { flex: 1 1 0; }
  .srow.prow3 .c-date { flex: none; }
  .srow.prow3 .c-shape { flex: 0 1 auto; }
  .srow.prow3 .c-acct { flex: 1 1 0; min-width: 96px; }
  .srow.prow3 .c-use, .srow.prow3 .c-appr { flex: none; min-height: 18px; }
}
.srow.prow3 .nm { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--ink); font-size: 15px; }
.srow.prow3 .nm > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.srow.prow3 .nm > .h { flex: 0 10000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--muted); }
.srow.prow3 .nm .pre { color: var(--muted); font-weight: 400; }
.srow.prow3 .glyph { width: 14px; height: 14px; flex: none; color: var(--muted); }
.srow.prow3 .psub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow.prow3 .psub .act-tag { margin-left: 8px; }
.srow.prow3 .pdate, .srow.prow3 .puse, .srow.prow3 .appr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.srow.prow3 .pdate svg, .srow.prow3 .appr svg { width: 13px; height: 13px; flex: none; }
.srow.prow3 .pdate.soon { color: var(--flag); font-weight: 600; }
.srow.prow3 .puse { gap: 7px; }
.srow.prow3 > .av { align-self: flex-start; margin-top: 2px; }

/* Permissions on a person's page, one card per kind of data. */
.kcards { display: grid; gap: 14px; }
.kc-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.kc-h .tile-av { width: 30px; height: 30px; border-radius: 9px; }
.kc-h .tile-av svg { width: 16px; height: 16px; }
.kc-h b { flex: 1; font-size: 15px; font-weight: 600; }
.kc-h .c { font-size: 13px; color: var(--muted); }
.kcard .srow.prow3:last-of-type { border-bottom: 0; }

/* A person's standing, one quiet line under the name. */
.hline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.hline > * { display: inline-flex; align-items: center; gap: 5px; }
.hline > * + *::before { content: ""; width: 3px; height: 3px; margin: 0 9px; border-radius: 50%; background: currentColor; opacity: .5; }
.hline svg { width: 13px; height: 13px; flex: none; }
.hline .soon { color: var(--flag); font-weight: 600; }

/* A permission's page: a sentence, one status line, its accounts, then what
   crosses and what stays behind. */
.perm-title { align-items: flex-start; }
.perm-title .t { display: grid; gap: 8px; }
.kind-badge { position: relative; flex: none; }
.kind-badge > .isle-av { position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; font-size: 11px; }
.perm-title .perm-head { gap: 6px; }
.perm-title .perm-head .bdgs { margin: 0; }
.inc-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inc-col { padding: 16px 20px 18px; display: grid; align-content: start; gap: 10px; }
.inc-col + .inc-col { border-left: 1px solid var(--line); }
.inc-col > b { font-size: 14px; font-weight: 600; }
.inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.inc li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.inc .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.inc .ic svg { width: 11px; height: 11px; stroke-width: 2.6; }
.inc.yes .ic { background: var(--ok-soft); color: var(--ok); }
.inc.no li { color: var(--muted); }
.inc.no .ic { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }
@media (max-width: 560px) { .inc-col + .inc-col { border-left: 0; border-top: 1px solid var(--line); } }
.inc .ic.cal { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }
.inc .ic.cal svg { stroke-width: 2.2; }
/* Which emails, chips in groups (design C, 2026-10-12): one chip per field,
   its label muted and its value ink at medium weight; "or" between
   alternatives; a group is a pill (name, count, summary) that opens into a
   box as wide as the card. Chips wrap; a long value wraps inside its chip. */
:root { --sw-chip: #F1EBE1; --sw-pill: #F7F2EA; --sw-hair: #E3DBCC; --sw-box: rgba(241, 235, 225, .4); --sw-inner: #FFFFFF; --sw-inner-hair: #EAE3D7; --sw-warm: #5C4D33; --sw-warm-lead: #7D6B4C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sw-chip: color-mix(in srgb, var(--ink) 9%, var(--land)); --sw-pill: color-mix(in srgb, var(--ink) 5%, var(--land)); --sw-hair: color-mix(in srgb, var(--ink) 16%, var(--land)); --sw-box: color-mix(in srgb, var(--ink) 3%, var(--land)); --sw-inner: var(--surface); --sw-inner-hair: color-mix(in srgb, var(--ink) 14%, var(--surface)); --sw-warm: #E2CFA8; --sw-warm-lead: #D2BF98; }
}
:root[data-theme="dark"] { --sw-chip: color-mix(in srgb, var(--ink) 9%, var(--land)); --sw-pill: color-mix(in srgb, var(--ink) 5%, var(--land)); --sw-hair: color-mix(in srgb, var(--ink) 16%, var(--land)); --sw-box: color-mix(in srgb, var(--ink) 3%, var(--land)); --sw-inner: var(--surface); --sw-inner-hair: color-mix(in srgb, var(--ink) 14%, var(--surface)); --sw-warm: #E2CFA8; --sw-warm-lead: #D2BF98; }
.which { padding: 14px 16px 16px; display: grid; gap: 10px; }
.sw-lead { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sw-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.sw-or { font-size: 12px; color: var(--muted); }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 5px 11px 5px 8px; border: 1px solid transparent; border-radius: 999px; background: var(--sw-chip); font-size: 13.5px; line-height: 19px; }
.sw-chip.words { padding-left: 11px; }
.sw-chip > .k { flex: none; color: var(--muted); font-weight: 400; }
.sw-chip > .v { min-width: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.sw-chip .j { color: var(--muted); font-weight: 400; }
.sw-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; color: #1E2A31; }
.sw-cal { width: 14px; height: 14px; flex: none; color: var(--muted); }
.sw-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; min-height: 32px; padding: 5px 9px 5px 12px; border: 1px solid var(--sw-hair); border-radius: 999px; background: var(--sw-pill); font: 13.5px var(--f-ui); color: var(--muted); text-align: left; cursor: pointer; }
.sw-pill > b { flex: none; font-weight: 600; color: var(--sw-warm); }
.sw-pill > .sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-pill > svg { width: 13px; height: 13px; flex: none; color: var(--muted); }
.sw-pill:hover { border-color: color-mix(in srgb, var(--sw-warm) 35%, var(--sw-hair)); }
.sw-box { flex: 1 0 100%; display: grid; gap: 6px; min-width: 0; padding: 4px 10px 10px; border: 1px solid var(--sw-hair); border-radius: 16px; background: var(--sw-box); }
.sw-legend { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0; border: 0; background: none; font: 700 11px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--sw-warm-lead); cursor: pointer; }
.sw-legend > svg { width: 12px; height: 12px; transform: rotate(90deg); stroke-width: 2.4; }
.sw-pill:focus-visible, .sw-legend:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* In a box, chips and pills stand off its tint on white; a box in a box is white, and its chips sand again. */
.sw-box .sw-chip { padding-block: 4px; border-color: var(--sw-inner-hair); background: var(--sw-inner); }
.sw-box .sw-pill, .sw-box .sw-box { background: var(--sw-inner); }
.sw-box .sw-box { border-radius: 14px; }
.sw-box .sw-box .sw-chip { padding-block: 5px; border-color: transparent; background: var(--sw-chip); }
.sw-raw { margin: 4px -16px -16px; padding: 0 16px; border-top: 1px solid var(--line); }
.sw-raw > summary { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; padding: 12px 0; list-style: none; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.sw-raw > summary::-webkit-details-marker { display: none; }
.sw-raw > summary svg { width: 13px; height: 13px; flex: none; transition: transform var(--t-fast) ease; }
.sw-raw[open] > summary svg { transform: rotate(90deg); }
.sw-raw > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sw-raw > code { display: block; padding: 0 0 14px; font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
/* A request your assistant sent: when it was sent, and its expiry, red within two days. */
.sentrow .pdate.soon { color: var(--flag); font-weight: 600; }
.why { display: flex; align-items: flex-start; gap: 12px; }
.why > svg.agent { width: 34px; height: 34px; flex: none; }
.perm-purpose.bubble { border-radius: 4px 16px 16px 16px; display: grid; gap: 4px; }
.perm-purpose.bubble small { font-size: 12.5px; color: var(--muted); }

/* Home: the deadline with its calendar, the kind beside what is asked. */
.srow.xrow > .xf .due { display: inline-flex; align-items: center; gap: 5px; }
.srow.xrow > .xf .due svg { width: 13px; height: 13px; }
.srow .t > .sen .ask { display: block; font-size: 13.5px; color: var(--muted); }
.srow .t > .sen .ask svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.srow > .acct-tile.lg { margin: 0; }
/* Inside a page header every span is muted by default; these keep their colour. */
.pd-h .t .hline .soon, .pd-h .t .perm-head .soon { color: var(--flag); font-weight: 600; }
.pd-h .t .achip .aname { color: var(--ink); }
.pd-h .t .amb-t { color: var(--warn); }

/* What a permission shares, drawn: a thumbnail of the whole item. */
.ptw { position: relative; display: inline-flex; flex: none; line-height: 0; vertical-align: middle; }
.pt { display: block; }
.pt .frame { fill: var(--surface); stroke: color-mix(in srgb, var(--muted) 45%, transparent); stroke-width: 1; }
.pt .on { fill: var(--ink); opacity: .62; }
.pt .off { fill: var(--muted); opacity: .16; }
.ptstack { padding: 3px 5px 0 0; }
.ptstack .pt { position: relative; z-index: 1; }
.ptback { position: absolute; left: 5px; top: 0; width: 24px; height: 17px; box-sizing: border-box; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); background: var(--surface); }
.srow.prow3 .psub.pshape { display: flex; align-items: center; gap: 8px; }
.srow.prow3 .psub.pshape > .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On a phone the standing line may wrap; spacing instead of dots keeps a wrapped line from starting with one. */
@media (max-width: 560px) {
  .hline { column-gap: 12px; }
  .hline > * + *::before { display: none; }
}

/* A request on its own page, the twin of a permission's page: the sentence
   and deadline sit on the sea, why they asked is their assistant's bubble,
   and each part is a line with its name, a quiet value and a lagoon tick. */
.req-head.perm-title { display: flex; align-items: flex-start; background: none; box-shadow: none; border-radius: 0; padding: 0 2px; }
.req-head .nm { font-size: 24px; }
.req-head .hline { margin-top: 2px; }
.req-why { margin-top: -6px; }
.req-acct { justify-content: space-between; }
.req-acct .from { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.req-acct .from.muted { color: var(--muted); font-weight: 400; }
.req-acct .from .acct-tile { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.req-acct select { font-weight: 600; text-overflow: ellipsis; min-width: 0; }
.req-acct select.one { appearance: none; pointer-events: none; }
.req-acct .ptw .pt { width: 36px; height: 26px; }
.req-sec > h2 .tag { background: none; padding: 0; font-weight: 500; font-size: 12.5px; }
.req .part { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 10px 0; }
.req .part .pl { grid-column: 1; color: var(--ink); font-size: 14px; }
.req .part .pv { grid-column: 1; gap: 2px; color: var(--muted); font-size: 13.5px; }
.req .part .pv .strong { font-weight: 400; }
.req .part .pf { background: none; border-radius: 0; padding: 0; font-size: 12.5px; color: color-mix(in srgb, var(--ink) 72%, var(--muted)); }
.req .part .pc, .req .part .pn { grid-column: 2; grid-row: 1 / span 2; }
.req .part input[type="checkbox"] { border-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.req .part input[type="checkbox"]:checked { background: var(--lagoon); border-color: var(--lagoon); }
.req .part input[type="checkbox"]:checked::after { border-color: var(--on-lagoon); }
.req .part.off .pv > span:first-child { text-decoration: none; }
.req-chips .chip { background: none; padding: 0; border-radius: 0; color: var(--muted); }
.req-opt textarea { text-align: left; }
.req input[type="radio"], .req input[type="checkbox"] { accent-color: var(--lagoon); }
.acrow .ac-line a { color: var(--lagoon); }
@media (max-width: 560px) {
  .req .part { grid-template-columns: minmax(0, 1fr) auto; }
  .req-head .nm { font-size: 21px; }
}
.choice-row input:checked { border-color: var(--lagoon); }
.choice-row b { font-weight: 500; }
/* An example event's place, guests and link, each after its icon. */
.xcard .xi { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.xcard .xi li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.xcard .xi svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.req-acct .ptw .pt { width: 30px; height: 21px; }
/* A sender is an address: an @ on a quiet disc, never a person's island. */
.xcard .ini { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.xcard .ini svg { width: 14px; height: 14px; }
a.kind-badge { display: block; border-radius: 16px; }
a.kind-badge:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
/* Page headers mute every span; an account tile keeps its mark and plug. */
.pd-h .t .acct-tile.p-google { color: #4285F4; } .pd-h .t .acct-tile.p-microsoft { color: #0F6CBD; } .pd-h .t .acct-tile.p-apple { color: #3693F3; }
.pd-h .t .acct-tile.p-notion, .pd-h .t .acct-tile.p-other { color: #1E2A31; }
.pd-h .t .acct-tile .plug { color: #FFFFFF; }
.pd-h .t .acct-tile { font-size: 9px; }
/* Sentence case everywhere: no all-caps labels. */
.wk-t h2, .rc-count, .sec-t, .dc .kind { text-transform: none; letter-spacing: 0; }
.wk-t h2 { font-size: 13.5px; font-weight: 500; }
.meter > i, .meter > span { background: color-mix(in srgb, var(--lagoon) 55%, transparent); }
/* A share link: the link icon in a lagoon circle. */
.lk-ic.link { width: 36px; height: 36px; border-radius: 50%; background: var(--lagoon); color: var(--on-lagoon); }
.lk-ic.link svg { width: 18px; height: 18px; }
.srow .r .st svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
/* Badges read as quiet words, never tinted pills. */
.bdg, .bdg.red, .bdg.amb, .bdg.blue { background: none; padding: 0; height: auto; border-radius: 0; color: var(--muted); font-weight: 400; font-size: 13px; }
.bdg.red { color: var(--flag); font-weight: 600; }
.bdg.amb { color: var(--warn); }
.bdg.red.strong { background: none; color: var(--flag); }
.bdgs { column-gap: 12px; }
/* Links, each with the link icon in a lagoon circle. */
.item.noi.lnk-item, .pd .gcard .item.noi.lnk-item { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
@media (max-width: 860px) {
  .flat-list .item.noi.lnk-item, .item.noi.lnk-item, .pd .gcard .item.noi.lnk-item { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .item.noi.lnk-item > .lk-ic { grid-row: 1 / span 2; }
  .item.noi.lnk-item .rt { grid-area: 2 / 2; }
  .item.noi.lnk-item > :last-child { grid-area: 1 / 3 / span 2; }
}
/* An account tile keeps its mark and plug inside muted lines. */
.acct-tile.p-google .acct-l { color: #4285F4; } .acct-tile.p-microsoft .acct-l { color: #0F6CBD; } .acct-tile.p-apple .acct-l { color: #3693F3; }
.acct-tile.p-notion .acct-l, .acct-tile.p-other .acct-l { color: #1E2A31; }
/* A location device: a pin, not the first letter of its name. */
.acct-tile.p-device .acct-l { color: var(--lagoon); display: grid; place-items: center; }
.acct-tile.p-device .acct-l svg { width: 62%; height: 62%; }
.acct-tile .plug svg { color: #FFFFFF; }
.srow .t .d:has(> .atok), .srow .t .d:has(> .acct-from) { overflow: visible; }
.acct-from .atok, .d > .atok { padding-bottom: 2px; }
.st.pill, .st.red.pill, .st.amb.pill { background: none; padding: 0; border-radius: 0; }
.st.red.pill { font-weight: 600; }

/* ------------------------------------------------------------ round 3
   The owner's notes on the gallery (2026-10-10): kinds of data drawn rather
   than named, the face says what waits, counts at the right edge, and a
   title that switches what the page shows. */
.srow .t .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* What someone sees: one small icon per kind of data, then any words. */
.srow .t > .d.kline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.kinds { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--muted); }
.kinds svg { width: 15px; height: 15px; }
.srow .t .kline .kt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .t .kline.wrap { align-items: flex-start; }
.srow .t .kline.wrap .kinds { margin-top: 2px; }
.srow .t .kline.wrap .kt { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.srow .t > .d.q.one { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: italic; }
/* Home: what waits is a small badge on the assistant's face. */
.srow > .face { grid-area: lead; position: relative; width: 36px; height: 36px; }
.srow > .face > svg.agent { display: block; width: 36px; height: 36px; }
.face-b { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon); color: var(--on-lagoon); box-shadow: 0 0 0 2px var(--land); }
.face-b svg { width: 11px; height: 11px; stroke-width: 2.6; }
.needrow .t { gap: 4px; }
/* You share's Needs you: the deadline quiet (Home carries the urgency), the account tile after the words when several. */
.prow .due-quiet { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow .due-quiet svg { width: 13px; height: 13px; flex: none; }
.prow .kline .acct-tile { flex: none; margin-left: 2px; }
/* A person's kinds of data: a count beside the name only when there are several. */
.kc-h b { flex: 0 1 auto; }
.kc-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); font: 600 12px/1 var(--f-ui); font-feature-settings: "tnum"; }
/* Activity: who used it, with their week at the right. */
.slist .srow > .r .puse { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum"; }
/* Accounts: the service under the address; who uses it at the right edge. */
.srow.xrow.acrow { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "lead t n" ". f f"; }
.srow.xrow.acrow > .acct-tile.lg { grid-area: lead; }
.acrow > .ac-people { grid-area: n; align-self: start; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding-top: 2px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; font-feature-settings: "tnum"; }
.acrow > .ac-people svg { width: 15px; height: 15px; }
.acrow > .ac-people:hover { color: var(--lagoon); }
.acrow > .ac-people:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
.acct-tile.add { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); color: var(--muted); }
.acct-tile.add svg { width: 16px; height: 16px; }
.srow.add-acct > .acct-tile { grid-area: lead; }


/* ------------------------------------------------------------ round 4
   A request, as approved on the mock-up (2026-10-10): the kind tile beside
   what is asked, the account under the words; then who asks, their person
   row the sender line of their assistant's bubble; what they would get as a
   thumbnail and ticked parts, with what is not asked in one quiet line;
   their results in a tinted box; and the deadline by the decision, the two
   choices the same size. */
.req.req4 { gap: 26px; }
.rq-h { display: flex; align-items: flex-start; gap: 14px; padding: 0 2px; }
.rq-h .rq-tile { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.rq-h .rq-tile svg { width: 24px; height: 24px; }
.rq-t { display: grid; gap: 12px; min-width: 0; padding-top: 5px; justify-items: start; }
.rq-t .nm { margin: 0; font: 650 25px/1.2 var(--f-ui); letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; }
.rq-t .req-acct { padding: 0; display: block; }
.rq-t .achip.from { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 6px; border-radius: 12px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font: 500 14.5px var(--f-ui); color: var(--ink); }
.rq-t .achip.from .acct-tile { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.rq-t .achip.from select { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; min-width: 0; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; }
.rq-t .achip.from select.one { appearance: none; pointer-events: none; }
.rq-t .achip.from .sel-chev { width: 12px; height: 12px; color: var(--muted); transform: rotate(90deg); }
.rq-who { display: grid; gap: 8px; justify-items: start; }
.pslim { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 2px 4px 2px 2px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.pslim .isle-av { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 1px var(--land), 0 0 0 2px var(--rim, #EADFC6); }
.pslim b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslim .h { color: var(--muted); white-space: nowrap; }
.pslim .chev { width: 13px; height: 13px; flex: none; color: var(--muted); opacity: .7; }
.pslim:hover b { color: var(--lagoon); }
.pslim:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.rq-who .req-why { margin: 0; }
.rq-who .why > svg.agent { width: 36px; height: 36px; }
.rq-who .perm-purpose.bubble { padding: 12px 16px; font-size: 15.5px; border-radius: 4px 18px 18px 18px; }
/* What they would get: the thumbnail and the read's name and window, then the parts. */
.req4 .req-sec > h2 { font-size: 17px; font-weight: 650; }
.req4 .req-group { padding: 0 16px; border-radius: 20px; }
.rq-top { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.rq-top .ptw .pt { width: 56px; height: 40px; }
.rq-top-t { display: grid; gap: 3px; min-width: 0; }
.rq-top-t b { font-size: 15.5px; font-weight: 600; }
.qline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.qline svg { width: 14px; height: 14px; flex: none; }
.req4 .part { padding: 12px 0; }
.req4 .part .pl { font-size: 15px; }
.req4 .part .pv { font-size: 14px; }
.rq-not { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0 14px; font-size: 13.5px; color: var(--muted); }
.rq-not svg { width: 13px; height: 13px; flex: none; }
.rq-lims { list-style: none; margin: 0; padding: 10px 0 12px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.rq-lims li { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.rq-lims svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--lagoon); }
/* If they asked now: their results in a tinted box of their own. */
.rq-now { background: var(--lagoon-soft); border-radius: 22px; padding: 16px; gap: 12px; }
.rq-now > h2 { margin: 0; font-size: 17px; }
.rq-now .xcard { box-shadow: none; border-radius: 14px; }
.rq-now .req-foot { margin: 0; }
@media (max-width: 860px) { .rq-now .req-results { margin-inline: -16px; padding-inline: 16px; } }
/* An event to add, as it would sit in its day. */
.rq-event { padding: 14px 0 12px; display: grid; gap: 10px; }
.rq-day { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rq-day b { font-size: 15.5px; font-weight: 600; }
.rq-day span { font-size: 13px; color: var(--muted); }
.rq-hours { position: relative; display: grid; grid-auto-rows: 44px; }
.rq-hr { display: block; border-top: 1px solid var(--line); padding: 3px 0 0; font-size: 12px; color: var(--muted); font-feature-settings: "tnum"; }
.rq-block { position: absolute; left: 58px; right: 0; display: grid; align-content: start; gap: 2px; padding: 7px 10px; border-radius: 10px; background: var(--lagoon-soft); border-left: 3px solid var(--lagoon); overflow: hidden; font-size: 13px; color: var(--muted); }
.rq-block b { font-size: 14.5px; color: var(--ink); }
.rq-block span { display: inline-flex; align-items: center; gap: 5px; }
.rq-block svg { width: 12px; height: 12px; }
.rq-ev-more { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.rq-ev-more li { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.rq-ev-more li.muted { color: var(--muted); }
.rq-ev-more svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.rq-ev-more .rq-guests { flex-wrap: wrap; gap: 6px; }
.rq-at { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 9px; background: var(--soft); }
.rq-at svg { margin: 0; width: 12px; height: 12px; }
/* The decision: the deadline above two choices of one size. */
.rq-due { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
.rq-due svg { width: 14px; height: 14px; }
.rq-due.soon { color: var(--flag); font-weight: 600; }
.req-bar .acts.even { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-bar .acts.even > .b { justify-content: center; padding: 13px 18px; font-weight: 600; }
.req-bar .acts.even > .b.quiet { border-color: var(--line); background: var(--land); color: var(--ink); }
@media (min-width: 861px) {
  .req-bar .acts.even { width: min(100%, 420px); margin-left: auto; }
  .req-bar .rq-due { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .rq-t .nm { font-size: 22px; }
  .rq-h .rq-tile { width: 44px; height: 44px; }
  .rq-t { padding-top: 3px; }
}
.req-head.rq-h { background: none; box-shadow: none; border-radius: 0; }
.rq-hr { padding-left: 0; }
.rq-block { left: 72px; min-height: 46px; }
/* Results to check: the request's twin, its records each a framed item. */
:root article.dc.rv4 { background: none; box-shadow: none; padding: 0; border-radius: 0; gap: 26px; display: grid; }
.rv4 .rv-items { gap: 12px; }
.rv4 .review-content { display: grid; gap: 12px; }
.rv4 .rc-count { display: flex; justify-content: space-between; margin: 0 4px; font: 650 17px var(--f-ui); color: var(--ink); }
.rv4 .rc-count .n { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-next { display: flex; align-items: flex-start; gap: 8px; margin: 2px 4px 0; font-size: 13.5px; color: var(--muted); }
.rv-next svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.req-bar .acts.even > .b.wide { grid-column: 1 / -1; }
.dc.sail .req-dock, .dc.sink .req-dock { visibility: hidden; }
@media (max-width: 860px) { .rv4 { padding-bottom: calc(var(--req-bar-h, 0px) + env(safe-area-inset-bottom, 0px) + 24px) !important; } }
.rc-at { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.rc-at svg { width: 15px; height: 15px; }
.rthumb { display: block; flex: none; }
.rthumb .rt-frame { fill: var(--raised); stroke: var(--line); stroke-width: 1; }
.rthumb .rt-on { fill: var(--lagoon); }
.rthumb .rt-off { fill: color-mix(in srgb, var(--muted) 22%, transparent); }
.rthumb .rt-busy { fill: color-mix(in srgb, var(--muted) 45%, transparent); }
/* The request's calendar page (since 2026-10-10): sand header, binder rings, hour lines, events. */
.rthumb.cal .cal-frame { fill: var(--land); stroke: var(--card-edge); stroke-width: .5; }
.rthumb.cal .cal-band { fill: var(--sand); }
.rthumb.cal .cal-ring { fill: color-mix(in srgb, var(--ink) 35%, transparent); }
.rthumb.cal .cal-tick { fill: color-mix(in srgb, var(--ink) 25%, transparent); }
.rthumb.cal .cal-hour { stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-width: .5; fill: none; }
.rthumb.cal .cal-title { fill: var(--on-lagoon); }
.rthumb.cal .cal-soft { fill: var(--lagoon-soft); }
.rthumb.cal .cal-busy { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
.rthumb.cal .cal-plus { fill: var(--lagoon); stroke: var(--land); stroke-width: 1.5; }
.rthumb.cal .cal-plus-sign { stroke: var(--on-lagoon); stroke-width: 1.5; stroke-linecap: round; fill: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rthumb.cal .cal-hour { stroke: rgba(255, 255, 255, .14); } }
:root[data-theme="dark"] .rthumb.cal .cal-hour { stroke: rgba(255, 255, 255, .14); }
/* Permission rows in two lines (approved 2026-10-10). Wide: the name and its
   short limit | the date; the drawing, the account tile and address | the
   approval tick, the week and the uses. Narrow (the rows container under
   520px): the week, uses and tick follow the tile inline, without the
   address, and only the date stays on the right. */
.slist .srow.prow3 { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.srow.prow3 > .pbody.pb2, .srow.prow3 > .pbody.pb2 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; flex: 1; min-width: 0; }
.srow.prow3 .pbody.pb2 > .l1, .srow.prow3 .pbody.pb2 > .l2 { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 22px; }
.srow.prow3 .pb2 .c-nm { flex: 1 1 auto; min-width: 0; display: flex; }
.srow.prow3 .pb2 .c-date { flex: none; display: flex; }
.srow.prow3 .pb2 .nm { display: flex; align-items: baseline; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 15.5px; }
.srow.prow3 .pb2 .nm > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.srow.prow3 .pb2 .nm > .h { flex: 0 100 auto; }
.pb2 .nm > .lim { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 14px; font-weight: 400; }
.pb2 .nm > .glyph, .pb2 .nm > .pre { align-self: center; }
.pb2 .nm > .act-tag { flex: none; margin-left: 2px; }
.pb2 .c-thumb { flex: none; display: inline-flex; line-height: 0; }
.srow.prow3 .pb2 .c-acct { flex: 0 1 auto; min-width: 0; display: flex; font-size: 13.5px; color: var(--muted); }
.pb2 .c-acct .atok { gap: 7px; padding: 0; }
.pb2 .c-acct .acct-tile { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
.pb2 .c-acct .acct-tile .plug { min-width: 10px; min-height: 10px; }
.pb2 .atok.warnt .aname { color: var(--warn); font-weight: 600; }
.srow.prow3 .pb2 .c-sp { flex: 1 1 0; min-width: 0; }
.srow.prow3 .pb2 .c-appr, .srow.prow3 .pb2 .c-use { flex: none; display: inline-flex; align-items: center; min-height: 0; }
.srow.prow3 .pb2 .puse { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum"; }
.srow.prow3 .pb2 .appr { display: inline-flex; color: var(--muted); }
.srow.prow3 .pb2 .appr svg { width: 15px; height: 15px; }
.srow.prow3 .pb2 .pdate { font-size: 13.5px; }
.srow.prow3 > .av { align-self: center; margin: 0; width: 36px; height: 36px; font-size: 14px; }
.pt .frame { fill: var(--raised); stroke: var(--line); stroke-width: 1; }
.pt .on { fill: var(--lagoon); opacity: 1; }
.pt .off { fill: color-mix(in srgb, var(--muted) 22%, transparent); opacity: 1; }
.pt .busy { fill: var(--muted); opacity: .45; }
.ptback { width: 24px; height: 20px; border-radius: 5px; }
@container rows (max-width: 520px) {
  .slist .srow.prow3 { gap: 12px; padding: 16px 14px; }
  .srow.prow3 > .pbody.pb2 { display: grid; }
  .srow.prow3 .pbody.pb2 > .l2 { gap: 8px; }
  .srow.prow3 .pb2 .c-acct { flex: none; min-width: 0; }
  .srow.prow3 .pb2 .c-acct .atok:not(.warnt) .aname { display: none; }
  /* The tick joins the left; the week and uses sit right, under the date (owner, 2026-10-10). */
  .srow.prow3 .pb2 .c-appr { order: 1; }
  .srow.prow3 .pb2 .c-sp { order: 2; }
  .srow.prow3 .pb2 .c-use { order: 3; }
  .srow.prow3 .pb2 .c-use .amb-t { color: var(--muted); }
}
/* The name keeps its room; the limit after it gives way first. */
.srow.prow3 .pb2 .nm > b { flex: 0 0 auto; max-width: 100%; }
.srow.prow3 .pb2 .nm > .lim { flex: 0 1 auto; }
/* A permission's page: the kind tile on its own, then the person row above the bubble. */
.pd-h.perm-title > .rq-tile { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.pd-h.perm-title > .rq-tile svg { width: 24px; height: 24px; }
.perm-page > .rq-who { margin-top: -4px; }
.rq-block { min-height: 56px; padding: 6px 10px; }

/* Activity ends with the latest uses and the way to every use (2026-10-10). */
.recent-sec .see-every .sen { color: var(--lagoon); font-weight: 500; }
.recent-sec .see-every { grid-template-areas: "t go"; grid-template-columns: 1fr auto; }

/* How long a per-action permission lasts: Once, Until a date (with its date) or Forever (2026-10-10). */
.choice-row input.exp-date { appearance: auto; width: auto; height: auto; border: 0; border-radius: 9px; margin: 6px 0 0; padding: 6px 10px; justify-self: start; font: 14px var(--f-ui); color: var(--ink); background: var(--soft); cursor: text; }
.choice-row input.exp-date:checked { border: 0; }
.rq-later { padding-top: 4px; }
.rq-top-t .qline span { overflow-wrap: anywhere; }
.rc-location .rc-who b { font-variant-numeric: tabular-nums; }

/* Answering as a guest, through an invite email's link (pages/Guest.tsx): one
   calm Shell card at the top of every page, never an alarm. */
.guest-bar { display: flex; align-items: center; gap: 14px; margin: 0 auto 18px; width: min(100%, 880px); padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--land); box-shadow: 0 0 0 1px var(--line); }
.guest-ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--shoal); color: var(--focus); }
.guest-ic svg { width: 20px; height: 20px; }
.guest-t { flex: 1; min-width: 0; line-height: 1.35; }
.guest-t p { margin: 0; font-size: 14.5px; }
.guest-t b { font-weight: 600; overflow-wrap: anywhere; }
.guest-t .d { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.guest-bar .b { flex: 0 0 auto; }
@media (max-width: 560px) {
  .guest-bar { flex-wrap: wrap; }
  .guest-ic { display: none; }
  .guest-bar .b { width: 100%; justify-content: center; }
}

/* Your assistants on what you hold (2026-10-13): a quiet marker where one
   asks you first or is blocked, the assistant's mark and a few words, on the
   right of a person's or a permission's row. */
.lim-mark { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lim-mark > svg.agent { width: 14px; height: 14px; flex: none; }
.lim-mark .lm-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lim-mark .lm-more { flex: none; }
.slist .srow > .r .lim-mark { max-width: 340px; }
.srow.prow3 .c-appr { gap: 10px; }
/* You use: its section headings all read alike, Your accounts included. */
.shared .hsec { margin-top: 30px; }
.shared .hsec-h h2 { font-size: 17px; }
/* An account's page: who uses it, one card each, then how settings apply. */
.acct-page .kcards + .acct-start, .acct-page .none + .acct-start { margin-top: 12px; max-width: 640px; }
.acct-page .kc-h > .av { width: 30px; height: 30px; font-size: 12px; }
.acct-page .kcards > .more-lnk { justify-self: start; margin: 0 2px; }
/* A choice that follows other settings: the word, and where to change it. */
.aa-fixed { color: var(--ink); font-weight: 500; }
.aa-why a { white-space: nowrap; }
/* Confirming one use by your own assistant: whose data, from which permission. */
.rv-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.rv-in > .av { width: 22px; height: 22px; font-size: 10px; }
.rv-in b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.rv-in a { color: var(--focus); }
.rv-yours .rv-h { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rv-yours > .rv-next a { color: var(--focus); }
.acct-page .kc-h > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-page .kc-h > .c { flex: none; }
.aa-foot a, .aa-why a { color: var(--focus); }
/* On your own permission over several accounts, Allowed chooses which. */
.aa-accts { grid-column: 2 / -1; display: grid; gap: 8px; justify-items: start; margin-top: 2px; }
.aa-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.aa-checks label { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.aa-checks label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-checks input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--lagoon); }
.aa-lnk { padding: 0; border: 0; background: none; font: 500 13.5px var(--f-ui); color: var(--focus); cursor: pointer; }
.aa-lnk:hover { text-decoration: underline; }
.aa-lnk:disabled { opacity: .6; cursor: default; }
.aa-limit { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
@container aa (max-width: 520px) { .aa-accts { grid-column: 2 / -1; } }
/* A document change (docs.create, append, replace, comment), drawn from its inputs, and a document search's note. */
.sw-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.doc-change { display: grid; min-width: 0; }
.doc-change > .dc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; font-size: 14px; min-width: 0; }
.doc-change > .dc-row + .dc-row { border-top: 1px solid var(--line); }
.doc-change .dc-l { color: var(--muted); font-size: 13.5px; }
.doc-change .dc-v { min-width: 0; overflow-wrap: anywhere; }
.doc-change .dc-v.strong { font-weight: 600; }
/* "Open in Google Docs" (ui/OpenInDocs.tsx): one small control wherever a document can be opened. A thin rim and a soft lift; in dark mode only the rim. */
.doc-open { display: inline-flex; align-items: center; gap: 7px; justify-self: start; align-self: start; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--surface); color: var(--lagoon); font: 500 13.5px/1.2 var(--f-ui); text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 1px var(--card-edge), 0 1px 2px rgba(30, 42, 49, .06); transition: background var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.doc-open:hover { background: color-mix(in srgb, var(--lagoon) 7%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lagoon) 30%, transparent), 0 1px 3px rgba(30, 42, 49, .08); }
.doc-open:active { transform: translateY(1px); }
.doc-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.doc-open svg { width: 15px; height: 15px; flex: none; }
.doc-open svg.doc-open-mark { width: 11px; height: 14px; }
.doc-open svg:last-child { width: 13px; height: 13px; opacity: .8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-open { box-shadow: 0 0 0 1px var(--line); } }
:root[data-theme="dark"] .doc-open { box-shadow: 0 0 0 1px var(--line); }
.rc-open { display: flex; }
.xcard .xo { display: flex; margin-top: 4px; }
.xcard .xo .doc-open { font-size: 13px; padding: 6px 12px 6px 10px; }
.doc-change .dc-v > .doc-open { vertical-align: middle; }
.slist > .doc-change { padding: 2px 16px; }
@media (max-width: 480px) {
  .doc-change > .dc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ------------------------------------------------------- permission page
   One layout for a permission in every state (2026-10-14,
   docs/design/permission-page/spec.md; pages/PermLayout.tsx): the header
   beside the person's island, underline tabs, what they get in one card, the
   terms card, then the one main action. A request's decision floats on a
   phone with no slab of its own (option A): the page fades into the sea
   under it. Rows that open a control carry a chevron; read-only rows none. */
.pp { display: grid; gap: 22px; padding: 6px 0 24px; min-width: 0; }
.pp form, .pp-panel { display: grid; gap: 22px; min-width: 0; }
.pp-card { background: var(--land); border-radius: 22px; box-shadow: 0 0 0 1px var(--card-edge); overflow: hidden; min-width: 0; }
.pp-foot { margin: 0 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Header: the island, then eyebrow, title and status; why they asked lines up with the title. */
.pp-head { display: grid; gap: 14px; min-width: 0; }
.pp-who { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pp-isle { flex: none; display: block; text-decoration: none; border-radius: 50%; }
.pp-isle .av.isle-av { width: 52px; height: 52px; font-size: 20px; }
.pp-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.pp-eyebrow { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; color: var(--muted); font-size: 14.5px; line-height: 1.35; text-decoration: none; }
/* A long name ends in an ellipsis; the username gives way first, whole: it wraps onto a line that is never shown. */
.pp-eb-w { display: flex; flex-wrap: wrap; column-gap: 4px; min-width: 0; height: 1.35em; overflow: hidden; }
.pp-eb-n { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-eb-h { white-space: nowrap; }
.pp-eb-c { width: 11px; height: 11px; flex: none; }
/* Who asks as checked, beside the name they chose: never cut short. */
.pp-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pp-checked .tag { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 8px; }
a.pp-eyebrow:hover { color: var(--ink); }
a.pp-eyebrow:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; border-radius: 4px; }
.pp-title { margin: 0; font: 600 32px/1.13 var(--f-disp); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; }
.pp-status { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.pp-status svg { width: 14px; height: 14px; flex: none; }
.pp-status[data-tone="wait"] { color: var(--warn); font-weight: 600; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); }
.pp-status[data-tone="ended"] .pp-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pp-t > .pnote, .pp-note { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.pp-why { display: flex; gap: 8px; align-items: flex-start; padding-left: 66px; min-width: 0; font-size: 15px; color: var(--ink); }
.pp-why > svg.agent { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.pp-why p { margin: 0; display: grid; gap: 1px; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.pp-why small { font-size: 13px; color: var(--muted); }
/* Underline tabs, the tab kept in the address. */
.pp-tabs { display: flex; gap: 28px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); overflow-x: auto; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs button { flex: none; font: 500 15px var(--f-ui); border: 0; background: transparent; color: var(--muted); padding: 10px 2px 12px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.pp-tabs button:hover { color: var(--ink); }
.pp-tabs button[aria-selected="true"] { color: var(--lagoon); font-weight: 600; border-bottom-color: var(--lagoon); }
.pp-tabs button:focus-visible { outline: 2px solid var(--lagoon); outline-offset: -2px; border-radius: 6px 6px 0 0; }
.pp-count { margin-left: 5px; font-weight: 500; color: var(--muted); }
/* A section: heading left, hint or link right. */
.pp-sec { display: grid; gap: 10px; min-width: 0; }
.pp-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; min-width: 0; }
.pp-sh h2 { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 19px/1.25 var(--f-disp); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.pp-sh h2 .tag, .pp-res-h .tag { font: 600 11px var(--f-ui); color: var(--muted); background: var(--sand); border-radius: 999px; padding: 2px 8px; letter-spacing: 0; }
.pp-hint { flex: none; font-size: 13.5px; color: var(--muted); text-align: right; }
.pp-link { flex: none; font-size: 15px; font-weight: 500; color: var(--lagoon); text-decoration: none; }
/* What they get: the resource, its chips, then a row per part. */
.pp-res-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; min-width: 0; }
.pp-kind { width: 40px; height: 40px; border-radius: 11px; background: var(--sand); display: grid; place-items: center; flex: none; }
.pp-kind svg { width: 20px; height: 20px; color: var(--ink); }
.pp-res-h b { font-size: 16.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pp-res-h .tag { margin-left: auto; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; min-width: 0; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; background: var(--sand); border-radius: 999px; padding: 5px 11px; font-size: 14px; line-height: 19px; }
.pp-chip i { flex: none; font-style: normal; color: var(--muted); }
.pp-chip b { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.pp-chip svg { width: 13px; height: 13px; flex: none; color: var(--muted); }
/* Which emails, folded into the card: its chips and Search as written, no card of its own. */
.pp-chips > .which { flex: 1 1 100%; padding: 0; background: none; box-shadow: none; border-radius: 0; gap: 8px; min-width: 0; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 13px 16px; border: 0; border-top: 1px solid var(--card-edge); background: none; font: 15.5px/1.35 var(--f-ui); color: var(--ink); text-align: left; }
.pp-res > .pp-row:first-child, .pp-terms > .pp-term:first-child > .pp-row { border-top: 0; }
/* The shared parts, read-only: one wrapping flow of a check and a name each, no dividers. */
.pp-flow { list-style: none; margin: 0; padding: 12px 16px; border-top: 1px solid var(--card-edge); display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.pp-flow li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pp-chk { width: 16px; height: 16px; flex: none; color: var(--lagoon); stroke-width: 2.8; }
.pp-flow .pp-chk { width: 14px; height: 14px; }
.pp-not { margin: 0; padding: 12px 16px; border-top: 1px solid var(--card-edge); font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.pp-flow + .pp-not { border-top: 0; padding-top: 0; }
.pp-line { color: var(--muted); font-size: 14px; }
.pp-lims { list-style: none; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--card-edge); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.pp-doc { padding: 0 16px 6px; }
.pp-doc .doc-change > .dc-row:first-child { border-top: 1px solid var(--card-edge); }
.pp-res > .rq-event { padding: 12px 16px; border-top: 1px solid var(--card-edge); }
.pp-tap { cursor: pointer; }
.pp-tap:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pp-tap:focus-visible { outline: 2px solid var(--lagoon); outline-offset: -2px; border-radius: 12px; }
.pp-k { flex: none; color: var(--muted); }
.pp-val, .pp-v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-align: right; }
.pp-v-t { min-width: 0; overflow-wrap: anywhere; }
.pp-v.soon { color: var(--flag); font-weight: 600; }
.pp-v.quiet { color: var(--muted); }
.pp-v-ic { width: 15px; height: 15px; flex: none; color: var(--lagoon); }
.pp-chev { width: 11px; height: 11px; flex: none; color: var(--muted); opacity: .8; transition: transform var(--t-fast) var(--ease); }
.pp-term.open > .pp-row .pp-chev, .pp-accts[aria-expanded="true"] .pp-chev { transform: rotate(90deg); }
.pp-val .pp-k { font-size: 14px; }
/* Changing a permission (2026-10-14): the parts as one tappable block, Ask for longer in lagoon, and the editors' ticks. */
.pp-flow-tap { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 0 16px 0 0; border: 0; border-top: 1px solid var(--card-edge); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pp-flow-tap .pp-flow { flex: 1; border-top: 0; }
.pp-flow-tap:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pp-flow-tap:focus-visible { outline: 2px solid var(--lagoon); outline-offset: -2px; border-radius: 12px; }
.pp-flow-tap + .pp-not { border-top: 0; padding-top: 0; }
.pp-ask .pp-k, .pp-k.pp-ink { color: var(--lagoon); font-weight: 500; }
.pp-k.pp-ink { color: var(--ink); font-weight: 400; }
.pp-muted { color: var(--muted); }
.pp-row:any-link { text-decoration: none; }
.pc-choices { border: 0; margin: 0 0 4px; padding: 0; min-width: 0; }
.pp-status .pp-ext { color: var(--muted); }
.pc-ticks { border: 0; margin: 0 0 4px; padding: 0; display: grid; }
.pc-tick { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--card-edge); cursor: pointer; font-size: 15.5px; }
.pc-tick:first-of-type { border-top: 0; }
.pc-tick input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--lagoon); cursor: pointer; }
.pc-tick input:disabled { cursor: default; }
.choice-row.pc-when { align-items: center; }
.choice-row.pc-when .pc-date { margin-left: auto; color: var(--muted); font-size: 14px; }
/* An opened term: the existing control, under its row. */
.pp-open { padding: 0 16px 10px; min-width: 0; }
.pp-open .choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.pp-open .choice-row:first-of-type { padding-top: 4px; }
.pp-open .req-opt { padding: 4px 0 6px; }
.pp-open .req-opt textarea { width: min(100%, 320px); text-align: left; }
.pp-open .req-note { box-shadow: 0 0 0 1px var(--card-edge); background: var(--surface); }
.pp-acct-edit { border-top: 1px solid var(--card-edge); padding-top: 4px; }
.pp-acct-edit .acct-card.bare { padding: 0; }
.pp-acct-edit .perm-check { margin: 4px 0 0; font-size: 13px; }
/* The accounts a permission reads: the tile (a stack for several), the address, and Accounts › to change them. */
.pp-accts { padding: 12px 16px; }
.pp-acct { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pp-astack { display: inline-flex; flex: none; }
.pp-astack .acct-tile + .acct-tile { margin-left: -8px; }
.pp .acct-tile { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.pp-aname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-amore { flex: none; font-size: 14px; color: var(--muted); }
/* From your accounts, on a request: a round tick, the tile and the address each. */
.pp-accounts { border-top: 1px solid var(--card-edge); padding: 10px 16px 8px; display: grid; gap: 2px; min-width: 0; }
.pp-sub { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.pp-accounts .acct-opt { grid-template-columns: 22px minmax(0, 1fr); padding: 8px 0; font-size: 15.5px; }
.pp-accounts .acct-opt.tiled { grid-template-columns: 22px 26px minmax(0, 1fr); }
.pp-accounts .acct-opt + .acct-opt { border-top: 0; }
.pp-accounts .acct-opt .acct-t b { font-weight: 400; }
.pp .acct-opt input { width: 22px; height: 22px; border: 1.6px solid color-mix(in srgb, var(--muted) 70%, transparent); opacity: 1; }
.pp .acct-opt input:checked { background: var(--lagoon); border-color: var(--lagoon); }
.pp .acct-opt input:checked::after { border-color: var(--on-lagoon); }
.pp-acct-edit .acct-opt.tiled { grid-template-columns: 22px 26px minmax(0, 1fr); }
.pp-one, .pp-pick { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; font-size: 15.5px; }
.pp-pick select { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: transparent; border: 0; padding: 0; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; cursor: pointer; }
.pp-pick .pp-chev { transform: rotate(90deg); }
.pp-pick.one select { pointer-events: none; cursor: default; }
.pp-accounts .acct-note { padding: 4px 0 4px; font-size: 13px; }
.pp-accounts .req-warn { padding: 6px 0; }
/* A part on a request: the round lagoon tick, the label muted above the value in ink. */
.pp .part { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "tick label" "tick value"; column-gap: 12px; row-gap: 1px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--card-edge); min-width: 0; }
.pp label.part { cursor: pointer; }
.pp div.part { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "value"; }
.pp .part .pc { grid-area: tick; display: flex; margin-top: 6px; }
.pp .part .pl { grid-area: label; font-size: 13px; color: var(--muted); }
.pp .part .pv { grid-area: value; display: grid; gap: 4px; min-width: 0; font-size: 15.5px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pp .part .pv .long { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp .part .pf { justify-self: start; font-size: 12.5px; color: var(--muted); }
.pp .part .pn { display: none; }
.pp .part.off .pv { color: var(--muted); }
.pp .part input[type="checkbox"] { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--muted) 70%, transparent); margin: 0; display: grid; place-items: center; background: transparent; cursor: pointer; }
.pp .part input[type="checkbox"]:checked { background: var(--lagoon); border-color: var(--lagoon); }
.pp .part input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--on-lagoon); border-width: 0 2.2px 2.2px 0; transform: translateY(-1px) rotate(45deg); }
.pp .part input[type="checkbox"]:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
/* The preview: the owner's results as a column of cards with only the parts shared. */
.pp .rq-now { background: none; border-radius: 0; padding: 0; gap: 10px; }
.pp .req-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; overflow: visible; }
.pp .req-results > * { flex: none; }
.pp .rq-now .xcard { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--card-edge); padding: 14px; gap: 5px; font-size: 14.5px; }
.pp .rq-now .xcard .xt { font-size: 15.5px; }
.pp .rq-now .xcard .xm b { font-size: 14.5px; }
/* Terms and the request's other details. */
.pp .req-details { margin: -8px 4px 0; }
/* The main action: a full-width capsule in the flag colour, and what it does. */
.pp-main { display: grid; gap: 10px; min-width: 0; }
.pp-end { min-height: 48px; width: 100%; border: 0; border-radius: 999px; background: var(--land); box-shadow: 0 0 0 1px var(--card-edge); color: var(--flag); font: 600 17px var(--f-ui); cursor: pointer; }
.pp-end:hover { background: color-mix(in srgb, var(--flag) 6%, var(--land)); }
.pp-end:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }
.pp-main p { margin: 0 8px; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
/* Activity: the week's bars and count, then the recent uses, day on the left. */
.pp-week-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; font-size: 15.5px; min-width: 0; }
.pp-week-h b { font-weight: 600; }
.pp-amb { color: var(--warn); font-weight: 500; }
.pp-week .spark { height: 28px; gap: 4px; align-items: flex-end; }
.pp-week .spark i { width: 8px; border-radius: 3px; }
.pp-week .spark .on { background: color-mix(in srgb, var(--a1) 80%, var(--land)); }
.pp-week .spark .off { height: 3px; }
.pp-uses { list-style: none; margin: 0; padding: 0; }
.pp-use { position: relative; display: flex; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--card-edge); font-size: 15px; line-height: 1.4; min-width: 0; }
.pp-use:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pp-use:has(.stretch:focus-visible) { outline: 2px solid var(--lagoon); outline-offset: -2px; }
.pp-use-d { width: 84px; flex: none; color: var(--muted); }
.pp-use-t { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pp-use-t b { font-weight: 600; }
.pp-use.stopped .pp-use-t { color: var(--warn); }
.pp-use-t small { font-size: 13px; color: var(--muted); }
.pp-use.change { color: var(--muted); }
.pp-none { margin: 0; color: var(--muted); }
/* Assistants: one card; on a phone the choice fills a row under the name, its one line under that. */
.pp-assist .aa-card { padding: 0; container: aa / inline-size; }
.pp-assist .aa-row { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "ic t seg" "x x x"; column-gap: 10px; row-gap: 8px; padding: 12px 12px 12px 16px; }
.pp-assist .aa-row + .aa-row { border-top: 1px solid var(--card-edge); }
.pp-assist .aa-row > .aa-ic { width: 26px; height: 26px; }
.pp-assist .aa-t b { font-size: 15.5px; }
.pp-assist .aa-t small { font-size: 12.5px; white-space: normal; }
.pp-assist .aa-row > .aa-why { display: none; }
.pp-assist .aa-accts { grid-column: 2 / -1; }
.pp-assist .aa-none { padding: 14px 16px; }
.pp-assist .aa-foot { margin: 0 4px; }
.pp-assist .view-seg button { font-size: 12.5px; padding: 5px 9px; }
@container aa (max-width: 540px) {
  .pp-assist .aa-row { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "ic t" "seg seg" "why why"; padding: 12px 16px; }
  .pp-assist .aa-row > .seg.aa-seg { display: flex; justify-self: stretch; }
  .pp-assist .aa-row > .seg.aa-seg button { flex: 1; min-height: 36px; font-size: 14px; }
  .pp-assist .aa-row > .aa-why { display: block; font-size: 13.5px; }
  .pp-assist .aa-why-in { display: none; }
  .pp-assist .aa-accts { grid-column: 1 / -1; }
}
/* The decision, option A: Decline one part wide, Approve two, the deadline or what is still needed above. */
.req-bar .acts.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.req-bar .acts.pair > .b { justify-content: center; min-height: 50px; padding: 0 18px; border-radius: 999px; font: 600 17px var(--f-ui); }
.req-bar .acts.pair > .b.quiet { border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--card-edge), 0 2px 10px rgba(15, 30, 38, .08); }
.req-bar .acts.pair > .b.primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--lagoon) 28%, transparent); }
.req-bar .acts.pair > .b:disabled { box-shadow: none; }
.look-a .rq-due { justify-content: center; font-size: 14px; font-weight: 400; color: var(--muted); }
.look-a .hint { font-size: 13.5px; text-align: center; }
.look-a .req-bar { gap: 10px; }
@media (max-width: 860px) {
  /* No capsule: the dock paints the sea under the pair, fading in over its upper part. */
  /* Opaque from just above the deadline to the bottom; the fade is only the 64px above it. */
  .req-dock.look-a { padding: 76px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); background: linear-gradient(to bottom, color-mix(in srgb, var(--ground-deep) 0%, transparent), var(--ground-deep) 64px); }
  .req-dock.look-a .req-bar { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .pp form { padding-bottom: calc(var(--req-bar-h, 0px) + env(safe-area-inset-bottom, 0px) + 40px); }
}
@media (max-width: 560px) {
  .pp-title { font-size: 27px; }
  .pp { gap: 20px; }
  .pp-use-d { width: 84px; }
}
/* Who sees what a request gets (D142): the assistant's maker, and that ending access keeps copies. */
.pp-who { padding: 14px 18px; display: grid; gap: 8px; }
.pp-who p { margin: 0; line-height: 1.45; }
.pp-who .pp-who-copies { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------- refresh
   The refresh (2026-10-27): the islands look with light in it. A bluer sea
   lit in three corners, frosted white cards, crisper text, a quiet slate
   accent and visible feedback on every tap. Slate is solid only on the one
   main action of a view (Approve, Save, Copy); anything that repeats on a
   page (the selected place, row buttons, chips) takes the soft tint. */
:root {
  --ink: #0F1D24; --muted: #52636A;
  --land: #FFFFFF; --line: #DCE4E8;
  --lagoon: #46617F; --lagoon-soft: #E1E8F0; --on-lagoon: #FFFFFF; --accent-solid: #46617F;
  --a1: #6E8EF5; --a2: #86B07A; --a3: #F2B53A; --a4: #A98FC9; --a5: #E0957A;
  --glass: rgba(255, 255, 255, .74); --glass-edge: rgba(255, 255, 255, .95);
  --sh-card: 0 0 0 1px var(--glass-edge), 0 16px 40px -26px rgba(10, 60, 90, .45);
  --sh-float: 0 0 0 1px rgba(15, 29, 36, .05), 0 22px 48px -24px rgba(10, 60, 90, .45);
  --hover: color-mix(in srgb, var(--lagoon) 7%, transparent);
  --press: color-mix(in srgb, var(--lagoon) 14%, transparent);
  --bar: color-mix(in srgb, var(--lagoon) 24%, #FFFFFF); --bar-today: var(--lagoon);
  --ground: #D7EDF7; --ground-deep: #C6E1EF;
  --sea:
    radial-gradient(900px 560px at 0% -6%, rgba(130, 210, 245, .5), transparent 70%),
    radial-gradient(800px 520px at 100% 2%, rgba(160, 175, 250, .35), transparent 70%),
    radial-gradient(900px 600px at 95% 100%, rgba(255, 205, 180, .4), transparent 70%),
    linear-gradient(180deg, #D7EDF7 0%, #CBE4F1 50%, #C6E1EF 100%);
}
/* Night at sea: deep blue with the same three lights, cards of faint white. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7EEF0; --muted: #A3B4BC;
    --land: #13283A; --surface: #183244; --line: #24394A;
    --lagoon: #A9BDD6; --lagoon-soft: #1F3142; --on-lagoon: #0F1D24; --accent-solid: #4E6B8B;
    --glass: rgba(255, 255, 255, .06); --glass-edge: rgba(255, 255, 255, .10);
    --sh-card: 0 0 0 1px var(--glass-edge), 0 18px 40px -26px rgba(0, 0, 0, .6);
    --sh-float: 0 0 0 1px var(--glass-edge), 0 22px 48px -24px rgba(0, 0, 0, .75);
    --bar: color-mix(in srgb, var(--lagoon) 30%, #13283A);
    --ground: #0B2838; --ground-deep: #071822;
    --sea:
      radial-gradient(900px 560px at 0% -6%, rgba(40, 200, 220, .25), transparent 70%),
      radial-gradient(800px 520px at 100% 2%, rgba(90, 120, 255, .2), transparent 70%),
      radial-gradient(900px 600px at 95% 100%, rgba(255, 140, 110, .11), transparent 70%),
      linear-gradient(180deg, #0B2838 0%, #091F2D 50%, #071822 100%);
  }
}
:root[data-theme="dark"] {
  --ink: #E7EEF0; --muted: #A3B4BC;
  --land: #13283A; --surface: #183244; --line: #24394A;
  --lagoon: #A9BDD6; --lagoon-soft: #1F3142; --on-lagoon: #0F1D24; --accent-solid: #4E6B8B;
  --glass: rgba(255, 255, 255, .06); --glass-edge: rgba(255, 255, 255, .10);
  --sh-card: 0 0 0 1px var(--glass-edge), 0 18px 40px -26px rgba(0, 0, 0, .6);
  --sh-float: 0 0 0 1px var(--glass-edge), 0 22px 48px -24px rgba(0, 0, 0, .75);
  --bar: color-mix(in srgb, var(--lagoon) 30%, #13283A);
  --ground: #0B2838; --ground-deep: #071822;
  --sea:
    radial-gradient(900px 560px at 0% -6%, rgba(40, 200, 220, .25), transparent 70%),
    radial-gradient(800px 520px at 100% 2%, rgba(90, 120, 255, .2), transparent 70%),
    radial-gradient(900px 600px at 95% 100%, rgba(255, 140, 110, .11), transparent 70%),
    linear-gradient(180deg, #0B2838 0%, #091F2D 50%, #071822 100%);
}

/* The sea is drawn as if the page were 2,700px tall, as on the landing page,
   so a screen shows a gentle slice of the light rather than all of it at
   once. Past that it continues in its deepest colour. No wave lines. */
html { background: var(--sea) center top / 100% 2700px no-repeat var(--ground-deep); }
.shell::before { display: none; }

/* Frosted white cards over the sea: one level, rows inside stay flat. */
.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note,
.topbar .nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: var(--sh-card), inset 0 1px 0 color-mix(in srgb, #FFFFFF 70%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note, .topbar .nav) { background: var(--glass); box-shadow: var(--sh-card); }
}
:root[data-theme="dark"] :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note, .topbar .nav) { background: var(--glass); box-shadow: var(--sh-card); }
.callout.quiet { background: color-mix(in srgb, var(--lagoon-soft) 80%, transparent); }
/* Cards inside a card are not glass again. */
:is(.slist, .card, .pane) :is(.slist, .card) { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* Readers who ask for less transparency get solid cards. */
@media (prefers-reduced-transparency: reduce) {
  .slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note, .topbar .nav { background: var(--land); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Bigger, tighter titles in Familjen Grotesk. */
.vh h1 { font-size: clamp(32px, 4vw, 40px); letter-spacing: -.03em; }

/* Slate, used quietly. */
.b.primary { background: var(--accent-solid); border-color: var(--accent-solid); color: #FFFFFF; }
.b.primary:hover { background: color-mix(in srgb, var(--accent-solid) 88%, #000000); border-color: transparent; }
.b.tint { background: var(--lagoon-soft); border-color: transparent; color: var(--lagoon); font-weight: 600; }
.b.tint:hover { background: color-mix(in srgb, var(--lagoon-soft) 86%, var(--lagoon)); border-color: transparent; }
.nav a[aria-current="page"], .topbar .nav a[aria-current="page"] { background: var(--lagoon-soft); color: var(--ink); font-weight: 600; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar .nav a[aria-current="page"] { background: var(--lagoon-soft); }
}
:root[data-theme="dark"] .topbar .nav a[aria-current="page"] { background: var(--lagoon-soft); }
.req-bar .acts.pair > .b.primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-solid) 30%, transparent); }
.lk-ic.link, .acct-tile .plug, .face-b { background: var(--accent-solid); color: #FFFFFF; }
.av.isle-av.me { background: var(--accent-solid); color: #FFFFFF; }
/* Avatars hold on glass with a thin white ring. */
.av.isle-av { box-shadow: 0 0 0 2px var(--land); }

/* Tap feedback: everything you can tap shows that you tapped it, within 50ms
   and settling in under 300ms. Hover alone never fires on a phone. */
.b, .chip, .seg button, .view-seg button, .iconbtn, .doc-open, .sw-pill, .nav a, .utabs button, .pp-tabs button {
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, opacity var(--t-fast) ease, transform 240ms cubic-bezier(.3, 1.4, .5, 1), box-shadow var(--t-fast) ease;
}
.b:active:not(:disabled), .chip:active, .seg button:active, .view-seg button:active, .iconbtn:active, .doc-open:active, .sw-pill:active { transform: scale(.97); transition-duration: 40ms; }
.b.primary:active:not(:disabled) { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .16); }
.b.tint:active:not(:disabled), .b.quiet:active:not(:disabled), .b:not(.primary):not(.tint):active:not(:disabled) { background: color-mix(in srgb, var(--lagoon-soft) 70%, var(--lagoon) 18%); }
.nav a:active, .topbar .nav a:active { background: var(--press); transform: scale(.97); }
/* Rows: the whole row tints, 7% on hover and 14% pressed. */
.linked, .srow, .slist .srow.clickable, .acts li.clickable, .pd .item, .gc-h, .grp-more, .mi, .pp-tap, .pp-flow-tap, .pp-use, .add-row, .pslim { transition: background var(--t-fast) ease; }
.linked:hover, .slist .srow.clickable:hover, .acts li.clickable:hover, .pd .item:hover, .gc-h:hover, .grp-more:hover, button.srow:hover, .add-row:hover, .pp-tap:hover, .pp-flow-tap:hover, .pp-use:hover { background: var(--hover); }
.linked:active, .slist .srow.clickable:active, .acts li.clickable:active, .pd .item:active, .gc-h:active, .grp-more:active, button.srow:active, .add-row:active, .pp-tap:active, .pp-flow-tap:active, .pp-use:active, .mi:active, .pslim:active { background: var(--press); transition-duration: 40ms; }
.ccard.add:active, .xcard.linked:active { transform: scale(.97); }
/* A button on a row (Review, Reconnect) is pressed on its own, not the row. */
.linked:has(.b:active) { background: var(--hover); }
/* Links and text buttons dim while pressed. */
.lnk:active, a.plain:active, .back-lnk:active, a.pp-eyebrow:active, .pp-link:active, .aa-lnk:active, .acrow .ac-line a:active, .facts dd a:active, .gnote a:active, .pnote a:active, .notice a:active, .pd-h .sub a:active, .acrow > .ac-people:active, .achip.more:active, .rc-all summary:active { opacity: .6; transition-duration: 40ms; }
.srow.xrow:not(.linked):hover, .srow.xrow:not(.linked):active, .sk-list .srow.sk-row:active { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .b:active, .chip:active, .nav a:active, .ccard.add:active, .xcard.linked:active { transform: none; }
}
.b.danger:active:not(:disabled) { background: var(--flag-soft); }
/* The band behind the floating header frosts what scrolls under it rather
   than painting a flat strip of sea over the light. */
.shell > .top-band {
  background: color-mix(in srgb, var(--ground) 35%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--cap-top) + var(--cap-h)), transparent);
  mask-image: linear-gradient(180deg, #000 calc(var(--cap-top) + var(--cap-h)), transparent);
}

/* The server in the header, when it has no wordmark: its initial on a slate
   tile, its name and, smaller, its address. A long name ends in "…" and the
   full name and address are in the link's title. */
.brand-link .srv { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 260px; }
.srv-tile { width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--accent-solid); color: #FFFFFF; display: grid; place-items: center; font: 600 15px/1 var(--f-disp); }
.srv-text { display: grid; min-width: 0; text-align: left; }
.srv-name { font: 600 16px/1.2 var(--f-disp); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-addr { font: 400 12px/1.3 var(--f-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appnav .brand-link:has(.srv) { min-width: 0; flex: 0 1 auto; border-radius: 999px; padding: 2px 12px 2px 2px; margin-left: -12px; }
.appnav .brand-link:has(.srv):hover { background: var(--hover); }
.appnav .brand-link:has(.srv):active { background: var(--press); }
@media (max-width: 860px) {
  .brand-link .srv { max-width: calc(100vw - 120px); }
}

/* Long names wrap to a second line before they end in "…", and nothing is
   cut in the middle. A name that shares its line with a handle stays on one. */
.srow .t > b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }

/* Forms before sign-in: labels on the left over 320px fields, the button as
   wide as they are. Setup's longer form sits on a card. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

/* Server admin's pages: a row of tabs under the title, links drawn as the
   permission page's tabs. */
.admin-tabs { margin: -4px 0 4px; }
.pp-tabs a { flex: none; font: 500 15px var(--f-ui); color: var(--muted); padding: 10px 2px 12px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.pp-tabs a:hover { color: var(--ink); }
.pp-tabs a[aria-current="page"] { color: var(--lagoon); font-weight: 600; border-bottom-color: var(--lagoon); }
.pp-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 6px 6px 0 0; }
@media (max-width: 560px) { .admin-tabs { gap: 20px; } }
.admin .pane.form h3.ct { margin-top: 10px; }
.admin .pane.form h4.ct { font-size: 14px; margin-top: 6px; }
/* A switch is on in the quiet slate, and sits at the row's end. */
.switch input:checked + .sw-ui { background: var(--accent-solid, var(--lagoon)); }
.switch { display: inline-flex; align-items: center; }
/* A row whose end is a switch or a status keeps it beside the text, centred. */
.srow.xrow.acrow:has(> .xf > .switch:only-child), .srow.xrow.acrow:has(> .xf > .st:only-child) { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "lead t f"; align-items: center; }
.srow.xrow.acrow > .xf:has(> .switch:only-child) { align-self: center; }
/* Limits two to a row, so the Server page's one form stays short. */
.admin .limit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: end; }
@media (max-width: 560px) { .admin .limit-grid { grid-template-columns: minmax(0, 1fr); } }

/* One row per sign-in: its services as chips, each opening its own page above the row's link (D156). */
.acrow .ac-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.acrow .ac-services .pp-chip { position: relative; z-index: 1; text-decoration: none; color: var(--ink); font-size: 12.5px; padding: 3px 9px; }
.acrow .ac-services .pp-chip:hover { background: var(--lagoon-soft); }
.acrow .ac-services .pp-chip.amb { background: var(--warn-soft); color: var(--warn); }
.acct-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.acct-services .pp-chip { text-decoration: none; color: var(--ink); }
.acct-services .pp-chip[aria-current="page"] { background: var(--lagoon-soft); color: var(--lagoon); font-weight: 500; }

/* The privacy policy and terms: a document in the app, or on the sea's card when signed out. */
.legal-doc { padding: 24px 26px; text-align: left; }
.legal-doc h1 { font-family: var(--f-disp); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; }
.legal-doc h2 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { padding-left: 20px; margin: 0 0 12px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--lagoon); }

/* An admin's notices of changes central made to the settings, on Home (D161). */
.settings-notices .notice p { margin: 0 0 10px; }

/* A copy box fits its column on a phone: its value scrolls inside it. */
.addr { min-width: 0; max-width: 100%; box-sizing: border-box; }
.addr code { width: 0; }
/* A setup guide's step number, legible in both themes; its title wraps. */
.guide-num { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--lagoon-soft); color: var(--ink); font: 700 16px/1 var(--f-ui); }
.srow.guide-row .t > .nm, .srow.guide-row .t > .nm > h3 { white-space: normal; overflow: visible; text-overflow: clip; }
/* A row's own links start under its title on a phone too, not in the middle. */
.srow.xrow.acrow > .xf > .ac-acts:only-child { margin-left: 0; }
/* A guide step is one line: its number, its title, then Open. */
.srow.xrow.acrow.guide-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "lead t f"; align-items: center; }
.srow.xrow.acrow.guide-row > .xf { align-self: center; }

/* ------------------------------------------------------------ redesign
   The redesign (2026-10-30). Colours say one thing each: red is a deadline
   (a request about to expire), amber needs attention (access ending soon),
   grey is plain fact ("No end date"). An empty state is not a card, so it
   never reads as something to tap: one icon in a soft circle inside a flat,
   lighter well, with the first step, when there is one, inside it. */
.srow.prow3 .pdate.soon, .hline .soon, .pd-h .t .hline .soon, .pd-h .t .perm-head .soon, .pp-v.soon { color: var(--warn); }
.empty.well { gap: 6px; margin-top: 8px; padding: 28px 24px 30px; border-radius: 24px; background: rgba(255, 255, 255, .32); }
.empty.well .eic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--lagoon-soft); color: var(--lagoon); }
.empty.well .eic svg { width: 26px; height: 26px; }
.empty.well > span { max-width: 420px; font-size: 14.5px; line-height: 1.5; }
.empty.well .empty-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .empty.well { background: rgba(255, 255, 255, .04); }
}
:root[data-theme="dark"] .empty.well { background: rgba(255, 255, 255, .04); }

/* The current place in the header is the one solid slate pill. */
.topbar .nav a[aria-current="page"] { background: var(--accent-solid); color: var(--on-lagoon); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar .nav a[aria-current="page"] { background: var(--accent-solid); color: #FFFFFF; }
}
:root[data-theme="dark"] .topbar .nav a[aria-current="page"] { background: var(--accent-solid); color: #FFFFFF; }

/* Home: the week as a headline that opens Activity, a note for each account
   to sign in to again, Needs you with the person as the subject, then
   Connectors and Agents side by side, three rows each. */
.home2 { display: grid; width: min(100%, 1080px); margin-inline: auto; }
.home2 > .vh-home { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-hero { display: flex; align-items: center; gap: 24px; margin: 0 -16px 8px; padding: 12px 16px; border-radius: 20px; color: inherit; text-decoration: none; }
.home-hero:hover { background: var(--hover); }
.home-hero:active { background: var(--press); }
.home-hero .hero-t { display: grid; min-width: 0; }
.home-hero h2 { margin: 0; font: 600 13.5px/1.3 var(--f-ui); color: var(--muted); }
.home-hero .hn { margin-top: 6px; font: 600 44px/1 var(--f-disp); letter-spacing: -.035em; }
.home-hero .hn small { margin-left: 8px; font: 600 19px/1 var(--f-disp); letter-spacing: 0; color: var(--muted); }
.home-hero.zero .hn { color: var(--muted); }
.home-hero .hu { margin-top: 8px; font-size: 14px; color: var(--muted); }
.home-hero .amb-t { font-style: normal; font-weight: 600; color: var(--warn); }
.home-hero .wbars.labelled { flex: none; height: 70px; gap: 9px; margin-left: auto; }
.home-hero .wbars.labelled .wcol { width: 16px; }
.hnotes { display: grid; gap: 10px; margin-top: 6px; }
.hnote { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 16%, transparent); }
.hnote .t { display: grid; flex: 1; min-width: 0; }
.hnote .t1 b { font-weight: 600; color: var(--warn); }
.hnote .t2 { font-size: 13.5px; color: color-mix(in srgb, var(--warn) 85%, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hnote .b.sm { flex: none; background: var(--land); color: var(--warn); border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.home2 .hsec { margin-top: 0; }
.hsh { display: flex; align-items: baseline; gap: 8px; margin: 28px 2px 10px; }
.hsh h2 { margin: 0; font: 600 18px/1.2 var(--f-disp); }
.hsh .n { font-size: 13.5px; font-weight: 600; color: var(--flag); }
.hlist, .hcard { padding: 0; overflow: hidden; list-style: none; }
.hrow-li + .hrow-li, .hlist > .hrow + .hrow, .hcard > .hrow + .hrow, .hcard > .hfoot, .hlist > .grp-more-li { border-top: 1px solid var(--line); }
.hrow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease); }
.hrow:hover { background: var(--hover); }
.hrow:active { background: var(--press); }
.hrow > .agent, .hrow .face > .agent { width: 36px; height: 36px; flex: none; }
.hrow .face { position: relative; flex: none; }
.hrow .t { display: grid; flex: 1; min-width: 0; }
.hrow .t1 { font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .t1 b { font-weight: 600; }
.hrow .t2 { margin-top: 1px; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .hdue { flex: none; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.hrow .hdue.soon { color: var(--flag); font-weight: 600; }
.hrow .lead, .hfoot .lead { display: grid; place-items: center; width: 36px; height: 36px; flex: none; }
.hrow .lead.soft { border-radius: 50%; background: var(--lagoon-soft); color: var(--lagoon); }
.hrow .lead svg, .hfoot .lead svg { width: 18px; height: 18px; }
.hduo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.hduo.one { grid-template-columns: 1fr; }
.hduo .empty.well { margin-top: 0; padding-block: 24px 26px; }
.hcard .hrow { padding: 11px 14px; }
.hfoot { display: flex; align-items: stretch; }
.hadd { display: flex; flex: 1; align-items: center; gap: 14px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--lagoon); text-decoration: none; }
.hadd .lead.dash { border: 1.5px dashed var(--bar); border-radius: 10px; }
.hall { display: flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.hfoot .hcount { flex: 1; align-self: center; padding: 12px 14px; font-size: 14px; color: var(--muted); }
button.hall { border: 0; border-left: 1px solid var(--line); background: none; font-family: inherit; cursor: pointer; }
.hadd:hover, .hall:hover { background: var(--hover); color: var(--ink); }
.hadd:active, .hall:active { background: var(--press); }
@media (max-width: 760px) {
  .hduo { grid-template-columns: 1fr; }
  .home-hero { flex-wrap: wrap; }
  .home-hero .wbars.labelled { width: 100%; justify-content: space-between; margin-left: 0; }
  .home-hero .hn { font-size: 38px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hnote .b.sm { background: color-mix(in srgb, var(--warn) 16%, transparent); box-shadow: none; }
}
:root[data-theme="dark"] .hnote .b.sm { background: color-mix(in srgb, var(--warn) 16%, transparent); box-shadow: none; }

/* A request (PR 3): the sentence, the person and their agent's words, one
   card whose rows open in place or in a popover, the company line, then the
   deadline beside Refuse and Approve. */
.rq { display: grid; gap: 24px; min-width: 0; }
.rq-head { display: grid; gap: 14px; min-width: 0; }
.rq-title { margin: 0; font: 600 30px/1.15 var(--f-disp); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; }
.rq-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rq-face { display: block; flex: none; line-height: 0; text-decoration: none; }
.rq-face .av.isle-av { width: 44px; height: 44px; font-size: 17px; }
.rq-pt { display: grid; gap: 1px; min-width: 0; }
.rq-name { display: inline-flex; align-items: center; gap: 4px; width: fit-content; font-size: 15.5px; color: var(--ink); text-decoration: none; }
.rq-name b { font-weight: 600; }
.rq-name svg { width: 14px; height: 14px; color: var(--muted); }
.rq-pt .pp-checked, .rq-handle { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.rq-status { margin: 0; font-size: 14px; color: var(--muted); }
.rq-quote { display: grid; gap: 3px; margin: 0; padding: 6px 0 6px 16px; border-left: 3px solid color-mix(in srgb, var(--muted) 35%, transparent); }
.rq-quote p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.rq-quote small { font-size: 13px; color: var(--muted); }
.rq form { display: grid; gap: 12px; min-width: 0; }

.card.rq-card { position: relative; z-index: 2; overflow: visible; padding: 22px 24px 6px; border-radius: 22px; }
.rq-ch { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; }
.rq-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--lagoon-soft); color: var(--lagoon); }
.rq-ic svg { width: 20px; height: 20px; }
.rq-cht { display: grid; gap: 3px; min-width: 0; }
.rq-cht small { font-size: 13px; font-weight: 600; color: var(--muted); }
.rq-cht h2 { margin: 0; font: 500 19px/1.3 var(--f-ui); color: var(--muted); overflow-wrap: anywhere; }
.rq-cht h2 b { font-weight: 650; color: var(--ink); }
.rq-chips { margin: -6px 0 14px; }
.rq-chips .slist.which { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rq-lims { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px 58px; padding: 0; list-style: none; }
.rq-lims li { padding: 4px 10px; border-radius: 999px; background: var(--lagoon-soft); font-size: 13px; color: var(--ink); }
.rq-card .req-warn { margin-bottom: 8px; }
.rq-note { margin: -4px 2px 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.rq-foot { margin: 6px 2px 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.rq-company { margin: 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Rows: the label in ink, the choice muted on the right. */
.rq-rows { display: grid; min-width: 0; }
.rq-row { position: relative; min-width: 0; border-top: 1px solid var(--line); }
.rq-tap { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 10px 2px; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
button.rq-tap, label.rq-tap { cursor: pointer; }
.rq-k { display: grid; gap: 2px; min-width: 0; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.rq-k small { font-size: 13px; font-weight: 400; color: var(--muted); }
.rq-v { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; text-align: right; color: var(--muted); }
.rq-v b { font-weight: 600; color: var(--lagoon); }
.rq-vt { overflow-wrap: anywhere; }
.rq-chev { flex: none; width: 14px; height: 14px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.rq-row.inline .rq-chev { transform: rotate(90deg); }
.rq-row.inline.open .rq-chev { transform: rotate(-90deg); }
.rq-lock { gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rq-lock svg { width: 14px; height: 14px; color: var(--muted); }
.rq-tap.switch input { top: 50%; right: 2px; transform: translateY(-50%); }
.rq-select { max-width: 60%; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--lagoon-soft); font: inherit; font-size: 14.5px; color: var(--ink); }
.rq-open { display: grid; gap: 10px; padding: 0 2px 16px; min-width: 0; }
.rq-open .req-note { width: 100%; }
.rq-now { display: grid; gap: 10px; }
.rq-pop { position: absolute; top: calc(100% - 8px); right: 0; z-index: 20; width: min(340px, 100%); padding: 4px 0 12px; border-radius: 18px; background: var(--raised); box-shadow: 0 0 0 1px var(--raised-edge), var(--raised-lift); }
.rq-choices, .rq-ticks { min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-choice, .rq-tick { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; }
.rq-choice + .rq-choice, .rq-tick + .rq-tick { border-top: 1px solid var(--line); }
.rq-choice > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.rq-choice b { font-size: 15px; font-weight: 500; }
.rq-choice small { font-size: 13px; color: var(--muted); }
/* The chosen end carries a check, as the phones' sheet does. */
.rq-choice input[type="radio"] { appearance: none; flex: none; width: 15px; height: 9px; margin: 0 2px 4px 0; border: 0; transform: rotate(-45deg); }
.rq-choice input[type="radio"]:checked { border-bottom: 2px solid var(--lagoon); border-left: 2px solid var(--lagoon); }
.rq-choice input[type="radio"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.rq-choice input[type="date"] { padding: 4px 8px; border: 0; border-radius: 8px; background: var(--lagoon-soft); font: inherit; font-size: 14px; color: var(--ink); }
.rq-tick input { appearance: none; display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 6px; }
.rq-tick input:checked { border-color: var(--accent-solid); background: var(--accent-solid); }
.rq-tick input:checked::after { content: ""; width: 9px; height: 5px; border-bottom: 2px solid var(--on-lagoon); border-left: 2px solid var(--on-lagoon); transform: translateY(-1px) rotate(-45deg); }
.rq-tick input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rq-tick input:not(:checked) + span { color: var(--muted); }
.rq-pop-note { margin: 8px 16px 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* A write's first message or event, as it would go. */
.rq-first { margin-bottom: 16px; overflow: hidden; border-radius: 16px; background: var(--land); box-shadow: 0 0 0 1px var(--line); }
.rq-fh { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.rq-fh b { font-weight: 600; color: var(--muted); }
.rq-fh span { font-weight: 600; color: var(--lagoon); }
.rq-fl { margin: 0; }
.rq-fl > div { display: flex; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.rq-fl dt { flex: none; width: 64px; color: var(--muted); }
.rq-fl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rq-fb { margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-first .rq-event { padding: 0 14px 14px; }

/* The decision: the deadline on the left, Refuse and Approve on the right. */
.look-b .req-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 10px; }
.look-b .rq-due, .look-b .hint { justify-content: flex-start; margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.look-b .form-error { flex-basis: 100%; order: -1; }
.look-b .acts.pair { display: flex; gap: 12px; margin-left: auto; }
.look-b .acts.pair > .b { justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--f-ui); }
.look-b .acts.pair > .b.primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-solid) 28%, transparent); }
.look-b .acts.pair > .b:disabled { box-shadow: none; }
@media (max-width: 860px) {
  .rq-title { font-size: 26px; }
  .card.rq-card { padding: 18px 16px 4px; }
  .rq-lims { margin-left: 0; }
  /* Under the fixed decision bar a popover would hide: it opens in place. */
  .rq-pop { position: static; width: auto; padding: 0 0 8px; border-radius: 0; background: none; box-shadow: none; }
  .rq-choice, .rq-tick { padding: 11px 2px; }
  .rq-pop-note { margin: 8px 2px 0; }
  .req-dock.look-b { padding: 76px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); background: linear-gradient(to bottom, color-mix(in srgb, var(--ground-deep) 0%, transparent), var(--ground-deep) 64px); }
  .req-dock.look-b .req-bar { flex-direction: column; align-items: stretch; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .look-b .rq-due, .look-b .hint { justify-content: center; }
  .look-b .acts.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-left: 0; }
  .rq form { padding-bottom: calc(var(--req-bar-h, 0px) + env(safe-area-inset-bottom, 0px) + 40px); }
}

/* You share and a person (PR 4): chips by kind, one list of people with one
   status pill each, and a person's page as cards of rows. */
.ychips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.ychip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--glass, var(--land)); box-shadow: 0 0 0 1px var(--card-edge); font: 500 14.5px var(--f-ui); color: var(--ink); cursor: pointer; }
.ychip svg { width: 15px; height: 15px; color: var(--muted); }
.ychip .n { color: var(--muted); font-weight: 400; }
.ychip[aria-pressed="true"] { background: var(--accent-solid); box-shadow: none; color: var(--on-lagoon); }
.ychip[aria-pressed="true"] svg, .ychip[aria-pressed="true"] .n { color: inherit; opacity: .85; }
.ylist .hrow .t1 { white-space: normal; }
.ypill { flex: none; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 14%, transparent); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ypill.soon, .ypill.amb { background: var(--warn-soft, color-mix(in srgb, var(--warn) 14%, transparent)); color: var(--warn); }
.ypill.flag { background: color-mix(in srgb, var(--flag) 12%, transparent); color: var(--flag); }
.ended-list .hrow { opacity: .75; }
.ps2 .pd { display: grid; gap: 22px; }
.ps2 .ps-h { align-items: center; }
.ps2 .ps-h .sub { color: var(--muted); }
.ps2 section { display: grid; gap: 10px; }
.ps2 .hsh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px; }
.ps2 .hsh h2 { margin: 0; font: 600 18px var(--f-disp); color: var(--ink); }
.ps-wait .hrow > .b { flex: none; }
.ps2 .person-end { display: flex; justify-content: flex-start; padding-top: 6px; }
@media (max-width: 760px) { .ylist .hrow .ypill { align-self: flex-start; } }

/* Shared with you (PR 5): Waiting for them, then People, each under a small
   heading with its count; a limit on your agents in the row's second line. */
.ys2 .ygroup { display: grid; gap: 10px; margin-top: 18px; }
.ys2 .hsh { margin: 0 2px; }
.ys2 .hsh h2 { margin: 0; font: 600 17px var(--f-disp); color: var(--ink); }
.ys2 .hsh h2 .c { margin-left: 4px; font: 500 14px var(--f-ui); color: var(--muted); }
.ys2 .ychips { margin: 0; }
.ylim { color: var(--lagoon); font-weight: 500; }
.ypill.line { background: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.hnote .lead { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--land); color: var(--warn); }
.hnote .lead svg { width: 18px; height: 18px; }
.ps-act { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-weight: 600; }
.ps-act svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .ys-sent .hrow { flex-wrap: wrap; row-gap: 6px; }
  .ys-sent .hrow .t { flex-basis: calc(100% - 50px); }
  .ys-sent .hrow .t1 { white-space: normal; }
  .ys-sent .hrow .ypill { margin-left: 50px; }
}

/* A permission (PR 6): the request page's title and card, the person as the
   card's first row, your agents with a menu each, and the last few uses. */
.pg2 .pp { display: grid; gap: 20px; }
.pg2 .pg-sec { display: grid; gap: 10px; }
.pg2 .hsh { margin: 0 2px; }
.pg2 .hsh h2 { margin: 0; font: 600 17px var(--f-disp); color: var(--ink); }
.pg2 .hsh h2 .c { margin-left: 4px; font: 500 14px var(--f-ui); color: var(--muted); }
.rq-who { display: block; color: inherit; text-decoration: none; }
.rq-who:hover { background: var(--hover); }
.rq-who .rq-v { gap: 10px; }
.rq-pn { display: grid; text-align: left; }
.rq-pn b { color: var(--ink); font-weight: 600; }
.rq-pn small { font-size: 13px; color: var(--muted); }
.pg-soon { font-weight: 600; color: var(--warn); }
.pg-state { position: relative; display: inline-flex; align-items: center; flex: none; border-radius: 999px; color: var(--muted); }
.pg-state select { appearance: none; min-height: 32px; padding: 0 30px 0 12px; border: 0; border-radius: 999px; background: none; font: 600 14px var(--f-ui); color: inherit; cursor: pointer; }
.pg-state svg { position: absolute; right: 10px; width: 13px; height: 13px; transform: rotate(90deg); pointer-events: none; }
.pg-state.ask { background: var(--lagoon-soft); color: var(--lagoon); }
.pg-state.blocked { background: var(--warn-soft); color: var(--warn); }
.pg-agent .aa-accts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 13.5px; }
.pg-agent .aa-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pg-foot { margin: 0 4px; font-size: 13.5px; color: var(--muted); }
.hrow .lead.soft.amb { background: var(--warn-soft); color: var(--warn); }
.pp-recent .t2 { white-space: normal; }
.pg2 .pp-main { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
.pg2 .pp-main p { margin: 0; text-align: left; }
.pg2 .pp-end { flex: none; width: auto; min-height: 36px; padding: 0 16px; background: color-mix(in srgb, var(--flag) 10%, transparent); box-shadow: none; font-size: 14.5px; }
@media (max-width: 760px) { .pg2 .pp-main { flex-direction: column-reverse; align-items: stretch; } .pg2 .pp-end { min-height: 44px; } }
/* Connectors and Agents (D171): rows open their own page; Add a connector and Connect another agent close the list. */
.hrow > .hchev { flex: none; width: 14px; height: 14px; color: var(--muted); }
.hrow.gone { opacity: .75; }
.hrow > .b { flex: none; }
button.hadd { border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.main .back-lnk + .vh { padding-top: 6px; }
.ag-connect { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 18px; }
.ag-connect .t { flex: 1; min-width: 0; }
.ag-connect h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ag-connect p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.ag-connect code { display: inline-block; max-width: 100%; margin-top: 10px; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--muted) 12%, transparent); font-size: 14px; overflow-wrap: anywhere; }
.ag-connect > .b { flex: none; }
.ag-foot { margin: 14px 2px 0; font-size: 14px; color: var(--muted); }
.ag-foot .lnk { font-weight: 600; }
.agents-page details.info { margin-top: 10px; }
@media (max-width: 760px) { .ag-connect { flex-direction: column; align-items: stretch; } }
@media (max-width: 520px) { .hrow > .ac-use { display: none; } }
/* A connector's page and an agent's page (D172): sections of row cards, the activity link, and the actions at the foot. */
.cn2, .aa2 { display: grid; gap: 22px; }
.pd.cn2 > .pd-h, .pd.aa2 > .pd-h { margin: 0 0 6px; padding-bottom: 0; }
.cn2 > section, .aa2 > section { margin: 0; }
.cn2 .hsh, .aa2 .hsh { margin: 0 0 8px; padding-top: 0; }
.aa-lede { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
.aa-used { display: inline-flex; justify-self: start; align-items: center; gap: 4px; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--lagoon); text-decoration: none; }
.aa-used svg { width: 13px; height: 13px; }
.aa-used:hover { color: var(--ink); }
.cn-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cn2 .pp-end, .aa2 .pp-end { margin-top: 4px; }
.aa-row .t1.plain { color: inherit; text-decoration: none; }
.aa-row .t1.plain:hover { text-decoration: underline; }
.aa-row .t2.soon { color: var(--warn); }
.aa-row .t2.err { color: var(--flag); white-space: normal; }
.aa-row .t1, .aa-row .t2 { white-space: normal; }
/* Activity (D173): chips and Find a person on one line, a day per card, a use per row with its time first; a stopped one in amber. */
.act2 .act-tools { margin-bottom: 14px; }
.act-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.act-chips .ychips { flex: 1 1 auto; min-width: 0; margin: 0; }
.ychip.stop { color: var(--warn); }
.ychip.stop[aria-pressed="true"] { background: var(--warn-soft); }
.act2 .day-sec { margin-top: 18px; }
.act2 .day-sec > h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.act2 .day-sec > h2 .c { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.uses2 .hrow { align-items: center; }
.uses2 .hwhen { flex: none; min-width: 64px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.uses2 .t1, .uses2 .t2 { white-space: normal; }
.uses2 .hrow.stopped .t1 b { color: var(--warn); }
.uses2 .hkind { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }
.uses2 .hkind svg { width: 15px; height: 15px; }
.en2 { display: grid; gap: 16px; }
.en2 .pd-h { margin: 0; }
.en2 .pd-h > .av { width: 48px; height: 48px; font-size: 18px; }
.en2 .hnote b { color: var(--warn); }
a.pp-end { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.pp-end.en-change { color: var(--lagoon); }
@media (max-width: 520px) { .uses2 .hkind { display: none; } .uses2 .hwhen { min-width: 0; } }
@media (max-width: 520px) { .act-chips .ychips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .act-chips .ychip { flex: none; } }
/* Your account (D174): who you are, then rows by section, deleting at the foot. */
.acc2 { display: grid; gap: 22px; }
.acc2 > .vh { padding-bottom: 0; }
.acc2 > section { margin: 0; }
.acc2 .hsh { margin: 0 4px 8px; }
.acc2 .hsh h2 { font: 600 13.5px var(--f-ui); color: var(--muted); }
button.hrow { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.hrow.switch { position: relative; cursor: pointer; }
.hrow.switch input { top: 50%; right: 16px; transform: translateY(-50%); }
.acc2 .acc-note { margin: 8px 4px 0; }
.acc-me { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.acc-me > .av { flex: none; }
.acc-me .t { display: grid; flex: 1; min-width: 0; gap: 2px; }
.acc-me h2 { margin: 0; font: 600 21px/1.25 var(--f-disp); overflow-wrap: anywhere; }
.acc-me .sub { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.acc-find { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.acc-find code { padding: 2px 9px; border-radius: 8px; background: var(--lagoon-soft); font: 600 14px var(--f-ui); color: var(--ink); }
.acc-find .lnk { font-weight: 600; color: var(--lagoon); }
.acc-me > .b { flex: none; align-self: flex-start; }
.acc2 > .pp-end { margin-top: 4px; }
.blocked .hrow .b { flex: none; }
@media (max-width: 760px) { .acc-me { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 18px; } .acc-me > .av { width: 56px; height: 56px; font-size: 21px; } .acc-me > .b { grid-column: 1 / -1; justify-self: stretch; justify-content: center; } }
/* Server admin (D175): an overview with a row per setting, and a page per setting. */
.adm-home { display: grid; gap: 22px; }
.adm-home > section { margin: 0; }
.adm2 .hsh { margin: 0 4px 8px; }
.adm2 .hsh .c { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.adm2 > section + section { margin-top: 22px; }
.adm-me { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.adm-mark { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-solid, var(--lagoon)); color: #fff; font: 600 22px var(--f-disp); }
.adm-me .t { display: grid; flex: 1; min-width: 0; gap: 2px; }
.adm-me h2 { margin: 0; font: 600 21px/1.25 var(--f-disp); overflow-wrap: anywhere; }
.adm-me .sub { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.adm-me > .b { flex: none; align-self: center; }
.adm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adm-tags .tag, .adm2 .hrow > .tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--lagoon-soft); font-size: 12.5px; font-weight: 600; color: var(--lagoon); white-space: nowrap; }
.adm-tags .tag.ok { background: var(--ok-soft, var(--lagoon-soft)); color: var(--ok, var(--lagoon)); }
.adm2 .hrow > .tag:not(.solid) { background: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.adm2 .hrow > .switch { flex: none; display: flex; align-items: center; }
.adm-acts { display: flex; flex: none; gap: 8px; }
.adm-you { font-weight: 400; color: var(--muted); }
.adm-q { font-weight: 600; }
.adm2 .adm-note { margin: 8px 4px 0; }
.adm2 .hrow .more { flex: none; }
@media (max-width: 760px) { .adm-me { flex-wrap: wrap; padding: 18px; } .adm-acts { flex-direction: column; } .adm2 .hrow > .tag { display: none; } }
/* A result to check or a write to confirm (D176): laid out as a request, its content shown at once. */
.rv-card a.rq-tap { color: inherit; text-decoration: none; }
.rv-card a.rq-tap:hover .rq-k { color: var(--lagoon); }
.rv5 .rv-items { display: grid; gap: 10px; margin: 4px 0 6px; }
.rv5 .rv-next { display: flex; align-items: flex-start; gap: 8px; margin: 14px 4px 0; font-size: 13.5px; color: var(--muted); }
.rv5 .rv-next svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.rv5 .rq-status .rv-in { display: inline-flex; align-items: center; gap: 6px; }
.rv5 .rq-status .rv-in .av { width: 22px; height: 22px; font-size: 10px; }
.rv5 .review-content { display: grid; gap: 10px; }
.rv5 .req-bar .acts.pair .b { white-space: nowrap; }

/* Your own agent asking (D177): its face and name in place of a person, and why it asks. */
.rq-agent .rq-face svg.agent { width: 44px; height: 44px; }
.rq-own-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.rq-own-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* An agent's consent and waiting to join (D177): on the sea, no island; tiles, a heading, a card. */
.signin-open { width: min(100%, 560px); }
.cs { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cs-tiles { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cs-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font: 600 24px var(--f-disp); }
.cs-tile.app { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.cs-tile.srv { background: var(--accent-solid, var(--lagoon)); color: #fff; }
.cs-dots { display: flex; gap: 5px; }
.cs-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.cs-h { margin: 0; font: 600 30px/1.2 var(--f-disp); letter-spacing: -.02em; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.cs-who { margin: -4px 0 0; color: var(--muted); max-width: 48ch; }
.cs-who b { color: var(--ink-2, var(--ink)); font-weight: 600; }
.cs-who .lnk { font: inherit; font-weight: 600; color: var(--lagoon); }
.cs-card { width: 100%; padding: 20px 22px 6px; text-align: left; margin-top: 4px; }
.cs-top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cs-k { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-big { margin: 2px 0 0; font: 500 19px/1.3 var(--f-disp); color: var(--muted); }
.cs-big b { color: var(--ink); font-weight: 600; }
.cs-rows { list-style: none; margin: 0; padding: 0; }
.cs-rows li { display: grid; gap: 2px; padding: 12px 2px; }
.cs-rows li + li { border-top: 1px solid var(--line); }
.cs-rows b { font-weight: 500; color: var(--ink); }
.cs-rows span { font-size: 13.5px; color: var(--muted); }
.cs-more { justify-self: stretch; text-align: left; font-size: 13px; color: var(--muted); margin: 0 4px; }
.cs-more p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cs-acts { justify-self: stretch; display: flex; justify-content: flex-end; gap: 10px; }
.cs-acts .b { padding: 12px 24px; }
.cs-foot { margin: 0; font-size: 13.5px; color: var(--muted); }
.cs-info { display: flex; gap: 10px; align-items: center; justify-self: stretch; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--lagoon-soft); font-size: 14px; color: var(--ink); text-align: left; }
.cs-info svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.cs-phone { align-items: flex-start; }
.cs-phone svg { margin-top: 3px; }
.cs-phone p { margin: 0; }
.cs-code { margin: 6px 0 4px !important; font-size: 40px; font-weight: 800; letter-spacing: 6px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.cs-open { display: flex; justify-content: center; margin: 4px 0 8px; text-decoration: none; }
.cs-wait-line { font-size: 13px; color: var(--muted); text-align: center; }
.cs-wait .cs-who { margin-bottom: 4px; }
@media (max-width: 560px) {
  .cs-h { font-size: 25px; }
  .cs-acts .b { flex: 1; justify-content: center; }
}
/* After real use (2026-10-31): a flat dark mode, rows whose status leads the
   second line, one page width, and the small parts the page fixes need. */

/* Dark: one flat colour, solid cards one step lighter, brighter grey text,
   a clear amber. No gradient and no glow, so nothing looks muddy. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E9EEF2; --muted: #93A3B1;
    --land: #18222B; --surface: #1D2833; --line: #26333F; --soft: #1D2833;
    --lagoon: #9DB5D0; --lagoon-soft: #22303D; --accent-solid: #4E6B8B;
    --glass: #18222B; --glass-edge: #26333F; --card-edge: #26333F;
    --sh-card: 0 0 0 1px var(--glass-edge); --sh-float: 0 0 0 1px var(--glass-edge), 0 18px 40px -24px rgba(0, 0, 0, .7);
    --warn: #E8B65A; --warn-soft: rgba(232, 182, 90, .13);
    --flag: #F08A74; --flag-soft: rgba(240, 138, 116, .13);
    --ground: #0D1419; --ground-deep: #0D1419;
    --sea: linear-gradient(#0D1419, #0D1419);
  }
  :root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note, .topbar .nav) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:root[data-theme="dark"] {
  --ink: #E9EEF2; --muted: #93A3B1;
  --land: #18222B; --surface: #1D2833; --line: #26333F; --soft: #1D2833;
  --lagoon: #9DB5D0; --lagoon-soft: #22303D; --accent-solid: #4E6B8B;
  --glass: #18222B; --glass-edge: #26333F; --card-edge: #26333F;
  --sh-card: 0 0 0 1px var(--glass-edge); --sh-float: 0 0 0 1px var(--glass-edge), 0 18px 40px -24px rgba(0, 0, 0, .7);
  --warn: #E8B65A; --warn-soft: rgba(232, 182, 90, .13);
  --flag: #F08A74; --flag-soft: rgba(240, 138, 116, .13);
  --ground: #0D1419; --ground-deep: #0D1419;
  --sea: linear-gradient(#0D1419, #0D1419);
}
:root[data-theme="dark"] :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note, .topbar .nav) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* A row's status leads its second line: amber when it ends soon, red when it waits for you. */
.hrow .t2 .st { color: var(--muted); }
.hrow .t2 .st.soon, .hrow .t2 .st.amb { color: var(--warn); font-weight: 600; }
.hrow .t2 .st.flag { color: var(--flag); font-weight: 600; }
/* An address is never split across lines. */
.hrow .t1 [data-search-title] b { overflow-wrap: anywhere; word-break: normal; hyphens: none; }
.hrow .t1 { hyphens: none; }

/* A person asking: their initial, with their agent as a small badge. */
.hrow .face { position: relative; }
.hrow .face > .face-b.agent { width: 20px; height: 20px; background: none; padding: 0; }
.hrow .face > .face-b.agent > svg.agent { width: 20px; height: 20px; display: block; }

/* Activity: the filter as one chip with ✕. The chips wrap beside Find a person on a wide screen; on a phone they are one row that scrolls, as wide as the page, with Find a person under them. */
.act-filter { margin: 0 0 12px; }
.act-filter .ychip { text-decoration: none; }
.act-filter .ychip svg { width: 13px; height: 13px; }
.act-chips .ychip { flex: none; }
.act-chips .ysearch { flex: 1 1 280px; max-width: none; }
@media (max-width: 520px) { .act-chips .ychips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .act-chips > :not(.ychips) { flex: 1 1 100%; } }

/* Updates an agent asked for, inside Details for support. */
.support [data-assistant-events] { margin-top: 14px; }
.support [data-assistant-events] h3 { font-size: 14px; margin: 0 0 8px; }

/* One page width everywhere but Home. */
.shell .narrow:not(.legal) { width: min(100%, 880px); }

/* Claude and ChatGPT: the maker's own mark on a white disc, the size of an agent's face. */
.agent-mark { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px var(--card-edge, rgba(0, 0, 0, .08)); }
.agent-mark svg { width: 62%; height: 62%; display: block; }
/* OpenAI's file keeps clear space around the Blossom: the whole file fills the disc. */
.agent-mark.chatgpt svg { width: 112%; height: 112%; }
.face-b.agent > .agent-mark { width: 20px; height: 20px; }
.rq-face .agent-mark { width: 100%; height: 100%; }
/* An agent's page: the mark the size of its face there, beside the name. */
.aa-page .pd-h > .aa-face.agent-mark { width: 56px; height: 56px; }

/* A search drawn in a request or permission card: nothing clipped at its left edge. */
.rq-chips .slist.which, .pp-chips > .which { overflow: visible; }
.rq-chips .sw-raw, .pp-chips .sw-raw { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* On a phone a row's words get the full width: what sat at its right (a
   deadline, a status, the agent's menu, a button) moves under them. */
@container rows (max-width: 520px) {
  .hrow:has(> .hdue, > .st, > .pg-state, > .b) { flex-wrap: wrap; row-gap: 6px; }
  .hrow:has(> .hdue, > .st, > .pg-state, > .b) > .t { flex: 1 1 calc(100% - 80px); }
  .hrow > .hdue, .hrow > .st, .hrow > .pg-state, .hrow > .b { order: 3; margin-left: 50px; }
  .hrow > .pg-state select { min-height: 28px; padding-left: 10px; }
  .hrow > .hchev { order: 2; }
}

/* An agent's page: what others share, one card a person under their name. */
.aa-group + .aa-group { margin-top: 14px; }
.aa-who { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14.5px; font-weight: 600; }
.aa-who .av { width: 26px; height: 26px; font-size: 12px; }
@container rows (max-width: 520px) {
  .hrow:not(:has(> .face, > .lead, > .agent, > .tile)) > :is(.hdue, .st, .pg-state, .b) { margin-left: 0; }
}

/* On a phone the bottom bar holds the places only; Server admin is in the avatar's menu. */
.acct-menu .mi.narrow-only { display: none; }
@media (max-width: 860px) {
  .acct-menu .mi.narrow-only { display: flex; }
}

/* Home on a computer: Connectors and Agents start at the same height, whatever their length. */
.hduo > section { align-self: start; align-content: start; }

/* A week's bars: a day with uses is a bar at least a fifth high; an empty day a faint stub. */
.wbar .wcol i.none { min-height: 2px; border-radius: 1px; opacity: .45; }

/* Activity on a phone: the time leads a use's second line, so the sentence gets the width. */
.hrow.use2 .tw { display: none; }
@container rows (max-width: 520px) {
  .hrow.use2 > .hwhen { display: none; }
  .hrow.use2 .tw { display: inline; }
}

/* A permission's End access or Stop using: a red outline, like End all on a person's page, never a pale fill that reads as disabled. */
.pg2 .pp-end { background: var(--land); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flag) 45%, transparent); }
.pg2 .pp-end:hover { background: color-mix(in srgb, var(--flag) 8%, var(--land)); }
@container rows (max-width: 520px) {
  /* A use's time is short: it stays at the right. */
  .pp-recent .hrow { flex-wrap: nowrap; }
  .pp-recent .hrow > .hdue { order: 0; margin-left: 0; }
  /* What waits for you reads whole, in up to two lines. */
  .hrow-li .hrow .t1, .ps-wait .hrow .t1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* People (D184): one list, either way. A row is the person, then what they
   see of yours (slate tiles) and what they share with you (sand tiles). */
.people .pp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 4px 0 12px; }
.people .pp-tools .ysearch { flex: 1 1 220px; max-width: none; margin-left: 0; }
@media (max-width: 640px) { .people .pp-tools .view-seg { flex: 1 1 100%; } .people .pp-tools .view-seg button { flex: 1; } }
.pp-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pp-sort select { font: inherit; font-size: 13px; color: var(--ink); background: transparent; border: 0; padding: 4px 2px; cursor: pointer; }
.pp-list .hrow.pp-row { position: relative; align-items: flex-start; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.pp-row .face { margin-top: 1px; }
.pp-row .face .av { width: 34px; height: 34px; font-size: 14px; }
.pp-row .t { gap: 0; }
.pp-row .pp-name { font-size: 15px; line-height: 20px; color: var(--ink); text-decoration: none; }
/* The name's link covers the row; a dashed tile's link sits above it. */
.pp-row .pp-name::after { content: ""; position: absolute; inset: 0; }
.pp-row .pp-name:focus-visible { outline: none; }
.pp-row:has(.pp-name:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.pp-row .pp-handle { color: var(--muted); font-weight: 400; }
.pp-row .pp-chev { align-self: center; width: 16px; height: 16px; flex: none; color: var(--muted); opacity: .6; }
.pp-row .t2 { margin-top: 3px; }
/* A side's line (2026-11-22): its words, then a tile per kind; a state's
   word goes in a chip with the kind's icon (Asks, Asked, Ends Tue). */
.pp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.pp-w { width: 68px; flex: none; font-size: 12.5px; color: var(--muted); }
.pp-tile { position: relative; display: inline-grid; place-items: center; box-sizing: border-box; width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; background: var(--soft); color: var(--ink); }
.pp-tile > svg { width: 14px; height: 14px; }
.pp-tile.more { width: auto; padding: 0 6px; }
.pp-tile .pen, .pp-chip .pen { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); color: inherit; }
.pp-tile .pen svg, .pp-chip .pen svg { width: 8px; height: 8px; stroke-width: 2.4; }
.pp-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; height: 24px; padding: 0 8px 0 6px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.pp-chip > svg { width: 14px; height: 14px; }
.pp-chip.asks { background: color-mix(in srgb, var(--flag) 13%, transparent); color: var(--flag); }
.pp-chip.asked { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
.pp-chip.soon { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
/* Who you no longer share with: one row at the foot, opening them below it. */
.pp-gone { margin-top: 10px; }
.pp-gone .pp-gone-btn { width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pp-gone .pp-gone-btn .t1 { font-size: 14.5px; }
.pp-gone .pp-chev.open { transform: rotate(90deg); }
.pp-gone .pp-row .t2 { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
/* A phone's places in a bar at the bottom, as in the phone apps (D185). It
   floats above the browser's own toolbar (the safe-area inset) and stays put
   while you scroll (D196). */
.tabbar { display: none; }
@media (max-width: 860px) {
  .appnav { flex-wrap: nowrap; padding: 8px 8px 8px 18px; }
  .appnav .acct { margin-left: auto; }
  .tabbar { display: flex; position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 25; gap: 4px; padding: 6px; border-radius: 26px;
    background: color-mix(in srgb, var(--land) 92%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 0 0 1px var(--line), var(--sh-card); }
  .tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; border-radius: 20px; font: 500 11.5px/1.2 var(--f-ui); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a[aria-current="page"] { background: var(--lagoon-soft); font-weight: 600; }
  .tabbar a:active { background: var(--press); }
  .tabbar .tb-ic { position: relative; display: inline-flex; }
  .tabbar .tb-ic svg { width: 22px; height: 22px; }
  .tabbar .tb-ic .n { position: absolute; top: -5px; left: 14px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--flag); color: #FFFFFF; font: 700 10px/1 var(--f-ui); display: grid; place-items: center; }
  .main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
  /* A request's decision dock takes the bottom of the screen. */
  body:has(.req-dock) .tabbar { display: none; }
  body:not(:has(.req-dock)) .toasts { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
  body:not(:has(.req-dock)) .toasts:has(.toast)::before { height: calc(env(safe-area-inset-bottom, 0px) + 210px); }
  .error-report-trigger { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); } }
:root[data-theme="dark"] .tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); }
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--land); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* The server in use, at the top left as in the phone apps (D185): its mark,
   its name and a chevron; its menu lists the servers to switch to. */
.srvchip { position: relative; min-width: 0; flex: 0 1 auto; margin: 0 10px 0 -10px; }
/* On a wide screen, as on the phones' header: the server at the left, the places in the middle, you at the right. */
@media (min-width: 861px) {
  .appnav:has(> .srvchip) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .appnav > .srvchip { justify-self: start; }
  .appnav > .acct { justify-self: end; margin-left: 0; }
}
.srv-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 0 0 1px var(--line); }
button.srv-btn { cursor: pointer; }
button.srv-btn:hover { background: var(--hover); }
button.srv-btn:active { background: var(--press); }
.srv-btn .srv-name { font: 600 16px/1.2 var(--f-disp); }
.srvchip .srv-tile { width: 28px; height: 28px; font-size: 13px; }
/* The app icon, whole, in a circle, in a capsule chip. */
.srv-ic { width: 28px; height: 28px; flex: none; border-radius: 999px; object-fit: cover; }
.srv-ic.own { display: inline-block; background: url("/assets/app/art/app-icon.svg") center / cover no-repeat; box-shadow: 0 0 0 1px var(--line); }
.srv-chev { width: 14px; height: 14px; flex: none; transform: rotate(90deg); color: var(--muted); }
.srv-btn[aria-expanded="true"] .srv-chev { transform: rotate(-90deg); }
.srv-menu { position: absolute; left: 0; top: calc(100% + 12px); width: 280px; max-width: calc(100vw - 24px); z-index: 30; padding: 8px; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--land); }
.srv-menu .srv-mi .srv-ic, .srv-menu .srv-mi .srv-tile { width: 32px; height: 32px; font-size: 14px; }
.srv-menu .srv-mi .srv-text { flex: 1; }
.srv-menu .srv-mi .srv-name { font: 600 14.5px/1.25 var(--f-ui); }
.srv-menu .srv-mi .srv-on { margin-left: auto; color: var(--accent-solid, var(--accent)); width: 18px; height: 18px; }
@media (max-width: 860px) { .srvchip .srv-name { max-width: calc(100vw - 170px); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .srv-btn { background: #18222B; box-shadow: 0 0 0 1px #26333F; }
  :root:not([data-theme="light"]) .srv-ic.own { background-image: url("/assets/app/art/app-icon-dark.svg"); }
}
:root[data-theme="dark"] .srv-btn { background: #18222B; box-shadow: 0 0 0 1px #26333F; }
:root[data-theme="dark"] .srv-ic.own { background-image: url("/assets/app/art/app-icon-dark.svg"); }
/* People beside a person (D186): on a wide screen the list and the chosen
   person side by side, as on the Mac and iPad; narrower, one or the other. */
.pp-split > .pp-pane { display: none; }
.pp-split.has-person > .pp-col { display: none; }
.pp-split.has-person > .pp-pane { display: block; }
@media (min-width: 1100px) {
  .pp-split { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .pp-split > .pp-col, .pp-split.has-person > .pp-col, .pp-split > .pp-pane { display: block; min-width: 0; }
  .pp-split .narrow, .pp-split .narrow.wide { width: 100%; margin: 0; }
  .pp-split .people .pp-tools .view-seg { flex: 1 1 100%; }
  .pp-split .people .pp-tools .view-seg button { flex: 1; }
  .pp-split .pp-pane .back-lnk { display: none; }
  /* The person's name starts level with the list's title. */
  .pp-split .pp-pane > .detail { padding-top: 30px; }
  .pp-split .ps3 .ps-h { align-items: center; }
  .pp-split .ps3 .ps-h .av { width: 48px; height: 48px; font-size: 19px; }
  .pp-split .ps3 .ps-h .nm { font-size: clamp(32px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
  .pp-split .pp-pane > .empty { margin-top: 96px; }
  .pp-list .hrow.pp-row.on { background: var(--lagoon-soft); }
  .pp-list .hrow.pp-row.on .pp-chev { color: var(--ink); }
}

/* A person's page (D186): This week as on Home, then each side's rows to
   scan at a glance: the kind's tile, a few words, the end at the right. What
   waits sits in its side's list with a dashed tile. */
.ps3 .ps-hero { margin-top: -6px; }
.ps3 .hsh h2 { display: inline-flex; align-items: baseline; gap: 8px; }
.ps3 .ps-n { font: 500 14px var(--f-ui); color: var(--muted); }
.ps3 .hrow.ps-row { align-items: center; gap: 12px; }
.ps3 .ps-row .pp-tile { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.ps3 .ps-row .pp-tile > svg { width: 16px; height: 16px; }
.ps3 .ps-row .t { min-width: 0; flex: 1; }
.ps3 .ps-row .t1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps3 .ps-row .t1 b { font-weight: 600; }
.ps3 .ps-row .ps-lim { color: var(--muted); }
.ps3 .ps-row .t2 { font-size: 13px; color: var(--muted); }
.ps3 .ps-end { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ps3 .ps-end.soon, .ps3 .ps-end.amb { color: var(--warn); font-weight: 600; }
.ps3 .ps-row > .b { flex: none; }
.ps3 .ps-quiet { margin: -8px 2px 0; font-size: 13.5px; color: var(--muted); }
.ps3 .ps-quiet .lnk { color: var(--muted); font-weight: 500; }
.ps3 .ps-quiet .lnk:hover { color: var(--ink); }
.ps3 .ps-pending .t1 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* An agent's page (D187): a row of Your own data or Shared with you keeps its
   menu at the right, on the row's line, at any width; it drops under the
   words only when they cannot share the line. */
.aa-access .hrow { flex-wrap: wrap; row-gap: 6px; }
/* The words take what is left, and only their longest word forces the menu down. */
.aa-access .hrow > .t { flex: 1 1 0%; min-width: min-content; }
.aa-access .hrow > .pg-state { margin-left: auto; }
.aa-access .hrow > .av { width: 36px; height: 36px; flex: none; }
@container rows (max-width: 520px) {
  .aa-access .hrow:has(> .pg-state) > .t { flex: 1 1 0%; }
  .aa-access .hrow > .pg-state { order: 0; margin-left: auto; }
}
.aa-access .hrow .t1, .aa-access .hrow .t2 { white-space: normal; }
.aa-access .hrow .t1.plain { color: inherit; text-decoration: none; }
.aa-access .hrow .t1.plain:hover { text-decoration: underline; }
.aa-access .hrow .t2.err { color: var(--flag); }
.aa-access .hrow[aria-busy] .pg-state { opacity: .7; }
/* The permission page's head (D188): the kind's tile beside its title, the
   agent's words in two lines with More, and the card opening on what it
   covers, a labelled row each, as on the phones. */
.rq-kind { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rq-kind .rq-ic { width: 48px; height: 48px; border-radius: 13px; }
.rq-kind .rq-ic svg { width: 24px; height: 24px; }
.rq-kind .rq-title { min-width: 0; }
.rq-quote .rq-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.rq-by { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rq-more { flex: none; padding: 0; border: 0; background: none; font: 600 13px var(--f-ui); color: var(--lagoon); cursor: pointer; }
.rq-more:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; border-radius: 4px; }
.perm-page .card.rq-card { padding-top: 6px; }
.rq-can .rq-row:first-child { border-top: 0; }
.rq-can + .rq-chips { margin: 0 0 14px; }
.rq-can:empty { display: none; }
.rq-can:empty + .rq-rows > .rq-row:first-child { border-top: 0; }
@media (max-width: 520px) {
  .rq-kind { gap: 12px; }
  .rq-kind .rq-ic { width: 44px; height: 44px; }
}
/* A search's chips sit on the card itself, without the dark list's glass. */
.rq-card .rq-chips .slist.which { background: none; box-shadow: none; }
/* An email search's conditions are the card's rows, as on the phones. */
.rq-raw .sw-raw { margin: 0; padding: 0 2px; border-top: 0; }
.rq-rows [data-condition] .rq-v { overflow-wrap: anywhere; }
/* Someone else's request or result to check (D144): a ••• menu at the
   title's end with Report, and Block quietly at the foot, as a person's page. */
.rq-titled { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rq-titled > :first-child { flex: 1 1 0%; min-width: 0; }
.rq-titled > .more { flex: none; }
.rq-quiet { margin: 0 2px; font-size: 13.5px; color: var(--muted); }
.rq-quiet .lnk { color: var(--muted); font-weight: 500; }
.rq-quiet .lnk:hover { color: var(--ink); }
/* Sign-in with Google and with Apple (D190): each button shows its provider's
   mark before "Continue with", as Google's and Apple's guidelines ask. */
.b[data-provider="google"], .b[data-provider="apple"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; }
.b .provider-logo { width: 18px; height: 18px; flex: none; }
.tile-av .provider-logo { width: 20px; height: 20px; }
/* Two-step sign-in and passkeys on the account page (D192): the QR code an
   authenticator app scans, the key to type instead, and the backup codes. */
.qr { display: block; width: 184px; height: 184px; margin: 4px auto; border-radius: 8px; }
.totp-key { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 12px 16px; list-style: none; border-radius: 10px; background: var(--soft); font: 500 14px ui-monospace, "SF Mono", Menlo, monospace; }
/* The pages before sign-in (D194): the brand's wordmark, one frosted card that
   asks one thing at a time, and under it the way to make an account, the
   server in use and the small links. No island, no drawing, no tagline. */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 40px 16px 32px; }
.gate-mark { margin: 0 0 20px; color: var(--ink); }
.gate-mark .wmark { font-size: 34px; }
.gate-card { width: min(100%, 400px); padding: 26px 24px 22px; border-radius: 24px; text-align: left; display: grid; gap: 0; }
.gate-card.wide { width: min(100%, 520px); }
.gate-card > * + * { margin-top: 0; }
.gate-card .gate-h { font: 600 22px/1.2 var(--f-disp); letter-spacing: -.01em; margin: 0 0 4px; color: var(--ink); text-wrap: balance; }
.gate-card .gate-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.gate-card .gate-sub b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.gate-card .gate-sub:last-child { margin-bottom: 0; }
.gate-card.center { text-align: center; justify-items: center; }
.gate-card.center .gate-sub { max-width: 34ch; }
.gate-card > .notice { margin: 0 0 16px; }
.gate-card > .b { width: 100%; justify-content: center; }
.gate-well { width: 56px; height: 56px; border-radius: 50%; background: var(--lagoon-soft); color: var(--lagoon); display: grid; place-items: center; margin: 0 0 14px; }
.gate-well svg { width: 26px; height: 26px; }
.gate-card.center .gate-well { margin-inline: auto; }

/* Buttons: full width, 48 pixels tall; one solid slate main action per step. */
.gate-card .b, .gate-card .form .b { min-height: 48px; width: 100%; justify-content: center; font-weight: 600; }
.gate-card .b.primary { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent-solid) 75%, transparent); }
.gate-card .b.soft { background: var(--lagoon-soft); border-color: transparent; color: var(--lagoon); }
.gate-card .b.soft:hover { background: color-mix(in srgb, var(--lagoon-soft) 80%, var(--lagoon)); }
.gate-card .b.soft svg { width: 18px; height: 18px; }
.gate-card .b[data-provider] { min-width: 0; background: var(--surface); }
.gate-stack { display: grid; gap: 10px; }
.gate-stack + .gate-stack { margin-top: 10px; }
.gate-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Fields: labels above, 48 pixels tall, the error under its field. */
.gate-card .form { width: 100%; display: grid; gap: 12px; text-align: left; }
.gate-card .fld { gap: 6px; }
.gate-card .fld > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gate-card .fld > span .lnk { font-size: 13px; font-weight: 600; }
.gate-card .fld input { min-height: 48px; border-radius: 14px; padding: 12px 14px; font-size: 15.5px; background: var(--surface); }
.gate-card .fld input:focus-visible { outline: none; border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 22%, transparent); }
.gate-card .fld input[aria-invalid="true"] { border-color: var(--flag); }
.gate-card .form .notice { margin: 0; }
.gate-card .form .note, .gate-card .gate-note { margin: 0; color: var(--muted); font-size: 13px; }
.gate-card .form-error { display: flex; gap: 6px; align-items: flex-start; color: var(--flag); font-size: 13.5px; margin: -4px 0 0; }
.gate-card .form-error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.fld-box { position: relative; display: block; }
.fld-box > input { padding-right: 52px; }
.fld-box > .fld-act { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px var(--f-ui); cursor: pointer; }
.fld-box > .fld-act:hover { color: var(--ink); background: var(--soft); }
.fld-box > .fld-act svg { width: 18px; height: 18px; }
.fld-box > .fld-act.chip { background: var(--lagoon-soft); color: var(--lagoon); }
.fld-box > .fld-act.chip svg { width: 16px; height: 16px; }
.fld-box.has-chip > input { padding-right: 112px; }
.pw-check { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.pw-check.ok { color: var(--ok); }
.pw-check svg { width: 15px; height: 15px; }

/* Who is signing in, with the way back to change it. */
.gate-who { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 8px 6px 6px; margin: 4px 0 16px; font-size: 14.5px; min-width: 0; }
.gate-who .av { width: 30px; height: 30px; border-radius: 50%; background: var(--a1); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.gate-who .e { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.gate-who .lnk { font-size: 13.5px; padding: 4px 8px; }

/* A box per character of a code (six digits from an app, eight letters and
   digits by email, D226): one real field over them, so paste and the phone's
   one-time-code suggestion fill it at once. */
.code-boxes { position: relative; display: block; }
.code-boxes > input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; letter-spacing: 1em; caret-color: transparent; z-index: 1; cursor: text; }
.code-boxes > .boxes { display: flex; gap: 8px; align-items: center; }
.code-boxes > .boxes > i { flex: 1; height: 56px; max-width: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font: 600 24px var(--f-disp); font-style: normal; color: var(--ink); }
.code-boxes > .boxes > i.gap { flex: 0 0 4px; border: 0; background: none; }
.code-boxes > input:focus-visible + .boxes > i.at { border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 22%, transparent); }
.code-boxes > input[aria-invalid="true"] + .boxes > i { border-color: var(--flag); }
.code-boxes.eight > .boxes { gap: 6px; }
.code-boxes.eight > .boxes > i { height: 52px; max-width: 46px; border-radius: 12px; font-size: 21px; }

/* Quiet ways out under a step's main button. */
.gate-quiet { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.gate-quiet .lnk { font-weight: 600; }
.gate-quiet .lnk:disabled { color: var(--muted); font-weight: 500; cursor: default; }

/* Under the card. */
.gate-below { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.gate-below .lnk, .gate-quiet .lnk, .gate-note .lnk { font-size: inherit; font-weight: 600; }
.gate-server { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; margin: 22px 0 0; border-radius: 999px; background: var(--glass); box-shadow: var(--sh-card); color: var(--muted); font-size: 14px; text-decoration: none; max-width: 100%; }
.gate-server b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-server svg { width: 16px; height: 16px; flex: none; }
.gate-server:hover { color: var(--ink); }
.gate-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: 13.5px; }
.gate-foot a { color: var(--muted); text-decoration: none; }
.gate-foot a:hover { color: var(--ink); }

.gate-card .lnk { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--lagoon); cursor: pointer; text-decoration: none; }
.gate-below .lnk { color: var(--lagoon); }

@media (max-width: 500px) {
  .gate { justify-content: flex-start; padding-top: 24px; }
  .gate-card { padding: 22px 18px 18px; }
  .gate-mark .wmark { font-size: 30px; }
}
@media (prefers-reduced-transparency: reduce) { .gate-server { background: var(--land); } }

/* The privacy policy and terms, read before signing in, on the wide card. */
.gate-card .legal { width: 100%; max-width: none; padding: 0; margin: 0; }
.gate-card .legal-doc { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px 0 0; }

/* A server without a brand of its own (D194): its address under the title,
   and the software credited small at the foot, never as its identity. */
.gate-card .gate-sub .gate-host { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.gate-host svg { width: 15px; height: 15px; flex: none; }
.gate-runs { display: flex; align-items: center; gap: 7px; margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }
.gate-runs .wmark { font-size: 15px; color: var(--ink); opacity: .75; }
/* Locking your accounts on the account page (D201): the secret key shown
   once, in groups of four, beside its QR code. */
.secret-key { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 6px 14px; margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--soft); font: 600 16px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; user-select: all; }
/* The code a browser asking to join shows, typed on another device (D206). */
.secret-key.join-code { grid-template-columns: repeat(2, auto); font-size: 28px; letter-spacing: 0.08em; }
.join-code-input { font: 600 20px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.2em; }
/* ------------------------------------------------------------- style D (D219)
   The design language of 2026-11-08: quiet, native, and the shapes say
   what a thing is. Neutral grey ground and solid white groups, as the
   phones' inset lists; ink for the one main action; the system's own
   font. Shape is the kind (a person is a squircle, an agent an arch, a
   connector a neutral tile, a permission a ticket, a server a circle) and
   strong colour is a state only: red a deadline, lime where you are, amber
   something to sign in to again. Pastels are only decoration on avatars,
   and agents are pink. On a wide screen the places are in a sidebar, as in
   the Mac app; on a phone they stay in the bar at the bottom. */
:root {
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --f-disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --f-label: var(--f-ui);
  --ground: #EDEEF2; --ground-deep: #EDEEF2; --sea: none;
  --land: #FFFFFF; --surface: #FFFFFF; --raised: #FFFFFF;
  --ink: #111216; --muted: #6B6E78; --line: #E2E3E8; --soft: #EFF0F3; --sep: rgba(17, 18, 22, .12);
  --lagoon: #111216; --lagoon-soft: #E8E9EE; --on-lagoon: #FFFFFF; --accent-solid: #111216; --accent: #111216; --focus: #3A3C45;
  --flag: #E5392A; --flag-soft: #FDE8E5;
  --warn: #9A5B00; --warn-soft: #FDF0D8;
  --lime: #D7F37A; --here: #E4F5A8; --on-here: #111216;
  --agent: #FFB8D2; --graphite: #3A3C45; --on-graphite: #FFFFFF;
  --a1: #8FD8FF; --a2: #A9E5C2; --a3: #F7D58C; --a4: #C9B8FF; --a5: #D6D8DF;
  --glass: #FFFFFF; --glass-edge: transparent;
  --sh-card: none;
  --sh-float: 0 0 0 .5px rgba(17, 18, 22, .1), 0 18px 40px -18px rgba(17, 18, 22, .28);
  --hover: rgba(17, 18, 22, .045); --press: rgba(17, 18, 22, .09);
  --bar: #C9B8FF; --bar-today: #111216;
  --side-w: 248px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E0F12; --ground-deep: #0E0F12;
    --land: #1B1C21; --surface: #232429; --raised: #26272D;
    --ink: #F3F3F6; --muted: #9C9EA8; --line: #2C2D34; --soft: #26272D; --sep: rgba(255, 255, 255, .1);
    --lagoon: #F3F3F6; --lagoon-soft: #2B2C33; --on-lagoon: #111216; --accent-solid: #F3F3F6; --accent: #F3F3F6; --focus: #C9CBD3;
    --flag: #FF5B4D; --flag-soft: #3A1E1B;
    --warn: #F2C14E; --warn-soft: #33290F;
    --here: rgba(215, 243, 122, .18); --on-here: #E3F59B;
    --graphite: #C9CBD3; --on-graphite: #111216;
    --a1: #7FC9F0; --a2: #93D4AE; --a3: #E9C57A; --a4: #B9A5FF; --a5: #A9ACB6;
    --glass: #1B1C21;
    --sh-float: 0 0 0 .5px rgba(255, 255, 255, .12), 0 22px 48px -20px rgba(0, 0, 0, .8);
    --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .1);
    --bar: #B9A5FF; --bar-today: #F3F3F6;
  }
}
:root[data-theme="dark"] {
  --ground: #0E0F12; --ground-deep: #0E0F12;
  --land: #1B1C21; --surface: #232429; --raised: #26272D;
  --ink: #F3F3F6; --muted: #9C9EA8; --line: #2C2D34; --soft: #26272D; --sep: rgba(255, 255, 255, .1);
  --lagoon: #F3F3F6; --lagoon-soft: #2B2C33; --on-lagoon: #111216; --accent-solid: #F3F3F6; --accent: #F3F3F6; --focus: #C9CBD3;
  --flag: #FF5B4D; --flag-soft: #3A1E1B;
  --warn: #F2C14E; --warn-soft: #33290F;
  --here: rgba(215, 243, 122, .18); --on-here: #E3F59B;
  --graphite: #C9CBD3; --on-graphite: #111216;
  --a1: #7FC9F0; --a2: #93D4AE; --a3: #E9C57A; --a4: #B9A5FF; --a5: #A9ACB6;
  --glass: #1B1C21;
  --sh-float: 0 0 0 .5px rgba(255, 255, 255, .12), 0 22px 48px -20px rgba(0, 0, 0, .8);
  --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .1);
  --bar: #B9A5FF; --bar-today: #F3F3F6;
}

/* Ground and type. */
html { background: var(--ground); }
body, .vh h1, .rq-title, h1, h2, h3 { font-family: var(--f-ui); }
.vh h1, .main .vh h1 { font-size: clamp(28px, 3.2vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.shell > .top-band { display: none; }

/* Groups: solid, flat, no glass and no shadow, as an inset list. */
.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note {
  background: var(--land); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note) { background: var(--land); box-shadow: none; }
}
:root[data-theme="dark"] :is(.slist, .gcard, .dc, .ccard, .pd .grp, .pd .dg, .pane, .callout, .card, .req-head, .req-group, .xcard, .perm-purpose, .req-note) { background: var(--land); box-shadow: none; }
:is(.slist, .card, .pane) :is(.slist, .card) { background: none; }
.empty.well { background: color-mix(in srgb, var(--land) 55%, transparent); box-shadow: none; }

/* Ink for the one main action; the rest stays quiet. */
.b.primary { background: var(--ink); border-color: var(--ink); color: var(--on-lagoon); }
.b.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--ground)); border-color: transparent; }
.req-bar .acts.pair > .b.primary { box-shadow: none; }
.b.tint { background: var(--lagoon-soft); color: var(--ink); }
.b { border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-lagoon); }
.seg button[aria-pressed="true"] { box-shadow: 0 0 0 .5px var(--sep), 0 1px 2px rgba(17, 18, 22, .08); }
.sw { background: #34C759; }
.sw[aria-pressed="false"] { background: color-mix(in srgb, var(--muted) 32%, var(--land)); }

/* Counts: the places' badge is red (something waits), a section's count is ink. */
.hsh .n { background: var(--ink); color: var(--on-lagoon); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; line-height: 18px; }
.hdue.soon, .rq-due.soon { color: var(--flag); }

/* People: squircles, never islands. */
.av, .av.isle-av { border-radius: 40% !important; box-shadow: none; color: #111216; }
.av.isle-av.me { background: var(--ink) !important; color: var(--on-lagoon); }
.face-b { background: none; }

/* Agents: the arch, pink, with eyes that blink now and then. */
svg.agent .body { fill: var(--agent); }
svg.agent .look .eyes rect, svg.agent .look .happy path { fill: #111216; stroke: #111216; }
svg.agent .look .happy path { fill: none; }
@keyframes agent-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
svg.agent:not(.is-happy):not(.is-down) .look .eyes { transform-box: fill-box; transform-origin: center; animation: agent-blink 6s infinite; }
@media (prefers-reduced-motion: reduce) { svg.agent .look .eyes { animation: none; } }
.agent.agent-mark { position: relative; overflow: visible; }

/* Connectors: neutral tiles, the service's mark inside. */
.acct-tile, .tile, .rq-ic, .lead.soft, .eic { background: var(--soft); box-shadow: inset 0 0 0 .5px var(--sep); border-radius: 9px; color: var(--ink); }
.acct-tile { background: var(--land); }
.hadd .lead.dash, .lead.dash { border: 0; background: var(--ink); color: var(--on-lagoon); border-radius: 9px; }
.hadd { color: var(--ink); font-weight: 600; }

/* A week of use: lilac arch bars, today in ink. */
.wbars .wcol i { background: var(--bar); border-radius: 6px 6px 2px 2px; }
.wbars .wbar:last-child .wcol i:not(.none), .wbars .wcol i.today { background: var(--bar-today); }
.wbars .wcol i.none { background: var(--soft); }

/* A permission: a ticket, its kind's icon inside. */
.pp-tile, .ps-row .lead, .perm-page .rq-head .rq-ic {
  -webkit-mask: radial-gradient(circle 4px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 4px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

/* The server: a round mark in a graphite capsule. */
.srv-btn { background: var(--graphite); color: var(--on-graphite); box-shadow: none; }
.srv-btn .srv-name { font: 600 15px/1.2 var(--f-ui); letter-spacing: 0; color: inherit; }
.srv-btn .srv-chev { color: currentColor; opacity: .7; }
button.srv-btn:hover { background: color-mix(in srgb, var(--graphite) 88%, var(--ground)); }
.srv-ic.own, .srv-ic.own:is(*) { background-image: url("/assets/app/art/server-chip.svg"); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .srv-btn { background: var(--graphite); box-shadow: none; } :root:not([data-theme="light"]) .srv-ic.own { background-image: url("/assets/app/art/app-icon.svg"); } }
:root[data-theme="dark"] .srv-btn { background: var(--graphite); box-shadow: none; }
:root[data-theme="dark"] .srv-ic.own { background-image: url("/assets/app/art/app-icon.svg"); }

/* Where you are: lime. */
.nav a[aria-current="page"], .topbar .nav a[aria-current="page"], .tabbar a[aria-current="page"] { background: var(--here); color: var(--on-here); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar .nav a[aria-current="page"] { background: var(--here); color: var(--on-here); } }
:root[data-theme="dark"] .topbar .nav a[aria-current="page"] { background: var(--here); color: var(--on-here); }
.pp-list .hrow.pp-row.on { background: var(--here); }

/* Chips of what a request asks for: neutral, not sand. */
:root { --sw-chip: var(--soft); --sw-pill: var(--soft); --sw-hair: var(--line); --sw-box: transparent; --sw-inner: var(--land); --sw-inner-hair: var(--line); --sw-warm: var(--muted); --sw-warm-lead: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sw-chip: var(--soft); --sw-pill: var(--soft); --sw-hair: var(--line); --sw-box: transparent; --sw-inner: var(--surface); --sw-inner-hair: var(--line); --sw-warm: var(--muted); --sw-warm-lead: var(--muted); } }
:root[data-theme="dark"] { --sw-chip: var(--soft); --sw-pill: var(--soft); --sw-hair: var(--line); --sw-box: transparent; --sw-inner: var(--surface); --sw-inner-hair: var(--line); --sw-warm: var(--muted); --sw-warm-lead: var(--muted); }

/* Icons: one colour, the outline over a light fill of itself. */
svg .duo { fill: currentColor; stroke: none; opacity: .2; }

/* The header on a phone: no capsule, the server and you on the ground. */
.topbar .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.topnav .nav-ic, .acct .acct-who { display: none; }
@media (max-width: 860px) {
  .topbar { position: static; }
  .appnav { padding: 6px 4px; }
  .srvchip { margin: 0; }
  .tabbar { background: color-mix(in srgb, var(--land) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 0 0 .5px var(--sep), 0 8px 24px -10px rgba(0, 0, 0, .25); border-radius: 999px; padding: 4px; }
  .tabbar a { border-radius: 999px; }
}

/* A wide screen: the places in a sidebar, as in the Mac app. */
@media (min-width: 861px) {
  .shell { display: block; padding-left: var(--side-w); }
  /* The pages before sign-in have no sidebar, so their card stays centred. */
  .shell.sea-page { padding-left: 0; }
  .shell > .topbar { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: var(--side-w); max-width: none; margin: 0; padding: 0; }
  .topbar .nav.appnav { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: 100%; padding: 14px 12px 12px; border-radius: 0; overflow: visible;
    background: color-mix(in srgb, var(--land) 55%, var(--ground)); box-shadow: inset -.5px 0 0 var(--sep); }
  .appnav > .srvchip { margin: 0 0 18px; justify-self: auto; }
  .appnav > .srvchip .srv-btn { width: 100%; padding: 5px 12px 5px 5px; }
  .appnav > .srvchip .srv-btn .srv-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .appnav > .brand-link { margin: 4px 8px 18px; }
  .topnav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .topbar .nav .topnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font: 500 14.5px/1.2 var(--f-ui); color: var(--ink); }
  .topbar .nav .topnav a .short { display: none; }
  .topbar .nav .topnav a .long { display: inline; }
  .topnav .nav-ic { display: block; width: 20px; height: 20px; flex: none; }
  .topbar .nav .topnav a .n { margin-left: auto; }
  .topbar .nav .topnav a:hover { background: var(--hover); }
  .appnav > .acct { margin: auto 0 0; padding-top: 10px; box-shadow: inset 0 .5px 0 var(--sep); justify-self: auto; position: relative; }
  .acct .avbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border-radius: 10px; text-align: left; }
  .acct .avbtn:hover { background: var(--hover); }
  .acct .avbtn .av { width: 30px; height: 30px; font-size: 13px; }
  .acct .acct-who { display: grid; min-width: 0; line-height: 1.25; }
  .acct .acct-who b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct .acct-who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct .acct-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
  .srvchip .srv-menu { top: calc(100% + 8px); }
  .main { padding-top: 8px; }
}

/* An agent whose maker is known: the arch, its maker's mark small on the corner. */
.agent.agent-mark { display: inline-block; position: relative; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.agent.agent-mark > svg.agent { display: block; width: 100%; height: 100%; }
.agent-mark .maker { position: absolute; right: -3px; bottom: -3px; width: 50%; height: 50%; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 2px var(--land); display: grid; place-items: center; overflow: hidden; }
.agent-mark .maker svg { width: 66%; height: 66%; }
.agent-mark.chatgpt .maker svg { width: 118%; height: 118%; }
.face-b.agent > .agent-mark .maker { display: none; }

/* A waiting request, laid out as a permission (D220): the kind's ticket by
   the short title, the agent's words in a bubble beside its arch, and who
   asks as the card's first row. */
.rq-head .rq-kind .rq-ic {
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  width: 54px; height: 46px; border-radius: 10px; box-shadow: none; background: var(--land);
}
.rq-say { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0 4px; }
.rq-say .rq-face { width: 34px; height: 38px; flex: none; }
.rq .rq-say .rq-face > .agent, .rq .rq-say .rq-face svg.agent { display: block; width: 34px; height: 38px; }
.rq-bubble { margin: 0; padding: 9px 14px; background: var(--land); border-radius: 18px 18px 18px 5px; max-width: 60ch; }
.rq-bubble p { margin: 0; font-size: 16px; line-height: 1.35; }
.rq-bubble small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.rq-card .rq-asked { margin: -4px 0 12px; padding-bottom: 4px; box-shadow: inset 0 -.5px 0 var(--sep); }
.rq-card .rq-asked .rq-row { border: 0; }
.rq-who .rq-v { display: flex; align-items: center; gap: 10px; }
.rq-who .rq-v .av { width: 30px; height: 30px; font-size: 13px; }
.rq-who .rq-pn { display: grid; text-align: left; line-height: 1.2; }
.rq-who .rq-pn small { font-size: 12.5px; color: var(--muted); }
.rq-who .pp-checked { margin: 0; }

/* At night too: the header is no capsule on a phone, and the sidebar keeps its own edge. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar .nav { background: transparent; box-shadow: none; } }
:root[data-theme="dark"] .topbar .nav { background: transparent; box-shadow: none; }
@media (min-width: 861px) {
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar .nav.appnav { background: color-mix(in srgb, var(--land) 55%, var(--ground)); box-shadow: inset -.5px 0 0 var(--sep); } }
  :root[data-theme="dark"] .topbar .nav.appnav { background: color-mix(in srgb, var(--land) 55%, var(--ground)); box-shadow: inset -.5px 0 0 var(--sep); }
}

/* Marks drawn on the accent: its own text colour, so they keep their letter at
   night, when the accent is light (the consent page's server, link and plug marks). */
.lk-ic.link, .acct-tile .plug, .srv-tile, .cs-tile.srv { color: var(--on-lagoon); }

/* What the earlier looks left (2026-11-21): their sand, slate and blue tints
   are neutral, as every other tile and note, and the consent page draws the
   agent and the server in their shapes. */
:root { --sand: var(--soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sand: var(--soft); } }
:root[data-theme="dark"] { --sand: var(--soft); }
.notice.info { background: var(--land); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--sep); }
/* A page title's tile on the ground is the card's colour, as a permission's. */
.tile-av.xl { background: var(--land); box-shadow: none; }
.cs-tile.app { background: none; box-shadow: none; }
.cs-tile.app > .agent, .cs-tile.app > svg.agent { display: block; width: 60px; height: 60px; }
.cs-tile.srv.srv-ic { width: 60px; height: 60px; border-radius: 999px; }
/* The developer portal (D212, D221): the admin pages' column, rows and form
   panes, with code shown as code. */
.dev .form.account { max-width: none; }
.dev .form.account + .form.account { margin-top: 12px; }
.dev .vh p code { font-size: 13px; }
.dev .vh p a, .dev .adm-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dev .adm-note.dev-lede { margin: 0 4px 12px; }
.dev .adm-note { margin: 8px 4px 0; }
.dev > section + section, .dev > section + .notice, .dev > .notice + section { margin-top: 26px; }
.dev .hrow.dev-static:hover, .dev .hrow.dev-static:active { background: none; }
.dev .hrow .t2.dev-wrap { white-space: normal; }
.dev .hrow .t2 code { font-size: 12.5px; }
.dev .hrow > .b, .dev .hrow > .lnk { flex: none; }
.dev-code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
code.dev-code { display: block; flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
pre.dev-block { margin: 0; max-height: 520px; overflow: auto; padding: 16px 18px; white-space: pre; color: var(--ink); }
.fld textarea.dev-code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; resize: vertical; tab-size: 2; }
.dev-copy { display: flex; align-items: center; gap: 8px; }
.dev-problems { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.dev-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; padding: 18px 20px; font-size: 14px; }
.dev-facts dt { color: var(--muted); }
.dev-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dev-facts code { font-size: 13px; }
.dev-name { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dev-name:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.dev-prefix { padding: 0 0 0 12px; color: var(--muted); font: 14.5px var(--f-ui); white-space: nowrap; }
.fld .dev-name input { border: 0; background: none; padding-left: 1px; }
.fld .dev-name input:focus-visible { outline: none; }
.dev-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dev-three .fld > span { font-weight: 400; }
.dev-api-h { display: flex; align-items: end; gap: 12px; }
.dev-api-h .fld { flex: 1; }
.dev-api-h .lnk { padding-bottom: 10px; }
.dev-api details summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.dev-api details .fld { margin-top: 10px; }
.dev-add { margin-top: 12px; }
.dev-save { display: grid; gap: 12px; }
@media (max-width: 760px) {
  .dev-three { grid-template-columns: 1fr; }
  .dev-facts { grid-template-columns: 1fr; gap: 2px; }
  .dev-facts dd { margin-bottom: 10px; }
  .dev .hrow.dev-static { flex-wrap: wrap; row-gap: 8px; }
  .dev .hrow.dev-static > .t { flex: 1 1 calc(100% - 60px); }
  .dev .hrow.dev-static:has(> .lead) > :is(.ypill, .b, .lnk) { margin-left: 50px; }
}
/* Home and Activity beside the chosen item (D254): on a wide screen the list
   and what you chose from it side by side, as People beside a person (D186);
   narrower, one or the other. With nothing to show beside it, the list takes
   the whole width as before. */
.split > .split-pane { display: none; }
.split.has-item > .split-col { display: none; }
.split.has-item > .split-pane { display: block; }
@media (min-width: 1100px) {
  .split:not(.alone) { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .split > .split-col, .split.has-item > .split-col, .split > .split-pane { display: block; min-width: 0; }
  .split:not(.alone) .narrow, .split:not(.alone) .narrow.wide { width: 100%; margin: 0; }
  .split:not(.alone) .home2 { width: 100%; }
  /* In the narrow column, Home and Activity's lists lay out as on a phone. */
  .split:not(.alone) .hduo { grid-template-columns: 1fr; }
  .split:not(.alone) .home-hero { flex-wrap: wrap; }
  .split:not(.alone) .home-hero .wbars.labelled { width: 100%; justify-content: space-between; margin-left: 0; }
  .split:not(.alone) .home-hero .hn { font-size: 38px; }
  .split:not(.alone) .act-chips > :not(.ychips) { flex: 1 1 100%; }
  .split .split-pane .back-lnk { display: none; }
  /* The item's title starts level with the list's. */
  .split .split-pane > .detail { padding-top: 30px; }
  .split .split-pane > .empty { margin-top: 96px; }
  /* The chosen row in lime, as in People. */
  .split .split-col .hrow.on { background: var(--here); }
}

/* Embassy's own additions (D40), kept apart from the shared stylesheets above:
   the setup guide on the admin pages, which only Embassy has. */

.guide-step { display: grid; gap: 12px; padding: 4px 18px 18px 68px; }
.guide-step p { margin: 0; max-width: 68ch; }
.guide-step .fld { margin: 0; }
.guide-shot { margin: 0; }
.guide-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.guide-problems { margin: 0; display: grid; gap: 4px; }
.guide-problems dt { font-weight: 600; }
.guide-problems dd { margin: 0 0 8px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
@media (max-width: 560px) {
  .guide-step { padding: 4px 14px 16px; }
}

/* The ⓘ beside a switch's label that opens what it means (D237). */
.rq-kt { display: inline-flex; align-items: center; gap: 4px; }
.rq-info { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.rq-info svg { width: 17px; height: 17px; }
.rq-info:hover { color: var(--ink); background: var(--surface); }
.rq-info:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
