/* @appi/account - defaults for the account screens (appi-account.7a84d24bcf.js). They take their colors from the app's own CSS variables (--line, --bg, --muted, --bad, --soft or
   --brand-soft, --radius-sm, --tap) and fall back to neutral values, so link this file once and override anything you like after it. */
.enrol, .filebox { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.enrol .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qr { width: min(320px, 100%); aspect-ratio: 1; align-self: center; border-radius: var(--radius-sm, 8px); border: 1px solid var(--line, #ccc); background: #fff; }   /* a QR code is always dark on light, whatever the theme */
.camera { width: 100%; max-height: 320px; border-radius: var(--radius-sm, 8px); background: #000; object-fit: cover; }
.camera.hidden { display: none; }
.file { display: none; }
.filebtn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap, 40px); padding: 0 16px; border-radius: var(--radius-sm, 8px); border: 1px solid var(--line, #ccc); background: var(--soft, var(--panel, transparent)); color: inherit; font-size: inherit; margin: 0; }
.enrol .field, .filebox .field, .stay .field { display: flex; flex-direction: column; gap: 4px; }
.enrol textarea { width: 100%; font: inherit; color: inherit; background: var(--bg, transparent); border: 1px solid var(--line, #ccc); border-radius: var(--radius-sm, 8px); padding: 8px 12px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: auto; min-height: 0; margin: 4px 0 0; flex: none; }
.account-note { padding: 10px 14px; border-radius: var(--radius-sm, 8px); background: var(--soft, var(--brand-soft, rgba(128, 128, 128, .14))); margin: 0; }
.account-note.bad { color: var(--bad, #c0392b); }
.account-hint { color: var(--muted, #667); margin: 0; }
.account-hint.small { font-size: .82rem; }
.btn.wide { width: 100%; }

/* profiles: the picker on the sign-in screen and the account bar */
.profiles { display: grid; gap: 10px; }
.profile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-item { display: flex; align-items: center; gap: 6px; }
.profile { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 6px; border-radius: 999px; border: 1px solid var(--line, #ccd); background: var(--panel, #fff); color: inherit; font: inherit; cursor: pointer; }
.profile.current { border-color: var(--brand, #0a7); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #0a7) 25%, transparent); }
.profile:disabled { opacity: .55; cursor: default; }
/* an input with its action(s) INSIDE it, at the right (one-input forms): .field.has-action > .input-wrap(--actions: n) > [input, .field-actions > button.field-action ...]. The buttons are 36px with 8px around them. */
.input-wrap { position: relative; display: flex; flex-direction: column; --actions: 1; }
.field.has-action .input-wrap > input, .field.has-action .input-wrap > textarea { padding-right: calc(16px + var(--actions) * 36px + (var(--actions) - 1) * 4px); min-height: 52px; }
.field-actions { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.field-actions .field-action, .field-actions .field-action.btn.icon-only { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; }
.profile-form .field { flex: 1 1 100%; min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand, #0a7); color: var(--brand-fg, #fff); font-weight: 700; flex: none; }
.profile-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }      /* PROFILE IDENTITY (UI guide): a 32 px avatar and the name in body size, 600 */
.profile-actions, .profile-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name-input { flex: 1; min-width: 10ch; min-height: 44px; }
.account-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-bar .avatar.me { width: 32px; height: 32px; }
.account-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* YOUR APPS (AppsGrid): the node's apps as tiles, each its icon, its name and its address (a tile is a link: 44px+ target, focus ring from the app) */
.apps-grid-card { display: flex; flex-direction: column; gap: 8px; }
.apps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.apps-grid-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 12px 4px; border-radius: var(--radius-sm, 8px); color: inherit; text-decoration: none; text-align: center; }
.apps-grid-tile:hover { background: var(--soft, var(--brand-soft, rgba(128, 128, 128, .14))); }
.apps-grid-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.apps-grid-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--brand, #0a7); color: var(--brand-fg, #fff); font-weight: 600; }
.apps-grid-name { font-weight: 600; overflow-wrap: anywhere; }
.apps-grid-host { color: var(--muted, #667); font-size: .78rem; overflow-wrap: anywhere; }

/* THE PRIVACY POLICY (@appi/privacy): the page body, the data-flow diagram and the sign-in agreement. Colors from the app's tokens; the diagram follows light and dark. */
.privacy-policy { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.privacy-lead { margin: 0; font-size: 1.02rem; }
.privacy-section h2 { font-size: 1.05rem; margin: 8px 0 6px; }
.privacy-section p { margin: 0 0 8px; }
.privacy-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.privacy-proud { font-weight: 600; color: var(--good, var(--brand, #0a7)); }
.privacy-operator { padding: 10px 14px; border-left: 3px solid var(--line, #ccd); }
.privacy-version { color: var(--muted, #667); font-size: .82rem; margin: 0; }
/* The page is its OWN scroll container (user, 2026-11-20: "doesn't scroll on mobile with swipe"): it can open from a window (the Profile, Sync or About window), and that window's
   `html.modal-open { overflow: hidden }` stays on underneath, which froze the page. Fixed over everything, scrolled by itself, it scrolls whatever the document does. */
.gate.privacy-page { position: fixed; inset: 0; z-index: var(--z-modal, 50); min-height: 0; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; background: var(--bg); }
.gate.privacy-page > .privacy-card { flex: none; margin-block: auto; }
/* REGISTRATION REQUESTS (the template's requestviews.js / nodeproblem.js): the CODE the person shows the administrator, large and spaced so it reads aloud */
.request-code { margin: 0; font: 600 var(--text-lg, 1.4rem)/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .12em; user-select: all; }
/* THE DATA MAP (@appi/privacy PrivacyFlow, user 2026-11-24): this device -> a card per place the data goes, the schema's types as chips -> who can read it. Each card's KIND sets one colour
   (--c) for its band, its lines and its reader; the chips stay neutral so the names read first. Colour is never the only cue: every card is titled and every line ends at a named reader. */
.privacy-flow-box { width: 100%; margin-block: var(--stack, 16px); }
.privacy-flow { display: block; width: 100%; height: auto; max-width: 760px; margin-inline: auto; overflow: visible; font-family: var(--font, inherit); }
.privacy-flow .flow-local { --c: var(--good, #2a8); } .privacy-flow .flow-node { --c: var(--brand, #0a7); } .privacy-flow .flow-sealed { --c: var(--good, #2a8); }
.privacy-flow .flow-public { --c: var(--warn, #c80); } .privacy-flow .flow-search, .privacy-flow .flow-admin { --c: var(--muted, #667); } .privacy-flow .flow-shared { --c: var(--brand, #0a7); }
.privacy-flow .flow-box rect, .privacy-flow .flow-card > rect:first-child { fill: var(--panel, transparent); stroke: var(--line, #99a); stroke-width: 1.25; }
.privacy-flow .flow-device rect { stroke: var(--brand, #0a7); stroke-width: 2; fill: var(--brand-soft, var(--panel, transparent)); }
.privacy-flow .flow-reader rect { stroke: var(--c); stroke-width: 2; }
.privacy-flow .flow-band { fill: var(--c); stroke: none; }
.privacy-flow .flow-narrow .flow-card > rect:first-child, .privacy-flow.narrow .flow-card > rect:first-child { stroke: var(--c); }
.privacy-flow .flow-title { font-weight: 600; font-size: 14.5px; fill: var(--fg, currentColor); }
.privacy-flow .flow-line { font-size: 12.5px; fill: var(--muted, #667); }
.privacy-flow .flow-who { font-size: 12.5px; font-weight: 600; fill: var(--c); }
.privacy-flow .flow-label { font-size: 11.5px; fill: var(--muted, #667); }
.privacy-flow .flow-chip rect { fill: var(--bg, transparent); stroke: var(--line, #99a); stroke-width: 1; }
.privacy-flow .flow-chip text { font-size: 12px; fill: var(--fg, currentColor); }
.privacy-flow .flow-family { fill: color-mix(in srgb, var(--c, var(--brand, #0a7)) 10%, transparent); stroke: color-mix(in srgb, var(--c, var(--brand, #0a7)) 45%, transparent); stroke-width: 1; }
.privacy-flow .flow-part rect { fill: none; stroke-dasharray: 3 2; }
.privacy-flow .flow-part text { font-size: 11px; fill: var(--muted, #667); }
.privacy-flow .flow-edge { fill: none; stroke: var(--c); stroke-width: 1.75; opacity: .75; }
.privacy-flow .flow-dashed { stroke-dasharray: 6 4; }
.privacy-flow .flow-spine, .privacy-flow .flow-tick { fill: none; stroke: var(--line, #99a); stroke-width: 2; stroke-linecap: round; }
.privacy-flow .flow-tick { stroke: var(--c); }
.privacy-flow .flow-head { fill: var(--muted, #667); }
.privacy-agree { display: flex; flex-direction: column; gap: 4px; }
.privacy-agree .link, .privacy-link { padding: 0; border: 0; background: none; color: var(--brand, #0a7); text-decoration: underline; font: inherit; cursor: pointer; min-height: 0; }
