/* Tidy People - styles.
   The brand tokens below (colors, typefaces, pill buttons, rounded cards, small upper-case labels) are the same
   ones used on tidycleaningchamps.com, so the portal and the website read as one brand. */

@font-face { font-family: 'Ubuntu'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/ubuntu-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/ubuntu-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/ubuntu-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/lato-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Tidy brand palette */
  --blue: #1C36BF; --blue-dk: #142888; --blue-lt: #4A64E4; --tint: #F3F5FF; --blue-line: #C9D2F6;
  --green: #47BF1C; --green-dk: #38A312; --green-ink: #2A7A0D; --green-xs: #EAF8E4;
  --ink: #1A1D2C; --text: #2E3140; --muted: #555761; --faint: #8A8D9A;
  --line: #E4E7F4; --line-2: #D6D6D9; --bg: #F3F5FF; --surface: #FFFFFF; --off: #F8F9FF;
  --red: #E22D2D; --red-dk: #BF1F1F; --red-xs: #FDECEC; --amber: #8A5A00; --amber-xs: #FFF6DC; --yellow: #E2D52D;
  --font-h: 'Ubuntu', 'Segoe UI', system-ui, sans-serif; --font-b: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --r: 20px; --r-sm: 12px; --r-xs: 8px; --pill: 999px;
  --shadow: 0 1px 2px rgba(20,40,136,.04), 0 8px 28px rgba(20,40,136,.07);
  --shadow-lg: 0 24px 64px rgba(12,22,80,.30);
  --side: 252px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-b); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.2; }
