/* ==========================================================================
   The Bharat Steel Group portal: navy control room
   Navy blue and white, with one electric-blue light (--volt) for glows,
   HUD corner brackets and live signals. Admin pages stay light for tables.
   Type: Plus Jakarta Sans.
   ========================================================================== */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f2f4f7;            /* galvanised */
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #e2e6eb; --line-2: #cfd6de;
  --ink: #14202b; --ink-2: #364350; --muted: #5d6a78; --faint: #8a96a3;
  --blue: #0b6cb0; --blue-ink: #08568e; --blue-hi: #2f8bd0; --blue-soft: #e7f1fa; --blue-line: #b9d6ee;
  --star: #e8a317;
  --ok: #1b7343; --ok-soft: #e5f3ea; --warn: #8f5509; --warn-soft: #fcf2e1; --bad: #b02e2a; --bad-soft: #fcebea;
  --r: 12px; --r-sm: 8px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 2px rgba(20,32,43,.06), 0 1px 1px rgba(20,32,43,.04);
  --shadow-up: 0 2px 4px rgba(20,32,43,.06), 0 12px 24px -8px rgba(20,32,43,.16);
  /* company tints for app icons */
  --co-BSC: #0b6cb0; --co-METFRAA: #1d3f7a; --co-CRAYON: #3f6f8f; --co-GROUP: #44576b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font-family: var(--font); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 6px; background: var(--surface); }

/* -------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(6,26,64,.82); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(120,200,255,.16); color: #fff; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,216,255,.8) 50%, transparent); opacity: .7; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 42px; width: auto; background: #fff; border-radius: 10px; padding: 3px 10px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: rgba(255,255,255,.86); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav a.on { color: #0a2b66; background: #fff; font-weight: 700; box-shadow: 0 0 18px rgba(90,216,255,.45); }
.nav .who { display: flex; align-items: center; gap: 10px; margin: 0 4px 0 10px; padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.16); font-size: 15px; font-weight: 600; color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: #0a2b66; background: #fff; box-shadow: 0 0 0 3px rgba(90,216,255,.35); }
.nav a.acct { font-size: 14px; padding: 7px 12px; }
.nav a.acct.out:hover { background: rgba(255,90,100,.18); color: #fff; }
.nav a.acct .short { display: none; }
.logo-plate { display: block; }

/* -------------------------------------------------------------- night canvas: navy control room */
:root { --navy-0: #041433; --navy-1: #072257; --navy-2: #0a2b66; --volt: #5ad8ff; --volt-2: #8fe6ff; --white-80: rgba(255,255,255,.82); }
body.night { color: #fff; min-height: 100vh;
  background: radial-gradient(1000px 640px at 78% -12%, rgba(52,140,255,.42), transparent 62%),
              radial-gradient(800px 600px at -8% 108%, rgba(90,216,255,.18), transparent 60%),
              linear-gradient(180deg, var(--navy-2) 0%, var(--navy-1) 45%, var(--navy-0) 100%); }
html:has(body.night) { background: var(--navy-0); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3df29a; box-shadow: 0 0 0 0 rgba(61,242,154,.6);
  animation: pulse 2.4s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,242,154,.55); } 70% { box-shadow: 0 0 0 9px rgba(61,242,154,0); } 100% { box-shadow: 0 0 0 0 rgba(61,242,154,0); } }

