:root {
    --accent: #f5c800;
    --bg-primary: #0c0c0c;
    --bg-secondary: #141414;
    --bg-tertiary: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-strong: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --text-quaternary: rgba(255, 255, 255, 0.22);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --hover-bg-strong: rgba(255, 255, 255, 0.16);
    --active-bg: rgba(245, 200, 0, 0.12);
    --active-text: #f5c800;
    --icon-bg: rgba(255, 255, 255, 0.06);
    --icon-bg-hover: rgba(255, 255, 255, 0.1);
    --gradient-start: #f5c800;
    --gradient-end: #c8a000;
    --shadow-color: rgba(245, 200, 0, 0.2);
    --danger: #f43f5e;
    --ok: #34d399;
    --info: #60a5fa;
}

[data-theme="light"] {
    --accent: #c8a000;
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #efefef;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-strong: rgba(0, 0, 0, 0.12);
    --text-primary: #0c0c0c;
    --text-secondary: #444444;
    --text-tertiary: #666666;
    --text-quaternary: #999999;
    --hover-bg: rgba(0, 0, 0, 0.06);
    --hover-bg-strong: rgba(0, 0, 0, 0.1);
    --active-bg: rgba(245, 200, 0, 0.18);
    --active-text: #9a7a00;
    --icon-bg: #ebebeb;
    --icon-bg-hover: #e0e0e0;
    --shadow-color: rgba(245, 200, 0, 0.15);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: Inter, sans-serif; }

.jop-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg-primary); }
.jop-sidebar {
    width: min(86vw, 300px); background: var(--bg-secondary); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; z-index: 50; overflow-y: auto;
    position: fixed; inset: 0 auto 0 0; transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1), width .2s ease;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.jop-sidebar.open { transform: translateX(0); }
