/* ==========================================================================
   GoTeamHR — design system
   RTL-first, light/dark, no framework dependency.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
    --brand-50:  #e4f0f5;
    --brand-100: #c7e0ea;
    --brand-200: #a3cbdc;
    --brand-300: #7fb6ce;
    --brand-400: #5b9fba;
    --brand-500: #3c7890;
    --brand-600: #2e6478;
    --brand-700: #234f60;
    --brand-800: #1a3c49;
    --brand-900: #122a34;
    --brand-gradient: linear-gradient(135deg, var(--brand-400), var(--brand-700));

    --teal-500: #0d9488;
    --teal-600: #0f766e;

    --success-50:  #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50:  #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --danger-50:  #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info-50:  #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    --orange-50: #fdeee3;
    --orange-100: #fbdcc4;
    --orange-500: #e07a3f;
    --orange-600: #c2632e;

    --purple-500: #a855f7;
    --pink-500: #ec4899;

    /* surfaces */
    --bg:            #dcedf5;
    --bg-subtle:     #f8fafc;
    --surface:       #ffffff;
    --surface-2:     #f8fafc;
    --surface-3:     #f1f5f9;
    --surface-hover: #f1f5f9;
    --border:        #e2e8f0;
    --border-strong: #cbd5e1;

    /* text */
    --text:        #0f172a;
    --text-muted:  #64748b;
    --text-subtle: #94a3b8;
    --text-invert: #ffffff;

    /* sidebar */
    --sidebar-bg:      #1e3f54;
    --sidebar-bg-2:    #15303f;
    --sidebar-text:    #c3d7e0;
    --sidebar-muted:   #7694a3;
    --sidebar-active:  var(--brand-500);
    --sidebar-active-text: #ffffff;
    --sidebar-border:  rgba(148, 163, 184, .14);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .04);
    --shadow-xl: 0 24px 56px rgba(15, 23, 42, .18);

    --radius-sm: 7px;
    --radius:    11px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 999px;

    --sidebar-w: 268px;
    --topbar-h: 64px;

    --font: 'Cairo', 'Tajawal', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

    --t-fast: 120ms cubic-bezier(.4, 0, .2, 1);
    --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
    --bg:            #0b1120;
    --bg-subtle:     #0f172a;
    --surface:       #131c2e;
    --surface-2:     #1a2539;
    --surface-3:     #212e45;
    --surface-hover:  #1e293b;
    --border:        #1f2d45;
    --border-strong: #334155;

    --text:        #e2e8f0;
    --text-muted:  #94a3b8;
    --text-subtle: #64748b;

    --sidebar-bg:   #0e2330;
    --sidebar-bg-2: #15303f;
    --sidebar-border: rgba(148, 163, 184, .08);

    --brand-50:  #102733;
    --brand-100: #163444;
    --success-50: #052e23;
    --success-100: #064e3b;
    --warning-50: #3a2a06;
    --warning-100: #4a3509;
    --danger-50:  #3b0d0d;
    --danger-100: #4c1414;
    --info-50:    #0c2444;
    --info-100:   #10325e;
    --orange-50:  #3b1d06;
    --orange-100: #4d2708;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
h4 { font-size: 15px; }
p  { margin: 0 0 10px; }
a  { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
small { font-size: 12px; }
code, pre { font-family: var(--font-mono); font-size: 12.5px; }

::selection { background: var(--brand-200); color: var(--brand-900); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); background-clip: content-box; }

/* ------------------------------------------------------------- app shell -- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(170deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 60;
    transition: transform var(--t);
    border-inline-end: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 20px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}
.sidebar-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(60, 120, 144, .4);
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-logo img, .sidebar-logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-brand-sub {
    color: var(--sidebar-muted); font-size: 11px; line-height: 1.3;
    font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: .02em;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px 24px; }
.nav-group { margin-bottom: 4px; }
.nav-group-title {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--sidebar-muted); padding: 14px 12px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 13.5px; font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
}
.nav-item:hover { background: rgba(148, 163, 184, .08); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-active-text); font-weight: 700; }
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item.active .icon { opacity: 1; }
.nav-item-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
    background: var(--danger-500); color: #fff;
    font-size: 10.5px; font-weight: 700;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 99px; display: grid; place-items: center;
}
.nav-badge.muted { background: rgba(148,163,184,.22); color: var(--sidebar-text); }

.sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--sidebar-border); flex-shrink: 0; }
.seat-meter { font-size: 11.5px; color: var(--sidebar-muted); }
.seat-bar { height: 5px; background: rgba(148,163,184,.16); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.seat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--teal-500)); border-radius: 99px; }

/* main */
.main {
    flex: 1;
    min-width: 0;
    margin-inline-start: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    padding: 0 22px;
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: saturate(180%) blur(8px);
}
.topbar-title { font-size: 16px; font-weight: 700; margin-inline-end: auto; }
.topbar-title small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); }

.icon-btn {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent; color: var(--text-muted);
    cursor: pointer; position: relative;
    transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn .dot {
    position: absolute; top: 6px; inset-inline-end: 6px;
    width: 8px; height: 8px; border-radius: 99px;
    background: var(--danger-500); border: 2px solid var(--surface);
}
.icon-btn .count {
    position: absolute; top: 2px; inset-inline-end: 2px;
    min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--danger-500); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 99px; display: grid; place-items: center;
    border: 2px solid var(--surface);
}