/* the backdrop: perspective grid floor, rotating rings, one scanning beam */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.grid-floor { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%;
  background-image: linear-gradient(rgba(90,216,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(90,216,255,.22) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%); mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
  animation: floor 9s linear infinite; }
@keyframes floor { to { background-position: 0 56px, 0 0; } }
.rings { position: absolute; width: 760px; height: 760px; right: -170px; top: -230px; opacity: .9; }
.rings .r { fill: none; stroke: #fff; transform-origin: 300px 300px; }
.rings .r1 { stroke-opacity: .16; stroke-width: 1; }
.rings .r2 { stroke: var(--volt); stroke-opacity: .55; stroke-width: 3; stroke-dasharray: 90 40 12 40; animation: spin 38s linear infinite; }
.rings .r3 { stroke-opacity: .28; stroke-width: 10; stroke-dasharray: 2 10; animation: spin 60s linear infinite reverse; }
.rings .r4 { stroke: var(--volt-2); stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 220 80; animation: spin 22s linear infinite; }
.rings .r5 { stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 4 6; animation: spin 30s linear infinite reverse; }
.rings .core { fill: rgba(90,216,255,.12); stroke: var(--volt); stroke-opacity: .8; stroke-width: 2; filter: drop-shadow(0 0 18px rgba(90,216,255,.8)); }
@keyframes spin { to { transform: rotate(360deg); } }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 160px;
  background: linear-gradient(180deg, transparent, rgba(90,216,255,.035) 70%, rgba(90,216,255,.14) 99%, transparent);
  animation: scan 7s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes scan { 0% { transform: translateY(-180px); } 100% { transform: translateY(110vh); } }

/* HUD frame: glass panel with bright corner brackets */
.hud { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(160,215,255,.18);
  border-radius: 16px; backdrop-filter: blur(14px); }
.hud::before, .hud::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--volt); pointer-events: none; opacity: .9; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }

/* -------------------------------------------------------------- sign-in */
.auth { position: relative; overflow: hidden; min-height: 100vh; display: grid; gap: 0 72px; padding: 40px 64px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); grid-template-rows: auto 1fr auto;
  grid-template-areas: "brand card" "pitch card" "co card"; align-items: center; }
