/* Gripp Music - navy / gold app shell */
:root {
    --navy: #10192e; --navy-soft: #1d2a45; --gold: #c8a24a; --gold-soft: #e2c67e;
    --ink: #1d2433; --muted: #6b7280; --line: #e3e7ee; --page: #f5f7fb; --sidebar-w: 264px;
}
html, body { height: 100%; }
body { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
       background: var(--page); color: var(--ink); font-size: .94rem; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #101a30 0%, #0d1526 100%);
    color: #dfe5f0; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; z-index: 1040; }
.sidebar-brand { padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--gold);
    color: #101a30; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.brand-text { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.15; }
.sidebar-nav { padding: 10px 10px 16px; overflow-y: auto; flex: 1 1 auto; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px;
    margin-bottom: 1px; color: #c3cddf; text-decoration: none; border-radius: 8px;
    font-size: .86rem; font-weight: 500; }
.sidebar-nav .nav-item i { font-size: .98rem; color: #8d9bb5; width: 18px; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-item:hover i { color: var(--gold-soft); }
.sidebar-nav .nav-item.active { background: rgba(200,162,74,.15); color: #fff; }
.sidebar-nav .nav-item.active i { color: var(--gold); }
.nav-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .13em;
    color: #6f7d99; padding: 14px 12px 5px; font-weight: 600; }
.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.who-name { color: #fff; font-weight: 600; font-size: .84rem; }
.who-role { color: #8d9bb5; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px;
    display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 1030; }
.page-title { font-size: 1.04rem; font-weight: 600; margin: 0; }
.topbar-right { margin-left: auto; }
.content { padding: 22px; }

.card { border: 1px solid var(--line); border-radius: 12px;
        box-shadow: 0 1px 2px rgba(16,25,46,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600;
    font-size: .88rem; padding: 11px 16px; border-radius: 12px 12px 0 0; }
.card-body { padding: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: .71rem; text-transform: uppercase; letter-spacing: .07em;
           color: var(--muted); margin-top: 4px; }
.stat.warn .n { color: #b45309; }
.stat.good .n { color: #15803d; }
.stat.bad .n { color: #b91c1c; }

.table { font-size: .87rem; margin-bottom: 0; }
.table > thead > tr > th { background: #f7f9fc; color: #46536b; font-weight: 600;
    font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--line); white-space: nowrap; }
.table > tbody > tr > td { vertical-align: middle; border-color: #eef1f6; }
.table-hover > tbody > tr:hover > * { background: #fafbfe; }
.row-private { background: #fffdf4; }
.row-private:hover > * { background: #fff9e8 !important; }

.badge-private { background: #f6e7c1; color: #7a5a10; font-weight: 600; font-size: .66rem;
    padding: .22em .5em; border-radius: 5px; vertical-align: middle; }
.chip { display: inline-block; padding: .16em .5em; border-radius: 5px; background: #eef2f8;
        color: #3a465e; font-size: .73rem; font-weight: 500; }
.chip-gold { background: #f6efdd; color: #7a5a10; }
.chip-ok { background: #e3f5e8; color: #15803d; }
.chip-bad { background: #fde8e8; color: #b91c1c; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .83rem; }

.btn { font-size: .865rem; border-radius: 8px; }
.btn-sm { font-size: .79rem; }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus { background: #0a1122; border-color: #0a1122; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 600; }
.btn-gold:hover { background: #b8912f; border-color: #b8912f; color: #1a1206; }
.btn-outline-secondary { color: #46536b; border-color: #cfd7e3; }
.btn-outline-secondary:hover { background: #f2f5fa; color: #1d2433; border-color: #b9c3d2; }

.form-label { font-size: .79rem; font-weight: 600; color: #46536b; margin-bottom: .22rem; }
.form-control, .form-select { font-size: .88rem; border-color: #cfd7e3; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--gold);
    box-shadow: 0 0 0 .18rem rgba(200,162,74,.18); }
.form-control-sm, .form-select-sm { font-size: .82rem; }
.form-section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); font-weight: 600; margin: 2px 0 12px; padding-bottom: 6px;
    border-bottom: 1px solid var(--line); }
.required-mark { color: #b91c1c; }
.help-note { font-size: .76rem; color: var(--muted); }

.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link { font-size: .85rem; font-weight: 500; color: #5b6779; border: none;
    border-bottom: 2px solid transparent; padding: .5rem .9rem; }
.nav-tabs .nav-link:hover { color: var(--navy); border-bottom-color: #dfe4ec; }
.nav-tabs .nav-link.active { color: var(--navy); border-bottom: 2px solid var(--gold);
    background: none; font-weight: 600; }

.auth-body { background: var(--page); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-brand { flex: 1 1 52%;
    background: linear-gradient(155deg, #101a30 0%, #16233d 55%, #0c1424 100%);
    color: #e8edf6; padding: 54px 56px; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -140px; bottom: -140px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,162,74,.22), transparent 68%); }
.auth-brand .mark { width: 46px; height: 46px; border-radius: 11px; background: var(--gold);
    color: #101a30; font-weight: 700; display: grid; place-items: center; margin-bottom: 28px; }
.auth-brand h1 { font-size: 2.05rem; font-weight: 700; line-height: 1.2;
    color: #fff; margin-bottom: 14px; }
.auth-brand .lede { font-size: .98rem; color: #b7c3d8; max-width: 31rem; line-height: 1.6; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; }
.auth-points li { display: flex; gap: 11px; margin-bottom: 13px; color: #cdd6e6; font-size: .9rem; }
.auth-points i { color: var(--gold); font-size: 1rem; margin-top: .1rem; }
.auth-form-side { flex: 1 1 48%; display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .87rem; margin-bottom: 22px; }
@media (max-width: 900px) { .auth-brand { display: none; } .auth-form-side { flex: 1 1 100%; } }

@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
               transition: transform .2s ease; box-shadow: 0 0 34px rgba(0,0,0,.28); }
    .sidebar.open { transform: translateX(0); }
    .main { width: 100%; }
    .content { padding: 16px; }
    .topbar { padding: 10px 16px; }
}
.backdrop { position: fixed; inset: 0; background: rgba(8,13,24,.45); z-index: 1035; display: none; }
.backdrop.show { display: block; }

.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state i { font-size: 1.9rem; color: #c3cddf; display: block; margin-bottom: 10px; }
.private-panel { border: 1px solid #e8d9ae; background: #fffbf0; border-radius: 12px; padding: 14px 16px; }
.private-panel h6 { color: #7a5a10; font-weight: 700; font-size: .8rem;
                    text-transform: uppercase; letter-spacing: .07em; }
.split-total-ok { color: #15803d; font-weight: 600; }
.split-total-bad { color: #b91c1c; font-weight: 600; }
.cover-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
               border: 1px solid var(--line); }
.cover-thumb-lg { width: 180px; height: 180px; object-fit: cover; border-radius: 10px;
                  border: 1px solid var(--line); }
.kv { font-size: .87rem; }
.kv th { width: 34%; font-weight: 600; color: #46536b; font-size: .78rem;
         text-transform: uppercase; letter-spacing: .04em; padding: 7px 0; vertical-align: top; }
.kv td { padding: 7px 0; }
.pathbox { font-family: ui-monospace, monospace; font-size: .78rem; background: #f7f9fc;
    border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; user-select: all;
    display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.link-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
    border-radius: 8px; padding: 7px 11px; background: #fff; text-decoration: none;
    color: var(--ink); font-size: .84rem; }
.link-pill:hover { border-color: var(--gold); color: var(--navy); }
.link-pill i { color: #8d9bb5; }
.link-pill:hover i { color: var(--gold); }
.link-pill.empty { color: #b6bdc9; background: #fbfcfe; }
.folder-tree { font-size: .82rem; line-height: 1.65; }
.folder-tree .f { color: #46536b; }
.folder-tree .leaf { color: var(--navy); font-weight: 600; }
.folder-tree i { color: var(--gold); }

@media print {
    .no-print, .sidebar, .topbar, form, .btn, .nav-tabs { display: none !important; }
    body { background: #fff; font-size: 10.5pt; }
    .app-shell { display: block; }
    .content, .main { padding: 0 !important; margin: 0 !important; }
    .card { border: none; box-shadow: none; margin-bottom: 10px; }
    .card-header { background: #eee !important; padding: 4px 0; border-bottom: 1px solid #999;
                   -webkit-print-color-adjust: exact; }
    .tab-pane { display: block !important; opacity: 1 !important; page-break-inside: avoid; }
    .print-head { display: block !important; margin-bottom: 12px; }
    .print-head h1 { font-size: 16pt; margin: 0 0 2px; }
    .print-head .muted { font-size: 9pt; color: #555; }
    table { width: 100%; border-collapse: collapse; }
    thead { display: table-header-group; }
    tr { page-break-inside: avoid; }
    .table > thead > tr > th { background: #eee !important; font-size: 8.5pt;
                               -webkit-print-color-adjust: exact; }
    a { color: #000; text-decoration: none; }
}
.print-head { display: none; }
