:root {
  --navy: #17213a;
  --navy-2: #212d4b;
  --brand: #5a55e7;
  --brand-soft: #eeedff;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-soft: #f8f9fc;
  --text: #172033;
  --muted: #6f788c;
  --line: #e4e8f0;
  --green: #16845f;
  --green-soft: #e8f7f1;
  --orange: #c8751b;
  --orange-soft: #fff4e4;
  --red: #c83f52;
  --red-soft: #ffedf0;
  --shadow: 0 12px 32px rgba(28, 39, 65, .08);
  --shadow-lg: 0 20px 48px rgba(25, 35, 67, .12);
  --cyan: #1098ad;
  --cyan-soft: #e6f8fb;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.auth-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); background: #f7f8fc; font-size: 13px; font-weight: 700; }
.auth-loading img { width: 220px; height: auto; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(410px, 43%) minmax(520px, 57%); background: #f7f8fc; }
.login-card { width: min(420px, calc(100% - 64px)); margin: auto; padding: 44px 0; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #6d67f4, #4640c7); color: white; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 12px 28px rgba(79, 70, 229, .24); }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; flex: 0 0 auto; }
.login-logo { display: block; width: 238px; max-width: 76%; height: auto; object-fit: contain; }
.login-kicker { margin: 34px 0 11px; display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.login-kicker span { width: 21px; height: 3px; border-radius: 99px; background: var(--brand); }
.login-card h1 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -.045em; }
.login-copy { max-width: 390px; margin: 13px 0 32px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.login-card form { display: grid; gap: 10px; }
.login-card form > label, .password-label label { font-size: 14px; }
.password-label { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-label small { color: var(--muted); font-size: 12px; }
.input-shell { position: relative; }
.input-shell > span { position: absolute; top: 50%; left: 15px; z-index: 1; color: #98a1b4; font-size: 14px; font-weight: 800; transform: translateY(-50%); }
.input-shell input { height: 50px; padding: 0 72px 0 43px; border-radius: 12px; font-size: 14px; box-shadow: 0 1px 2px rgba(23,32,51,.025); }
.input-shell input::placeholder { color: #a1a8b7; }
.password-toggle { position: absolute; top: 50%; right: 8px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--brand); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; transform: translateY(-50%); }
.password-toggle:hover { background: var(--brand-soft); }
.login-card .button.wide { min-height: 50px; margin-top: 12px; border-radius: 12px; font-size: 14px; box-shadow: 0 12px 24px rgba(90,85,231,.2); }
.login-card .button.wide:disabled { cursor: wait; opacity: .7; }
.demo-note.login-lock-warning { padding: 12px 14px; border: 1px solid #efb6c0; border-left: 4px solid var(--red); border-radius: 10px; color: #9f1239; background: var(--red-soft); font-weight: 750; line-height: 1.5; }
label { font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--text); outline: none; }
input, select { height: 44px; padding: 0 12px; }
textarea { min-height: 94px; padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(90, 85, 231, .11); }
.demo-note { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 80px; overflow: hidden; color: white; background: radial-gradient(circle at 60% 34%, #5e5bdd 0 3%, transparent 4%), linear-gradient(145deg, #202a4a 0%, #151d34 60%, #25234e 100%); }
.login-aside::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent); }
.login-aside p, .login-aside strong { position: relative; z-index: 2; }
.login-aside p { margin: 0 0 9px; color: #aeb8d3; font-size: 13px; }
.login-aside strong { width: min(560px, 90%); font-size: clamp(32px, 4vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
.pulse-orbit { position: absolute; width: 420px; height: 420px; top: 50%; left: 55%; transform: translate(-50%, -62%); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.pulse-orbit::before, .pulse-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.pulse-orbit::before { inset: 58px; }.pulse-orbit::after { inset: 120px; }
.pulse-orbit span { position: absolute; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #58d4a6; box-shadow: 0 0 0 7px rgba(88, 212, 166, .13); }
.pulse-orbit span:nth-child(1) { top: 32px; left: 105px; }.pulse-orbit span:nth-child(2) { right: 22px; top: 220px; background: #ffbd69; }.pulse-orbit span:nth-child(3) { left: 93px; bottom: 39px; background: #ff7284; }

.login-kicker { margin: 34px 0 11px; display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.login-kicker span { width: 21px; height: 3px; border-radius: 99px; background: var(--brand); }
.login-card h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -.045em; }
.login-copy { max-width: 390px; margin: 13px 0 32px; font-size: 15px; line-height: 1.65; }
.login-card form { gap: 10px; }
.login-card form > label, .password-label label { font-size: 14px; }
.password-label { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-label small { color: var(--muted); font-size: 12px; }
.input-shell { position: relative; }
.input-shell > span { position: absolute; top: 50%; left: 15px; z-index: 1; color: #98a1b4; font-size: 14px; font-weight: 800; transform: translateY(-50%); }
.input-shell input { height: 50px; padding: 0 72px 0 43px; border-radius: 12px; font-size: 14px; box-shadow: 0 1px 2px rgba(23,32,51,.025); }
.input-shell input::placeholder { color: #a1a8b7; }
.password-toggle { position: absolute; top: 50%; right: 8px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--brand); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; transform: translateY(-50%); }
.password-toggle:hover { background: var(--brand-soft); }
.login-card .button.wide { min-height: 50px; margin-top: 12px; border-radius: 12px; font-size: 14px; box-shadow: 0 12px 24px rgba(90,85,231,.2); }
.login-card .button.wide:disabled { cursor: wait; opacity: .7; }
.demo-note { min-height: 18px; margin: 14px 0 0; font-size: 12px; line-height: 1.55; }
.login-security { margin-top: 24px; padding-top: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.login-security > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.login-security strong, .login-security small { display: block; }
.login-security strong { color: var(--text); font-size: 12px; }
.login-security small { margin-top: 2px; font-size: 11px; }

.login-aside { min-height: 100vh; padding: 42px clamp(38px, 5vw, 78px) 54px; justify-content: initial; background: linear-gradient(145deg, #18223c 0%, #202b4b 54%, #322f70 100%); }
.login-aside::before { content: ""; position: absolute; width: 620px; height: 620px; top: -280px; right: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(107,99,255,.3), rgba(107,99,255,0) 68%); }
.login-aside::after { background-image: linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black 10%, transparent 83%); }
.login-aside-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aside-brand { font-size: 13px; font-weight: 850; letter-spacing: .16em; }
.aside-live { padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #cbd3e7; background: rgba(255,255,255,.055); font-size: 12px; }
.aside-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ed1a3; box-shadow: 0 0 0 5px rgba(78,209,163,.12); }
.login-preview { position: relative; z-index: 2; width: min(650px, 100%); margin: auto; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(12,18,35,.52); box-shadow: 0 34px 80px rgba(5,9,23,.34); backdrop-filter: blur(18px); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-head div { display: grid; gap: 4px; }
.preview-head small { color: #8995b0; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.preview-head strong { font-size: 19px; }
.preview-head > span { padding: 7px 10px; border-radius: 999px; color: #73dfb8; background: rgba(78,209,163,.11); font-size: 11px; font-weight: 750; }
.preview-kpis { margin: 25px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-kpis div { padding: 15px; border-radius: 13px; background: rgba(255,255,255,.055); }
.preview-kpis small, .preview-kpis strong { display: block; }
.preview-kpis small { color: #929eb8; font-size: 11px; }
.preview-kpis strong { margin-top: 7px; font-size: 25px; font-variant-numeric: tabular-nums; }
.preview-kpis strong::after { content: attr(data-value); }
.preview-ok { color: #62d8ae; }
.preview-alert { color: #ff8795; }
.preview-chart { height: 120px; padding: 15px 14px 0; display: flex; align-items: flex-end; gap: clamp(6px, 1vw, 12px); border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 100% 36px; }
.preview-chart span { width: 100%; min-width: 5px; border-radius: 5px 5px 1px 1px; background: linear-gradient(to top, #5a55e7, #8580ff); opacity: .88; }
.preview-row { min-height: 58px; padding: 12px 2px; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.preview-row:last-child { border-bottom: 0; }
.preview-row strong, .preview-row small { display: block; }
.preview-row strong { font-size: 12px; }
.preview-row small { margin-top: 4px; color: #8e9ab4; font-size: 10px; }
.preview-row b { color: #aeb8ce; font-size: 10px; }
.preview-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; color: #eef2ff; }.preview-empty strong { font-size: 1rem; }.preview-empty small { max-width: 320px; margin-top: 8px; color: #aeb8ce; font-size: .875rem; line-height: 1.55; }
.preview-stream { min-height: 220px; padding: 0 16px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(9,15,31,.27); transition: opacity .32s ease, transform .32s ease; }
.login-preview.is-resetting .preview-stream { opacity: 0; transform: translateY(5px); }
.preview-stream-head { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.preview-stream-head > strong { color: #cfd6e8; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.preview-sync { display: inline-flex; align-items: center; gap: 7px; color: #8e9ab4; font-size: 9px; }
.preview-sync > i { width: 6px; height: 6px; border-radius: 50%; background: #7f8aa4; box-shadow: 0 0 0 4px rgba(127,138,164,.1); transition: background .25s, box-shadow .25s; }
.preview-status { display: none; font: inherit; }
.login-preview[data-phase="0"] .preview-status-scan, .login-preview[data-phase="1"] .preview-status-scan, .login-preview[data-phase="2"] .preview-status-review, .login-preview[data-phase="3"] .preview-status-review, .login-preview[data-phase="4"] .preview-status-done { display: inline; }
.login-preview[data-phase="0"] .preview-sync > i, .login-preview[data-phase="1"] .preview-sync > i { background: #8580ff; box-shadow: 0 0 0 4px rgba(133,128,255,.12); animation: preview-pulse 1.15s ease-in-out infinite; }
.login-preview[data-phase="2"] .preview-sync > i, .login-preview[data-phase="3"] .preview-sync > i { background: #ffb562; box-shadow: 0 0 0 4px rgba(255,181,98,.12); animation: preview-pulse .9s ease-in-out infinite; }
.login-preview[data-phase="4"] .preview-sync > i { background: #4ed1a3; box-shadow: 0 0 0 4px rgba(78,209,163,.12); }
.preview-event { min-height: 58px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); opacity: 0; transform: translateY(8px); transition: opacity .38s ease, transform .38s ease; }
.preview-event-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #66deb4; background: rgba(78,209,163,.1); font-size: 11px; font-weight: 850; }
.preview-event-review .preview-event-icon { color: #ffc075; background: rgba(255,181,98,.1); }
.preview-event strong, .preview-event small { display: block; }
.preview-event strong { color: #e8ecf7; font-size: 11px; }
.preview-event small { margin-top: 3px; color: #8490aa; font-size: 9px; }
.preview-event time { color: #7d89a3; font-size: 9px; font-variant-numeric: tabular-nums; }
.preview-loader { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.12); border-top-color: #ffb562; border-radius: 50%; animation: preview-spin .8s linear infinite; }
.login-preview[data-phase="1"] .preview-event-arrival, .login-preview[data-phase="2"] .preview-event-arrival, .login-preview[data-phase="3"] .preview-event-arrival, .login-preview[data-phase="4"] .preview-event-arrival { opacity: 1; transform: translateY(0); }
.login-preview[data-phase="2"] .preview-event-review, .login-preview[data-phase="3"] .preview-event-review { opacity: 1; transform: translateY(0); }
.login-preview[data-phase="4"] .preview-event-review { opacity: 0; transform: translateY(-7px); }
.preview-note { position: absolute; left: 14px; right: 14px; bottom: 12px; min-height: 102px; padding: 12px 13px 10px; border: 1px solid rgba(78,209,163,.2); border-radius: 11px; color: #dfe6f5; background: linear-gradient(120deg, rgba(78,209,163,.11), rgba(78,209,163,.045)); opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .42s ease, transform .42s ease; }
.preview-note-head { display: flex; align-items: center; gap: 7px; }
.preview-note-head strong { font-size: 10px; }
.preview-note-head small { margin-left: auto; color: #65d8af; font-size: 9px; font-weight: 750; }
.preview-note-check { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #0f3c31; background: #55d2a5; font-size: 10px; font-weight: 900; }
.preview-note p { margin: 8px 0 7px; color: #aeb8ce; font-size: 9px; line-height: 1.45; }
.preview-note footer { display: flex; justify-content: space-between; color: #75829e; font-size: 8px; }
.preview-note-typing { height: 40px; display: none; align-items: center; gap: 4px; color: #8490aa; }
.preview-note-typing span { width: 5px; height: 5px; border-radius: 50%; background: #8e9ab4; animation: preview-typing 1s ease-in-out infinite; }
.preview-note-typing span:nth-child(2) { animation-delay: .14s; }.preview-note-typing span:nth-child(3) { animation-delay: .28s; }
.preview-note-typing small { margin-left: 5px; font-size: 9px; }
.login-preview[data-phase="3"] .preview-note { opacity: 1; transform: translateY(0) scale(1); border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.login-preview[data-phase="3"] .preview-note-head, .login-preview[data-phase="3"] .preview-note p, .login-preview[data-phase="3"] .preview-note footer { display: none; }
.login-preview[data-phase="3"] .preview-note-typing { display: flex; }
.login-preview[data-phase="4"] .preview-note { opacity: 1; transform: translateY(0) scale(1); }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@keyframes preview-pulse { 50% { opacity: .45; transform: scale(.78); } }
@keyframes preview-typing { 0%, 55%, 100% { opacity: .35; transform: translateY(0); } 25% { opacity: 1; transform: translateY(-2px); } }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; }
.ok-dot { background: #4ed1a3; }
.warn-dot { background: #ffb562; }
.login-aside-copy { position: relative; z-index: 2; width: min(650px, 100%); margin: 0 auto; }
.login-aside-copy p { margin: 0 0 7px; color: #9aa6be; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-aside-copy strong { display: block; max-width: 590px; font-size: clamp(25px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.login-aside-copy > span { display: block; max-width: 560px; margin-top: 10px; color: #aeb8ce; font-size: 13px; line-height: 1.55; }

.two-factor-panel { margin-top: 4px; }
.setup-step { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 11px; }
.setup-step > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: white; background: var(--brand); font-size: 13px; font-weight: 800; }
.setup-step strong, .setup-step small { display: block; }
.setup-step strong { font-size: 14px; }
.setup-step small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.qr-frame { width: 178px; height: 178px; margin: 16px auto; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.manual-secret { margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: var(--panel-soft); text-align: center; }
.manual-secret small, .manual-secret code { display: block; }
.manual-secret small { color: var(--muted); font-size: 10px; }
.manual-secret code { margin-top: 5px; color: var(--text); font-size: 11px; font-weight: 750; letter-spacing: .08em; word-break: break-all; }
.two-factor-panel form label { font-size: 14px; }
.otp-input { height: 52px; margin-top: 8px; text-align: center; font-size: 23px; font-weight: 800; letter-spacing: .28em; }
.secondary-login { margin-top: 0 !important; box-shadow: none !important; }

.app { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); background: radial-gradient(circle at 78% 0, rgba(90,85,231,.07), transparent 28%), var(--bg); }
.sidebar { position: sticky; top: 0; z-index: 3; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 20px 14px 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #f5f7ff; background: linear-gradient(180deg, #192541 0%, #111a31 100%); box-shadow: 8px 0 32px rgba(13, 21, 42, .08); }
.brand { min-height: 66px; padding: 4px 8px 12px; display: grid; align-content: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo { width: 180px; max-width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.brand-caption { display: grid; gap: 3px; color: #98a3bd; font-size: 12px; font-weight: 650; letter-spacing: .015em; }
.brand-caption strong { width: 180px; max-width: 100%; text-align: center; color: #cbd3e5; font-size: 13px; }
.nav { margin-top: 22px; display: grid; gap: 5px; }
/* Only the menu scrolls. Brand and collector status occupy separate fixed rows. */
.sidebar > .nav { min-height: 0; min-width: 0; margin-bottom: 16px; padding: 3px 4px 8px 0; overflow-y: auto; overflow-x: hidden; align-content: start; grid-auto-rows: max-content; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #74819f transparent; scroll-padding-block: 8px; }
.sidebar > .nav::-webkit-scrollbar { width: 6px; }
.sidebar > .nav::-webkit-scrollbar-thumb { background: #74819f; border-radius: 8px; }
.sidebar > .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar .nav-item { min-width: 0; padding-block: 8px; overflow-wrap: anywhere; }
.sidebar .nav-item > span { flex: 0 0 17px; }
.sidebar .nav-item > .nav-label { flex: 0 0 auto; width: auto; color: inherit; font-size: inherit; text-align: left; white-space: nowrap; }
.sidebar .nav-item[data-page="review"] { gap: 8px; }
.nav p { margin: 15px 10px 6px; color: #74819f; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-item { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; color: #b9c2d8; cursor: pointer; text-align: left; font-size: 13px; }
.nav-item > span { width: 17px; color: #919cb7; font-size: 16px; text-align: center; }
.nav-item b { margin-left: auto; flex: 0 0 auto; min-width: 23px; padding: 3px 6px; border-radius: 999px; color: white; background: #d94b61; font-size: 10px; line-height: 1.4; text-align: center; white-space: nowrap; overflow-wrap: normal; word-break: normal; font-variant-numeric: tabular-nums; }
.nav-item b.tracking-alert { background: var(--orange); }.nav-item b.tracking-alert.critical { background: var(--red); }
.nav-item .tracking-nav-counts { margin-left: auto; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; font-style: normal; }.nav-item .tracking-nav-counts[hidden] { display: none; }.nav-item .tracking-nav-counts b { margin-left: 0; white-space: nowrap; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: linear-gradient(110deg, #625df0, #4e65e8); box-shadow: 0 10px 24px rgba(48, 42, 173, .32); }.nav-item.active > span { color: white; }
.collector-state { margin-top: 0; min-width: 0; padding: 13px; display: flex; gap: 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.045)); box-shadow: 0 10px 24px rgba(4, 10, 25, .13); }
.collector-state > div { min-width: 0; overflow-wrap: anywhere; }
.collector-state strong, .collector-state small { display: block; }.collector-state strong { font-size: 11px; }.collector-state small { margin-top: 4px; color: #9ba6bf; font-size: 10px; }
.live-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #43d39e; box-shadow: 0 0 0 5px rgba(67,211,158,.11); flex: 0 0 auto; }
.collector-state.pending .live-dot { background: #8792aa; box-shadow: 0 0 0 5px rgba(135,146,170,.11); }.collector-state.error .live-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(217,75,97,.11); }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 2; min-height: 71px; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(224,228,238,.9); background: rgba(255,255,255,.91); box-shadow: 0 5px 20px rgba(23,32,51,.035); backdrop-filter: blur(16px); }
.topbar > div:first-of-type { display: grid; gap: 3px; }.topbar strong { font-size: 15px; }.topbar small { display: block; color: var(--muted); font-size: 10px; }
.top-actions, .user { display: flex; align-items: center; gap: 10px; }.user { padding-left: 5px; }.user > span { text-align: right; font-size: 11px; font-weight: 700; }.user i { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #dcd9ff; border-radius: 11px; color: var(--brand); background: linear-gradient(145deg, #f3f2ff, #e8e6ff); box-shadow: 0 7px 16px rgba(90,85,231,.1); font-size: 11px; font-style: normal; font-weight: 800; }
.company-badge { max-width: 240px; padding: 7px 10px; overflow: hidden; border: 1px solid #d8d6ff; border-radius: 9px; color: #4338ca; background: var(--brand-soft); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }.icon-button:hover { border-color: #c9ceda; background: var(--panel-soft); }
.notification-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--red); }
.mobile-only { display: none; }

.content { width: min(1460px, 100%); margin: 0 auto; padding: 24px 26px 40px; }
.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.025em; }.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; gap: 8px; }
.system-actions { display: flex; align-items: center; gap: 8px; }
.database-pool-card { grid-column: 1 / -1; }
.pool-settings-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pool-settings-fields label { min-width: 0; }
.pool-settings-fields small { color: var(--muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 1050px) { .pool-settings-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pool-settings-fields { grid-template-columns: 1fr; } }
.incident-sort-heading { display: inline-flex; align-items: center; gap: 6px; }
.incident-sort-directions { display: inline-flex; gap: 2px; }
.incident-sort-arrow { min-width: 24px; min-height: 28px; padding: 2px 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #64748b; font: inherit; font-size: 14px; cursor: pointer; }
.incident-sort-arrow:hover { background: #eef2f7; }
.incident-sort-arrow.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.incident-sort-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.passive-mail-row { background: #f8fafc; color: #64748b; }
.passive-mail-row .pill { background: #e2e8f0; color: #475569; }
#incident-date-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#incident-date-dialog input { min-width: 0; width: 100%; box-sizing: border-box; }
.incident-table-actions { flex-wrap: wrap; }
@media (max-width: 600px) { #incident-date-dialog .form-grid { grid-template-columns: 1fr; } }
.button { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }.button:hover { border-color: #c6cbd7; }.button.primary { border-color: var(--brand); color: white; background: var(--brand); }.button.danger { border-color: #efb8c0; color: var(--red); background: var(--red-soft); }.button.wide { width: 100%; margin-top: 12px; }.button.small { min-height: 31px; padding: 0 9px; font-size: 10px; }
.search { width: min(330px, 100%); position: relative; }.search input { padding-left: 36px; }.search::before { content: "⌕"; position: absolute; top: 9px; left: 13px; color: var(--muted); z-index: 1; }

.kpis { margin-bottom: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi, .panel, .customer-card, .setting-card { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 1px 2px rgba(22,32,51,.02); }
.kpi { padding: 16px; }.kpi-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }.kpi-label i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-soft); font-style: normal; }.kpi-value { margin-top: 6px; font-size: 27px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }.kpi-note { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ok { color: var(--green) !important; }.warn { color: var(--orange) !important; }.bad { color: var(--red) !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 14px; }
.panel { overflow: hidden; }.panel-head { min-height: 49px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }.panel-head strong { font-size: 12px; }.panel-head span { color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }.table { width: 100%; border-collapse: collapse; font-size: 11px; }.table th { padding: 10px 13px; color: var(--muted); background: var(--panel-soft); text-align: left; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }.table td { padding: 12px 13px; border-top: 1px solid var(--line); vertical-align: middle; }.table tbody tr:first-child td { border-top: 0; }.table tbody tr:hover { background: #fbfcfe; }.company { font-weight: 750; }.sub { margin-top: 3px; color: var(--muted); font-size: 10px; }.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; font-weight: 750; }.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }.status.reviewed::after { content: "✓"; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
.alerts { padding: 10px; display: grid; gap: 8px; }.alert { padding: 11px; display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; border-radius: 10px; background: var(--panel-soft); }.alert-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: currentColor; }.alert strong { display: block; color: var(--text); font-size: 11px; }.alert p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.customer-tools { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }.customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.customer-tools .legend { flex-wrap: wrap; }
.customer-tools .legend .customer-no-plan { color: var(--muted); }
.customer-mail-health { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.customer-mail-health-head { display: grid; justify-items: start; gap: 8px; }
.customer-mail-health-head small { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 500; }
.customer-mail-health .status { white-space: normal; line-height: 1.5; font-size: 12px; padding: 5px 9px; font-weight: 600; }
.customer-mail-total { margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.customer-mail-total strong { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.customer-mail-total strong span { color: var(--muted); font-size: inherit; font-weight: 500; }
.customer-mail-counts { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; line-height: 1.5; }
.customer-mail-counts > span { white-space: nowrap; }
.customer-mail-counts .bad { color: var(--red); }.customer-mail-counts .warn { color: var(--orange); }.customer-mail-counts .neutral { color: var(--muted); }
.customer-mail-empty { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.customer-mail-health.compact { border: 0; padding: 0; margin: 0; min-width: 170px; max-width: 260px; }
.customer-mail-health.compact .customer-mail-total { margin-top: 5px; }.customer-mail-health.compact .customer-mail-total strong { font-size: 14px; }
.operational-customers .customer-card-open { padding: 16px; height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.operational-customers .card-top { padding-right: 38px; min-height: 39px; gap: 8px; }
.operational-customers .card-top .company-icon { flex: 0 0 36px; width: 36px; height: 36px; }
.operational-customers .customer-card-edit { top: 16px; right: 12px; bottom: auto; }
.operational-customers .customer-card h2 { font-size: 14px; font-weight: 650; line-height: 1.5; min-height: 21px; margin: 10px 0 2px; overflow-wrap: anywhere; }
.operational-customers .customer-card .sub, .operational-customers .card-meta, .operational-customers .customer-card .status { font-size: 12px; line-height: 1.5; }
.operational-customers .customer-card .sub { margin-top: 0; }
.operational-customers .card-meta { margin-top: 7px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; }
.operational-customers .card-meta > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.operational-customers .card-top .status { padding: 3px 6px; font-weight: 600; white-space: normal; min-width: 0; text-align: left; }
.operational-customers .card-top .status::before { flex: 0 0 7px; }
.operational-customers .card-summary { margin-top: 9px; padding-top: 8px; }
.operational-customers .card-summary .customer-mail-total, .operational-customers .card-summary .customer-mail-empty { margin-top: 0; }
.operational-customers .card-summary .customer-mail-counts { margin-top: 4px; }
.operational-customers .card-summary .customer-mail-counts:empty { display: none; }
.operational-customers .customer-grid { gap: 16px; }
.customer-card { position: relative; min-height: 172px; padding: 0; cursor: pointer; text-align: left; overflow: hidden; }.customer-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }.customer-card-open { width: 100%; min-height: 170px; padding: 15px 54px 15px 15px; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }.customer-card-edit { position: absolute; right: 13px; bottom: 13px; color: var(--brand); font-size: 18px; line-height: 1; }.customer-card-edit:hover { border-color: var(--brand); background: var(--brand-soft); }.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.company-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 800; }.customer-card h2 { margin: 13px 0 4px; font-size: 14px; }.tag-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }.tag { padding: 4px 7px; border-radius: 999px; color: var(--muted); background: var(--panel-soft); font-size: 9px; font-weight: 650; }.card-meta { margin-top: 14px; display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.detail-hero { margin-bottom: 14px; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }.detail-id { display: flex; align-items: center; gap: 12px; }.detail-id .company-icon { width: 46px; height: 46px; }.detail-id h2 { margin: 0; font-size: 17px; }.detail-id p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.system-title { min-height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-soft); font-size: 11px; font-weight: 800; }.system-title:first-child { border-top: 0; }.system-title span:first-child { color: var(--brand); }.system-title .button { margin-left: auto; }
.detail-columns { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(420px,1.25fr); gap: 14px; align-items: start; }
.record-row { min-height: 62px; padding: 12px 14px; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--line); }.record-row:first-child { border-top: 0; }.record-row small, .rule-record small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }.record-mark { width: 8px; height: 32px; border-radius: 99px; }
.rule-record { padding: 13px 14px; border-top: 1px solid var(--line); }.rule-record:first-child { border-top: 0; }.rule-record-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.rule-record-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }.rule-record-meta span { padding: 5px 7px; border-radius: 6px; color: var(--muted); background: var(--panel-soft); font-size: 9px; }
.form-dialog.wide-dialog { width: min(680px, calc(100vw - 28px)); }.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.settings-form textarea, .form-dialog textarea { width: 100%; resize: vertical; }
.schedule-field { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }.schedule-field legend { padding: 0 6px; color: var(--muted); font-size: .875rem; }.schedule-field > small { display: block; margin-top: 9px; color: var(--muted); font-size: .75rem; }.schedule-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }.weekday-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }.weekday-grid label { position: relative; min-width: 0; display: block; cursor: pointer; }.weekday-grid input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }.weekday-grid input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }.weekday-grid span { min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: .75rem; font-weight: 750; }.weekday-grid input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.timezone-note { margin: -5px 0 0; color: var(--muted); font-size: .75rem; }.status.neutral { color: #475569; background: #eef2f7; }
.service-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.service-facts > div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); }.service-facts small, .service-facts strong { display: block; }.service-facts small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }.service-facts strong { font-size: 11px; overflow-wrap: anywhere; }
.toggle { width: 32px; height: 19px; padding: 0; position: relative; border: 0; border-radius: 99px; background: var(--green); cursor: pointer; }.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; transition: .15s; }.toggle.off { background: #cbd0db; }.toggle.off::after { right: 16px; }

.legend { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 10px; }.legend span { display: inline-flex; align-items: center; gap: 5px; }.legend i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tracking-list { display: grid; }.tracking-row { min-height: 62px; padding: 9px 12px; display: grid; grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(140px, .8fr)); align-items: center; gap: 8px; border-top: 1px solid var(--line); }.tracking-row:first-child { border-top: 0; }.result { min-height: 36px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 9px; font-size: 10px; font-weight: 750; }.result.ok { background: var(--green-soft); }.result.warn { background: var(--orange-soft); }.result.bad { background: var(--red-soft); }.empty { color: #aab1bf; font-size: 10px; }
.tabs { margin-bottom: 13px; padding: 4px; display: inline-flex; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: white; }.tab { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; }.tab.active { color: var(--brand); background: var(--brand-soft); }.tab .count { margin-left: 6px; padding: 2px 6px; border-radius: 999px; color: white; background: var(--red); font-size: 9px; }
.comment { max-width: 280px; color: var(--muted); font-size: 10px; line-height: 1.45; }.repeat-bar { width: 100%; max-width: 110px; height: 6px; overflow: hidden; border-radius: 99px; background: #f0d4d9; }.repeat-bar span { height: 100%; display: block; border-radius: inherit; background: var(--red); }
.audit-summary { margin-bottom: 14px; }.audit-table { min-width: 1180px; }.audit-table td { vertical-align: top; }.audit-category, .audit-correlation { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }.audit-correlation { font-family: Consolas, "Courier New", monospace; }
.reviewed-incident { background: var(--green-soft); }.reviewed-badge { display:inline-block; margin-bottom:4px; color:var(--green); font-size:10px; font-weight:800; }.tab .closed-count { background: var(--green); }.incident-time { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: Consolas, "Courier New", monospace; font-size: 10px; font-weight: 600; white-space: nowrap; }.incident-time span { color: var(--muted); font: inherit; }.expected-incident-table { min-width: 900px; }
.incident-table-tools { margin: 0 14px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.incident-table-tools > span { color: var(--muted); font-size: 10px; white-space: nowrap; }.incident-table-actions { align-items: center; }.table-limit-note { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.3; white-space: nowrap; }.incident-table { min-width: 1080px; }.sort-button { padding: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }.sort-button span { color: #a3aab8; font-size: 13px; line-height: 1; }.sort-button.active { color: var(--brand); }.sort-button.active span { color: var(--brand); }.sort-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
#incident-list[aria-busy="true"] { opacity: .62; pointer-events: none; }.incident-actions { display: flex; align-items: center; gap: 5px; }.table-action { width: 31px; height: 31px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; transition: background .15s, transform .15s; }.table-action:hover { transform: translateY(-1px); }.table-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }.table-action.view { color: #0284c7; }.table-action.view:hover { background: #e0f2fe; }.table-action.edit { position: relative; color: #e58a00; }.table-action.edit:hover { background: #fff4d6; }.table-action.edit.has-note::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--green); }.table-action.save { color: var(--green); }.table-action.save:hover { background: #e4f8f0; }
.table-pagination { padding: 13px 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.table-pagination nav { display: flex; align-items: center; gap: 4px; }.table-pagination button { min-width: 31px; min-height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; cursor: pointer; font: inherit; font-weight: 750; }.table-pagination button:hover:not(:disabled), .table-pagination button.active { border-color: var(--brand); color: white; background: var(--brand); }.table-pagination button:disabled { opacity: .42; cursor: default; }
.incident-dialog-body { padding: 22px; display: grid; gap: 18px; }.incident-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.incident-detail-grid > div { padding: 12px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }.incident-detail-grid > .wide { grid-column: 1 / -1; }.incident-detail-grid small { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }.incident-detail-grid strong { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }.incident-detail-grid span { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }.incident-detail-grid p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.setting-card { padding: 16px; }.setting-head { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; }.setting-head h2 { margin: 0; font-size: 14px; }.setting-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.permission-list, .db-list { display: grid; gap: 8px; }.permission-row, .db-row { padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; background: var(--panel-soft); }.permission-row strong, .db-row strong { display: block; font-size: 11px; }.permission-row small, .db-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.pill { padding: 4px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 9px; font-weight: 800; }.secret { padding: 12px; display: grid; gap: 8px; border-radius: 9px; background: var(--panel-soft); }.secret code { color: var(--muted); letter-spacing: .16em; }.note { padding: 11px 12px; border-left: 3px solid var(--brand); border-radius: 7px; color: var(--muted); background: var(--brand-soft); font-size: 10px; line-height: 1.5; }
.language-select, .date-picker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }.language-select select, .date-picker input, .date-picker select { min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font: inherit; }
.tracking-date-control input { width: 116px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.tracking-date-control button { width: 36px; height: 36px; min-height: 36px; }
.tracking-date-control svg { width: 19px; height: 19px; }
.login-language { position: absolute; top: 18px; right: 18px; }.login-card { position: relative; }
.customer-report { margin: 0 0 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.customer-report article { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }.customer-report small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }.customer-report strong { font-size: 20px; }.customer-report strong.ok { color: var(--green); }.customer-report strong.warn { color: var(--orange); }.customer-report strong.bad { color: var(--red); }.rule-actions { display: flex; align-items: center; gap: 8px; }
.timeline-panel { margin-bottom: 14px; overflow: hidden; }.timeline-scroll { overflow-x: auto; }.timeline-canvas { min-width: 980px; padding: 6px 14px 14px; }.timeline-hours, .timeline-row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }.timeline-hours > div { display: flex; justify-content: space-between; padding-bottom: 8px; color: var(--muted); font-size: 8px; }.timeline-row { min-height: 50px; align-items: center; border-top: 1px solid var(--line); }.timeline-label strong,.timeline-label small { display:block; }.timeline-label strong { font-size:10px; }.timeline-label small { margin-top:3px; color:var(--muted); font-size:8px; }.timeline-track { position: relative; height: 34px; background: repeating-linear-gradient(to right,transparent 0,transparent calc(8.333% - 1px),var(--line) calc(8.333% - 1px),var(--line) 8.333%); }.timeline-event { position:absolute; top:5px; min-width:92px; padding:5px 7px; display:flex; align-items:center; gap:5px; transform:translateX(-6px); border-radius:8px; background:var(--panel-soft); white-space:nowrap; box-shadow:0 1px 3px rgba(22,32,51,.12); }.timeline-event i { width:7px; height:7px; border-radius:50%; background:currentColor; }.timeline-event b { font-size:9px; }.timeline-event em { color:var(--muted); font-size:8px; font-style:normal; }.timeline-event.ok { color:var(--green); }.timeline-event.warn { color:var(--orange); }.timeline-event.bad { color:var(--red); }.timeline-event.neutral { color:var(--muted); }
.settings-form { display: grid; gap: 10px; }.settings-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }.form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(90px, .6fr); gap: 9px; }.form-feedback { min-height: 16px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.regex-help { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-soft); font-size: 10px; line-height: 1.55; }.regex-help summary { color: var(--brand); cursor: pointer; font-weight: 800; }.regex-help[open] summary { margin-bottom: 8px; }.regex-help p { margin: 5px 0; }.regex-help code { color: var(--text); font-size: 10px; word-break: break-word; }
.users-card { grid-column: 1 / -1; }.user-create { margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); }.user-create summary { color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 800; }.user-create[open] summary { margin-bottom: 12px; }.admin-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: flex-start; }.admin-check input { width: auto; }.user-security-row { align-items: flex-start; }.user-security-row.is-disabled { opacity: .62; }.user-summary { min-width: 210px; }.user-summary .pill { margin-left: 5px; }.user-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.user-controls select { width: auto; min-width: 150px; min-height: 31px; padding: 4px 8px; font-size: 10px; }.button.danger { color: var(--red); border-color: #efb6c0; }.form-feedback.error { color: var(--red); }
.user-group-list, .internal-user-groups { display: grid; gap: 10px; }.user-group { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }.user-group > summary { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: var(--panel-soft); cursor: pointer; }.user-group > summary strong { font-size: 11px; }.user-group > summary span, .user-section-head span { color: var(--muted); font-size: 9px; }.user-group-body { padding: 8px; display: grid; gap: 7px; }.customer-user-section, .closed-user-section { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }.user-section-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.user-section-head strong, .user-section-head small { display: block; }.user-section-head strong { font-size: 12px; }.user-section-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }.closed-user-section .user-section-head strong { color: var(--muted); }.closed-user-date { color: var(--muted); font-size: 9px; white-space: nowrap; }.user-security-row.is-closed { opacity: .76; }
.license-card { grid-column: 1 / -1; }.license-token { min-height: 76px; font-family: Consolas, "Courier New", monospace; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 420px; padding: 13px 38px 13px 15px; border-radius: 10px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }.toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }.toast.error { background:#a9253a; }.toast.warning { background:#a75a08; }.toast button { position:absolute;top:6px;right:7px;width:25px;height:25px;border:0;color:white;background:transparent;cursor:pointer;font-size:17px; }

.notification-shell { position:relative; }.notification-button { position:relative; }.notification-button svg { width:18px;height:18px; }.notification-button>span { position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border:2px solid white;border-radius:99px;color:white;background:var(--red);font-size:8px;font-weight:900; }.notification-center { position:absolute;top:45px;right:0;z-index:35;width:min(390px,calc(100vw - 28px));max-height:min(620px,calc(100vh - 90px));overflow:hidden;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 22px 60px rgba(22,31,56,.2); }.notification-center>header { min-height:64px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line); }.notification-center>header strong,.notification-center>header small { display:block; }.notification-center>header small { margin-top:2px;color:var(--muted);font-size:9px; }.notification-center>header button { border:0;color:var(--brand);background:transparent;cursor:pointer;font-size:9px;font-weight:800; }.notification-list { max-height:520px;overflow-y:auto; }.notification-item { width:100%;padding:13px 15px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;border:0;border-bottom:1px solid #eef0f5;background:white;text-align:left;cursor:pointer; }.notification-item.unread { background:#f7f7ff; }.notification-item:hover { background:#f2f3fb; }.notification-item>i { width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#514cc7;background:#ecebff;font-style:normal;font-weight:900; }.notification-item.success>i { color:#087f5b;background:#ddf7ed; }.notification-item.warning>i { color:#a75a08;background:#fff0d8; }.notification-item.error>i { color:#b32640;background:#ffe4e9; }.notification-item strong,.notification-item span,.notification-item time { display:block; }.notification-item strong { font-size:10px; }.notification-item span { margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45; }.notification-item time { margin-top:5px;color:#9aa1b2;font-size:8px; }.notification-empty { padding:34px 18px;text-align:center;color:var(--muted);font-size:10px; }

.rule-time-editor { padding:13px;border:1px solid var(--line);border-radius:12px;background:#fafbfe; }.rule-time-editor>header { margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;gap:12px; }.rule-time-editor>header strong,.rule-time-editor>header small { display:block; }.rule-time-editor>header small { margin-top:3px;color:var(--muted);font-size:9px; }.rule-time-slots { display:grid;gap:8px; }.rule-time-slot { padding:9px;display:grid;grid-template-columns:26px minmax(110px,1fr) auto minmax(110px,1fr) minmax(0,auto) auto;align-items:end;gap:8px;border:1px solid #e3e5ee;border-radius:10px;background:white; }.rule-time-slot-number { align-self:center;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;color:#5751d0;background:#eeeeff;font-size:9px;font-weight:900; }.rule-time-slot label { display:grid;gap:4px;color:var(--muted);font-size:8px;font-weight:750; }.rule-time-slot input { width:100%;min-height:35px;padding:0 9px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:11px; }.rule-time-separator { align-self:center;color:var(--muted); }.rule-time-slot>[data-slot-overnight] { align-self:center;color:#a65d0b;font-size:8px;font-weight:800;white-space:nowrap; }.rule-slot-summary { margin:10px 2px 0;color:#5751d0;font-size:9px;font-weight:800; }.rule-inline-warning { margin:8px 0 0;padding:9px 11px;border:1px solid #f2d297;border-radius:9px;color:#87500c;background:#fff8e8;font-size:9px; }.rule-preview-result { margin-top:10px;padding:12px;border:1px solid #dfe2ef;border-radius:12px;background:#f8f9fd; }.rule-preview-result>header { display:flex;align-items:center;justify-content:space-between;gap:12px; }.rule-preview-result>header span { color:var(--muted);font-size:9px; }.rule-preview-metrics { margin-top:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }.rule-preview-metrics span { padding:8px;border-radius:9px;background:white;color:var(--muted);font-size:8px; }.rule-preview-metrics b { display:block;color:var(--ink);font-size:16px; }.rule-preview-warnings p,.rule-preview-ok { margin:8px 0 0;padding:8px;border-radius:8px;font-size:9px; }.rule-preview-warnings .warning { color:#8b5106;background:#fff0d8; }.rule-preview-warnings .info { color:#4d4a9f;background:#ededff; }.rule-preview-ok { color:#087f5b;background:#ddf7ed; }.rule-onboarding { display:block!important;margin-top:6px;padding:6px 8px;border-radius:8px;color:#6d50b5!important;background:#f0eaff;font-weight:800; }.rule-onboarding.failed { color:#ac2941!important;background:#ffe7ec; }.rule-sync-state span { margin-left:6px;color:inherit;font:inherit; }.rule-record.archived { opacity:.78;background:#fafafa; }.customer-rule-archive>summary { min-height:58px;padding:0 15px;display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none; }.customer-rule-archive>summary span { padding:4px 7px;border-radius:99px;background:#eceef3;font-size:8px; }.customer-rule-archive>summary small { margin-left:auto;color:var(--muted);font-size:9px; }
@media (max-width:760px) { .notification-center { position:fixed;top:68px;right:10px;left:10px;width:auto; }.rule-time-editor>header { align-items:flex-start;flex-direction:column; }.rule-time-slot { grid-template-columns:24px 1fr auto 1fr auto; }.rule-time-slot>[data-slot-overnight] { grid-column:2/5; }.rule-preview-metrics { grid-template-columns:1fr; } }
.empty-state { min-height: 112px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--panel-soft); }.empty-state strong { color: var(--ink); font-size: 1rem; }.empty-state p { max-width: 460px; margin: 6px 0 0; font-size: .875rem; line-height: 1.55; }.customer-grid > .empty-state { grid-column: 1 / -1; min-height: 220px; }
.review-guide { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.review-guide article { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }.review-guide strong,.review-guide small { display: block; }.review-guide strong { font-size: 11px; }.review-guide small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.review-guide.customer-review-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tracking-group-row td { padding: 9px 12px !important; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.form-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(15,23,42,.28); }.form-dialog::backdrop { background: rgba(10,16,31,.56); backdrop-filter: blur(3px); }.form-dialog form { padding: 22px; display: grid; gap: 14px; }.form-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: .875rem; }.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.dialog-head h2 { margin: 0; font-size: 1.15rem; }.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: .875rem; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }.mailbox-card { grid-column: 1 / -1; }.db-type-name { display: flex; align-items: center; gap: 9px; }.db-type-name > i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }

/* Premium dashboard */
.dashboard-hero { position: relative; min-height: 172px; padding: 25px 27px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: center; gap: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 19px; color: white; background: linear-gradient(125deg, #3c3dbd 0%, #3652c8 42%, #087f98 100%); box-shadow: 0 24px 48px rgba(43, 57, 143, .23); }
.dashboard-hero::before { content: ""; position: absolute; width: 330px; height: 330px; top: -240px; right: 19%; border: 56px solid rgba(255,255,255,.055); border-radius: 50%; }
.dashboard-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -95px; bottom: -145px; border: 42px solid rgba(255,255,255,.055); border-radius: 50%; }
.dashboard-hero-copy, .dashboard-health { position: relative; z-index: 1; }
.dashboard-live { width: max-content; padding: 6px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #e5f9ff; background: rgba(255,255,255,.095); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.dashboard-live i { width: 7px; height: 7px; border-radius: 50%; background: #5be0b2; box-shadow: 0 0 0 5px rgba(91,224,178,.14); animation: dashboard-live-pulse 2s ease-in-out infinite; }
.dashboard-hero h1 { max-width: 720px; margin: 13px 0 6px; font-size: clamp(24px, 2.4vw, 35px); line-height: 1.1; letter-spacing: -.045em; }
.dashboard-hero h1 span { color: #bfeffa; font-weight: 620; }
.dashboard-hero p { max-width: 680px; margin: 0; color: rgba(239,248,255,.78); font-size: 12px; line-height: 1.55; }
.dashboard-update-meta { margin-top: 17px; display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.dashboard-update-meta > span { padding-left: 2px; color: rgba(239,248,255,.68); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-update-meta > span::before { content: ""; width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #5be0b2; box-shadow: 0 0 0 4px rgba(91,224,178,.11); vertical-align: 1px; }
.dashboard-refresh { min-height: 35px; padding: 0 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: white; background: rgba(255,255,255,.11); box-shadow: 0 7px 18px rgba(8, 25, 72, .12); cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.dashboard-refresh:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.dashboard-health { min-height: 120px; padding: 15px 17px; display: flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.075)); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 15px 30px rgba(6,30,82,.13); backdrop-filter: blur(11px); }
.dashboard-health-ring { --dashboard-progress: 0deg; width: 94px; height: 94px; padding: 7px; display: grid; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#52dcac 0 var(--dashboard-progress), rgba(255,255,255,.16) var(--dashboard-progress) 360deg); box-shadow: 0 11px 26px rgba(5,34,73,.15); transition: background .45s ease; }
.dashboard-health-ring > div { display: grid; place-content: center; justify-items: center; border-radius: 50%; background: linear-gradient(145deg, #3349b2, #176b9d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.dashboard-health-ring strong { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-health-ring small { margin-top: 4px; color: rgba(239,248,255,.7); font-size: 8px; font-weight: 700; }
.dashboard-health-copy { min-width: 0; display: grid; gap: 6px; }
.dashboard-health-copy strong { font-size: 13px; }
.dashboard-health-copy small { color: rgba(239,248,255,.74); font-size: 10px; line-height: 1.35; }
.dashboard-health-copy small:last-child { width: fit-content; max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding: 4px 7px; border-radius: 7px; color: #ffc5cf; background: rgba(255,98,120,.13); font-weight: 750; }

.dashboard-kpis { margin: 15px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-kpis .kpi-note { white-space: pre-line; line-height: 1.5; flex: 1; padding-bottom: 11px; }
.dashboard-kpis .dashboard-kpi { display: flex; flex-direction: column; gap: 0; }
.dashboard-kpis .kpi-label { min-height: 36px; }
.dashboard-kpis .kpi-value { line-height: 36px; min-height: 36px; }
.dashboard-kpis .dashboard-kpi-meter { flex-shrink: 0; margin-top: auto; }
.dashboard-kpis .dashboard-kpi:hover { transform: none; }
.dashboard-flow-legend b { white-space: pre-line; }
.dashboard-flow-legend > span { align-items: flex-start; }
.dashboard-flow-legend > span > i { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 1200px) { .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dashboard-kpi { --kpi-tone: var(--brand); position: relative; min-height: 132px; padding: 17px 17px 14px 20px; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 27px rgba(23,32,51,.055); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dashboard-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 16px 0 0 16px; background: var(--kpi-tone); }
.dashboard-kpi::after { content: ""; position: absolute; width: 90px; height: 90px; top: -54px; right: -36px; border-radius: 50%; background: color-mix(in srgb, var(--kpi-tone) 7%, white); }
.dashboard-kpi:hover { border-color: color-mix(in srgb, var(--kpi-tone) 27%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dashboard-kpi.ok { --kpi-tone: var(--green); }
.dashboard-kpi.warn { --kpi-tone: var(--orange); }
.dashboard-kpi.bad { --kpi-tone: var(--red); }
.dashboard-kpi .kpi-label, .dashboard-kpi .kpi-value, .dashboard-kpi .kpi-note, .dashboard-kpi .dashboard-kpi-meter { position: relative; z-index: 1; }
.dashboard-kpi .kpi-label { font-size: 11px; font-weight: 680; }
.dashboard-kpi .kpi-label i { color: var(--kpi-tone); background: color-mix(in srgb, var(--kpi-tone) 9%, white); font-size: 14px; font-weight: 850; }
.dashboard-kpi .kpi-value { margin-top: 7px; color: var(--text); font-size: 29px; font-weight: 820; }
.dashboard-kpi .kpi-note { min-height: 14px; margin-top: 3px; }
.dashboard-kpi-meter { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #eef1f6; }
.dashboard-kpi-meter span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--kpi-tone); transition: width .5s ease; }

.dashboard-premium-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr); align-items: stretch; }
.dashboard-panel { border-radius: 17px; box-shadow: 0 12px 31px rgba(23,32,51,.055); }
.dashboard-action-panel { min-height: 0; display: flex; flex-direction: column; }
.dashboard-action-panel #dashboard-actions { min-height: 0; display: flex; flex: 1; }
.dashboard-action-panel #dashboard-actions > .dashboard-alerts { width: 100%; max-height: none; flex: 1; overflow-y: auto; }
.dashboard-action-panel #dashboard-actions > .empty-state { width: 100%; flex: 1; }
.dashboard-panel-head { min-height: 59px; padding: 0 17px; background: linear-gradient(180deg, white, #fdfdff); }
.dashboard-panel-head > div { display: grid; gap: 4px; }
.dashboard-panel-head > div strong { font-size: 12px; }
.dashboard-panel-head > div small { color: var(--muted); font-size: 9px; }
.dashboard-panel-link, .dashboard-panel-icon { border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.dashboard-panel-link:hover { text-decoration: underline; }
.dashboard-panel-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #dfddff; border-radius: 9px; background: var(--brand-soft); font-size: 15px; transition: transform .18s ease; }
.dashboard-panel-icon:hover { transform: translateX(2px); }
.dashboard-panel .table th { padding-top: 11px; padding-bottom: 11px; background: #f8f9fd; }
.dashboard-panel .table td { padding-top: 14px; padding-bottom: 14px; }
.dashboard-flow { margin: 0 17px 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #fafbff, #f7fbfc); }
.dashboard-flow-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 750; }
.dashboard-flow-head strong { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.dashboard-flow-track { height: 8px; display: flex; overflow: hidden; border-radius: 99px; background: #e8ebf2; }
.dashboard-flow-track span { width: 0; height: 100%; display: block; transition: width .5s ease; }
#dashboard-flow-arrived { background: linear-gradient(90deg, #22a878, #4acb9e); }
#dashboard-flow-waiting { background: linear-gradient(90deg, #df8a26, #f2ad55); }
#dashboard-flow-critical { background: linear-gradient(90deg, #ce4357, #ee7182); }
.dashboard-flow-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 9px; }
.dashboard-flow-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dashboard-flow-legend i { width: 7px; height: 7px; border-radius: 50%; }
.dashboard-flow-legend .flow-arrived i { background: var(--green); }
.dashboard-flow-legend .flow-waiting i { background: var(--orange); }
.dashboard-flow-legend .flow-critical i { background: var(--red); }
.dashboard-flow-legend b { color: var(--muted); font-weight: 700; }
.dashboard-alerts { max-height: 390px; padding: 5px 16px 9px; gap: 0; overflow-y: auto; }
.dashboard-alert { grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.dashboard-alert:last-child { border-bottom: 0; }
.dashboard-alert strong { line-height: 1.4; }
.dashboard-alert-count { min-width: 25px; padding: 4px 7px; border-radius: 999px; color: currentColor; background: color-mix(in srgb, currentColor 10%, white); font-size: 9px; text-align: center; font-variant-numeric: tabular-nums; }
.dashboard-action-panel .empty-state { margin: 14px; min-height: 190px; }
@keyframes dashboard-live-pulse { 50% { opacity: .55; transform: scale(.82); } }

@media (max-width: 1050px) { .customer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.dashboard-grid, .detail-columns { grid-template-columns: 1fr; }.dashboard-hero { grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr); }.admin-grid { grid-template-columns: 1fr; }.tracking-row { grid-template-columns: minmax(170px,1fr) repeat(2,minmax(130px,.8fr)); }.tracking-row > :last-child { display: none; } }
@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }.login-aside { display: none; }
  .app { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 10; width: 268px; transform: translateX(-100%); transition: .2s; box-shadow: 15px 0 30px rgba(0,0,0,.15); }.sidebar.open { transform: translateX(0); }
  .mobile-only { display: block; }.topbar { padding: 10px 14px; }.topbar > div:first-of-type { margin-right: auto; }.user > span { display: none; }.content { padding: 18px 14px 28px; }
  .kpis, .customer-report { grid-template-columns: repeat(2, minmax(0,1fr)); }.customer-grid { grid-template-columns: 1fr; }.page-head { align-items: flex-start; flex-direction: column; }.customer-tools { flex-direction: column; }.search { width: 100%; }.review-guide { grid-template-columns: 1fr; }.company-badge { max-width: 150px; }
  .tracking-row { grid-template-columns: 1fr; padding: 12px; }.tracking-row > * { display: flex !important; }.tracking-row > .empty { display: none !important; }.detail-hero { align-items: flex-start; flex-direction: column; }.tabs { max-width: 100%; overflow-x: auto; }.tab { white-space: nowrap; }.incident-table-tools, .table-pagination { align-items: stretch; flex-direction: column; }.incident-table-tools > span, .table-limit-note { white-space: normal; }.incident-table-actions { justify-content: space-between; }.table-pagination nav { overflow-x: auto; }.incident-detail-grid { grid-template-columns: 1fr; }.incident-detail-grid > .wide { grid-column: auto; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 21px; }.dashboard-health { justify-content: flex-start; }.dashboard-kpis { gap: 10px; }.dashboard-premium-grid { gap: 12px; }
}
@media (max-width: 480px) {
  .dashboard-hero h1 { font-size: 25px; }.dashboard-health { align-items: flex-start; }.dashboard-health-ring { width: 82px; height: 82px; }.dashboard-health-ring strong { font-size: 19px; }.dashboard-kpi { min-height: 126px; padding-left: 16px; }.dashboard-kpi .kpi-value { font-size: 26px; }.dashboard-flow-legend { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-preview *, .login-preview *::before, .login-preview *::after, .dashboard-live i { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Admin-only customer portfolio */
.portfolio-hero { position: relative; min-height: 190px; padding: 30px 33px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; border-radius: 22px; color: white; background: radial-gradient(circle at 82% 10%, rgba(64,224,208,.3), transparent 27%), linear-gradient(120deg,#24236f 0%,#4c42c7 48%,#0d8b9c 100%); box-shadow: 0 24px 58px rgba(47,48,139,.25); }
.portfolio-hero::before { content:""; position:absolute; inset:0; opacity:.16; background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(90deg,transparent,black); }
.portfolio-hero-orb { position:absolute; border:1px solid rgba(255,255,255,.18); border-radius:50%; box-shadow:inset 0 0 60px rgba(255,255,255,.06); }.portfolio-hero-orb.one { width:260px; height:260px; top:-155px; right:22%; }.portfolio-hero-orb.two { width:150px; height:150px; right:-48px; bottom:-90px; }
.portfolio-hero-copy,.portfolio-hero-actions { position:relative; z-index:1; }.portfolio-hero-copy { max-width:760px; }.portfolio-hero-copy > span { display:inline-flex; padding:6px 10px; border:1px solid rgba(255,255,255,.18); border-radius:99px; color:#c7f6f4; background:rgba(255,255,255,.08); font-size:9px; font-weight:850; letter-spacing:.13em; }.portfolio-hero h1 { margin:14px 0 7px; font-size:clamp(25px,2.65vw,38px); line-height:1.08; letter-spacing:-.045em; }.portfolio-hero p { max-width:700px; margin:0; color:rgba(239,249,255,.77); font-size:12px; line-height:1.6; }
.portfolio-glass-button { min-height:43px; padding:0 16px; border:1px solid rgba(255,255,255,.25); border-radius:12px; color:white; background:rgba(255,255,255,.13); box-shadow:0 12px 28px rgba(13,20,85,.17); backdrop-filter:blur(8px); cursor:pointer; font-size:11px; font-weight:800; white-space:nowrap; transition:.2s; }.portfolio-glass-button:hover { background:rgba(255,255,255,.22); transform:translateY(-2px); }
.portfolio-stat-strip { margin:15px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.portfolio-stat-strip article { min-height:83px; padding:14px 16px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:0 8px 22px rgba(31,38,73,.045); }.portfolio-stat-strip i { width:39px; height:39px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; font-style:normal; font-weight:900; }.portfolio-stat-strip i.violet { color:#625df0;background:#efefff; }.portfolio-stat-strip i.blue { color:#2f80ed;background:#eaf3ff; }.portfolio-stat-strip i.green { color:#169d75;background:#e8faf4; }.portfolio-stat-strip i.amber { color:#d6811f;background:#fff4e5; }.portfolio-stat-strip strong,.portfolio-stat-strip small { display:block; }.portfolio-stat-strip strong { color:var(--text);font-size:21px;font-variant-numeric:tabular-nums; }.portfolio-stat-strip small { margin-top:3px;color:var(--muted);font-size:9px; }
.portfolio-panel { border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 12px 32px rgba(25,32,62,.055); }.portfolio-panel > header { min-height:72px; padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }.portfolio-panel header h2 { margin:3px 0 2px;font-size:16px;letter-spacing:-.02em; }.portfolio-panel header p { margin:0;color:var(--muted);font-size:9px; }.portfolio-kicker { color:#625df0;font-size:8px;font-weight:900;letter-spacing:.13em; }.portfolio-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);align-items:start;gap:14px; }.portfolio-count-pill { padding:5px 9px;border-radius:99px;color:#514cc7;background:#efefff;font-size:9px;font-weight:800; }
.sector-tree { padding:15px 18px 20px; }.sector-branch { position:relative; }.sector-children { position:relative;margin-left:28px;padding-left:20px;border-left:1px solid #dfe2ee; }.sector-children::before { content:"";position:absolute;top:0;left:-1px;width:18px;height:22px;border-bottom:1px solid #dfe2ee; }.sector-node { --sector-color:#625df0; margin:8px 0;display:flex;align-items:stretch;overflow:hidden;border:1px solid #e3e5ed;border-radius:13px;background:linear-gradient(100deg,color-mix(in srgb,var(--sector-color) 4%,white),white 42%);transition:.18s; }.sector-node:hover { border-color:color-mix(in srgb,var(--sector-color) 35%,#d9dce7);box-shadow:0 9px 23px color-mix(in srgb,var(--sector-color) 10%,transparent);transform:translateX(2px); }.sector-node.is-inactive { opacity:.55;filter:grayscale(.45); }.sector-edit-button { min-width:0;padding:12px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:11px;flex:1;border:0;background:transparent;text-align:left;cursor:pointer; }.sector-swatch { width:11px;height:32px;border-radius:7px;background:var(--sector-color);box-shadow:0 4px 11px color-mix(in srgb,var(--sector-color) 34%,transparent); }.sector-edit-button strong,.sector-edit-button small { display:block; }.sector-edit-button strong { font-size:11px; }.sector-edit-button small { max-width:420px;margin-top:3px;overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap; }.sector-edit-button em { padding:4px 8px;border-radius:99px;color:var(--muted);background:#f4f5f8;font-size:8px;font-style:normal;white-space:nowrap; }.sector-edit-button b { color:#8c93a4;font-size:11px; }.sector-child-button { padding:0 12px;border:0;border-left:1px solid #e6e8ef;color:#625df0;background:rgba(98,93,240,.035);cursor:pointer;font-size:9px;font-weight:800;white-space:nowrap; }.sector-child-button:hover { background:#efefff; }
.portfolio-tip-card { position:sticky;top:82px;padding:23px;border:1px solid #dcdafb;border-radius:18px;background:linear-gradient(145deg,#f7f6ff,#edf9fb);box-shadow:0 12px 30px rgba(58,57,147,.075); }.tip-icon { width:39px;height:39px;margin-bottom:15px;display:grid;place-items:center;border-radius:12px;color:white;background:linear-gradient(135deg,#695ef2,#1595a6);box-shadow:0 9px 20px rgba(90,85,231,.23); }.portfolio-tip-card > strong { display:block;font-size:13px; }.portfolio-tip-card > p { margin:8px 0 18px;color:var(--muted);font-size:10px;line-height:1.65; }.tip-example { padding:12px;display:flex;align-items:center;flex-wrap:wrap;gap:6px;border:1px solid rgba(98,93,240,.12);border-radius:11px;background:rgba(255,255,255,.68); }.tip-example small { width:100%;margin-bottom:3px;color:#7772d8;font-size:7px;font-weight:900;letter-spacing:.1em; }.tip-example span { font-size:9px;font-weight:750; }.tip-example i { color:#9da4b5;font-style:normal; }
.portfolio-dialog { border-top:4px solid #625df0; }.portfolio-dialog input[type="color"] { width:100%;height:42px;padding:4px;cursor:pointer; }.portfolio-switch-label { align-content:start; }.portfolio-switch { min-height:39px;display:flex;align-items:center;gap:9px; }.portfolio-switch input { position:absolute;opacity:0;pointer-events:none; }.portfolio-switch i { position:relative;width:37px;height:21px;border-radius:99px;background:#c8cdd8;transition:.2s; }.portfolio-switch i::after { content:"";position:absolute;width:15px;height:15px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.2s; }.portfolio-switch input:checked+i { background:#20ad82; }.portfolio-switch input:checked+i::after { transform:translateX(16px); }.portfolio-switch b { color:var(--text);font-size:10px; }
.portfolio-table-panel { overflow:visible; }.portfolio-table-head { border-radius:18px 18px 0 0; }.portfolio-export-actions { display:flex;gap:7px; }.portfolio-source-tabs { padding:13px 18px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;background:#fbfbfe; }.portfolio-source-tabs > button { position:relative;min-height:68px;padding:11px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid #e1e3eb;border-radius:13px;color:var(--text);background:white;text-align:left;cursor:pointer;transition:.18s; }.portfolio-source-tabs > button::after { content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:3px;border-radius:4px 4px 0 0;background:transparent; }.portfolio-source-tabs > button.active { border-color:#c9c6fa;background:linear-gradient(130deg,#f7f6ff,#f5fbfc);box-shadow:0 7px 20px rgba(70,66,174,.08); }.portfolio-source-tabs > button.active::after { background:linear-gradient(90deg,#625df0,#15a4ac); }.portfolio-source-tabs > button > span { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#625df0;background:#efefff;font-size:14px; }.portfolio-source-tabs > button:nth-child(2)>span { color:#0e9199;background:#e7f8f8; }.portfolio-source-tabs strong,.portfolio-source-tabs small { display:block; }.portfolio-source-tabs strong { font-size:10px; }.portfolio-source-tabs small { margin-top:3px;color:var(--muted);font-size:8px; }.portfolio-source-tabs b { min-width:27px;padding:5px 7px;border-radius:99px;color:#625df0;background:#efefff;font-size:9px;text-align:center; }
.portfolio-toolbar { position:relative;padding:13px 18px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);background:#fbfbfe; }.portfolio-search { min-width:240px;display:flex;align-items:center;flex:1;border:1px solid #dfe2ea;border-radius:10px;background:white; }.portfolio-search span { padding-left:11px;color:#8e95a6; }.portfolio-search input { width:100%;min-height:38px;padding:0 11px;border:0;outline:0;background:transparent;font:inherit;font-size:10px; }.portfolio-toolbar > select,.analytics-controls select { min-height:39px;padding:0 30px 0 10px;border:1px solid #dfe2ea;border-radius:10px;color:var(--text);background:white;font-size:10px; }
.portfolio-table-shell { width:100%;overflow:auto;border-radius:0 0 18px 18px; }.portfolio-data-table { min-width:0;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:10px; }.portfolio-data-table th { position:sticky;z-index:2;top:0;padding:0;border-bottom:1px solid #dfe2ea;background:#f7f8fc;white-space:nowrap; }.portfolio-data-table th button { width:100%;min-height:41px;padding:0 12px;display:flex;align-items:center;gap:7px;border:0;color:#71798c;background:transparent;cursor:pointer;font-size:8px;font-weight:850;letter-spacing:.065em;text-transform:uppercase; }.portfolio-data-table th button span { color:#adb3bf;font-size:9px; }.portfolio-data-table th.is-sorted button { color:#5751d0;background:#f0efff; }.portfolio-data-table th.is-dragging { opacity:.38; }.portfolio-data-table td { max-width:260px;padding:11px 12px;border-bottom:1px solid #eceef3;vertical-align:middle; }.portfolio-data-table tbody tr:hover td { background:#fcfcff; }.portfolio-data-table tbody tr:last-child td { border-bottom:0; }.portfolio-company { min-width:220px;display:flex;align-items:center;gap:9px; }.portfolio-company > span,.portfolio-chart-list article>span { width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#5751d0;background:linear-gradient(135deg,#eeedff,#e6f6f8);font-size:9px;font-weight:850; }.portfolio-company strong,.portfolio-company small { display:block; }.portfolio-company strong { overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }.portfolio-company small { max-width:260px;margin-top:3px;overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap; }.portfolio-code { padding:4px 7px;border-radius:6px;color:#4e5870;background:#f1f3f7;font-size:8px; }.portfolio-sector-pill { max-width:245px;display:inline-flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.portfolio-sector-pill i { width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--pill-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--pill-color) 13%,white); }.portfolio-unassigned { padding:4px 7px;border:1px dashed #e1b877;border-radius:7px;color:#b06b13;background:#fff8eb;font-size:8px; }.portfolio-source-badge { padding:5px 7px;display:inline-flex;border-radius:7px;font-size:8px;font-weight:750;white-space:nowrap; }.portfolio-source-badge.team { color:#4f4ac6;background:#efefff; }.portfolio-source-badge.admin { color:#087e88;background:#e8f8f8; }.portfolio-number { min-width:27px;height:27px;display:inline-grid;place-items:center;border-radius:8px;color:#5751d0;background:#efefff;font-size:10px; }.portfolio-date { color:var(--muted);font-size:8px;white-space:nowrap; }.portfolio-row-edit { min-height:29px;padding:0 9px;border:1px solid #d9d7fa;border-radius:8px;color:#5751d0;background:#f7f6ff;cursor:pointer;font-size:8px;font-weight:800;white-space:nowrap; }.portfolio-row-edit:hover { color:white;background:#625df0; }.portfolio-table-shell>.empty-state { margin:18px; }
.analytics-panel { overflow:hidden; }.analytics-panel > header { align-items:flex-end; }.analytics-controls { display:flex;align-items:flex-end;gap:8px; }.analytics-controls label { display:grid;gap:5px;color:var(--muted);font-size:8px;font-weight:750; }.analytics-list-toggle { min-height:39px;padding:0 11px;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;border:1px solid #dfe2ea;border-radius:10px;background:white;white-space:nowrap; }.analytics-list-toggle input { accent-color:#625df0; }.portfolio-chart-stage { min-height:430px;padding:30px 5%;display:grid;grid-template-columns:minmax(330px,.78fr) minmax(320px,1.22fr);align-items:center;gap:7%;background:radial-gradient(circle at 29% 48%,rgba(98,93,240,.065),transparent 34%),linear-gradient(180deg,#fff,#fdfdff); }.portfolio-donut-wrap { position:relative;display:grid;place-items:center; }.portfolio-donut { width:min(100%,350px);overflow:visible;filter:drop-shadow(0 20px 25px rgba(61,58,155,.1));transform:rotate(-90deg); }.portfolio-donut-track,.portfolio-chart-segment { fill:none;stroke-width:43; }.portfolio-donut-track { stroke:#edf0f5; }.portfolio-chart-segment { cursor:pointer;transition:stroke-width .2s,filter .2s,opacity .2s; }.portfolio-chart-segment:hover,.portfolio-chart-segment.is-selected { stroke-width:51;filter:brightness(1.06) drop-shadow(0 4px 5px rgba(37,42,72,.22)); }.portfolio-donut-hole { fill:white;filter:drop-shadow(0 3px 8px rgba(40,43,72,.08)); }.portfolio-donut text { transform:rotate(90deg);transform-origin:145px 145px;fill:var(--text); }.portfolio-donut .donut-total { font-size:34px;font-weight:850;letter-spacing:-2px; }.portfolio-donut .donut-label { fill:var(--muted);font-size:8px;font-weight:850;letter-spacing:1.5px; }.portfolio-orbit-label { position:absolute;top:13%;right:8%;padding:5px 8px;border:1px solid #dddafa;border-radius:99px;color:#625df0;background:white;box-shadow:0 6px 16px rgba(70,65,170,.08);font-size:7px;font-weight:900;letter-spacing:.1em; }.portfolio-chart-legend { display:grid;gap:8px; }.portfolio-chart-legend button { --legend-color:#625df0;position:relative;min-height:60px;padding:10px 13px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;overflow:hidden;border:1px solid #e4e6ed;border-radius:12px;color:var(--text);background:white;text-align:left;cursor:pointer;transition:.18s; }.portfolio-chart-legend button:hover,.portfolio-chart-legend button.is-selected { border-color:color-mix(in srgb,var(--legend-color) 35%,#dfe2ea);box-shadow:0 8px 20px color-mix(in srgb,var(--legend-color) 10%,transparent);transform:translateX(3px); }.portfolio-chart-legend button>i,.portfolio-chart-list h4 i { width:10px;height:31px;border-radius:6px;background:var(--legend-color);box-shadow:0 4px 10px color-mix(in srgb,var(--legend-color) 24%,transparent); }.portfolio-chart-legend strong,.portfolio-chart-legend small { display:block; }.portfolio-chart-legend strong { font-size:10px; }.portfolio-chart-legend small { margin-top:3px;color:var(--muted);font-size:8px; }.portfolio-chart-legend em { color:var(--legend-color);font-size:17px;font-style:normal;font-weight:850; }.portfolio-chart-legend button>b { position:absolute;left:0;bottom:0;height:3px;background:var(--legend-color);opacity:.8; }
.portfolio-chart-list { padding:0 20px 22px;border-top:1px solid var(--line);background:#fbfbfe; }.portfolio-chart-list>header { padding-right:0;padding-left:0;border:0; }.portfolio-chart-list>header h3 { margin:3px 0 0;font-size:15px; }.portfolio-chart-list>header>span { padding:5px 9px;border-radius:99px;color:#5751d0;background:#efefff;font-size:8px;font-weight:800; }.portfolio-chart-list>div { display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px; }.portfolio-chart-list section { padding:11px;border:1px solid var(--line);border-radius:12px;background:white; }.portfolio-chart-list h4 { margin:0 0 6px;padding:3px 3px 9px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);font-size:10px; }.portfolio-chart-list h4 i { width:6px;height:18px; }.portfolio-chart-list h4 span { margin-left:auto;color:var(--muted);font-size:8px; }.portfolio-chart-list article { padding:7px 3px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border-bottom:1px solid #f0f1f5; }.portfolio-chart-list article:last-child { border-bottom:0; }.portfolio-chart-list article>span { width:27px;height:27px; }.portfolio-chart-list article strong,.portfolio-chart-list article small { display:block; }.portfolio-chart-list article strong { overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap; }.portfolio-chart-list article small { margin-top:2px;color:var(--muted);font-size:7px; }.portfolio-chart-list article em { font-size:7px;font-style:normal; }
@media (max-width:1050px) { .portfolio-layout { grid-template-columns:1fr; }.portfolio-tip-card { position:static; }.portfolio-chart-stage { gap:2%;padding-right:3%;padding-left:3%; }.analytics-panel>header { align-items:flex-start;flex-direction:column; }.analytics-controls { width:100%;flex-wrap:wrap; }.portfolio-source-tabs { grid-template-columns:1fr; } }
@media (max-width:760px) { .portfolio-hero { min-height:230px;padding:24px;align-items:flex-start;flex-direction:column; }.portfolio-stat-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }.portfolio-panel>header { align-items:flex-start;flex-direction:column; }.portfolio-toolbar { align-items:stretch;flex-direction:column; }.portfolio-search { min-width:0; }.portfolio-column-picker>div { right:auto;left:0; }.sector-tree { padding:10px; }.sector-children { margin-left:12px;padding-left:10px; }.sector-child-button { padding:0 7px;font-size:0; }.sector-child-button::after { content:"＋";font-size:13px; }.sector-edit-button { padding:10px;gap:7px; }.sector-edit-button em { display:none; }.portfolio-chart-stage { grid-template-columns:1fr;padding:22px; }.portfolio-donut { width:260px; }.portfolio-export-actions { width:100%; }.portfolio-export-actions .button { flex:1; }.portfolio-source-tabs { padding:10px; }.analytics-controls { display:grid;grid-template-columns:1fr 1fr; }.analytics-controls select { width:100%; }.analytics-list-toggle { grid-column:1/-1; } }
@media (max-width:480px) { .portfolio-stat-strip { grid-template-columns:1fr 1fr; }.portfolio-stat-strip article { padding:10px; }.portfolio-stat-strip i { width:32px;height:32px; }.portfolio-stat-strip strong { font-size:17px; }.portfolio-source-tabs>button { grid-template-columns:auto minmax(0,1fr); }.portfolio-source-tabs>button>b { display:none; } }
@media print { body.portfolio-printing { background:white!important; }.portfolio-printing .sidebar,.portfolio-printing .topbar,.portfolio-printing .portfolio-hero-actions,.portfolio-printing .portfolio-toolbar,.portfolio-printing .portfolio-export-actions,.portfolio-printing dialog { display:none!important; }.portfolio-printing .app { display:block!important; }.portfolio-printing .workspace { display:block!important; }.portfolio-printing .content { padding:0!important; }.portfolio-printing .portfolio-hero { min-height:120px;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact; }.portfolio-printing .portfolio-stat-strip article,.portfolio-printing .portfolio-panel { box-shadow:none;break-inside:avoid; }.portfolio-printing .portfolio-table-shell { overflow:visible; }.portfolio-printing .portfolio-data-table { min-width:100%;font-size:7px; }.portfolio-printing .portfolio-data-table th { position:static; }.portfolio-printing .portfolio-data-table td { padding:6px; }.portfolio-printing .portfolio-row-edit,.portfolio-printing th[data-portfolio-column="actions"],.portfolio-printing td[data-column="actions"] { display:none; }.portfolio-printing .portfolio-chart-stage { min-height:350px;break-inside:avoid; }.portfolio-printing .portfolio-source-tabs { display:none; } }
.analytics-list-toggle input { width:14px!important;height:14px!important;min-height:0!important;margin:0;accent-color:#625df0; }
.portfolio-dialog { overflow-x:hidden; }
@media (max-width:600px) { .portfolio-dialog .form-grid { grid-template-columns:1fr; } }

/* Portfolio analytics studio and presentation-grade pie */
.analytics-panel>header { align-items:center; }.analytics-live-badge { padding:6px 10px;display:inline-flex;align-items:center;gap:7px;border:1px solid #d9e9e8;border-radius:99px;color:#148d92;background:#effafa;font-size:7px;font-weight:900;letter-spacing:.08em; }.analytics-live-badge i { width:6px;height:6px;border-radius:50%;background:#20b486;box-shadow:0 0 0 4px rgba(32,180,134,.12);animation:dashboard-live-pulse 2s ease-in-out infinite; }
.analytics-studio-bar { padding:13px 18px;display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:9px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfbfe,#f8f9fc); }.analytics-studio-bar>label { display:grid;gap:5px;color:var(--muted);font-size:8px;font-weight:800; }.analytics-studio-bar select { width:100%;min-height:39px;padding:0 29px 0 10px;border:1px solid #dfe2ea;border-radius:10px;color:var(--text);background:white;font-size:9px; }.analytics-toggle-group { grid-column:1/-1;display:flex;align-items:center;gap:8px; }.analytics-toggle-group .analytics-list-toggle { min-height:32px;padding:0 10px;color:#60697c;font-size:8px; }
.portfolio-chart-stage { min-height:515px;padding:0;grid-template-columns:minmax(470px,1.08fr) minmax(300px,.92fr);gap:0;background:white; }.portfolio-chart-visual { position:relative;min-height:515px;display:grid;place-items:center;overflow:hidden;border-right:1px solid var(--line);background:radial-gradient(circle at 50% 43%,rgba(98,93,240,.09),transparent 31%),radial-gradient(circle at 13% 82%,rgba(18,158,171,.07),transparent 25%),linear-gradient(145deg,#fff,#fafbff); }.portfolio-chart-visual::before,.portfolio-chart-visual::after { content:"";position:absolute;border:1px solid rgba(98,93,240,.08);border-radius:50%; }.portfolio-chart-visual::before { width:390px;height:390px; }.portfolio-chart-visual::after { width:470px;height:470px;opacity:.55; }
.portfolio-chart-caption { position:absolute;z-index:2;top:20px;left:22px;display:grid;gap:3px; }.portfolio-chart-caption span { color:#4f4ac6;font-size:8px;font-weight:900;letter-spacing:.12em; }.portfolio-chart-caption small { color:#979eae;font-size:7px;font-weight:800;letter-spacing:.08em; }.portfolio-donut { position:relative;z-index:1;width:min(100%,490px);overflow:visible;filter:none;transform:none; }.portfolio-donut text { transform:none;transform-origin:initial; }.portfolio-chart-orbit { fill:none;stroke:#dfe1f7;stroke-width:1;stroke-dasharray:2 7;opacity:.75; }.portfolio-slice-depth { opacity:.84;pointer-events:none; }.portfolio-chart-segment { stroke:rgba(255,255,255,.72);stroke-width:1;cursor:pointer;transform-box:fill-box;transform-origin:center;transition:filter .24s ease,opacity .24s ease,transform .24s ease; }.portfolio-slice-group:hover .portfolio-chart-segment,.portfolio-slice-group.is-selected .portfolio-chart-segment { stroke-width:1.4;filter:brightness(1.055) saturate(1.08) drop-shadow(0 7px 7px rgba(30,36,72,.22)); }.portfolio-chart-stage.has-selection .portfolio-slice-group:not(.is-selected) .portfolio-chart-segment { opacity:.58;filter:saturate(.72); }.portfolio-center-glow { fill:white;stroke:#eeeff7;stroke-width:1;filter:drop-shadow(0 6px 14px rgba(42,45,91,.13)); }.portfolio-donut .donut-total { fill:#20243a;font-size:35px;font-weight:870;letter-spacing:-2px; }.portfolio-donut .donut-label { fill:#8a91a3;font-size:7px;font-weight:900;letter-spacing:1.7px; }.portfolio-callout-line { fill:none;stroke:var(--slice-color);stroke-width:1;opacity:.68;pointer-events:none; }.portfolio-callout-dot { fill:var(--slice-color);pointer-events:none; }.portfolio-callout-value { fill:#34394c;font-size:10px;font-weight:900;font-variant-numeric:tabular-nums;pointer-events:none;paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round; }.portfolio-floating-total { position:absolute;z-index:3;top:50%;left:50%;width:64px;height:64px;display:grid;place-content:center;justify-items:center;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(255,255,255,.87);box-shadow:0 10px 26px rgba(30,35,78,.2);backdrop-filter:blur(6px);transform:translate(-50%,-50%);pointer-events:none; }.portfolio-floating-total strong { font-size:22px;line-height:1; }.portfolio-floating-total small { margin-top:4px;color:var(--muted);font-size:6px;font-weight:900;letter-spacing:.12em; }
.portfolio-insight-card { position:absolute;z-index:3;right:18px;bottom:17px;width:190px;padding:11px 13px;border:1px solid rgba(98,93,240,.15);border-radius:12px;background:rgba(255,255,255,.86);box-shadow:0 12px 30px rgba(40,42,99,.1);backdrop-filter:blur(9px); }.portfolio-insight-card span,.portfolio-insight-card strong { display:block; }.portfolio-insight-card span { color:#625df0;font-size:6px;font-weight:900;letter-spacing:.12em; }.portfolio-insight-card strong { margin-top:5px;font-size:10px; }.portfolio-insight-card p { margin:4px 0 0;color:var(--muted);font-size:8px;line-height:1.45; }.portfolio-insight-card b { color:#5751d0; }
.portfolio-chart-stage>.portfolio-chart-legend { align-self:stretch;padding:26px 22px;align-content:start;overflow-y:auto;background:linear-gradient(180deg,#fff,#fcfcfe); }.portfolio-chart-legend button { min-height:64px;padding:10px 14px; }.portfolio-chart-legend button>i { background:linear-gradient(180deg,color-mix(in srgb,var(--legend-color) 78%,white),var(--legend-color)); }.portfolio-chart-legend button.is-selected { background:color-mix(in srgb,var(--legend-color) 4%,white);transform:translateX(5px); }.chart-pie .portfolio-chart-visual::before { opacity:.45; }.chart-rose .portfolio-chart-segment { stroke-width:2; }.chart-rose .portfolio-slice-depth { opacity:.72; }
@media (max-width:1180px) { .analytics-studio-bar { grid-template-columns:repeat(3,minmax(130px,1fr)); }.portfolio-chart-stage { grid-template-columns:minmax(420px,1fr) minmax(285px,.8fr); }.portfolio-insight-card { width:170px; } }
@media (max-width:900px) { .portfolio-chart-stage { grid-template-columns:1fr; }.portfolio-chart-visual { min-height:500px;border-right:0;border-bottom:1px solid var(--line); }.portfolio-chart-stage>.portfolio-chart-legend { max-height:none;padding:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-content:initial; }.portfolio-chart-legend button { min-width:0; } }
@media (max-width:760px) { .analytics-studio-bar { grid-template-columns:repeat(2,minmax(0,1fr));padding:12px; }.analytics-toggle-group { align-items:stretch;flex-direction:column; }.analytics-toggle-group .analytics-list-toggle { width:100%; }.portfolio-chart-visual { min-height:455px; }.portfolio-chart-visual::before { width:315px;height:315px; }.portfolio-chart-visual::after { width:375px;height:375px; }.portfolio-donut { width:390px;max-width:100%; }.portfolio-insight-card { right:12px;bottom:12px;width:160px; }.portfolio-chart-stage>.portfolio-chart-legend { grid-template-columns:1fr; }.portfolio-callout-value { font-size:9px; } }
@media (max-width:480px) { .analytics-studio-bar { grid-template-columns:1fr 1fr; }.analytics-studio-bar>label:nth-child(1),.analytics-studio-bar>label:nth-child(2),.analytics-toggle-group { grid-column:1/-1; }.portfolio-chart-visual { min-height:425px; }.portfolio-chart-caption { top:14px;left:14px; }.portfolio-insight-card { position:relative;right:auto;bottom:auto;width:calc(100% - 28px);margin:-10px 14px 14px; }.portfolio-chart-visual { align-content:start;padding-top:28px; }.portfolio-donut { margin-top:12px; } }
@media print { .portfolio-printing .analytics-studio-bar { display:none; }.portfolio-printing .portfolio-chart-visual { min-height:430px;print-color-adjust:exact;-webkit-print-color-adjust:exact; }.portfolio-printing .portfolio-chart-stage>.portfolio-chart-legend { overflow:visible; } }

/* 3D presentation show, animated leaders and optional customer names */
.analytics-3d-button { position:relative;min-height:36px;padding:0 8px 0 11px;display:inline-flex;align-items:center;gap:8px;overflow:hidden;border:1px solid #d8d6fa;border-radius:10px;color:#4f4ac6;background:linear-gradient(135deg,#f7f6ff,#eef8fa);box-shadow:0 5px 14px rgba(73,68,174,.07);cursor:pointer;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;white-space:nowrap; }
.analytics-3d-button::before { content:"";position:absolute;inset:-70% 56% -70% -25%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.84),transparent);transform:translateX(-150%) rotate(13deg);transition:transform .7s ease; }
.analytics-3d-button:hover { border-color:#aaa6f4;box-shadow:0 8px 20px rgba(73,68,174,.14);transform:translateY(-1px); }.analytics-3d-button:hover::before { transform:translateX(280%) rotate(13deg); }
.analytics-3d-button>span { position:relative;font-size:13px;filter:drop-shadow(0 3px 5px rgba(79,74,198,.24)); }.analytics-3d-button>strong { position:relative;font-size:8px;letter-spacing:.015em; }.analytics-3d-button>b { position:relative;padding:4px 6px;border-radius:99px;color:white;background:#625df0;font-size:6px;letter-spacing:.08em; }
.analytics-3d-button.is-active { color:white;border-color:#514bd5;background:linear-gradient(120deg,#5952dc,#31379f 58%,#147f94);box-shadow:0 9px 24px rgba(62,58,170,.25),inset 0 1px rgba(255,255,255,.25); }.analytics-3d-button.is-active>span { animation:portfolio-cube-turn 3.8s ease-in-out infinite; }.analytics-3d-button.is-active>b { color:#19454b;background:#9df2df;box-shadow:0 0 0 4px rgba(157,242,223,.12);animation:portfolio-show-pulse 2.2s ease-in-out infinite; }
.portfolio-show-badge { position:absolute;z-index:4;top:17px;right:18px;padding:6px 7px;display:none;align-items:center;gap:6px;border:1px solid rgba(105,229,210,.28);border-radius:99px;color:#dffef8;background:rgba(32,35,91,.86);box-shadow:0 9px 24px rgba(31,35,89,.2);backdrop-filter:blur(8px);font-size:6px;font-weight:900;letter-spacing:.1em; }.portfolio-show-badge i { width:5px;height:5px;border-radius:50%;background:#72ead5;box-shadow:0 0 0 4px rgba(114,234,213,.13); }.portfolio-show-badge b { padding:3px 5px;border-radius:99px;color:#244c4e;background:#a7f5e5;font-size:5px; }
.portfolio-callout { pointer-events:none; }.portfolio-callout-arrow { fill:none;stroke:var(--slice-color);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;opacity:.76; }.portfolio-callout-title { fill:#303548;font-size:8.7px;font-weight:900; }.portfolio-callout-customer { fill:#6d7587;font-size:6.9px;font-weight:750;letter-spacing:.01em; }.portfolio-callout-more { fill:var(--slice-color);font-size:6.6px;font-weight:900;letter-spacing:.03em; }
.portfolio-3d-floor { fill:#24275f;opacity:0;pointer-events:none;transition:opacity .5s ease; }.chart-3d .portfolio-3d-floor { opacity:.2; }.chart-3d .portfolio-show-badge { display:flex;animation:portfolio-badge-arrive .55s .25s both; }
.chart-3d .portfolio-chart-visual { background:radial-gradient(ellipse at 50% 61%,rgba(48,51,126,.14),transparent 32%),radial-gradient(circle at 47% 40%,rgba(108,101,240,.13),transparent 34%),linear-gradient(145deg,#fff,#f6f7fd); }.chart-3d .portfolio-chart-visual::before { border-color:rgba(91,85,219,.14);transform:scaleX(1.08) scaleY(.78); }.chart-3d .portfolio-chart-visual::after { border-color:rgba(22,153,167,.1);transform:scaleX(1.06) scaleY(.8); }
.chart-3d .portfolio-donut { filter:drop-shadow(0 25px 25px rgba(35,38,91,.14)); }.chart-3d .portfolio-slice-depth { opacity:.93;animation:portfolio-depth-rise .72s cubic-bezier(.18,.78,.21,1) both; }.chart-3d .portfolio-chart-segment { animation:portfolio-surface-settle .9s cubic-bezier(.16,.8,.2,1) both; }.chart-3d .portfolio-center-glow { filter:drop-shadow(0 8px 13px rgba(34,38,91,.2)); }
.chart-3d .portfolio-callout-line { stroke-width:1.15;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;animation:portfolio-callout-draw 1.45s cubic-bezier(.22,.72,.12,1) var(--callout-delay) forwards; }.chart-3d .portfolio-callout-arrow,.chart-3d .portfolio-callout-dot,.chart-3d .portfolio-callout-value { opacity:0;animation:portfolio-callout-reveal .52s ease calc(var(--callout-delay) + 1.04s) forwards; }.chart-3d .portfolio-callout-dot { filter:drop-shadow(0 0 3px var(--slice-color)); }.show-callout-names .portfolio-insight-card { display:none; }
@keyframes portfolio-depth-rise { from { opacity:0;filter:brightness(1.15); } to { opacity:.93;filter:brightness(1); } }
@keyframes portfolio-surface-settle { 0% { opacity:.2;filter:brightness(1.2); } 55% { opacity:1;filter:brightness(1.08); } 100% { opacity:1;filter:none; } }
@keyframes portfolio-callout-draw { 0% { opacity:0;stroke-dashoffset:1; } 18% { opacity:.78; } 100% { opacity:.78;stroke-dashoffset:0; } }
@keyframes portfolio-callout-reveal { from { opacity:0;transform:translateY(4px); } to { opacity:1;transform:translateY(0); } }
@keyframes portfolio-badge-arrive { from { opacity:0;transform:translateY(-6px) scale(.94); } to { opacity:1;transform:translateY(0) scale(1); } }
@keyframes portfolio-cube-turn { 0%,100% { transform:rotate(0deg) scale(1); } 45% { transform:rotate(180deg) scale(1.12); } 55% { transform:rotate(180deg) scale(1.12); } }
@keyframes portfolio-show-pulse { 0%,100% { box-shadow:0 0 0 4px rgba(157,242,223,.1); } 50% { box-shadow:0 0 0 7px rgba(157,242,223,.03); } }
@media (prefers-reduced-motion:reduce) { .chart-3d .portfolio-slice-depth,.chart-3d .portfolio-chart-segment,.chart-3d .portfolio-callout-line,.chart-3d .portfolio-callout-arrow,.chart-3d .portfolio-callout-dot,.chart-3d .portfolio-callout-value,.chart-3d .portfolio-show-badge,.analytics-3d-button.is-active>span,.analytics-3d-button.is-active>b { animation:none!important;opacity:1;stroke-dashoffset:0; } }
@media (max-width:760px) { .analytics-3d-button { width:100%;justify-content:center; }.portfolio-callout-title { font-size:8px; }.portfolio-callout-customer { font-size:6.4px; } }
@media print { .portfolio-printing .chart-3d .portfolio-show-badge { display:flex!important; }.portfolio-printing .portfolio-callout-line { stroke-dashoffset:0!important;opacity:.78!important;animation:none!important; }.portfolio-printing .portfolio-callout-arrow,.portfolio-printing .portfolio-callout-dot,.portfolio-printing .portfolio-callout-value { opacity:1!important;animation:none!important; } }

/* Customer activity separation and quiet inactive archive */
.portfolio-source-impact { margin:-1px 0 2px;padding:11px 13px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;border:1px solid #dfe2ee;border-radius:11px;background:#fafbfe; }.portfolio-source-impact>span { width:29px;height:29px;display:grid;place-items:center;border-radius:9px;color:#5751d0;background:#ecebff;font-size:12px;font-weight:900; }.portfolio-source-impact strong,.portfolio-source-impact p { display:block; }.portfolio-source-impact strong { font-size:9px; }.portfolio-source-impact p { margin:3px 0 0;color:#747d90;font-size:8px;line-height:1.5; }.portfolio-source-impact.is-transfer { border-color:#f0d39b;background:linear-gradient(120deg,#fff9ed,#fffdf8); }.portfolio-source-impact.is-transfer>span { color:#b06b13;background:#ffedca; }.portfolio-source-impact.is-admin { border-color:#cde9e8;background:linear-gradient(120deg,#f3fbfb,#fbfefe); }.portfolio-source-impact.is-admin>span { color:#087e88;background:#ddf5f3; }
.portfolio-status-cell { display:grid;justify-items:start;gap:4px; }.portfolio-status-cell>small { color:#8b92a3;font-size:6.5px;font-weight:750;white-space:nowrap; }.portfolio-data-table tr.is-inactive td { color:#7e8698;background:#fbfbfd; }.portfolio-data-table tr.is-inactive:hover td { background:#f7f7fb; }
.portfolio-customer-groups { min-width:0;width:100%;background:#f7f8fc; }.portfolio-active-group { background:white; }.portfolio-active-group>header { min-width:100%;min-height:43px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e7ee;background:linear-gradient(90deg,#f2fbf8,#fbfdfd); }.portfolio-active-group>header>span { display:flex;align-items:center;gap:8px; }.portfolio-active-group>header i { width:23px;height:23px;display:grid;place-items:center;border-radius:8px;color:#128966;background:#dff7ef;font-size:9px;font-style:normal;font-weight:900; }.portfolio-active-group>header strong { font-size:9px; }.portfolio-active-group>header small { color:#8790a2;font-size:7px; }
.portfolio-inactive-group { min-width:100%;border-top:10px solid #f4f5f8;background:white; }.portfolio-inactive-group>summary { min-height:58px;padding:0 15px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;border-top:1px solid #e4e6ed;border-bottom:1px solid #e4e6ed;color:#596174;background:linear-gradient(90deg,#f7f8fb,#fcfcfd);cursor:pointer;list-style:none;user-select:none; }.portfolio-inactive-group>summary::-webkit-details-marker { display:none; }.portfolio-inactive-group>summary>span { display:flex;align-items:center;gap:10px; }.portfolio-inactive-group>summary>span>i { width:31px;height:31px;display:grid;place-items:center;border-radius:9px;color:#747d90;background:#e9ebf0;font-size:12px;font-style:normal; }.portfolio-inactive-group>summary strong,.portfolio-inactive-group>summary small { display:block; }.portfolio-inactive-group>summary strong { font-size:9px; }.portfolio-inactive-group>summary small { margin-top:3px;color:#9299a8;font-size:7px; }.portfolio-inactive-group>summary>b { padding:5px 8px;border-radius:99px;color:#687184;background:#e9ebf0;font-size:7px; }.portfolio-inactive-group>summary>em { font-size:12px;font-style:normal;transition:transform .2s ease; }.portfolio-inactive-group[open]>summary>em { transform:rotate(180deg); }.portfolio-inactive-group[open]>summary { color:#42495a;background:#f5f6f9; }.portfolio-inactive-group>div { overflow:auto; }.portfolio-inactive-group .portfolio-data-table th { background:#f2f3f7; }
@media (max-width:760px) { .portfolio-active-group>header { align-items:flex-start;flex-direction:column;justify-content:center;padding-top:9px;padding-bottom:9px; }.portfolio-inactive-group>summary { min-width:560px; }.portfolio-source-impact { padding:10px; } }
@media print { .portfolio-printing .portfolio-inactive-group { display:block; }.portfolio-printing .portfolio-inactive-group>summary { display:none; }.portfolio-printing .portfolio-inactive-group>div { display:block!important;overflow:visible; } }

/* Manual mail-rule review notice after customer reactivation */
.rule-reactivation-dialog { position:relative;width:min(520px,calc(100vw - 32px));padding:31px;overflow:hidden;border:0;border-top:4px solid #f0a44f;border-radius:22px;color:var(--text);background:linear-gradient(145deg,#fff,#fffbf4);box-shadow:0 32px 85px rgba(22,27,57,.28); }.rule-reactivation-dialog::backdrop { background:rgba(21,25,46,.55);backdrop-filter:blur(5px); }.rule-reactivation-glow { position:absolute;top:-95px;right:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(242,153,74,.2),transparent 68%);pointer-events:none; }.rule-reactivation-icon { position:relative;width:48px;height:48px;margin-bottom:16px;display:grid;place-items:center;border:1px solid #f2c27d;border-radius:15px;color:#b76d13;background:linear-gradient(145deg,#fff7e8,#ffe9c5);box-shadow:0 10px 25px rgba(205,128,32,.17);font-size:20px;font-weight:900; }.rule-reactivation-kicker { position:relative;color:#b66f18;font-size:7px;font-weight:900;letter-spacing:.15em; }.rule-reactivation-dialog h2 { position:relative;margin:7px 0 8px;font-size:20px;letter-spacing:-.025em; }.rule-reactivation-dialog>p { position:relative;margin:0;color:#6f7788;font-size:10px;line-height:1.65; }.rule-reactivation-dialog>p strong { color:#a55f0e; }.rule-reactivation-steps { position:relative;margin:20px 0 22px;padding:12px;display:grid;gap:7px;border:1px solid #f0dfc5;border-radius:13px;background:rgba(255,255,255,.78); }.rule-reactivation-steps span { display:flex;align-items:center;gap:9px;color:#5d6576;font-size:9px;font-weight:750; }.rule-reactivation-steps i { width:21px;height:21px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;color:#a76212;background:#fff0d7;font-size:7px;font-style:normal;font-weight:900; }.rule-reactivation-dialog .dialog-actions { position:relative;margin-top:0; }.rule-reactivation-dialog .dialog-actions .button { min-height:39px; }
@media (max-width:520px) { .rule-reactivation-dialog { padding:24px; }.rule-reactivation-dialog h2 { font-size:18px; } }
.collector-heading { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.application-version { display:inline-flex;align-items:center;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap; }
.application-version[hidden] { display:none; }
.admin-hero { position:relative;margin-bottom:14px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;border:1px solid #dfe5eb;border-radius:17px;background:radial-gradient(circle at 78% -20%,rgba(98,93,240,.12),transparent 35%),linear-gradient(125deg,#fff,#f8fbfc);box-shadow:0 8px 26px rgba(29,40,66,.045); }
.admin-hero::after { content:"";position:absolute;right:-55px;bottom:-85px;width:190px;height:190px;border:1px solid rgba(98,93,240,.12);border-radius:50%;pointer-events:none; }
.admin-eyebrow,.admin-section-kicker { display:block;margin-bottom:6px;color:#6b63cb;font-size:7px;font-weight:900;letter-spacing:.14em; }
.admin-title-line { display:flex;align-items:center;flex-wrap:wrap;gap:12px; }
.admin-title-line h1 { margin:0;font-size:25px;letter-spacing:-.035em; }
.admin-title-line .status { gap:6px;color:#177f62;background:#e7f7f1; }
.admin-title-line .status i { width:6px;height:6px;border-radius:50%;background:#20a878;box-shadow:0 0 0 4px rgba(32,168,120,.12); }
.admin-hero p { margin:7px 0 0;color:var(--muted);font-size:10px; }
.admin-hero-meta { position:relative;z-index:1;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:10px;text-align:right; }
.admin-hero-meta small { grid-column:1;color:var(--muted);font-size:7px;text-transform:uppercase;letter-spacing:.08em; }
.admin-hero-meta strong { grid-column:1;font-size:11px;font-variant-numeric:tabular-nums; }
.admin-hero-meta .icon-button { grid-column:2;grid-row:1/3;width:36px;height:36px;color:var(--brand);background:#fff; }
.admin-overview-facts { margin-bottom:14px;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px; }
.admin-overview-facts>div { position:relative;min-height:82px;padding:14px 14px 14px 55px;display:flex;flex-direction:column;justify-content:center;background:#fff;box-shadow:0 5px 18px rgba(28,39,65,.035); }
.admin-overview-facts small { font-size:8px; }
.admin-overview-facts strong { font-size:22px;line-height:1;font-variant-numeric:tabular-nums; }
.admin-fact-icon { position:absolute;left:13px;top:50%;width:31px;height:31px;display:grid;place-items:center;transform:translateY(-50%);border-radius:10px;font-size:14px;font-weight:900; }
.admin-fact-icon.users { color:#177f62;background:#e3f7ef; }.admin-fact-icon.sessions { color:#5c54cf;background:#eeecff; }.admin-fact-icon.accounts { color:#3273a9;background:#e8f2fa; }.admin-fact-icon.warnings { color:#aa6818;background:#fff0d7; }
.admin-command-grid { margin-bottom:18px;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);align-items:stretch;gap:14px; }
.admin-command-grid .online-users-card { grid-column:auto;min-width:0; }
.admin-command-grid>.setting-card { padding:18px;border-radius:15px;box-shadow:0 7px 24px rgba(26,38,63,.04); }
.admin-section-kicker { margin-bottom:5px; }
.admin-visual-board { min-width:0;display:flex;flex-direction:column; }
.admin-visual-board>.setting-head { align-items:flex-start; }
.admin-visual-top { margin-bottom:12px;padding:13px;display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:14px;border:1px solid #e5e8f0;border-radius:13px;background:linear-gradient(135deg,#fbfbff,#f7fbfa); }
.admin-online-ring { --admin-ring:0deg;width:90px;height:90px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#20a878 0 var(--admin-ring),#e8edef var(--admin-ring) 360deg);box-shadow:inset 0 0 0 1px rgba(32,168,120,.07); }
.admin-online-ring::before { content:"";grid-area:1/1;width:68px;height:68px;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(30,46,70,.07); }
.admin-online-ring>div { z-index:1;grid-area:1/1;text-align:center; }
.admin-online-ring strong,.admin-online-ring small { display:block; }.admin-online-ring strong { color:#177f62;font-size:17px; }.admin-online-ring small { margin-top:2px;color:var(--muted);font-size:7px; }
.admin-role-visual { min-width:0;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px; }
.admin-role-donut { width:55px;height:55px;display:grid;place-items:center;border-radius:50%;background:#edf0f4; }
.admin-role-donut::before { content:"";grid-area:1/1;width:35px;height:35px;border-radius:50%;background:#fff; }
.admin-role-donut span { position:relative;grid-area:1/1;font-size:10px;font-weight:850; }
.admin-role-visual>div:last-child>strong { display:block;margin-bottom:6px;font-size:9px; }
.admin-role-legend { display:grid;gap:4px; }.admin-role-legend>span { display:flex;align-items:baseline;gap:5px;color:var(--muted);font-size:9px;line-height:1.5; }.admin-role-legend i { width:6px;height:6px;flex:0 0 6px;border-radius:50%; }.admin-role-legend b { color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap; }
.admin-visual-board .online-activity-panel { margin-bottom:12px;grid-template-columns:1fr;gap:9px;background:#fff; }
.admin-visual-board .online-activity-chart { height:105px; }
.admin-security-insight { margin-top:auto;padding:11px 12px;display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:9px;border:1px solid #cde9df;border-radius:11px;color:#276f5d;background:#f0faf6; }
.admin-security-insight>span { width:27px;height:27px;display:grid;place-items:center;border-radius:9px;color:#168261;background:#dff5ed;font-size:10px;font-weight:900; }
.admin-security-insight strong,.admin-security-insight small { display:block; }.admin-security-insight strong { font-size:9px; }.admin-security-insight small { margin-top:3px;color:#698078;font-size:7px;line-height:1.4; }
.admin-security-insight.warning { border-color:#efd39d;color:#955b12;background:#fff8eb; }.admin-security-insight.warning>span { color:#9d6117;background:#ffebc5; }.admin-security-insight.warning small { color:#92764f; }
.admin-settings-heading { margin:4px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:14px; }
.admin-settings-heading>div { display:flex;align-items:center;gap:10px; }.admin-settings-heading>div>span { width:32px;height:32px;display:grid;place-items:center;border-radius:10px;color:#5e55d1;background:#eeecff;font-size:14px; }
.admin-settings-heading h2 { margin:0;font-size:15px; }.admin-settings-heading p { margin:3px 0 0;color:var(--muted);font-size:8px; }.admin-settings-heading>small { color:var(--muted);font-size:8px; }
.admin-settings-grid>.setting-card { border-color:#e1e5eb;border-radius:15px;box-shadow:0 5px 20px rgba(27,39,63,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.admin-settings-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.admin-settings-grid>.setting-card { grid-column:auto; }
.admin-settings-grid>.setting-card[data-compact] { position:relative;display:flex;flex-direction:column;min-height:225px;padding:22px;overflow:visible;background:linear-gradient(145deg,#fff,#fafbff); }
.admin-config-icon { width:44px;height:44px;margin-bottom:17px;display:grid;place-items:center;border-radius:13px;background:#eeecff;color:#625df0; }
.admin-config-icon svg { width:25px;height:25px; }
.admin-config-icon.database { color:#3273a9;background:#e8f2fa; }
.admin-config-icon.mail { color:#be552c;background:#fff0e8; }
.admin-config-icon.collector { color:#13836c;background:#e3f6ef; }
.admin-config-icon.license { color:#aa741d;background:#fff3d9; }
.admin-settings-grid>[data-compact]>.setting-head { flex:1;margin:0 0 18px;padding:0;border:0; }
.admin-settings-grid>[data-compact]>.setting-head h2 { font-size:16px; }
.admin-settings-grid>[data-compact]>.setting-head p { margin-top:8px;font-size:11px;line-height:1.65; }
.admin-settings-grid>[data-compact]>.setting-head>.status { position:absolute;right:20px;top:28px;max-width:calc(100% - 88px);white-space:normal;text-align:right; }
.admin-config-open { width:100%;display:flex;justify-content:space-between;align-items:center;background:#eeecff;border:1px solid #dedafc;color:#584dc7;font-size:11px;min-height:38px; }
.admin-config-open:hover { background:#625df0;color:white;border-color:#625df0; }
.admin-config-dialog { width:min(780px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:26px;border:1px solid #e3e5ef;border-radius:20px;box-shadow:0 25px 90px #17213a40; }
.admin-config-dialog::backdrop { background:#17213a66;backdrop-filter:blur(5px); }
.admin-config-dialog .dialog-head { margin-bottom:20px; }
.admin-config-dialog .settings-form { gap:15px; }
@media(max-width:1100px) { .admin-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .admin-settings-grid { grid-template-columns:minmax(0,1fr); }.admin-config-dialog { padding:18px; }.admin-settings-grid>[data-compact]>.setting-head { flex-wrap:nowrap; } }
.admin-settings-grid>.setting-card:hover { border-color:#d6d8ed;box-shadow:0 9px 28px rgba(32,43,74,.06);transform:translateY(-1px); }
.admin-settings-grid>.setting-card .setting-head { padding-bottom:11px;border-bottom:1px solid #edf0f3; }
.online-users-card { grid-column:1/-1; }
.online-users-card .setting-head { align-items:flex-start; }
.online-user-facts { margin-bottom:12px; }
.online-user-facts strong { font-size:20px;line-height:1;font-variant-numeric:tabular-nums; }
.online-user-list { display:grid;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff; }
.online-user-row { min-width:0;padding:12px;display:grid;grid-template-columns:36px minmax(150px,1fr) auto minmax(260px,.8fr);align-items:center;gap:12px;border-bottom:1px solid var(--line);transition:background .15s ease; }
.online-user-row:hover { background:#fafcfc; }
.online-user-row:last-child { border-bottom:0; }
.online-user-avatar { position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#286e60;background:linear-gradient(145deg,#e7f8f3,#d9f1eb);font-size:10px;font-weight:850; }
.online-user-avatar i { position:absolute;right:-2px;bottom:-2px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#20a878;box-shadow:0 0 0 3px rgba(32,168,120,.1); }
.online-user-row.is-idle .online-user-avatar i { background:#98a0ad;box-shadow:0 0 0 3px rgba(152,160,173,.12); }
.online-user-identity { min-width:0; }
.online-user-identity>strong,.online-user-identity>span { display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.online-user-identity>strong { font-size:11px; }
.online-user-identity>strong small { margin-left:7px;padding:2px 5px;border-radius:5px;color:var(--brand);background:var(--brand-soft);font-size:8px; }
.online-user-identity>span { margin-top:3px;color:var(--muted);font-size:9px; }
.online-user-time { display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:18px; }
.online-user-time>span { min-width:0; }
.online-user-time small,.online-user-time strong,.online-user-time em { display:block;white-space:nowrap; }
.online-user-time small { margin-bottom:3px;color:var(--muted);font-size:7px;font-weight:750;text-transform:uppercase;letter-spacing:.05em; }
.online-user-time strong { color:#177f62;font-size:10px; }
.online-user-time em { margin-top:3px;color:var(--muted);font-size:8px;font-style:normal; }
@media(max-width:600px) {
  .online-user-row { grid-template-columns:36px minmax(0,1fr) auto; }
  .online-user-time { grid-column:1/-1;padding-top:9px;border-top:1px dashed var(--line);gap:12px; }
  .online-users-card .setting-head>.head-actions { width:auto; }
}
.online-user-facts { grid-template-columns:repeat(4,minmax(0,1fr)); }
#online-warning-count.has-warning { color:#c36b16; }
.online-user-toolbar { margin:0 0 12px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.35fr);gap:10px; }
.online-user-toolbar label { margin:0;display:grid;gap:5px;color:var(--muted);font-size:8px;font-weight:750; }
.online-user-toolbar input,.online-user-toolbar select { width:100%;height:37px;margin:0;font-size:10px; }
.online-activity-panel { margin-bottom:12px;padding:12px 14px;display:grid;grid-template-columns:minmax(150px,.45fr) minmax(300px,1fr);align-items:center;gap:18px;border:1px solid #e5e9ef;border-radius:12px;background:linear-gradient(125deg,#f8fcfb,#fbfbfe); }
.online-activity-panel>div:first-child strong,.online-activity-panel>div:first-child small { display:block; }
.online-activity-panel>div:first-child strong { font-size:10px; }
.online-activity-panel>div:first-child small { margin-top:4px;color:var(--muted);font-size:8px;line-height:1.4; }
.online-activity-chart { height:70px;display:grid;grid-template-columns:repeat(8,minmax(24px,1fr));align-items:end;gap:7px; }
.online-activity-bar { min-width:0;height:100%;display:grid;grid-template-rows:minmax(30px,1fr) auto auto;align-items:end;gap:2px;text-align:center; }
.online-activity-bar>span { height:100%;display:flex;align-items:flex-end;justify-content:center;border-radius:5px;background:#edf2f3;overflow:hidden; }
.online-activity-bar i { width:100%;min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#57c7a7,#1d9475);box-shadow:0 -3px 9px rgba(29,148,117,.16); }
.online-activity-bar strong { color:#256c5c;font-size:7px;font-variant-numeric:tabular-nums; }
.online-activity-bar small { color:#8a93a2;font-size:6px;font-variant-numeric:tabular-nums; }
.online-user-row { grid-template-columns:36px minmax(150px,1fr) auto minmax(250px,.8fr) auto; }
.online-user-tags { margin-top:6px;display:flex;flex-wrap:wrap;gap:4px; }
.online-user-tag { padding:2px 5px;border-radius:99px;color:#566173;background:#eef1f4;font-size:6.5px;font-weight:800;letter-spacing:.02em;white-space:nowrap; }
.online-user-tag.new { color:#177f62;background:#e4f7f0; }
.online-user-tag.long { color:#6154bc;background:#eeebff; }
.online-user-tag.multi { color:#356f9b;background:#e7f2fa; }
.online-user-tag.warning { color:#a75c0c;background:#fff0d7; }
.online-user-tag.idle { color:#697281;background:#eceff2; }
.online-user-detail-button { min-width:68px; }
.online-session-dialog { box-sizing:border-box;width:min(860px,calc(100vw - 28px));padding:24px;max-height:calc(100dvh - 28px);overflow-y:auto; }
.online-session-dialog .dialog-head { margin-bottom:20px; }
.online-session-dialog .dialog-head>div { min-width:0;overflow-wrap:anywhere; }
.online-session-dialog .dialog-head h2 { font-size:20px;line-height:1.4; }
.online-session-dialog .dialog-head p { font-size:14px;line-height:1.6; }
.online-session-dialog .form-feedback { font-size:13px;line-height:1.6;margin:16px 0; }
.online-session-dialog .dialog-actions { padding-top:14px;border-top:1px solid var(--line); }
.online-session-dialog .button { font-size:13px;min-height:40px; }
.online-session-warning { margin:0 0 12px;padding:11px 13px;display:grid;gap:4px;border:1px solid #efcf94;border-radius:11px;color:#8b540f;background:#fff8ea; }
.online-session-warning strong { font-size:14px; }
.online-session-warning span { font-size:13px;line-height:1.5; }
.online-session-list { display:grid;gap:8px; }
.online-session-item { min-width:0;padding:12px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.online-session-icon { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#267b69;background:#e6f6f1;font-size:15px; }
.online-session-copy { min-width:0;display:grid;gap:7px; }
.online-session-copy>strong { min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.5; }
.online-session-copy>strong small { display:inline-block;margin-left:7px;padding:2px 7px;border-radius:5px;color:var(--brand);background:var(--brand-soft);font-size:11px; }
.online-session-copy>span { min-width:0;overflow-wrap:anywhere;color:#536078;font-size:13px;line-height:1.6; }
.online-session-copy b { color:#4b5668;font-weight:750; }
.online-session-item .danger:disabled { color:#798292;border-color:#dde2e7;background:#f1f3f5;opacity:1; }
.online-session-legacy { border-color:#e5d5a9;background:linear-gradient(120deg,#fffaf0,#fff); }
.online-session-legacy .online-session-icon { color:#9a6a20;background:#fff0cf; }
.online-session-legacy>button:disabled { color:#8b6b35;border-color:#ead9b5;background:#fff7e6;opacity:1; }
@media(max-width:900px) {
  .admin-command-grid { grid-template-columns:1fr; }
  .admin-visual-board { min-height:420px; }
  .online-user-row { grid-template-columns:36px minmax(0,1fr) auto; }
  .online-user-time { grid-column:2/-1;padding-top:9px;border-top:1px dashed var(--line); }
  .online-user-detail-button { grid-column:3; }
}
@media(max-width:600px) {
  .admin-hero { align-items:flex-start;flex-direction:column;padding:18px; }.admin-hero-meta { align-self:stretch;text-align:left; }.admin-title-line h1 { font-size:22px; }
  .admin-overview-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-overview-facts>div { min-height:72px;padding-left:50px; }
  .admin-command-grid>.setting-card { padding:14px; }.admin-visual-top { grid-template-columns:86px minmax(0,1fr);padding:10px; }.admin-online-ring { width:78px;height:78px; }.admin-online-ring::before { width:58px;height:58px; }
  .admin-settings-heading { align-items:flex-start; }.admin-settings-heading>small { display:none; }
  .online-user-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .online-user-toolbar,.online-activity-panel { grid-template-columns:1fr; }
  .online-activity-panel { gap:10px; }
  .online-activity-chart { gap:4px; }
  .online-user-time { grid-column:1/-1; }
  .online-user-detail-button { grid-column:1/-1;width:100%; }
  .online-session-item { grid-template-columns:34px minmax(0,1fr);align-items:start; }
  .online-session-item>button { grid-column:1/-1;width:100%; }
}
/* Compact, keyboard-accessible portfolio column controls. */
.portfolio-toolbar { display:grid;grid-template-columns:minmax(240px,1fr) minmax(150px,.5fr) minmax(220px,.8fr) auto;gap:10px; }
.portfolio-toolbar .portfolio-search { min-width:0; }
.portfolio-toolbar .portfolio-search input { height:40px;font-size:12px; }
.portfolio-toolbar>select { width:100%;min-width:0;height:42px;font-size:12px;text-overflow:ellipsis; }
.portfolio-column-picker { min-width:0; }
.portfolio-column-trigger { height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;border:1px solid #dedff0;border-radius:10px;background:#fff;color:#4e526d;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s; }
.portfolio-column-trigger:hover { background:#f5f4ff;border-color:#bcb8f2; }
.portfolio-column-picker:has(:popover-open) .portfolio-column-trigger { color:#5c51d7;background:#f1efff;border-color:#a69feb; }
.portfolio-column-trigger>b { min-width:22px;padding:3px 5px;border-radius:6px;background:#f0effb;color:#665bd6;font-size:10px;font-variant-numeric:tabular-nums; }
.column-trigger-chevron { color:#8c90a4;font-size:14px; }
.portfolio-column-panel { position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:0;width:360px;max-width:calc(100vw - 24px);max-height:min(540px,calc(100dvh - 24px));overflow:hidden;border:1px solid #e3e4f0;border-radius:17px;background:#fff;color:#27314a;box-shadow:0 18px 55px rgba(27,34,67,.18),0 3px 10px rgba(27,34,67,.06); }
.portfolio-column-panel:popover-open { display:flex;flex-direction:column; }
.column-panel-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:0 0 auto;padding:18px 18px 14px;background:linear-gradient(120deg,#faf9ff,#fff);border-bottom:1px solid #eeeef5; }
.column-panel-eyebrow { color:#827aab;font-size:9px;font-weight:800;letter-spacing:.13em; }
.column-panel-head h3 { margin:5px 0 4px;font-size:17px;line-height:1.2;letter-spacing:-.02em; }
.column-panel-head p { margin:0;color:#858a9c;font-size:11px;line-height:1.5; }
.column-panel-close { width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;padding:0;border:1px solid #e7e6f1;border-radius:8px;background:#fff;color:#81869a;font-size:21px;line-height:1;cursor:pointer; }
.column-panel-close:hover { color:#5146cf;background:#eeecff; }
.column-panel-tools { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 18px 8px;flex:0 0 auto;color:#8b8fa0;font-size:11px; }
.column-panel-tools b { color:#6358d9; }
.column-panel-tools button,.column-panel-footer button { padding:4px 0;border:0;background:transparent;color:#6258cd;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer; }
.column-panel-tools button:disabled { color:#a1a4b2;cursor:default; }
.column-options-list { min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8d6ea transparent;padding:3px 10px 10px; }
.column-option { display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:37px;padding:0 7px;border-radius:8px;transition:background .15s; }
.column-option:hover { background:#f6f5fc; }
.column-option.is-hidden { color:#989dab; }
.column-option label { display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin:0;padding:8px 0;font-size:12px;font-weight:550;line-height:1.35;cursor:pointer; }
.column-option label>span { flex:0 1 auto; }
.column-option input[type="checkbox"] { appearance:auto;box-sizing:border-box;display:block;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#6a5bea;cursor:pointer; }
.column-option input:disabled { cursor:default;opacity:.6; }
.column-option label>small { margin-left:2px;padding:2px 5px;border-radius:4px;background:#f0eff7;color:#9590ad;font-size:9px;font-weight:650; }
.column-move-actions { display:flex;align-items:center;gap:4px;flex:0 0 auto; }
.column-move-actions button { display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid #e6e7f0;border-radius:6px;background:#fff;color:#7f8197;font-size:13px;cursor:pointer; }
.column-move-actions button:hover:not(:disabled) { background:#eeecff;border-color:#c9c4ef;color:#584ace; }
.column-move-actions button:disabled { border-color:transparent;background:transparent;color:#d8d9e2;cursor:default; }
.column-panel-footer { display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto;padding:12px 17px;border-top:1px solid #eeeef5;background:#fafbfe; }
.column-panel-footer>span { color:#9297a7;font-size:10px; }
.column-panel-footer i { margin-right:3px;color:#26a581;font-style:normal; }
.portfolio-column-panel button:focus-visible,.portfolio-column-panel input:focus-visible,.portfolio-column-trigger:focus-visible { outline:2px solid #8274ed;outline-offset:3px; }
@media (max-width:1100px) { .portfolio-toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }.portfolio-column-picker { justify-self:end; } }
@media (max-width:600px) { .portfolio-toolbar { grid-template-columns:minmax(0,1fr);padding:12px; }.portfolio-column-trigger { width:100%; }.portfolio-column-picker { width:100%; }.column-panel-footer { flex-wrap:wrap;gap:5px; } }
@media print { .portfolio-column-panel { display:none!important; } }

/* Executive portfolio workspace: keep the 360 hero, simplify day-to-day work. */
.portfolio-workspace { display:grid;gap:20px;min-width:0; }
.portfolio-workspace>* { min-width:0;max-width:100%; }
.portfolio-workspace>.portfolio-hero { min-height:160px;padding:26px 30px; }
.portfolio-workspace .portfolio-hero h1 { font-size:clamp(24px,2.2vw,34px); }
.portfolio-workspace .portfolio-hero-actions { display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end; }
.portfolio-workspace-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.portfolio-workspace-stats>button { text-align:left;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 5px 15px rgba(27,40,70,.03);cursor:pointer;transition:transform .18s,box-shadow .18s; }
.portfolio-workspace-stats>button:hover { transform:translateY(-2px);box-shadow:var(--shadow); }
.portfolio-workspace-stats>button>span { display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px; }
.portfolio-workspace-stats i { font-style:normal;color:var(--brand); }
.portfolio-workspace-stats strong { display:block;margin:8px 0 6px;font-size:32px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums; }
.portfolio-workspace-stats small { display:block;font-size:11px;color:var(--muted); }
.portfolio-workspace-stats .needs-attention { background:linear-gradient(125deg,#fff8ed,#fffdf8);border-color:#f4e7d0; }
.portfolio-workspace-stats .needs-attention i { color:#b77728; }
.portfolio-workspace .portfolio-source-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 18px 16px; }
.portfolio-workspace .portfolio-source-tabs button { min-width:0;padding:13px;gap:9px;border-radius:12px; }
.portfolio-workspace .portfolio-source-tabs strong { font-size:11px; }
.portfolio-workspace .portfolio-source-tabs small { font-size:10px;line-height:1.45; }
.portfolio-workspace .portfolio-source-tabs button>span { width:30px;height:30px;flex-shrink:0; }
.portfolio-workspace .portfolio-data-table { min-width:0;font-size:12px; }
.portfolio-workspace .portfolio-data-table th button { font-size:10px;min-height:43px; }
.portfolio-workspace .portfolio-data-table td { padding:14px 8px; }
.portfolio-workspace .portfolio-company { min-width:210px; }
.portfolio-workspace .portfolio-company strong { font-size:12px;white-space:normal;line-height:1.5; }
.portfolio-workspace .portfolio-company small { font-size:10px; }
.portfolio-workspace .portfolio-sector-pill { font-size:11px;white-space:normal;line-height:1.5;max-width:230px; }
.portfolio-workspace .portfolio-code,.portfolio-workspace .portfolio-source-badge,.portfolio-workspace .portfolio-unassigned { font-size:10px; }
.portfolio-workspace .portfolio-row-edit { font-size:11px;min-height:33px; }
.portfolio-workspace .portfolio-active-group>header strong,.portfolio-workspace .portfolio-inactive-group>summary strong { font-size:11px; }
.portfolio-workspace .portfolio-active-group>header small,.portfolio-workspace .portfolio-inactive-group>summary small { font-size:10px; }
.portfolio-service-tags { display:flex;flex-wrap:wrap;gap:5px;min-width:160px; }
.portfolio-service-tags>span { padding:4px 7px;border-radius:6px;background:#eef6f8;color:#30616e;font-size:10px;line-height:1.5; }
.portfolio-reference-badge { display:inline-flex;padding:5px 8px;border-radius:7px;background:#e9f7f0;color:#16815e;font-size:10px;white-space:nowrap; }
.portfolio-reference-badge.excluded { background:#f1f2f6;color:#7b8496; }
/* Share the available table width even with long names or reordered columns. */
.portfolio-data-table th button { padding:10px 8px;gap:4px;white-space:normal;overflow-wrap:anywhere;text-align:left; }
.portfolio-data-table th button>span { flex-shrink:0; }
.portfolio-data-table .portfolio-location-warning { max-width:100%;white-space:normal; }
.portfolio-data-table .status { max-width:100%;white-space:normal; }
.portfolio-data-table .status::before { flex-shrink:0; }
.portfolio-data-table td { padding:11px 8px;overflow-wrap:anywhere; }
.portfolio-data-table .portfolio-company { min-width:0;align-items:flex-start; }
.portfolio-data-table .portfolio-company>div { min-width:0; }
.portfolio-data-table .portfolio-company strong,.portfolio-data-table .portfolio-company small { white-space:normal;overflow-wrap:anywhere; }
.portfolio-data-table .portfolio-code { display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere; }
.portfolio-data-table .portfolio-sector-pill { max-width:100%;align-items:flex-start;white-space:normal; }
.portfolio-data-table .portfolio-sector-pill i { margin-top:4px; }
.portfolio-data-table .portfolio-sector-pill>span { min-width:0;overflow-wrap:anywhere; }
.portfolio-data-table .portfolio-service-tags { min-width:0; }
.portfolio-data-table .portfolio-service-tags>span { max-width:100%;overflow-wrap:anywhere; }
.portfolio-data-table .portfolio-source-badge,.portfolio-data-table .portfolio-reference-badge { max-width:100%;white-space:normal; }
.portfolio-data-table .portfolio-row-edit { width:100%;padding:5px 4px;white-space:normal; }
@media(max-width:900px) { .portfolio-data-table { min-width:640px; } }

.portfolio-reference-notice { display:flex;align-items:center;gap:12px;padding:16px 20px;border:1px solid #cee8e2;background:linear-gradient(110deg,#edf9f5,#f8fdfc);border-radius:14px; }
.portfolio-reference-notice>span { font-size:28px;color:#19917b; }
.portfolio-reference-notice strong { font-size:13px;color:#18715f; }
.portfolio-reference-notice p { margin:4px 0 0;font-size:11px;color:#588377; }
.portfolio-reference-notice .button { margin-left:auto;flex-shrink:0; }
.portfolio-reference-notice[hidden] { display:none; }
.portfolio-workspace.is-reference-view .portfolio-source-tabs,.portfolio-workspace.is-reference-view .portfolio-workspace-stats,.portfolio-workspace.is-reference-view #portfolio-add-customer,.portfolio-workspace.is-reference-view #portfolio-column-picker { display:none; }
.portfolio-workspace.is-reference-view .portfolio-toolbar { grid-template-columns:minmax(220px,1fr) minmax(130px,.4fr) minmax(180px,.7fr); }
.portfolio-workspace.is-reference-view .portfolio-data-table { min-width:0; }
@media(max-width:900px) { .portfolio-workspace .portfolio-data-table,.portfolio-workspace.is-reference-view .portfolio-data-table { min-width:640px; } }
.portfolio-support-field { border:1px solid var(--line);border-radius:12px;padding:14px;margin:0;min-width:0; }
.portfolio-support-field legend { padding:0 5px;font-size:13px;font-weight:700; }
.portfolio-support-field>p { margin:0 0 10px;font-size:11px;color:var(--muted); }
.portfolio-support-options { display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:220px;overflow:auto; }
.portfolio-support-options label { display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft);font-size:12px;font-weight:500;line-height:1.5;cursor:pointer; }
.portfolio-support-options label:has(:checked) { background:var(--brand-soft);border-color:#c5bff2;color:#544ac6; }
.portfolio-support-options input[type=checkbox],.portfolio-pdf-choice input[type=radio] { width:17px;height:17px;min-width:17px;flex:0 0 17px;margin:0;accent-color:var(--brand); }
.portfolio-card-switches { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.portfolio-card-switches small { font-size:11px;font-weight:400;line-height:1.5;color:var(--muted); }
.portfolio-support-list { padding:5px 24px 24px;display:grid;gap:12px; }
.portfolio-support-item { display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fafbfd; }
.portfolio-support-item .support-item-icon { display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-size:21px;flex-shrink:0; }
.portfolio-support-item>div { flex:1;min-width:0;overflow-wrap:anywhere; }
.portfolio-support-item strong { display:block;font-size:14px; }
.portfolio-support-item small { display:block;margin-top:5px;color:var(--muted);font-size:11px; }
.portfolio-support-item.is-inactive { opacity:.7; }
.portfolio-pdf-choice { display:flex!important;align-items:flex-start;gap:12px;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);cursor:pointer; }
.portfolio-pdf-choice:has(:checked) { border-color:#aca4ed;background:#f2f0ff; }
.portfolio-pdf-choice strong { display:block;font-size:14px; }
.portfolio-pdf-choice small { display:block;margin-top:6px;font-size:12px;color:var(--muted);font-weight:400;line-height:1.5; }
@media(max-width:1100px) { .portfolio-workspace .portfolio-hero { flex-direction:column;align-items:flex-start; }.portfolio-workspace .portfolio-hero-actions { justify-content:flex-start; }.portfolio-workspace .portfolio-source-tabs { grid-template-columns:1fr; }.portfolio-workspace.is-reference-view .portfolio-toolbar { grid-template-columns:1fr 1fr; } }
@media(max-width:640px) { .portfolio-workspace-stats { gap:8px; }.portfolio-workspace-stats>button { padding:12px; }.portfolio-workspace-stats>button>span { font-size:11px; }.portfolio-workspace-stats small { display:none; }.portfolio-workspace-stats strong { font-size:26px; }.portfolio-support-options,.portfolio-card-switches { grid-template-columns:1fr; }.portfolio-reference-notice { flex-wrap:wrap; }.portfolio-reference-notice .button { margin-left:0; }.portfolio-workspace.is-reference-view .portfolio-toolbar { grid-template-columns:1fr; }.portfolio-support-list { padding:12px; }.portfolio-support-item { padding:12px;gap:10px; }.portfolio-workspace>.portfolio-hero { padding:24px; } }
@media(prefers-reduced-motion:reduce) { .portfolio-workspace-stats>button { transition:none; }.portfolio-workspace-stats>button:hover { transform:none; } }
.sector-order-controls { display:flex;align-items:center;gap:4px;padding:6px 9px;border-left:1px solid #e6e8ef; }
.sector-move-button { width:30px;height:30px;padding:0;border:1px solid #e3e5ef;border-radius:8px;background:#fff;color:#625df0;font-size:17px;cursor:pointer; }
.sector-move-button:hover:not(:disabled) { background:#efefff;border-color:#aaa6f5; }
.sector-move-button:focus-visible { outline:2px solid #625df0;outline-offset:2px; }
.sector-move-button:disabled { opacity:.3;cursor:default; }
.sector-order-hint { color:var(--muted);font-size:12px;line-height:1.6; }
.portfolio-sector-settings { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start; }
.portfolio-switch { position:relative; }
.portfolio-switch input { width:1px;height:1px;margin:0;left:0;top:0; }
.portfolio-switch:has(input:focus-visible) i { outline:2px solid var(--brand);outline-offset:3px; }
#portfolio-sector-form>label,#portfolio-sector-form .portfolio-sector-settings>label { min-width:0;font-size:13px;font-weight:600; }
#portfolio-sector-form input:not([type=hidden]):not([type=checkbox]),#portfolio-sector-form select { width:100%;min-width:0;min-height:42px;box-sizing:border-box; }
#portfolio-sector-form .sector-order-hint { margin:0; }
#portfolio-sector-form .portfolio-switch { min-height:42px; }
#portfolio-sector-form .portfolio-switch b { font-size:12px;font-weight:600; }
#portfolio-sector-form .dialog-actions { flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line); }
.audit-entity-id { display:block;margin-top:6px;color:var(--muted);font-size:11px;overflow-wrap:anywhere; }
.audit-table td { font-size:12px;line-height:1.6; }
.audit-table td>strong { font-size:13px; }
.audit-table .audit-customer-name { display: block; min-width: 160px; color: var(--text); font-size: 13px; }
.audit-table { min-width: 900px; }
.audit-table td:first-child { white-space: nowrap; }
.audit-table td:nth-child(5)>strong { max-width: 300px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.audit-pagination>div { display: flex; align-items: center; gap: 12px; }
.audit-detail-dialog { width: min(900px,calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 22px; overflow-y: auto; }
.audit-detail-dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.audit-detail-event { color: var(--brand); font-weight: 750; }
.audit-detail-metadata { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.audit-detail-metadata dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.audit-detail-metadata dd { margin: 0; overflow-wrap: anywhere; }
.audit-changes-table { width: 100%; min-width: 0; table-layout: fixed; }
.audit-changes-table td,.audit-changes-table tbody th { padding: 12px; font-size: 13px; line-height: 1.6; }
.audit-changes-table thead th { font-size: 11px; }
.audit-changes-table td { white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.audit-changes-table tbody th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; text-transform: none; }
.audit-json-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.audit-json-pair pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:600px) { .audit-detail-metadata,.audit-json-pair { grid-template-columns: 1fr; }.audit-detail-dialog { padding:16px; } }
.audit-table .comment,.audit-table .status { font-size:11px; }
.audit-table .audit-category,.audit-table .audit-correlation { font-size:10px; }
.rule-timing-fields { display:grid;gap:14px;min-width:0; }
.rule-timing-fields[hidden],.event-rule-hint[hidden] { display:none; }
.event-rule-hint { margin:0;padding:12px;border-radius:10px;background:var(--brand-soft);color:var(--muted);font-size:12px;line-height:1.6; }
.rule-type-badge { display:inline-block;padding:3px 7px;border-radius:6px;font-size:10px;font-weight:600;background:var(--brand-soft);color:var(--brand); }
.rule-type-badge.fail { background:var(--red-soft);color:var(--red); }
.review-nav-counts { margin-left:auto;min-width:0;flex:1 1 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;font-style:normal; }
.nav-item .review-nav-counts>b { margin-left:0; }
.unknown-count,.tab .count.unknown-count,.nav-item b.unknown-count { background:#fff0bc;color:#926000; }
.internal-count,.tab .count.internal-count { background:#e7ecf3;color:#60708a; }
.review-guide { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.tabs { flex-wrap:wrap; }
.fail-open-row { background:#fff7f8; }
.fail-closed-row { background:#f4f5f7;color:#697386; }
.fail-timeline-row .timeline-arrival { width:24px;height:24px;font-weight:800; }
.legend .neutral i { background:#9ca3af; }
.fail-history-table { min-width:800px;font-size:12px; }
.fail-history-table td { vertical-align:top; }
.fail-history-table small { display:block;margin-top:5px;color:var(--muted); }
@media(max-width:600px) { .portfolio-sector-settings { grid-template-columns:1fr; } }
@media(max-width:700px) { .sector-node { flex-wrap:wrap; }.sector-edit-button { flex-basis:100%; }.sector-order-controls { border-left:0;margin-left:auto; }.sector-child-button { min-height:42px; }.sector-children { margin-left:10px;padding-left:8px; } }
.sector-collapse-button,.sector-collapse-placeholder { flex:0 0 32px;align-self:center; }
.sector-collapse-button { width:26px;height:26px;margin-left:8px;border:1px solid #dfe4ee;border-radius:7px;background:#fff;color:#625df0;font-size:18px;cursor:pointer; }
.portfolio-sector-assignment { min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafbff; }
.portfolio-sector-assignment>strong,.portfolio-sector-assignment>small { display:block;font-size:12px; }
.portfolio-sector-assignment>small { font-size:10px;color:var(--muted);margin:6px 0 12px; }
#portfolio-sector-steps { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px; }#portfolio-sector-steps label { font-size:12px;align-content:start; }#portfolio-sector-path { color:#625df0;font-size:12px;line-height:1.6;margin:12px 0 0; }
#dashboard-greeting { color:inherit; }
.db-catalog-row { gap:20px;align-items:center;flex-wrap:wrap; }
.tracking-archive-toggle,.tracking-studio-tools { display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;line-height:1.5; }
.tracking-archive-toggle { padding:12px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer; }
.tracking-archive-toggle small { font-size:12px;color:var(--muted); }
.tracking-archive-toggle input[type=checkbox],.tracking-studio-tools input[type=checkbox] { width:17px;height:17px;min-width:17px;margin:0;accent-color:var(--brand); }
.tracking-missing-toggle { gap:8px;white-space:nowrap; }
.tracking-missing-toggle b { min-width:22px;height:22px;padding:0 7px;display:inline-grid;place-items:center;border-radius:999px;color:#fff;background:var(--red);font-size:11px; }
.tracking-missing-toggle[aria-expanded=true] { color:#fff;background:var(--red);border-color:var(--red); }
.tracking-missing-toggle[aria-expanded=true] b { color:var(--red);background:#fff; }
.tracking-missing-summary { margin-bottom:14px;overflow:hidden; }
.tracking-missing-summary>.panel-head>div { display:grid;gap:3px; }
.tracking-missing-summary>.panel-head small { color:var(--muted);font-size:11px; }
.tracking-missing-rows { display:grid; }
.tracking-missing-row { min-height:72px;padding:16px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px 12px;border-top:1px solid var(--line); }
.tracking-summary-text { min-width:0;font-size:12px;line-height:1.9;overflow-wrap:anywhere;user-select:text; }
.tracking-summary-field { margin-right:14px; }
.tracking-summary-field b { font-weight:650; }
.tracking-summary-actions { grid-column:2;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap; }
.tracking-missing-row>i { width:26px;height:26px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--red);font-size:12px;font-style:normal;font-weight:850; }
.tracking-missing-row.reviewed>i { background:var(--muted); }
.tracking-missing-row.late>i { background:var(--amber, #d97706); }
.tracking-missing-row strong,.tracking-missing-row small { display:block; }
.tracking-missing-row strong { font-size:12px; }
.tracking-missing-row small { margin-top:3px;color:var(--muted);font-size:11px; }
.tracking-missing-row .tracking-action-notes { margin-top:6px; }
@media(max-width:700px) { .tracking-missing-row { grid-template-columns:28px minmax(0,1fr); }.tracking-missing-row>div:last-child { grid-column:2; }.tracking-missing-row .button { width:100%; } }
.tracking-studio-tools { padding:8px 14px;border-bottom:1px solid var(--line); }
.tracking-panel-actions { display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end; }
#tracking-expand { display:inline-flex;align-items:center;gap:6px;white-space:nowrap; }
#tracking-expand svg { width:17px;height:17px; }
#tracking-workspace .timeline-panel>.panel-head { gap:10px;flex-wrap:wrap; }
body.tracking-presentation-open { overflow:hidden; }
#tracking-expanded-dialog { width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;margin:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);overflow:hidden;box-shadow:var(--shadow); }
#tracking-expanded-dialog::backdrop { background:#111a31b8; }
#tracking-expanded-dialog #tracking-workspace { height:100%;min-height:0;display:flex;flex-direction:column; }
#tracking-expanded-dialog #tracking-workspace>.page-head { margin-bottom:8px;flex-shrink:0; }
#tracking-expanded-dialog #tracking-workspace>.page-head h1 { font-size:18px;margin:0; }
#tracking-expanded-dialog #tracking-workspace>.page-head p { display:none; }
#tracking-expanded-dialog .customer-tools { margin-bottom:8px;flex-shrink:0; }
#tracking-expanded-dialog .tracking-archive-toggle { padding:6px 10px;margin-bottom:8px;flex-shrink:0; }
#tracking-expanded-dialog .timeline-panel { display:flex;flex-direction:column;flex:1;min-height:0;margin:0; }
#tracking-expanded-dialog .timeline-panel>.panel-head,#tracking-expanded-dialog .tracking-studio-tools { flex-shrink:0; }
#tracking-expanded-dialog #tracking-timeline { overflow:auto;min-height:0;flex:1;overscroll-behavior:contain; }
#tracking-expanded-dialog .timeline-axis { position:sticky;top:0;background:white;z-index:2; }
@media(max-width:600px),(max-height:550px) { #tracking-expanded-dialog { width:calc(100vw - 8px);height:calc(100dvh - 8px);padding:8px; }#tracking-expanded-dialog #tracking-workspace { overflow:auto; }#tracking-expanded-dialog .timeline-panel { flex:none;min-height:200px; }#tracking-expanded-dialog #tracking-timeline { max-height:65dvh; }#tracking-expanded-dialog .timeline-panel>.panel-head { position:sticky;top:0;background:white;z-index:3; } }
.tracking-studio-tools label { display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px; }
.tracking-studio-tools .portfolio-view-switch button { font-size:12px; }
.tracking-studio-tools button[aria-pressed=true] { background:var(--brand);color:white; }
#tracking-range-caption { margin-left:auto;color:var(--muted);font-size:12px; }
.duty-timeline { min-width:0;padding:6px 14px 10px; }
.duty-timeline .timeline-axis,.duty-timeline .timeline-row { display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px; }
.timeline-axis>div { position:relative;height:44px; }
.timeline-tick { position:absolute;top:26px;transform:translateX(-50%);font-size:10px;color:var(--muted);white-space:nowrap; }
.timeline-tick.first { transform:none; }.timeline-tick.last { transform:translateX(-100%); }
.timeline-now-label { position:absolute;top:0;transform:translateX(-50%);font-size:10px;font-weight:700;white-space:nowrap;color:var(--brand);padding:3px 7px;background:var(--brand-soft);border-radius:6px; }
.duty-timeline .timeline-row { width:100%;min-height:54px;padding:5px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;color:var(--text);font:inherit;cursor:pointer; }
.duty-timeline .timeline-row:hover { background:#f7f8ff; }
.duty-timeline .timeline-row[aria-expanded=true] { background:#f2f1ff;box-shadow:inset 3px 0 var(--brand); }
.duty-timeline .timeline-row:focus-visible { outline:2px solid var(--brand);outline-offset:2px; }
.duty-timeline .timeline-label { padding:0 6px;min-width:0; }
.duty-timeline .timeline-label strong { font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.duty-timeline .timeline-label strong::before { content:'›';display:inline-block;margin-right:5px;color:var(--brand);font-size:12px; }
.duty-timeline .timeline-row[aria-expanded=true] .timeline-label strong::before { transform:rotate(90deg); }
.duty-timeline .timeline-label small,.duty-timeline .timeline-label em { display:block;font-size:10px;line-height:1.3;font-style:normal;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.duty-timeline .timeline-track { display:block;height:32px;margin-right:1px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--timeline-grid-step) - 1px),var(--line) calc(var(--timeline-grid-step) - 1px),var(--line) var(--timeline-grid-step)); }
.timeline-window { position:absolute;top:9px;height:14px;min-width:3px;border-radius:5px;background:#dce1ec; }
.timeline-window.ok { background:#ade5d3; }.timeline-window.warn { background:#ffe0a0; }.timeline-window.bad { background:#fac1cb; }
.timeline-tolerance { position:absolute;top:11px;height:10px;background:repeating-linear-gradient(135deg,#f7d698 0,#f7d698 3px,#fff5df 3px,#fff5df 6px);border-radius:3px; }
.timeline-now-line { position:absolute;top:0;bottom:0;width:1px;background:var(--brand);opacity:.6;pointer-events:none; }
.timeline-arrival { position:absolute;top:6px;transform:translateX(-50%);width:20px;height:20px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#7e8ba1;color:white;font-size:11px;font-weight:700;box-shadow:0 2px 6px #182a4520; }
.duty-timeline .timeline-arrival { color:white!important; }
.timeline-arrival.ok { background:var(--green); }.timeline-arrival.warn { background:var(--orange); }.timeline-arrival.bad { background:var(--red); }
.timeline-label em.ok { color:var(--green); }.timeline-label em.warn { color:#99610a; }.timeline-label em.bad { color:var(--red); }.timeline-label em.neutral { color:var(--muted); }
.timeline-key { display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 6px 0;font-size:10px;color:var(--muted);border-top:1px solid var(--line); }
.tracking-inline-detail { margin:0 0 8px;padding:10px 12px;border:1px solid #d7d3f7;border-top:2px solid var(--brand);border-radius:0 0 9px 9px;background:#fafaff;overflow-wrap:anywhere; }
.tracking-detail-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px; }
.tracking-detail-head small { color:var(--brand);font-size:11px;line-height:1.4; }
.tracking-detail-head h3 { margin:5px 0 16px;font-size:16px;line-height:1.5; }
.tracking-detail-head .icon-button { flex:0 0 28px;width:28px;height:28px;font-size:18px; }
.tracking-inline-detail h4 { font-size:14px;margin:20px 0 12px;line-height:1.5; }
.tracking-detail-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px;margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:white; }
.tracking-detail-grid dt { margin-bottom:2px;color:var(--muted);font-size:11px;line-height:1.4; }
.tracking-detail-grid dd { margin:0;font-size:11px;font-weight:600;line-height:1.4;white-space:pre-wrap; }
.tracking-action-notes { min-width:160px;max-width:320px;font-size:11px;font-weight:400;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere; }
.tracking-action-notes>div+div { margin-top:8px;padding-top:8px;border-top:1px solid var(--line); }
.tracking-action-notes small { display:block;margin-top:3px;color:var(--muted);font-size:10px; }
.tracking-detail-grid .tracking-action-notes { min-width:0;max-width:none; }
.tracking-detail-notice { font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0 0; }
@media(max-width:900px) { .duty-timeline .timeline-axis,.duty-timeline .timeline-row { grid-template-columns:160px minmax(0,1fr);gap:10px; }.tracking-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.timeline-tick { writing-mode:vertical-rl;font-size:10px; }.timeline-axis>div { height:60px; } }
@media(max-width:600px) { .duty-timeline { padding:6px 14px 10px; }.duty-timeline .timeline-row { grid-template-columns:minmax(0,1fr);gap:3px; }.duty-timeline .timeline-axis { grid-template-columns:minmax(0,1fr); }.timeline-axis>span { display:none; }.tracking-detail-grid { grid-template-columns:minmax(0,1fr); }.tracking-inline-detail { padding:14px; }#tracking-range-caption { margin-left:0;width:100%; }.tracking-archive-toggle small { width:100%; }.duty-timeline .timeline-label { padding:0 6px; } }
.db-catalog-row .db-type-name { flex:1;min-width:180px; }
.db-catalog-row .db-type-name strong { overflow-wrap:anywhere; }
.db-catalog-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.db-catalog-actions .status { margin-right:8px; }
.db-catalog-actions button:disabled { opacity:.45;cursor:not-allowed; }
.db-catalog-row .db-delete-reason { color:var(--muted);font-size:12px;margin-top:4px; }
@media(max-width:600px) { .db-catalog-actions { width:100%;justify-content:flex-end; }.db-catalog-actions .status { margin-right:auto; } }

/* Mobile tables use readable record cards instead of squeezing every column. */
@media(max-width:760px) {
  .portfolio-table-shell,.portfolio-inactive-group>div { overflow:visible; }
  .portfolio-customer-groups { padding-bottom:1px; }
  .portfolio-data-table,.portfolio-data-table tbody { min-width:0;width:100%;display:block; }
  .portfolio-data-table colgroup,.portfolio-data-table thead { display:none; }
  .portfolio-data-table tbody { padding:12px;display:grid;gap:12px;background:#f7f8fc; }
  .portfolio-data-table tbody tr { min-width:0;padding:4px 12px;display:grid;border:1px solid #e2e5ee;border-radius:14px;background:#fff;box-shadow:0 5px 14px rgba(27,40,70,.045); }
  .portfolio-data-table tbody tr.is-inactive { background:#fafbfc; }
  .portfolio-data-table td,.portfolio-data-table tr.is-inactive td { min-width:0;max-width:none;padding:10px 0;display:grid;grid-template-columns:minmax(94px,32%) minmax(0,1fr);align-items:start;gap:10px;border:0;border-bottom:1px solid #eceef3;color:var(--text);background:transparent;line-height:1.45;overflow-wrap:break-word;word-break:normal; }
  .portfolio-data-table tbody tr td:last-child { border-bottom:0; }
  .portfolio-data-table td::before { content:attr(data-label);min-width:0;color:#7d8598;font-size:9px;font-weight:850;letter-spacing:.045em;line-height:1.5;text-transform:uppercase;overflow-wrap:normal;word-break:normal; }
  .portfolio-data-table td[data-column="name"] { padding-top:12px;grid-template-columns:1fr;gap:7px; }
  .portfolio-data-table td[data-column="name"]::before { color:#5953cc; }
  .portfolio-data-table td[data-column="actions"] { grid-template-columns:1fr;padding:11px 0; }
  .portfolio-data-table td[data-column="actions"]::before { display:none; }
  .portfolio-company { min-width:0;width:100%;align-items:flex-start; }
  .portfolio-company>div { min-width:0; }
  .portfolio-company strong,.portfolio-company small { max-width:none;white-space:normal;text-overflow:clip;overflow-wrap:break-word;word-break:normal; }
  .portfolio-sector-pill { max-width:100%;align-items:flex-start;white-space:normal;overflow:visible;text-overflow:clip; }
  .portfolio-service-tags { min-width:0; }
  .portfolio-row-edit { width:100%;min-height:38px;font-size:10px; }
  .portfolio-inactive-group>summary { min-width:0;width:100%;padding:10px 12px; }
}

@media(max-width:600px) {
  .setting-card { min-width:0;padding:14px; }
  .setting-head { align-items:flex-start;flex-wrap:wrap; }
  .settings-form .form-grid { grid-template-columns:minmax(0,1fr); }
  .setting-card .service-facts { grid-template-columns:minmax(0,1fr); }
  .setting-card .head-actions { width:100%;flex-wrap:wrap; }
  .setting-card .head-actions>.button { min-height:40px;flex:1 1 145px;white-space:normal; }
  .license-token { min-width:0;overflow-wrap:anywhere; }
}

#dashboard-flow-action-taken { background: linear-gradient(90deg, #8893a5, #aab3c2); }
.dashboard-flow-legend .flow-action-taken i { background: #8893a5; }

.customer-rule-groups { display: grid; gap: 16px; min-width: 0; }
.customer-rule-group .panel-head { flex-wrap: wrap; gap: 8px 16px; }
.rule-group-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rule-group-heading strong { overflow-wrap: anywhere; }
.panel-head .rule-group-count { min-width: 24px; padding: 3px 7px; border-radius: 99px; text-align: center; color: var(--brand); background: var(--brand-soft); font-weight: 750; }
.customer-rule-group.fail .rule-group-count { color: #b52c42; background: #fff0f2; }
.customer-rule-group.internal .rule-group-count { color: #64748b; background: #edf1f6; }
.customer-fail-summary { margin-top: 8px; font-size: 12px; line-height: 1.5; }
.customer-fail-summary small { display: block; margin-top: 3px; }
.customer-fail-summary .bad { color: var(--red); }
.customer-fail-summary .neutral { color: var(--muted); }

.rule-sync-state { margin-top: 5px; font-weight: 650; }
.rule-sync-state.warn { color: var(--orange); }
.rule-sync-state.ok { color: var(--green); }
.rule-sync-state.bad { color: var(--red); }

.collector-state.warning .live-dot { background: #e6aa30; box-shadow: 0 0 0 5px rgba(230,170,48,.15); }
#service-outage-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid #e6aa30; border-radius: 14px; }
#service-outage-dialog::backdrop { background: rgba(0,0,0,.4); }
#service-outage-message { line-height: 1.6; }
.extra-mail-customer { padding: 20px; }
.extra-mail-system { margin: 16px 0 0 12px; border-left: 2px solid #dce0ef; padding-left: 16px; }
.extra-mail-rule { margin: 16px 0; }
.extra-mail-timeline { list-style: none; padding: 0; display: grid; gap: 10px; }
.extra-mail-entry { border-left: 4px solid; border-radius: 8px; padding: 12px 16px; overflow-wrap: anywhere; }
.extra-mail-entry.expected { border-color: #168363; background: #edf9f4; color: #15513f; }
.extra-mail-entry.additional { border-color: #7053bd; background: #f3effb; color: #503480; }

/* Review workspace: stable categories, independent data surface. */
.review-help { margin: -4px 0 18px; color: var(--muted); font-size: 12px; }
.review-help > summary { cursor: pointer; width: fit-content; padding: 6px 0; }
.review-help .review-guide { margin-top: 10px; }
.review-workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 20px; align-items: start; }
.review-navigation.tabs { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 22px; margin: 0; padding: 16px 10px; width: 100%; min-width: 0; border-radius: 16px; background: linear-gradient(150deg, #fff, #f8f9ff); box-shadow: 0 5px 20px #17213a05; }
.review-nav-group { display: grid; gap: 5px; min-width: 0; }
.review-nav-group > h2 { margin: 0 8px 5px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.review-navigation .tab { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 64px; padding: 11px 9px; text-align: left; white-space: normal; border: 1px solid transparent; border-radius: 11px; }
.review-navigation .tab:hover { background: #f0f2fa; }
.review-navigation .tab.active { background: var(--brand-soft); border-color: #d6d2ff; box-shadow: inset 3px 0 var(--brand); color: var(--brand); }
.review-navigation .tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.review-nav-icon { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 8px; background: #e9edf5; color: #65718a; font-size: 16px; }
.review-navigation .tab.active .review-nav-icon { background: var(--brand); color: #fff; }
.review-nav-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.review-nav-copy strong { font-size: 11px; line-height: 1.45; font-weight: 750; overflow-wrap: anywhere; }
.review-nav-copy small { color: var(--muted); font-size: 10px; line-height: 1.35; font-weight: 450; }
.review-navigation .tab .count { margin: 0; min-width: 23px; padding: 4px 6px; text-align: center; flex: 0 0 auto; font-size: 10px; }
.review-content { min-width: 0; }
.review-content > .panel { border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px #17213a05; }
.review-content .panel-head { padding: 20px; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.review-content .panel-head > strong { font-size: 14px; }
.review-content .incident-table-tools { display: grid; grid-template-columns: minmax(0,1fr); margin: 0 20px 18px; gap: 12px; padding: 14px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; }
.review-content .incident-table-tools .search { width: 100%; min-width: 0; max-width: none; }
.review-content .incident-table-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-start; }
.review-content .table-limit-note { margin-left: auto; }
.review-content .table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.review-content .incident-table { min-width: 780px; }
.review-content .incident-table td { max-width: 290px; overflow-wrap: anywhere; }
.review-content .incident-table tbody tr:hover { background: #f8f9ff; }
.review-content .table-pagination { padding: 16px 20px; background: var(--panel-soft); }
.review-content .extra-mail-customer > h2 { font-size: 16px; }
.review-content .extra-mail-rule { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.review-content .extra-mail-rule .panel-head { margin: 0; padding: 0 0 12px; }
@media (min-width: 1700px) {
  .review-content .incident-table-tools { grid-template-columns: minmax(200px,1fr) auto; }
}
@media (max-width: 1150px) {
  .review-workspace { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .review-navigation.tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .review-nav-group { align-content: start; }
}
@media (max-width: 600px) {
  .review-navigation.tabs { display: flex; gap: 12px; padding: 12px; }
  .review-nav-group { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .review-nav-group > h2 { grid-column: 1 / -1; }
  .review-navigation .tab { min-height: 52px; gap: 6px; padding: 8px; }
  .review-nav-icon { display: none; }
  .review-nav-copy small { display: none; }
  .review-content .panel-head { padding: 14px; }
  .review-content .incident-table-tools { margin: 0 12px 12px; padding: 10px; }
  .review-content .incident-table-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .review-content .table-limit-note { margin: 0; }
  .review-content .date-picker { justify-content: space-between; }
  .review-content .extra-mail-customer { padding: 12px; }
  .review-content .extra-mail-system { margin-left: 0; padding-left: 10px; }
}

/* Inbox layout: keep category navigation above the list; selection never folds it. */
.review-workspace { display: block; }
#review-categories { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
#review-categories > summary { padding: 15px 18px; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 700; }
#review-category-label { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; color: var(--brand); font-size: 12px; }
#review-category-label b { padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); font-size: 11px; }
#review-categories .review-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 8px 16px 16px; border: 0; border-radius: 0; box-shadow: none; background: var(--panel); }
#review-categories .review-nav-group { display: grid; grid-template-columns: 1fr; gap: 5px; align-content: start; }
#review-categories .review-nav-group > h2 { margin: 3px 8px 5px; }
#review-categories .tab { min-height: 58px; }
.review-content .incident-table-tools { grid-template-columns: minmax(0,1fr); }
.review-inbox { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,32%); align-items: start; }
.review-records { min-width: 0; }
.review-reading-pane { min-width: 0; padding: 20px; border-left: 1px solid var(--line); background: var(--panel-soft); align-self: stretch; overflow-wrap: anywhere; }
.review-reading-heading { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.review-reading-heading h2 { margin: 0; font-size: 15px; }
.review-reading-heading > span { font-size: 10px; color: var(--muted); }
.review-reading-pane .incident-detail-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
.review-reading-pane .incident-detail-grid .wide { grid-column: 1; }
.review-reading-pane .incident-detail-grid strong { font-size: 12px; line-height: 1.6; }
.review-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.review-detail-actions:empty { display: none; }
.review-content .incident-table tbody tr.review-row-selected { background: var(--brand-soft); }
.review-content .incident-table tbody tr.review-row-selected > td:first-child { box-shadow: inset 3px 0 var(--brand); }
.review-content .table-action[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.review-content .incident-table td { max-width: 240px; white-space: normal; }
.review-content .incident-time { white-space: normal; line-height: 1.5; }
.review-extra-inbox { grid-template-columns: minmax(240px,36%) minmax(0,1fr); }
.review-extra-list { min-width: 0; padding: 4px 18px 18px; }
.review-extra-list section + section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.review-extra-list h3 { font-size: 13px; margin: 12px 0 8px; }
.review-extra-list h4 { font-size: 11px; color: var(--muted); margin: 10px 0 6px; }
.review-extra-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 1px solid var(--line); padding: 12px; margin-top: 6px; border-radius: 9px; background: var(--panel); text-align: left; color: var(--text); cursor: pointer; }
.review-extra-select strong { font-size: 12px; overflow-wrap: anywhere; }
.review-extra-select span { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.review-extra-select[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); }
.review-reading-pane .extra-mail-customer { padding: 0; }
.review-reading-pane .extra-mail-system { margin-left: 0; }
.review-reading-pane .extra-mail-rule { padding: 12px; }
@media (min-width: 1700px) {
  .review-content .incident-table-tools { grid-template-columns: minmax(220px,1fr) auto; }
}
@media (max-width: 1100px) {
  .review-inbox { grid-template-columns: minmax(0,1fr); }
  .review-reading-pane { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 650px) {
  #review-categories .review-navigation { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 4px 12px 14px; }
  #review-categories .review-nav-group { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #review-categories .review-nav-group > h2 { grid-column: 1 / -1; }
  #review-category-label { display: flex; margin: 8px 0 0; font-size: 11px; }
  #review-categories .review-nav-icon { display: none; }
  #review-categories .review-nav-copy small { display: none; }
  #review-categories .tab { min-height: 54px; }
  .review-reading-pane { padding: 16px; }
}

/* Compact reading surface: no nested cards, actions available before long content. */
.review-reading-pane .incident-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
.review-reading-pane .incident-detail-grid > div { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.review-reading-pane .incident-detail-grid > div:nth-child(1),
.review-reading-pane .incident-detail-grid > div:nth-child(2),
.review-reading-pane .incident-detail-grid > .wide { grid-column: 1 / -1; }
.review-reading-pane .incident-detail-grid p { margin: 5px 0 0; }
.review-detail-actions { padding: 0 0 18px; }
.review-content .expected-incident-table { min-width: 900px; }
.review-content .incident-customer-cell { min-width: 120px; }
.review-content .incident-rule-cell { min-width: 170px; }
.incident-rule-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.incident-rule-system { margin-top: 4px; }
@media (min-width: 1101px) {
  .review-records .table-wrap { max-height: 64vh; overflow: auto; }
  .review-records .table thead th { position: sticky; top: 0; z-index: 1; background: var(--panel-soft); }
  .review-reading-pane { max-height: 72vh; overflow: auto; }
  .review-extra-list { max-height: 72vh; overflow: auto; }
}

