/* Qvilio ID — Qvilio design v3 "calm light" (light default, dark optional via the account menu).
   Same tokens as the other Qvilio products: ink #0e1216, page #f5f7fa, line #e3e8ee, accent #008cd1 / #3badea / #0a6ea8,
   the dark band with the blue radial glow and the circle pattern. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(/fonts/dm-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(/fonts/dm-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e3e8ee;
  --line-soft: #eef1f4;
  --field-line: #d5dce3;
  --field-bg: #ffffff;
  --inset: #f1f4f7;
  --ink: #0e1216;
  --soft: #3b4450;
  --faint: #5f6874;
  --accent: #008cd1;
  --accent-ring: #e9f4fb;
  --accent-text: #0a6ea8;
  --accent-hover: #00507c;
  --accent-tint: #e9f4fb;
  --accent-tint-ink: #00618f;
  --btn: #0e1216;
  --btn-ink: #ffffff;
  --lift: 0 18px 40px -28px rgba(14,18,22,.35);
  --lift-card: 0 22px 44px -30px rgba(14,18,22,.45);
  --pop: 0 24px 50px -20px rgba(14,18,22,.3);
  --good-ink: #1b6b40; --good-bg: #e6f4ec;
  --warn-ink: #8a4f00; --warn-bg: #fdf1dc; --warn-line: #f0d9ae;
  --bad-ink: #b42318; --bad-bg: #fbeaea; --bad-line: #f2cbc7;
  /* product tints (round arrow) */
  --t-platform: #e6f3fb; --t-platform-ink: #00618f;
  --t-analyst: #efeafd; --t-analyst-ink: #5531c4;
  --t-architect: #fdf0e1; --t-architect-ink: #94470a;
  --t-pulse: #e3f5ef; --t-pulse-ink: #0b6e55;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090c;
  --card: #12171d;
  --line: rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.06);
  --field-line: rgba(255,255,255,.18);
  --field-bg: rgba(255,255,255,.04);
  --inset: rgba(255,255,255,.06);
  --ink: #ffffff;
  --soft: #b7c0ca;
  --faint: #8a94a0;
  --accent: #3badea;
  --accent-ring: rgba(59,173,234,.25);
  --accent-text: #3badea;
  --accent-hover: #7fd3ff;
  --accent-tint: rgba(59,173,234,.16);
  --accent-tint-ink: #7fd3ff;
  --btn: #ffffff;
  --btn-ink: #07090c;
  --lift: 0 30px 60px -30px rgba(0,0,0,.9);
  --lift-card: 0 30px 60px -30px rgba(0,0,0,.9);
  --pop: 0 24px 50px -20px rgba(0,0,0,.7);
  --good-ink: #5fe09a; --good-bg: rgba(47,207,120,.16);
  --warn-ink: #ffd59a; --warn-bg: rgba(255,192,105,.16); --warn-line: rgba(255,192,105,.35);
  --bad-ink: #ff9b9b; --bad-bg: rgba(239,107,107,.14); --bad-line: rgba(239,107,107,.35);
  --t-platform: rgba(46,163,224,.18); --t-platform-ink: #7fd3ff;
  --t-analyst: rgba(154,124,245,.2); --t-analyst-ink: #c4b5fd;
  --t-architect: rgba(232,138,26,.2); --t-architect-ink: #ffc069;
  --t-pulse: rgba(34,184,143,.2); --t-pulse-ink: #6ee7c5;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 48px; color: var(--faint); }
