/* Wireless Max System — branded operations console.
   Brand: Wireless Max navy/indigo wordmark, royal-to-cyan blue globe and rings.
   The memorable element is the page banner: a navy-to-blue band with faint
   orbit rings echoing the logo. Everything else stays calm and readable. */
:root {
  --navy: #1b2466;       /* deep brand navy (wordmark family) */
  --indigo: #2e3591;     /* wordmark */
  --blue: #2563c9;       /* royal blue: actions */
  --blue-ink: #1d4fa3;
  --cyan: #22b8d9;       /* ring highlight */
  --sky: #eaf2fd;        /* soft blue fill */
  --ink: #141b3d;        /* text */
  --ink-2: #4b5578;
  --ink-3: #8089a6;
  --canvas: #f2f5fa;
  --surface: #ffffff;
  --line: #dfe5ef;
  --line-2: #edf1f7;
  --ok: #138a55; --warn: #c26a0a; --bad: #c0352b; --idle: #8a93ab;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,27,61,.05), 0 4px 16px rgba(20,27,61,.05);
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, .side .app b, .figure b { font-family: var(--sans); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Frame ---------- */
.frame { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
/* Left menu (Oct 13): calm white rail to match the home page. The current page is a soft
   blue tint with a short navy bar on the left, no gradient or glow. */
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px 14px; overflow-y: auto; }
.side .app { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
.side .app img { width: 36px; height: 36px; }
.side .app b { display: block; color: var(--navy); font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.side .app small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.side label.co { display: block; padding: 0 8px 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.side label.co select { margin-top: 6px; height: 36px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  background-color: #f6f8fc; border-color: var(--line-2); border-radius: 10px; }
.side label.co select:hover { border-color: var(--line); }
.side .group { font-size: 12px; color: var(--ink-3); font-weight: 500; padding: 14px 12px 4px; }
.side a.nav { position: relative; display: flex; align-items: center; gap: 11px; color: var(--ink-2); padding: 0 12px; height: 35px;
  border-radius: 10px; margin: 1px 0; font-weight: 500; font-size: 14px; }
.side a.nav svg.i { width: 18px; height: 18px; stroke-width: 1.7; color: var(--ink-3); }
.side a.nav:hover { background: #f4f6fb; color: var(--navy); }
.side a.nav:hover svg.i { color: var(--navy); }
.side a.nav.on { background: var(--sky); color: var(--navy); font-weight: 600; }
.side a.nav.on svg.i { color: var(--blue); }
.side a.nav.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy); }
.side nav { flex: 1 0 auto; padding-bottom: 14px; padding-top: 4px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.side .foot { margin-top: auto; padding: 10px; border-radius: 12px; background: #f6f8fc; display: flex; gap: 10px; align-items: center; }
.side .foot .av { width: 34px; height: 34px; border-radius: 10px; }
.side .foot .name { font-weight: 600; color: var(--ink); line-height: 1.2; font-size: 13.5px; }
.side .foot .role { color: var(--ink-3); font-size: 12px; }
.side .foot a { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.side .foot a:hover { color: var(--bad); text-decoration-color: currentColor; }

.content { min-width: 0; }
.bar { display: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 0 32px 72px; }

/* ---------- Brand banner (page head) ---------- */
.banner { position: relative; overflow: hidden; overflow: clip; color: #fff; border-radius: 0 0 18px 18px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--indigo) 45%, var(--blue) 100%);
  padding: 30px 32px 64px; margin: 0 -32px; }
.banner::before, .banner::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255,255,255,.12); }
.banner::before { width: 520px; height: 130px; right: -90px; top: 18px; transform: rotate(-8deg);
  border-color: rgba(34,184,217,.35); }
.banner::after { width: 380px; height: 92px; right: -20px; top: 72px; transform: rotate(-8deg); }
.banner .crumb { color: rgba(255,255,255,.75); font-size: 13px; display: inline-block; margin-bottom: 6px; }
.banner .crumb:hover { color: #fff; }
.banner .row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.banner h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.banner p { margin: 6px 0 0; color: rgba(255,255,255,.82); max-width: 68ch; }
.banner .meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: rgba(255,255,255,.85); }
.banner .st::before { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.banner .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.banner .btn.primary:hover { background: var(--sky); color: var(--navy); }
.lift { margin-top: -40px; position: relative; }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%);
    transition: transform .2s ease; }
  .frame.open .side { box-shadow: 0 0 40px rgba(20,27,61,.2); }
  .frame.open .side { transform: none; }
  .frame.open::after { content: ""; position: fixed; inset: 0; background: rgba(20,27,61,.45); z-index: 20; }
  .bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10;
    background: var(--navy); color: #fff; padding: 10px 16px; }
  .bar button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25);
    background: transparent; color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
  .bar img { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 2px; }
  .bar .t { font-family: var(--sans); font-weight: 600; }
  .page { padding: 0 16px 56px; }
  .banner { margin: 0 -16px; padding: 22px 16px 58px; border-radius: 0 0 14px 14px; }
  .banner h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel > .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.panel > .ph h2 { font-size: 15.5px; font-weight: 600; margin: 0; color: var(--navy); }
.panel > .ph p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.panel > .pb { padding: 18px; }
.stack { display: grid; gap: 20px; }
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1060px) { .two { grid-template-columns: 1fr; } }

/* Company section title */
.cohead { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.cohead h2 { font-size: 18px; margin: 0; color: var(--navy); font-weight: 600; }
.cohead .tag { font-size: 12px; color: var(--ink-3); }

/* Figures (overview) */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.figure { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--ink); }
a.figure:hover { color: var(--ink); border-color: #c8d4ea; }
.figure .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.figure .ic svg.i { width: 22px; height: 22px; }
.figure b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--navy); }
.figure span { color: var(--ink-2); font-size: 13px; }
.c1 { background: linear-gradient(135deg, #2e3591, #2563c9); }
.c2 { background: linear-gradient(135deg, #1a8fbf, #22b8d9); }
.c3 { background: linear-gradient(135deg, #5a3fc0, #7c6cf0); }
.c4 { background: linear-gradient(135deg, #0f8a6a, #2cc19a); }
@media (max-width: 980px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .figure { padding: 12px; gap: 10px; } .figure .ic { width: 38px; height: 38px; } .figure b { font-size: 22px; } }

/* Attention list */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.todo li:first-child { border-top: 0; }
.todo li .t { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.todo li .t svg.i { color: var(--warn); }
.todo .empty { color: var(--ink-3); }
.todo .empty svg.i { color: var(--ok); }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #b9c6de; color: var(--ink); }
.btn.primary { background: linear-gradient(100deg, var(--indigo), var(--blue)); border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(37,99,201,.25); }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--blue); }
.btn.quiet:hover { background: var(--sky); }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=date], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.15); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.field > em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tick { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: var(--ink); cursor: pointer; }
.tick input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }

.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0; margin-top: 8px;
  background: linear-gradient(to top, var(--canvas) 70%, rgba(242,245,250,0)); z-index: 2; }

/* Photo block */
.photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.photo .av { width: 96px; height: 96px; font-size: 30px; border-radius: 22px; }
.photo .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.photo em { display: block; font-style: normal; color: var(--ink-3); font-size: 12px; margin-top: 6px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters .search { flex: 1 1 240px; position: relative; }
.filters .search svg.i { position: absolute; left: 11px; top: 10px; color: var(--ink-3); }
.filters .search input { padding-left: 36px; }
.filters select { width: auto; min-width: 160px; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); padding: 3px; }
.seg button, .seg a, .seg label { text-decoration: none; border: 0; background: transparent; padding: 0 11px; height: 30px; border-radius: 7px; cursor: pointer;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.seg button .n { color: var(--ink-3); font-size: 12px; }
.seg button.on, .seg a.on { background: var(--navy); color: #fff; }
.seg button.on .n { color: rgba(255,255,255,.7); }
.seg label { padding: 0; }
.seg label span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input[value="manage"]:checked + span { background: linear-gradient(100deg, var(--indigo), var(--blue)); }
.seg input[value=""]:checked + span { background: #e9edf4; color: var(--ink-2); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Data table ---------- */
.tablebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tablebox .tb { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; }
.scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); background: #f7f9fd;
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
table.data th .s { color: var(--blue); margin-left: 4px; }
table.data td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: #f5f8fe; }
table.data td.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; }
@media (max-width: 640px) {
  .filters .search { flex-basis: 100%; }
  .filters select { flex: 1 1 auto; }
  .tablebox .tb { flex-wrap: wrap; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  table.data tr:last-child { border-bottom: 0; }
  table.data td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; }
  table.data td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; }
  table.data td.lead { display: block; padding-bottom: 8px; }
  table.data td.lead::before, table.data td.empty::before { content: none; }
  table.data td.empty { display: block; }
  table.data tr.click:hover td { background: transparent; }
}

/* Person cell / avatars */
.who { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.av { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.p0 { background: linear-gradient(135deg, #2e3591, #2563c9); }
.av.p1 { background: linear-gradient(135deg, #1a8fbf, #22b8d9); }
.av.p2 { background: linear-gradient(135deg, #5a3fc0, #7c6cf0); }
.av.p3 { background: linear-gradient(135deg, #0f8a6a, #2cc19a); }
.av.p4 { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.av.p5 { background: linear-gradient(135deg, #be185d, #ec4899); }
.who b { display: block; font-weight: 600; color: var(--ink); }
.who small { display: block; color: var(--ink-3); font-size: 12px; }

/* Status */
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.st.active::before { background: var(--ok); }
.st.inactive::before { background: var(--warn); }
.st.former::before { background: var(--bad); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--sky); color: var(--blue-ink); white-space: nowrap; }
.chip.manage { background: var(--navy); color: #fff; }
.chip.view { background: #eef1f6; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.flag { color: var(--warn); font-weight: 500; }

/* Access matrix */
.matrix { width: 100%; border-collapse: collapse; }
.matrix td { padding: 13px 18px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.matrix tr:first-child td { border-top: 0; }
.matrix td.m { width: 36%; }
.matrix td.m .mn { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.matrix td.m .mn i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; font-style: normal; }
.matrix td.m small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; margin: 3px 0 0 40px; }
.matrix .scope { margin-top: 8px; }
.matrix .scope select { height: 34px; font-size: 13px; }
.matrix .scope.hide { display: none; }
@media (max-width: 560px) {
  .matrix td { display: block; padding: 8px 16px; border-top: 0; }
  .matrix td.m { padding-top: 14px; border-top: 1px solid var(--line-2); width: auto; }
  .matrix tr:first-child td.m { border-top: 0; }
}

/* Sign-in / loading */
.center { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(1200px 500px at 50% -10%, #dfe9fb, var(--canvas)); }
.center img { width: 180px; height: auto; margin-bottom: 14px; }
.center h1 { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.center p { color: var(--ink-2); margin: 0; }
.err { color: var(--bad); }

/* Toast */
#toast { position: fixed; right: 20px; bottom: 20px; background: var(--navy); color: #fff; padding: 11px 15px;
  border-radius: 10px; font-size: 13.5px; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s;
  pointer-events: none; z-index: 50; max-width: min(440px, calc(100vw - 40px)); box-shadow: 0 8px 24px rgba(20,27,61,.25); }
#toast.show { opacity: 1; transform: none; }
#toast.bad { background: var(--bad); }
@media (max-width: 560px) { #toast { left: 16px; right: 16px; bottom: 16px; } }

@media print {
  .side, .bar, .filters, .savebar, #toast, .tablebox .tb .btn { display: none !important; }
  .frame { display: block; } body { background: #fff; }
  .banner { color: var(--ink); background: none; padding: 0 0 12px; margin: 0; }
  .banner p { color: var(--ink-2); } .lift { margin-top: 0; }
}

/* Fixes: hidden attribute always wins; first heading that sits on the banner is white. */
[hidden] { display: none !important; }
.lift > .cohead:first-child h2, .lift > .stack > section:first-child > .cohead h2 { color: #fff; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 1060px) { .two { grid-template-columns: 1fr; } }
.matrix td.m { width: 42%; }
.matrix .seg label span { padding: 0 10px; }
.matrix.cos th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 18px 0; text-transform: uppercase; letter-spacing: .03em; }
.matrix.cos select { width: 100%; min-width: 92px; }

/* ---------- Home page (app launcher), Oct 13 ----------
   One bold element: the navy welcome band with fine orbit rings from the logo.
   Everything under it stays quiet: companies as plain headings with a hairline,
   white cards, soft tinted icons, no tags unless something is not ready. */
.side a.nav > span:not(.out) { flex: 1; min-width: 0; }
.side a.nav .out { display: inline-flex; color: var(--ink-3); opacity: .7; }
.side a.nav .out svg.i { width: 14px; height: 14px; }
.side a.nav:hover .out { color: var(--navy); opacity: 1; }

/* Plain, Amazon-help-page style (Oct 14): white page, welcome line, wide flat tiles
   with the icon on the left, a search box underneath. */
.content.plain { background: #fff; }
.home { max-width: 1040px; padding: 36px 0 24px; }
.hello h1 { margin: 0; font: 600 28px/1.2 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.hello p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; font-size: 14px; }
.recent .rl { color: var(--ink-3); }
.recent a { color: var(--blue); }
.recent a:hover { color: var(--blue-ink); text-decoration: underline; }

.app-sec { margin-top: 32px; }
.app-sec h2 { margin: 0 0 12px; font: 600 18px var(--sans); color: var(--ink); letter-spacing: -.01em; }
.app-sec h2 small { font: 400 14px var(--body); color: var(--ink-3); margin-left: 6px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 96px;
  border: 1px solid #d5dae3; border-radius: 10px; background: #fff; color: var(--ink); }
a.tile:hover { color: var(--ink); background: #f7f9fc; border-color: #b9c3d3; }
a.tile:hover b { color: var(--blue); }
.tile .ic { width: 56px; height: 56px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.tile .ic svg.i { width: 27px; height: 27px; stroke-width: 1.6; }
.tile .txt { min-width: 0; }
.tile b { display: block; font: 600 16px/1.25 var(--sans); color: var(--ink); }
.tile p { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.tile .lvl { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.tile.soon { border-style: dashed; }
.tile.soon .ic { opacity: .5; }
.tile .soonpill { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--ink-3); background: #eef1f6; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }

.findbox { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.findbox h2 { margin: 0 0 10px; font: 600 18px var(--sans); color: var(--ink); }
.home-search { position: relative; display: block; max-width: 560px; }
.home-search svg.i { position: absolute; left: 13px; top: 12px; color: var(--ink-3); pointer-events: none; }
.home-search input { height: 44px; padding-left: 42px; border: 1px solid #b9c3d3; border-radius: 10px; color: var(--ink); }
.home-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.15); }
.nofind { margin-top: 28px; color: var(--ink-2); }

/* soft tints: light fill, brand-colored line icon */
.t1 { background: #eaeffc; color: #2e3591; }
.t2 { background: #e2f4fa; color: #127fa6; }
.t3 { background: #eeebfc; color: #5a3fc0; }
.t4 { background: #e2f4ec; color: #0f8a6a; }

.empty-home { margin-top: 30px; text-align: center; color: var(--ink-2); }
.empty-home { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; }
.empty-home svg.i { width: 28px; height: 28px; color: var(--ink-3); }
.empty-home b { font: 600 17px var(--sans); color: var(--navy); }
.empty-home p { margin: 0; max-width: 46ch; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home { padding-top: 24px; } .hello h1 { font-size: 24px; } }
@media (max-width: 640px) {
  .app-sec { margin-top: 26px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 0; padding: 14px; gap: 14px; }
  .tile .ic { width: 48px; height: 48px; }
  .tile .ic svg.i { width: 24px; height: 24px; }
  .findbox { margin-top: 32px; padding-top: 22px; }
}

/* ---------- HR profile (Oct 12): header card, facts, tabs ---------- */
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.av.xl { width: 112px; height: 112px; font-size: 34px; border-radius: 26px; box-shadow: 0 6px 18px rgba(20,27,61,.18); }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 26px; padding: 20px 22px; align-items: center; }
.hero-photo { display: grid; justify-items: center; gap: 10px; grid-row: span 2; }
.hero-new b { font-family: var(--sans); font-size: 17px; color: var(--navy); }
.hero-new p { margin: 4px 0 0; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.fact { min-width: 0; }
.fact dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.fact dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.fact .clip { display: block; overflow: hidden; text-overflow: ellipsis; }
.hero-done { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line-2); }
.meter { flex: 0 0 140px; height: 8px; border-radius: 99px; background: #e8edf5; overflow: hidden; display: inline-block; vertical-align: middle; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.meter.sm { width: 64px; height: 6px; }
.okt { color: var(--ok); font-weight: 500; }
.tabs { display: flex; gap: 4px; margin: 20px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.tabs button:hover { color: var(--navy); background: var(--sky); }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); font-weight: 600; }
.affix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding-left: 11px; }
.affix b { color: var(--ink-3); font-weight: 500; }
.affix input { border: 0 !important; box-shadow: none !important; padding-left: 6px; }
.affix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.15); }
.pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.stbox { border-left: 3px solid var(--warn); padding: 10px 12px; background: #fdf6ec; border-radius: 0 9px 9px 0; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f7f9fc; color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl td.n, table.tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr:last-child td { border-bottom: 0; }
[data-pane] + [data-pane] { margin-top: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; padding: 18px 16px; }
  .hero-photo { grid-row: auto; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 14px; }
  .av.xl { width: 84px; height: 84px; font-size: 26px; border-radius: 20px; }
  .hero-done { flex-wrap: wrap; }
  .banner .acts { width: 100%; }
}
.dline { display: flex; align-items: flex-start; min-height: 0; padding: 2px 0; } .dline input { margin-top: 3px; }
.banner .meta { flex-wrap: wrap; row-gap: 4px; }
.figures.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .figures.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .figures.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; vertical-align: middle; }

/* ---------- staff photos: click to enlarge ---------- */
.av.zoom { cursor: zoom-in; transition: transform .12s ease, box-shadow .12s ease; }
.av.zoom:hover { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(39, 84, 196, .18); }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 16, 40, .78); opacity: 0; transition: opacity .16s ease; cursor: zoom-out; }
.lightbox.on { opacity: 1; }
.lightbox figure { margin: 0; text-align: center; cursor: default; transform: scale(.96); transition: transform .16s ease; }
.lightbox.on figure { transform: none; }
.lightbox img { display: block; width: min(78vmin, 560px); height: min(78vmin, 560px); object-fit: cover; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: #fff; }
.lightbox figcaption { color: #fff; font: 600 18px/1.3 var(--sans); margin-top: 14px; letter-spacing: -.01em; }
.lightbox .lb-x { position: fixed; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox .lb-x:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Employees: card view ---------- */
.viewsw { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.viewsw button { border: 0; background: var(--surface); color: var(--ink-2); padding: 7px 12px; font: inherit; cursor: pointer; }
.viewsw button.on { background: var(--navy, #141b3d); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.ecard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 20px 16px 16px; color: var(--ink); cursor: pointer; transition: border-color .12s, transform .12s; }
.ecard:hover { border-color: #b9c6de; transform: translateY(-2px); }
.ecard .av { width: 104px; height: 104px; border-radius: 26px; font-size: 32px; margin-bottom: 8px; }
.ecard .av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ecard b { font: 600 16px/1.25 var(--sans); }
.ecard .sub { color: var(--ink-2); font-size: 13px; }
.ecard .co { position: absolute; top: 10px; left: 12px; font-size: 11px; color: var(--ink-3); }
.ecard .st { position: absolute; top: 10px; right: 12px; }
.ecard .today { margin-top: 6px; font-size: 12px; background: #eaf6ee; color: #1d6b3a; border-radius: 999px; padding: 3px 10px; }
.ecard .off { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ecard .row { display: flex; gap: 8px; margin-top: 10px; }
.ecard .row a { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.ecard .row a:hover { border-color: #b9c6de; color: var(--ink); }
.ecard .meter { flex: none; width: 70%; height: 6px; margin-top: 12px; }
.cards .empty { grid-column: 1 / -1; color: var(--ink-3); text-align: center; padding: 30px; }
.cardsearch { margin: 0 0 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cardsearch select { width: auto; min-width: 170px; }
.cardsearch input { flex: 1 1 220px; max-width: 340px; }
.cardsearch .viewsw svg.i { width: 15px; height: 15px; vertical-align: -3px; }

/* lists fit the page: tighter cells, no wrapped dates; when a table is still wider than the screen it scrolls sideways
   with a visible scrollbar right under the header (JD: "not fitting in the page and we cannot scroll") */
.nw { white-space: nowrap; }
table.data th, table.data td { padding-left: 12px; padding-right: 12px; }
.scroll { scrollbar-width: thin; }
.scroll::-webkit-scrollbar { height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: #c9d3e6; border-radius: 99px; }
@media (min-width: 641px) {
  .tablebox .scroll { max-height: calc(100vh - 140px); overflow: auto; }
  .tablebox .scroll thead th { position: sticky; top: 0; z-index: 1; }
}
/* download buttons in panel headers and the Employees bar */
.ph .dl, .cardsearch .dl { display: inline-flex; gap: 6px; flex: none; }
.cardsearch .dl { margin-left: auto; }
@media (max-width: 640px) { .cardsearch .dl { margin-left: 0; } }

/* hiring-packet checklist (Documents tab) */
.packet { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcff; }
.packet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.packet ul { list-style: none; margin: 0; padding: 0; }
.packet li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line-2); }
.packet li b { min-width: 200px; font-weight: 600; }
.packet .tick-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.packet li.ok .tick-ic { background: #e3f5ea; color: #1d6b3a; }
.packet li.miss .tick-ic { background: #fdecec; color: #b42318; }
.packet li .btn.small { margin-left: auto; }

/* onboarding form status on the profile card */
.onb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 18px 14px; font-size: 13.5px; color: var(--ink-2); }
.onb:empty { display: none; }
.onb .btn.small { margin-left: auto; }
/* quiet buttons on the dark banner (Cancel / Delete …) were blue on navy */
.banner .btn.quiet { color: #fff; border-color: rgba(255,255,255,.45); }
.banner .btn.quiet:hover { background: rgba(255,255,255,.14); }
.perms th.money { color: var(--warn); } .grid3.notes { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-top:16px; }

/* a dropdown in a page banner (e.g. Profit month): dark text on the white box, same height as the buttons beside it */
.banner .acts select { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; height: 36px; padding: 0 10px; font: inherit; font-weight: 600; max-width: 100%; }
