:root {
    color-scheme: light;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e7edf3;
    --paper: #ffffff;
    --bg: #f6f8fb;
    --field: #ffffff;
    --hover: #f8fafc;
    --blue: #ef5a22;
    --blue-dark: #d44816;
    --blue-soft: #fff1ea;
    --good: #047857;
    --bad: #b91c1c;
    --shadow: none;
    --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    letter-spacing: -0.01em;
}
.main > section + section,
.main > .layout-2 + .layout-2,
.main > .panel + .layout-2,
.main > .panel + section,
.main > .layout-2 + .panel { margin-top: 12px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; margin: 0; }

.guest-body { min-height: 100vh; background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%); }
.site-nav, .site-footer, .hero, .section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; }
.sidebar .brand-logo { width: 34px; height: 34px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--blue); color: white;
    font-weight: 800; font-size: 18px;
}
.brand strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions a.is-on { color: var(--ink); font-weight: 700; }
.avatar-img { object-fit: cover; padding: 0; display: block; }
.agent-photo-row {
    display: flex; align-items: center; gap: 16px; margin: 0 0 16px;
    padding: 12px; border: 1px solid var(--line); border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 65%, var(--paper));
}
.agent-photo-preview {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
    display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, var(--paper));
    color: var(--blue); font-weight: 800; font-size: 18px; border: 2px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line);
}
.agent-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-photo-field { flex: 1; margin: 0; }
.agent-photo-field em { font-style: normal; color: var(--good); font-weight: 700; margin-left: 6px; }
.agent-review-head { display: flex; align-items: center; gap: 14px; }
.agent-review-photo {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, var(--paper));
    color: var(--blue); font-weight: 800; border: 1px solid var(--line);
}
.agent-review-photo.is-fallback { font-size: 16px; }
.ticket-attach {
    display: grid; gap: 12px; margin-top: 10px; padding: 12px;
    border: 1px solid var(--line); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.ticket-attach-file { margin: 0; }
.ticket-voice-box { display: grid; gap: 8px; }
.ticket-voice-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ticket-voice-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ticket-voice-upload { cursor: pointer; display: inline-flex; align-items: center; }
.ticket-voice-status { margin: 0; font-size: 12px; }
.ticket-thread { display: grid; gap: 12px; }
.ticket-bubble {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    background: color-mix(in srgb, var(--bg) 65%, var(--paper));
}
.ticket-bubble strong { display: inline-block; margin-right: 8px; }
.ticket-message-body { display: grid; gap: 10px; margin-top: 8px; }
.ticket-text { margin: 0; white-space: pre-wrap; }
.ticket-file-chip {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); width: fit-content;
}
.ticket-file-chip:hover { border-color: var(--blue); }
.ticket-file-chip strong { color: var(--blue); font-size: 12px; }
.ticket-voice-play { display: grid; gap: 6px; }
.ticket-voice-play audio { width: min(100%, 360px); }
.agent-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agent-uploads .field { margin: 0 0 12px; }
.agent-uploads em { font-style: normal; color: var(--good); font-weight: 700; }
.agent-check { list-style: none; margin: 14px 0 0; padding: 0; }
.agent-check li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agent-check li:last-child { border-bottom: 0; }
.support-block {
    display: grid; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.support-required { display: grid; gap: 10px; }
.support-required-copy { display: grid; gap: 2px; }
.support-required-copy strong { font-size: 14px; }
.req-dot {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    background: color-mix(in srgb, #c2410c 14%, transparent); color: #c2410c;
    font-size: 11px; font-weight: 800; letter-spacing: 0.02em; vertical-align: middle;
}
.support-list-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.agent-doc-list { display: grid; gap: 8px; }
.agent-doc-card {
    display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper);
}
.agent-doc-card.is-done { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.agent-doc-card.is-missing { opacity: 0.85; }
a.agent-doc-card:hover { border-color: var(--blue); }
.agent-doc-mark {
    flex: 0 0 auto; min-width: 46px; height: 36px; display: grid; place-items: center;
    border-radius: 8px; background: color-mix(in srgb, var(--blue) 12%, var(--paper));
    color: var(--blue); font-size: 11px; font-weight: 800;
}
.agent-doc-card div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.agent-doc-card strong { font-size: 13px; }
.agent-doc-card em { font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-doc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.support-add { display: grid; gap: 10px; }
.support-row {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px;
    padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 80%, transparent);
}
.support-row .field { margin: 0; }
@media (max-width: 860px) {
    .support-row { grid-template-columns: 1fr; }
}
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-card {
    display: flex; align-items: center; gap: 12px;
    min-height: 74px; padding: 12px;
    border: 1px solid var(--line); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 72%, var(--paper));
}
a.file-card:hover { border-color: var(--blue); }
.file-card.is-missing { opacity: 0.72; }
.file-mark {
    position: relative; flex: 0 0 46px; width: 46px; height: 56px;
    display: grid; place-items: end center; padding-bottom: 7px;
    border: 1px solid var(--line); border-radius: 4px 8px 4px 4px;
    background: #fff; color: var(--blue-dark);
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.file-mark::before {
    content: ""; position: absolute; top: -1px; right: -1px;
    border-width: 0 12px 12px 0; border-style: solid;
    border-color: transparent var(--bg) transparent transparent;
    filter: drop-shadow(-1px 1px 0 var(--line));
}
.file-card strong { display: block; font-size: 14px; }
.file-card em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 12px; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; padding: 12px 0 8px; align-items: stretch; }
.hero-copy { padding: 18px 0 8px; }
.eyebrow {
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
    font-size: 11px; font-weight: 600; margin: 0 0 6px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; max-width: 12ch; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 52ch; font-weight: 500; }
.hero-actions, .inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.city-card, .feature, .panel, .kpi, .form-card, .branch-card, .invoice-sheet {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.city-card {
    padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px;
    background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #38bdf8 140%);
    color: white; border: 0;
}
.city-card .eyebrow { color: #bfdbfe; }
.city-card ol { margin: 0; padding-left: 18px; line-height: 1.9; }
.section { padding: 20px 0 64px; }
.feature-grid, .kpi-grid, .branch-grid, .split { display: grid; gap: 14px; }
.feature-grid, .branch-grid { grid-template-columns: repeat(3, 1fr); }
.feature, .branch-card { padding: 18px; }
.feature h3, .branch-card h3 { font-size: 18px; margin-bottom: 6px; }
.feature span, .muted, .meta { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 28px; color: var(--muted); font-size: 14px; }

.btn {
    border: 1px solid transparent; border-radius: 8px; padding: 8px 12px;
    background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; letter-spacing: -0.01em; font-size: 13px;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--line); }
.btn-small { padding: 6px 9px; font-size: 12px; }
.btn-gold { background: #0f172a; color: white; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.login-story {
    background:
        radial-gradient(500px 280px at 20% 20%, rgba(56, 189, 248, 0.35), transparent 60%),
        linear-gradient(165deg, #0f172a, #1e3a8a);
    color: white; padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-story .brand em, .login-story .lead { color: #dbeafe; }
.login-story h1 { font-size: clamp(40px, 4.5vw, 60px); line-height: 1.02; max-width: 11ch; }
.story-list { display: flex; flex-wrap: wrap; gap: 8px; }
.story-list span { background: rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.login-panel { display: grid; place-items: center; padding: 32px 20px; overflow: auto; }
.login-story .eyebrow { color: #fdba74; }
.back-site { display: inline-flex; margin-top: 16px; color: #fdba74; font-weight: 700; font-size: 14px; }
body.agent-desk { background: var(--bg); }
.section > section + section,
.section > .kpi-grid + section,
.section > .panel + section,
.section > .layout-2 { margin-top: 12px; }
.form-card .muted { margin: 14px 0 0; }
.form-card .muted a { font-weight: 700; }
.form-card { width: min(440px, 100%); padding: 26px; }
.form-card.form-wide { width: 100%; max-width: none; }
.field, .filter-field { display: grid; gap: 5px; margin-bottom: 12px; }
.field span, .filter-field span, .check { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .filter-field input, .filter-field select, .search input,
.doc-row input, .doc-row select {
    width: 100%; border: 1px solid var(--line); background: var(--field); color: var(--ink);
    border-radius: 8px; padding: 8px 10px; outline: none; color-scheme: inherit;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus,
.filter-field input:focus, .filter-field select:focus, .doc-row input:focus, .doc-row select:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"] {
    color: var(--ink);
    background: var(--field);
    min-height: 36px;
}
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--ink);
    padding: 0;
}
input[type="file"]::file-selector-button {
    border: 1px solid var(--line); background: var(--hover); color: var(--ink);
    border-radius: 6px; padding: 5px 8px; margin-right: 8px; font: inherit; font-size: 12px; font-weight: 600;
}
.field small, .error { color: var(--bad); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; font-weight: 500; }
.demo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.demo-chip { border: 1px solid #bfdbfe; background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 8px 10px; cursor: pointer; font-weight: 600; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px 1fr; }
.sidebar {
    background: var(--paper); color: var(--ink); padding: 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden;
    border-right: 1px solid var(--line);
}
.sidebar-brand { padding: 20px 18px 8px; border-bottom: 0; flex-shrink: 0; }
.sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.sidebar .brand em { color: var(--muted); }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 18px; }
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: var(--line); }
.nav-label { margin: 18px 12px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav-label:first-child { margin-top: 8px; }
.nav-link {
    display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 12px; border-radius: 9px;
    color: var(--ink-soft); margin-bottom: 2px; font-weight: 500; font-size: 14px;
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.72; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link:hover .nav-ico, .nav-link.is-active .nav-ico { opacity: 1; }
.nav-link.is-active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.sidebar-user {
    flex-shrink: 0; margin: 0 12px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px;
    display: grid; gap: 10px; background: color-mix(in srgb, var(--bg) 62%, var(--paper));
}
.sidebar-actions { display: flex; gap: 6px; }
.sidebar-actions form { margin: 0; flex: 1; }
.sidebar-actions a, .sidebar-actions button {
    width: 100%; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 8px;
    color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.sidebar-actions a { flex: 1; }
.sidebar-actions a:hover, .sidebar-actions button:hover { background: var(--hover); color: var(--ink); }
.sidebar-actions a.is-active { background: var(--blue-soft); color: var(--blue-dark); }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.who-copy { min-width: 0; }
.avatar, .avatar-lg {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--blue-soft); color: var(--blue-dark); font-weight: 700;
}
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; background: #dbeafe; }
.who small, .meta { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.who-copy strong, .who-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who strong { font-size: 14px; }
.workspace { min-width: 0; }
.topbar {
    display: flex; gap: 10px; align-items: center; padding: 10px 20px; position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
}
.search { flex: 1; }
.icon-btn { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 8px 10px; }
.main { padding: 4px 20px 32px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 4px 0 12px; }
.page-head h1 { font-size: 24px; }
.page-head .muted { margin: 4px 0 0; font-size: 13px; }
.panel h2 { font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filter-field { margin: 0; min-width: 160px; }
.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0; margin-bottom: 0; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.kpi { padding: 12px 14px; position: relative; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.kpi:last-child { border-right: 0; }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.kpi:nth-child(1)::before { background: #2563eb; }
.kpi:nth-child(2)::before { background: #0891b2; }
.kpi:nth-child(3)::before { background: #059669; }
.kpi:nth-child(4)::before { background: #7c3aed; }
.kpi:nth-child(5)::before { background: #d97706; }
.page-tools { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; justify-content: flex-end; }
.download-row { display: flex; gap: 8px; flex-wrap: wrap; }
.charts { grid-template-columns: 1.05fr 0.95fr; }
.chart-layout { display: grid; grid-template-columns: 156px 1fr; gap: 20px; align-items: center; }
.donut { width: 156px; height: 156px; display: block; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.chart-legend a { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chart-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-legend a:hover { color: var(--ink); }
.chart-legend i { width: 10px; height: 10px; border-radius: 99px; }
.chart-legend b { color: var(--ink); font-weight: 700; }
.hbar { display: grid; grid-template-columns: minmax(88px, 120px) 1fr 28px; gap: 10px; align-items: center; margin: 9px 0; font-size: 13px; font-weight: 600; }
.hbar i { display: block; height: 10px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.hbar b { display: block; height: 100%; border-radius: 99px; }
.money-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.money-card:last-child { border-bottom: 0; }
.money-card > i { width: 8px; height: 36px; border-radius: 99px; flex-shrink: 0; margin-top: 2px; }
.money-card strong { display: block; font-size: 13px; letter-spacing: 0.04em; }
.money-card span, .money-card em { display: block; color: var(--muted); font-style: normal; font-size: 13px; font-weight: 600; }
.roster { display: grid; gap: 8px; }
.roster-card { display: grid; grid-template-columns: 1fr 52px auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 72%, var(--paper)); }
.roster-card .muted, .log-row .muted { display: block; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-status { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.share-status.is-live { color: #0f7a4a; }
.share-status.is-warn { color: #a15c00; }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.monitor-card { display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.monitor-card:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); transform: translateY(-1px); }
.monitor-empty { grid-column: 1 / -1; }
.monitor-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.monitor-head .muted { display: block; margin-top: 2px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #0f7a4a 14%, var(--paper)); color: #0f7a4a; font-size: 12px; font-weight: 700; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0f7a4a; box-shadow: 0 0 0 3px color-mix(in srgb, #0f7a4a 22%, transparent); }
.monitor-frame { position: relative; aspect-ratio: 16 / 10; background: #111; }
.monitor-frame img { width: 100%; height: 100%; object-fit: contain; display: block; background: #111; }
.monitor-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #ddd; font-size: 14px; }
.monitor-meta { padding: 10px 14px 12px; margin: 0; font-size: 12px; }
.watch-stage { margin-top: 4px; }
.watch-screen { position: relative; min-height: min(72vh, 760px); border-radius: 16px; overflow: hidden; background: #0b0f14; border: 1px solid var(--line); }
.watch-screen img { width: 100%; height: min(72vh, 760px); object-fit: contain; display: block; background: #0b0f14; }
.watch-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #d7dee8; padding: 24px; }
.watch-placeholder p { margin: 0; max-width: 36ch; color: rgba(215,222,232,0.72); }
.watch-hud { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(8,12,18,0.72); color: #e8eef7; font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
.watch-screen:fullscreen, .watch-screen:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; }
.watch-screen:fullscreen img, .watch-screen:-webkit-full-screen img { height: 100vh; }
.btn-small { padding: 6px 10px; font-size: 12px; }
.attend-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
}
.attend-chip-in {
    background: #ea580c; color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, #ea580c 35%, transparent);
    animation: attend-pulse 1.8s ease-in-out infinite;
}
.attend-chip-out {
    background: color-mix(in srgb, #0f7a4a 16%, var(--paper)); color: #0f7a4a; border-color: color-mix(in srgb, #0f7a4a 28%, var(--line));
}
.attend-chip-done { background: var(--paper); color: var(--muted); border-color: var(--line); }
@keyframes attend-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.nav-attend.needs-action { background: color-mix(in srgb, #ea580c 12%, transparent); }
.nav-flag {
    margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #ea580c; color: #fff;
    font-size: 11px; font-weight: 800; font-style: normal; letter-spacing: 0.02em;
}
.nav-flag-out { background: #0f7a4a; }
.attend-banner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
    padding: 18px 20px; margin: 0 0 16px; border-radius: 16px; border: 1px solid var(--line);
}
.attend-banner--need-in {
    background: linear-gradient(135deg, color-mix(in srgb, #ea580c 18%, var(--paper)), var(--paper));
    border-color: color-mix(in srgb, #ea580c 35%, var(--line));
}
.attend-banner--need-out {
    background: linear-gradient(135deg, color-mix(in srgb, #0f7a4a 14%, var(--paper)), var(--paper));
    border-color: color-mix(in srgb, #0f7a4a 30%, var(--line));
}
.attend-banner--closed { background: var(--paper); }
.attend-banner-kicker {
    margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.attend-banner h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.03em; }
.attend-banner p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.attend-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.attend-desk-grid { margin-bottom: 16px; }
.attend-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.attend-check li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; opacity: 0.55; }
.attend-check li.is-now, .attend-check li.is-done { opacity: 1; }
.attend-check li span {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; font-weight: 800; background: var(--line); color: var(--ink);
}
.attend-check li.is-now span { background: #ea580c; color: #fff; }
.attend-check li.is-done span { background: #0f7a4a; color: #fff; }
.attend-check strong { display: block; font-size: 14px; }
.attend-check em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 860px) {
    .attend-chip { padding: 7px 11px; font-size: 12px; }
    .attend-banner h2 { font-size: 18px; }
}
.log-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row time { display: grid; color: var(--muted); font-size: 12px; font-weight: 600; }
.log-row time b { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.log-row span { display: block; color: var(--ink-soft); font-size: 13px; }
.kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.kpi strong { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.layout-2, .layout-3 { display: grid; gap: 12px; }
.layout-2 { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
.layout-3 { grid-template-columns: 1.15fr 0.9fr 0.75fr; }
.panel { padding: 14px 16px; }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.panel-head a { color: var(--blue); font-weight: 700; font-size: 13px; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 0; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel .pipeline { margin: 0 -4px; background: transparent; border: 0; border-radius: 0; }
.pipe {
    border-radius: 0; padding: 8px 10px; background: transparent; border: 0; border-right: 1px solid var(--line); min-height: 0; color: inherit;
}
.pipe:last-child { border-right: 0; }
.pipe.is-active { background: var(--blue-soft); }
.pipe b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.pipe span { font-size: 11px; color: var(--muted); font-weight: 600; }
.bars { display: flex; align-items: end; gap: 8px; height: 112px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; height: 100%; }
.bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--blue); min-height: 0; }
.bar em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.data-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table a { color: var(--blue-dark); font-weight: 600; }
.data-table tr:hover td { background: var(--hover); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; background: #e2e8f0; }
.pill-slate { background: #e2e8f0; color: #334155; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-indigo { background: #e0e7ff; color: #3730a3; }
.pill-cyan { background: #cffafe; color: #0e7490; }
.pill-gold { background: #ffedd5; color: #9a3412; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-emerald { background: #d1fae5; color: #065f46; }
.pill-red { background: #fee2e2; color: #991b1b; }
.pill-stone { background: #f1f5f9; color: #475569; }
.progress { height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; width: 88px; }
.progress span { display: block; height: 100%; background: var(--blue); }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.flash-success { background: #ecfdf5; color: #065f46; }
.flash-error { background: #fef2f2; color: #991b1b; }
.empty { padding: 24px 8px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }

.filing-form { display: grid; gap: 18px; }
.filing-intro {
    display: grid; gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.filing-needed {
    margin: 0;
    color: #9a3412;
    font-size: 13px;
    font-weight: 600;
}
.form-section {
    display: grid;
    gap: 16px;
    padding: 20px 18px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.form-section-head {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.form-section-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.form-section-head p,
.section-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.filing-form .field { margin-bottom: 0; gap: 7px; }
.filing-form .field span { font-size: 12px; }
.filing-form .field input,
.filing-form .field select,
.filing-form .field textarea {
    min-height: 42px;
    padding: 10px 12px;
}
.field-stack { display: grid; gap: 16px; }
.repeat-stack { display: grid; gap: 14px; }
.repeat-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px dashed color-mix(in srgb, var(--line) 80%, #94a3b8);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 55%, var(--paper));
}
.repeat-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.check-grid .check-field span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 500;
}
.filing-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.modal-body .filing-form { gap: 20px; }
.modal-body .form-section { padding: 18px 16px 20px; }
.person { display: flex; gap: 14px; align-items: center; }
.stack { display: grid; gap: 12px; }
.note-card, .list-row {
    display: grid; gap: 10px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
}
.panel > .list-row:last-child { border-bottom: 0; }
.doc-list { display: grid; gap: 14px; margin-top: 16px; }
.doc-row {
    display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch;
    padding: 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper);
}
.panel .doc-row { background: color-mix(in srgb, var(--bg) 72%, var(--paper)); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-head p { margin: 2px 0 0; }
.doc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.doc-row .field, .doc-add .field { margin: 0; }
.doc-controls input[type="file"] { padding: 6px 8px; font-size: 12px; }
.doc-add {
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end;
    margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px;
    background: transparent;
}
.progress-wide { width: 100%; margin-bottom: 4px; }
.note-card { margin-left: 12px; padding: 10px 0; }
.timeline { border-left: 2px solid #bfdbfe; margin-left: 8px; display: grid; gap: 12px; }
.note-card { margin-left: 12px; }
.invoice-sheet { padding: 28px; }
.stamp {
    border: 2px solid var(--good); color: var(--good); display: inline-block; padding: 6px 10px;
    border-radius: 8px; letter-spacing: 0.12em; font-weight: 800;
}
.money-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nav-backdrop { display: none; }
.logout-btn { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 1100px) {
    .kpi-grid, .feature-grid, .layout-3 { grid-template-columns: 1fr 1fr; }
    .hero, .login-shell, .layout-2, .branch-grid { grid-template-columns: 1fr; }
    .city-card { min-height: 0; }
}
@media (max-width: 860px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 20; transform: translateX(-105%); width: min(300px, 88vw); transition: transform 0.2s ease; }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 15; }
    .icon-btn { display: inline-flex; }
    .kpi-grid, .field-grid, .doc-controls, .doc-add, .feature-grid, .chart-layout { grid-template-columns: 1fr; }
    .page-tools { justify-content: flex-start; }
    .doc-head, .doc-actions { align-items: flex-start; flex-wrap: wrap; }
    .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
    .page-head, .site-footer, .site-nav { align-items: flex-start; flex-direction: column; }
    .login-story { display: none; }
}
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.board-col { background: transparent; border: 0; border-top: 2px solid var(--line); border-radius: 0; padding: 8px 4px 0 0; min-height: 160px; }
.board-col h3 { font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.board-card { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 6px; }
.board-card strong { font-size: 13px; }
.bell { position: relative; }
.bell summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 7px 10px; font-weight: 600; font-size: 13px; }
.bell summary::-webkit-details-marker { display: none; }
.badge { background: var(--blue); color: white; border-radius: 999px; padding: 1px 6px; font-size: 11px; margin-left: 4px; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 20; display: grid; gap: 6px; }
.bell-menu a { display: grid; gap: 2px; padding: 8px; border-radius: 10px; }
.bell-menu a:hover { background: var(--blue-soft); }
.bell-menu span, .bell-all { color: var(--muted); font-size: 12px; font-weight: 600; }
.is-unread { box-shadow: inset 3px 0 0 var(--blue); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.theme-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; cursor: pointer; background: var(--bg); }
.theme-card input { accent-color: var(--blue); }
.theme-card span { font-weight: 700; }
.theme-light { background: linear-gradient(180deg, #ffffff, #e8eef8); color: #0f172a; }
.theme-midnight { background: linear-gradient(180deg, #1e293b, #0b1220); color: #f8fafc; }
.theme-ocean { background: linear-gradient(180deg, #ecfeff, #99f6e4); color: #134e4a; }

[data-theme="midnight"] {
    color-scheme: dark;
    --ink: #e8eef8;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --line: #2a3648;
    --paper: #121a28;
    --bg: #0b1220;
    --field: #0f1724;
    --hover: #1a2436;
    --blue: #60a5fa;
    --blue-dark: #bfdbfe;
    --blue-soft: #172554;
    --good: #6ee7b7;
    --bad: #fca5a5;
}
[data-theme="midnight"] .nav-link.is-active { background: #172554; color: #dbeafe; }
[data-theme="midnight"] .btn-primary { background: #2563eb; color: #fff; }
[data-theme="midnight"] .flash-success { background: #052e24; color: #a7f3d0; }
[data-theme="midnight"] .flash-error { background: #3f1212; color: #fecaca; }
[data-theme="midnight"] input[type="date"],
[data-theme="midnight"] input[type="datetime-local"],
[data-theme="midnight"] input[type="time"],
[data-theme="midnight"] input[type="month"] {
    color-scheme: dark;
    color: #e8eef8;
    background: var(--field);
}
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit,
[data-theme="midnight"] input[type="time"]::-webkit-datetime-edit,
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit-fields-wrapper,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit-text,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-text,
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit-month-field,
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit-day-field,
[data-theme="midnight"] input[type="date"]::-webkit-datetime-edit-year-field,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-month-field,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-day-field,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-year-field,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: #e8eef8;
}
[data-theme="midnight"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="midnight"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="midnight"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
}

[data-theme="ocean"] {
    --bg: #e7f4f3;
    --blue: #0f766e;
    --blue-dark: #115e59;
    --blue-soft: #ccfbf1;
    --paper: #ffffff;
}
[data-theme="ocean"] .brand-mark,
[data-theme="ocean"] .btn-primary,
[data-theme="ocean"] .badge,
[data-theme="ocean"] .bar i { background: #0f766e; }
[data-theme="ocean"] .sidebar { background: #f0fdfa; }
[data-theme="ocean"] .nav-link.is-active { background: #ccfbf1; color: #115e59; }
[data-theme="ocean"] .eyebrow, [data-theme="ocean"] .panel-head a, [data-theme="ocean"] .data-table a { color: #0f766e; }

@media (max-width: 860px) {
    .theme-grid { grid-template-columns: 1fr; }
    .bell-menu { position: static; width: auto; }
}

.journey { display: flex; gap: 0; overflow-x: auto; margin: 0 0 12px; padding: 0; list-style: none; }
.journey li { flex: 1 0 112px; padding: 8px 10px 2px; border-top: 3px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.journey li small { display: block; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.journey li.is-done { border-color: var(--good); color: var(--ink); }
.journey li.is-now { border-color: var(--blue); color: var(--ink); }
.doc-group-label {
    margin: 14px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
}
.doc-group-label:first-child { margin-top: 4px; }
.lead-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.lead-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lead-column { min-height: 420px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 70%, var(--paper)); display: flex; flex-direction: column; }
.lead-column header { display: flex; justify-content: space-between; gap: 8px; padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.lead-column header span { color: var(--muted); font-size: 12px; font-weight: 700; }
.lead-column-body { padding: 10px; display: grid; gap: 8px; align-content: start; overflow: auto; max-height: 70vh; }
.lead-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.lead-card:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.lead-card span, .lead-card em, .lead-card small { color: var(--muted); font-style: normal; font-size: 12px; }
.stack { display: grid; gap: 12px; }
.lead-kpis .kpi { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.lead-actions { margin-bottom: 14px; }
.lead-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lead-action-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 65%, var(--paper)); align-content: start; }
.lead-action-card strong { font-size: 15px; }
.lead-action-convert { border-color: color-mix(in srgb, var(--orange, #ef5a22) 45%, var(--line)); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.meta-grid > div { display: grid; gap: 4px; }
.meta-grid strong { font-size: 14px; }
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, var(--paper)); font-size: 12px; font-weight: 700; }
.file-preview { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, var(--paper)); }
.file-preview-thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.file-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-preview-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 10%, var(--paper)); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.file-preview-meta { display: grid; gap: 2px; min-width: 0; }
.file-preview-meta a { font-weight: 700; word-break: break-word; }
.file-preview-meta .muted { font-size: 12px; }
.file-preview-dl { font-size: 12px; font-weight: 700; }
.file-preview-local { margin-top: 10px; }
.doc-row .file-preview { margin-top: 6px; }
.field-grid .field-wide { grid-column: 1 / -1; }
.stage-simple { display: grid; gap: 8px; }
.stage-simple p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; max-width: 54ch; }
.glance-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px; margin: 12px 0 16px;
}
.glance-item {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.glance-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.glance-item strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; word-break: break-word; }
.soft-tabs { margin-top: 4px; }
.soft-tab-nav {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.soft-tab-nav button {
    border: 1px solid transparent; background: transparent; color: var(--muted);
    border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.soft-tab-nav button:hover { color: var(--ink); background: var(--hover); }
.soft-tab-nav button.is-on { background: var(--blue-soft); color: var(--blue-dark); border-color: transparent; }
.soft-tab-panel[hidden] { display: none !important; }
.soft-title { font-size: 14px; margin: 16px 0 8px; color: var(--ink-soft); }
.soft-tab-panel > .soft-title:first-child,
.soft-tab-panel > .fact-grid:first-child { margin-top: 0; }
.overview-gaps {
    margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
    background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 600;
}
.overview-papers { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.overview-papers li { margin: 4px 0; }
.case-simple { align-items: start; }
.case-side { position: sticky; top: 68px; }
.flow-end { margin: 0 0 10px; font-weight: 700; }
.flow-missing { margin: 8px 0 0; padding-left: 18px; color: #9a3412; }
.flow-missing li { margin: 2px 0; }
.flow-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.flow-form .field-wide, .flow-form .inline-actions { grid-column: 1 / -1; }
.flow-side { display: flex; gap: 10px; align-items: end; margin-top: 12px; }
.flow-side .field { flex: 1; margin: 0; }
.flow-note { margin: 10px 0 0; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.fact-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.fact-grid strong { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }
@media (max-width: 860px) {
    .flow-form, .flow-side, .agent-uploads, .file-grid { grid-template-columns: 1fr; display: grid; }
    .case-side { position: static; }
}

.case-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.doc-row-compact { padding: 12px 14px; }
.doc-row-compact .doc-head { align-items: center; }
.modal {
    position: fixed; inset: 0; z-index: 40;
    display: none; align-items: flex-start; justify-content: center;
    padding: 28px 16px; overflow: auto;
    background: rgba(15, 23, 42, 0.48);
}
.modal.is-open { display: flex; }
.modal-card {
    width: min(640px, 100%);
    margin: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.modal-card.modal-wide { width: min(920px, 100%); }
.modal-head {
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
    padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
    background: var(--paper); border-radius: 14px 14px 0 0; z-index: 1;
}
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 16px 18px 20px; }
.modal-body .form-card {
    width: 100%; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none;
}
body.modal-open { overflow: hidden; }

/* PDF tools */
.pdf-home { margin: 4px 0 20px; }
.pdf-home[hidden], .pdf-home:not(.is-on) { display: none !important; }
.pdf-home-lead {
    margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.pdf-home-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.pdf-home-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
    border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px;
    background: color-mix(in srgb, var(--bg) 55%, var(--paper));
    cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pdf-home-card:hover {
    border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); transform: translateY(-1px);
}
.pdf-home-card strong { font-size: 15px; color: var(--ink); }
.pdf-home-card span:last-child { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pdf-home-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; margin-bottom: 4px;
    background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; font-size: 14px;
}
.pdf-workspace[hidden] { display: none !important; }
.pdf-workspace-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    justify-content: space-between; margin: 0 0 12px;
}
.pdf-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf-steps span {
    font-size: 12px; font-weight: 700; color: var(--muted);
    padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.pdf-steps span.is-on { color: var(--blue-dark); background: var(--blue-soft); }
.pdf-flow { display: grid; gap: 18px; }
.pdf-step-block {
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    background: color-mix(in srgb, var(--bg) 40%, var(--paper));
}
.pdf-step-label {
    margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.pdf-howto {
    margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
    background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; line-height: 1.45;
}
.pdf-howto p { margin: 0 0 4px; }
.pdf-howto p:last-child { margin: 0; }
.pdf-drop-lg { padding: 22px 16px; }
.pdf-drop-title { font-size: 16px; font-weight: 800; margin: 0 0 6px !important; color: var(--ink); }
.pdf-advanced {
    margin: 10px 0 14px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px;
}
.pdf-advanced summary {
    cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); list-style: none;
}
.pdf-advanced summary::-webkit-details-marker { display: none; }
.pdf-tool-group-label {
    width: 100%; font-size: 11px; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 0 0;
}
.pdf-toolbar-simple .pdf-tool-group-label:first-child { margin-top: 0; }
.btn-lg { padding: 12px 18px; font-size: 15px; font-weight: 800; }
.pdf-step-download { text-align: center; }
.pdf-panel { display: none; margin-top: 4px; }
.pdf-panel.is-on { display: block; }
.pdf-badge {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
    background: var(--blue-soft); color: var(--blue-dark); font-size: 11px; font-weight: 700;
}
.pdf-status-bar { margin: 0 0 12px; }
.pdf-status-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pdf-status { margin: 0; font-size: 13px; min-height: 1.2em; font-weight: 600; }
.pdf-meta { margin: 0; font-size: 12px; }
.pdf-progress {
    margin-top: 8px; height: 6px; border-radius: 999px; overflow: hidden;
    background: color-mix(in srgb, var(--line) 70%, var(--paper));
}
.pdf-progress-fill {
    height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 60%, #22c55e));
    transition: width 0.18s ease;
}
.pdf-drop {
    border: 1.5px dashed color-mix(in srgb, var(--line) 80%, var(--blue));
    border-radius: 12px; padding: 16px 14px; text-align: center; margin: 10px 0 14px;
    background: color-mix(in srgb, var(--bg) 65%, var(--paper));
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pdf-drop.is-drag {
    border-color: var(--blue); background: var(--blue-soft);
}
.pdf-drop p { margin: 0; }
.pdf-drop-hint { margin-top: 6px !important; font-size: 12px; }
.pdf-controls { margin-top: 4px; }
.pdf-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pdf-help { margin: 8px 0 0; font-size: 12px; }
.pdf-page-nav { display: flex; align-items: center; gap: 6px; }
.pdf-page-nav input[type="number"] { width: 64px; }
.pdf-toolbar {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 8px;
    border: 1px solid var(--line); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.pdf-tool {
    border: 1px solid transparent; background: transparent; color: var(--muted);
    border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.pdf-tool:hover { color: var(--ink); background: var(--hover); }
.pdf-tool.is-on { background: var(--blue-soft); color: var(--blue-dark); }
.pdf-edit-actions { margin: 4px 0 12px; }
.pdf-editor-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start;
}
.pdf-stage { position: relative; min-width: 0; }
.pdf-side-panel {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    background: color-mix(in srgb, var(--bg) 72%, var(--paper));
    position: sticky; top: 72px; max-height: 72vh; overflow: auto;
}
.pdf-side-panel h3 { font-size: 13px; margin: 0 0 8px; }
.pdf-side-panel h3 + h3, .pdf-mark-list + h3, .pdf-text-extract + h3, .pdf-tips + h3 { margin-top: 14px; }
.pdf-tips {
    margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.45;
}
.pdf-tips li { margin: 4px 0; }
.pdf-text-extract {
    margin: 0; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
    font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
    max-height: 140px; overflow: auto; color: var(--ink-soft);
}
.pdf-mark-list { display: grid; gap: 6px; }
.pdf-mark-item {
    text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px;
    padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.pdf-mark-item.is-on { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.pdf-canvas-wrap { position: relative; }
.pdf-page-stack {
    position: relative; display: inline-block; vertical-align: top;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12); background: #fff;
}
.pdf-page-stack canvas {
    display: block; max-width: none; height: auto;
    box-shadow: none; cursor: inherit;
}
.pdf-text-layer {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    overflow: hidden; line-height: 1; z-index: 2;
    transform-origin: 0 0; caret-color: #2563eb;
}
.pdf-text-layer.is-off { pointer-events: none; }
.pdf-text-layer span {
    position: absolute; white-space: pre; color: transparent;
    cursor: text; transform-origin: 0% 0%;
}
.pdf-text-layer span::selection { background: rgba(37, 99, 235, 0.4); color: transparent; }
.pdf-text-layer span::-moz-selection { background: rgba(37, 99, 235, 0.4); color: transparent; }
.pdf-inline-input {
    position: absolute; z-index: 8; min-width: 200px; max-width: 85%;
    border: 2px solid #2563eb; border-radius: 8px; padding: 8px 10px;
    font: 14px Helvetica, Arial, sans-serif; color: #0f172a; background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22); resize: both; outline: none;
}
.pdf-float-bar {
    position: absolute; z-index: 9; display: flex; flex-wrap: wrap; gap: 4px;
    padding: 6px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}
.pdf-float-bar[hidden] { display: none !important; }
.pdf-float-bar button {
    border: 0; background: var(--hover); color: var(--ink); border-radius: 7px;
    padding: 6px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pdf-float-bar button:hover { background: var(--blue-soft); color: var(--blue-dark); }
.pdf-edit-actions button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Word docs */
.word-home { margin-top: 4px; }
.word-create-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.word-create-card {
    display: flex; flex-direction: column; gap: 6px; text-align: left; text-decoration: none;
    border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; color: inherit;
    background: color-mix(in srgb, var(--bg) 55%, var(--paper)); cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.word-create-card:hover {
    border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); transform: translateY(-1px);
}
.word-create-card strong { font-size: 15px; color: var(--ink); }
.word-create-card span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.word-upload-card { margin: 0; }
.word-doc-list { display: grid; gap: 8px; }
.word-doc-row {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit;
    background: color-mix(in srgb, var(--bg) 70%, var(--paper));
}
.word-doc-row:hover { border-color: var(--blue); }
.word-title {
    outline: none; border-radius: 8px; padding: 2px 4px; margin: 0;
}
.word-title:focus { box-shadow: 0 0 0 2px var(--blue-soft); }
.word-save-status { margin: 0 0 10px; font-size: 13px; font-weight: 600; min-height: 1.2em; }
.word-editor-shell { padding: 0; overflow: hidden; }
.word-toolbar-stack { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, var(--paper)); }
.word-toolbar {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.word-toolbar:last-child { border-bottom: 0; }
.word-toolbar-page { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.word-toolbar button {
    border: 1px solid transparent; background: transparent; color: var(--ink-soft);
    border-radius: 8px; padding: 6px 9px; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1;
}
.word-toolbar button:hover { background: var(--hover); color: var(--ink); }
.word-field {
    display: inline-flex; flex-direction: column; gap: 1px; font-size: 10px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.word-field select, .word-field input[type="color"] {
    border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
    font-size: 12px; font-weight: 600; padding: 5px 8px; min-height: 30px; cursor: pointer;
}
.word-field.word-color input[type="color"] { padding: 2px; width: 42px; height: 30px; }
.word-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; min-height: 28px; }
.word-desk {
    background:
        linear-gradient(180deg, #d8dee8 0%, #c5ccd8 100%);
    padding: 28px 16px 40px;
    overflow: auto;
    max-height: calc(100vh - 220px);
}
.word-page {
    box-sizing: border-box;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 25.4mm;
    outline: none;
    font-family: Calibri, Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #111;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.word-page:focus { outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.word-page h1 { font-size: 20pt; margin: 0 0 0.45em; line-height: 1.25; }
.word-page h2 { font-size: 16pt; margin: 0 0 0.4em; line-height: 1.3; }
.word-page h3 { font-size: 13pt; margin: 0 0 0.35em; }
.word-page p, .word-page li { margin: 0 0 0.55em; }
.word-page ul, .word-page ol { padding-left: 1.35em; }
.word-page blockquote {
    margin: 0.6em 0; padding: 0.2em 0 0.2em 0.9em;
    border-left: 3px solid #c5ccd8; color: #444;
}
.word-page a { color: #0b57d0; }
.word-page hr { border: 0; border-top: 1px solid #ccc; margin: 1em 0; }
.word-delete-form { margin-top: 14px; }
@media (max-width: 900px) {
    .word-desk { padding: 16px 10px 28px; max-height: none; }
    .word-page { width: 100% !important; min-height: 60vh !important; }
}
@media (max-width: 980px) {
    .pdf-editor-layout { grid-template-columns: 1fr; }
    .pdf-side-panel { position: static; max-height: none; }
}
.field-check { display: flex; align-items: end; }
.field-check span { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 8px; }
.pdf-sign-row {
    display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 16px; margin-top: 12px;
}
.pdf-sign-pad {
    width: 100%; max-width: 420px; height: 140px;
    border: 1px dashed var(--line); border-radius: 10px; background: #fff;
    touch-action: none; cursor: crosshair; display: block;
}
.pdf-canvas-wrap {
    overflow: auto; border: 1px solid var(--line); border-radius: 12px;
    background:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #f8fafc;
    padding: 12px; max-height: 72vh; position: relative;
}
.pdf-canvas-wrap > canvas {
    display: block; max-width: none; height: auto; cursor: crosshair;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12); background: #fff;
}
.pdf-file-list { display: grid; gap: 8px; margin-top: 12px; }
.pdf-file-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 72%, var(--paper)); cursor: grab;
}
.pdf-file-row.is-dragging { opacity: 0.55; }
.pdf-page-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px; margin-top: 12px;
}
.pdf-page-card {
    border: 1px solid var(--line); border-radius: 10px; padding: 8px; position: relative;
    background: color-mix(in srgb, var(--bg) 72%, var(--paper)); cursor: grab;
}
.pdf-page-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.pdf-page-check { position: absolute; top: 10px; left: 10px; z-index: 1; }
.pdf-page-card img { width: 100%; height: auto; display: block; border-radius: 6px; background: #fff; }
.pdf-page-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin: 6px 0; }
@media (max-width: 860px) {
    .pdf-sign-row { grid-template-columns: 1fr; }
    .pdf-status-row { flex-direction: column; align-items: flex-start; }
}

/* Document folders */
.folder-crumbs {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin: 0 0 10px; font-size: 13px; color: var(--muted);
}
.folder-crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.folder-crumbs a:hover { color: var(--blue); }
.folder-crumb-sep { opacity: 0.5; }
.folder-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px;
}
.folder-card {
    display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px;
    background: color-mix(in srgb, var(--bg) 60%, var(--paper));
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.folder-card:hover {
    border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.folder-card strong { font-size: 14px; line-height: 1.3; color: var(--ink); }
.folder-card .muted { font-size: 12px; }
.folder-ico {
    width: 40px; height: 32px; border-radius: 6px 6px 4px 4px; position: relative;
    background: linear-gradient(180deg, #f0c56d 0%, #e0a83a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
    margin-bottom: 2px;
}
.folder-ico::before {
    content: ""; position: absolute; left: 0; top: -7px; width: 16px; height: 8px;
    border-radius: 3px 3px 0 0; background: #e0a83a;
}
.folder-ico-client {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--blue) 16%, var(--paper)); color: var(--blue);
    font-size: 13px; font-weight: 800; box-shadow: none;
}
.folder-ico-client::before { display: none; }
.folder-tools {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 14px;
}
.folder-tool {
    display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
    background: color-mix(in srgb, var(--blue) 6%, var(--paper));
}
.folder-tool:hover { border-color: var(--blue); }
.folder-tool strong { font-size: 14px; color: var(--ink); }
.folder-tool span { font-size: 12px; color: var(--muted); }

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .app-shell { display: block; }
    body { background: white; }
    .invoice-sheet { box-shadow: none; }
}