[hidden] { display: none !important; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.btn:hover { color: var(--btn-ink); filter: brightness(1.15); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--field-line); }
.btn.ghost:hover { color: var(--ink); filter: none; background: var(--inset); }
.btn.block { width: 100%; min-height: 48px; font-size: 15px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn.danger { background: var(--card); color: var(--bad-ink); border: 1px solid var(--bad-line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--soft); }
.input { width: 100%; height: 48px; border: 1px solid var(--field-line); border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--ink); background: var(--field-bg); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input.sm { height: 40px; font-size: 13.5px; border-radius: 10px; padding: 0 12px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6874' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw .eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--faint); display: flex; align-items: center; justify-content: center; }
.pw .eye:hover { background: var(--inset); }
.err { background: var(--bad-bg); color: var(--bad-ink); border: 1px solid var(--bad-line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.ok-note { background: var(--good-bg); color: var(--good-ink); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--accent-hover); }
.muted { color: var(--faint); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- Sign in ---------- */
.signin { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; background: var(--bg); }
.brandpanel { flex: 1 1 480px; position: relative; overflow: hidden; background-color: #0b1117; background-image: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(0,140,209,.42), transparent 70%); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; color: #ffffff; }
.brandpanel .rings { position: absolute; right: 0; bottom: 0; width: 100%; height: 60%; background-image: radial-gradient(circle, transparent 25px, rgba(59,173,234,.18) 26px, rgba(59,173,234,.18) 27px, transparent 28px); background-size: 76px 76px; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); pointer-events: none; }
.brandpanel .logo { position: relative; display: flex; align-items: center; gap: 9px; text-decoration: none; color: #ffffff; }
.brandpanel .logo:hover { color: #ffffff; }
.brandpanel .logo span { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.brandpanel .logo b, .topbar .logo b { font-weight: 600; }
.brandpanel .logo b { color: #3badea; }
.brandpanel .pitch { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; color: #3badea; }
.brandpanel h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.brandpanel h1 span, .band h1 span { color: #3badea; }
.brandpanel p { margin: 0; font-size: 16px; line-height: 1.5; color: #b7c0ca; }
.brandpanel ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #dde3e9; }
.brandpanel li { display: flex; gap: 10px; align-items: center; }
.brandpanel li svg { flex: none; }
.formside { flex: 1 1 520px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; }
.formcol { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.formcol .head { display: flex; flex-direction: column; gap: 8px; }
.formcol h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.formcol .head p { margin: 0; font-size: 14.5px; color: var(--soft); }
.formcol form { display: flex; flex-direction: column; gap: 18px; }
.formcol .pwrow { display: flex; justify-content: space-between; align-items: baseline; }
.formcol .pwrow a, .formcol .pwrow button { font-size: 13px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.alt .btn { min-height: 48px; font-size: 14.5px; gap: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--field-line); }
.alt .btn:hover { background: var(--inset); filter: none; color: var(--ink); }
.alt .wide { grid-column: 1 / -1; }
.infobox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.infobox svg { flex: none; margin-top: 2px; }
.infobox span { font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.legal { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; }
.legal a { color: var(--faint); }
.qr { display: block; width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.setup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.setup p { margin: 0; font-size: 13.5px; color: var(--soft); flex: 1 1 180px; }
.key { font-size: 12.5px; color: var(--faint); word-break: break-all; }
.key b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 15px; letter-spacing: .06em; }
.otp { letter-spacing: .4em; font-size: 20px; text-align: center; font-weight: 600; }

/* ---------- top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: relative; z-index: 20; }
.topbar .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.topbar .logo:hover { color: var(--ink); }
.topbar .logo .word { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.topbar .logo b { color: var(--accent-text); }
.topbar .logo .tag { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: var(--accent-text); margin-left: 4px; }
.orgchip { margin-left: 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; }
.orgchip .ini { width: 22px; height: 22px; border-radius: 6px; background: var(--inset); color: var(--soft); font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.orgchip .ini.q { background: var(--ink); color: var(--bg); font-size: 10px; }
.orgchip .nm { font-weight: 600; }
button.orgchip { min-height: 40px; border: 1px solid var(--field-line); background: var(--card); border-radius: 10px; padding: 0 12px; color: var(--ink); }
button.orgchip:hover { background: var(--inset); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.navlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.navlink:hover { color: var(--ink); background: var(--inset); }
.navlink[aria-current="page"] { color: var(--accent-tint-ink); background: var(--accent-tint); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--soft); display: flex; align-items: center; justify-content: center; padding: 0; }
.iconbtn:hover { background: var(--inset); }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent-tint); color: var(--accent-tint-ink); font-size: 12px; font-weight: 700; padding: 0; }
.menuwrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 50; }
.menu.left { right: auto; left: 0; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.menu .who b { font-size: 14px; }
.menu .who span { font-size: 12.5px; color: var(--faint); }
.menu .item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 10px; font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; width: 100%; }
.menu .item:hover { background: var(--inset); color: var(--ink); }
.menu .item[aria-checked="true"] { font-weight: 600; }
.menu .item .check { margin-left: auto; color: var(--accent-text); }
.menu .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 10px; font-size: 14px; }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; width: 100%; }
.seg { display: inline-flex; background: var(--inset); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(14,18,22,.12); }

/* ---------- dark band ---------- */
.band { position: relative; overflow: hidden; background-color: #0b1117; background-image: radial-gradient(ellipse 45% 120% at 92% -10%, rgba(0,140,209,.38), transparent 70%); padding: 40px 40px 112px; color: #ffffff; }
.band.people { padding: 36px 40px 100px; }
.band .rings { position: absolute; right: 0; top: 0; width: 46%; height: 100%; background-image: radial-gradient(circle, transparent 25px, rgba(59,173,234,.20) 26px, rgba(59,173,234,.20) 27px, transparent 28px); background-size: 76px 76px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.band .inner { position: relative; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.band .inner.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.band h1 { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; color: #ffffff; }
.band .col { display: flex; flex-direction: column; gap: 16px; }
.tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px; align-self: flex-start; }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: #dde3e9; text-decoration: none; font-size: 13.5px; font-weight: 500; }
.tabs a:hover { color: #ffffff; background: rgba(255,255,255,.08); }
.tabs a[aria-current="page"] { background: #ffffff; color: #0e1216; font-weight: 600; }
.band .bandbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.onband { background: #ffffff; color: #0e1216; }
.btn.onband:hover { color: #0e1216; filter: none; background: #eef4f8; }
.btn.onband.ghosty { background: rgba(255,255,255,.08); color: #ffffff; border: 1px solid rgba(255,255,255,.22); }
.btn.onband.ghosty:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.prodbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: #b7c0ca; }
.prodbar .lbl { font-weight: 600; letter-spacing: .14em; font-size: 10.5px; color: #8a94a0; margin-right: 4px; }
.orgid { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: -6px; font-size: 12px; color: #8a94a0; }
.orgid .lbl { font-weight: 600; letter-spacing: .02em; }
.orgid code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #b7c0ca; overflow-wrap: anywhere; user-select: all; }
.orgid .copy { background: none; border: 0; padding: 4px 2px; min-height: 24px; color: #7cc8f0; font-size: 12px; font-weight: 600; cursor: pointer; }
.orgid .copy:hover { color: #ffffff; text-decoration: underline; }
.ptoggle { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #dde3e9; font-size: 12.5px; font-weight: 600; }
.ptoggle[aria-pressed="true"] { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #ffffff; }
.ptoggle .mk { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; opacity: .45; }
.ptoggle[aria-pressed="true"] .mk { opacity: 1; }

/* ---------- page body over the band ---------- */
.page { position: relative; margin: -76px auto 0; padding: 0 40px 48px; width: 100%; max-width: 1360px; display: flex; flex-direction: column; gap: 20px; }
.page.people { margin-top: -64px; gap: 16px; }

/* product cards */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--lift-card); padding: 22px; display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ink); min-height: 228px; transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 28px 50px -28px rgba(14,18,22,.5); }
.pcard .glow { position: absolute; right: -56px; top: -56px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; }
.pcard .txt { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pcard .nm { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.pcard .ds { font-size: 13.5px; color: var(--soft); line-height: 1.45; }
.pcard .foot { position: relative; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pcard .role { font-size: 12.5px; font-weight: 600; color: var(--soft); }
.pcard .go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.picon { position: relative; flex: none; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.p-platform .picon, .mk.p-platform { background: linear-gradient(135deg, #0077b6, #2ea3e0); }
.p-platform .picon { box-shadow: 0 12px 24px -10px #0077b6; }
.p-platform .glow { background: radial-gradient(circle, rgba(0,140,209,.20), transparent 70%); }
.p-platform .go { background: var(--t-platform); color: var(--t-platform-ink); }
.p-analyst .picon, .mk.p-analyst { background: linear-gradient(135deg, #6a3fe0, #9a7cf5); }
.p-analyst .picon { box-shadow: 0 12px 24px -10px #6a3fe0; }
.p-analyst .glow { background: radial-gradient(circle, rgba(106,63,224,.18), transparent 70%); }
.p-analyst .go { background: var(--t-analyst); color: var(--t-analyst-ink); }
.p-architect .picon, .mk.p-architect { background: linear-gradient(135deg, #b85700, #e88a1a); }
.p-architect .picon { box-shadow: 0 12px 24px -10px #b85700; }
.p-architect .glow { background: radial-gradient(circle, rgba(224,127,18,.20), transparent 70%); }
.p-architect .go { background: var(--t-architect); color: var(--t-architect-ink); }
.p-pulse .picon, .mk.p-pulse { background: linear-gradient(135deg, #0b8a6a, #22b88f); }
.p-pulse .picon { box-shadow: 0 12px 24px -10px #0b8a6a; }
.p-pulse .glow { background: radial-gradient(circle, rgba(11,138,106,.20), transparent 70%); }
.p-pulse .go { background: var(--t-pulse); color: var(--t-pulse-ink); }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--lift-card); padding: 28px; font-size: 14.5px; color: var(--soft); }
.empty b { color: var(--ink); }

/* passkey banner */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 18px; }
.banner > svg { flex: none; }
.banner .t { flex: 1 1 320px; font-size: 14px; color: var(--soft); }
.banner .t strong { color: var(--ink); }
.banner .x { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--faint); display: flex; align-items: center; justify-content: center; }
.banner .x:hover { background: var(--inset); }

/* ---------- People & access ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--lift); }
.support { border-color: var(--warn-line); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.support .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.support .ic.ok { background: var(--good-bg); color: var(--good-ink); }
.support .bd { flex: 1 1 420px; display: flex; flex-direction: column; gap: 4px; }
.support h2 { margin: 0; font-size: 16px; font-weight: 600; }
.support .bd span { font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.support .acts { display: flex; gap: 10px; }
.support.granted { border-color: var(--line); }
.peoplecard { padding: 18px 24px 10px; display: flex; flex-direction: column; gap: 12px; }
.peoplecard .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.peoplecard .bar .count { font-size: 14px; color: var(--soft); }
.peoplecard .bar .count strong { color: var(--ink); }
.peoplecard .bar .input { width: 260px; }
/* wide tables scroll inside their card; flex parents must not grow to the table's width */
.page > *, .peoplecard, .auditcard { min-width: 0; }
.tablewrap { position: relative; overflow-x: auto; min-width: 0; max-width: 100%; } /* positioned: visually hidden labels (.sr) stay inside the scroll box */
.ptable { min-width: 760px; font-size: 14px; }
.ptable .tr { display: grid; gap: 16px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); }
.ptable .tr:last-child { border-bottom: 0; }
.ptable .th { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.ptable .person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptable .person b { font-weight: 600; }
.ptable .person span { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.ptable .adm { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent-text); margin-left: 6px; }
.chip { justify-self: start; font-size: 13px; font-weight: 600; color: var(--accent-tint-ink); background: var(--accent-tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip.none { background: none; color: var(--faint); font-weight: 400; padding: 3px 0; }
.chip.active { font-size: 12.5px; color: var(--good-ink); background: var(--good-bg); }
.chip.invited { font-size: 12.5px; color: var(--warn-ink); background: var(--warn-bg); }
.chip.off { font-size: 12.5px; color: var(--faint); background: var(--inset); }
.dots { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--soft); display: flex; align-items: center; justify-content: center; padding: 0; }
.dots:hover { background: var(--inset); }
.rowmenu { position: relative; }
.nores { padding: 24px 8px; color: var(--faint); font-size: 14px; }

/* audit log */
.auditcard { padding: 18px 24px 14px; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .input { width: auto; }
.filters .grow { flex: 1 1 220px; }
.filters .spacer { margin-left: auto; }
.atable { min-width: 960px; font-size: 13.5px; }
.atable .tr { grid-template-columns: 150px 1.4fr 1.8fr 1fr 1.5fr 92px; }
.atable .what b { font-weight: 600; display: block; }
.atable .what span, .atable .from span { font-size: 12.5px; color: var(--faint); display: block; }
.atable .when { color: var(--soft); font-variant-numeric: tabular-nums; }
.res { justify-self: start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.res.success { color: var(--good-ink); background: var(--good-bg); }
.res.failure { color: var(--bad-ink); background: var(--bad-bg); }
.more { align-self: center; }
.foot-note { font-size: 12.5px; color: var(--faint); padding: 0 4px; }

/* dialogs */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(7,9,12,.55); }
.dlg { width: 520px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--pop); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.dlg h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.dlg p { margin: 0; font-size: 14px; color: var(--soft); }
.dlg form { display: flex; flex-direction: column; gap: 16px; }
.dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dlg .acts .left { margin-right: auto; }
.rolegrid { display: flex; flex-direction: column; gap: 10px; }
.rolerow { display: flex; align-items: center; gap: 12px; }
.rolerow .mk { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.rolerow .nm { flex: 1; font-size: 14px; font-weight: 600; }
.rolerow select { width: 190px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--soft); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pklist { display: flex; flex-direction: column; gap: 8px; }
.pk { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pk .meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk .meta b { font-size: 14px; font-weight: 600; }
.pk .meta span { font-size: 12.5px; color: var(--faint); }
.pk .input { height: 38px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100; box-shadow: var(--pop); max-width: calc(100vw - 32px); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brandpanel { padding: 28px 24px; gap: 28px; flex-basis: 100%; }
  .brandpanel h1 { font-size: 30px; }
  .brandpanel p { font-size: 15px; }
  .formside { padding: 32px 16px 40px; flex-basis: 100%; }
  .formcol h2 { font-size: 24px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .topbar .logo .word { font-size: 18px; }
  .orgchip { margin-left: 0; }
  .topbar .right { gap: 8px; }
  .navlink { padding: 0 10px; font-size: 13.5px; }
  .band, .band.people { padding: 28px 16px 96px; }
  .band h1 { font-size: 26px; }
  .page { padding: 0 16px 32px; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .pcard { min-height: 0; }
  .peoplecard, .auditcard { padding: 14px 14px 8px; }
  .peoplecard .bar .input { width: 100%; }
  .support { padding: 16px; }
  .support .acts { width: 100%; }
  .support .acts .btn { flex: 1; }
  .dlg { padding: 18px; }
  .dlg .two { grid-template-columns: 1fr; }
  .rolerow select { width: 150px; }
  .menu { position: fixed; top: 64px; left: 16px; right: 16px; min-width: 0; }
}
select.input.sm { padding-right: 34px; }
