:root {
    --ink: #172026;
    --muted: #667085;
    --line: #e7eaee;
    --soft: #f6f8fa;
    --green: #15803d;
    --blue: #2563eb;
    --yellow: #b7791f;
    --red: #c2410c;
}
body {
    background: #f7f9fb;
    color: var(--ink);
    letter-spacing: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.navbar-brand { font-size: 1.35rem; }
.navbar .nav-link { color: #344054; font-weight: 500; }
.global-search { width: min(280px, 100%); }
.company-chip {
    background: #eef7f1;
    color: #17613a !important;
    border: 1px solid #ccebd7;
    padding: 6px 10px;
    border-radius: 999px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-shell { padding-bottom: 48px; }
.hero {
    min-height: 92vh;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 36, 29, .88), rgba(20, 72, 57, .68)),
        url('https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: white;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 5rem); max-width: 900px; }
.hero p { max-width: 720px; font-size: 1.25rem; color: rgba(255,255,255,.86); }
.metric-card, .panel, .table-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}
.metric-card { padding: 18px; min-height: 136px; }
.metric-card:hover, .panel:hover, .table-card:hover { box-shadow: 0 12px 30px rgba(16, 24, 40, .07); }
.metric-label { color: var(--muted); font-size: .9rem; }
.metric-value { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 800; line-height: 1; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.bg-orange { background-color: #f97316 !important; }
.text-orange { color: #c2410c !important; }
.priority-strip { border-left: 5px solid var(--line); }
.priority-strip.danger { border-left-color: #dc2626; }
.priority-strip.orange { border-left-color: #f97316; }
.priority-strip.warning { border-left-color: #eab308; }
.priority-strip.success { border-left-color: #16a34a; }
.priority-strip.info { border-left-color: #2563eb; }
.decision { font-size: 1.2rem; font-weight: 800; }
.btn-success { background: var(--green); border-color: var(--green); }
.table > :not(caption) > * > * { padding: .9rem .85rem; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: #eef5f0; padding: 24px; }
.auth-card { width: min(100%, 460px); }
.section-title { font-weight: 800; letter-spacing: 0; }
.badge-soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.empty-state {
    background: linear-gradient(135deg, #ffffff, #f1f8f4);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
}
.step-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    height: 100%;
}
.step-number {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    margin-bottom: 12px;
}
.chart-wrap { min-height: 260px; }
.scanner-frame {
    position: relative;
    background: #101828;
    border-radius: 8px;
    overflow: hidden;
    min-height: 320px;
}
.scanner-frame video {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.scanner-line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    background: #22c55e;
    box-shadow: 0 0 18px #22c55e;
}
.scanner-hint {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: white;
    background: rgba(16, 24, 40, .72);
    border-radius: 8px;
    padding: 10px 12px;
}
@media (max-width: 768px) {
    .navbar .form-control { margin: 10px 0; }
    .metric-card { min-height: auto; }
    .global-search { width: 100%; }
    .company-chip { margin-bottom: 10px; max-width: 100%; }
}
