:root {
  --brand: #fa8f1b;
  --brand-dark: #9b4c00;
  --navy: #11182b;
  --navy-soft: #1c263c;
  --ink: #1f293b;
  --muted: #5f6b7c;
  --canvas: #f6f7fb;
  --line: #e2e6ee;
  --sidebar-width: 268px;
}
body { min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: var(--brand-dark); }
a:hover { color: #703800; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1200; top: -80px; left: 16px; padding: .7rem 1rem; border-radius: .5rem; background: #fff; color: #11182b; font-weight: 700; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.app-sidebar { position: fixed; z-index: 1020; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; background: var(--navy); color: #dbe3f2; box-shadow: 7px 0 24px rgba(17, 24, 43, .06); }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 18px 20px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.sidebar-brand:hover { color: #fff; }
.sidebar-brand-mark { flex: 0 0 42px; display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--brand); color: #172033; font-size: 1.6rem; font-weight: 800; font-style: italic; box-shadow: 0 6px 15px rgba(250, 143, 27, .2); }
.sidebar-brand strong { display: block; font-size: 1.18rem; line-height: 1.1; letter-spacing: -.02em; }
.sidebar-brand small { display: block; color: #b7c2d6; font-size: .69rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.sidebar-navigation { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 15px 14px 20px; scrollbar-color: #5d6b86 transparent; scrollbar-width: thin; }
.sidebar-group-label { margin: 25px 14px 9px; color: #95a5c0; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-group-label:first-child { margin-top: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 13px; min-height: 45px; margin: 3px 0; padding: 10px 13px; border-left: 3px solid transparent; border-radius: 10px; color: #d1dbee; text-decoration: none; font-size: .92rem; font-weight: 550; }
.sidebar-link:hover, .sidebar-link:focus-visible { background: #26324a; color: #fff; }
.sidebar-link.is-active { border-left-color: var(--brand); background: #2b3344; color: #fff; font-weight: 700; }
.sidebar-link.is-active .sidebar-icon { color: var(--brand); }
.sidebar-icon { display: inline-flex; flex: 0 0 19px; width: 19px; height: 19px; color: #b7c7e0; }
.sidebar-icon svg, .sidebar-signout svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-account { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 17px 15px; border-top: 1px solid #2b354b; }
.sidebar-avatar { flex: 0 0 37px; display: grid; place-items: center; height: 37px; border-radius: 10px; background: #34415c; color: #fff; font-weight: 700; }
.sidebar-account-details { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.27; }
.sidebar-account-details strong { overflow: hidden; color: #fff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-details span { overflow: hidden; color: #b9c5d8; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-details small { color: #95a5c0; font-size: .67rem; }
.sidebar-signout { flex: 0 0 auto; }
.sidebar-signout button, .sidebar-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #d4deec; }
.sidebar-signout button:hover, .sidebar-close:hover { background: #34415c; color: #fff; }
.sidebar-signout svg { width: 20px; height: 20px; }
.sidebar-close { display: none; font-size: 1.8rem; line-height: 1; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 19px 32px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-title-group { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topbar-eyebrow { color: var(--brand-dark); font-size: .66rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.topbar-title { overflow: hidden; color: #1a2335; font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.topbar-role { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: #46546b; background: #fff; font-size: .75rem; font-weight: 650; }
.app-content { width: min(100%, 1640px); margin: 0 auto; padding: 29px 32px 48px; }
.intro-panel { padding: 27px 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 28px rgba(20, 35, 60, .05); }
.eyebrow { color: var(--brand-dark); font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.intro-panel h1 { margin: 8px 0 7px; font-size: clamp(1.65rem, 2.4vw, 2.3rem); font-weight: 720; letter-spacing: -.04em; }
.intro-panel p { max-width: 70ch; margin: 0; color: #506078; }
.metric-card { height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 26px rgba(20, 35, 60, .045); }
.metric-link { display: block; color: inherit; text-decoration: none; }
.metric-link:hover { color: inherit; border-color: var(--brand); }
.metric-link .metric-accent, .metric-link .metric-label, .metric-link .metric-value, .metric-link .metric-detail { display: block; }
.oversight-queue { display: grid; gap: .55rem; }
.oversight-queue a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); text-decoration: none; }
.oversight-queue a:hover { border-color: var(--brand); background: #fff8ef; }
.oversight-queue strong { color: var(--brand-dark); }
.oversight-contact { border-top: 1px solid var(--line); padding: 1rem 0; overflow-wrap: anywhere; }
.oversight-contact:last-child { padding-bottom: 0; }
.metric-accent { width: 29px; height: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--brand); }
.metric-label { color: #637188; font-size: .71rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.metric-value { margin-top: 8px; color: #172236; font-size: 2.1rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.metric-detail { margin-top: 10px; color: var(--muted); font-size: .76rem; }
.panel-card { height: 100%; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 12px 26px rgba(20, 35, 60, .045); }
.panel-card h2 { margin: 6px 0 13px; color: #1c2739; font-size: 1.1rem; font-weight: 700; }
.panel-card .table { margin-bottom: 0; }
.panel-card .table thead th { color: #64738a; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.panel-card .table td { vertical-align: middle; color: #29374a; font-size: .87rem; }
.empty-state { padding: 22px 0 5px; color: #647188; font-size: .9rem; }
.section-heading { margin: 27px 0 14px; color: #35445a; font-size: .77rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.btn-primary { --bs-btn-bg: var(--brand-dark); --bs-btn-border-color: var(--brand-dark); --bs-btn-hover-bg: #783b00; --bs-btn-hover-border-color: #783b00; --bs-btn-active-bg: #663300; --bs-btn-active-border-color: #663300; }
.contact-choice { position: relative; cursor: pointer; }
.contact-choice input { position: absolute; opacity: 0; }
.contact-choice span { display: inline-block; padding: .5rem .9rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: #fff; color: #334155; font-weight: 600; }
.contact-choice input:checked + span { background: #fff1df; border-color: #fa8f1b; color: #824000; box-shadow: inset 0 0 0 1px #fa8f1b; }
.contact-choice input:focus-visible + span { outline: 3px solid #4b82d0; outline-offset: 2px; }
.agent-customer-details dt { color: #64748b; font-weight: 600; }
.card { border-color: var(--line); border-radius: 16px; box-shadow: 0 12px 26px rgba(20, 35, 60, .045); }
.page-heading { font-weight: 750; letter-spacing: -.03em; }
.muted-note { color: var(--muted); }
.form-label { font-weight: 600; }
.table thead th { color: #35445a; font-size: .87rem; white-space: nowrap; }
.table td { vertical-align: middle; }
.badge-active { color: #185c3b; background: #dff5e9; }
.badge-inactive { color: #6a2f33; background: #fbe3e4; }
.login-wrap { max-width: 460px; margin: 5vh auto 0; }
.brand-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #202329; font-size: 1.5rem; font-weight: 800; }
.sidebar-toggle { display: none; flex: 0 0 38px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.sidebar-toggle span { width: 17px; height: 2px; border-radius: 2px; background: #26344b; }
.sidebar-backdrop { display: none; }
@media (max-width: 991px) {
  .app-sidebar { width: min(84vw, 290px); transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  .app-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar-close, .sidebar-toggle { display: flex; }
  .sidebar-backdrop.is-open { position: fixed; z-index: 1010; inset: 0; display: block; background: rgba(12, 19, 34, .55); }
  .app-main { margin-left: 0; }
  .app-topbar { min-height: 72px; padding: 13px 18px; }
  .app-content { padding: 22px 18px 36px; }
  body.sidebar-open { overflow: hidden; }
}
@media (max-width: 575px) {
  .topbar-role { display: none; }
  .topbar-title { font-size: 1.15rem; }
  .intro-panel, .panel-card { padding: 20px; }
  .metric-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .app-sidebar { transition: none; } }
.customer-filters .filter-mode { max-width: 124px; }
.duplicate-card { background: #fff; }
.campaign-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .45rem 1rem; }
.campaign-choice-grid .form-check { margin: 0; }
.campaign-stacked { display: flex; flex-direction: column; gap: 1.5rem; }
.campaign-stacked > .panel-card { height: auto; }
.filter-mode { max-width: 110px; }
