[hidden] { display: none !important; }
:root {
  --bg: #ffffff; --bg2: #f7f7f8; --ink: #0d0d0d; --ink2: #3c3c43; --mute: #6e6e73; --line: #e8e8ea; --card: #ffffff;
  --pay: #12a150; --pay-bg: #e8f7ee; --bad: #d93a3a; --gold: #e2b43c; --pill: #0d0d0d; --pill-ink: #ffffff;
  --r: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f10; --bg2: #161618; --ink: #f4f4f5; --ink2: #d4d4d8; --mute: #9b9ba1; --line: #26262a; --card: #18181b;
    --pay: #3ddc84; --pay-bg: #12301f; --pill: #f4f4f5; --pill-ink: #0d0d0d; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.logo svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--mute); padding: 6px 10px; border-radius: 999px; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--bg2); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .12s ease, background .15s ease, opacity .15s; }
.btn:hover { background: var(--bg2); }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.btn.dark:hover { opacity: .88; }
.btn.big { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; cursor: pointer; }
.ca b { font-weight: 700; }
.ca .mono { color: var(--mute); }
.ca:hover { background: var(--bg2); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .top .ca .mono { display: none; } .top .btn { padding: 0 14px; } }

/* hero: the office, edge to edge */
.hero { position: relative; height: calc(100svh - 62px); min-height: 560px; background: #e9edf2; overflow: hidden; }
.hero .stage { position: absolute; inset: 0; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.office-labels { position: absolute; inset: 0; pointer-events: none; }
.olabel { position: absolute; width: max-content; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(255,255,255,.95); color: #111; font: 600 11px/1.2 var(--font); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08); white-space: nowrap; cursor: pointer; }
.olabel b { font-weight: 800; }
.olabel .t { color: #6e6e73; font-weight: 600; }
.olabel .t.w8, .olabel .t.w16, .olabel .t.w32 { color: #0f7a3d; }
.olabel .star { font-style: normal; color: var(--gold); font-size: 13px; }
.olabel.intern { background: rgba(255,255,255,.7); color: #6e6e73; box-shadow: none; }
.olabel.boss { background: #111; color: #fff; padding: 4px 10px; font-size: 12px; }
.olabel.boss span, .olabel.dog span { color: #e2b43c; font-weight: 600; }
.olabel.dog { background: #111; color: #fff; }
.hero-copy { position: absolute; left: 20px; top: 20px; max-width: 420px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.93); color: #0d0d0d; box-shadow: var(--shadow); }
.hero-copy h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.hero-copy p { margin: 0 0 12px; color: #3c3c43; font-size: 14px; line-height: 1.45; }
.hero-copy .row { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-copy .btn { height: 38px; border-color: #e5e5e5; background: #fff; color: #0d0d0d; }
.hero-copy .btn.dark { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.payday { position: absolute; right: 20px; top: 20px; display: flex; gap: 22px; align-items: flex-end; padding: 12px 18px 16px; border-radius: 16px; background: rgba(255,255,255,.93); color: #0d0d0d; box-shadow: var(--shadow); overflow: hidden; }
.payday .k { font-size: 11.5px; color: #6e6e73; white-space: nowrap; }
.payday .clock { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.payday .v { font-size: 17px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.payday .pot { color: #12a150; }
.payday .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; }
.bar { height: 6px; border-radius: 99px; background: #ececee; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #12a150; border-radius: 99px; transition: width .9s linear; }
.floors { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.floors button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 650; font-size: 13px; color: #6e6e73; cursor: pointer; white-space: nowrap; }
.floors button.on { background: #0d0d0d; color: #fff; }
.floors .lbl { align-self: center; padding: 0 6px 0 10px; font-size: 12px; color: #6e6e73; }
.hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(13,13,13,.72); color: #fff; font-size: 12.5px; pointer-events: none; white-space: nowrap; transition: opacity .4s; }
.tip { position: fixed; z-index: 40; pointer-events: none; width: 250px; padding: 12px; border-radius: 14px; background: #fff; color: #0d0d0d; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: none; font-size: 13px; }
.tip .h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tip img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.tip .nm { font-weight: 700; line-height: 1.2; }
.tip .sub { color: #6e6e73; font-size: 12px; }
.tip dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.tip dt { color: #6e6e73; }
.tip dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 1100px) { .payday .hide-s { display: none; } }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
  .hero .stage { position: relative; order: 1; height: 66svh; min-height: 420px; background: #e9edf2; }
  .hero-copy { position: static; order: 0; max-width: none; margin: 14px 16px 12px; box-shadow: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
  .hero-copy p { color: var(--ink2); }
  .hero-copy .btn { background: var(--card); color: var(--ink); border-color: var(--line); }
  .hero-copy .btn.dark { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
  .payday { position: relative; left: auto; right: auto; top: auto; order: 2; margin: 12px 16px 0; justify-content: space-between; padding: 10px 14px 13px; box-shadow: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
  .payday .k { color: var(--mute); }
  .floors { left: 12px; top: 12px; bottom: auto; }
  .hero .floors { position: absolute; }
  .hint { display: none; }
  .olabel { font-size: 10px; padding: 2px 6px 2px 5px; }
  .olabel .t { display: none; }
  .olabel.intern, .olabel.minor { display: none; }
}
.hero-copy, .payday, .floors, .hint { z-index: 3; }

/* sections */
section { padding: 72px 0 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
.lede { margin: 6px 0 0; color: var(--mute); max-width: 620px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.search { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink); width: 200px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }

.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.trow { display: grid; grid-template-columns: 44px minmax(220px, 2.4fr) 1.3fr 1fr 1fr 1fr 1fr; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.trow:first-child { border-top: 0; }
.trow.head { font-size: 12.5px; color: var(--mute); background: var(--bg2); padding-top: 9px; padding-bottom: 9px; }
a.trow:hover { background: var(--bg2); }
.trow .r { text-align: right; }
.rank { color: var(--mute); font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who img { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--bg2); }
.who .nm, .who .sub { display: block; }
.who .nm { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .sub { font-size: 12.5px; color: var(--mute); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip.paid { background: var(--pay-bg); color: var(--pay); }
.chip.intern { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.chip.top { background: color-mix(in srgb, var(--gold) 22%, transparent); color: #8a6200; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.top { color: var(--gold); } }
.payamt { color: var(--pay); font-weight: 700; }
.zero { color: var(--mute); }
.empty { padding: 40px 16px; text-align: center; color: var(--mute); }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .trow { grid-template-columns: 28px 1fr auto; row-gap: 2px; }
  .trow .c-mc, .trow .c-avg, .trow .c-life { display: none; }
  .trow .c-title { grid-column: 2; grid-row: 2; }
  .trow .c-est { grid-column: 3; grid-row: 1 / span 2; }
  .trow.head .c-title { display: none; }
  .search { width: 100%; }
  .tools { width: 100%; }
}

/* grades + how */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 22px; }
.card h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.card .lede { margin: 0 0 16px; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.rung { display: grid; grid-template-columns: 1fr 110px 140px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.rung b { font-weight: 700; }
.rung .mc { color: var(--mute); }
.rung .sh { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.rung .sh i { width: 6px; height: 14px; border-radius: 2px; background: var(--pay); display: block; }
.rung .sh em { font-style: normal; font-weight: 700; margin-left: 6px; color: var(--pay); min-width: 22px; text-align: right; }
.rung.unpaid .sh em { color: var(--bad); }
@media (max-width: 520px) { .rung { grid-template-columns: 1fr auto; } .rung .sh i { display: none; } .rung .mc { text-align: right; } .rung .sh { grid-column: 1 / -1; justify-content: flex-start; } .rung .sh em { margin-left: 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps .n { width: 36px; height: 36px; border-radius: 10px; background: var(--pill); color: var(--pill-ink); display: grid; place-items: center; font-weight: 800; }
.steps div > b { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--mute); font-size: 14px; }
.fine { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

/* payroll history */
.pays { display: flex; flex-direction: column; gap: 10px; }
.pay { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.pay summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 24px; gap: 12px; align-items: center; padding: 14px 16px; }
.pay summary::-webkit-details-marker { display: none; }
.pay summary .k { font-size: 12px; color: var(--mute); display: block; }
.pay summary b { font-weight: 700; }
.pay summary .chev { color: var(--mute); transition: transform .15s; }
.pay[open] summary .chev { transform: rotate(90deg); }
.slips { border-top: 1px solid var(--line); }
.slip { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; padding: 9px 16px; font-size: 14px; border-top: 1px solid var(--line); align-items: center; }
.slip:first-child { border-top: 0; }
.slip a { text-decoration: none; }
.slip a:hover { text-decoration: underline; }
.slip .tx { color: var(--mute); font-size: 12.5px; }
@media (max-width: 640px) { .pay summary { grid-template-columns: 1fr 1fr 24px; } .pay summary .c3, .pay summary .c4 { display: none; } .slip { grid-template-columns: 1fr auto; } .slip .c-title, .slip .tx { display: none; } }

footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--mute); }

/* hire dialog */
dialog.hire { border: 0; padding: 0; border-radius: 22px; width: min(460px, calc(100vw - 24px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.hire::backdrop { background: rgba(10,10,12,.5); backdrop-filter: blur(3px); }
.hire .in { padding: 24px; }
.hire .x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--bg2); cursor: pointer; font-size: 18px; line-height: 1; }
.hire h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.hire p { margin: 0 0 16px; color: var(--mute); font-size: 14.5px; }
.hire .wallets { display: flex; flex-direction: column; gap: 8px; }
.hire .wallets .btn { justify-content: space-between; height: 48px; border-radius: 12px; }
.hire .badge { display: block; width: 100%; max-width: 280px; margin: 0 auto 16px; border-radius: 16px; aspect-ratio: 1; background: var(--bg2); }
.hire .offer { text-align: center; }
.hire .offer h3 { font-size: 24px; }
.hire label.fld { display: block; text-align: left; font-size: 13px; color: var(--mute); margin: 4px 0 6px; }
.hire .buy { display: flex; gap: 6px; margin-bottom: 14px; }
.hire .buy input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 12px; font: inherit; }
.hire .buy button { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-weight: 600; font-size: 13px; }
.hire .terms { text-align: left; font-size: 13px; color: var(--mute); background: var(--bg2); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.hire .terms li { margin: 2px 0; }
.hire .terms ul { margin: 0; padding-left: 18px; }
.hire .full { width: 100%; }
.hire .err { color: var(--bad); font-size: 13.5px; margin-top: 10px; min-height: 1em; }
.hire .progress { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.hire .progress li { display: flex; gap: 10px; align-items: center; color: var(--mute); }
.hire .progress li.on { color: var(--ink); font-weight: 600; }
.hire .progress li.done { color: var(--pay); }
.hire .progress li i { width: 18px; height: 18px; border-radius: 99px; border: 2px solid currentColor; flex: none; }
.hire .progress li.on i { border-right-color: transparent; animation: spin .8s linear infinite; }
.hire .progress li.done i { background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--pill); color: var(--pill-ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: .2s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* employee page */
.emp { display: grid; grid-template-columns: 360px 1fr; gap: 32px; padding-top: 40px; align-items: start; }
@media (max-width: 860px) { .emp { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; } }
.emp .pic { width: 100%; border-radius: 22px; aspect-ratio: 1; background: var(--bg2); display: block; }
.emp h1 { margin: 0; font-size: 40px; letter-spacing: -0.035em; line-height: 1.05; }
.emp .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.stat .k { font-size: 12.5px; color: var(--mute); }
.stat .v { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .emp h1 { font-size: 32px; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.promo { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); margin-bottom: 18px; }
.promo .bar { background: var(--line); margin: 10px 0 6px; height: 8px; }
.promo .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }

.hire input.tweet { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 12px; font: inherit; font-size: 14px; margin-bottom: 12px; }
.tweetbox { margin-top: 18px; }
.tweetbox .k { font-size: 12.5px; color: var(--mute); margin-bottom: 6px; }
.tweetbox a.fallback { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; }
.tweetbox .twitter-tweet { margin: 0 !important; }
.tweetbox blockquote.twitter-tweet { margin: 0; padding: 0; border: 0; }
