/* Gameball Portal — design tokens & components, modeled on gameball.co */
:root {
  --ink: #0b0c14;
  --navy: #060814;
  --navy-2: #0d1022;
  --navy-line: #1e2236;
  --blue: #2f5ff5;
  --blue-soft: #eef2ff;
  --yellow: #fcdd4b;
  --orange: #ef6a2c;
  --orange-soft: #fff1ea;
  --green: #45b35a;
  --green-soft: #eaf7ec;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber-soft: #fff8db;
  --gray-50: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-200: #e1e4ea;
  --gray-400: #9aa1ae;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --white: #fff;
  --shadow-hard: 4px 4px 0 #d5d8df;
  --shadow-hard-ink: 4px 4px 0 var(--ink);
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--gray-100); padding: 1px 6px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--gray-500); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- announcement bar ---------- */
.announce {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
  text-align: center; font-weight: 600; font-size: 14px; padding: 10px 16px;
}
.announce::before, .announce::after {
  content: ""; position: absolute; top: -30px; width: 220px; height: 110px;
  border: 22px solid rgba(255,255,255,.14); border-radius: 50%;
}
.announce::before { left: 8%; transform: rotate(-18deg); }
.announce::after { right: 6%; transform: rotate(24deg); }
.announce span { position: relative; z-index: 1; }

.test-banner { background: var(--yellow); color: var(--ink); text-align: center; font-weight: 700; font-size: 13px; padding: 6px 16px; border-bottom: 2px solid var(--ink); }

/* ---------- nav ---------- */
.nav { background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 20; }
.nav-dark { background: var(--navy); border-bottom-color: transparent; position: static; }
.nav .container { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.logo small { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0; color: var(--gray-500); border: 1.5px solid var(--gray-200); padding: 2px 8px; border-radius: 999px; }
.nav-dark .logo { color: var(--white); }
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-weight: 500; color: #2b2f3a; display: inline-flex; align-items: center; gap: 8px; }
.nav-links a:hover { background: var(--gray-50); }
.nav-links a.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.count { background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--gray-50); }
.user-chip b { font-size: 13px; display: block; line-height: 1.1; white-space: nowrap; }
.user-chip div span { white-space: nowrap; }
.user-chip span { font-size: 11px; color: var(--gray-500); }
.nav-right .nav-toggle { display: none; }

/* ---------- avatars ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--white); flex-shrink: 0; background: var(--blue); }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.c0 { background: var(--blue); }
.avatar.c1 { background: var(--orange); }
.avatar.c2 { background: var(--green); }
.avatar.c3 { background: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--white); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(11,12,20,.18); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-size: 17px; padding: 15px 28px; border-radius: 14px; }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-green { background: var(--green); border-color: var(--ink); color: var(--white); }
.btn-red { background: var(--white); border-color: var(--red); color: var(--red); }
.btn-red:hover { background: var(--red-soft); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- eyebrow pill ("• How it works") ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: 14px; background: var(--white);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.eyebrow.green::before { background: var(--green); }
.eyebrow.orange::before { background: var(--orange); }
.eyebrow.dark { background: transparent; border-color: var(--white); color: var(--white); }

/* ---------- page header ---------- */
.page { padding: 48px 0 96px; }
.page-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 18px; }
.page-head .lede { color: var(--gray-600); font-size: 18px; justify-self: end; max-width: 460px; }
.page-head .actions { justify-self: end; display: flex; gap: 10px; }

/* ---------- cards ---------- */
.card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; }
.card-white { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 24px; }
.card-white.flat { box-shadow: none; }
.card h3 { font-size: 22px; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 48px 0 18px; }
.section-title h2 { font-size: 30px; }