h1 { font-size: 30px; letter-spacing: -.8px; } h2 { font-size: 20px; letter-spacing: -.4px; } h3 { font-size: 16px; letter-spacing: -.2px; }
p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
svg.ic { flex: none; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: 40px; text-align: center; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; } .hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack > .btn:not(.block) { align-self: flex-start; } .stack.tight { gap: 6px; } .stack.loose { gap: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* The small upper-case label that sits above headings on the website */
.eyebrow { font-family: var(--font-h); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }

/* ---------- buttons (pills, as on the website) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: var(--pill);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--blue); font-family: var(--font-b); font-weight: 700; font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--tint); border-color: var(--green); }
.btn:focus-visible, .chip:focus-visible, .tile:focus-visible, .plan:focus-visible, .opt:focus-visible, .slot:focus-visible, .seg button:focus-visible, .tabs button:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.btn.good { background: var(--green); border-color: var(--green); color: #fff; text-shadow: 0 1px 1px rgba(20,80,0,.28); }
.btn.good:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn.danger { background: var(--surface); border-color: #F3B7B7; color: var(--red-dk); }
.btn.danger:hover { background: var(--red-xs); border-color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.solid:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint); border-color: transparent; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 12px; }
.btn.block { width: 100%; }
.btn.icon { width: 38px; padding: 0; height: 38px; }
.btn.icon.sm { width: 34px; height: 34px; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-family: var(--font-b); font-size: 13px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); margin-left: 2px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: #A4A7B5; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,54,191,.14); }
.input:disabled { background: var(--bg); color: var(--muted); }
.field.bad .input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,45,45,.10); }
.field .err { color: var(--red-dk); font-size: 13px; }
.hint { color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.grid { display: grid; gap: 16px; } .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.banner { display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; font-size: 14px; border: 1px solid transparent; }
.banner.info { background: var(--tint); border-color: var(--blue-line); color: #1B2A6B; }
.banner.good { background: var(--green-xs); border-color: #BFE7B0; color: #1F5C0B; }
.banner.warn { background: var(--amber-xs); border-color: #F0DC9A; color: #5E3D00; }
.banner.bad { background: var(--red-xs); border-color: #F4C2C2; color: #7F1717; }
.banner svg { margin-top: 2px; }
.banner.info > svg { color: var(--blue); } .banner.good > svg { color: var(--green-ink); }
.card .banner .btn.sm, .stack > .banner .btn.sm { flex: none; }

/* ---------- cards, tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 24px; }
.card > .head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card > .body { padding: 22px; }
.card > .tablewrap:last-child, .card > div:last-child > .tablewrap:last-child { border-radius: 0 0 var(--r) var(--r); }
.card > .tablewrap:first-child { border-radius: var(--r) var(--r) 0 0; }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-family: var(--font-b); font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; background: var(--off); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 22px; } table.t th:last-child, table.t td:last-child { padding-right: 22px; }
table.t td.wide { min-width: 190px; } table.t td.brk { min-width: 140px; max-width: 260px; overflow-wrap: anywhere; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover { background: var(--off); }
table.t tbody tr.click:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: -3px; }
table.t th.right, table.t td.right { text-align: right; }
table.t td.strong { font-weight: 700; color: var(--ink); }
table.t .ref { font-family: var(--font-h); font-weight: 500; color: var(--blue); white-space: nowrap; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty svg { color: var(--blue-line); margin-bottom: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill); font-family: var(--font-b); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--muted); }
.badge.blue { background: #E6EBFF; color: var(--blue); } .badge.green { background: var(--green-xs); color: var(--green-ink); }
.badge.amber { background: var(--amber-xs); color: var(--amber); } .badge.red { background: var(--red-xs); color: var(--red-dk); }
.badge.grey { background: #ECEEF5; color: var(--muted); } .badge.violet { background: #EFE9FE; color: #5B34B5; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 36px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--muted); font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--green); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip .n { margin-left: 7px; font-size: 11px; opacity: .85; letter-spacing: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.listnote { padding: 12px 18px 0; }
.search { position: relative; flex: 1 1 240px; max-width: 420px; }
.search svg { position: absolute; left: 15px; top: 13px; color: var(--faint); }
.search .input { padding-left: 42px; height: 42px; border-radius: var(--pill); }
.sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--blue-dk) 0, var(--blue-dk) var(--side), var(--bg) var(--side)); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(420px 320px at 115% -8%, rgba(74,100,228,.75), rgba(74,100,228,0) 70%), linear-gradient(180deg, var(--blue) 0%, var(--blue) 45%, var(--blue-dk) 100%); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 22px 8px; }
.brand img { width: 170px; height: auto; display: block; }
.brand .name { font-family: var(--font-h); font-weight: 700; font-size: 19px; line-height: 1.2; color: #fff; }
.brand small { padding-left: 6px; font-family: var(--font-h); font-weight: 700; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav .group { margin: 16px 16px 6px; font-family: var(--font-h); font-weight: 700; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--pill); color: rgba(255,255,255,.92); text-decoration: none;
  font-family: var(--font-b); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav a.on { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(10,20,80,.25); }
.nav a.on svg { color: var(--green); }
.nav a.cta { height: 44px; margin: 0 0 12px; justify-content: center; background: var(--green); color: #fff; text-shadow: 0 1px 1px rgba(20,80,0,.28); box-shadow: 0 8px 20px rgba(10,20,80,.28); }
.nav a.cta:hover { background: var(--green-dk); }
.nav a.cta.on { background: var(--green); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.nav a.cta.on svg { color: #fff; }
.side a:focus-visible, .side button:focus-visible { outline: 3px solid rgba(255,255,255,.75); outline-offset: 2px; }
.side .foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 11px; padding: 6px 8px; text-decoration: none; border-radius: 14px; }
.me:hover { background: rgba(255,255,255,.14); }
.me .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 13px; flex: none; }
.me .nm { color: #fff; font-family: var(--font-h); font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .rl { font-size: 12px; color: rgba(255,255,255,.75); }
.side .btn.dark { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; height: 38px; font-size: 12px; }
.side .btn.dark:hover { background: #fff; border-color: #fff; color: var(--blue); }
.vaultchip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 38px; padding: 0 14px; border-radius: var(--pill);
  font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; border: 1.5px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.10); cursor: pointer; transition: background .15s; }
.vaultchip:hover { background: rgba(255,255,255,.2); }
.vaultchip.open { background: var(--green); border-color: var(--green); text-shadow: 0 1px 1px rgba(20,80,0,.28); }
.main { min-width: 0; padding: 30px 34px 64px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 780px; }
.topbar { display: none; }

/* Welcome band on the manager's overview: the website's blue call-out card */
.hero-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; padding: 30px 34px;
  border-radius: 25px; color: #fff; background: linear-gradient(115deg, var(--blue) 0%, var(--blue) 58%, var(--blue-lt) 150%); box-shadow: 0 14px 34px rgba(28,54,191,.25); }
.hero-card::after { content: ''; position: absolute; right: 38%; top: -30px; width: 150px; height: 150px; background: url('img/sparkle.svg') no-repeat center / contain; opacity: .9; pointer-events: none; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .eyebrow { color: #fff; opacity: .92; }
.hero-card h1 { color: #fff; font-size: 34px; letter-spacing: -1px; margin: 6px 0 4px; }
.hero-card p { color: rgba(255,255,255,.9); }
.hero-side { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-stat { padding-right: 26px; border-right: 1px solid rgba(255,255,255,.28); text-align: right; }
.hero-stat .v { font-family: var(--font-h); font-weight: 500; font-size: 32px; letter-spacing: -1px; line-height: 1.15; color: #fff; }
.hero-stat .k { font-size: 13px; color: rgba(255,255,255,.85); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); text-align: left; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
button.tile { cursor: pointer; font: inherit; color: inherit; }
button.tile:hover, a.tile:hover { border-color: var(--blue-lt); transform: translateY(-1px); }
.tile.on { border-color: var(--blue); background: var(--tint); }
.tile .v { font-family: var(--font-h); font-size: 30px; font-weight: 500; letter-spacing: -1px; color: var(--ink); line-height: 1.1; }
.tile .k { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.tile.accent .k::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.tile.accent.green .k::before { background: var(--green); } .tile.accent.amber .k::before { background: #E8A53B; }
.tile.accent.red .k::before { background: var(--red); } .tile.accent.violet .k::before { background: #7C5CE0; } .tile.accent.grey .k::before { background: #B8BCCB; }

/* ---------- sign-in: the website's blue hero with a white card ---------- */
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: #fff;
  background: radial-gradient(900px 560px at 92% 4%, rgba(74,100,228,.80) 0%, rgba(74,100,228,0) 62%), linear-gradient(135deg, var(--blue) 0%, var(--blue) 52%, var(--blue-dk) 100%); }
.auth::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; background: url('img/suds.svg') repeat-x center bottom / 600px 110px; pointer-events: none; }
.spark { position: absolute; display: block; background: url('img/sparkle.svg') no-repeat center / contain; pointer-events: none; opacity: .9; }
.spark.s1 { width: 150px; height: 150px; left: 44%; top: 54px; }
.spark.s2 { width: 84px; height: 84px; left: 3%; bottom: 150px; opacity: .7; }
.spark.s3 { width: 110px; height: 110px; right: 2.5%; bottom: 170px; opacity: .55; }
.auth.wide .spark.s1 { width: 104px; height: 104px; left: 30%; top: 24px; }
.auth-top { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 40px 0; }
.auth-top img { width: 178px; height: auto; display: block; }
.auth-top .name { font-family: var(--font-h); font-weight: 700; font-size: 22px; color: #fff; }
.auth-grid { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 40px 150px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
.auth.wide .auth-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.auth.bare .auth-grid { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth.wide .pitch { position: sticky; top: 36px; padding-top: 26px; }
.pitch .eyebrow { color: #fff; font-size: 14px; }
.pitch h2 { margin: 14px 0 16px; color: #fff; font-size: 46px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.12; }
.auth.wide .pitch h2 { font-size: 36px; letter-spacing: -1px; }
.pitch p { max-width: 460px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.75; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #fff; }
.points .ib { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.auth .box { width: 100%; }
.auth .card { padding: 34px; border: 0; border-radius: 25px; box-shadow: var(--shadow-lg); color: var(--text); }
.auth h1 { font-size: 28px; letter-spacing: -.8px; margin-bottom: 8px; }
.auth .lead { color: var(--muted); margin-bottom: 22px; }
.auth .foot { margin-top: 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,.88); }
.auth .foot div { margin-top: 4px; } .auth .foot a { color: #fff; font-weight: 700; }
.auth .loading { color: #fff; } .auth .loading .spin { border-color: rgba(255,255,255,.35); border-right-color: #fff; }
.code { letter-spacing: .5em; text-align: center; font-size: 24px; font-family: var(--font-h); font-weight: 700; height: 56px; padding-left: .5em; }
.steps3 { display: flex; flex-direction: column; gap: 18px; counter-reset: s; }
.steps3 > div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.steps3 > div::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-h); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: max-content; }
.qr svg { display: block; }
.keybox { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--tint); border: 1px dashed var(--blue-line); border-radius: var(--r-xs); padding: 9px 12px; font-size: 13.5px; word-break: break-all; color: var(--ink); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; color: var(--ink); }
.codes span { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 9px 10px; text-align: center; }

/* ---------- new sale ---------- */
.sale { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.stepper { display: flex; gap: 4px; margin-bottom: 18px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow); }
.stepper .st { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--pill); color: var(--muted); font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; cursor: default; }
.stepper .st .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-family: var(--font-h); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.stepper .st.done { color: var(--ink); cursor: pointer; } .stepper .st.done .n { background: var(--green); color: #fff; }
.stepper .st.done:hover { background: var(--tint); }
.stepper .st.on { background: var(--blue); color: #fff; } .stepper .st.on .n { background: #fff; color: var(--blue); }
.seg { display: inline-flex; align-self: flex-start; padding: 5px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--pill); gap: 4px; }
.seg button { height: 36px; padding: 0 18px; border: 0; background: transparent; border-radius: var(--pill); font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button:hover { color: var(--blue); }
.seg button.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(28,54,191,.28); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 16px; }
.plan { position: relative; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--blue-lt); box-shadow: var(--shadow); }
.plan.on { border-color: var(--blue); background: var(--tint); box-shadow: 0 0 0 3px rgba(28,54,191,.14); }
.plan .nm { font-family: var(--font-h); font-weight: 500; font-size: 19px; letter-spacing: -.4px; color: var(--ink); }
.plan .sub { font-size: 13px; color: var(--muted); }
.plan .pr { margin: 10px 0 8px; font-family: var(--font-h); font-weight: 500; font-size: 32px; letter-spacing: -1px; line-height: 1.1; color: var(--blue); }
.plan .pr small { font-family: var(--font-b); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.plan li { display: flex; gap: 8px; } .plan li svg { color: var(--green); margin-top: 3px; }
.plan .pop { position: absolute; top: -11px; right: 16px; background: var(--green); color: #fff; font-family: var(--font-b); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 11px; border-radius: var(--pill); text-shadow: 0 1px 1px rgba(20,80,0,.28); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 80px; transition: border-color .15s; }
.opt:hover { border-color: var(--blue-lt); }
.opt.on { border-color: var(--blue); background: var(--tint); }
.opt .nm { font-family: var(--font-h); font-weight: 500; font-size: 14.5px; letter-spacing: -.1px; color: var(--ink); }
.opt .du { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.opt .pr { font-family: var(--font-h); font-weight: 500; color: var(--blue); margin-top: auto; }
.opt .custom { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.opt .custom input { width: 92px; height: 34px; border-radius: var(--r-xs); }
.grouphd { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-family: var(--font-h); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.grouphd:first-child { margin-top: 0; }
.grouphd .line { flex: 1; height: 1px; background: var(--line); }
.summary { position: sticky; top: 20px; }
.summary .li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.summary .li .nm { color: var(--text); } .summary .li .pr { font-family: var(--font-h); font-weight: 500; color: var(--ink); white-space: nowrap; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-h); }
.summary .tot b { font-size: 28px; font-weight: 500; letter-spacing: -.8px; color: var(--blue); }
.summary .tot + div { margin-top: 20px; }
.summary .kv { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; padding: 3px 0; } .summary .kv svg { color: var(--blue); margin-top: 3px; }
.cal { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dk) 100%); border-radius: var(--r); padding: 18px; color: #fff; }
.cal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--font-h); font-weight: 500; font-size: 17px; letter-spacing: -.3px; }
.cal .hd button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.65); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.cal .hd button:hover:not(:disabled) { background: #fff; color: var(--blue); }
.cal .hd button:disabled { opacity: .3; cursor: not-allowed; }
.cal .hd button:focus-visible, .cal .d:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 1px; }
.cal .gridc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.72); padding: 6px 0; font-family: var(--font-b); }
.cal .d { height: 38px; border-radius: var(--pill); border: 1.5px solid transparent; background: transparent; color: #fff; font-family: var(--font-h); font-size: 14px; cursor: pointer; }
.cal .d:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.cal .d:disabled { color: rgba(255,255,255,.34); cursor: not-allowed; }
.cal .d.today { border-color: var(--green); }
.cal .d.on { background: #fff; border-color: #fff; color: var(--blue); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { height: 44px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--font-b); font-size: 13px; font-weight: 700; letter-spacing: .4px; cursor: pointer; color: var(--blue); transition: background .15s, border-color .15s, color .15s; }
.slot:hover { border-color: var(--green); background: var(--tint); } .slot.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.review dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.review dt { color: var(--muted); } .review dd { margin: 0; color: var(--ink); word-break: break-word; }
.success { text-align: center; padding: 36px 20px; }
.success .big { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 24px rgba(71,191,28,.35); }
.success .row { margin-top: 20px; }
.success .refbig { font-family: var(--font-h); font-size: 28px; font-weight: 500; color: var(--blue); letter-spacing: .04em; margin: 8px 0 18px; }

/* ---------- detail ---------- */
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; color: var(--ink); word-break: break-word; white-space: pre-wrap; }
.section-t { font-family: var(--font-h); font-weight: 700; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin: 20px 0 8px; }
.section-t:first-child { margin-top: 0; }
.paybox { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--tint); }
.paybox .tot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.paybox select.input { width: auto; min-width: 78px; }
.prewrap { white-space: pre-wrap; }
.secret { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px 20px; }
.secret .lbl { font-family: var(--font-h); font-weight: 700; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.secret .val { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.secret .val button { border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: var(--pill); height: 28px; padding: 0 11px; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-family: var(--font-b); display: inline-flex; align-items: center; gap: 5px; }
.secret .val button:hover { background: rgba(255,255,255,.14); }
.secret .val.plain { font-family: var(--font-b); font-size: 16px; letter-spacing: 0; }
.secret .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.countdown { height: 4px; background: rgba(255,255,255,.16); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.countdown i { display: block; height: 100%; background: var(--green); width: 100%; transition: width 1s linear; }

/* ---------- modal, toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,28,74,.55); display: grid; place-items: center; padding: 20px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.sm { max-width: 440px; } .modal.lg { max-width: 780px; } .modal.xl { max-width: 980px; }
.modal > header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal > header h2 { flex: 1; }
.modal > .mbody { padding: 24px; overflow-y: auto; }
.modal > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--off); border-radius: 0 0 var(--r) var(--r); flex-wrap: wrap; }
.modal > footer .lefty { margin-right: auto; }
.toasts { position: fixed; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .2s ease-out; }
.toast svg { color: #9DB0FF; margin-top: 1px; }
.toast.good svg { color: #7FE055; } .toast.bad { background: #8E1B1B; } .toast.bad svg { color: #FFC9C9; }
@keyframes rise { from { transform: translateY(-8px); opacity: 0; } }
.menu { position: absolute; z-index: 30; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: 0; background: transparent; border-radius: var(--r-xs); cursor: pointer; font-size: 14px; text-align: left; color: var(--text); }
.menu button svg { color: var(--blue); }
.menu button:hover { background: var(--tint); } .menu button.danger, .menu button.danger svg { color: var(--red-dk); }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.loading .spin { width: 26px; height: 26px; border: 3px solid var(--blue-line); border-right-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 10px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { padding: 11px 16px; border: 0; background: transparent; font-family: var(--font-b); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--blue); }
.tabs button.on { color: var(--blue); border-bottom-color: var(--green); }
.setcard h2 { margin-bottom: 4px; } .setcard .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.iplist { display: flex; flex-direction: column; gap: 8px; }
.iplist .row .input { max-width: 260px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks .c { display: flex; align-items: center; gap: 10px; font-size: 14px; } .checks .c.ok svg { color: var(--green); } .checks .c.no svg { color: var(--red); }
.addons-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; border: 1.5px dashed var(--blue-line); border-radius: 14px; background: var(--tint); cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: border-color .15s; }
.addons-toggle:hover { border-color: var(--green); }
.addons-toggle b { font-family: var(--font-h); font-weight: 500; }
.addons-toggle svg { color: var(--blue); }

@media (max-width: 1080px) { .sale { grid-template-columns: 1fr; } .summary { position: static; } .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .auth-top { padding: 22px 20px 0; display: flex; justify-content: center; }
  .auth-grid, .auth.wide .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 16px 140px; justify-items: center; align-items: start; }
  .auth .box { max-width: 520px; } .auth.wide .box { max-width: 720px; }
  .pitch { display: none; } .spark.s1 { left: auto; right: -30px; top: 10px; width: 110px; height: 110px; opacity: .6; } .spark.s2, .spark.s3 { display: none; }
  .auth .card { padding: 26px 22px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--blue); position: sticky; top: 0; z-index: 30; }
  .topbar img { height: 40px; width: auto; display: block; }
  .topbar .name { font-family: var(--font-h); font-weight: 700; color: #fff; }
  .topbar button { width: 44px; height: 38px; border-radius: var(--r-xs); background: var(--green); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
  .main { padding: 18px 14px 50px; }
  h1 { font-size: 26px; } .hero-card { padding: 24px 22px; } .hero-card h1 { font-size: 28px; } .hero-card::after { right: -20px; }
  .hero-stat { text-align: left; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .stepper .st span.lb { display: none; } .stepper .st { justify-content: center; padding: 6px; }
  dl.kv, .review dl { grid-template-columns: 1fr; gap: 2px 0; } dl.kv dd, .review dd { margin-bottom: 8px; }
}
@media print {
  .side, .topbar, .toasts, .noprint, .pitch, .auth-top, .spark { display: none !important; }
  .app { display: block; } .main { padding: 0; } body { background: #fff; }
  .auth { background: none; color: var(--text); min-height: 0; display: block; } .auth::after { display: none; } .auth-grid { display: block; padding: 0; } .auth .card { box-shadow: none; padding: 0; } .auth .foot { display: none; }
  .overlay { position: static; background: none; padding: 0; display: block; } .modal { box-shadow: none; max-width: none; max-height: none; }
}
.importprog { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--blue-line); border-radius: 14px; background: var(--tint); }
.importprog .bar { height: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.importprog .bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: var(--pill); transition: width .4s ease; }
.importprog .step { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; color: var(--muted); }
.importprog .step.on { color: var(--blue); font-weight: 700; } .importprog .step.done { color: var(--green-ink); }
ul.notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.okmark, .badmark { gap: 6px; font-size: 13px; font-weight: 700; } .okmark { color: var(--green-ink); } .badmark { color: var(--amber); }

/* ---------- small helpers ---------- */
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; }
.row.tightrow { gap: 6px; }
.card.flat { box-shadow: none; }
.badge svg.ic { stroke-width: 2.4; }

/* ---------- one sale: everything about it ---------- */
.saled { display: flex; flex-direction: column; gap: 18px; }
.saled .section-t { margin-top: 0; }
.saled .grid.c2 { gap: 18px 28px; }
.saled .grid.c2 > div > .section-t:not(:first-child) { margin-top: 18px; }
.saled-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.saled-top .ref { font-family: var(--font-h); font-weight: 500; font-size: 24px; letter-spacing: .02em; color: var(--blue); line-height: 1.2; }
.saled-top select.input { width: auto; }
.paybox.result { background: var(--surface); border-style: dashed; border-color: var(--blue-line); }
.paybox.result .field { min-width: 220px; }
.paybox.result > .row { align-items: flex-end; }
.banner.queue { align-items: center; }
.modal > .copynote { padding: 12px 24px; border-top: 1px solid var(--line); }
.modal > .copynote:empty { display: none; }
.copynote .banner { align-items: center; }
.copynote .banner > svg { margin-top: 0; }
.modal:focus { outline: none; }
.banner.queue > svg { margin-top: 0; }

/* ---------- team ---------- */
.tiles.people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.people .tile { padding: 14px 18px; } .tiles.people .tile .v { font-size: 26px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.person .av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); border: 1px solid var(--blue-line); color: var(--blue); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 13px; }
table.t td.access { min-width: 240px; max-width: 380px; }
.quick { padding: 2px 0 4px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.featcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.featgroup { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.featgroup legend { padding: 0; margin-bottom: 6px; font-family: var(--font-h); font-weight: 700; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.feat { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.feat:hover { border-color: var(--blue-lt); }
.feat.on { border-color: var(--blue); background: var(--tint); }
.feat.sensitive.on { border-color: #7C5CE0; background: #F6F2FF; }
.feat input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.feat.sensitive input { accent-color: #7C5CE0; }
.feat .ft { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feat .nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; color: var(--ink); font-size: 14px; }
.feat .ds { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.feat.locked { cursor: not-allowed; background: var(--off); }
.feat.locked:hover { border-color: var(--line); } .feat.locked.on:hover { border-color: var(--blue); }
.feat.locked .nm, .feat.locked .ds { color: var(--faint); }
.feat input:disabled { cursor: not-allowed; }
.feat:focus-within { outline: 3px solid rgba(74,100,228,.35); outline-offset: 1px; }

@media (max-width: 1080px) { .tiles.people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }

/* ---------- lists on laptop screens ---------- */
/* With the menu at the side, a 1366-pixel screen leaves about 1040 pixels for a list. Columns sit closer together
   there, so the last one (the payment status, a row's menu) stays in view without scrolling sideways. Wide
   screens keep the roomier spacing. */
table.t select.inrow { height: 34px; min-width: 128px; }
table.t .per .slash { white-space: pre; }
table.t td.name, table.t td.paycol { white-space: nowrap; }
.payline .who + .dots { margin-left: -6px; }
@media (max-width: 1500px) {
  table.t th, table.t td { padding-left: 10px; padding-right: 10px; }
  table.t th:first-child, table.t td:first-child { padding-left: 18px; } table.t th:last-child, table.t td:last-child { padding-right: 18px; }
  table.t td.wide { min-width: 170px; } table.t td.brk { min-width: 120px; }
  table.t select.inrow { min-width: 116px; }
  table.t .per { display: block; } table.t .per .slash { display: none; }
  table.t .payline svg { display: none; }
  table.t .payline .who { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  table.t td.paycol { white-space: normal; max-width: 150px; }
  table.t td.longbadge .badge { white-space: normal; border-radius: 12px; line-height: 1.3; padding: 4px 10px; }
}
@media (max-width: 1320px) {
  table.t th, table.t td { padding-left: 7px; padding-right: 7px; }
  table.t th:first-child, table.t td:first-child { padding-left: 14px; } table.t th:last-child, table.t td:last-child { padding-right: 14px; }
  table.t td.wide { min-width: 150px; }
  table.t td.name { white-space: normal; }
}


/* ---------- people portal: page layout ---------- */
.main { display: flex; flex-direction: column; gap: 18px; }
.main > .page-head { margin-bottom: 2px; }
.main > .hero-card, .main > .tabs { margin-bottom: 0; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: -8px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--blue); }
.back:hover { text-decoration: underline; }
.sectionhead { margin-top: 10px; }
.cards { align-items: start; }
.cardtitle { margin-bottom: 14px; }
.row.between.cardtitle { gap: 12px; flex-wrap: wrap; }
.listcard > .head { padding: 16px 22px; }
.card > .body.flush { padding: 0 0 6px; }
.label { display: block; }
.pad0 { margin: 0; }
.brkall { overflow-wrap: anywhere; }
.strongname { font-weight: 700; color: var(--ink); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover, a.plain:hover .strongname { color: var(--blue); }
.rednote { color: var(--red-dk); }
.adminnote { color: var(--amber); margin-top: 3px; max-width: 560px; }
.input.short { max-width: 150px; }
select.input.narrow { width: auto; max-width: 250px; height: 42px; border-radius: var(--pill); }
dl.kv.areas { grid-template-columns: 160px 1fr; }
table.t td.notecol { max-width: 330px; min-width: 200px; }
table.t td.tick { width: 44px; }
table.t td.tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; }
table.t td.tick input:disabled { cursor: not-allowed; }
.grouphd.inlist { margin: 0; padding: 16px 22px 8px; }

/* ---------- hero, tiles, counts ---------- */
.hero-card .grow { min-width: 240px; }
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-card .prog { margin-top: 16px; max-width: 420px; background: rgba(255,255,255,.28); }
.hero-card .prog i { background: #fff; }
.btn.onblue { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn.onblue:hover { background: #fff; border-color: #fff; color: var(--blue); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.linktile .k { margin-top: 0; }
.linktile .k svg { color: var(--blue); }
.linktile .v { font-size: 22px; letter-spacing: -.5px; margin: 10px 0 4px; }
.nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 11.5px; letter-spacing: 0; display: inline-grid; place-items: center; }
.prog { height: 8px; min-width: 90px; border-radius: var(--pill); background: #E1E5F6; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--green); border-radius: var(--pill); transition: width .3s; }
.progcell { display: flex; flex-direction: column; gap: 5px; min-width: 112px; }
.head .progcell { width: 170px; }

/* ---------- a person's checklist ---------- */
.todos { display: flex; flex-direction: column; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .15s; }
.todo:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); }
.todo:hover { background: var(--off); }
.todo:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: -3px; }
.todo.next { background: var(--tint); }
.todo-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); border: 1px solid var(--blue-line); }
.todo.next .todo-ic { background: #fff; }
.todo.approved .todo-ic { background: var(--green-xs); color: var(--green-ink); border-color: #BFE7B0; }
.todo.submitted .todo-ic { background: var(--amber-xs); color: var(--amber); border-color: #F0DC9A; }
.todo.returned .todo-ic { background: var(--red-xs); color: var(--red-dk); border-color: #F4C2C2; }
.todo-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-main .nm { font-family: var(--font-h); font-weight: 500; font-size: 15.5px; color: var(--ink); }
.todo-main .ds { font-size: 13px; color: var(--muted); }
.todo.returned .todo-main .ds { color: var(--red-dk); }
.todo-side { flex: none; display: flex; align-items: center; gap: 10px; color: var(--faint); }
.itemcard { max-width: 880px; }
.steps3 h3 { margin-top: 5px; }

/* ---------- lists of things ---------- */
.rows { display: flex; flex-direction: column; }
.rowline { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.rowline:first-child { padding-top: 0; }
.rowline:last-child { border-bottom: 0; padding-bottom: 0; }
.rowline.top { align-items: flex-start; }
.rowline > svg { color: var(--blue); flex: none; }
.rowline > .badge, .rowline > .btn { flex: none; }
.rowline .nm { font-weight: 700; color: var(--ink); }
a.rowline:hover .nm { color: var(--blue); }
.rowline .av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); border: 1px solid var(--blue-line); color: var(--blue); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 12.5px; }
.notices { display: flex; flex-direction: column; }
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.notice:last-child { border-bottom: 0; }
.notice:hover { background: var(--off); }
.notice .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.notice.unread { font-weight: 700; color: var(--ink); }
.notice.unread .dot { background: var(--blue); }

/* ---------- files, sealed numbers, documents ---------- */
.files, .attach { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.file > svg { color: var(--blue); flex: none; }
.file .nm { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.file .btn { flex: none; }
.attach .file { border-style: dashed; border-color: var(--blue-line); background: var(--tint); }
.attach .file.on, .files .file.on { border-style: solid; border-color: #BFE7B0; background: var(--green-xs); }
.file.on > svg { color: var(--green-ink); }
.field.bad.attach .file:not(.on) { border-color: var(--red); }
.testtag { margin-left: 8px; padding: 1px 8px; border-radius: var(--pill); background: var(--amber-xs); color: var(--amber); font-size: 11px; font-weight: 700; }
.sealedin { position: relative; }
.sealedin svg { position: absolute; left: 14px; top: 14px; color: var(--faint); }
.sealedin .input { padding-left: 40px; background: var(--off); color: var(--ink); }
.sealedbox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.sealedbox > svg { color: var(--blue); flex: none; }
.sealedbox .nm { font-weight: 700; color: var(--ink); }
.sealedbox .big { font-size: 18px; color: var(--ink); }
.sealedbox .btn { flex: none; }
.sealedbox dl.kv { grid-template-columns: 130px 1fr; }
.secretrow + .secretrow { margin-top: 10px; }
.secret .tiny { color: rgba(255,255,255,.72); }
.secret .val { overflow-wrap: anywhere; }
.linkbtn { border: 0; background: none; padding: 0; color: #fff; text-decoration: underline; cursor: pointer; font-size: 12px; }
.linkbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.field.agree > label.check { font-weight: 400; font-size: 15px; color: var(--text); }
.signdoc { max-height: 300px; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); display: flex; flex-direction: column; gap: 10px; }
.signdoc:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 1px; }
.readdoc summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: 13px; }
.readdoc[open] summary { margin-bottom: 8px; }
.mailbody { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); display: flex; flex-direction: column; gap: 10px; }
.sheet { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 320px; padding: 34px 38px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sheet h3 { padding-right: 110px; }
.sheet-mark { position: absolute; top: 18px; right: 18px; padding: 3px 12px; border: 2px solid var(--amber); border-radius: 6px; background: #fff; color: var(--amber); font-family: var(--font-h); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; transform: rotate(4deg); }
.sheet-lines { display: flex; flex-direction: column; gap: 14px; margin: 10px 0; }
.sheet-lines i { display: block; height: 10px; border-radius: 5px; background: #EEF1F4; }
.sheet-lines i:nth-child(3n) { width: 70%; }
.sheet-lines i:nth-child(4n) { width: 86%; }

/* ---------- a pay stub ---------- */
.statement { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; }
.st-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.st-co { font-family: var(--font-h); font-weight: 700; font-size: 20px; color: var(--ink); }
.st-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.st-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.st-meta dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
table.st { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.st th { text-align: left; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 8px 10px; background: var(--off); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.st td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.st .right { text-align: right; }
table.st tr.total td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.st-net { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--tint); border: 1px solid var(--blue-line); }
.st-net .k { font-family: var(--font-h); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.st-net .v { font-family: var(--font-h); font-weight: 500; font-size: 30px; letter-spacing: -1px; color: var(--ink); text-align: right; }

/* ---------- admin: one person, requirements ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.checkpick { display: flex; flex-direction: column; gap: 6px; }
.pick { display: flex; flex-direction: column; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; max-height: 190px; overflow-y: auto; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.field > div:empty { display: none; }
.opts.kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.kinds .opt { min-height: 0; gap: 5px; }
.opts.kinds .nm svg { color: var(--blue); margin-right: 4px; }
.opts.kinds .du { display: block; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: var(--pill); background: #C4CAD1; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .track { opacity: .5; }

@media (max-width: 1240px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1080px) { .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .opts.kinds { grid-template-columns: 1fr; }
  .todo { flex-wrap: wrap; padding: 14px 16px; }
  .todo-main { flex-basis: calc(100% - 60px); }
  .todo-side { width: 100%; padding-left: 52px; justify-content: space-between; }
  .notice { flex-wrap: wrap; padding: 13px 16px; }
  .notice .nowrap { width: 100%; padding-left: 21px; }
  .st-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement { padding: 18px 16px; }
  .sheet { padding: 26px 20px; }
  .card.pad { padding: 18px 16px; }
  .listcard > .head, .grouphd.inlist { padding-left: 16px; padding-right: 16px; }
  .modal > .mbody { padding: 18px 16px; }
  .rowline { flex-wrap: wrap; }
  .rowline > .grow { flex-basis: calc(100% - 40px); }
  dl.kv.areas { grid-template-columns: 1fr; }
}

/* ---------- adjustments ---------- */
.person .grow { min-width: 0; }
.clip { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgrid dl.kv { grid-template-columns: 104px 1fr; }
table.checklist { table-layout: fixed; min-width: 600px; }
table.checklist th.tick { width: 50px; }
table.checklist th.stat { width: 168px; }
table.checklist th.chg { width: 128px; }
table.checklist th.act { width: 112px; }
table.checklist tr.grouprow th { padding: 16px 22px 8px; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--font-h); font-size: 12px; color: var(--blue); }
.reqs table.t { table-layout: fixed; min-width: 880px; }
.reqs table.t th:nth-child(2) { width: 208px; }
.reqs table.t th:nth-child(3) { width: 188px; }
.reqs table.t th:nth-child(4) { width: 124px; }
.reqs table.t th:nth-child(5) { width: 112px; }
.reqs table.t th:nth-child(6) { width: 66px; }
.progcell { min-width: 92px; }
.clip { max-width: 210px; }
table.t td.notecol { min-width: 150px; }
@media (max-width: 1400px) { .clip { max-width: 165px; } }
.linkbtn { white-space: nowrap; }
.sealedbox .row.between { gap: 10px; margin-top: 2px; }
@media (max-width: 700px) {
  .file { flex-wrap: wrap; }
  .file > .grow { flex-basis: calc(100% - 40px); }
  .file > .btn { margin-left: 30px; }
}
.protic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--blue-line); color: var(--blue); }
.row.cardtitle { gap: 12px; }
@media (max-width: 700px) {
  table.t .hidesm { display: none; }
  .rowline > .grow + svg { display: none; }
}
@media (max-width: 700px) {
  table.t td .btn.sm { padding: 0 12px; }
  table.t td .btn.sm svg { display: none; }
}
.sealedbox .mono { white-space: nowrap; }
.sealedbox .btn { flex: none; }

/* ---------- offer letter gate, first day, tasks, reports, reminders ---------- */
.todo.closed { cursor: default; color: var(--muted); }
.todo.closed:hover { background: transparent; }
.todo.closed .todo-ic { background: var(--off); color: var(--faint); border-color: var(--line); }
.todo.closed .todo-main .nm { color: var(--muted); }
.dayone { display: flex; align-items: flex-start; gap: 14px; }
.dayone h2 { margin-bottom: 10px; }
.dayfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.dayfacts .k { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.dayfacts .v { margin-top: 2px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.casenote { color: var(--amber); font-weight: 700; margin-top: 2px; }
ul.notes.teamlist { margin-top: 6px; }
.banner .btn.sm { flex: none; background: #fff; }
.reportnote { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.reportnote.row { gap: 12px; align-items: center; color: var(--text); }
.reportnote select.input.narrow { max-width: 340px; }
.tags { gap: 8px; align-items: center; }
.teamtasks > .head { align-items: flex-start; gap: 14px; }
.teamtasks > .head .btn { flex: none; }
.setline { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.setline .switch { flex: none; }
.reminders .grid.c2 { gap: 16px 22px; align-items: start; }
@media (max-width: 700px) {
  .dayfacts { grid-template-columns: 1fr; }
  .reportnote { padding-left: 16px; padding-right: 16px; }
  .setline { flex-wrap: wrap; }
  .teamtasks > .head { flex-wrap: wrap; }
  .banner .btn.sm { margin-top: 8px; }
}
.main > .teamtasks { margin-top: 6px; }

/* ---------- a list as cards on a phone ---------- */
@media (max-width: 700px) {
  .tablewrap.ascards { overflow-x: visible; }
  .ascards table.t, .ascards table.t tbody, .ascards table.t tr, .ascards table.t td { display: block; width: auto; }
  .ascards table.t thead { display: none; }
  .ascards table.t tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ascards table.t tr:last-child { border-bottom: 0; }
  .ascards table.t td, .ascards table.t td:first-child, .ascards table.t td:last-child { padding: 0; border: 0; min-width: 0; max-width: none; white-space: normal; text-align: left; }
  .ascards table.t td + td { margin-top: 8px; }
  .ascards table.t td:empty { display: none; }
  /* Each further line reads "LABEL  value": the column's heading, then what the cell holds. */
  .ascards table.t td[data-label]:not([data-label=""]):not(:first-child) { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 10px; align-items: baseline; justify-items: start; }
  .ascards table.t td[data-label]:not([data-label=""]):not(:first-child)::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
  .ascards table.t td[data-label=""] { margin-top: 12px; }
  .ascards .duecell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ascards .duecell .mt4 { margin-top: 0; }
  .ascards table.t td .btn.sm svg { display: inline; }
  .setline > .btn { width: 100%; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: left; }
}

/* ---- Pay: the latest paycheck, where it went, the year so far ---- */
.payhero h1 { font-size: 44px; letter-spacing: -1.5px; }
.payhero .eyebrow { display: flex; align-items: center; gap: 10px; }
.newtag { padding: 2px 10px; border-radius: var(--pill); background: #fff; color: var(--blue); font-size: 11px; letter-spacing: .6px; }
.split { display: flex; flex-direction: column; gap: 14px; }
.splitbar { display: flex; height: 22px; border-radius: var(--pill); overflow: hidden; background: var(--tint); gap: 3px; }
.splitbar i { display: block; min-width: 6px; }
.splitbar i.net, .dot.net { background: var(--blue); }
.splitbar i.tax, .dot.tax { background: var(--amber); }
.splitbar i.oth, .dot.oth { background: var(--faint); }
.splitkey { display: flex; flex-direction: column; }
.keyrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.keyrow .dot { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.keyrow .pct { color: var(--faint); font-size: 13px; min-width: 52px; text-align: right; }
.keyrow b { font-family: var(--font-h); font-weight: 500; color: var(--ink); min-width: 96px; text-align: right; }
.keyrow.total { border-bottom: 0; padding-bottom: 0; font-weight: 700; color: var(--ink); }
.paystats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.paystats .k { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.paystats .v { font-family: var(--font-h); font-weight: 500; font-size: 22px; letter-spacing: -.5px; color: var(--ink); }
@media (max-width: 720px) { .payhero h1 { font-size: 36px; } .keyrow .pct { display: none; } }
.input.num { width: 104px; text-align: right; padding-left: 8px; padding-right: 10px; }
.rolepick { display: flex; flex-direction: column; gap: 8px; }
.rolepick .feat { align-items: flex-start; }
.rolepick .feat input { margin-top: 3px; }

/* ---- team notes ---- */
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.note.flag { border-color: #F3B4B4; background: var(--red-xs); }
.note.done { opacity: .72; }
.note .av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--blue-line); color: var(--blue); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 12px; }
.notehead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notetext { margin: 4px 0 6px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.noteadd { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.formfile { margin-top: 3px; color: var(--muted); }
.formfile .ic { vertical-align: -2px; }
.formfile .duewarn { color: var(--amber); font-weight: 700; }
.formacts { display: inline-flex; gap: 10px; margin-left: 10px; }
.formacts .linkbtn { font-size: 12px; color: var(--blue); }
.formacts .linkbtn:focus-visible { outline-color: var(--blue); }
.btn.wraps { white-space: normal; height: auto; min-height: 44px; text-align: left; line-height: 1.25; padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 720px) { .input.num { width: 84px; } }

/* Pay figures: a refused save points at the line whose figures do not add up, not at every field in the table. */
.field.bad .t .input.num { border-color: var(--line-2); box-shadow: none; }
.field.bad .t .input.num:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,54,191,.14); }
.field.bad .t tr.rowbad .input.num { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,45,45,.10); }

/* ============================================================================================================
   The complete platform: menus, the everyday home, time, time off, payroll, team, training, help, offboarding,
   compliance and settings.
   ============================================================================================================ */

/* ---- the menu: a longer list, and the Admin / My account switch ---- */
.nav { gap: 2px; padding-top: 10px; }
.nav a { padding: 8px 14px; gap: 11px; }
.nav .group { margin: 12px 14px 4px; }
.modesw { display: flex; gap: 4px; margin: 8px 14px 0; padding: 4px; border-radius: var(--pill); background: rgba(255,255,255,.14); }
.modesw button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: var(--pill); background: transparent; color: rgba(255,255,255,.92);
  font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.modesw button:hover { background: rgba(255,255,255,.14); }
.modesw button.on { background: #fff; color: var(--blue); }
.modesw .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 10.5px; letter-spacing: 0; display: inline-grid; place-items: center; }

/* ---- small shared pieces ---- */
.mb16 { margin-bottom: -2px; }
/* A line of explanation under a screen's last card (where finished offboarding checklists are kept). */
.afternote { margin: 14px 2px 0; }
.av.sm, .rowline .av.sm { width: 32px; height: 32px; font-size: 11.5px; }
.kudo .av, .wperson .av, .pcard .av, .request .av, .offcard .av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); border: 1px solid var(--blue-line); color: var(--blue); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 13px; }
.pcard .av.lg { width: 52px; height: 52px; font-size: 17px; }
button.asbtn { width: 100%; border-width: 0 0 1px; border-style: solid; border-color: var(--line); background: transparent; font: inherit; text-align: left; cursor: pointer; }
button.rowline.asbtn { padding-left: 0; padding-right: 0; }
button.rowline.asbtn:hover .nm { color: var(--blue); }
button.rowline.asbtn:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; border-radius: 6px; }
button.asbtn:last-child { border-bottom-width: 0; }
.todo-ic.amber { background: var(--amber-xs); color: var(--amber); border-color: #F0DC9A; }
.todo-ic.red { background: var(--red-xs); color: var(--red-dk); border-color: #F4C2C2; }
.todo-ic.green { background: var(--green-xs); color: var(--green-ink); border-color: #BFE7B0; }
.todo-main .nm .badge { margin-left: 8px; vertical-align: 1px; }
.listcard > .listnote { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.three .tile { padding: 14px 16px; box-shadow: none; }
.tiles.three .tile .v { font-size: 24px; }
.grid.tight { gap: 12px; }
.card .quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
a.tile { text-decoration: none; color: inherit; }
.tiles.today .tile .v { font-size: 28px; }
.tiles.today .tile .tiny { line-height: 1.4; }
.todaybox:empty, .jobbox:empty { display: none; }

/* ---- the everyday home ---- */
.homehero { align-items: center; }
.clockbox { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--off); }
.clockbox .nm { font-family: var(--font-h); font-weight: 500; font-size: 15.5px; color: var(--ink); }
.clockbox .ds { font-size: 13px; color: var(--muted); }
.clockbox .btn { flex: none; }
.clockbox .pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #B8BCCB; }
.clockbox.on .pulse { background: var(--green); animation: clockpulse 1.8s ease-out infinite; }
@keyframes clockpulse { 0% { box-shadow: 0 0 0 0 rgba(71,191,28,.55); } 100% { box-shadow: 0 0 0 12px rgba(71,191,28,0); } }
@media (prefers-reduced-motion: reduce) { .clockbox.on .pulse { animation: none; } }
.clockbox.inhero { min-width: 320px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); }
.clockbox.inhero .nm { color: #fff; }
.clockbox.inhero .ds { color: rgba(255,255,255,.88); }
.clockbox:not(.inhero) .btn.onblue { background: var(--surface); border-color: var(--blue); color: var(--blue); }
.clockbox:not(.inhero) .btn.onblue:hover { background: var(--tint); }
.clockcard { padding: 16px; }
.clockcard .clockbox { border: 0; background: transparent; padding: 4px 6px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 28px; }
.wnote { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 14px; }
.wnote h2 { margin-bottom: 8px; }
.wnote p { font-size: 16px; color: var(--ink); max-width: 760px; }
.wpeople { display: flex; flex-direction: column; gap: 12px; }
.wperson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.wperson .nm { font-weight: 700; color: var(--ink); }
.wweek .label { margin-bottom: 8px; }

/* ---- news and shout-outs ---- */
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed.wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kudo { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.feed.wide .kudo { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; }
.kudo.mine { border-color: #BFE7B0; background: var(--green-xs); }
.kudo p { margin: 4px 0 8px; color: var(--ink); overflow-wrap: anywhere; }
.kudohead b { color: var(--ink); }
.cheer { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--surface); color: var(--muted); font: 700 12px var(--font-b); cursor: pointer; }
.cheer:hover { border-color: var(--blue-lt); color: var(--blue); }
.cheer.on { border-color: var(--blue); background: var(--tint); color: var(--blue); }
.cheer:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
.newslist { display: flex; flex-direction: column; gap: 14px; }
.newsitem { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.newsitem.pin { border-color: var(--blue-line); }
.newsitem p { margin: 0; color: var(--text); max-width: 760px; }
.newsitem .btn { align-self: flex-start; margin-top: 4px; }
.card .newslist .newsitem { box-shadow: none; padding: 16px 18px; border-radius: var(--r-sm); background: var(--off); }
.newsadmin { display: flex; flex-direction: column; gap: 8px; }
.newsadmin p { margin: 0; }
.ackline { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; align-items: center; padding-top: 6px; }
.ackline .tiny { grid-column: 1 / -1; }
.values .label { margin-bottom: 10px; }
.valuegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.valuegrid b { color: var(--ink); }
.valuepick { display: flex; flex-direction: column; gap: 6px; }
.valuepick .feat input { margin-top: 3px; }
.teamgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.teamgrid.one { grid-template-columns: minmax(0, 1fr); }
.teamgrid > div:first-child { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dirbar .search { max-width: 460px; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pcard { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.pcard.me { border-color: var(--blue-line); background: var(--tint); }
.pcard .nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-h); font-weight: 500; font-size: 16px; color: var(--ink); }

/* ---- time ---- */
.weekcard > .head h2 .small { font-family: var(--font-b); font-weight: 400; }
table.t.timesheet td { vertical-align: top; }
table.t.timesheet tfoot td { background: var(--off); border-top: 1px solid var(--line); }
table.t.timesheet tr.future td { color: var(--faint); background: var(--off); }
table.t.timesheet .badge { margin-top: 4px; }
.weekfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--off); border-radius: 0 0 var(--r) var(--r); }
.weekcell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 132px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.weekcell:hover { border-color: var(--blue-lt); }
.weekcell:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
.weekcell.submitted { border-color: #F0DC9A; background: var(--amber-xs); }
.weekcell.returned { border-color: #F4C2C2; background: var(--red-xs); }
.weekcell .hh { font-family: var(--font-h); font-weight: 500; font-size: 17px; color: var(--ink); }
.cellbtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: var(--pill); }
.cellbtn:hover .badge { box-shadow: 0 0 0 2px var(--blue-line); }
.cellbtn:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
table.t td.coursecol, table.t th.coursecol { min-width: 150px; }
table.t th.coursecol { white-space: normal; }

/* ---- time off ---- */
.baltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile.bal { display: flex; flex-direction: column; gap: 6px; }
.tile.bal .k { margin-top: 0; }
.tile.bal .k svg { color: var(--blue); }
.tile.bal .v { font-size: 34px; }
.tile.bal .unit { font-family: var(--font-b); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.card .baltiles .tile { box-shadow: none; background: var(--off); }
.request .row.top { gap: 14px; }
.reqline { margin-top: 6px; color: var(--ink); }

/* ---- payroll ---- */
.runsteps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.runsteps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.runsteps li .grow { display: flex; flex-direction: column; min-width: 0; }
.runsteps li b { font-family: var(--font-h); font-weight: 500; color: var(--muted); }
.runsteps .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--off); border: 1.5px solid var(--line-2); color: var(--muted); font-family: var(--font-h); font-weight: 700; font-size: 13px; }
.runsteps li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.runsteps li.done b { color: var(--ink); }
.runsteps li.now { border-color: var(--blue); background: var(--tint); }
.runsteps li.now .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.runsteps li.now b { color: var(--ink); }
.runcard { display: flex; flex-direction: column; gap: 16px; }
.runtitle { font-size: 24px; letter-spacing: -.5px; margin-top: 4px; }
.runtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.runtiles .tile { padding: 14px 16px; box-shadow: none; background: var(--off); }
.runtiles .tile .v { font-size: 24px; }
.runacts { padding-top: 4px; }
.extra { display: flex; align-items: center; gap: 8px; max-width: 520px; margin-top: 6px; padding: 5px 6px 5px 10px; border: 1px dashed var(--blue-line); border-radius: var(--r-xs); background: var(--tint); font-size: 13px; }
.extra > svg { color: var(--blue); flex: none; }
.extra b { color: var(--ink); white-space: nowrap; }
.extra .btn.icon.sm { width: 26px; height: 26px; }
table.t.filetable td, table.t.filetable th { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- training, benefits, help ---- */
.course { border-left: 5px solid var(--blue-line); }
.course.late { border-left-color: var(--red); }
.course.soon { border-left-color: #E8A53B; }
.course.done { border-left-color: var(--green); }
.benefit .cardtitle { align-items: flex-start; }
.benefit .btn { margin-top: 14px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px; }
.msg { align-self: flex-start; max-width: 88%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--off); }
.msg.hr { border-color: var(--blue-line); background: var(--tint); }
.msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.msg p { margin: 2px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.faqs { display: flex; flex-direction: column; }
.faq { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq summary:hover { color: var(--blue); }
.faq p { margin: 8px 0 0; color: var(--text); }

/* ---- offboarding, the person page, reports ---- */
.offcard > .head { gap: 14px; }
.offnote { margin: 0; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--off); }
.offcard .todo-main .ds + .ds { color: var(--faint); font-size: 12px; }
.equipadd { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); align-items: flex-start; }
.equipadd .btn { margin-top: 4px; }
.bars { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.bars .bar { display: grid; grid-template-columns: minmax(90px, 170px) 1fr 28px; gap: 10px; align-items: center; font-size: 13.5px; }
.bars .bar .nm { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bar .track { height: 10px; border-radius: var(--pill); background: var(--tint); overflow: hidden; }
.bars .bar .track i { display: block; height: 100%; border-radius: var(--pill); background: var(--blue-lt); }
.bars .bar b { text-align: right; color: var(--ink); }

/* ---- settings ---- */
.setwrap { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; }
.setside { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 12px; }
.setside .search { flex: none; max-width: none; }
.setpick { display: none; }
.setnav { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.setgroup { margin: 10px 10px 4px; font-family: var(--font-h); font-weight: 700; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.setgroup:first-child { margin-top: 4px; }
.setlink { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); font: 700 14px var(--font-b); text-align: left; cursor: pointer; }
.setlink svg { color: var(--faint); flex: none; }
.setlink:hover { background: var(--off); color: var(--blue); }
.setlink.on { background: var(--tint); color: var(--blue); }
.setlink.on svg { color: var(--blue); }
.setlink:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 1px; }
.setpane { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sethead { display: flex; align-items: flex-start; gap: 14px; }
.sethead h2 { font-size: 22px; }
.sethead p { margin-top: 2px; }
.setfields { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.setfields > .field > .input:not(.short):not(textarea) { max-width: 520px; }
.setfields > .banner { max-width: 760px; }
.setrow, .setrow.field { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
.setfields > .setrow { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.setrow .switch, .setrow .btn { flex: none; }
.setrow.field.bad { border-color: var(--red); }
.fixedval { display: inline-flex; align-items: center; gap: 6px; max-width: 46%; padding: 4px 10px; border-radius: var(--r-xs); background: #ECEEF5; color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
.fixedval svg { flex: none; }
/* A fixed value that is longer than its row, such as an email address, may break inside a word rather than push the row wider. */
.fixedval { overflow-wrap: break-word; }
.setsave { position: sticky; bottom: 78px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 28px rgba(10,20,80,.12); }
/* The words take the room that is left and wrap inside it, so the buttons stay on the same line. */
.setsave .say { flex: 1 1 240px; min-width: 0; }
.setsave.dirty { border-color: #F0DC9A; background: var(--amber-xs); }
.setsave.dirty .say { color: var(--amber); font-weight: 700; }
.spot { animation: spot 2.6s ease-out 1; border-radius: var(--r-sm); }
@keyframes spot { 0%, 60% { box-shadow: 0 0 0 4px rgba(232,165,59,.55); } 100% { box-shadow: 0 0 0 4px rgba(232,165,59,0); } }
.evcard > .head { flex-wrap: wrap; row-gap: 4px; }
.evlist { display: flex; flex-direction: column; }
.evrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.evrow:last-child { border-bottom: 0; }
.evhead { padding-top: 10px; padding-bottom: 10px; background: var(--off); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.evhead span + span, .evcell { text-align: center; justify-self: center; }
.evgroup { padding: 14px 22px 6px; font-family: var(--font-h); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.evcell .fixedval { max-width: none; }
.evcard.mailoff .evrow .evcell[data-label="Email"] { opacity: .45; }
.conn { display: flex; flex-direction: column; gap: 10px; }
.conn .cardtitle { margin-bottom: 0; align-items: center; }
.conn .btn { align-self: flex-start; margin-top: auto; }
.conn > .row.wrap { margin-top: auto; } .conn > .row.wrap .btn { margin-top: 0; }
.conn .banner { margin: 0; }
.modal .input[readonly] { background: var(--off); color: var(--muted); }
.modal .field[data-key="test"]:has(> .err.hidden) { display: none; }
details.steps { font-size: 13.5px; color: var(--muted); } details.steps summary { cursor: pointer; font-weight: 700; color: var(--blue); } details.steps ol { margin: 8px 0 0; padding-left: 20px; } details.steps li { margin-bottom: 4px; }
@media (max-width: 600px) { .modal .seg { display: flex; flex-direction: column; align-self: stretch; border-radius: var(--r-sm); } .modal .seg button { justify-content: center; border-radius: var(--r-xs); } }
.mailprev { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }

@media (max-width: 1240px) {
  .runsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .runtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teamgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .setwrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .setside { position: static; }
  .setnav { display: none; }
  .setpick { display: block; }
  .feed.wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .clockbox { flex-wrap: wrap; }
  .clockbox.inhero { min-width: 0; width: 100%; }
  .clockbox .btn { width: 100%; }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .valuegrid, .baltiles, .tiles.three { grid-template-columns: minmax(0, 1fr); }
  .runsteps { grid-template-columns: minmax(0, 1fr); }
  .runsteps li { padding: 8px 12px; }
  .runtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runacts .btn { width: 100%; }
  .weekfoot { padding: 14px 16px; }
  .weekfoot .btn { width: 100%; }
  .weekcell { min-width: 0; flex-direction: row; align-items: center; gap: 10px; }
  .dir { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 100%; }
  .newsitem { padding: 16px; }
  .setrow, .setrow.field { align-items: flex-start; }
  .fixedval { max-width: 50%; min-width: 0; overflow-wrap: anywhere; }
  /* A row that ends in a long fixed value or a button stacks: the words on top, the value or button under them. */
  .setrow:has(> .fixedval), .setrow:has(> .btn) { flex-direction: column; align-items: stretch; gap: 10px; }
  .setrow > .fixedval { max-width: 100%; align-self: flex-start; text-align: left; }
  .setrow > .btn { width: 100%; }
  .setsave { bottom: 64px; padding: 10px 12px; gap: 8px; }
  .setsave .btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; }
  /* On a phone the bar keeps to one line until there is something to save. */
  .setsave:not(.dirty) .say { display: none; }
  .evhead { display: none; }
  .evrow { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px 16px; row-gap: 8px; }
  .evrow > .grow { grid-column: 1 / -1; }
  .evcell { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
  .evcell::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
  .evgroup { padding-left: 16px; padding-right: 16px; }
  .offnote { padding: 12px 16px; }
  .ackline { grid-template-columns: 1fr; }
  .bars .bar { grid-template-columns: minmax(80px, 120px) 1fr 24px; }
}

/* ---- the menu on a short screen: it scrolls inside itself, and says so ---- */
.nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.45) transparent; }
.nav.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%); }
.nav a { padding: 7px 14px; }
.nav .group { margin: 10px 14px 3px; }
.merow { display: flex; align-items: center; gap: 6px; }
.merow .me { flex: 1 1 auto; min-width: 0; }
.iconbtn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.iconbtn:hover { background: #fff; border-color: #fff; color: var(--blue); }
.side .foot { padding: 12px 14px; gap: 8px; }
.setside { max-height: calc(100vh - 118px); }
.setnav { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.setlink { padding: 7px 10px; }
@media (max-width: 980px) { .setside { max-height: none; } }

@media (max-width: 700px) { .todo-side.chev { display: none; } }

/* Version 2.6.0: the line in the Add a person footer that says what the invitation still needs. It takes the room on
   the left and wraps there, so the buttons stay together on the right. */
.modal > footer .footnote { flex: 1 1 240px; min-width: 0; line-height: 1.4; }
.modal > footer .footnote:empty { display: none; }

/* ---------- version 2.7.0: pay stubs the portal works out ---------- */
.stubbasis { padding: 14px 16px; border-radius: var(--r-sm); background: var(--off); border: 1px solid var(--line); }
.stubbasis dl.kv { grid-template-columns: 110px 1fr; margin-top: 6px; font-size: 13px; }
/* (version 2.8.0) a year-end form: where its figures come from, and how its person gets it */
/* The lists on a year-end form (box 12, box 14a, the states, the localities): a small table of fields. */
.yegrid { display: grid; gap: 8px 10px; align-items: center; }
.yegrid .input, .yegrid .input.num, .yegrid .input.short { width: 100%; max-width: none; min-width: 0; }
.yegrid .gh { font-size: 12px; font-weight: 700; color: var(--muted); }
.yegrid.g12 { grid-template-columns: 150px 150px; }
.yegrid.g14 { grid-template-columns: minmax(0, 320px) 150px; }
.yegrid.gst { grid-template-columns: 130px minmax(0, 1fr) 150px 150px; }
.yegrid.glo { grid-template-columns: minmax(0, 1fr) 150px 150px; }
@media (max-width: 640px) {
  .yegrid.gst, .yegrid.glo { grid-template-columns: 1fr 1fr; }
  .yegrid.gst .gh, .yegrid.glo .gh { display: none; }
  .yegrid.glo .wide { grid-column: 1 / -1; }
  .yegrid.g12, .yegrid.g14 { grid-template-columns: minmax(0, 1fr) 120px; }
}
/* Rows straight inside a list card (the tax forms on a Pay page) keep the card's own margins. */
.listcard > .rows.inlist { padding: 14px 22px 16px; }
@media (max-width: 640px) { .listcard > .rows.inlist { padding: 12px 16px 14px; } }
.yearbox { padding: 14px 16px; border-radius: var(--r-sm); background: var(--off); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.yearbox h3 { margin: 0; }
.yearbox dl.kv { grid-template-columns: 240px 1fr; font-size: 13.5px; }
@media (max-width: 640px) { .yearbox dl.kv { grid-template-columns: 1fr; } }
.statement .tablewrap { overflow-x: auto; }
.tiny.bad { color: var(--red-dk); }
ul.notes.small { font-size: 13px; color: var(--muted); padding-left: 18px; list-style: disc; gap: 4px; margin-top: 10px; }
@media (max-width: 640px) { .stubbasis dl.kv { grid-template-columns: 1fr; } }

/* ---------- the real portal: the page before sign-in (one centered column) ---------- */
.spark.s1 { width: 120px; height: 120px; left: auto; right: 11%; top: 64px; opacity: .75; }
.spark.s2 { width: 84px; height: 84px; left: 5%; bottom: 170px; opacity: .6; }
.spark.s3 { width: 110px; height: 110px; right: 4%; bottom: 190px; opacity: .55; }
.auth.wide .spark.s1 { width: 120px; height: 120px; left: auto; right: 11%; top: 64px; }
.auth-col { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 500px; margin: 0 auto; padding: 36px 20px 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.auth.wide .auth-col { max-width: 820px; justify-content: flex-start; padding-top: 40px; }
.auth-top { position: static; width: auto; max-width: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.auth-top img { width: 210px; height: auto; display: block; }
.auth-top .name { font-size: 24px; text-align: center; }
.auth .box, .auth.wide .box { width: 100%; max-width: none; }
@media (max-width: 900px) {
  .auth-top { padding: 0; }
}
@media (max-width: 700px) {
  .auth-col { padding: 26px 16px 140px; gap: 22px; justify-content: flex-start; }
  .auth-top img { width: 180px; }
  .spark.s1 { right: -30px; top: 10px; width: 110px; height: 110px; opacity: .6; } .spark.s2, .spark.s3 { display: none; }
}
@media print {
  .auth-col { display: block; padding: 0; max-width: none; }
}

/* ---------- the real portal: sign-in ---------- */
.btn.ms { height: 52px; width: 100%; gap: 12px; background: #fff; border-color: var(--line-2); color: var(--ink); font-size: 14px; text-transform: none; letter-spacing: 0; }
.btn.ms:hover { background: var(--tint); border-color: var(--blue); }
.btn.ms .mslogo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.btn.ms .mslogo i { width: 9px; height: 9px; display: block; }
.btn.ms .mslogo i:nth-child(1) { background: #F25022; } .btn.ms .mslogo i:nth-child(2) { background: #7FBA00; }
.btn.ms .mslogo i:nth-child(3) { background: #00A4EF; } .btn.ms .mslogo i:nth-child(4) { background: #FFB900; }
.auth .or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--faint); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.auth .or::before, .auth .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth details.other > summary { cursor: pointer; font-weight: 700; color: var(--blue); list-style: none; text-align: center; padding: 6px; border-radius: var(--r-xs); }
.auth details.other > summary::-webkit-details-marker { display: none; }
.auth details.other > summary:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; }
.auth details.other[open] > summary { margin-bottom: 14px; }
.auth .who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-sm); background: var(--tint); border: 1px solid var(--blue-line); }
.auth .who .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-h); font-weight: 700; }
.auth .who .nm { font-weight: 700; color: var(--ink); } .auth .who .em { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pwrow { position: relative; } .pwrow .input { padding-right: 46px; }
.pwrow .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pwrow .peek:hover { background: var(--tint); color: var(--blue); }
.pwrow .peek:focus-visible { outline: 3px solid rgba(74,100,228,.5); }

/* ---------- uploads ---------- */
.upbox { display: flex; flex-direction: column; gap: 10px; }
.upbox .drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1.5px dashed var(--blue-line); border-radius: var(--r-sm); background: var(--off); }
.upbox .drop.over { border-color: var(--blue); background: var(--tint); }
.upbox .drop .say { flex: 1 1 200px; min-width: 0; font-size: 13.5px; color: var(--muted); }
.upbox input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upbox .file .bar { height: 4px; margin-top: 6px; border-radius: var(--pill); background: #E1E5F6; overflow: hidden; }
.upbox .file .bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.upbox .file.bad { border-color: #F4C2C2; background: var(--red-xs); }
.upbox .file.bad .tiny { color: var(--red-dk); }

/* ---------- looking at a file ---------- */
.viewer { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.viewer .pic { display: grid; place-items: center; min-height: 200px; max-height: 70vh; overflow: auto; border-radius: var(--r-sm); background: #11152A; }
.viewer .pic img { display: block; max-width: 100%; height: auto; }
.viewer .pic.zoom img { max-width: none; }
.viewer .filecard { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off); }
.viewer .filecard .big { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--blue); border: 1px solid var(--blue-line); }

/* ---------- the vault, set up and unlocked ---------- */
.recovery { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 17px; line-height: 1.9; letter-spacing: .06em; padding: 16px 18px; border-radius: var(--r-sm); background: var(--tint); border: 1px dashed var(--blue-line); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.setupnote { display: flex; align-items: center; gap: 12px; }
.badge.starting { background: var(--amber-xs); color: var(--amber); }
.mailstate { display: inline-flex; align-items: center; gap: 6px; }
.idlebar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; }
.placeholders code { padding: 2px 8px; border-radius: var(--pill); background: var(--tint); border: 1px solid var(--blue-line); font-size: 12.5px; color: var(--blue-dk); }
textarea.input.doc { min-height: 260px; line-height: 1.55; }
.installer h2 { font-size: 18px; margin-bottom: 2px; }
.installer .copyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.installer .copyline .keybox { flex: 1 1 260px; min-width: 0; }
@media (max-width: 700px) {
  .viewer .filecard { flex-wrap: wrap; }
  .recovery { font-size: 15px; }
}
@media print {
  .printonly-hide { display: none !important; }
}

/* ---- pieces the real portal adds to the preview's screens ---- */
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.linklike:focus-visible { outline: 3px solid rgba(74,100,228,.5); outline-offset: 2px; border-radius: 3px; }
.mb8 { margin-bottom: 8px; }
.pad8 { padding: 12px 16px; gap: 12px; align-items: center; justify-content: center; }
.copyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copyline .keybox { flex: 1 1 260px; min-width: 0; }
.keybox.small { font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }
.brkall { word-break: break-all; }
/* a pay period's timesheet: a heading line for each workweek, since overtime is counted by the week */
table.t.timesheet tr.weekrow td { background: var(--tint); border-top: 1px solid var(--blue-line); border-bottom: 1px solid var(--blue-line); padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
table.t.timesheet tr.weekrow .strong { color: var(--ink); font-weight: 700; }
/* the vault button asks for attention while pay documents wait to be locked again for their owners */
.vaultchip.nudge { box-shadow: 0 0 0 2px #F0DC9A inset; }
.formacts a.linkbtn { font-size: 12px; color: var(--blue); text-decoration: underline; }
.formacts { display: inline-flex; gap: 10px; margin-left: 8px; flex-wrap: wrap; }
.rowbad td { background: #FDF1F1; }

.weekcard .head h2 .small { margin-left: 8px; font-weight: 400; font-family: var(--font-b, inherit); letter-spacing: 0; }

/* ---------- "Trust this device for 30 days", beside the code at sign-in ---------- */
.trustbox { border: 1px solid var(--blue-line); border-radius: var(--r-sm); background: var(--tint); padding: 10px 12px; }
.trustbox label.check { font-weight: 700; color: var(--ink); }
.trustbox .tiny { margin: 6px 0 0; line-height: 1.45; }
/* Settings, Admins: room for a name and an address beside the role and the areas */
table.t td.admincol { min-width: 190px; }

/* ---------- choosing several people in order: who someone reports to (version 2.3.0) ---------- */
.peoplepick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.peoplepick .picked { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.peoplepick .pickedone { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.peoplepick .pickedone:last-child { border-bottom: 0; }
.peoplepick .pickedone .grow { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.peoplepick .pickedone .nm { font-weight: 700; color: var(--ink); }
.peoplepick .pickedone .pos::before { content: ' · '; white-space: pre; }
@media (max-width: 600px) { .peoplepick .pickedone .pos { display: block; } .peoplepick .pickedone .pos::before { content: none; } }
.peoplepick .pickedone .btn { flex: none; }
.peoplepick .pickednote { color: #7A4B00; background: #FFF6E0; border: 1px solid #F0DC9A; border-radius: var(--r-sm); padding: 8px 10px; }
/* how someone is paid: the amount with its unit beside it */
.payrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payrow .money { position: relative; flex: 0 1 170px; min-width: 120px; }
.payrow .money .input { padding-left: 26px; }
.payrow .money::before { content: '$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.payrow select.input { flex: 0 1 170px; width: auto; min-width: 130px; }
.payrow .unit { color: var(--muted); font-size: 14px; white-space: nowrap; }
/* Add person, an unticked checklist item: the optional reason, and a caution on the few items asked of everyone. */
.pickoff { display: flex; flex-direction: column; gap: 8px; }
.picknote { color: var(--amber); font-size: 12.5px; line-height: 1.45; }
/* Request documents: the company's list of names, two to a line where there is room. */
.checkpick.doclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.checkpick.doclist .pick { padding: 8px 12px; }
@media (max-width: 640px) { .checkpick.doclist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the Activity screen: narrowing the log to look into something (version 2.5.0) ---------- */
.toolbar.filters .search { flex: 1 1 100%; max-width: none; }
.toolbar .inlinefield { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; }
.toolbar .inlinefield .input { height: 42px; width: auto; min-width: 0; max-width: 200px; }
.toolbar .inlinefield .input.short { max-width: 158px; }
.toolbar .inlinefield .tiny { white-space: nowrap; }
@media (max-width: 640px) { .toolbar .inlinefield { flex: 1 1 100%; } .toolbar .inlinefield .input, .toolbar .inlinefield .input.short { flex: 1 1 auto; max-width: none; } }
