:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #111111;
  --surface-2: #151515;
  --text: #f2f2ef;
  --muted: #8d8d88;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.19);
  --silver: #c9c9c5;
  --scout: #b51834;
  --dash: #2c69d1;
  --good: #9eb89d;
  --warn: #d4b36a;
  --danger: #d17272;
}
* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width:0; height:0; display:none; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.noise { pointer-events:none; position:fixed; inset:0; opacity:.027; z-index:100; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.brand { color:var(--text); text-decoration:none; display:inline-flex; align-items:center; gap:10px; letter-spacing:.17em; font-size:12px; font-weight:700; }
.brand-logo { width:24px; height:24px; object-fit:contain; display:block; flex:0 0 auto; }
.eyebrow { margin:0 0 18px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }

.login-page { min-height:100vh; padding:28px clamp(24px,4vw,64px) 20px; display:grid; grid-template-rows:auto 1fr auto; }
.brand-bar, .login-footer, .topbar { display:flex; align-items:center; justify-content:space-between; }
.brand-context, .login-footer { color:var(--muted); font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.login-brand-bar { justify-content:flex-end; }
.orliq-lockup {
  position:relative;
  width:min(500px, 100%);
  height:clamp(260px, 29vw, 360px);
  margin:0 0 22px;
  display:grid;
  place-items:center;
}
.orliq-lockup-mark {
  position:absolute;
  left:50%;
  top:47%;
  width:clamp(235px, 22vw, 320px);
  height:auto;
  transform:translate(-50%, -50%);
  object-fit:contain;
  opacity:.56;
  pointer-events:none;
  user-select:none;
}
.orliq-lockup-word {
  position:absolute;
  left:50%;
  top:58%;
  transform:translate(-50%, -50%);
  z-index:1;
  color:#f4f4f1;
  font-size:clamp(62px, 6.1vw, 88px);
  line-height:.9;
  font-weight:500;
  letter-spacing:.13em;
  padding-left:.13em;
  white-space:nowrap;
}
.login-stage { align-self:center; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(320px,.58fr); gap:clamp(60px,10vw,180px); align-items:end; padding:7vh 0 9vh; }
.login-copy h1, .hero-title h1, .products-intro h1 { margin:0; max-width:760px; font-size:clamp(54px,7vw,108px); line-height:.88; letter-spacing:-.065em; font-weight:550; }
.login-copy h1 span, .hero-title h1 span, .products-intro h1 span { color:#85857f; }
.login-note { max-width:530px; margin:34px 0 32px; color:#aaa9a4; font-size:16px; line-height:1.65; }
.product-signatures { display:flex; gap:26px; color:#cacac5; font-size:12px; }
.product-signatures span { display:flex; align-items:center; gap:9px; }
.dot { width:7px; height:7px; border-radius:99px; display:inline-block; flex:0 0 auto; }
.dot.scout { background:var(--scout); }
.dot.dash { background:var(--dash); }
.login-form { border-top:1px solid var(--line-strong); padding-top:20px; }
.form-heading { display:flex; justify-content:space-between; align-items:start; margin-bottom:42px; gap:24px; }
.form-heading > span { font-size:11px; letter-spacing:.17em; font-weight:700; }
.form-heading small { color:var(--muted); font-size:11px; max-width:160px; text-align:right; line-height:1.4; }
.login-form label { display:block; border-bottom:1px solid var(--line); padding:0 0 11px; margin-bottom:28px; }
.login-form label span { display:block; color:var(--muted); font-size:11px; margin-bottom:7px; }
.login-form input { width:100%; border:0; outline:0; color:var(--text); background:transparent; font-size:18px; padding:4px 0; }
.login-form label:focus-within { border-color:var(--silver); }
.form-error { min-height:20px; color:#d88; font-size:12px; margin:0 0 12px; }
.primary-action { width:100%; min-height:48px; border:1px solid #e2e2df; background:#e5e5e1; color:#111; font-weight:700; cursor:pointer; transition:transform .16s ease, background .16s ease; }
.primary-action:hover { background:#fff; transform:translateY(-1px); }

.app-shell { --shell-pad:clamp(22px,4vw,64px); min-height:100vh; padding:0 var(--shell-pad) 80px; }
.topbar { height:76px; margin-inline:calc(var(--shell-pad) * -1); padding-inline:var(--shell-pad); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; background:var(--bg); backdrop-filter:none; isolation:isolate; }
.nav { display:flex; height:100%; align-items:center; gap:26px; }
.nav-link, .text-button, .filter { border:0; background:none; cursor:pointer; padding:0; }
.nav-link { position:relative; height:100%; color:var(--muted); font-size:12px; }
.nav-link.active { color:var(--text); }
.nav-link.active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:#fff; }
.top-actions { display:flex; gap:18px; align-items:center; }
.admin-email { color:var(--muted); font-size:11px; }
.text-button { color:#c7c7c2; font-size:12px; }
.text-button:hover { color:#fff; }
.view { max-width:1600px; margin:0 auto; }
.hero-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(400px,.75fr); gap:70px; align-items:end; padding:84px 0 66px; }
.hero-title h1 { font-size:clamp(62px,7.2vw,118px); }
.hero-summary { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line-strong); padding-top:18px; }
.hero-summary div { padding-right:18px; min-width:0; }
.hero-summary strong { display:block; font-size:clamp(28px,3vw,46px); line-height:1; font-weight:500; letter-spacing:-.045em; }
.hero-summary span { display:block; color:var(--muted); font-size:11px; margin-top:8px; }
.control-row { border-top:1px solid var(--line); border-bottom:1px solid var(--line); min-height:66px; display:grid; grid-template-columns:minmax(240px,1fr) auto auto; align-items:center; gap:30px; }
.search-wrap { display:flex; align-items:center; gap:10px; min-width:0; }
.search-symbol { color:var(--muted); font-size:18px; }
.search-wrap input { width:100%; background:transparent; border:0; outline:0; color:var(--text); min-height:52px; font-size:14px; }
.search-wrap input::placeholder { color:#6e6e69; }
.segmented { display:flex; gap:20px; align-items:center; }
.filter { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; min-height:40px; }
.filter.active { color:#fff; }
.people-index { margin-top:26px; }
.index-head, .person-row { display:grid; grid-template-columns:minmax(260px,1.45fr) minmax(240px,.75fr) minmax(160px,.5fr) minmax(150px,.55fr); gap:24px; align-items:center; }
.index-head { color:#676762; font-size:10px; text-transform:uppercase; letter-spacing:.15em; padding:0 16px 12px; }
.person-row { width:100%; text-align:left; border:0; border-top:1px solid var(--line); background:transparent; padding:21px 16px; cursor:pointer; transition:background .16s ease; }
.person-row:last-child { border-bottom:1px solid var(--line); }
.person-row:hover { background:#0e0e0e; }
.person-primary { min-width:0; }
.person-primary strong { display:block; font-size:15px; line-height:1.28; font-weight:560; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.person-primary span { display:block; margin-top:8px; color:var(--muted); font-size:12px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.access-list { display:flex; gap:10px; flex-wrap:wrap; }
.access-pill { display:inline-flex; align-items:center; gap:7px; font-size:11px; color:#bbb; }
.access-pill.off { opacity:.38; }
.state { font-size:11px; color:#bdbdb8; }
.state.pending { color:var(--warn); }
.state.suspended { color:var(--danger); }
.activity { color:var(--muted); font-size:11px; }
.empty-state { border-top:1px solid var(--line); padding:50px 16px; color:var(--muted); }

.products-intro { display:grid; grid-template-columns:1fr .6fr; gap:80px; align-items:end; padding:86px 0 62px; }
.products-intro h1 { font-size:clamp(60px,7vw,106px); }
.products-intro > p { margin:0 0 4px; color:#a2a29d; line-height:1.65; max-width:520px; }
.product-status { border-top:1px solid var(--line-strong); }
.product-line { display:grid; grid-template-columns:1fr 1fr auto; gap:30px; align-items:center; padding:28px 0; border-bottom:1px solid var(--line); }
.product-line h2 { margin:0; font-size:26px; font-weight:520; letter-spacing:-.03em; }
.product-line p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.product-line .status-tag { font-size:11px; color:var(--good); }
.product-line .status-tag.error { color:var(--danger); }

.drawer { position:fixed; top:0; right:0; width:min(560px,100%); height:100%; z-index:60; background:#0e0e0e; border-left:1px solid var(--line-strong); padding:34px clamp(24px,4vw,48px); transform:translateX(102%); transition:transform .25s cubic-bezier(.2,.8,.2,1); overflow:auto; }
.drawer.open { transform:translateX(0); }
.drawer-backdrop { position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.48); }
.drawer-close { float:right; border:0; background:none; color:var(--muted); font-size:28px; cursor:pointer; }
.drawer-kicker { margin-top:54px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.17em; }
.drawer h2 { margin:12px 0 0; font-size:clamp(34px,6vw,58px); line-height:1.02; letter-spacing:-.05em; font-weight:520; }
.drawer-email { margin-top:10px; color:var(--muted); font-size:13px; line-height:1.35; }
.drawer-products { margin-top:46px; }
.product-access { border-top:1px solid var(--line); padding:22px 0 26px; }
.product-access:last-child { border-bottom:1px solid var(--line); }
.product-access-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.product-access-head strong { display:flex; align-items:center; gap:9px; font-size:14px; }
.product-meta { margin-top:10px; color:var(--muted); font-size:12px; line-height:1.7; }
.actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.action { min-height:38px; padding:0 14px; border:1px solid var(--line-strong); background:transparent; color:#ddd; cursor:pointer; font-size:11px; }
.action:hover { border-color:#777; }
.action.danger { color:#d99494; }
.role-picker { position:relative; min-width:132px; }
.role-trigger { width:100%; min-height:38px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--line-strong); background:#111; color:#e1e1de; cursor:pointer; font-size:11px; text-align:left; }
.role-trigger:hover, .role-picker.open .role-trigger { border-color:#777; background:#151515; }
.role-chevron { width:7px; height:7px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .16s ease; }
.role-picker.open .role-chevron { transform:rotate(225deg) translate(-1px,-1px); }
.role-menu { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:90; border:1px solid var(--line-strong); background:#0d0d0d; box-shadow:0 18px 38px rgba(0,0,0,.38); padding:4px; }
.role-option { width:100%; min-height:34px; padding:0 10px; border:0; background:transparent; color:#bdbdb8; cursor:pointer; font-size:11px; text-align:left; }
.role-option:hover, .role-option.active { background:#191919; color:#fff; }
.no-access { color:#666; font-size:12px; padding:12px 0 2px; }
.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,18px); z-index:100; background:#e7e7e3; color:#111; padding:11px 15px; font-size:12px; opacity:0; pointer-events:none; transition:.2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.toast.error { background:#552526; color:#ffe4e4; }

@media (max-width: 980px) {
  .login-stage { grid-template-columns:1fr; gap:56px; }
  .orliq-lockup { width:min(480px,100%); height:290px; margin-bottom:16px; }
  .orliq-lockup-mark { width:270px; }
  .orliq-lockup-word { font-size:74px; }
  .login-form { max-width:620px; }
  .hero-grid, .products-intro { grid-template-columns:1fr; gap:48px; }
  .hero-summary { max-width:650px; }
  .control-row { grid-template-columns:1fr auto; padding:10px 0; }
  .segmented { grid-row:2; grid-column:1 / -1; overflow:auto; padding-bottom:5px; }
  .index-head { display:none; }
  .person-row { grid-template-columns:1fr auto; gap:12px 20px; }
  .person-row > :nth-child(3), .person-row > :nth-child(4) { grid-column:2; }
}
@media (max-width: 620px) {
  .login-page { padding:22px 20px 18px; }
  .brand-context, .admin-email { display:none; }
  .login-stage { padding:52px 0 44px; }
  .orliq-lockup { height:220px; margin:-4px 0 18px; }
  .orliq-lockup-mark { width:205px; }
  .orliq-lockup-word { font-size:54px; letter-spacing:.11em; padding-left:.11em; }
  .topbar { height:66px; }
  .app-shell { --shell-pad:18px; padding:0 var(--shell-pad) 60px; }
  .nav { gap:16px; }
  .hero-grid { padding:58px 0 44px; }
  .hero-title h1, .products-intro h1 { font-size:58px; }
  .hero-summary { grid-template-columns:repeat(3,1fr); }
  .hero-summary strong { font-size:28px; }
  .control-row { grid-template-columns:1fr; gap:4px; }
  .control-row > .text-button { display:none; }
  .segmented { grid-row:auto; grid-column:auto; gap:18px; }
  .person-row { padding:18px 4px; }
  .person-row > :nth-child(3), .person-row > :nth-child(4) { grid-column:1 / -1; }
  .access-list { grid-column:1 / -1; }
  .product-line { grid-template-columns:1fr auto; }
  .product-line > :nth-child(2) { grid-row:2; grid-column:1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; }
}

.confirm-modal { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.68); }
.confirm-panel { width:min(440px,100%); background:#101010; border:1px solid var(--line-strong); padding:28px; }
.confirm-panel h2 { margin:0; font-size:28px; font-weight:520; letter-spacing:-.035em; }
.confirm-panel > p:not(.eyebrow) { color:var(--muted); line-height:1.6; font-size:13px; margin:14px 0 26px; }
.confirm-actions { display:flex; justify-content:flex-end; gap:10px; }