.menu-toggle { display: none; }

.content { padding: 22px; flex: 1; }
.content-narrow { max-width: 920px; margin: 0 auto; }

/* ------------------------------------------------------------- page head -- */
.page-head {
    display: flex; align-items: flex-start; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.page-head-text { flex: 1; min-width: 220px; }
.page-head h1 { font-size: 22px; margin-bottom: 3px; }
.page-head .subtitle { color: var(--text-muted); font-size: 13.5px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.breadcrumb { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--text-subtle); margin-bottom: 7px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-600); }

/* ----------------------------------------------------------------- card -- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { font-size: 15px; margin-inline-end: auto; }
.card-head .subtitle { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px; }
.card-body.flush { padding: 0; }
.card-foot {
    padding: 13px 18px; border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}

/* ----------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

/* ------------------------------------------------------------ stat card -- */
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 17px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--brand-50); color: var(--brand-600);
}
.stat-icon.success { background: var(--success-50); color: var(--success-600); }
.stat-icon.warning { background: var(--warning-50); color: var(--warning-600); }
.stat-icon.danger  { background: var(--danger-50);  color: var(--danger-600); }
.stat-icon.info    { background: var(--info-50);    color: var(--info-600); }
.stat-icon.orange  { background: var(--orange-50);  color: var(--orange-600); }
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stat-value small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stat-meta { font-size: 12px; color: var(--text-muted); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.trend { font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--success-600); }
.trend.down { color: var(--danger-600); }
.trend.flat { color: var(--text-subtle); }

/* --------------------------------------------------------------- button -- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgba(46,100,120,.3); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-success { background: var(--success-600); color: #fff; }
.btn-success:hover { background: var(--success-700); color: #fff; }

.btn-danger { background: var(--danger-600); color: #fff; }
.btn-danger:hover { background: var(--danger-700); color: #fff; }

.btn-warning { background: var(--warning-600); color: #fff; }
.btn-warning:hover { background: var(--warning-700); color: #fff; }

.btn-outline-danger { background: transparent; color: var(--danger-600); border-color: var(--danger-500); }
.btn-outline-danger:hover { background: var(--danger-50); }

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 6px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: var(--radius); }
.btn-lg .icon { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }
.btn-icon .icon { width: 16px; height: 16px; }

.btn-group { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); }
.btn-group .btn { border-radius: 0; border: 0; border-inline-end: 1px solid var(--border); }
.btn-group .btn:last-child { border-inline-end: 0; }
.btn-group .btn.active { background: var(--brand-600); color: #fff; }

/* ------------------------------------------------------------------ form -- */
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label {
    font-size: 12.5px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 5px;
}
.field .req { color: var(--danger-500); }
.field .hint { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }

.input, .select, .textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit; font-size: 13.5px; color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    appearance: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-subtle); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; }
.input.error, .select.error, .textarea.error { border-color: var(--danger-500); }
.textarea { min-height: 86px; resize: vertical; line-height: 1.6; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-inline-end: 12px;
    padding-inline-start: 34px;
}
html[dir="ltr"] .select { background-position: right 12px center; padding-inline-start: 12px; padding-inline-end: 34px; }

.input-group { display: flex; }
.input-group .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group .addon {
    display: grid; place-items: center; padding: 0 12px;
    background: var(--surface-3); border: 1px solid var(--border-strong); border-inline-start: 0;
    border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm);
    font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
}

.field-error { font-size: 11.5px; color: var(--danger-600); font-weight: 500; }

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input[type="checkbox"], .check input[type="radio"] {
    width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0;
    accent-color: var(--brand-600); cursor: pointer;
}
.check-text { line-height: 1.5; }
.check-text small { display: block; color: var(--text-muted); font-size: 11.5px; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 40px; height: 22px; border-radius: 99px; flex-shrink: 0;
    background: var(--border-strong); position: relative;
    transition: background var(--t);
}
.switch-track::after {
    content: ''; position: absolute; top: 3px; inset-inline-start: 3px;
    width: 16px; height: 16px; border-radius: 99px; background: #fff;
    transition: transform var(--t); box-shadow: var(--shadow-xs);
}
.switch input:checked + .switch-track { background: var(--brand-600); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
html[dir="rtl"] .switch input:checked + .switch-track::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--brand-100); }

