/* =========================================================================
   Tether HR — theme
   Industrial packaging meets people ops: steel ink, kraft board, strapping-band
   orange, conveyor motion. Fonts are self-hosted (@fontsource).
   ========================================================================= */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink: #14202E;
  --steel: #1D2A39;
  --steel-2: #2A3A4C;
  --steel-3: #3A4C60;
  --paper: #F4F1EB;
  --card: #FFFFFF;
  --line: #E2DCD1;
  --line-2: #EEE9E1;
  --kraft: #C9A675;
  --kraft-d: #A9844F;
  --kraft-l: #F1E7D6;
  --orange: #E8702A;
  --orange-d: #C2571A;
  --orange-l: #FCE9DC;
  --teal: #2F8F9D;
  --teal-l: #DDF0F2;
  --green: #3F8A4F;
  --green-l: #E1F1E4;
  --red: #C2412D;
  --red-l: #F9E2DE;
  --amber: #B7791F;
  --amber-l: #FBF0DA;
  --text: #1B2633;
  --muted: #667383;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,32,46,.06), 0 6px 18px rgba(20,32,46,.06);
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--orange-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
pre { background: var(--ink); color: #E8EDF2; padding: 14px 16px; border-radius: 10px; overflow: auto; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #C8D2DC; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.sidebar .brand img { height: 34px; }
.sidebar .brand .hr-tag { font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; color: var(--kraft); border: 1px solid var(--steel-3); padding: 2px 6px; border-radius: 4px; }
.belt { height: 6px; background: repeating-linear-gradient(90deg, var(--steel-2) 0 14px, var(--steel-3) 14px 18px); background-size: 18px 6px; animation: belt 1.2s linear infinite; opacity: .9; }
@keyframes belt { to { background-position: 18px 0; } }
.nav { padding: 10px 10px 18px; flex: 1; }
.nav .section { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7E8C9B; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #C8D2DC; padding: 8px 10px; border-radius: 8px; font-weight: 500; position: relative; transition: background .2s var(--ease), color .2s; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav a:hover { background: var(--steel-2); color: #fff; text-decoration: none; }
.nav a:hover svg { transform: translateX(2px) rotate(-4deg); }
.nav a.active { background: var(--steel-2); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.sidebar .me { border-top: 1px solid var(--steel-2); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.sidebar .me .who { flex: 1; min-width: 0; }
.sidebar .me .who b { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .me .who span { font-size: .78rem; color: var(--kraft); }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: rgba(244,241,235,.9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.topbar h1 { margin: 0; font-size: 1.35rem; }
.topbar .crumbs { font-size: .8rem; color: var(--muted); }
.content { padding: 26px 32px 60px; max-width: 1320px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .3s var(--ease); }
  body.nav-open .sidebar { transform: none; }
  .menu-toggle { display: inline-flex; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Avatars ---------- */
.avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--kraft); color: var(--ink); display: inline-grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem; flex: none; }
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.4rem; }
.avatar.out { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--orange); }

/* ---------- Buttons (animated) ---------- */
.btn { --bg: var(--card); --fg: var(--text); --bd: var(--line);
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .9rem/1 var(--font); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
/* strapping-band sweep */
.btn::after { content: ''; position: absolute; inset: -2px; z-index: -1; transform: translateX(-105%) skewX(-18deg);
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.0) 0 10px, rgba(255,255,255,.18) 10px 16px);
  transition: transform .55s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,32,46,.14); }
.btn:hover::after { transform: translateX(0) skewX(-18deg); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--orange-l); outline-offset: 2px; }
.btn-primary { --bg: var(--orange); --fg: #fff; --bd: var(--orange-d); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary:hover { --bg: var(--orange-d); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark:hover { --bg: var(--steel-2); }
.btn-success { --bg: var(--green); --fg: #fff; --bd: #33713F; }
.btn-danger { --bg: var(--card); --fg: var(--red); --bd: #EBC2BA; }
.btn-danger:hover { --bg: var(--red-l); }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--muted); }
.btn-ghost:hover { --bg: var(--line-2); --fg: var(--text); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.flush { padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush .card-head { padding: 16px 20px 0; }
.card .empty { color: var(--muted); padding: 18px 0; text-align: center; }

/* Corrugated edge used on hero cards */
.kraft { background: linear-gradient(180deg, var(--kraft-l), #FBF7F0); border-color: #E6D6BB; }
.tape { position: relative; }
.tape::before { content: ''; position: absolute; left: 24px; top: -1px; width: 72px; height: 6px; border-radius: 0 0 3px 3px; background: var(--orange); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.stat .value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat .value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat .sub { font-size: .8rem; color: var(--muted); }

/* Meter (SVG inside) */
.meter { width: 100%; height: 10px; display: block; border-radius: 6px; overflow: hidden; }
.meter-legend { display: flex; gap: 14px; font-size: .75rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.dot.used { background: var(--orange); } .dot.pending { background: var(--kraft); } .dot.left { background: var(--line); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #E8EDF2; border-radius: 16px; padding: 26px 28px 30px; display: flex; align-items: center; gap: 24px; }
.hero h1 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.hero p { color: #AEBBC8; margin: 0; }
.hero .belt { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background-size: 18px 8px; }
.hero .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-logo { width: 92px; height: 92px; flex: none; }
.hero-logo .box { transform-origin: 50% 100%; animation: drop .7s var(--ease) both; }
.hero-logo .flap { animation: drop .7s .05s var(--ease) both; }
.hero-logo .strap { stroke-dasharray: 120; stroke-dashoffset: 120; animation: strap 1s .45s var(--ease) forwards; }
.hero-logo .strap.v { animation-delay: .75s; }
.hero-logo .buckle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: cinch .55s 1.45s var(--ease) forwards; }
.hero-logo:hover .buckle { animation: cinch-again .6s var(--ease); opacity: 1; }
@keyframes drop { from { transform: translateY(-26px); opacity: 0; } 60% { transform: translateY(2px); opacity: 1; } to { transform: none; } }
@keyframes strap { to { stroke-dashoffset: 0; } }
@keyframes cinch { 0% { opacity: 0; transform: scale(1.6); } 60% { opacity: 1; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cinch-again { 0% { transform: scale(1); } 40% { transform: scale(.8); } 100% { transform: scale(1); } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--ink); color: #E8EDF2; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.login-art h1 { color: #fff; font-size: 2.4rem; max-width: 14ch; }
.login-art p { color: #AEBBC8; max-width: 42ch; }
.login-art .belt { position: absolute; left: 0; right: 0; bottom: 64px; height: 12px; background-size: 18px 12px; }
.login-art .boxes { position: absolute; bottom: 76px; left: 0; right: 0; height: 60px; }
.login-art .boxes span { position: absolute; bottom: 0; width: 46px; height: 38px; border-radius: 4px; background: var(--kraft); box-shadow: inset 0 8px 0 var(--kraft-d); animation: ride 9s linear infinite; }
.login-art .boxes span::after { content: ''; position: absolute; left: 19px; top: -2px; width: 8px; height: 42px; background: var(--orange); }
.login-art .boxes span:nth-child(2) { animation-delay: -3s; height: 30px; }
.login-art .boxes span:nth-child(3) { animation-delay: -6s; width: 56px; }
@keyframes ride { from { transform: translateX(-80px); } to { transform: translateX(110vw); } }
.login-card { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card .inner { width: 100%; max-width: 380px; }
.login-card .hero-logo { width: 84px; height: 84px; margin-bottom: 18px; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: #FBF9F5; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #FBF8F3; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.person { display: flex; align-items: center; gap: 10px; }
.person b { display: block; font-weight: 600; }
.person small { display: block; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--line-2); color: var(--steel-2); white-space: nowrap; }
.badge.pending { background: var(--amber-l); color: #8A5A10; }
.badge.approved { background: var(--green-l); color: #2D6A3A; }
.badge.denied { background: var(--red-l); color: #9A2F1F; }
.badge.cancelled { background: var(--line-2); color: var(--muted); text-decoration: line-through; }
.badge.vacation { background: var(--orange-l); color: var(--orange-d); }
.badge.pto { background: var(--teal-l); color: #1F6A75; }
.badge.unpaid { background: var(--line-2); color: var(--muted); }
.badge.sensitive { background: var(--red-l); color: #9A2F1F; }
.badge.standard { background: var(--teal-l); color: #1F6A75; }
.badge.role { background: var(--ink); color: #fff; }
.badge.out { background: var(--orange); color: #fff; }
.badge.escalated { background: #EDE7F6; color: #5B3F8C; }
.swatch { width: 10px; height: 10px; display: inline-block; vertical-align: middle; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }
textarea { min-height: 90px; resize: vertical; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; min-height: 220px; }
input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--orange); width: 16px; height: 16px; }
.check small { display: block; font-weight: 400; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.field-help { font-size: .78rem; color: var(--muted); margin-top: 5px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0; }
legend { font-family: var(--font-head); font-weight: 700; padding: 0 6px; }
.estimate { display: flex; align-items: center; gap: 10px; background: var(--kraft-l); border: 1px dashed var(--kraft); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.estimate b { font-family: var(--font-head); font-size: 1.2rem; }
.inline-form { display: inline; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; animation: slidein .35s var(--ease); }
.alert.success { background: var(--green-l); border-color: #BFDDC6; color: #24552F; }
.alert.error { background: var(--red-l); border-color: #EBC2BA; color: #7E2A1C; }
.alert.info { background: var(--teal-l); border-color: #BFE0E4; color: #1B5A63; }
.alert.warn { background: var(--amber-l); border-color: #EBD6A8; color: #6E4A0E; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.secret-box { display: flex; gap: 8px; align-items: center; background: var(--ink); color: #FFD9C2; padding: 10px 12px; border-radius: 10px; font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.secret-box code { background: none; color: inherit; flex: 1; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.date-chip { width: 48px; flex: none; text-align: center; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.date-chip .m { background: var(--orange); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 0; }
.date-chip .d { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 2px 0 3px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal .dow { background: #FBF9F5; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px; }
.cal .day { background: #fff; min-height: 108px; padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; }
.cal .day.weekend { background: #FBFAF7; }
.cal .day.other { background: #F7F5F1; color: #AAB3BD; }
.cal .day .n { font-size: .8rem; font-weight: 600; }
.cal .day.today .n { background: var(--orange); color: #fff; border-radius: 6px; padding: 0 6px; align-self: flex-start; }
.cal .chip { font-size: .72rem; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.cal .chip.holiday { background: var(--orange); color: #fff; font-weight: 600; }
.cal .chip.company { background: var(--ink); color: #fff; }
.cal .chip.leave { background: var(--line-2); color: var(--text); }
@media (max-width: 800px) { .cal .day { min-height: 70px; } .cal .chip { font-size: .62rem; } }

/* ---------- Report chart ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .vac { background: var(--orange); } .legend .pto { background: var(--teal); } .legend .unp { background: #9AA5B1; }
.hbar { display: grid; grid-template-columns: 160px 1fr 70px; gap: 10px; align-items: center; padding: 5px 0; font-size: .85rem; }


/* ---------- Tabs / filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active, .tabs a:hover { color: var(--text); border-color: var(--orange); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters > div { min-width: 140px; }
.filters label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Misc ---------- */
.pill-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pill-toggle a { padding: 6px 12px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.pill-toggle a.active { background: var(--ink); color: #fff; text-decoration: none; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.yes { color: var(--green); font-weight: 700; } .no { color: #C3CAD2; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.ok { background: var(--green); } .status-dot.warn { background: var(--amber); } .status-dot.off { background: #C3CAD2; }
.iframe-preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #EEF1F4; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 18px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.footer-note { font-size: .78rem; color: var(--muted); padding: 18px 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-logo .strap { stroke-dashoffset: 0; } .hero-logo .buckle { opacity: 1; }
}
@media print {
  .sidebar, .topbar .btn, .filters, .btn { display: none !important; }
  .shell { display: block; } .card { box-shadow: none; }
}
.list li > svg { width: 18px; height: 18px; flex: none; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meter-cell { min-width: 110px; }
a.card { display: block; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,32,46,.1); }
.cat-name { max-width: 180px; } .cat-sel { max-width: 130px; } .cat-num { max-width: 70px; }
.login-art img { align-self: flex-start; }
.hbar > svg { width: 100%; height: 12px; }
.hbar svg.swatch { width: 10px; height: 10px; }
.hbar .flex { flex-wrap: nowrap; gap: 6px; }
td .person b { white-space: nowrap; }
td .person small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.card-head input[type=search] { width: auto; max-width: 240px; }
.hero .btn:not(.btn-primary) { --bg: rgba(255,255,255,.08); --fg: #fff; --bd: rgba(255,255,255,.22); }
