/* Yell admin. Layout and type follow the Brainwave app: pure black, hairlines, light two-tone headings,
   white pill buttons. Yell yellow is kept for small accents only (badges, active marker, highlights). */
:root {
  --bg: #000;
  --panel: #000;
  --card: #0b0b0b;
  --card-2: #111;
  --raise: #1a1a1a;
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.2);
  --fg: #fff;
  --fg-2: rgb(255 255 255 / 0.62);
  --fg-3: rgb(255 255 255 / 0.4);
  --yellow: #ffd100;
  --green: #34d27b;
  --red: #ff5a5a;
  --r: 16px;
  --display: Geist, Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
::selection { background: var(--yellow); color: #000; }
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.4vw, 64px); letter-spacing: -0.05em; line-height: 1.02; margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.03em; margin: 0 0 16px; }
h3 { margin: 0 0 12px; }
.dim { color: rgb(255 255 255 / 0.45); }
.cap { text-transform: capitalize; font-size: 15px; }
.muted { color: var(--fg-2); }
.sm { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.ico { flex: none; display: block; }
.eyebrow { color: var(--fg-2); font-size: 14px; margin-bottom: 10px; }

/* form controls */
input, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line-2); color: var(--fg);
  border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 14.5px; outline: none; transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--fg-3); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: rgb(255 255 255 / 0.55); background-color: var(--card-2); }
.row input { width: auto; }
.row.wrap input { flex: 1; min-width: 180px; }
textarea.raw { min-height: 60vh; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; margin-bottom: 12px; }

/* buttons: white pill primary, outline pill secondary (Brainwave "New chat" / "Invite team") */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #fff;
  background: #fff; color: #000; border-radius: 999px; height: 44px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), opacity 0.2s; white-space: nowrap;
}
.btn:hover { background: #e9e9e9; color: #000; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn.big { height: 50px; padding: 0 28px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.04); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.yellow { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn.yellow:hover { background: #ffe24d; border-color: #ffe24d; }
.btn.danger:hover { border-color: var(--red); color: var(--red); background: transparent; }
.topbar .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .count { background: var(--yellow); color: #000; border-radius: 999px; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; margin-left: 2px; }
.icon { display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--fg-2); border-radius: 9px; width: 32px; height: 32px; cursor: pointer; font-size: 14px; flex: none; }
.icon:hover:not(:disabled) { color: var(--fg); background: rgb(255 255 255 / 0.06); }
.icon:disabled { opacity: 0.25; cursor: default; }
.icon.danger:hover { color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--fg-2); margin-left: 6px; white-space: nowrap; }
.pill:first-child { margin-left: 0; }
.pill.yellow, .pill.s-new { color: var(--yellow); border-color: rgb(255 209 0 / 0.4); }
.pill.green, .pill.s-replied, .pill.s-shortlisted { color: var(--green); border-color: rgb(52 210 123 / 0.35); }
.pill.red, .pill.s-rejected { color: var(--red); border-color: rgb(255 90 90 / 0.35); }
.badge { background: var(--raise); color: var(--fg); border-radius: 999px; font-size: 11px; font-weight: 600; padding: 0 7px; line-height: 18px; }
.badge.yellow { background: var(--yellow); color: #000; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-left: 8px; vertical-align: middle; }

.alert { border: 1px solid rgb(255 209 0 / 0.3); background: rgb(255 209 0 / 0.05); border-radius: 14px; padding: 14px 18px; margin: 20px 0; color: rgb(255 255 255 / 0.85); }
.alert.err { border-color: rgb(255 90 90 / 0.4); background: rgb(255 90 90 / 0.06); color: #ffb3b3; }
.alert.ok { border-color: rgb(52 210 123 / 0.35); background: rgb(52 210 123 / 0.05); }
.alert a { text-decoration: underline; }
.hint { color: var(--fg-3); font-size: 13px; margin: 2px 0 8px; }
.empty { color: var(--fg-3); padding: 32px 8px; text-align: center; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line-2); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; background: #000; border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 10px; user-select: all; }

/* shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.menu-btn { display: none; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 26px; width: auto; display: block; }
.logo-sub { color: var(--fg-2); font-size: 13.5px; border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 18px; }
.side nav { flex: 1; overflow-y: auto; padding: 10px 10px; scrollbar-width: thin; }
.side nav a, .foot-link { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: rgb(255 255 255 / 0.86); font-size: 13.5px; }
.side nav a .ico, .foot-link .ico { width: 16px; height: 16px; }
.side nav a .ico, .foot-link .ico { color: rgb(255 255 255 / 0.8); }
.side nav a:hover, a.foot-link:hover { background: rgb(255 255 255 / 0.05); }
.side nav a.on, .foot-link.on { background: var(--raise); color: var(--fg); }
.side nav a.on .ico { color: var(--yellow); }
.nav-group { border-top: 1px solid var(--line); margin: 8px 0 0; padding-top: 8px; }
.nav-h { color: var(--fg-3); font-size: 12px; padding: 4px 10px 4px; }
.side-foot { border-top: 1px solid var(--line); padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 1px; flex: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(52 210 123 / 0.15); margin: 0 4px; flex: none; }
.foot-link.me { height: 44px; padding-right: 2px; margin-top: 2px; }
.me-text { display: flex; flex-direction: column; line-height: 1.25; }
.me-role { color: var(--fg-3); font-size: 11.5px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line-2); color: var(--fg); display: grid; place-items: center; font-weight: 500; font-size: 12px; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3.2vw, 46px); background: rgb(0 0 0 / 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.qs { position: relative; flex: 0 1 560px; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px 0 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); background: #000; transition: border-color 0.2s; }
.qs:focus-within { border-color: rgb(255 255 255 / 0.5); }
.qs input { border: 0; background: none; padding: 0; height: 100%; font-size: 15px; }
.qs input:focus { background: none; }
.qs kbd { font: 500 12px Inter, sans-serif; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 7px; }
.qs-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.6); }
.qs-menu button { width: 100%; display: grid; grid-template-columns: 18px auto 1fr; gap: 12px; align-items: center; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.qs-menu button.on { background: var(--raise); }
main { flex: 1; }
.page { max-width: 1240px; padding: clamp(40px, 6vw, 88px) clamp(16px, 3.2vw, 46px) 140px; }
.page.wide { max-width: 1520px; }

/* page header (Brainwave: icon + crumb, two-tone heading) */
.phead { margin-bottom: 40px; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 15px; margin-bottom: 18px; }
.crumb a:hover { color: var(--fg); }
.crumb .sep { color: var(--fg-3); }
.phead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.phead-text { max-width: 900px; }
.lead { color: var(--fg-2); font-size: 16.5px; line-height: 1.55; margin: 18px 0 0; max-width: 640px; }
.date { color: var(--fg-2); font-size: 16px; margin-bottom: 22px; }
.hello { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: 56px; }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 72px; }
.strip-cell { display: block; padding: 28px 28px 30px; border-left: 1px solid var(--line); transition: background 0.2s; }
.strip-cell:first-child { border-left: 0; padding-left: 0; }
a.strip-cell:hover { background: rgb(255 255 255 / 0.02); }
.strip-label { color: var(--fg-2); font-size: 14.5px; }
.strip-value { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 2.8vw, 42px); letter-spacing: -0.04em; line-height: 1.15; margin: 10px 0 6px; }
.strip-value.hot { color: var(--yellow); }
.strip-sub { color: var(--fg-2); font-size: 14.5px; }
.bar { height: 3px; background: var(--line-2); border-radius: 3px; margin: 8px 0 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #fff; }

/* section head + capability cards */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.big-h2 { font-weight: 300; font-size: clamp(32px, 3.4vw, 50px); letter-spacing: -0.045em; line-height: 1.05; margin: 0; }
.sec-aside { max-width: 400px; margin: 0; font-size: 15.5px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 72px; }
.cap-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.caps .cap-card:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.cap-icon { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; transition: border-color 0.2s, color 0.2s; }
.cap-card:hover .cap-icon { border-color: var(--yellow); color: var(--yellow); }
.cap-title { font-family: var(--display); font-size: 21px; letter-spacing: -0.03em; }
.cap-desc { color: var(--fg-2); font-size: 14.5px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; }
.card.narrow .field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.feed li:last-child { border-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--fg-2); font-weight: 400; font-size: 14px; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off td { opacity: 0.45; }

/* underline tabs (Brainwave Drive) */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: -8px 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--fg-2); font: inherit; font-size: 16px; padding: 0 0 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--fg); border-bottom-color: #fff; }