.radio-cards { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.radio-card {
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 11px 13px; cursor: pointer; display: flex; align-items: center; gap: 9px;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.radio-card:hover { border-color: var(--brand-400); }
.radio-card input { accent-color: var(--brand-600); }
.radio-card.selected, .radio-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
fieldset legend {
    font-size: 13px; font-weight: 700; color: var(--text);
    padding: 0 0 10px; margin-bottom: 14px; width: 100%;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
fieldset legend .icon { width: 16px; height: 16px; color: var(--brand-600); }

/* ---------------------------------------------------------------- table -- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: start; font-weight: 700; font-size: 12px;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
    padding: 11px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--brand-600); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; white-space: nowrap; }
.table .actions-cell { white-space: nowrap; width: 1%; }
.table-compact td, .table-compact th { padding: 8px 11px; }
.table-fixed { table-layout: fixed; }

.table-toolbar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.table-toolbar .search { flex: 1; min-width: 180px; max-width: 340px; position: relative; }
.table-toolbar .search .input { padding-inline-start: 34px; }
html[dir="ltr"] .table-toolbar .search .input { padding-inline-start: 12px; padding-inline-end: 34px; }
.table-toolbar .search .icon {
    position: absolute; top: 50%; transform: translateY(-50%);
    inset-inline-start: 11px; width: 15px; height: 15px; color: var(--text-subtle); pointer-events: none;
}
html[dir="ltr"] .table-toolbar .search .icon { inset-inline-start: auto; inset-inline-end: 11px; }

/* ---------------------------------------------------------------- badge -- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    font-size: 11.5px; font-weight: 700; line-height: 1.5;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; }
.badge-success { background: var(--success-50); color: var(--success-700); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); }
.badge-danger  { background: var(--danger-50);  color: var(--danger-700); }
.badge-info    { background: var(--info-50);    color: var(--info-600); }
.badge-orange  { background: var(--orange-50);  color: var(--orange-600); }
.badge-brand   { background: var(--brand-50);   color: var(--brand-700); }
.badge-neutral { background: var(--surface-3);  color: var(--text-muted); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: var(--radius-full);
    background: var(--surface-3); color: var(--text-muted);
    font-size: 12.5px; font-weight: 600;
}
.pill.active { background: var(--brand-600); color: #fff; }

/* --------------------------------------------------------------- avatar -- */
.avatar {
    width: 36px; height: 36px; border-radius: 99px;
    display: grid; place-items: center; flex-shrink: 0;
    font-size: 12.5px; font-weight: 700; color: #fff;
    background: var(--brand-600); overflow: hidden;
    user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 52px; height: 52px; font-size: 17px; }
.avatar-xl { width: 92px; height: 92px; font-size: 30px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-inline-start: -9px; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }

.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell-text { min-width: 0; }
.user-cell-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-cell-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------------- alerts -- */
.alert {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 12px 15px; border-radius: var(--radius);
    font-size: 13.5px; margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-title { font-weight: 700; margin-bottom: 2px; }
.alert-success { background: var(--success-50); color: var(--success-700); border-color: var(--success-100); }
.alert-error, .alert-danger { background: var(--danger-50); color: var(--danger-700); border-color: var(--danger-100); }
.alert-warning { background: var(--warning-50); color: var(--warning-700); border-color: var(--warning-100); }
.alert-info { background: var(--info-50); color: var(--info-600); border-color: var(--info-100); }
.alert-close { margin-inline-start: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .55; padding: 0; }
.alert-close:hover { opacity: 1; }

/* toast */
.toast-wrap {
    position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 200;
    display: flex; flex-direction: column; gap: 9px; max-width: 380px;
}
.toast {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 12px 15px; display: flex; gap: 10px; align-items: flex-start;
    font-size: 13.5px; animation: toast-in .25s cubic-bezier(.4,0,.2,1);
    border-inline-start: 3px solid var(--brand-500);
}
.toast.success { border-inline-start-color: var(--success-500); }
.toast.error { border-inline-start-color: var(--danger-500); }
.toast.warning { border-inline-start-color: var(--warning-500); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- modal -- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
    display: none; align-items: flex-start; justify-content: center;
    padding: 28px 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); width: 100%; max-width: 580px;
    animation: modal-in .2s cubic-bezier(.4,0,.2,1);
    margin: auto;
}
.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1120px; }
.modal-sm { max-width: 420px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { margin-inline-end: auto; font-size: 16px; }
.modal-body { padding: 20px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* -------------------------------------------------------------- dropdown -- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 70;
    min-width: 210px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: none; animation: modal-in .14s ease;
}
.dropdown-menu.open { display: block; }
.dropdown-menu.wide { min-width: 330px; }
.dropdown-item {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 11px; border-radius: 6px;
    font-size: 13.5px; color: var(--text); cursor: pointer;
    border: 0; background: none; width: 100%; text-align: start;
    font-family: inherit;
    transition: background var(--t-fast);
}
.dropdown-item:hover { background: var(--surface-hover); color: var(--text); }
.dropdown-item.danger { color: var(--danger-600); }
.dropdown-item.danger:hover { background: var(--danger-50); }
.dropdown-item .icon { width: 16px; height: 16px; opacity: .7; }
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 0; }
.dropdown-head { padding: 9px 11px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ----------------------------------------------------------------- tabs -- */
.tabs {
    display: flex; gap: 2px; border-bottom: 1px solid var(--border);
    margin-bottom: 18px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 10px 15px; font-size: 13.5px; font-weight: 600;
    color: var(--text-muted); cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    background: none; border-top: 0; border-inline: 0; font-family: inherit;
    transition: color var(--t-fast), border-color var(--t-fast);
    display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.tab .count { background: var(--surface-3); color: var(--text-muted); font-size: 11px; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.tab.active .count { background: var(--brand-50); color: var(--brand-700); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------- pagination -- */
.pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; padding: 13px 16px;
    border-top: 1px solid var(--border);
}
.pagination-info { font-size: 12.5px; color: var(--text-muted); }
.pagination-pages { display: flex; gap: 4px; align-items: center; }
.page-btn {
    min-width: 32px; height: 32px; padding: 0 9px;
    display: grid; place-items: center;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast);
}
.page-btn:hover { background: var(--surface-hover); color: var(--text); }
.page-btn.active { background: var(--brand-600); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-gap { color: var(--text-subtle); padding: 0 3px; }

/* ----------------------------------------------------------- empty state -- */
.empty {
    padding: 52px 24px; text-align: center; color: var(--text-muted);
}
.empty-icon {
    width: 62px; height: 62px; margin: 0 auto 16px;
    border-radius: 18px; display: grid; place-items: center;
    background: var(--surface-3); color: var(--text-subtle);
}
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 15.5px; color: var(--text); margin-bottom: 5px; }
.empty p { font-size: 13.5px; max-width: 400px; margin: 0 auto 16px; }

/* --------------------------------------------------------------- lists -- */
.list { display: flex; flex-direction: column; }
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    transition: background var(--t-fast);
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 13.5px; }
.list-item-meta { font-size: 12px; color: var(--text-muted); }
.list-item-end { margin-inline-start: auto; text-align: end; flex-shrink: 0; }

/* ------------------------------------------------------------- timeline -- */
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before {
    content: ''; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; inset-inline-start: -26px; top: 2px;
    width: 18px; height: 18px; border-radius: 99px;
    background: var(--surface); border: 2px solid var(--brand-500);
    display: grid; place-items: center;
}
.timeline-dot.success { border-color: var(--success-500); }
.timeline-dot.danger { border-color: var(--danger-500); }
.timeline-dot.muted { border-color: var(--border-strong); }
.timeline-dot .icon { width: 10px; height: 10px; color: var(--brand-600); }
.timeline-title { font-weight: 600; font-size: 13.5px; }
.timeline-meta { font-size: 12px; color: var(--text-muted); }
.timeline-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ----------------------------------------------------------- data pairs -- */
.pairs { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pairs.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pairs.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pair { background: var(--surface); padding: 11px 14px; }
.pair-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; }
.pair-value { font-size: 13.5px; font-weight: 600; word-break: break-word; }

.detail-list { display: flex; flex-direction: column; gap: 11px; }
.detail-row { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; }
.detail-row dt { color: var(--text-muted); min-width: 130px; flex-shrink: 0; font-size: 12.5px; }
.detail-row dd { margin: 0; font-weight: 600; }

/* --------------------------------------------------------------- charts -- */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-tip {
    position: absolute; pointer-events: none; z-index: 5;
    background: var(--text); color: var(--surface);
    padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
    white-space: nowrap; opacity: 0; transition: opacity var(--t-fast);
    box-shadow: var(--shadow-md);
}
.chart-tip.show { opacity: 1; }

.bar-row { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; font-size: 13px; }
.bar-row .bar-label { width: 120px; flex-shrink: 0; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 9px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--brand-500); transition: width .5s cubic-bezier(.4,0,.2,1); }
.bar-row .bar-value { width: 48px; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }

.progress { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); border-radius: 99px; transition: width .4s ease; }
.progress.success > span { background: var(--success-500); }
.progress.warning > span { background: var(--warning-500); }
.progress.danger > span { background: var(--danger-500); }

/* ------------------------------------------------------------ attendance -- */
.punch-card {
    background: linear-gradient(140deg, var(--brand-600), var(--brand-800) 65%, var(--teal-600));
    color: #fff; border-radius: var(--radius-xl);
    padding: 26px; position: relative; overflow: hidden;
    box-shadow: 0 16px 40px rgba(46, 100, 120, .3);
}
.punch-card::after {
    content: ''; position: absolute; inset-block-start: -60px; inset-inline-end: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.punch-card::before {
    content: ''; position: absolute; inset-block-end: -80px; inset-inline-start: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.punch-clock { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.punch-date { opacity: .85; font-size: 13.5px; margin-top: 5px; }
.punch-status { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; }
.punch-actions { display: flex; gap: 10px; margin-top: 20px; position: relative; z-index: 2; flex-wrap: wrap; }
.punch-btn {
    flex: 1; min-width: 140px;
    background: rgba(255,255,255,.16); color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    padding: 14px 18px; border-radius: var(--radius);
    font-size: 14.5px; font-weight: 700; font-family: inherit;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    transition: background var(--t-fast), transform var(--t-fast);
    backdrop-filter: blur(6px);
}
.punch-btn:hover:not(:disabled) { background: rgba(255,255,255,.26); }
.punch-btn:active:not(:disabled) { transform: translateY(1px); }
.punch-btn:disabled { opacity: .45; cursor: not-allowed; }
.punch-btn.solid { background: #fff; color: var(--brand-700); border-color: #fff; }
.punch-btn.solid:hover:not(:disabled) { background: rgba(255,255,255,.9); }

.geo-status {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px; border-radius: var(--radius);
    background: rgba(255,255,255,.12); font-size: 12.5px;
    margin-top: 16px; position: relative; z-index: 2;
    border: 1px solid rgba(255,255,255,.16);
}
.geo-status .icon { width: 17px; height: 17px; flex-shrink: 0; }
.geo-status.ok { background: rgba(16, 185, 129, .22); border-color: rgba(16,185,129,.35); }
.geo-status.warn { background: rgba(245, 158, 11, .22); border-color: rgba(245,158,11,.35); }
.geo-status.err { background: rgba(239, 68, 68, .22); border-color: rgba(239,68,68,.35); }

.att-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.att-day {
    aspect-ratio: 1; border-radius: 7px;
    display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700;
    background: var(--surface-3); color: var(--text-muted);
    cursor: default; position: relative;
    transition: transform var(--t-fast);
}
.att-day:hover { transform: scale(1.09); z-index: 2; }
.att-day.present { background: var(--success-100); color: var(--success-700); }
.att-day.late { background: var(--warning-100); color: var(--warning-700); }
.att-day.absent { background: var(--danger-100); color: var(--danger-700); }
.att-day.leave { background: var(--info-100); color: var(--info-600); }
.att-day.holiday { background: var(--brand-100); color: var(--brand-700); }
.att-day.weekend { background: var(--surface-3); color: var(--text-subtle); opacity: .6; }
.att-day.remote { background: var(--orange-100); color: var(--orange-600); }
.att-day.half_day { background: var(--orange-100); color: var(--orange-600); }
.att-day.missing_checkout { background: var(--orange-100); color: var(--orange-600); }
.att-day.upcoming, .att-day.before_hire { background: transparent; color: var(--text-subtle); opacity: .35; }

.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* map */
.geo-map {
    width: 100%; height: 420px; border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    background: var(--surface-3); position: relative;
}
.map-placeholder { display: grid; place-items: center; height: 100%; color: var(--text-muted); text-align: center; padding: 20px; }

/* --------------------------------------------------------------- kanban -- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { min-width: 268px; flex: 1; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border); }
.kanban-col-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.kanban-col-head .count { background: var(--surface-3); color: var(--text-muted); font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-inline-start: auto; }
.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.kanban-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 11px 13px; box-shadow: var(--shadow-xs); cursor: pointer;
    transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* -------------------------------------------------------------- org chart -- */
.org-tree { padding: 10px 0; }
.org-node { position: relative; padding-inline-start: 22px; }
.org-node::before {
    content: ''; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0;
    width: 1px; background: var(--border);
}
.org-node:last-child::before { bottom: auto; height: 22px; }
.org-card {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 13px; margin: 5px 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); position: relative;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.org-card::before {
    content: ''; position: absolute; inset-inline-start: -14px; top: 50%;
    width: 14px; height: 1px; background: var(--border);
}
.org-card:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.org-root > .org-card::before { display: none; }
.org-root { padding-inline-start: 0; }
.org-root::before { display: none; }

/* ---------------------------------------------------------------- login -- */
.auth-page {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--bg);
}
.auth-aside {
    background: linear-gradient(150deg, var(--brand-700) 0%, var(--brand-900) 55%, #0f172a 100%);
    color: #fff; padding: 52px 48px; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.auth-aside::before {
    content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(60,120,144,.35), transparent 70%);
    top: -140px; inset-inline-end: -140px;
}
.auth-aside::after {
    content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,.3), transparent 70%);
    bottom: -120px; inset-inline-start: -100px;
}
.auth-aside-content { position: relative; z-index: 2; margin: auto 0; }
.auth-aside h2 { font-size: 30px; margin-bottom: 14px; line-height: 1.3; }
.brand-wordmark { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: -.01em; }
.auth-aside p { opacity: .8; font-size: 15px; max-width: 420px; line-height: 1.8; }
.auth-features { display: flex; flex-direction: column; gap: 15px; margin-top: 34px; }
.auth-feature { display: flex; gap: 13px; align-items: flex-start; }
.auth-feature .icon-box {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: rgba(255,255,255,.13); display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.14);
}
.auth-feature strong { display: block; font-size: 14px; margin-bottom: 2px; }
.auth-feature span { font-size: 12.5px; opacity: .72; line-height: 1.6; }

/* ------------------------------------------------- mobile splash screen -- */
.mobile-splash {
    display: none; /* shown only below the 992px breakpoint, see above */
    position: fixed; inset: 0; z-index: 200;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; text-align: center; padding: 24px;
    background: linear-gradient(150deg, var(--brand-700) 0%, var(--brand-900) 55%, #0f172a 100%);
    color: #fff;
    opacity: 1; transition: opacity .4s ease;
}
.mobile-splash.fade-out { opacity: 0; pointer-events: none; }
.mobile-splash-badge {
    position: relative; width: 108px; height: 108px;
    display: grid; place-items: center;
    animation: splash-badge-in .6s cubic-bezier(.3, 1.4, .4, 1) both;
}
.mobile-splash-badge-fill {
    width: 100%; height: 100%; border-radius: 28px;
    background: linear-gradient(135deg, var(--brand-500), var(--teal-500));
    display: grid; place-items: center;
    box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.mobile-splash-badge-fill .icon { width: 52px; height: 52px; color: #fff; }
.mobile-splash-ring {
    position: absolute; inset: -10px; border-radius: 34px;
    border: 2px solid rgba(255,255,255,.4);
    animation: splash-ring 1.8s ease-out infinite;
}
.mobile-splash-ring.delay { animation-delay: .9s; }
.mobile-splash-name {
    font-family: 'Poppins', sans-serif;
    font-size: 29px; font-weight: 800; line-height: 1.3;
    text-shadow: 0 2px 16px rgba(0,0,0,.25);
    animation: splash-text-in .5s ease .25s both;
}
.mobile-splash-tagline {
    font-size: 15px; font-weight: 500; opacity: .82; max-width: 260px; line-height: 1.7;
    margin-top: -8px;
    animation: splash-text-in .5s ease .4s both;
}
.mobile-splash-dots {
    display: flex; gap: 6px; margin-top: 6px;
    animation: splash-text-in .5s ease .55s both;
}
.mobile-splash-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55);
    animation: splash-dot 1.2s ease-in-out infinite;
}
.mobile-splash-dots span:nth-child(2) { animation-delay: .15s; }
.mobile-splash-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes splash-badge-in {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes splash-text-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes splash-ring {
    0%   { opacity: .7; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.35); }
}
@keyframes splash-dot {
    0%, 80%, 100% { opacity: .35; transform: scale(.85); }
    40%           { opacity: 1;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-splash-badge, .mobile-splash-name, .mobile-splash-tagline,
    .mobile-splash-dots, .mobile-splash-ring, .mobile-splash-dots span { animation: none; }
}

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-logo {
    width: 54px; height: 54px; border-radius: 15px; margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(60,120,144,.35);
}
.auth-logo svg { display: block; width: 100%; height: 100%; border-radius: 15px; }
.auth-box h1 { font-size: 25px; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-muted); margin-bottom: 26px; font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 20px 0; color: var(--text-subtle); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--text-muted); }

/* biometric button */
.bio-btn {
    width: 100%; padding: 13px;
    background: var(--surface); border: 1.5px solid var(--border-strong);
    border-radius: var(--radius); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; font-weight: 600; color: var(--text); font-family: inherit;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.bio-btn:hover:not(:disabled) { border-color: var(--brand-500); background: var(--brand-50); }
.bio-btn:disabled { opacity: .5; cursor: not-allowed; }
.bio-btn .icon { width: 21px; height: 21px; color: var(--brand-600); }

.fingerprint-pulse { position: relative; display: inline-grid; place-items: center; }
.fingerprint-pulse::after {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid var(--brand-400); opacity: 0;
    animation: pulse-ring 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(.75); opacity: .9; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------------------------------------------- payslip -- */
.payslip { background: #fff; color: #0f172a; padding: 34px; border-radius: var(--radius-lg); }
.payslip-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid #0f172a; padding-bottom: 18px; margin-bottom: 20px; }
.payslip-title { font-size: 21px; font-weight: 800; }
.payslip-section { margin-bottom: 20px; }
.payslip-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.payslip-table th { background: #f1f5f9; padding: 9px 12px; text-align: start; font-weight: 700; border: 1px solid #cbd5e1; }
.payslip-table td { padding: 8px 12px; border: 1px solid #e2e8f0; }
.payslip-total { background: #0f172a; color: #fff; padding: 14px 18px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; }
.payslip-sign { display: flex; justify-content: space-between; margin-top: 50px; font-size: 13px; }
.payslip-sign div { text-align: center; min-width: 170px; }
.payslip-sign .line { border-top: 1px solid #94a3b8; margin-top: 44px; padding-top: 6px; }

/* letter / print document */
.doc-sheet {
    background: #fff; color: #0f172a; padding: 48px 56px;
    border-radius: var(--radius-lg); line-height: 2;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.doc-sheet h2 { margin-bottom: 20px; }
.doc-watermark { text-align: center; color: #94a3b8; font-size: 11px; margin-top: 44px; letter-spacing: .08em; }

/* ---------------------------------------------------------------- misc -- */
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-success { color: var(--success-600); }
.text-danger { color: var(--danger-600); }
.text-warning { color: var(--warning-600); }
.text-brand { color: var(--brand-600); }
.fs-sm { font-size: 12.5px; }
.fs-xs { font-size: 11.5px; }
.fs-lg { font-size: 16px; }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 6px; } .gap-2 { gap: 11px; } .gap-3 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; stroke-width: 2; }
svg.icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.spinner {
    width: 17px; height: 17px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin .65s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
    border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.tooltip { position: relative; }
.tooltip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 7px); inset-inline-start: 50%;
    transform: translateX(50%);
    background: var(--text); color: var(--surface);
    padding: 5px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity var(--t-fast); z-index: 80;
}
html[dir="ltr"] .tooltip::after { transform: translateX(-50%); }
.tooltip:hover::after { opacity: 1; }

.impersonation-bar {
    background: var(--warning-600); color: #fff;
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 12px; justify-content: center;
}
.impersonation-bar a { color: #fff; text-decoration: underline; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 992px) {
    /* The drawer is parked outside the viewport; in RTL that lies to the right,
       which would otherwise stretch the scrollable area and shift the page. */
    html, body { overflow-x: hidden; max-width: 100%; }
    .app { width: 100%; }
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-xl); }
    html[dir="rtl"] .sidebar { transform: translateX(100%); }
    /* Needs the same specificity as the RTL rule above, or the drawer never
       slides in on Arabic (right-to-left) screens. */
    .sidebar.open,
    html[dir="rtl"] .sidebar.open { transform: none; }
    .main { margin-inline-start: 0; }
    .menu-toggle { display: grid; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .mobile-splash { display: flex; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55;
        backdrop-filter: blur(2px);
    }

    /* Everything below belongs to the same "mobile chrome" switch as the
       hamburger/drawer above — keeping it on the same breakpoint avoids a
       768-992px gap where the drawer is on but these fixes aren't. */
    .topbar { padding: 0 12px; gap: 8px; }
    /* Six icon buttons plus the clock never fit a phone's width — the quick
       punch shortcut is redundant with the big punch button and the sidebar's
       own kiosk link, so it's the one to drop first. */
    .topbar-punch { display: none; }
    .icon-btn { width: 37px; height: 37px; }
    .icon-btn .icon { width: 19px; height: 19px; }
    .topbar-title { min-width: 0; overflow: hidden; }
    .topbar-title small {
        font-size: 15px; font-weight: 700; color: var(--text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* Dropdowns (notifications, language, account) are anchored to their
       trigger icon, which sits well left of center on a phone — a 330px
       panel from there runs straight off the screen. Pin it under the
       header instead, full-width, regardless of which icon opened it. */
    .dropdown-menu {
        position: fixed; inset-inline: 10px; top: var(--topbar-h);
        min-width: 0; max-width: none;
        max-height: calc(100vh - var(--topbar-h) - 16px); overflow-y: auto;
    }
    /* 16px stops Safari/Chrome on iPhone from zooming the page on focus. */
    .input, .select, .textarea { font-size: 16px; padding: 11px 12px; }
    /* Comfortable touch targets (~44px) instead of mouse-sized ones. */
    .btn { padding: 11px 16px; font-size: 14px; }
    .btn-sm { padding: 9px 13px; font-size: 13px; }
    .btn-icon { padding: 10px; }
    .nav-item { padding: 11px 12px; }
    .modal-foot { flex-wrap: wrap; }
    .modal-foot .btn { flex: 1 1 auto; }
    .hide-sm { display: none; }
}

@media (max-width: 768px) {
    .content { padding: 15px; }
    .grid, .grid-2, .grid-3, .grid-4, .grid-5, .grid-auto { grid-template-columns: minmax(0, 1fr); }
    .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .pairs.cols-2, .pairs.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .span-2 { grid-column: auto; }
    .page-head h1 { font-size: 19px; }
    .stat-value { font-size: 22px; }
    .punch-clock { font-size: 36px; }
    .modal-body { max-height: calc(100vh - 170px); }
    .toast-wrap { inset-inline: 14px; bottom: 14px; max-width: none; }
    .table th, .table td { padding: 10px 11px; }
    .detail-row { flex-direction: column; gap: 2px; }
    .detail-row dt { min-width: 0; }
    .doc-sheet { padding: 24px; }
}

/* ---------------------------------------------------------------- print -- */
@media print {
    .sidebar, .topbar, .page-actions, .no-print, .table-toolbar, .pagination,
    .toast-wrap, .modal-backdrop, .tabs, .impersonation-bar { display: none !important; }
    .main { margin: 0 !important; }
    .content { padding: 0 !important; }
    body { background: #fff !important; font-size: 12px; }
    .card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; break-inside: avoid; }
    .payslip, .doc-sheet { padding: 0 !important; box-shadow: none !important; border: 0 !important; }
    a { color: inherit !important; text-decoration: none !important; }
    .print-only { display: block !important; }
    @page { margin: 14mm; }
}
.print-only { display: none; }

/* ============================================================
   Fingerprint punch button
   ============================================================ */
.punch-fp {
    background: linear-gradient(145deg, var(--brand-700), var(--brand-500) 55%, var(--brand-600));
    border-radius: var(--radius-xl);
    color: #fff;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.punch-fp::after {
    content: '';
    position: absolute;
    inset-inline-end: -70px;
    top: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.punch-fp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.punch-fp-clock {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.punch-fp-date { font-size: 12.5px; opacity: .85; margin-top: 3px; }
.punch-fp-times { display: flex; gap: 10px; }
.punch-fp-time {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 7px 12px;
    min-width: 76px;
    text-align: center;
    backdrop-filter: blur(4px);
}
.punch-fp-time-label { display: block; font-size: 10.5px; opacity: .8; margin-bottom: 2px; }
.punch-fp-time strong { font-size: 15px; font-variant-numeric: tabular-nums; }

.punch-fp-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0 6px;
}

/* the button */
.fp-btn {
    position: relative;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .78));
    color: var(--brand-700);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .6);
    transition: transform .18s ease, box-shadow .18s ease, color .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.fp-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); }
.fp-btn:active:not(:disabled) { transform: scale(.96); }
.fp-btn:disabled { cursor: default; opacity: .75; }
.fp-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 4px; }
.fp-btn.is-out { color: var(--warning-600); }
.fp-btn.is-done { color: var(--success-600); }

.fp-glyph svg { width: 76px; height: 76px; }
.fp-glyph { line-height: 0; transition: opacity .2s ease, transform .2s ease; }
.fp-check {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
    color: var(--success-600);
}
.fp-check svg { width: 62px; height: 62px; }
.fp-btn.success .fp-glyph { opacity: 0; transform: scale(.7); }
.fp-btn.success .fp-check { opacity: 1; transform: scale(1); }

/* scanning animation */
.fp-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    opacity: 0;
    pointer-events: none;
}
.fp-btn.busy .fp-ring { animation: fp-pulse 1.5s ease-out infinite; }
.fp-btn.busy .fp-ring.delay { animation-delay: .75s; }
.fp-btn.busy .fp-glyph { animation: fp-scan 1.3s ease-in-out infinite; }
@keyframes fp-pulse {
    0%   { opacity: .8; transform: scale(.92); }
    100% { opacity: 0;  transform: scale(1.35); }
}
@keyframes fp-scan {
    0%, 100% { opacity: .35; }
    50%      { opacity: 1; }
}
.fp-btn.error { animation: fp-shake .42s ease; color: var(--danger-600); }
@keyframes fp-shake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-9px); }
    45%  { transform: translateX(7px); }
    70%  { transform: translateX(-4px); }
}