.jop-sidebar-close {
    display: flex; position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 12px;
    width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--icon-bg);
    color: var(--text-secondary); align-items: center; justify-content: center; cursor: pointer;
}
.jop-overlay { display: none; }
.jop-overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }
.jop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.jop-header {
    min-height: 56px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color-strong);
    display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
    padding-top: env(safe-area-inset-top); gap: 8px; flex-shrink: 0;
}
.jop-header-left { min-width: 0; flex: 1; }
.jop-header-left > div { min-width: 0; }
.jop-header-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jop-header-subtitle { display: none; font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.jop-content { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.jop-page { padding: 14px; }
.jop-footer {
    flex-shrink: 0; text-align: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    font-size: 11.5px; color: var(--text-quaternary); border-top: 1px solid var(--border-color); background: var(--bg-secondary);
}
.jop-menu-btn { display: inline-flex; }
.jop-collapse-btn, .jop-ticker, .jop-header-avatar, .jop-logout-text { display: none; }
.jop-logout { width: 36px; height: 36px; padding: 0; gap: 6px; display: inline-flex; align-items: center; justify-content: center; }

.jop-brand { display: flex; align-items: center; gap: 10px; padding: 22px 52px 16px 20px; text-decoration: none; border-bottom: 1px solid var(--border-color); color: inherit; }
.jop-brand-icon {
    width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #1a1400; font-weight: 800;
    box-shadow: 0 4px 14px var(--shadow-color); flex-shrink: 0; font-size: 11px; letter-spacing: -0.4px;
}
.jop-brand-name { font-size: 14px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }
.jop-brand-sub { font-size: 10px; color: var(--text-tertiary); letter-spacing: .5px; text-transform: uppercase; }
.jop-nav-section { padding: 18px 20px 6px; font-size: 10px; font-weight: 700; color: var(--text-quaternary); letter-spacing: 1px; text-transform: uppercase; }
.jop-nav { padding: 0 10px; }
.jop-nav-link, .jop-nav-button {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 44px; border-radius: 10px;
    color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; margin-bottom: 2px;
    background: transparent; border: 0; cursor: pointer; text-align: left;
}
.jop-nav-link:hover, .jop-nav-button:hover { background: var(--hover-bg); color: var(--text-primary); }
.jop-nav-link.active { background: var(--active-bg); color: var(--active-text); }
.jop-nav-icon {
    width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(245, 200, 0, 0.1); color: #f5c800; flex-shrink: 0; font-size: 13px;
}
.jop-subnav { padding: 0 10px 6px 42px; }
.jop-subnav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-tertiary); text-decoration: none; font-size: 12.5px; }
.jop-subnav a.active, .jop-subnav a:hover { color: var(--active-text); background: var(--active-bg); }
.jop-sidebar-user {
    margin: auto 10px 12px; padding: 12px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: 12px; display: flex; align-items: center; gap: 10px;
}
.jop-avatar, .jop-header-avatar {
    width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #1a1400; font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.jop-avatar { display: flex; }
.jop-header-avatar { display: none; }
.jop-sidebar-name { font-size: 13px; font-weight: 600; }
.jop-sidebar-role { font-size: 11px; color: var(--text-tertiary); text-transform: capitalize; }
.jop-hbtn, .jop-icon-btn {
    width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--icon-bg); color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.jop-collapse-btn { display: none; }
.jop-hbtn:hover, .jop-icon-btn:hover { background: var(--hover-bg-strong); color: var(--text-primary); }
.jop-logout {
    font-size: 12px; font-weight: 700; border-radius: 8px; background: var(--danger); color: white; border: 0; cursor: pointer;
}
.jop-header-right, .jop-header-left { display: flex; align-items: center; gap: 12px; }
.jop-ticker { flex: 1; overflow: hidden; color: var(--text-secondary); font-size: 13px; white-space: nowrap; }

.jop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.jop-stat, .jop-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color-strong); border-radius: 16px; padding: 16px 18px;
}
.jop-stat-label { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.jop-stat-val { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; margin-top: 6px; word-break: break-word; }
.jop-stat-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.jop-stat-locs { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.jop-stat-locs div { display: flex; justify-content: flex-start; gap: 6px; font-size: 11px; line-height: 1.35; color: var(--text-tertiary); font-weight: 500; white-space: nowrap; }
.jop-stat-locs strong { color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.jop-card + .jop-card, .jop-stack > * + * { margin-top: 16px; }
.jop-card h2, .jop-card h3 { margin: 0 0 12px; font-size: 15px; }
.jop-toolbar, .jop-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-bottom: 14px; }
.jop-code-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; }
.jop-code-filters .jop-input { width: 148px; flex: 0 0 148px; min-height: 32px; height: 32px; padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.jop-code-filters .jop-select, .jop-code-filters input[type="date"] { width: 156px; flex: 0 0 156px; min-height: 32px; height: 32px; padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.jop-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.jop-report-grid .jop-card + .jop-card { margin-top: 0; }
.jop-report-card { text-decoration: none; color: inherit; }
.jop-report-card h2 { margin: 0; font-size: 16px; }
.jop-filter-group { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.jop-chip {
    border: 1px solid var(--border-color-strong); background: var(--bg-secondary); color: var(--text-secondary);
    border-radius: 999px; padding: 0 10px; min-height: 32px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.jop-chip.is-active { background: var(--active-bg); color: var(--active-text); border-color: var(--accent); }
.jop-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 100%; }
.jop-label { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-tertiary); }
.jop-input, .jop-select, .jop-textarea {
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color-strong);
    background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 16px;
}
.jop-textarea { min-height: 140px; resize: vertical; }
.jop-input:focus, .jop-select:focus, .jop-textarea:focus { outline: none; border-color: var(--accent); }
.jop-btn, .jop-btn-ghost, .jop-btn-danger {
    border: 0; border-radius: 10px; padding: 12px 14px; min-height: 44px; font-weight: 700; font-size: 14px;
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.jop-btn { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #1a1400; }
.jop-btn-ghost { background: var(--icon-bg); color: var(--text-primary); }
.jop-btn-danger { background: rgba(244, 63, 94, .15); color: #fb7185; }
.jop-table-wrap { overflow: auto; }
.jop-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jop-table th { text-align: left; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-tertiary); padding: 10px 8px; border-bottom: 1px solid var(--border-color); }
.jop-table td { padding: 10px 8px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.jop-row-reveal { cursor: pointer; }
.jop-row-reveal:hover td { background: var(--hover-bg); }
.jop-row-duplicate td,
.jop-row-duplicate .jop-input,
.jop-row-duplicate .jop-select { color: #e11d48; }
.jop-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; background: var(--icon-bg); color: var(--text-secondary); text-transform: capitalize; }
.jop-badge.available { background: rgba(22, 163, 74, .18); color: #15803d; }
.jop-badge.allocated { background: rgba(96, 165, 250, .15); color: var(--info); }
.jop-badge.used { background: rgba(245, 200, 0, .28); color: #a16207; }
.jop-badge.returned { background: rgba(244, 63, 94, .16); color: #e11d48; }
.jop-badge.duplicate, .jop-badge.void { background: rgba(244, 63, 94, .15); color: #fb7185; }
.jop-row-actions { display: flex; gap: 4px; align-items: center; }
.jop-act {
    position: relative; width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0;
    background: var(--icon-bg); color: var(--text-secondary); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.jop-act:hover, .jop-act:focus { background: var(--hover-bg-strong); color: var(--text-primary); }
.jop-act.is-ready { color: #16a34a; background: rgba(22, 163, 74, .16); }
.jop-act:disabled { opacity: .38; cursor: not-allowed; }
.jop-act:disabled:hover, .jop-act:disabled:focus { background: var(--icon-bg); color: var(--text-secondary); }
.jop-act.danger { color: #e11d48; }
.jop-act span {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #1a1400; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 7px;
    border-radius: 6px; white-space: nowrap; z-index: 6; pointer-events: none;
}
.jop-act:hover span, .jop-act:focus span, .jop-act.is-open span { display: block; }
.jop-alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.jop-alert.ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.jop-alert.err { background: rgba(244, 63, 94, .12); color: #fb7185; }
.jop-error { color: #fb7185; font-size: 12px; margin: 4px 0 0; }
.jop-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.jop-modal { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-color-strong); border-radius: 16px 16px 0 0; padding: 18px; max-height: 92dvh; overflow: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.jop-modal.jop-code-view { padding: 0; overflow: hidden; }
.jop-code-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 16px 16px; background: #121212; color: #fff; }
.jop-code-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #f5c800; }
.jop-code-value { margin: 4px 0 10px; font-size: 28px; font-weight: 800; letter-spacing: .4px; line-height: 1.05; }
.jop-code-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.jop-code-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jop-code-close:hover { background: rgba(255,255,255,.16); }
.jop-code-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 14px; }
.jop-code-facts div { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.jop-code-facts dt { font-size: 10px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; color: var(--text-tertiary); }
.jop-code-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--text-primary); word-break: break-word; }
.jop-code-facts dd.is-empty { color: var(--text-tertiary); font-weight: 600; }
.jop-code-sends { padding: 0 14px 14px; }
.jop-code-sends-title { margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-tertiary); }
.jop-code-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.jop-code-table th { text-align: left; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-tertiary); padding: 6px 8px; border-bottom: 1px solid var(--border-color); }
.jop-code-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.jop-badge.sent, .jop-badge.reused { background: rgba(22, 163, 74, .16); color: #16a34a; }
.jop-badge.returned { background: rgba(244, 63, 94, .16); color: #e11d48; }
@media (max-width: 520px) { .jop-code-facts { grid-template-columns: 1fr; } }
.jop-split { display: grid; grid-template-columns: 1fr; gap: 12px; }
.jop-muted { color: var(--text-tertiary); font-size: 12px; }
.jop-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.jop-bars { display: flex; flex-direction: column; gap: 8px; }
.jop-bar-row { display: grid; grid-template-columns: 72px 1fr 32px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-secondary); }
.jop-bar { height: 8px; border-radius: 99px; background: var(--icon-bg); overflow: hidden; }
.jop-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }

.auth-shell { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; }
.auth-orb-1 { width: 460px; height: 460px; background: #f5c800; top: -180px; left: -120px; }
.auth-orb-2 { width: 360px; height: 360px; background: #b38a00; bottom: -140px; right: -80px; }
.auth-card {
    width: min(920px, 100%); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--bg-secondary);
    border: 1px solid var(--border-color-strong); position: relative; z-index: 1;
    box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 70px rgba(0,0,0,.28);
}
.auth-brand {
    display: flex; position: relative; width: 100%; padding: 28px 24px 26px; color: #fff;
    flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; overflow: hidden;
    background:
        radial-gradient(480px 320px at 0% 0%, rgba(245, 200, 0, .18), transparent 62%),
        linear-gradient(165deg, #121212 0%, #1a1a1a 52%, #0d0d0d 100%);
}
.auth-mark {
    width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #ffe14a, #c8a000); color: #1a1400; font-weight: 800; font-size: 16px;
    letter-spacing: -.4px; box-shadow: 0 14px 30px rgba(245, 200, 0, .28);
}
.auth-brand h2 { margin: 0; font-size: clamp(26px, 8vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: .9; text-align: center; text-transform: uppercase; }
.auth-brand h2 span { display: block; }
.auth-brand h2::after {
    content: ""; display: block; width: 56px; height: 3px; margin: 16px auto 0; border-radius: 99px;
    background: linear-gradient(90deg, #f5c800, rgba(245, 200, 0, 0));
}
.auth-copy { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.auth-form { flex: 1; padding: 32px 22px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { margin: 0 0 22px; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.auth-form .jop-field + .jop-field { margin-top: 16px; }
.auth-password { position: relative; }
.auth-password .jop-input { padding-right: 48px; }
.auth-password-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%); z-index: 1;
    width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text-tertiary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.auth-password-toggle:hover { color: var(--text-primary); }
.auth-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 20px; font-size: 13px; }
.auth-actions a { color: var(--active-text); font-weight: 600; text-decoration: none; }
.auth-actions a:hover { text-decoration: underline; }
.auth-form .jop-btn { padding: 12px 22px; box-shadow: 0 10px 22px rgba(245, 200, 0, .22); }
.auth-form .jop-btn:hover { filter: brightness(1.04); }
.theme-float {
    position: fixed; top: 18px; right: 18px; z-index: 5;
    background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
    box-shadow: 0 8px 24px rgba(0,0,0,.12); backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
    .jop-sidebar { width: 100%; }
    .jop-table thead { display: none; }
    .jop-table, .jop-table tbody, .jop-table tr, .jop-table td { display: block; width: 100%; }
    .jop-table tr {
        background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px;
        margin-bottom: 10px; padding: 6px 8px;
    }
    .jop-table td {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
        border: 0; padding: 7px 4px; text-align: right;
    }
    .jop-table td::before {
        content: attr(data-label); color: var(--text-tertiary); font-size: 10px; font-weight: 700;
        letter-spacing: .4px; text-transform: uppercase; text-align: left; flex: 0 0 42%;
    }
    .jop-table td:not([data-label])::before { content: none; }
    .jop-actions > .jop-btn, .jop-actions > .jop-btn-ghost, .jop-actions > a { flex: 1 1 calc(50% - 8px); }
}

@media (min-width: 768px) {
    .jop-page { padding: 18px; }
    .jop-header { padding-left: 16px; padding-right: 16px; }
    .jop-header-title { font-size: 15px; }
    .jop-header-subtitle { display: block; }
    .jop-stats { gap: 14px; }
    .jop-stat-val { font-size: 22px; }
    .jop-field { flex: 1 1 180px; }
    .jop-toolbar, .jop-actions { align-items: end; }
    .jop-input, .jop-select, .jop-textarea { font-size: 14px; padding: 10px 12px; }
    .jop-modal-back { align-items: center; padding: 20px; }
    .jop-modal { width: min(640px, 100%); border-radius: 16px; max-height: 90vh; }
    .jop-modal.jop-code-view { width: min(520px, 100%); padding: 0; }
    .auth-shell { padding: 28px; }
    .auth-form { padding: 40px 36px; }
}

@media (min-width: 1024px) {
    .jop-sidebar { position: relative; inset: auto; transform: none; width: 260px; flex-shrink: 0; padding-top: 0; }
    .jop-brand { padding-right: 20px; }
    .jop-sidebar.open { transform: none; }
    .jop-sidebar-close, .jop-overlay.show, .jop-menu-btn { display: none; }
    .jop-collapse-btn { display: inline-flex; }
    .jop-ticker, .jop-header-avatar, .jop-logout-text { display: initial; }
    .jop-ticker { display: block; }
    .jop-header-avatar { display: flex; }
    .jop-logout { width: auto; height: auto; padding: 8px 12px; }
    .jop-shell.is-collapsed .jop-sidebar { width: 76px; }
    .jop-shell.is-collapsed .jop-label,
    .jop-shell.is-collapsed .jop-brand-text,
    .jop-shell.is-collapsed .jop-nav-section,
    .jop-shell.is-collapsed .jop-user-meta { display: none; }
    .jop-header { min-height: 64px; padding: 0 24px; gap: 16px; }
    .jop-page { padding: 20px; }
    .jop-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .jop-split { grid-template-columns: 1.2fr .8fr; gap: 16px; }
    .jop-nav-link, .jop-nav-button { min-height: 0; font-size: 13.5px; }
    .auth-card { flex-direction: row; min-height: 520px; }
    .auth-brand { width: 44%; padding: 56px 40px; gap: 28px; }
    .auth-mark { width: 76px; height: 76px; border-radius: 20px; font-size: 22px; }
    .auth-brand h2 { font-size: 44px; letter-spacing: -.05em; }
    .auth-brand h2::after { width: 72px; margin-top: 28px; }
    .auth-form { padding: 52px 48px; }
}

.auth-form .jop-label { letter-spacing: .8px; }
.auth-form .jop-input {
    min-height: 48px; padding: 12px 14px; border-radius: 12px; font-size: 15px;
    background: color-mix(in srgb, var(--bg-primary) 72%, var(--bg-secondary));
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form .auth-password .jop-input { padding-right: 48px; }
.auth-form .jop-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 200, 0, .16); }
.auth-form .jop-input:-webkit-autofill,
.auth-form .jop-input:-webkit-autofill:hover,
.auth-form .jop-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
    transition: background-color 9999s ease-out;
    box-shadow: 0 0 0 1000px var(--bg-primary) inset;
}

.jop-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; width: 100%; }
.jop-quick-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0;
    min-height: 32px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-color-strong);
    background: var(--bg-secondary); color: var(--text-primary); font-size: 12px; font-weight: 700; text-decoration: none;
}
.jop-quick-btn i { color: var(--active-text); font-size: 11px; }
.jop-quick-btn:hover { border-color: var(--accent); background: var(--active-bg); }
@media (max-width: 767px) {
    .jop-quick-btn { flex-basis: calc(50% - 8px); }
}
.jop-filterbar { align-items: center; }
.jop-search-toggle { width: 34px; height: 34px; min-height: 34px; padding: 0; flex: 0 0 34px; border-radius: 9px; font-size: 13px; }
.jop-search-toggle.is-active { color: var(--active-text); background: var(--active-bg); }
.jop-search-panel { display: flex; align-items: flex-end; gap: 6px; flex: 1 1 auto; min-width: 0; }
.jop-search-panel .jop-field { flex: 0 1 132px; max-width: 180px; gap: 2px; }
.jop-search-panel .jop-field:first-child { flex-basis: 190px; max-width: 240px; }
.jop-search-panel .jop-label { font-size: 9px; letter-spacing: .4px; }
.jop-search-panel .jop-input { min-height: 32px; height: 32px; padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.jop-search-close { width: 32px; height: 32px; flex: 0 0 32px; }

@media print {
    .jop-sidebar, .jop-header, .jop-footer, .jop-toolbar, .jop-code-filters, .no-print { display: none !important; }
    .jop-shell, .jop-main, .jop-content { height: auto; overflow: visible; display: block; }
    body, .jop-card, .jop-stat { background: white; color: black; }
}