/* editor */
.field { display: block; margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: 14px; margin-bottom: 8px; color: var(--fg-2); }
.field-label.mono { color: var(--fg-2); }
.req { color: var(--yellow); }
.field.block > .field-label { font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 14px; }
.obj.nested { border-left: 1px solid var(--line-2); padding-left: 18px; margin-top: 6px; }
.l10n { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l10n-col { position: relative; display: block; }
.l10n-col .lang { position: absolute; top: 11px; right: 12px; font-size: 11px; font-weight: 500; color: var(--fg-3); letter-spacing: 0.04em; pointer-events: none; }
.l10n-col input, .l10n-col textarea { padding-right: 46px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; padding: 0; border: 0; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--yellow); }
.switch input:checked::after { transform: translateX(16px); background: #000; }
.switch span { color: var(--fg-2); font-size: 14px; }

.img-field { display: flex; gap: 16px; align-items: flex-start; }
.img-preview { width: 184px; aspect-ratio: 16/10; border-radius: 12px; background: #000 repeating-conic-gradient(#141414 0 25%, #0b0b0b 0 50%) 0 0/16px 16px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--fg-3); font-size: 12.5px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-field.brand .img-preview img { object-fit: contain; padding: 12px; }
.img-actions { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.img-actions input { font-size: 13px; font-family: ui-monospace, Menlo, monospace; }

.list, .scalars { display: flex; flex-direction: column; gap: 8px; }
.list > .btn, .scalars > .btn, .scalars > .dd { align-self: flex-start; }
.item { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.item.open { border-color: var(--line-2); }
.item-head { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; cursor: pointer; }
.item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { color: var(--fg-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body { padding: 20px 18px 20px; border-top: 1px solid var(--line); }
.tools { display: flex; gap: 2px; flex: none; }
.chev { color: var(--fg-3); width: 18px; text-align: center; flex: none; }
.thumb { width: 56px; height: 38px; border-radius: 8px; background: #000; overflow: hidden; flex: none; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 4px; }
.scalar { display: flex; gap: 8px; align-items: flex-start; }
.scalar-body { flex: 1; min-width: 0; }
.scalar.slug { align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 14px; background: var(--card-2); }
.num { color: var(--fg-2); font-family: var(--display); width: 22px; }

.table-list .search { max-width: 380px; border-radius: 999px; padding-left: 18px; }
.rows { margin-top: 16px; border-top: 1px solid var(--line); }
.trow { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgb(255 255 255 / 0.025); }
.trow:hover .chev { color: var(--fg); }

.savebar { position: sticky; bottom: 0; margin: 28px calc(-1 * clamp(16px, 3.2vw, 46px)) -140px; padding: 16px clamp(16px, 3.2vw, 46px); background: rgb(0 0 0 / 0.88); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; }
.labels { display: grid; gap: 18px; }
.publish-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.publish-form .field { width: 100%; max-width: 560px; }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; align-items: start; }
.inbox-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow-y: auto; }
.msg { text-align: left; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.msg:hover { border-color: var(--line-2); }
.msg.sel { border-color: rgb(255 255 255 / 0.6); background: var(--card-2); }
.msg strong { font-weight: 500; }
.msg.unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; }
.msg .pill { align-self: flex-start; margin: 6px 0 0; }
.inbox-detail { position: sticky; top: 96px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 18px 0 24px; }
.kv dt { color: var(--fg-2); text-transform: capitalize; font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.pre { white-space: pre-wrap; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }

/* users & roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.role-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.role-card p { margin: 10px 0 0; }
.role-pill { display: inline-block; font-size: 12.5px; border-radius: 999px; padding: 3px 11px; border: 1px solid var(--line-2); color: var(--fg); white-space: nowrap; }
.role-pill.r-super_admin { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 500; }
.role-pill.r-admin { border-color: rgb(255 255 255 / 0.5); }
.role-pill.r-editor { color: var(--fg-2); }
.card.flush { padding: 8px 24px; }
.tbl td.right { text-align: right; }
.row.end { justify-content: flex-end; }
.add-user { display: grid; grid-template-columns: 1fr 1.2fr auto auto; gap: 10px; }
@media (max-width: 820px) { .roles, .add-user { grid-template-columns: 1fr; } }

/* row ⋯ menu */
.rowmenu { position: relative; display: inline-block; }
.rowmenu .icon { font-size: 18px; letter-spacing: 1px; border-color: var(--line); }
.rowmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: #0f0f0f; border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: 0 18px 44px rgb(0 0 0 / 0.6); text-align: left; }
.rowmenu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.rowmenu-pop button:hover { background: var(--raise); }
.rowmenu-pop button.danger { color: var(--red); }
.rowmenu-pop button.danger:hover { background: rgb(255 90 90 / 0.1); }
.flag { color: var(--yellow); }
.tbl td.right { width: 56px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 480px; padding: 44px 40px 36px; background: #000; border-color: var(--line-2); }
.login .logo { margin-bottom: 40px; }
.login .logo img { height: 40px; }
.login h1 { font-size: 40px; margin-bottom: 32px; }
.login .btn { width: 100%; margin-top: 8px; }

.toasts { position: fixed; right: 24px; bottom: 92px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: #fff; color: #000; padding: 12px 18px; border-radius: 14px; font-weight: 500; box-shadow: 0 16px 40px rgb(0 0 0 / 0.5); animation: up 0.25s var(--ease); }
.toast.err { background: var(--red); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1180px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .caps .cap-card:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .caps .cap-card:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .grid2, .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 46vh; }
  .inbox-detail { position: static; }
  .shell { grid-template-columns: 228px 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: sticky; height: auto; z-index: 20; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { height: 64px; border-bottom: 0; }
  .menu-btn { display: inline-grid; }
  .side nav, .side-foot { display: none; }
  .menu-open .side { height: 100vh; }
  .menu-open .side nav { display: block; }
  .menu-open .side-foot { display: flex; }
  .topbar { display: none; }
  .strip, .caps { grid-template-columns: 1fr; }
  .strip-cell, .caps .cap-card, .caps .cap-card:nth-child(2n) { border-left: 0 !important; padding-left: 0 !important; }
  .strip-cell + .strip-cell { border-top: 1px solid var(--line); }
  .l10n { grid-template-columns: 1fr; gap: 12px; }
  .img-field { flex-direction: column; }
  .img-preview { width: 100%; max-width: 340px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .tbl { display: block; overflow-x: auto; }
  .page { padding-top: 32px; }
}

/* checkboxes + segmented control */
input.chk { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 0; border-radius: 5px; border: 1.5px solid rgb(255 255 255 / 0.4); background: transparent; cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; transition: background 0.15s, border-color 0.15s; }
input.chk:hover { border-color: rgb(255 255 255 / 0.75); }
input.chk:checked, input.chk:indeterminate { background: var(--yellow); border-color: var(--yellow); }
input.chk:checked::after { content: ""; width: 5px; height: 9px; border: solid #000; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
input.chk:indeterminate::after { content: ""; width: 9px; height: 2px; background: #000; border-radius: 2px; }
input.chk:focus-visible { outline: 2px solid rgb(255 255 255 / 0.6); outline-offset: 2px; }
.chk-row { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; color: var(--fg-2); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; }
.seg a:hover, .seg button:hover:not(:disabled) { color: var(--fg); }
.seg .on { background: #fff; color: #000; }
.seg .on:hover { color: #000; }
.seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.tab-n { color: var(--fg-3); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tabs button.on .tab-n { color: var(--fg-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* access tree (users) */
.access-form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.access-form .add-user { grid-template-columns: 1fr 1.2fr; width: 100%; max-width: 720px; }
.tree { width: 100%; max-width: 720px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tree-dept + .tree-dept { border-top: 1px solid var(--line); }
.tree-row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; }
.tree-row:hover { background: rgb(255 255 255 / 0.025); }
.tree-row.dept { background: var(--card-2); padding: 12px 16px 12px 8px; }
.tree-row.dept label { gap: 12px; cursor: pointer; }
.tree-label { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; }
.tree-row.grp { padding-left: 44px; color: var(--fg-2); font-size: 14px; }
.tree-row.leaf { padding-left: 74px; font-size: 14.5px; }
.tree-row.leaf.flat { padding-left: 44px; }
.tree-group { padding: 2px 0 6px; }
.chev-btn { width: 26px; height: 26px; border: 0; background: none; color: var(--fg-2); cursor: pointer; border-radius: 6px; font-size: 13px; }
.chev-btn:hover { color: var(--fg); background: rgb(255 255 255 / 0.06); }
.tbl tr.edit-row td { background: var(--card-2); padding: 20px 18px; }
.tbl td.wide-r { width: auto; }

/* human resources: filters, list, bulk bar, pager */
.hr-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -8px 0 18px; }
.search-box { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); }
.search-box:focus-within { border-color: rgb(255 255 255 / 0.55); }
.search-box input { border: 0; background: none; padding: 0; height: 100%; }
.bulkbar { position: sticky; top: 76px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; margin-bottom: 14px; border: 1px solid rgb(255 209 0 / 0.4); background: #0d0b00; border-radius: 999px; }
.bulkbar strong { font-weight: 500; margin-right: 6px; }
.tbl.apps th.pick, .tbl.apps td.pick { width: 34px; padding-right: 8px; }
.tbl.apps tr.click { cursor: pointer; }
.tbl.apps tr.click:hover td { background: rgb(255 255 255 / 0.025); }
.tbl.apps tr.picked td { background: rgb(255 209 0 / 0.04); }
.tbl.apps tr.unread .cand { font-weight: 600; }
.tbl.apps tr.unread .cand::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; }
.tbl.apps td { padding-top: 11px; padding-bottom: 11px; }
.tbl .clip-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .right-al { text-align: right; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.pager .muted { margin-right: 8px; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 1px; color: rgb(255 255 255 / 0.18); }
.stars .on { color: var(--yellow); }
.stars .on .ico { fill: currentColor; }
.stars.edit button { background: none; border: 0; padding: 2px; color: inherit; cursor: pointer; border-radius: 6px; }
.stars.edit button.on { color: var(--yellow); }
.stars.edit button:hover { color: #ffe24d; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; letter-spacing: 0.02em; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; line-height: 16px; }

/* stage colours */
.st-new { --st: var(--yellow); }
.st-screening { --st: #6cb4ff; }
.st-test { --st: #4fd1c5; }
.st-interview { --st: #b892ff; }
.st-offer { --st: #ff9f45; }
.st-hired { --st: var(--green); }
.st-rejected { --st: var(--red); }
.pill.stage { color: var(--st); border-color: color-mix(in srgb, var(--st) 40%, transparent); }

/* dashboard recruitment funnel */
.funnel { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.funnel-cell { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 20px; border-left: 1px solid var(--line); transition: background 0.2s; }
.funnel-cell:first-child { border-left: 0; padding-left: 0; }
.funnel-cell:hover { background: rgb(255 255 255 / 0.02); }
.funnel-label { color: var(--fg-2); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.funnel-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.funnel-n { font-family: var(--display); font-weight: 300; font-size: 36px; letter-spacing: -0.04em; line-height: 1.1; }
.funnel .bar span { background: var(--st); }

/* pipeline board */
.hr-page { padding-top: clamp(28px, 3.4vw, 48px); }
.hr-page .phead { margin-bottom: 28px; }
.hr-page .phead h1 { font-size: clamp(34px, 3.4vw, 50px); }
.board-page { max-width: none; padding-bottom: 40px; }
.board { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 300px); min-height: 360px; transition: border-color 0.15s, background 0.15s; }
.col.over { border-color: var(--st); background: color-mix(in srgb, var(--st) 5%, var(--card)); }
.col-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; position: relative; }
.col-head::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--st); border-radius: 2px; opacity: 0.8; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; min-height: 90px; }
.kcard { text-align: left; font: inherit; color: var(--fg); background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: grab; display: flex; flex-direction: column; gap: 3px; transition: border-color 0.15s, transform 0.15s var(--ease), opacity 0.15s; }
.kcard:hover { border-color: var(--line-2); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.4; }
.kcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kcard strong { font-weight: 500; font-size: 14.5px; }
.kcard.unread strong::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-right: 7px; vertical-align: middle; }
.kcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 22px; }
.col-empty { color: var(--fg-3); font-size: 13px; text-align: center; padding: 22px 0; border: 1px dashed var(--line-2); border-radius: 12px; }
.col-more { align-self: center; margin-top: 4px; }

/* candidate side panel */
.drawer-wrap { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(640px, 100vw); height: 100%; background: #070707; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; animation: slide 0.25s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-top .grow { padding-left: 8px; }
.drawer-body { overflow-y: auto; padding: 28px 30px 40px; flex: 1; }
.cand-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.cand-head h2 { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; margin: 0 0 2px; }
.path { display: flex; margin-bottom: 14px; }
.path button { flex: 1; min-width: 0; height: 38px; border: 0; background: var(--raise); color: var(--fg-2); font: inherit; font-size: 13.5px; cursor: pointer; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); margin-left: -6px; padding: 0 8px 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.15s, color 0.15s; }
.path button:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 10px 0 0 10px; padding-left: 12px; }
.path button:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); border-radius: 0 10px 10px 0; }
.path button:hover { color: var(--fg); background: #262626; }
.path button.done { background: rgb(255 255 255 / 0.16); color: var(--fg); }
.path button.cur { background: var(--yellow); color: #000; font-weight: 600; }
.cand-actions { gap: 12px; margin-bottom: 6px; }
.drawer .kv { grid-template-columns: 120px 1fr; }
.drawer-sec { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.drawer-sec h3 { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
.note-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline strong { font-weight: 500; }
.note-body { white-space: pre-wrap; margin-top: 6px; padding: 10px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.drawer-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .funnel { grid-template-columns: repeat(3, 1fr); }
  .funnel-cell:nth-child(4) { border-left: 0; padding-left: 0; }
  .funnel-cell:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .funnel-cell { border-left: 0 !important; padding-left: 0 !important; }
  .funnel-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bulkbar { border-radius: 16px; top: 72px; }
  .drawer-body { padding: 22px 18px 32px; }
  .path button { font-size: 12px; padding-left: 14px; }
  .tree-row.leaf { padding-left: 52px; }
  .tree-row.grp, .tree-row.leaf.flat { padding-left: 34px; }
  .access-form .add-user { grid-template-columns: 1fr; }
}

/* add candidate */
.cand-form .field { margin-bottom: 16px; }
.cand-form input[type="file"] { padding: 8px 12px; }
.cand-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cand-form .hint { margin: -8px 0 16px; }
@media (max-width: 820px) { .cand-two { grid-template-columns: 1fr; } }

.kcard-step { align-self: flex-start; margin-top: 4px; font-size: 11.5px; color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 40%, transparent); border-radius: 999px; padding: 0 8px; line-height: 18px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.steps .muted { margin-right: 4px; }
.steps button { height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.steps button:hover { color: var(--fg); }
.steps button.on { background: #fff; border-color: #fff; color: #000; }
.cand-more { margin-bottom: 18px; }
.cand-more summary { cursor: pointer; color: var(--fg-2); font-size: 14px; margin-bottom: 14px; }

/* dropdowns */
.dd { display: inline-flex; align-items: center; gap: 9px; min-width: 150px; max-width: 280px; height: 44px; padding: 0 15px 0 17px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dd:hover, .dd.open { border-color: rgb(255 255 255 / 0.55); background: var(--card-2); }
.dd:focus-visible { outline: 2px solid rgb(255 255 255 / 0.65); outline-offset: 2px; }
.dd.small { height: 36px; min-width: 120px; font-size: 13.5px; padding: 0 12px 0 14px; }
.dd.block { display: flex; width: 100%; max-width: none; border-radius: 12px; }
.dd-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-text.ph { color: var(--fg-2); }
.dd-chev { flex: none; color: var(--fg-2); transition: transform 0.18s var(--ease); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--fg-3)); }
.dd-menu { position: fixed; z-index: 60; display: flex; flex-direction: column; overflow: hidden; background: #111; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.65); animation: dd-in 0.12s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-3px); } }
.dd-search { flex: none; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.dd-search input, .dd-search input:focus { border: 0; background: none; padding: 0; height: 100%; border-radius: 0; }
.dd-list { flex: 1; min-height: 0; overflow-y: auto; padding: 5px; scrollbar-width: thin; }
.dd-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; font-size: 14.5px; line-height: 1.3; text-align: left; cursor: pointer; }
.dd-opt.hi { background: var(--raise); }
.dd-opt.on { font-weight: 500; }
.dd-opt:disabled { opacity: 0.4; cursor: default; }
.dd-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dd-sub { color: var(--fg-3); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.dd-opt.on .dd-sub { font-weight: 400; }
.dd-hint { flex: 0 1 auto; max-width: 45%; text-align: right; color: var(--fg-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.dd-tick { flex: none; color: var(--yellow); }
.dd-none { padding: 18px 12px; color: var(--fg-3); text-align: center; font-size: 14px; }
@keyframes dd-sheet { from { transform: translateY(30px); opacity: 0; } }
@media (max-width: 640px) {
  .dd { max-width: 100%; }
  .hr-filters .dd { flex: 1 1 140px; }
  /* Bottom sheet on phones */
  .dd-menu { left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: auto !important; max-height: 72vh !important; border-width: 1px 0 0; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.6); animation: dd-sheet 0.2s var(--ease); }
  .dd-opt { min-height: 50px; font-size: 16px; }
  .dd-search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dd-menu, .dd-chev { animation: none; transition: none; } }

/* candidate actions */
.cand-cta { margin: 6px 0 0; }
.compose { margin: 16px 0 4px; padding: 18px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; }
.compose h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 0; }
.compose .muted { margin: 4px 0 14px; }
.compose .field { margin-bottom: 12px; }
.btn.off { opacity: 0.4; cursor: not-allowed; }
.plat { display: inline-flex; align-items: center; gap: 7px; max-width: 170px; color: var(--fg); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.plat:hover { text-decoration-color: currentColor; }
.plat .ico { color: var(--yellow); }
.kv .plat { max-width: 100%; }

/* reports */
.tbl.compact td { padding-top: 10px; padding-bottom: 10px; }
.tbl .bar-cell { width: 34%; }
.hbars { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.hbar { display: grid; grid-template-columns: 84px 1fr 56px 44px; align-items: center; gap: 12px; font-size: 14px; }
.hbar-label { color: var(--fg-2); }
.hbar-track { display: block; height: 8px; border-radius: 4px; background: var(--raise); overflow: hidden; }
.hbar-track > span { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--yellow); }
.hbar-n { text-align: right; font-variant-numeric: tabular-nums; }
.hbar-pct { text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 210px; margin-top: 18px; }
.vbar { position: relative; display: flex; flex-direction: column; min-width: 0; outline: none; }
.vbar-area { flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.vbar-fill { display: block; width: min(70%, 26px); min-height: 1px; border-radius: 4px 4px 0 0; background: var(--yellow); }
.vbar-label { margin-top: 7px; color: var(--fg-2); font-size: 12px; text-align: center; }
.vbar-tip { position: absolute; left: 50%; top: -6px; z-index: 3; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: #fff; color: #000; font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.vbar:hover .vbar-tip, .vbar:focus .vbar-tip { opacity: 1; }
.vbar:hover .vbar-fill, .vbar:focus .vbar-fill { background: #ffe24d; }
@media (max-width: 640px) { .hbar { grid-template-columns: 74px 1fr 46px 38px; gap: 8px; } }

.tbl-scroll { overflow-x: auto; }
.tbl.num th, .tbl.num td { white-space: nowrap; }
.tbl .fail { color: var(--fg-3); }
.hbar { grid-template-columns: 112px 1fr 56px 44px; }
.opening-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: center; }
.tbl.num { font-size: 13.5px; }
.tbl.num th { white-space: normal; vertical-align: bottom; font-size: 13px; }
.tbl.num th, .tbl.num td { padding-right: 10px; }

.hbar.short { grid-template-columns: 150px 1fr 40px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--fg-2); margin: 10px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); }
.key.b { background: #6cb4ff; }
.vbar-area.pair { gap: 2px; }
.vbar-area.pair .vbar-fill { width: min(40%, 12px); }
.vbar-fill.b { background: #6cb4ff; }
.vbar:hover .vbar-fill.b, .vbar:focus .vbar-fill.b { background: #93c8ff; }
.split { display: flex; gap: 2px; height: 12px; margin-top: 14px; }
.split span { min-width: 3px; background: var(--yellow); border-radius: 4px; }
.split span.b { background: #6cb4ff; }
.sub-h { margin-top: 28px; margin-bottom: 8px; }

/* applications list: fixed columns so long emails shorten instead of pushing the table out of its card */
.tbl.apps { table-layout: fixed; min-width: 760px; }
.tbl.apps th, .tbl.apps td { overflow: hidden; }
.tbl.apps th.pick, .tbl.apps td.pick { width: 40px; overflow: visible; }
.tbl.apps th:nth-child(3) { width: 21%; }
.tbl.apps th:nth-child(4) { width: 132px; }
.tbl.apps th:nth-child(5) { width: 56px; }
.tbl.apps th:nth-child(6) { width: 56px; }
.tbl.apps th:nth-child(7) { width: 116px; }
.tbl.apps th:nth-child(8) { width: 96px; }
.tbl.apps .pill.stage { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.tbl.apps .plat { max-width: 100%; }
.tbl.apps .clip-cell { max-width: none; }
.cand { display: flex; align-items: center; min-width: 0; }
.tbl.apps tr.unread .cand::before { flex: none; }
.tbl.apps { min-width: 640px; }
.tbl.apps th:nth-child(4) { width: 124px; }
.tbl.apps th:nth-child(5) { width: 52px; }
.tbl.apps th:nth-child(6) { width: 50px; }
.tbl.apps th:nth-child(7) { width: 104px; }
.tbl.apps th:nth-child(8) { width: 100px; }
.cand-pos { display: none; }
@media (max-width: 1300px) {
  .tbl.apps th:nth-child(3), .tbl.apps td:nth-child(3) { display: none; }
  .cand-pos { display: block; }
}

/* report charts */
.hbar.pick { width: 100%; background: none; border: 0; border-radius: 8px; padding: 5px 6px; margin: -5px -6px; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; box-sizing: content-box; }
.hbar.pick { width: calc(100% - 0px); box-sizing: border-box; margin: -5px 0; }
.hbar.pick:hover, .hbar.pick:focus-visible { background: rgb(255 255 255 / 0.05); }
.hbar.pick.dim { opacity: 0.4; }
.hbar.pick.on .hbar-label { color: var(--fg); font-weight: 500; }
.hbar.short { grid-template-columns: 150px 1fr 76px; }
.hbar.short .hbar-n { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(255 209 0 / 0.5); background: rgb(255 209 0 / 0.08); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--yellow); }
.tbl .pick-row { cursor: pointer; }
.tbl .pick-row:hover td { background: rgb(255 255 255 / 0.03); }
.tbl .pick-row.on td { background: rgb(255 209 0 / 0.07); }
.tbl .pick-row.dim td { opacity: 0.4; }
.split button { min-width: 3px; height: 100%; padding: 0; border: 0; background: var(--yellow); border-radius: 4px; cursor: pointer; }
.split button.b { background: #6cb4ff; }
.split button.dim { opacity: 0.35; }
.funnelv { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.funnelv-row { display: grid; grid-template-columns: 112px 1fr 52px 40px; align-items: center; gap: 10px; font-size: 14px; }
.funnelv-label { color: var(--fg-2); }
.funnelv-track { display: flex; justify-content: center; height: 20px; }
.funnelv-track > span { display: block; height: 100%; border-radius: 4px; background: var(--yellow); }
.flow { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 16px; }
.flow-m { position: relative; display: grid; grid-template-rows: 20px 90px 90px auto; min-width: 0; outline: none; }
.flow-net { text-align: center; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.flow-up, .flow-down { display: flex; justify-content: center; }
.flow-up { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.flow-up > span, .flow-down > span { display: block; width: min(60%, 22px); }
.flow-up > span { background: var(--yellow); border-radius: 4px 4px 0 0; }
.flow-down > span { background: #6cb4ff; border-radius: 0 0 4px 4px; }
.flow-m:hover .vbar-tip, .flow-m:focus .vbar-tip { opacity: 1; }
.flow-m .vbar-label { margin-top: 7px; }
.trend { position: relative; height: 210px; margin-top: 16px; }
.trend svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: calc(100% - 26px); pointer-events: none; }
.trend-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
@media (max-width: 640px) { .flow-m { grid-template-rows: 20px 60px 60px auto; } .funnelv-row { grid-template-columns: 84px 1fr 44px 36px; gap: 6px; } .hbar.short { grid-template-columns: 96px 1fr 64px; } }
.hr-page .strip { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tbl-scroll > .tbl { display: table; width: 100%; }

/* tables folded away below the charts */
.fold { padding-top: 0; padding-bottom: 0; }
.fold > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold-chev { margin-left: auto; width: 9px; height: 9px; border: solid var(--fg-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.18s var(--ease); }
.fold[open] .fold-chev { transform: rotate(-135deg); }
.fold > summary:hover .fold-chev { border-color: var(--fg); }
.fold[open] { padding-bottom: 18px; }
.fold > summary:focus-visible { outline: 2px solid rgb(255 255 255 / 0.65); outline-offset: 2px; border-radius: 8px; }
.fold > .hint { margin-top: -6px; }

.update-notice { position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 9px 10px 9px 18px; background: #161616; border: 1px solid rgb(255 209 0 / 0.5); border-radius: 999px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.55); font-size: 14px; }
@media (max-width: 640px) { .update-notice { border-radius: 16px; } }

/* list items hidden from the website */
.hidden-item .item-title, .hidden-item .item-sub, .hidden-item .thumb { opacity: 0.45; }
.hidden-item .item-title { opacity: 1; color: var(--fg-2); }
.hidden-pill { margin-left: 10px; font-size: 11.5px; padding: 1px 9px; vertical-align: 1px; }
.icon.is-hidden { color: var(--yellow); }

/* job level pyramid */
.pyramid { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; }
.pyr-row { display: grid; grid-template-columns: 120px 1fr 92px; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; border-radius: 8px; }
.pyr-row:focus-visible { outline: 2px solid rgb(255 255 255 / 0.65); outline-offset: 2px; }
.pyr-label { color: var(--fg-2); }
.pyr-row.on .pyr-label { color: var(--fg); font-weight: 500; }
.pyr-track { display: flex; justify-content: center; height: 44px; }
.pyr-band { display: block; height: 100%; background: var(--yellow); transition: opacity 0.15s, filter 0.15s; }
.pyr-row:hover .pyr-band { filter: brightness(1.12); }
.pyr-row.dim .pyr-band, .pyr-row.dim .pyr-label, .pyr-row.dim .pyr-n { opacity: 0.35; }
.pyr-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .pyr-row { grid-template-columns: 92px 1fr 76px; gap: 8px; } .pyr-track { height: 36px; } }

/* Recruitment / Workforce switch on HR reports */
.report-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 640px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); }
.report-switch button { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border: 0; border-radius: 15px; background: none; color: var(--fg-2); font: inherit; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; }
.report-switch button:hover { background: rgb(255 255 255 / 0.05); color: var(--fg); }
.report-switch button.on { background: var(--yellow); color: #000; }
.report-switch button:focus-visible { outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }
.rs-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / 0.06); }
.report-switch button.on .rs-icon { background: rgb(0 0 0 / 0.12); }
.rs-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rs-title { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; font-weight: 500; }
.rs-sub { font-size: 13px; opacity: 0.75; }
@media (max-width: 640px) { .report-switch button { min-height: 56px; gap: 10px; padding: 8px 10px; } .rs-icon { width: 34px; height: 34px; } .rs-sub { display: none; } }

/* ---------- leave ---------- */
.pad { padding: 16px 0 4px; }
.no-mb { margin: 0; }
.search-in { max-width: 260px; height: 38px; }
.cell-in { height: 34px; padding: 0 10px; min-width: 120px; }
.cell-in.num { width: 64px; min-width: 0; text-align: right; }
.cell-in.custom { border-color: rgb(255 209 0 / 0.5); }
.leave-people td { vertical-align: middle; }
.leave-sum { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; margin: 4px 0 18px; }
.leave-sum-n { font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 4px; }
.out-today { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 64px; }
.out-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 16px 6px 6px; }
.out-chip:hover { border-color: rgb(255 255 255 / 0.5); }

.cal-head { margin-bottom: 14px; }
.cal-title { margin: 0; min-width: 170px; text-align: center; }
.leave-cal { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.leave-cal th { font-weight: 400; color: var(--fg-2); padding: 0 0 8px; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.leave-cal th span { display: block; font-size: 10.5px; color: var(--fg-3); }
.leave-cal th.today { color: var(--yellow); }
.leave-cal th.today span { color: var(--yellow); }
.leave-cal th.hol span { color: var(--yellow); }
.leave-cal td { height: 40px; padding: 0; border-top: 1px solid var(--line); text-align: center; }
.leave-cal td.wkend, .leave-cal th.wkend { background: rgb(255 255 255 / 0.035); }
.leave-cal td.today { box-shadow: inset 1px 0 0 rgb(255 209 0 / 0.5), inset -1px 0 0 rgb(255 209 0 / 0.5); }
.leave-cal .who { text-align: left; width: 180px; min-width: 150px; max-width: 200px; padding-right: 12px; position: sticky; left: 0; background: var(--card); z-index: 1; }
.leave-cal .who-in { display: flex; flex-direction: column; min-width: 0; }
.lv { display: block; height: 22px; border-radius: 4px; background: var(--yellow); }
.lv.pending { background: repeating-linear-gradient(135deg, rgb(255 209 0 / 0.55) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px rgb(255 209 0 / 0.7); }
.leave-cal .lv { margin: 0 2px; }
.leave-cal .lv.jl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.leave-cal .lv.jr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lv.am { width: 50%; }
.lv.pm { width: 50%; margin-left: auto; }
.cal-key { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.cal-key > span { display: inline-flex; align-items: center; gap: 8px; }
.cal-key .lv { width: 22px; height: 14px; }
.cal-key .lv.am { width: 11px; }
.key-off { display: inline-block; width: 22px; height: 14px; border-radius: 4px; background: rgb(255 255 255 / 0.08); }

.leave-req { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 24px; align-items: end; }
.leave-req-name { font-size: 16px; }
.leave-req-when { font-family: var(--display); font-size: 24px; font-weight: 300; letter-spacing: -0.03em; margin: 16px 0 4px; }
.leave-reason { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--fg-2); }
.leave-req-act { display: flex; flex-direction: column; gap: 10px; }
.hol-form { margin: 8px 0 12px; }
.hol-form input { width: auto; flex: 1; min-width: 160px; }
.hol-form input[type="date"] { flex: none; }
.hol-date { min-width: 110px; color: var(--fg-2); }
@media (max-width: 820px) {
  .leave-req { grid-template-columns: 1fr; }
  .leave-cal .who { width: 120px; min-width: 120px; }
}

/* Who's out: month calendar */
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mcal-wd { padding: 8px 10px; font-size: 12.5px; color: var(--fg-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcal-day { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; min-height: 112px; min-width: 0; padding: 8px; background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; cursor: pointer; }
.mcal-day:hover { background: rgb(255 255 255 / 0.03); }
.mcal-day.blank { cursor: default; background: rgb(255 255 255 / 0.015); }
.mcal-day.wkend, .mcal-day.hol { background: rgb(255 255 255 / 0.035); }
.mcal-day.sel { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
.mcal-day:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.mcal-n { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.mcal-day.today .mcal-n { color: var(--yellow); font-weight: 600; }
.mcal-count { background: var(--yellow); color: #000; border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 20px; height: 18px; display: inline-grid; place-items: center; padding: 0 6px; }
.mcal-hol { font-size: 11.5px; color: var(--yellow); }
.mcal-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mcal-who { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12.5px; line-height: 20px; padding: 0 7px; border-radius: 5px; background: var(--yellow); color: #000; font-weight: 500; }
.mcal-who.pending { background: repeating-linear-gradient(135deg, rgb(255 209 0 / 0.2) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px rgb(255 209 0 / 0.7); color: var(--fg); }
.mcal-half { margin-left: auto; font-size: 10px; opacity: 0.75; flex: none; }
.mcal-more { font-size: 12px; color: var(--fg-2); padding-left: 2px; }
.mcal-detail { margin-top: 20px; }
.mcal-detail h3 { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
@media (max-width: 820px) {
  .mcal-day { min-height: 56px; padding: 6px; }
  .mcal-names, .mcal-hol { display: none; }
  .mcal-marks { display: flex; }
  .mcal-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .cal-title { min-width: 0; font-size: 18px; }
  .mcal-wd { padding: 6px 4px; font-size: 11px; }
}
.mcal-hol.pub { color: var(--yellow); }
.mcal-hol:not(.pub) { color: var(--fg); }
.mcal-ev { font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 5px; background: rgb(108 180 255 / 0.16); color: #cfe6ff; box-shadow: inset 2px 0 0 #6cb4ff; }
.key-ev { display: inline-block; width: 22px; height: 14px; border-radius: 4px; background: rgb(108 180 255 / 0.3); box-shadow: inset 2px 0 0 #6cb4ff; }
.cal-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cal-mark.ev { background: rgb(108 180 255 / 0.16); color: #6cb4ff; }
.cal-mark.hol { background: rgb(255 209 0 / 0.14); color: var(--yellow); }
.ev-form { display: grid; grid-template-columns: 2fr auto auto 1.2fr 1.2fr auto; gap: 10px; margin: 8px 0 12px; }
@media (max-width: 1100px) { .ev-form { grid-template-columns: 1fr 1fr; } }
.mcal-marks { display: flex; gap: 3px; margin-top: auto; }
@media (min-width: 821px) { .mcal-marks { display: none; } }
.mcal-marks .mk { width: 7px; height: 7px; border-radius: 50%; }
.mcal-marks .mk.ev { background: #6cb4ff; }
.mcal-marks .mk.hol { background: transparent; box-shadow: inset 0 0 0 1.5px var(--yellow); }
.clickable { cursor: pointer; }
.feed li.clickable:hover { background: rgb(255 255 255 / 0.03); }
.mcal-ev { cursor: pointer; }
.mcal-ev:hover { background: rgb(108 180 255 / 0.3); }
.mcal-time { font-variant-numeric: tabular-nums; opacity: 0.75; margin-right: 4px; }
.ev-title { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; margin-bottom: 20px; }
.ev-desc { white-space: pre-wrap; color: var(--fg-2); margin: 20px 0 0; }
.check-row { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--yellow); }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; }
.chip-pick button:hover { color: var(--fg); border-color: rgb(255 255 255 / 0.5); }
.chip-pick button.on { background: var(--yellow); border-color: var(--yellow); color: #000; }

/* Org chart: managers' teams spread in rows; a team with no further layers stacks in a column. */
.org-card-wrap { padding: 24px 12px; }
.org-scroll { overflow-x: auto; padding-bottom: 8px; }
.org-row, .org-stack { list-style: none; margin: 0; padding: 0; }
.org-row { display: flex; justify-content: center; position: relative; padding-top: 22px; }
.org-root { padding-top: 0; flex-wrap: wrap; align-items: flex-start; gap: 36px 0; min-width: 100%; }
.org-row > li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 6px 0; max-width: 100%; }
.org-root > li { padding-top: 0; }
.org-row > li::before, .org-row > li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 1px solid var(--line-2); }
.org-row > li::before { right: 50%; }
.org-row > li::after { left: 50%; border-left: 1px solid var(--line-2); }
.org-row > li:first-child::before, .org-row > li:last-child::after { border-top: 0; }
.org-row > li:only-child::before { display: none; }
.org-row > li:only-child::after { border-top: 0; }
.org-root > li::before, .org-root > li::after { display: none; }
.org-row > li:last-child::before { border-right: 1px solid var(--line-2); border-top-right-radius: 8px; }
.org-row > li:first-child::after { border-top-left-radius: 8px; }
li > .org-row::before, li > .org-stack::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid var(--line-2); }
.org-stack { position: relative; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.org-stack > li { position: relative; }
.org-stack > li + li::before { content: ""; position: absolute; left: 50%; top: -14px; height: 14px; border-left: 1px solid var(--line-2); }
.org-card { position: relative; width: 184px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.org-card[draggable="true"] { cursor: grab; }
.org-card.dragging { opacity: 0.4; }
.org-card.drop { border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(255 209 0 / 0.25); }
.org-card.hit { border-color: var(--yellow); }
.org-open { display: flex; gap: 9px; align-items: center; width: 100%; padding: 10px 10px; background: none; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.org-open:hover { background: rgb(255 255 255 / 0.03); }
.org-text { display: flex; flex-direction: column; min-width: 0; }
.org-name { font-size: 13.5px; font-weight: 500; }
.org-pos { font-size: 12px; color: var(--fg-2); }
.org-dept { font-size: 11px; color: var(--yellow); margin-top: 2px; }
.org-fold { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); z-index: 1; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg-2); font-size: 11.5px; cursor: pointer; }
.org-fold:hover { color: var(--fg); border-color: rgb(255 255 255 / 0.5); }
.org-top { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px; text-align: center; color: var(--fg-2); margin-bottom: 18px; }
.org-top.drop { border-color: var(--yellow); color: var(--yellow); }
.org-loose { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.org-head { margin-bottom: 8px; }
.big-av { width: 48px; height: 48px; font-size: 18px; }

/* View as (super admins, read-only) */
.viewas-bar { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 16px; background: var(--yellow); color: #000; font-size: 14px; }
.viewas-bar .btn { background: #000; color: #fff; border-color: #000; }
@media (max-width: 820px) { .viewas-bar { top: 0; } }
.org-grid { list-style: none; margin: 22px 0 0; padding: 16px 10px; max-width: 100%; box-sizing: border-box; position: relative; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line-2); border-radius: 18px; }
li > .org-grid::before { content: ""; position: absolute; top: -23px; left: 50%; height: 22px; border-left: 1px solid var(--line-2); }
.org-band { display: flex; flex-direction: column; gap: 12px; }
.org-band + .org-band { padding-top: 18px; border-top: 1px dashed var(--line); }
.org-band-h { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--yellow); padding-left: 8px; }
.org-band-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px 0; }
.org-band-row > li { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.org-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.org-board { background: rgb(255 209 0 / 0.08); border-color: rgb(255 209 0 / 0.5); }
.org-board .org-open { cursor: default; }
.org-board .avatar { background: var(--yellow); color: #000; border-color: var(--yellow); }
/* A head with many teams takes a full line, so their department rows use the page width. */
.org-root > li:has(> .org-grid), .org-row > li:has(> .org-grid) { flex-basis: 100%; }
.org-row > li > .org-grid { width: 100%; }
.org-row:has(> li > .org-grid) { flex-wrap: wrap; row-gap: 28px; }

/* Org chart company tabs */
.co-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.co-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; min-width: 150px; border-radius: 14px; border: 1px solid var(--line-2); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.co-tabs button:hover { border-color: rgb(255 255 255 / 0.5); }
.co-tabs button.on { background: #fff; border-color: #fff; color: #000; }
.co-tabs .co-name { font-size: 15px; font-weight: 500; }
.co-tabs .co-meta { font-size: 12px; color: var(--fg-2); }
.co-tabs button.on .co-meta { color: rgb(0 0 0 / 0.6); }
.org-up { font-size: 11px; color: var(--fg-2); margin-top: 2px; }
.linkish { background: none; border: 0; padding: 0; color: var(--yellow); font: inherit; cursor: pointer; text-decoration: underline; }

/* Yell People */
.people-tools .row { gap: 8px; }
.people-name { gap: 10px; flex-wrap: nowrap; }
.people-name .pill { margin-left: 4px; }
.people-tbl td { white-space: nowrap; }
.people-who { display: flex; flex-direction: column; min-width: 0; }
.people-who a:hover { color: var(--fg); }
.people-tbl td { white-space: normal; }
.people-tbl td:first-child { white-space: nowrap; }

/* Finance */
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.receipt { display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card-2); }
.receipt img { width: 100%; height: 100%; object-fit: cover; }
.receipt.pdf { display: grid; place-items: center; color: var(--fg-2); }

/* Login: Google first, password second */
.google-btn { width: 100%; gap: 10px; margin: 8px 0 4px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--fg-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