.punch-fp-label { font-size: 15px; font-weight: 600; text-align: center; min-height: 20px; }
.punch-fp-geo { min-height: 26px; }
.geo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 4px 12px;
}
.geo-pill svg { width: 14px; height: 14px; }
.geo-pill.ok   { background: rgba(16, 185, 129, .28); border-color: rgba(16, 185, 129, .45); }
.geo-pill.warn { background: rgba(245, 158, 11, .3); border-color: rgba(245, 158, 11, .5); }
.geo-pill.bad  { background: rgba(239, 68, 68, .32); border-color: rgba(239, 68, 68, .5); }
.punch-fp-pin {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    opacity: .85;
    text-align: center;
}
.punch-fp-pin svg { width: 13px; height: 13px; }

.punch-fp.compact { padding: 16px; }
.punch-fp.compact .punch-fp-body { padding: 14px 0 2px; }
.punch-fp.compact .fp-btn { width: 112px; height: 112px; }
.punch-fp.compact .fp-glyph svg { width: 58px; height: 58px; }
.punch-fp.compact .punch-fp-clock { font-size: 24px; }

@media (max-width: 560px) {
    .punch-fp-times { width: 100%; justify-content: space-between; }
    .punch-fp-time { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fp-btn, .fp-glyph, .fp-check { transition: none; }
    .fp-btn.busy .fp-ring, .fp-btn.busy .fp-glyph, .fp-btn.error { animation: none; }
}

/* ============================================================
   Checkable pick-list (used by enrolment / invitation modals)
   ============================================================ */
.check-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 4px;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13.5px;
}
.check-row:hover { background: var(--surface-3); }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand-600); flex: none; }
.check-row span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.check-row small { font-size: 11px; }
.check-row.is-hidden { display: none; }

