/* The console's stylesheet, copied (D4 §8.3), with the reseller portal's frame at the end: a top bar, not the sidebar. */
/* Shared primitives; signed-in layout is independent of the authentication page. */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.55 var(--font-ui); color: var(--ink); background: #f5f7fa; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { min-height: 44px; max-width: 100%; padding: 10px 12px; border: 1px solid #cdd6e2; border-radius: 8px; background: #fff; color: var(--ink); }
button { cursor: pointer; font-weight: 600; }
button:hover { background: var(--raise); }
button:disabled { cursor: not-allowed; opacity: .6; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden], input[type="hidden"] { display: none !important; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -6rem; left: 1rem; padding: .75rem 1rem; background: #fff; color: var(--primary); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: .5rem; }
.muted, .helper, .page-note { color: var(--ink-2); }
.helper { font-size: 12px; line-height: 1.7; }
.page-note { margin: 18px 2px; font-size: 12px; }

/* Application frame */
.admin-sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 236px; padding: 30px 18px 24px; background: #142c4d; color: #fff; overflow-y: auto; z-index: 30; }
.admin-logo { display: flex; align-items: center; gap: 12px; margin: 0 12px 34px; color: #fff; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -.7px; line-height: 1.3; }
.brand-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #6e95c8; border-radius: 11px; background: #25466f; font-size: 25px; font-weight: 650; }
.admin-logo > span:last-child > span { display: block; margin-top: 3px; color: #aac3e2; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.admin-nav { display: grid; gap: 28px; }
.nav-label { margin: 0 14px 10px; color: #96adcb; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; }
.nav-group a { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 11px 14px; border-radius: 8px; color: #c5d3e6; font-size: 13px; font-weight: 500; text-decoration: none; }
.nav-group a .icon { width: 18px; height: 18px; color: #9db7d9; }
.nav-group a:hover { background: #203c5f; color: #fff; }
.nav-group a[aria-current="page"] { background: #2a4d78; color: #fff; box-shadow: inset 3px 0 #81b1ff; }
.nav-group a[aria-current="page"] .icon { color: #d6e7ff; }
.admin-sidebar :focus-visible { outline-color: #b9d5ff; }
.sidebar-note { margin: auto 10px 0; padding-top: 40px; color: #a7bfdb; font-size: 11px; }
.sidebar-note > .icon { display: block; margin-bottom: 10px; }
.sidebar-note strong { display: block; color: #cedcf0; font-size: 11px; font-weight: 550; }
.sidebar-note p { margin: 5px 0 0; line-height: 1.8; }
.admin-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; min-height: 100svh; margin-left: 236px; }
.admin-topbar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 14px 36px; border-bottom: 1px solid var(--line); background: #fff; z-index: 20; }
.breadcrumb { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; color: #61728a; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb strong { color: #334862; font-weight: 550; }
.topbar-actions { display: flex; align-items: center; gap: 22px; min-width: 0; }
.operator-badge { padding: 5px 9px; border: 1px solid #e1e7ef; border-radius: 5px; color: #5f7088; font-size: 10px; font-weight: 550; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #dce6f4; border-radius: 50%; background: #ecf2fb; color: #385f94; font-size: 13px; font-weight: 650; }
.account-menu { position: relative; min-width: 0; }
.account-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary > .icon { width: 14px; height: 14px; color: #8291a6; }
.account-name { max-width: 185px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.account-dropdown { position: absolute; top: calc(100% + 13px); right: 0; width: 280px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #142c4d17; overflow-wrap: anywhere; }
.account-dropdown strong { display: block; font-size: 14px; }
.account-dropdown p { margin: 4px 0 12px; color: var(--ink-2); font-size: 12px; }
.account-dropdown form { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-dropdown .button { justify-content: flex-start; width: 100%; }
.admin-main { flex: 1; width: 100%; max-width: 1580px; min-width: 0; margin: 0 auto; padding: 34px 36px 30px; }
.admin-footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 36px; padding: 20px 0 24px; border-top: 1px solid var(--line); color: #61728a; font-size: 10px; }
.admin-footer span > span { margin: 0 7px; }

/* Headings, actions, and panels */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 9px; color: #61728a; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.page-heading h1 { margin: 0; color: #192f4c; font-size: clamp(25px,2.2vw,31px); font-weight: 650; line-height: 1.25; letter-spacing: -.9px; overflow-wrap: anywhere; }
.page-description { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.page-actions:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.button .icon { width: 16px; height: 16px; }
.button-primary { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 2px 3px #2563eb12; }
.button-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.button-secondary { border-color: #dbe3ee; background: #fff; color: #415978; }
.button-secondary:hover { border-color: #b6cae5; background: #f5f8fd; }
.button-quiet { background: transparent; color: #476180; }
.button-quiet:hover { background: #edf3fb; }
.button-small { min-height: 44px; padding: 8px 12px; font-size: 11px; }
.panel { min-width: 0; margin-bottom: 22px; overflow: hidden; border: 1px solid #e0e6ee; border-radius: 12px; background: #fff; box-shadow: 0 2px 3px #182d4803; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; border-bottom: 1px solid #edf0f5; }
.panel-heading h2 { margin: 0; color: #253b57; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.panel-heading p { margin: 5px 0 0; color: var(--ink-2); font-size: 12px; }
.panel-heading > .button { flex-shrink: 0; min-height: 44px; padding: 7px 10px; border: 0; font-size: 11px; }
.panel-body { padding: 24px; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 17px 20px; border: 1px solid #dce6f5; border-radius: 9px; background: #edf3fb; color: #3d5b81; }
.notice > .icon { width: 18px; height: 18px; margin-top: 1px; }
.notice strong { display: block; font-size: 12px; font-weight: 650; }
.notice p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; }
.notice-warning { border-color: #efdab3; background: #fff8e9; color: #835b21; }
.notice-danger { border-color: #f1c6c3; background: #fff1f0; color: #9b2c25; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; content: ""; }
.syncing { background: #eaf5ee; color: #287146; }
.waiting { background: #fff4dd; color: #89601d; }
.revoked { background: #fceceb; color: #a13e3a; }
.neutral { background: #f0f3f7; color: #637087; }
.blue { background: #eaf1fe; color: #3564a7; }
/* D3: red for failing, apart from revoked's burnt red; never the board's day-status hues. */
.failing { background: #fde8e7; color: #b3261e; }

/* Overview */
.overview-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -3px 0 22px; color: #506580; font-size: 11px; }
.overview-strip > span:first-child { display: flex; align-items: center; gap: 8px; }
.overview-strip .icon { width: 15px; height: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 26px; }
.stat-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat-card { display: flex; flex-direction: column; min-width: 0; padding: 21px 22px 20px; border: 1px solid #e0e6ee; border-radius: 11px; background: #fff; text-decoration: none; }
a.stat-card:hover { border-color: #a9c4ea; box-shadow: 0 3px 10px #1c4d8a08; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #576c86; font-size: 11px; font-weight: 550; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #f0f5fc; color: #6b8bb5; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-value { display: block; margin-top: 13px; color: #1e3553; font-size: 30px; font-weight: 650; letter-spacing: -.8px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-hint { display: block; margin-top: 9px; color: #61728a; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 22px; align-items: stretch; }
.connection-total { display: flex; align-items: baseline; gap: 10px; color: #61728a; font-size: 12px; }
.connection-total strong { color: #223b5c; font-size: 30px; font-weight: 650; }
.connection-meter { display: flex; gap: 4px; height: 9px; margin: 21px 0 17px; overflow: hidden; border-radius: 6px; background: #f0f3f7; }
.connection-meter .syncing { background: #62a78b; }.connection-meter .waiting { background: #e0bb73; }.connection-meter .revoked { background: #ce7b78; }
.connection-meter .failing { background: #d9534f; }.connection-meter .neutral { background: #c5ccd6; }
.health-list > div { display: grid; grid-template-columns: 1fr 38px 45px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; font-size: 11px; }
.health-list > div:last-child { border: 0; }
.health-list strong, .health-list .muted { text-align: right; font-variant-numeric: tabular-nums; }
.health-list + .helper { margin: 15px 0 0; font-size: 10px; }
.attention-list { padding: 2px 24px; }
.attention-list > a { display: flex; align-items: center; gap: 13px; padding: 25px 0; border-bottom: 1px solid #edf0f5; text-decoration: none; color: #2c4463; }
.attention-list > a:last-child { border-bottom: 0; }
.attention-list > a > span:nth-child(2) { flex: 1; min-width: 0; }
.attention-list strong { display: block; font-size: 12px; font-weight: 600; }
.attention-list small { display: block; margin-top: 5px; color: #61728a; font-size: 11px; }
.attention-list > a > .icon { width: 16px; height: 16px; color: #61728a; }
.attention-list > a:hover strong { color: var(--primary); }
.attention-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 9px; }
.attention-icon .icon { width: 18px; height: 18px; }
.activity-list { margin: 0; padding: 0 24px; list-style: none; }
.activity-list li { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid #edf0f5; }
.activity-list li:last-child { border: 0; }
.activity-dot { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #f1f5fb; color: #7e98ba; }
.activity-dot .icon { width: 15px; height: 15px; }
.activity-list li > div { min-width: 0; flex: 1; }
.activity-list strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.activity-list li > div > span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 11px; overflow-wrap: anywhere; }
.activity-list time { color: var(--ink-2); font-size: 10px; text-align: right; }

/* Data tables and filtering */
.data-table { min-width: 0; }
.table-tools { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #edf0f5; }
.table-search { position: relative; display: flex; align-items: center; width: 290px; max-width: 100%; }
.table-search > .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #8b9bb0; pointer-events: none; }
.table-search input { width: 100%; min-height: 44px; padding: 9px 12px 9px 36px; border-color: #e0e6ef; border-radius: 7px; background: #fafbfd; font-size: 12px; }
.table-search input::placeholder { color: #61728a; }
.table-filter select { min-height: 44px; padding: 9px 30px 9px 12px; border-color: #e0e6ef; border-radius: 7px; font-size: 12px; }
.table-tools .button { min-height: 44px; padding: 8px; font-size: 11px; }
.table-count { margin-left: auto; color: #61728a; font-size: 10px; white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c4d1e1 transparent; }
.table-scroll:focus-visible { outline-offset: -3px; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid #e8edf3; color: #61728a; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 17px 20px; border-bottom: 1px solid #edf0f5; color: #52657e; vertical-align: middle; font-variant-numeric: tabular-nums; }
.data-table tbody > tr:last-child td { border-bottom: 0; }
.data-table tbody tr[data-row]:hover { background: #fafcff; }
.data-table .cell-primary { max-width: 300px; color: #2d4563; font-weight: 550; }
.data-table .cell-detail { min-width: 200px; max-width: 380px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; }
.data-table .numeric { font-weight: 550; white-space: nowrap; }
.data-table time { white-space: nowrap; font-size: 11px; }
.cell-subtext { display: block; margin-top: 4px; color: #61728a; font-size: 10px; font-weight: 400; }
.record-link { overflow-wrap: anywhere; color: #315985; font-weight: 600; text-decoration: none; }
.record-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 38px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border: 1px solid #e5ecf5; border-radius: 11px; background: #f5f8fc; color: #8da3be; }
.empty-state > strong { color: #455c78; font-size: 13px; font-weight: 600; }
.empty-state p { max-width: 380px; margin: 7px 0 0; color: #61728a; font-size: 12px; line-height: 1.7; }
.person-cell { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.person-cell strong { overflow-wrap: anywhere; font-size: 12px; font-weight: 550; }
.format-name { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.format-name .icon { width: 17px; height: 17px; color: #8aa0bc; }
.field-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 250px; }
.field-tags span { padding: 3px 7px; border: 1px solid #e6ebf1; border-radius: 4px; background: #fafbfd; color: #61728a; font-size: 10px; }
.approval-cell { min-width: 180px; font-size: 11px; }
.period-label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #e0e6ee; border-radius: 7px; background: #fff; color: #5c728e; font-size: 11px; }
.period-label .icon { width: 15px; height: 15px; }

/* Tenant detail and action forms */
.tenant-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -9px 0 24px; }
.tenant-summary > span:last-child { color: #61728a; font-size: 11px; }
.section-nav { display: flex; gap: 24px; margin: 0 0 25px; padding: 0 2px; border-bottom: 1px solid #dfe6f0; overflow-x: auto; }
.section-nav a { display: block; min-height: 44px; padding: 12px 0; color: #526984; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.section-nav a:hover { color: var(--primary); box-shadow: inset 0 -2px var(--primary); }
.anchor-section { scroll-margin-top: 96px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.detail-grid .panel-heading { padding: 20px; }
.detail-grid .panel-body { padding: 20px; }
.key-values { margin: 0; }
.key-values > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #f0f3f7; font-size: 12px; }
.key-values > div:first-child { padding-top: 0; }.key-values > div:last-child { padding-bottom: 0; border: 0; }
.key-values dt { color: #61728a; font-size: 11px; }
.key-values dd { min-width: 0; margin: 0; color: #3b5271; text-align: right; overflow-wrap: anywhere; }
.key-values time { font-size: 11px; }
.helper-divider { margin: 21px 0 0; padding-top: 17px; border-top: 1px solid #edf0f5; font-size: 11px; }
.pending-list { display: grid; gap: 12px; margin-bottom: 26px; }
.pending-request { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 20px; border: 1px solid #ecdfc3; border-radius: 8px; background: #fffcf5; }
.pending-request > div:first-child { min-width: 0; }
.pending-request h3 { margin: 10px 0 5px; font-size: 13px; color: #534b39; }
.pending-request p { margin: 0 0 8px; color: #6e6452; font-size: 12px; overflow-wrap: anywhere; }
.pending-request > form { flex-shrink: 0; }
.proposal-form { max-width: 760px; margin-top: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 8px; color: #3d526e; font-size: 12px; font-weight: 600; }
.form-field select, .form-field textarea, .form-field input { width: 100%; border-color: #d7e0ec; background: #fff; font-size: 14px; }
.form-field select, .form-field input { max-width: 360px; }
.form-field textarea { min-height: 100px; }
.form-field .helper { margin: 7px 0 0; font-size: 11px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-actions .helper { font-size: 11px; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 26px; }
.plan-card { min-width: 0; padding: 28px; border: 1px solid #e0e6ee; border-radius: 12px; background: #fff; }
.plan-card.featured { border-color: #aec7eb; box-shadow: inset 0 3px #4b7dca; }
.plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #edf3fc; color: #6485b4; }
.plan-card h2 { margin: 24px 0 0; color: #34506f; font-size: 14px; font-weight: 600; }
.plan-price { margin: 16px 0 13px; color: #243f61; font-size: 40px; font-weight: 650; letter-spacing: -1px; }
.plan-price span { display: block; margin-top: 4px; color: #61728a; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.plan-price-text { font-size: 29px; padding: 10px 0 12px; }
.plan-card > .muted { font-size: 12px; line-height: 1.8; }
.feature-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid #edf0f5; list-style: none; color: #61728a; font-size: 11px; }
.feature-list li::before { display: inline-block; width: 5px; height: 5px; margin: 0 9px 2px 0; border-radius: 50%; background: #86a7d2; content: ""; }
.plan-footnote { margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf0f5; color: #61728a; font-size: 11px; line-height: 1.8; }
.lifecycle { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 0; padding: 28px; list-style: none; }
.lifecycle li { display: flex; align-items: flex-start; gap: 14px; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid #dde6f2; border-radius: 50%; color: #7e93af; font-size: 10px; }
.lifecycle h3 { margin: 13px 0 8px; color: #3e5879; font-size: 12px; font-weight: 600; }
.lifecycle p { margin: 0; color: #61728a; font-size: 11px; line-height: 1.8; }

@media (max-width: 1200px) {
  .admin-sidebar { width: 208px; padding-inline: 14px; }.admin-workspace { margin-left: 208px; }
  .admin-main { padding: 28px 24px; }.admin-topbar { padding-inline: 24px; }.admin-footer { margin-inline: 24px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.stat-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.detail-grid > .panel:last-child { grid-column: 1 / -1; }
  .plan-grid { gap: 14px; }.plan-card { padding: 22px; }.plan-card-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }.account-name { max-width: 120px; }
  .plan-grid { grid-template-columns: 1fr; }.plan-card-top { flex-direction: row; }.plan-price span { display: inline-block; margin-left: 12px; }
  .lifecycle { grid-template-columns: 1fr; }.stat-grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .table-tools { flex-wrap: wrap; }.table-search { flex: 1; min-width: 170px; }.table-count { margin-left: 0; }
}
@media (max-width: 760px) {
  .admin-sidebar { position: static; width: 100%; padding: 18px 18px 0; overflow: visible; }
  .admin-logo { margin: 0 5px 18px; font-size: 22px; }.brand-symbol { width: 35px; height: 35px; font-size: 22px; }
  .admin-logo > span:last-child > span { font-size: 8px; }.sidebar-note, .nav-label { display: none; }
  .admin-nav { display: flex; gap: 4px; width: 100%; padding-bottom: 12px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #5377a5 #142c4d; }
  .nav-group { display: contents; }.nav-group a { gap: 8px; flex: 0 0 auto; margin: 0; padding: 10px 12px; min-height: 44px; font-size: 12px; }.nav-group a .icon { width: 16px; height: 16px; }
  .nav-group a[aria-current="page"] { box-shadow: none; background: #2a4d78; }
  .admin-workspace { margin-left: 0; min-height: calc(100svh - 132px); }.admin-topbar { min-height: 65px; padding: 10px 20px; }
  .operator-badge { display: none; }.account-name { max-width: 140px; }.topbar-actions { gap: 12px; }
  .admin-main { padding: 25px 20px; }.admin-footer { margin-inline: 20px; padding-top: 16px; font-size: 9px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }.page-description { font-size: 12px; line-height: 1.7; }
  .page-heading h1 { font-size: 26px; }.overview-strip { flex-wrap: wrap; gap: 12px; font-size: 10px; }
  .stat-grid, .stat-grid-three { gap: 12px; }.stat-card { padding: 17px; }.stat-value { font-size: 27px; }.stat-top { font-size: 10px; }.stat-hint { line-height: 1.7; }
  .panel-heading { padding: 18px; gap: 10px; }.panel-heading p { font-size: 11px; }.panel-heading > .button { font-size: 10px; }
  .panel-body { padding: 20px; }.table-tools { padding: 14px 18px; }.table-filter { flex: 1; }.table-filter select { width: 100%; }
  .table-search input, .table-filter select, .form-field select, .form-field textarea, .form-field input { font-size: 16px; }
  .table-tools .table-count { margin-left: auto; }.table-tools .button { min-height: 44px; }
  .data-table th, .data-table td { padding-inline: 18px; }.detail-grid { grid-template-columns: 1fr; gap: 0; }
  .pending-request { align-items: flex-start; flex-direction: column; gap: 16px; }.notice { padding: 16px; }
  .plan-grid { gap: 18px; }.section-nav { gap: 22px; }.anchor-section { scroll-margin-top: 84px; }
}
@media (max-width: 420px) {
  .admin-main { padding-inline: 14px; }.admin-topbar { padding-inline: 14px; }.admin-footer { margin-inline: 14px; flex-wrap: wrap; gap: 6px; }
  .account-name { display: none; }.breadcrumb { gap: 8px; font-size: 11px; }.stat-card { padding: 15px 13px; }.stat-icon { width: 25px; height: 25px; }.stat-value { font-size: 25px; }
  .panel-heading { flex-wrap: wrap; }.panel-heading > .button { padding-left: 0; }.table-search { flex-basis: 100%; }.table-filter { flex-basis: 100%; }
  .activity-list { padding-inline: 18px; }.activity-list li { gap: 10px; }.activity-list time { font-size: 9px; }.plan-price span { display: block; margin-left: 0; }
}

/* Operator sign-in. Scoped to keep the signed-in tables and forms independent. */
.auth-page{background:#f3f5f9}
.auth-page main{display:grid;place-items:center;max-width:none;min-height:100vh;min-height:100svh;padding:28px;overflow:visible}
.signin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);width:100%;max-width:1200px;min-height:740px;background:var(--surface);border:1px solid #e0e6ef;border-radius:24px;overflow:hidden;box-shadow:0 18px 60px -35px #1b33584d}
.signin-brand{display:flex;flex-direction:column;justify-content:space-between;gap:52px;padding:44px 48px;background:#142c4d;color:#fff}
.signin-logo{display:inline-flex;align-items:center;gap:13px;align-self:flex-start;color:#fff;text-decoration:none;font-size:25px;font-weight:750;line-height:1.25;letter-spacing:-.8px}
.signin-monogram{display:grid;place-items:center;width:44px;height:44px;border:1px solid #6e95c8;border-radius:12px;background:#25466f;color:#fff;font-size:27px;font-weight:650;letter-spacing:-2px;padding-right:2px}
.signin-logo-caption{display:block;margin-top:3px;color:#b9cce5;font-size:12px;font-weight:450;letter-spacing:.15px}
.signin-eyebrow{margin:0 0 16px;font-size:11px;font-weight:700;letter-spacing:1.7px;line-height:1.5}
.signin-brand .signin-eyebrow{color:#a9c7f0}
.signin-intro h2{margin:0;font-size:clamp(32px,3.3vw,44px);font-weight:600;line-height:1.16;letter-spacing:-1.7px}
.signin-brand-description{max-width:340px;margin:22px 0 34px;color:#bdcee3;font-size:15px;line-height:1.8}
.signin-features{display:grid;gap:24px;margin:0;padding:0;list-style:none}
.signin-features li{display:flex;align-items:flex-start;gap:15px}
.signin-feature-number{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:1px solid #496482;border-radius:8px;color:#bfd8f9;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.signin-features strong{display:block;margin-bottom:3px;font-size:14px;font-weight:550}
.signin-features strong+span{display:block;color:#b3c6df;font-size:12px;line-height:1.6}
.signin-brand-footer{display:flex;align-items:center;gap:9px;margin:0;padding-top:22px;border-top:1px solid #39516f;color:#b9cce5;font-size:11px;letter-spacing:.2px}
.signin-boundary-mark{width:7px;height:7px;border-radius:50%;background:#a6c7f2;box-shadow:0 0 0 4px #254264;margin:0 4px}
.signin-panel{display:flex;flex-direction:column;justify-content:space-between;gap:48px;min-width:0;padding:40px 48px 30px}
.signin-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink-2);font-size:11px}
.signin-access-badge{padding:5px 10px;border:1px solid #dce5f1;border-radius:6px;background:#f6f8fc;color:#435772;font-size:11px;font-weight:600}
.signin-content{width:100%;max-width:370px;margin:auto}
.signin-content>.signin-eyebrow{color:#537092;font-size:10px;letter-spacing:1.6px;margin-bottom:12px}
.signin-content h1{margin:0;color:#172b48;font-size:34px;font-weight:650;line-height:1.25;letter-spacing:-1.1px}
.signin-description{margin:13px 0 30px;color:var(--ink-2);font-size:14px;line-height:1.75}
.signin-form{display:grid;gap:20px}
.signin-field{min-width:0}
.signin-field label{display:block;margin:0 0 8px;color:#2a3c54;font-size:13px;font-weight:600}
.signin-field input{display:block;width:100%;min-height:49px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:16px;line-height:1.5;transition:border-color .15s,box-shadow .15s}
.signin-field input::placeholder{color:#758296;font-size:14px;opacity:1}
.signin-field input:focus{border-color:var(--primary);outline:2px solid #2563eb26;outline-offset:2px}
.signin-password-wrap{position:relative}
.signin-password-wrap input.has-toggle{padding-right:72px}
.signin-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);min-height:40px;padding:7px 11px;border:0;border-radius:5px;background:transparent;color:#41618a;font-size:12px;font-weight:600}
.signin-password-toggle:hover{background:var(--raise);color:var(--primary)}
.signin-password-toggle[hidden]{display:none}
.signin-submit{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;min-height:49px;margin-top:4px;padding:12px 18px;border:1px solid var(--primary);border-radius:8px;background:var(--primary);color:#fff;font-size:14px;font-weight:600;box-shadow:0 3px 5px #2563eb18;transition:background .15s}
.signin-submit:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.signin-submit span[aria-hidden]{font-size:19px;line-height:1}
.signin-help{margin-top:28px;padding-top:23px;border-top:1px solid var(--line);font-size:12px;line-height:1.7}
.signin-help strong{color:#42536a;font-weight:600}
.signin-help p{margin:5px 0 0;color:var(--ink-2)}
.signin-panel-footer{max-width:370px;margin:0 auto;color:var(--ink-2);font-size:11px;line-height:1.8;text-align:center}
.signin-error{margin:0 0 22px;padding:13px 15px;border:1px solid #f0c6c2;border-radius:8px;background:var(--danger-bg);color:#992b24;font-size:13px;line-height:1.6}
.signin-error strong{font-weight:650}
.signin-error p{margin:3px 0 0}
@media(min-width:1000px) and (max-height:820px){.auth-page main{padding:20px}.signin-layout{min-height:calc(100svh - 40px)}.signin-brand{gap:36px;padding-top:32px;padding-bottom:32px}.signin-panel{gap:32px;padding-top:30px;padding-bottom:24px}}
@media(max-width:1000px){.signin-brand{padding:36px 32px}.signin-panel{padding:36px 32px 28px}.signin-layout{min-height:720px}.signin-intro h2{font-size:36px}}
@media(max-width:760px){.auth-page main{display:block;padding:20px}.signin-layout{grid-template-columns:1fr;max-width:500px;min-height:0;margin:auto;border-radius:18px}.signin-brand{gap:0;padding:25px 28px}.signin-logo{font-size:22px}.signin-monogram{width:40px;height:40px;font-size:24px}.signin-intro,.signin-brand-footer{display:none}.signin-panel{gap:34px;padding:30px 28px 25px}.signin-content h1{font-size:30px}.signin-panel-footer{margin-top:0}}
@media(max-width:380px){.auth-page main{padding:12px}.signin-brand{padding:22px}.signin-panel{padding:25px 22px}.signin-panel-top>span:last-child{display:none}.signin-content>.signin-eyebrow{font-size:9px;letter-spacing:1.2px}}
@media(prefers-reduced-motion:reduce){.signin-field input,.signin-submit{transition:none}}

/* D3's operations pages: a form inside a table cell or beside a panel's title, and a parked delivery's line on the carrier page. */
.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}.inline-form input{min-height:36px;padding:6px 10px;border:1px solid #d5deea;border-radius:7px;font:inherit;font-size:12px}
.inline-form input[type=number]{width:96px}.inline-form label,.inline-form span{color:#526984;font-size:12px}
.parked-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0}.parked-line+.parked-line{border-top:1px solid #f0f3f7}

/* D3b's announcements: a publish request's text in full on the Approvals page, as carriers would read it. */
.announcement-draft{margin-top:8px;padding:10px 12px;border:1px solid #d5deea;border-radius:8px;background:#f8fafc;white-space:pre-line}
.announcement-draft p{margin:6px 0}

/* D2's AI pages: a day's spend as a bar drawn in CSS (no script), and each carrier's money limits as a card. */
.spend-bar{display:block;height:8px;min-width:2px;border-radius:4px;background:#1f6f8b}
.caps-card{padding:14px 0;border-top:1px solid #e6ecf3}.caps-card:first-of-type{border-top:0}.caps-card h3{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.caps-forms{margin-top:10px}.caps-forms summary{cursor:pointer;color:#1f6f8b;font-weight:600}
/* D2b: a part of the carrier page's AI section, after its spend: the scoreboards, then its alarms. */
.ai-part{margin:0;padding:18px 24px 8px;border-top:1px solid #edf0f5;color:#3e5879;font-size:12px;font-weight:600}

/* A8-M: the shared broker list's struck entries, a choice between two ways, and the owner's link shown once. */
.struck{color:var(--ink-2);text-decoration:line-through}.struck a{color:inherit}
fieldset.form-field{min-width:0;padding:0;border:0}fieldset.form-field legend{margin-bottom:8px;padding:0;color:#3d526e;font-size:12px;font-weight:600}
.choice{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;color:#30455f;font-size:13px}.choice input{width:auto;min-height:0;margin:3px 0 0}.choice .cell-subtext{display:block}
.shown-once{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.shown-once input{flex:1;min-width:240px;max-width:none;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}
.broker-search{margin:0}.broker-search input{flex:1;min-width:200px}

/* D4b-H: the reseller portal's frame. A top bar with the portal's name, its pages and the account menu, in place of the
   console's sidebar; the workspace takes the whole width. */
.reseller-page .admin-workspace { margin-left: 0; }
.reseller-topbar { position: sticky; top: 0; display: flex; align-items: center; gap: 28px; min-height: 68px; padding: 10px 36px; border-bottom: 1px solid var(--line); background: #fff; z-index: 20; }
.reseller-brand { display: flex; align-items: center; gap: 10px; color: #142c4d; text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.4px; white-space: nowrap; }
.reseller-brand .brand-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #142c4d; color: #fff; font-size: 18px; }
.reseller-brand small { display: block; color: #61728a; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; }
.reseller-nav { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; margin-right: auto; }
.reseller-nav a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: #3b4f6b; font-size: 13px; font-weight: 550; text-decoration: none; }
.reseller-nav a .icon { width: 16px; height: 16px; color: #6b819e; }
.reseller-nav a:hover { background: var(--raise); color: #142c4d; }
.reseller-nav a[aria-current="page"] { background: #e8f0fb; color: #142c4d; box-shadow: inset 0 -2px #2a4d78; }
.reseller-gate-note { margin-right: auto; color: #61728a; font-size: 12px; }

/* Home's checklist, the share link and its QR code, the agreement's text, and the sign-up form's extras. */
.checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.checklist .step-state { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #eef2f7; color: #55708f; font-size: 12px; font-weight: 650; }
.checklist .done .step-state { background: #e3f4ea; color: #1e7a46; }
.checklist strong { display: block; color: #22354f; }
.checklist p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.checklist form { margin-top: 10px; }
.share-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.share-box .qr-image svg { display: block; width: 160px; height: 160px; }
.agreement-text { max-height: 60vh; overflow: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; white-space: pre-wrap; font-size: 13px; line-height: 1.7; }
.signin-field textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.5; }
.signin-field .helper { margin: 6px 0 0; }
.signin-check { display: flex; align-items: flex-start; gap: 10px; color: #2a3c54; font-size: 13px; line-height: 1.6; }
.signin-check input { width: auto; min-height: 0; margin: 4px 0 0; }
@media (max-width: 1000px) { .reseller-topbar { flex-wrap: wrap; gap: 12px; padding: 10px 20px; } .share-box { grid-template-columns: 1fr; } }
/* R2 R1: the reseller kit. Find and chips that work without script, the breadcrumb on a page below a list, and the info box. */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.list-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #dbe3ee; border-radius: 999px; background: #fff; color: #415978; font-size: 12px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: #2563eb; color: #2563eb; }
.chip[aria-current="page"] { border-color: #2563eb; background: #2563eb; color: #fff; }
.chip .count { padding: 0 6px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 11px; font-variant-numeric: tabular-nums; }
.chip[aria-current="page"] .count { background: rgba(255, 255, 255, 0.2); color: #fff; }
.page-breadcrumb { margin: 0 0 10px; }
.page-breadcrumb a { color: #2563eb; font-weight: 600; text-decoration: none; }
.info-box { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 16px 20px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #1e3a8a; }
.info-box > .icon { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.info-box strong { display: block; font-size: 13px; font-weight: 650; }
.info-box p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; }
/* R2 R2: red for an act that can't be undone (its own page's button, and the way to it), and the info box's lists. */
.button-danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.button-danger:hover { border-color: #b91c1c; background: #b91c1c; color: #fff; }
.button-danger-quiet { border-color: #fecaca; background: #fff; color: #b91c1c; }
.button-danger-quiet:hover { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.info-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.7; }