/* ---------- icon tiles (orange/blue/green squares) ---------- */
.tile {
  width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--ink);
  display: grid; place-items: center; color: var(--white); flex-shrink: 0; position: relative; overflow: hidden;
}
.tile::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%; border-radius: 50%; background: rgba(255,255,255,.16); }
.tile svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.tile.sm { width: 40px; height: 40px; border-radius: 10px; }
.tile.sm svg { width: 20px; height: 20px; }
.tile.xs { width: 30px; height: 30px; border-radius: 8px; border-width: 1.5px; }
.tile.xs svg { width: 16px; height: 16px; }
.tile.orange { background: var(--orange); }
.tile.blue { background: var(--blue); }
.tile.green { background: var(--green); }
.tile.yellow { background: var(--yellow); color: var(--ink); }
.tile.ink { background: var(--ink); }
.tile.red { background: var(--red); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--gray-50); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 52px; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 6px; }
.stat .label { color: var(--gray-600); font-size: 15px; }
.stat .blob { position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .9; }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1.5px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { color: #b7791f; background: var(--amber-soft); }
.badge.approved { color: #22863a; background: var(--green-soft); }
.badge.denied { color: var(--red); background: var(--red-soft); }
.badge.expired, .badge.revoked { color: var(--gray-500); background: var(--gray-100); }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; background: var(--gray-100); font-size: 12.5px; font-weight: 600; color: #2b2f3a; }
.tag.outline-blue { background: var(--white); border: 2px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 4px 12px; }

/* ---------- tables ---------- */
.table-wrap { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); font-weight: 700; padding: 14px 20px; background: var(--gray-50); border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #fafbff; }
.cell-platform { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.req-id { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 600; color: var(--blue); }
.empty { padding: 56px 24px; text-align: center; }
.empty h3 { font-size: 22px; margin-bottom: 6px; }

/* ---------- dark sections ---------- */
.dark { background: var(--navy); color: var(--white); }
.dark .muted { color: #a3a9bb; }

/* ---------- login hero ---------- */
.hero { padding: 72px 0 110px; position: relative; overflow: hidden; min-height: calc(100vh - 116px); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-rating { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; margin-bottom: 26px; }
.hero-rating .shield { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: .98; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--yellow); }
.hero .sub { font-size: 20px; color: #d6d9e4; margin: 28px 0 36px; max-width: 560px; }
.login-box { background: var(--white); color: var(--ink); border-radius: 18px; padding: 24px; max-width: 480px; border: 2px solid var(--white); }
.login-box .divider { display: flex; align-items: center; gap: 12px; color: var(--gray-400); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 18px 0 14px; }
.login-box .divider::before, .login-box .divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.demo-users { display: grid; gap: 8px; }
.demo-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 12px; background: var(--white); cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit; transition: border-color .1s, box-shadow .1s, transform .1s; }
.demo-user:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--gray-200); transform: translate(-1px,-1px); }
.demo-user b { display: block; font-size: 14px; }
.demo-user span { font-size: 12.5px; color: var(--gray-500); }
.demo-user .role { white-space: nowrap; margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--gray-100); color: var(--gray-600); }
.btn-google { width: 100%; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn-google[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.hero-center { display: flex; align-items: center; min-height: calc(100vh - 76px); padding: 56px 0 80px; }
.hero-center .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-center .hero-rating { justify-content: center; }
.hero-center .sub { margin-left: auto; margin-right: auto; }
.hero-center .login-box { width: 100%; text-align: left; margin: 0 auto; }

/* hero illustration */
.hero-art { position: relative; height: 620px; }
.hero-art .frame { position: absolute; inset: 40px 20px 0 70px; border: 2px solid var(--navy-line); border-radius: 28px; background:
  repeating-radial-gradient(circle at 120% 40%, transparent 0 22px, rgba(255,255,255,.05) 22px 24px); }
.hero-art .blob { position: absolute; background: var(--orange); }
.hero-art .blob.b1 { width: 260px; height: 260px; border-radius: 50%; left: 40px; bottom: 30px; }
.hero-art .blob.b2 { width: 200px; height: 340px; border-radius: 100px; right: 10px; bottom: 60px; }
.hero-art .blob.b3 { width: 180px; height: 180px; border-radius: 50%; right: 70px; top: 230px; }
.phone { position: absolute; left: 50%; top: 16px; transform: translateX(-28%); width: 330px; background: var(--white); color: var(--ink); border: 10px solid var(--white); outline: 2px solid var(--ink); border-radius: 26px; padding: 0; z-index: 2; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.phone-top { background: var(--ink); color: var(--white); border-radius: 16px 16px 0 0; padding: 26px 20px 60px; text-align: center; }
.phone-top h4 { font-size: 22px; margin-top: 12px; }
.phone-top p { color: #c9ccd6; font-size: 13px; }
.phone-card { margin: -44px 12px 0; position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.phone-card b { font-family: var(--font-display); font-size: 17px; display: block; }
.phone-card span { font-size: 12.5px; color: var(--gray-500); }
.progress { height: 6px; border-radius: 99px; background: var(--gray-100); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.phone-body { padding: 18px 14px 18px; }
.phone-body h5 { font-family: var(--font-display); font-size: 16px; margin: 0 0 12px; }
.mini-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; }
.mini-steps .dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; border: 2px solid var(--ink); color: var(--white); }
.float { position: absolute; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; z-index: 3; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.float h6 { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0 0 10px; letter-spacing: -0.01em; }
.float.slack { left: -40px; top: 150px; width: 250px; }
.float.ado { right: 0; bottom: 70px; width: 240px; }
.float.chip { right: 40px; top: 0; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.slack-line { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
.slack-line .avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }
.slack-btns { display: flex; gap: 6px; margin-top: 10px; }
.slack-btns span { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; border: 1.5px solid var(--gray-200); }
.slack-btns span.ok { background: #007a5a; color: #fff; border-color: #007a5a; }
.spark { width: 100%; height: 40px; margin-top: 8px; }
.deco { position: absolute; z-index: 1; color: var(--white); opacity: .85; }

/* ---------- how it works (dark steps) ---------- */
.how { border-radius: var(--radius-lg); padding: 48px; margin-top: 56px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step { border: 2px solid var(--navy-line); border-radius: 18px; padding: 22px; position: relative; }
.step .n { width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--navy-line); display: grid; place-items: center; font-family: Georgia, serif; font-size: 22px; color: #6b7189; margin-bottom: 18px; }
.step.on .n { background: var(--orange); border-color: var(--white); color: var(--white); }
.step h4 { font-size: 20px; margin-bottom: 8px; }
.step p { color: #a3a9bb; font-size: 14px; }

/* ---------- request form ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.form-layout.single { grid-template-columns: minmax(0, 1fr); }
.form-section { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; }
.form-section + .form-section { margin-top: 20px; }
.form-section h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.form-section h3 .n { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--font-body); font-size: 14px; }
.form-section > p { color: var(--gray-600); margin-bottom: 22px; }
.job-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.job-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-right: 4px; }
.job-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--gray-200); background: var(--white); color: #2b2f3a; cursor: pointer; transition: all .12s; }
.job-chip:hover { border-color: var(--gray-400); }
.job-chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.platform-opt.hidden { display: none; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.platform-opt { position: relative; }
.platform-opt input { position: absolute; opacity: 0; pointer-events: none; }
.platform-opt label { display: flex; flex-direction: column; gap: 12px; height: 100%; background: var(--white); border: 2px solid var(--gray-200); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.platform-opt label:hover { border-color: var(--gray-400); }
.platform-opt input:checked + label { border-color: var(--ink); box-shadow: var(--shadow-hard-ink); transform: translate(-2px, -2px); }
.platform-opt input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.platform-opt b { font-size: 15px; display: block; }
.platform-opt .meta { font-size: 12.5px; color: var(--gray-500); }
.platform-opt .check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-200); background: var(--white); display: grid; place-items: center; }
.platform-opt input:checked + label .check { background: var(--blue); border-color: var(--ink); }
.platform-opt input:checked + label .check::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--gray-200); background: var(--white); border-radius: 12px; font-weight: 600; cursor: pointer; transition: all .12s; }
.pill-opt label:hover { border-color: var(--gray-400); }
.pill-opt input:checked + label { border-color: var(--ink); background: var(--blue-soft); color: var(--blue); box-shadow: 3px 3px 0 var(--ink); }
.pill-opt input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.pill-opt.risk input:checked + label { background: var(--orange-soft); color: #c2410c; }
.hint-empty { color: var(--gray-500); font-size: 14px; padding: 12px 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label { font-weight: 700; font-size: 14px; }
.field .help { font-size: 13px; color: var(--gray-500); }
.input, .textarea, .select {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 2px solid var(--gray-200); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--gray-200); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230b0c14' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }

.sticky { position: sticky; top: 100px; }

.item-row { background: var(--white); border: 2px solid var(--gray-200); border-radius: 14px; padding: 16px; }
.item-row + .item-row { margin-top: 12px; }
.item-row .item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.item-row .item-head b { font-size: 15px; }
.item-row .pills { margin-bottom: 12px; }
.item-row .pill-opt label { padding: 8px 14px; }
.item-remove { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--gray-400); cursor: pointer; padding: 0 4px; }
.item-remove:hover { color: var(--red); }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pv-tabs:empty { display: none; }
.pv-tab { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); cursor: pointer; }
.pv-tab.on { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ---------- slack preview ---------- */
.slack-preview { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); overflow: hidden; }
.slack-preview .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 13px; font-weight: 700; background: var(--gray-50); }
.slack-preview .bar .dots { display: flex; gap: 5px; }
.slack-preview .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-200); }
.slack-msg { padding: 16px; display: flex; gap: 12px; }
.slack-msg .bot { width: 36px; height: 36px; border-radius: 8px; background: var(--yellow); display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid var(--ink); }
.slack-msg .who { font-weight: 800; font-size: 14px; }
.slack-msg .who small { font-weight: 500; color: var(--gray-500); margin-left: 6px; font-size: 11.5px; }
.slack-msg .app-tag { font-size: 10px; font-weight: 700; background: var(--gray-100); padding: 1px 5px; border-radius: 4px; color: var(--gray-600); margin-left: 4px; vertical-align: 1px; }
.slack-msg h5 { font-size: 15px; font-weight: 800; margin: 6px 0 10px; font-family: var(--font-body); }
.slack-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; }
.slack-fields b { display: block; font-size: 12.5px; }
.slack-quote { border-left: 4px solid var(--gray-200); padding-left: 10px; margin-top: 10px; font-size: 13px; color: #2b2f3a; white-space: pre-wrap; word-break: break-word; }
.slack-actions { display: flex; gap: 8px; margin-top: 14px; }
.slack-actions span { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 6px; border: 1.5px solid var(--gray-200); }
.slack-actions .ok { background: #007a5a; border-color: #007a5a; color: #fff; }
.slack-actions .no { color: #e01e5a; }

/* ---------- flow diagram (dashed) ---------- */
.flow { margin-top: 20px; background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px; }
.flow h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 16px; }
.flow-node { display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-hard); font-weight: 600; font-size: 14px; }
.flow-link { height: 26px; margin-left: 28px; border-left: 2px dashed var(--ink); position: relative; }
.flow-link::after { content: ""; position: absolute; left: -7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.flow-node .pill-orange { margin-left: auto; font-size: 11px; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 999px; }

/* ---------- detail / timeline ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
.kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); font-weight: 700; margin-bottom: 4px; }
.kv dd { margin: 0; font-weight: 600; }
.kv .full { grid-column: 1 / -1; }
.quote { background: var(--white); border-left: 4px solid var(--blue); padding: 14px 16px; border-radius: 0 10px 10px 0; color: #2b2f3a; font-weight: 500; white-space: pre-wrap; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; border-left: 2px dashed var(--gray-400); }
.timeline .ic { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; color: #fff; background: var(--ink); }
.timeline .ic svg { width: 20px; height: 20px; }
.timeline .ic.submitted { background: var(--blue); }
.timeline .ic.slack_owner, .timeline .ic.slack_requester { background: var(--yellow); color: var(--ink); }
.timeline .ic.approved { background: var(--green); }
.timeline .ic.denied { background: var(--red); }
.timeline .ic.ado_ticket { background: var(--orange); }
.timeline .ic.waiting { background: var(--white); color: var(--gray-400); border-style: dashed; border-color: var(--gray-400); }
.timeline h5 { font-size: 15px; font-weight: 700; margin: 2px 0 2px; font-family: var(--font-body); }
.timeline .meta { font-size: 13px; color: var(--gray-500); }
.timeline .note { margin-top: 8px; font-size: 14px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; color: #2b2f3a; }
.timeline li.waiting h5 { color: var(--gray-500); }

.decision-box { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-ink); padding: 24px; }
.decision-box h3 { font-size: 22px; margin-bottom: 4px; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.ado-card { display: flex; align-items: center; gap: 14px; }
.ado-card b { font-family: var(--font-display); font-size: 18px; display: block; }

/* ---------- approvals ---------- */
.approval-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.approval-card + .approval-card { margin-top: 18px; }
.approval-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.approval-card .head h3 { font-size: 20px; }
.approval-card form .textarea { min-height: 80px; }
.risk-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #c2410c; background: var(--orange-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------- platforms ---------- */
.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.platform-card h3 { font-size: 26px; margin: 26px 0 10px; }
.platform-card p { color: var(--gray-600); font-size: 15.5px; }
.platform-card .levels { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.platform-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.platform-card .owner { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.platform-card .owner b { display: block; font-size: 14px; }
.platform-card .nums { display: flex; gap: 16px; font-size: 13px; color: var(--gray-600); margin-top: 14px; }
.platform-card .nums b { color: var(--ink); }

/* ---------- audit ---------- */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.filters .input { max-width: 320px; }
.filters .select { width: auto; min-width: 180px; }
.action-tag { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--gray-100); white-space: nowrap; }
.action-tag.created { background: var(--blue-soft); color: var(--blue); }
.action-tag.approved { background: var(--green-soft); color: #22863a; }
.action-tag.denied { background: var(--red-soft); color: var(--red); }
.action-tag.ticket { background: var(--orange-soft); color: #c2410c; }
.action-tag.notification { background: var(--amber-soft); color: #92400e; }
.compliance-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.compliance-strip .card { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.compliance-strip h4 { font-size: 17px; margin-bottom: 4px; }
.compliance-strip p { font-size: 14px; color: var(--gray-600); }

/* ---------- flash ---------- */
.flashes { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; gap: 10px; max-width: 420px; }
.flash { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-hard-ink); padding: 14px 16px; font-weight: 600; font-size: 14px; animation: pop .25s ease; }
.flash .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: var(--green); }
.flash.error .ic { background: var(--red); }
.flash button { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--gray-500); line-height: 1; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--gray-100); padding: 28px 0; color: var(--gray-500); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .form-layout, .detail-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .approval-card { grid-template-columns: 1fr; }
}
@media (max-width: 1280px) { .user-chip div { display: none; } .user-chip { padding: 4px; } }
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--white); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
  .nav.open .nav-links { display: flex; }
  .nav-right .nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page-head { grid-template-columns: 1fr; }
  .page-head .lede, .page-head .actions { justify-self: start; }
  .compliance-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .platform-cards, .how-grid, .stats { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .how, .card, .form-section, .platform-card { padding: 22px; }
  .stat .num { font-size: 40px; }
  .hero { padding: 40px 0 64px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* keep avatars/tiles legible inside containers that style generic spans */
span.avatar { color: var(--white); font-size: 13px; }
span.avatar.lg { font-size: 19px; }
span.tile { color: var(--white); }
span.tile.yellow { color: var(--ink); }