/* stage tracker (recruitment pipeline on a candidate page) */
.stage-track {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.stage-step {
    flex: 1;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--text-muted);
    position: relative;
}
.stage-step::before {
    content: '';
    position: absolute;
    top: 6px;
    inset-inline: 0;
    height: 2px;
    background: var(--border);
}
.stage-step:first-child::before { inset-inline-start: 50%; }
.stage-step:last-child::before { inset-inline-end: 50%; }
.stage-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--border);
    position: relative;
    z-index: 2;
}
.stage-step.done { color: var(--brand-600); }
.stage-step.done .stage-dot { background: var(--brand-500); border-color: var(--brand-500); }
.stage-step.done::before { background: var(--brand-200); }
.stage-step.current .stage-dot { box-shadow: 0 0 0 4px var(--brand-100); }
.stage-step.current { font-weight: 600; color: var(--brand-700); }

/* public careers page */
.public-page { max-width: 880px; margin: 0 auto; padding: 24px 16px 60px; }
.public-head { text-align: center; margin-bottom: 26px; }
.public-head h1 { font-size: 28px; margin-bottom: 6px; }
.job-card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   Survey form + results
   ============================================================ */
.survey-q { padding: 14px 0; border-bottom: 1px solid var(--border); }
.survey-q:last-of-type { border-bottom: 0; }
.survey-q-title { display: flex; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.survey-q-num {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-700);
    display: grid; place-items: center;
    font-size: 11.5px;
}
.scale-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-opt { position: relative; cursor: pointer; }
.scale-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale-opt span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
}
.scale-opt.wide span { min-width: 78px; }
.scale-opt:hover span { border-color: var(--brand-400); }
.scale-opt input:checked + span {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}
.scale-opt input:disabled + span { opacity: .55; cursor: default; }

.survey-result { padding: 12px 0; border-bottom: 1px solid var(--border); }
.survey-result:last-child { border-bottom: 0; }
.quote-list { display: flex; flex-direction: column; gap: 8px; }
.quote {
    background: var(--surface-2);
    border-inline-start: 3px solid var(--brand-300);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* compact select used inside dense matrix tables */
.select-sm { height: 32px; padding-block: 0; font-size: 12.5px; min-width: 110px; }

/* one-off secret reveal (device API key, tokens) */
.code-block {
    display: block;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 12.5px;
    word-break: break-all;
}

/* compact input for inline matrix editing */
.input-sm { height: 32px; padding-block: 0; font-size: 12.5px; }
.badge-primary { background: var(--brand-50); color: var(--brand-700); }