.auth > :not(.aura) { position: relative; z-index: 1; }
.auth .rings { right: auto; left: 58%; top: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; opacity: .75; }
.auth-brand { grid-area: brand; align-self: start; }
.auth-brand img { display: block; height: 60px; width: auto; background: #fff; border-radius: 14px; padding: 6px 14px; box-shadow: 0 0 30px rgba(90,216,255,.25); }
.auth-pitch { grid-area: pitch; max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid rgba(160,215,255,.28); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 600; }
.auth-pitch h1 { font-size: clamp(46px, 5.2vw, 74px); font-weight: 800; line-height: 1; letter-spacing: -1.6px; color: #fff;
  text-shadow: 0 0 40px rgba(90,216,255,.35); }
.auth-pitch .lead { margin: 22px 0 0; max-width: 46ch; color: var(--white-80); font-size: 18px; line-height: 1.6; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.facts li { display: flex; flex-direction: column; min-width: 150px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(160,215,255,.2); }
.facts b { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.facts span { font-size: 13.5px; color: var(--white-80); }
.auth-companies { grid-area: co; align-self: end; }
.auth-companies p { margin: 0 0 12px; color: var(--white-80); font-size: 14px; }
.co-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.co-logos img { height: 52px; width: 150px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px 12px; }
.auth-main { grid-area: card; display: flex; justify-content: center; }
.auth-card { position: relative; width: 100%; background: #fff; color: var(--ink); border-radius: 24px; padding: 40px 36px 30px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 40px 90px -30px rgba(0,8,30,.85), 0 0 80px -10px rgba(90,216,255,.45); }
.auth-card::before, .auth-card::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--volt); pointer-events: none; }
.auth-card::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.auth-card::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.auth-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; color: #0a2b66; }
.auth-card .sub { color: var(--muted); font-size: 15.5px; margin: 6px 0 26px; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] { border-radius: 12px; padding: 13px 14px; background: #f3f6fb; border-color: #dbe3ee; }
.auth-card input:focus { background: #fff; border-color: #2f7fe0; box-shadow: 0 0 0 4px rgba(90,216,255,.3); }
.auth-card .btn.block { margin-top: 10px; padding: 14px; font-size: 16px; border-radius: 12px; border: 0; color: #fff;
  background: linear-gradient(90deg, #0a2b66, #1557b8 60%, #2f8fe8); box-shadow: 0 14px 28px -12px rgba(10,43,102,.9); }
.auth-card .btn.block:hover { filter: brightness(1.12); }
.auth-foot { margin: 18px 0 0; font-size: 15px; text-align: center; }
.auth-foot a { font-weight: 700; color: #0a2b66; }
.auth-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }

/* -------------------------------------------------------------- dashboard */
.launcher { position: relative; overflow: hidden; padding: 40px 0 80px; min-height: calc(100vh - 70px); }
.launcher > .wrap { position: relative; z-index: 1; }
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.today { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--white-80); font-size: 15px; font-weight: 500; }
#clock { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.25); }
.greet h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -1.2px; color: #fff; line-height: 1.05;
  text-shadow: 0 0 36px rgba(90,216,255,.3); }
.search { position: relative; width: min(440px, 100%); }
.search input[type=search] { width: 100%; padding: 15px 48px; border-radius: 999px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(160,215,255,.28); outline: none; backdrop-filter: blur(12px); box-shadow: none; }
.search input[type=search]::placeholder { color: rgba(255,255,255,.72); }
.search input[type=search]:focus { border-color: var(--volt); box-shadow: 0 0 0 4px rgba(90,216,255,.22), 0 0 30px rgba(90,216,255,.3); }
.search > svg { position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; }
.search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.search input:focus ~ kbd { display: none; }
kbd { font-family: var(--font); font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; }

/* KPIs */
.dash { margin-bottom: 34px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(160,215,255,.2); backdrop-filter: blur(14px); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--volt), transparent); }
.k-label { font-size: 13.5px; font-weight: 600; color: var(--white-80); }
.k-num { font-size: 40px; font-weight: 800; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.k-num.dim { font-size: 22px; color: var(--white-80); padding: 9px 0 6px; }
.k-sub { font-size: 13px; color: var(--white-80); }
.k-sub b.up { color: #5ff2a8; } .k-sub b.down { color: #ffb4b8; }
.k-app { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: #fff; padding: 6px 0 5px; }

/* charts */
.charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.panel-glass { position: relative; margin: 0; padding: 18px 20px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(160,215,255,.2); backdrop-filter: blur(14px); }
.panel-glass::before, .panel-glass::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--volt); pointer-events: none; }
.panel-glass::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.panel-glass::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.panel-glass figcaption, .gp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-glass figcaption span, .gp-head span { font-size: 16px; font-weight: 700; color: #fff; }
.panel-glass figcaption small, .gp-head small { font-size: 13px; color: var(--white-80); }
.area { display: block; width: 100%; height: 150px; overflow: visible; }
.area.small { height: 110px; }
.area .gridline { stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.area .line { fill: none; stroke: var(--volt-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(90,216,255,.8)); }
.area .line.alt { stroke: #fff; }
.area .dot { fill: #fff; stroke: var(--volt); stroke-width: 3; vector-effect: non-scaling-stroke; }
.axis { display: grid; grid-template-columns: repeat(14, 1fr); margin-top: 6px; font-size: 11.5px; color: var(--white-80); text-align: center; }
.bars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.b-name { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.b-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g2, #2f8fe8), var(--g1, #5ad8ff)); box-shadow: 0 0 12px var(--g1, #5ad8ff); }
.b-n { text-align: right; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-empty { margin: 18px 0; color: var(--white-80); font-size: 14.5px; }
.group-pulse { margin-top: 14px; }
.gp-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: end; }
.gp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gp-stats div { display: flex; flex-direction: column; }
.gp-stats b { font-size: 28px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.gp-stats span { font-size: 13px; color: var(--white-80); }

/* recent + groups */
.recent { margin-bottom: 34px; }
.recent h2, .group-head h2 { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.recent h2 { margin-bottom: 14px; }
.recent-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; color: var(--navy-2); font-weight: 700;
  font-size: 15px; background: #fff; }
.chip:hover { text-decoration: none; box-shadow: 0 0 0 3px rgba(90,216,255,.55); }
.group { margin-bottom: 38px; }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(160,215,255,.35), transparent); }
.group-head .co-logo { display: grid; place-items: center; height: 36px; padding: 4px 10px; background: #fff; border-radius: 10px; }
.group-head .co-logo img { height: 26px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.group-head .count { font-size: 13px; font-weight: 700; color: #0a2b66; background: #fff; border-radius: 999px; padding: 1px 9px; }

/* app tiles: white cards, app name in navy, its modules in blue */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: 18px; background: #fff; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px -18px rgba(0,8,30,.9); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(0,8,30,.95), 0 0 0 3px rgba(90,216,255,.55); }
.tile-link { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 20px; color: var(--navy-2); border-radius: 18px; height: 100%; }
.tile-link:hover { text-decoration: none; }
.tile h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--navy-2); }
.tile p { margin: 5px 0 0; font-size: 14.5px; font-weight: 600; color: #1565c0; line-height: 1.45; }
.state { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: #5b6b7d; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b7c3d0; }
.state.sso { color: #157a46; }
.state.sso::before { background: #22c06b; animation: pulse 2.4s ease-out infinite; }

.icon-chip { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--g1, #5ab8ff), var(--g2, #1d4f8f)); box-shadow: 0 10px 24px -8px var(--g2, #1d4f8f), inset 0 1px 0 rgba(255,255,255,.35); }
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.sm { width: 34px; height: 34px; border-radius: 50%; box-shadow: none; }
.icon-chip.sm svg { width: 17px; height: 17px; }
.ic-ticket { --g1: #ff9a4d; --g2: #e2557a; }
.ic-shield { --g1: #3fe0b5; --g2: #12907e; }
.ic-grid { --g1: #6ab4ff; --g2: #2c4fd4; }
.ic-clipboard { --g1: #ffd35a; --g2: #e88a1a; }
.ic-users { --g1: #b893ff; --g2: #6a45d6; }
.ic-chart { --g1: #5ae0ff; --g2: #1b7fc4; }
.ic-chat { --g1: #ff8cc6; --g2: #c4378a; }
.ic-lock { --g1: #a9c2dd; --g2: #4b6584; }

.pin-form { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
.pin { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
  color: #8a9bb0; opacity: .8; transition: opacity .12s, background .12s, color .12s; }
.pin svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tile:hover .pin, .pin:focus-visible { opacity: 1; }
.pin:hover { background: #eef3fa; color: var(--navy-2); }
.pin.on { opacity: 1; color: #f0a500; }
.pin.on svg { fill: currentColor; }
.night .empty { background: rgba(255,255,255,.06); border: 1px dashed rgba(160,215,255,.3); border-radius: 18px; padding: 40px; text-align: center; color: var(--white-80); }
.no-match { display: none; }
.tip { color: var(--white-80); font-size: 14px; text-align: center; margin: 8px 0 0; }

/* -------------------------------------------------------------- forms */
.lbl, label.lbl { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 15.5px;
  background: #fff; color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 15px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
  color: var(--blue-ink); font: 600 14px var(--font); padding: 6px 10px; border-radius: 6px; }
.pw-eye:hover { background: var(--blue-soft); }
.linkbtn { background: none; border: 0; color: var(--blue-ink); font: 600 14.5px var(--font); cursor: pointer; padding: 4px; }
.linkbtn:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 10px 18px; font: 600 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(11,108,176,.3); transition: background .12s, transform .04s; }
.btn:hover { background: var(--blue-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn.ghost:hover { background: var(--surface-2); border-color: #b9c2cc; }
.btn.dark { background: var(--ink-2); box-shadow: none; }
.btn.dark:hover { background: var(--ink); }
.btn.danger { background: #fff; color: var(--bad); border-color: #efc5c3; box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 7px 12px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 14px; border: 1px solid; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: #f0cbc9; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #c3e2cf; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #eed7ae; }

/* -------------------------------------------------------------- admin */
.page { padding-top: 34px; padding-bottom: 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; letter-spacing: -.3px; }
.page-head .sub { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 6px; margin-right: 14px; font-size: 15.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--blue-ink); border-bottom-color: var(--blue); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel-pad { padding: 24px; }
.panel h3 { font-size: 18px; margin-bottom: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { width: auto; }
.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
table.grid th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 11px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tbody tr:hover td { background: #fafbfc; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.off td { color: var(--faint); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: #eceff3; color: var(--muted); }
.pill.admin { background: var(--blue-soft); color: var(--blue-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.access-list { display: grid; }
.access-row { display: grid; grid-template-columns: 22px 1fr 190px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.access-row:last-child { border-bottom: 0; }
.access-row .name { font-size: 15.5px; font-weight: 600; }
.access-row .co { font-size: 13.5px; color: var(--muted); }
.access-row input[type=text] { padding: 8px 10px; font-size: 14.5px; }
.access-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); }
.access-co { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 18px 0 2px; }
.secret { display: flex; gap: 8px; }
.secret input { font-family: var(--mono); font-size: 13px; }
.cred { font-family: var(--mono); font-size: 24px; letter-spacing: .06em; color: var(--ink); padding: 14px 20px; border-radius: var(--r-sm);
  display: inline-block; user-select: all; background: var(--blue-soft); border: 1px solid var(--blue-line); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.actions form { margin: 0; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; font-size: 14.5px; }

/* -------------------------------------------------------------- phones and tablets */
@media (max-width: 860px) {
  .layout, .grid2, .grid3 { grid-template-columns: 1fr; }
  .nav .who .nm { display: none; }
  .access-row { grid-template-columns: 22px 1fr; }
  .access-row input[type=text] { grid-column: 2; }
  table.grid .hide-sm { display: none; }
  .greet h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 60px; gap: 10px; }
  .brand img { height: 36px; }
  .nav .who { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 7px 9px; font-size: 14px; }
  .nav a.acct .long { display: none; }
  .nav a.acct .short { display: inline; }
  .launcher { padding-top: 24px; }
  .greet { margin-bottom: 24px; }
  .search kbd { display: none; }
  .recent-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chip { flex: none; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile-link { padding: 16px 48px 16px 16px; }
  .auth { padding-top: 28px; }
  .auth-card { padding: 26px 22px 22px; }
  .co-logos img { height: 32px; }
}
@media (max-width: 420px) {
  .brand img { height: 30px; }
  .nav a { padding: 6px 7px; font-size: 13.5px; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts, .gp-body { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "pitch" "card" "co"; padding: 28px 20px 36px; gap: 26px; }
  .auth .rings { left: 92%; top: 150px; width: 560px; height: 560px; opacity: .55; }
  .auth-pitch h1 { font-size: 42px; letter-spacing: -1px; }
  .auth-pitch .lead { font-size: 16px; margin-top: 12px; }
  .facts { margin-top: 20px; } .facts li { min-width: 0; flex: 1; padding: 10px 12px; } .facts b { font-size: 20px; } .facts span { font-size: 12.5px; }
  .auth-brand img { height: 50px; }
  .auth-card { padding: 30px 22px 24px; border-radius: 20px; }
  .co-logos img { width: calc(50% - 5px); height: 46px; }
  .rings { width: 460px; height: 460px; right: -200px; top: -160px; opacity: .6; }
}
@media (max-width: 640px) {
  .brand img { height: 34px; padding: 2px 8px; border-radius: 8px; }
  .tiles { grid-template-columns: 1fr; }
  .tile-link { flex-direction: row; align-items: flex-start; padding: 18px 50px 18px 18px; gap: 14px; }
  .icon-chip { width: 46px; height: 46px; border-radius: 14px; }
  .recent-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chip { flex: none; }
  .search kbd { display: none; }
  .kpi { padding: 14px 14px; } .k-num { font-size: 32px; } .k-app { font-size: 17px; }
  .gp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars li { grid-template-columns: 90px 1fr 24px; }
}
@media (max-width: 480px) {
  .topbar .wrap { gap: 6px; }
  .brand img { height: 30px; padding: 2px 6px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .nav a.acct { padding: 6px 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } .tile:hover { transform: none; } .beam { display: none; } }

/* ==========================================================================
   White and logo blue
   Every blue below is taken from the logos: #0069A6 (Bharat Steel arc),
   #00578C (group wordmark), #015F97 (Metfraa). White background throughout.
   ========================================================================== */
:root { --logo: #0069a6; --logo-deep: #00578c; --logo-mid: #015f97; --logo-soft: #e8f2f9; --logo-line: #cfe2f0; }
html:has(body.night) { background: #fff; }
body.night { background: #fff; color: var(--logo-deep); }

/* top bar */
.topbar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--logo-line); color: var(--logo-deep); }
.topbar::after { background: linear-gradient(90deg, transparent, var(--logo) 50%, transparent); opacity: .35; }
.brand img { background: none; padding: 0; border-radius: 0; }
.nav a { color: var(--logo); }
.nav a:hover { background: var(--logo-soft); color: var(--logo-deep); }
.nav a.on { background: var(--logo); color: #fff; box-shadow: none; }
.nav .who { color: var(--logo-deep); border-left-color: var(--logo-line); }
.avatar { background: var(--logo); color: #fff; box-shadow: 0 0 0 3px var(--logo-soft); }
.nav a.acct.out:hover { background: #fdecec; color: #b02e2a; }

/* backdrop in faint logo blue */
.grid-floor { background-image: linear-gradient(rgba(0,105,166,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(0,105,166,.13) 1px, transparent 1px); }
.rings .r { stroke: var(--logo); }
.rings .r1 { stroke-opacity: .12; }
.rings .r2 { stroke: var(--logo); stroke-opacity: .28; }
.rings .r3 { stroke-opacity: .12; }
.rings .r4 { stroke: var(--logo-deep); stroke-opacity: .3; }
.rings .r5 { stroke-opacity: .18; }
.rings .core { fill: rgba(0,105,166,.05); stroke: var(--logo); stroke-opacity: .35; filter: none; }
.beam { background: linear-gradient(180deg, transparent, rgba(0,105,166,.02) 70%, rgba(0,105,166,.07) 99%, transparent); }

/* sign-in */
.auth-brand img { background: none; padding: 0; box-shadow: none; border-radius: 0; height: 64px; }
.kicker { border-color: var(--logo-line); background: var(--logo-soft); color: var(--logo-deep); }
.auth-pitch h1 { color: var(--logo-deep); text-shadow: none; }
.auth-pitch .lead { color: var(--logo); }
.facts li { background: #fff; border-color: var(--logo-line); box-shadow: 0 8px 20px -16px rgba(0,87,140,.6); }
.facts b { color: var(--logo-deep); }
.facts span { color: var(--logo); }
.auth-companies p { color: var(--logo); }
.co-logos img { border: 1px solid var(--logo-line); box-shadow: none; }
.auth-card { border: 1px solid var(--logo-line); box-shadow: 0 30px 60px -30px rgba(0,87,140,.45), 0 0 0 6px rgba(0,105,166,.04); }
.auth-card::before, .auth-card::after { border-color: var(--logo); }
.auth-card h2 { color: var(--logo-deep); }
.auth-card .sub, .auth-card .lbl { color: var(--logo); }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] { background: #f6fafd; border-color: var(--logo-line); color: var(--logo-deep); }
.auth-card input:focus { border-color: var(--logo); box-shadow: 0 0 0 4px rgba(0,105,166,.15); }
.auth-card .btn.block { background: linear-gradient(90deg, var(--logo-deep), var(--logo)); box-shadow: 0 14px 28px -14px rgba(0,87,140,.9); }
.auth-foot a, .pw-eye, .linkbtn { color: var(--logo); }
.auth-note { color: var(--logo-mid); border-top-color: var(--logo-line); }

/* dashboard */
.today { color: var(--logo); }
#clock { color: var(--logo-deep); border-right-color: var(--logo-line); }
.greet h1 { color: var(--logo-deep); text-shadow: none; }
.search input[type=search] { background: #f6fafd; border-color: var(--logo-line); color: var(--logo-deep); backdrop-filter: none; }
.search input[type=search]::placeholder { color: var(--logo); opacity: .75; }
.search input[type=search]:focus { border-color: var(--logo); box-shadow: 0 0 0 4px rgba(0,105,166,.14); }
.search > svg { color: var(--logo); }
.search kbd { background: #fff; border-color: var(--logo-line); color: var(--logo); }
.recent h2, .group-head h2 { color: var(--logo-deep); }
.chip { background: #fff; color: var(--logo-deep); border: 1px solid var(--logo-line); box-shadow: 0 6px 16px -12px rgba(0,87,140,.6); }
.chip:hover { border-color: var(--logo); box-shadow: 0 0 0 3px rgba(0,105,166,.15); }
.group-head::after { background: linear-gradient(90deg, var(--logo-line), transparent); }
.group-head .co-logo { background: none; padding: 0; }
.group-head .co-logo img { height: 30px; max-width: 130px; }
.group-head .count { background: var(--logo); color: #fff; }
.tile { border: 1px solid var(--logo-line); box-shadow: 0 10px 26px -18px rgba(0,87,140,.55); }
.tile:hover { box-shadow: 0 20px 40px -22px rgba(0,87,140,.7), 0 0 0 3px rgba(0,105,166,.18); }
.tile h3 { color: var(--logo-deep); }
.tile p { color: var(--logo); }
.icon-chip, .icon-chip[class*="ic-"] { background: linear-gradient(140deg, var(--logo), var(--logo-deep)); box-shadow: 0 10px 20px -10px rgba(0,87,140,.8); }
.icon-chip.sm { box-shadow: none; }
.pin { color: #9db8cc; }
.pin:hover { background: var(--logo-soft); color: var(--logo); }
.night .empty { background: #f6fafd; border-color: var(--logo-line); color: var(--logo); }
.tip { color: var(--logo); }

/* install as an app */
.install-btn { font: 600 14px var(--font); cursor: pointer; border-radius: 999px; border: 1px solid var(--logo); background: #fff; color: var(--logo); padding: 7px 14px; }
.install-btn:hover { background: var(--logo); color: #fff; }
.install-card { display: block; width: 100%; margin-top: 14px; padding: 11px; border-radius: 12px; }
.install-btn[hidden] { display: none; }
.ios-tip { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: #fff; color: var(--logo-deep); border: 1px solid var(--logo-line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 20px 40px -20px rgba(0,87,140,.6); font-size: 14.5px; }
.ios-tip p { margin: 0; }
.offline { max-width: 460px; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
.offline h1 { color: var(--logo-deep); font-size: 30px; margin: 22px 0 8px; }
.offline p { color: var(--logo); margin: 0 0 22px; }
@media (max-width: 640px) { .nav-install { display: none !important; } .brand img { height: 36px; } }
.beam { display: none; }

/* Grey and black for words, logo blue kept for icons, buttons and the active tab */
:root { --ink-black: #1b1f24; --ink-grey: #5f6670; --ink-faint: #8a919a; }
body.night { color: var(--ink-black); }
.greet h1, .recent h2, .group-head h2, .tile h3, .chip { color: var(--ink-black); }
.today { color: var(--ink-grey); }
#clock { color: var(--ink-black); border-right-color: #dfe3e8; }
.tile p { color: var(--ink-grey); font-weight: 500; }
.tile { border-color: #e3e6ea; box-shadow: 0 1px 2px rgba(27,31,36,.05), 0 10px 24px -18px rgba(27,31,36,.45); }
.tile:hover { box-shadow: 0 18px 36px -20px rgba(27,31,36,.55), 0 0 0 2px var(--logo); }
.tile:hover h3 { color: var(--logo-deep); }
.chip { border-color: #e3e6ea; box-shadow: 0 4px 12px -10px rgba(27,31,36,.5); }
.search input[type=search] { background: #f6f7f9; border-color: #e1e4e8; color: var(--ink-black); }
.search input[type=search]::placeholder { color: var(--ink-faint); opacity: 1; }
.search > svg { color: var(--ink-grey); }
.search kbd { color: var(--ink-grey); border-color: #dfe3e8; }
.group-head { margin-bottom: 14px; }
.group-head::after { background: linear-gradient(90deg, #e3e6ea, transparent); }
.group-head .co-logo img { height: 34px; max-width: 150px; }
.pin { color: #b3b9c0; }
.state { color: var(--ink-grey); }
.tip { color: var(--ink-faint); }
.nav a { color: var(--ink-grey); }
.nav a:hover { background: #f1f3f5; color: var(--ink-black); }
.nav a.on { background: var(--logo); color: #fff; }
.nav .who { color: var(--ink-black); border-left-color: #e3e6ea; }
.topbar { border-bottom-color: #e7eaee; }
.auth-pitch h1, .auth-card h2 { color: var(--ink-black); }
.auth-pitch .lead, .auth-card .sub, .auth-card .lbl { color: var(--ink-grey); }
.auth-note { color: var(--ink-faint); border-top-color: #e7eaee; }

/* install help */
.install-help { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20,28,38,.45); }
.install-help[hidden] { display: none; }
.ih-card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.ih-card h2 { font-size: 22px; font-weight: 800; color: var(--ink-black, #1b1f24); margin-bottom: 10px; }
.ih-steps { color: var(--ink-grey, #5f6670); font-size: 15.5px; line-height: 1.6; margin: 0 0 20px; }
.ih-steps b { color: var(--ink-black, #1b1f24); }
.ih-card .btn { width: 100%; }
.greet-install { display: none; }
@media (max-width: 640px) { .greet-install:not([hidden]) { display: inline-flex; margin-top: 4px; } }

/* per-app access level + provisioning results */
.ext-col { display: grid; gap: 6px; }
.ext-col select { padding: 7px 10px; font-size: 14px; }
.prov { margin: 0 0 18px; }
.prov-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.prov-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; background: #f6f8fa; }
.prov-list li b { min-width: 130px; }
.prov-list li.st-created { background: #e7f5ec; } .prov-list li.st-created span { color: #1b7343; }
.prov-list li.st-error { background: #fcebea; } .prov-list li.st-error span { color: #b02e2a; }
.prov-list li.st-skipped span, .prov-list li.st-off span { color: #8f5509; }

/* people list: everything fits without sideways scrolling */
table.grid.people td, table.grid.people th { padding: 11px 10px; }
table.grid.people td:first-child, table.grid.people th:first-child { padding-left: 16px; }
table.grid.people .sub { font-size: 13px; color: var(--muted); margin-top: 2px; word-break: break-all; }
table.grid.people td.acts { text-align: right; width: 1%; white-space: nowrap; }
table.grid.people td.acts form { display: inline; margin: 0; }
table.grid.people td.acts .btn { padding: 5px 10px; font-size: 13px; }
table.grid.people .pill { white-space: nowrap; }
@media (max-width: 760px) {
  table.grid.people td.acts { white-space: normal; width: auto; }
  table.grid.people td.acts .btn { margin: 2px 0; }
}
@media (max-width: 640px) {
  table.grid.people thead { display: none; }
  table.grid.people, table.grid.people tbody { display: block; }
  table.grid.people tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.grid.people td { display: block; padding: 0 !important; border: 0; }
  table.grid.people td:first-child { flex: 1 1 100%; }
  table.grid.people td.mono { font-size: 13px; color: var(--muted); }
  table.grid.people td.acts { flex: 1 1 100%; text-align: left; }
  table.grid.people tbody tr:hover td { background: none; }
  table.grid.people td.napps::after { content: " apps"; color: var(--muted); }
}
