@charset "UTF-8";

/* Shared palette and full-window work surface. */
:root {
  --bg: #fff;
  --white: #fff;
  --ink: #202344;
  --muted: #647683;
  --line: #eaf1f2;
  --teal: #0f8088;
  --teal-dark: #0c7179;
  --green: #0f8088;
  --green-dark: #0c7179;
  --soft: #eef9fa;
  --yellow: #f6d96d;
  --red: #b34f59;
  --amber: #946e26;
  --rail: #202225;
  --rail-width: 230px;
  --frame: 10px;
  --radius: 17px;
  --shadow: 0 5px 20px #16465804;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--rail);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--rail); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #58bfc7; outline-offset: 3px; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex-shrink: 0; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: #fff; }
.skip-link:focus { top: 10px; }
.boot { height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 20px; background: #fff; }
.workspace { height: 100dvh; margin: 0; padding: var(--frame) var(--frame) 0 0; overflow: hidden; background: var(--rail); }
.shell { min-width: 0; height: 100%; margin-left: var(--rail-width); padding: 43px 42px 28px; overflow: auto; overscroll-behavior: contain; border-radius: 30px 30px 0 0; background: #fff; scrollbar-width: thin; scrollbar-color: #c6dcdf transparent; }

/* Expanded desktop navigation, with a white selected tab flowing into the page. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--rail-width); padding: 32px 0 22px 20px; background: var(--rail); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 65px; padding: 0 20px 19px 10px; color: #fffdf0; }
.brand:hover { color: #fffdf0; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border: 1px solid #ffffff66; border-radius: 11px; background: #ffffff0d; color: #fff; font-size: 24px; font-weight: 650; line-height: 1; letter-spacing: -1px; }
.brand-copy { min-width: 0; }
.brand-name { font-size: 23px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.version { margin-top: 4px; color: #c8cacf; font-size: 11px; line-height: 1.3; letter-spacing: .3px; }
.navigation { position: relative; isolation: isolate; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-top: 18px; scrollbar-width: thin; scrollbar-color: #74777d transparent; }
.nav-indicator { position: absolute; z-index: -1; top: 0; left: 0; right: 0; border-radius: 26px 0 0 26px; background: #fff; pointer-events: none; }
.nav-indicator.ready { transition: transform .32s cubic-bezier(.22,.8,.3,1), height .32s ease; }
.nav-link { position: relative; display: flex; align-items: center; gap: 13px; min-height: 47px; margin: 6px 0; padding: 13px 22px; border-radius: 26px 0 0 26px; color: #e8e9ec; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.nav-link svg { width: 19px; height: 19px; color: #c8cacf; }
.nav-link:hover { background: #ffffff12; color: #fff; text-decoration: none; }
.nav-link.active { background: transparent; color: var(--ink); }
.nav-link.active svg { color: #383c43; }
.nav-indicator::before, .nav-indicator::after { content: ""; position: absolute; right: 0; width: 22px; height: 22px; pointer-events: none; }
.nav-indicator::before { bottom: 100%; border-radius: 50%; box-shadow: 11px 11px 0 #fff; }
.nav-indicator::after { top: 100%; border-radius: 50%; box-shadow: 11px -11px 0 #fff; }
.nav-label { white-space: nowrap; }
.nav-group { margin: 26px 22px 11px; color: #a9acb2; font-size: 10px; font-weight: 550; letter-spacing: 1.8px; }
.account { position: relative; display: flex; align-items: center; gap: 6px; margin: 20px 18px 0 7px; padding-top: 18px; border-top: 1px solid #ffffff21; }
.account-profile { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 5px; border: 0; border-radius: 12px; background: transparent; color: #fffdf0; text-align: left; }
.account-profile:hover { background: #ffffff10; color: #fff; text-decoration: none; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #def2f3; color: #20787d; font-size: 13px; font-weight: 600; }
.sidebar .avatar { background: #e5e7eb; color: #45494f; }
.account-info { flex: 1; min-width: 0; }
.account-info strong { display: block; overflow: hidden; color: #fffdf0; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.account-info span { color: #bfc2c8; font-size: 11px; }
.account-chevron { width: 14px; height: 14px; color: #bfc2c8; transform: rotate(-90deg); transition: transform .15s; }
.account-profile[aria-expanded=true] .account-chevron { transform: rotate(90deg); }
.account-menu { position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 0; right: 0; padding: 6px; border: 1px solid #e4eaec; border-radius: 13px; background: #fff; box-shadow: 0 10px 30px #0003; }
.account-menu:not([hidden]) { animation: toastin .15s ease-out; }
.account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 12px; text-align: left; }
.account-menu button:hover, .account-menu button:focus-visible { background: var(--soft); }
.account-menu svg { width: 17px; height: 17px; color: #567581; }
.mobile-shade, .sidebar-close { display: none; }

/* Page hierarchy and actions. */
.page-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { color: var(--ink); font-size: 29px; font-weight: 650; line-height: 1.35; letter-spacing: -.8px; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 15px; border: 1px solid #dbe9eb; border-radius: 20px; background: #fff; color: #417a86; font-size: 12px; font-weight: 550; line-height: 1.4; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: #eef8f9; border-color: #bddde0; }
.btn.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.btn.primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.btn.soft { border-color: transparent; background: #e1f3f3; color: #267580; }
.btn.danger { border-color: #efd8dc; color: var(--red); }
.btn.danger:hover { background: #fff3f5; }
.btn.small { min-height: 31px; padding: 6px 11px; font-size: 11px; }
.btn svg { width: 15px; height: 15px; }
.btn[aria-busy=true] { cursor: wait; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #5c757e; }
.icon-button:hover { background: var(--soft); color: var(--teal-dark); }
.icon-button.mobile-toggle { display: none; }
.card { min-width: 0; border: 1px solid #eaf0f2; border-radius: var(--radius); background: #fff; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.card-header h2, .section-title { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.card-header p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card-body { padding: 21px 24px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 2px 0; color: #61757d; font-size: 11px; }
.footer-note span { display: flex; align-items: center; gap: 6px; }
.footer-note svg { width: 11px; height: 11px; }

/* The overview is led by a wide chart, followed by quieter operational lists. */
.overview-toolbar { margin-bottom: 25px; }
.overview-toolbar .page-heading { margin-bottom: 11px; }
.overview-toolbar select { min-width: 132px; padding-inline: 15px; border-radius: 20px; border-color: #dcebed; }
.overview-toolbar select[name=overview-site] { max-width: 210px; text-overflow: ellipsis; }
.report-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 22px; color: var(--muted); font-size: 11px; }
.report-meta > span:first-child { display: flex; align-items: center; gap: 6px; }
.report-meta svg { width: 13px; height: 13px; }
.report-meta time { color: #3d687b; font-variant-numeric: tabular-nums; }
.report-refresh { width: 38px; height: 38px; border: 1px solid #d2e6e8; background: #f3fafb; color: var(--teal); }
.report-refresh:hover { background: #e2f4f5; }
.report-refresh[aria-busy=true] { opacity: .7; cursor: wait; }
.report-error { margin-bottom: 18px; padding: 11px 14px; border: 1px solid #ecd2c2; border-radius: 11px; background: #fff7f1; color: #985d40; font-size: 12px; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 29px; padding: 19px 0; border: 1px solid #e3eff0; border-radius: 16px; background: #f6fbfc; }
.stat { min-width: 0; padding: 0 23px; border-right: 1px solid #deebed; }
.stat:last-child { border-right: 0; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #59757f; font-size: 12px; }
.stat-label svg { width: 17px; height: 17px; color: #427a83; }
.stat-value { margin: 8px 0 4px; color: #25344e; font-size: 30px; font-weight: 550; letter-spacing: -.9px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat:last-child .stat-value { color: var(--teal); }
.stat-foot { color: #61737b; font-size: 11px; line-height: 1.7; }
.stat-foot span { color: var(--teal-dark); }
.trend-card { margin-bottom: 35px; border: 0; border-radius: 0; }
.trend-card .card-header { padding: 0; align-items: center; }
.trend-card .card-body { padding: 10px 0 0; }
.trend-card .card-footer { justify-content: flex-end; padding: 14px 0 0; border-top: 0; color: #61747c; }
.overview-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,290px); align-items: start; gap: 34px; }
.overview-primary, .overview-secondary { display: grid; gap: 29px; min-width: 0; }
.overview-primary > .card { border: 0; border-radius: 0; }
.overview-primary > .card > .card-header { padding: 0; }
.overview-primary > .card > .card-body { padding: 18px 0 0; }
.overview-primary > .card + .card { padding-top: 26px; border-top: 1px solid var(--line); }
.devices-card { border-color: #e3eff0; background: #f7fcfc; }
.devices-card .card-header { align-items: center; gap: 10px; }
.devices-card select { min-width: 96px; padding: 6px 8px; border-radius: 9px; font-size: 11px; }
.device-ring { position: relative; display: grid; place-items: center; width: min(190px,100%); aspect-ratio: 1; margin: 3px auto 27px; border-radius: 50%; }
.device-ring::before { position: absolute; content: ''; inset: 16px; border-radius: 50%; background: #f7fcfc; }
.device-ring-center { position: relative; display: grid; gap: 4px; max-width: 75%; text-align: center; }
.device-ring-center strong { color: #293c53; font-size: clamp(22px,2.3vw,30px); font-weight: 600; line-height: 1.2; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.device-ring-center span { color: var(--muted); font-size: 11px; }
.device-legend { display: grid; gap: 14px; }
.device-legend-row { display: grid; grid-template-columns: 1fr auto 49px; align-items: center; gap: 10px; color: #5f747d; font-size: 12px; font-variant-numeric: tabular-nums; }
.device-kind { display: flex; align-items: center; gap: 9px; }
.device-kind i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.device-legend-row strong { color: #394b61; font-weight: 500; }
.device-percent { color: var(--muted); text-align: right; font-size: 11px; }
.visitors-card { border-color: #dcebee; background: #f0f8fa; }
.visitors-card .card-header { align-items: center; }
.visitors-card .card-header > svg { width: 18px; height: 18px; color: #64929b; }
.visitor-bars { display: grid; gap: 22px; margin: 3px 0; padding: 0; list-style: none; }
.visitor-bars li { display: grid; grid-template-columns: 86px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.visitor-label { color: #506b79; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.visitor-track { height: 11px; overflow: hidden; border-radius: 4px; background: #deedf0; }
.visitor-track i { display: block; height: 100%; border-radius: inherit; background: #75b9c3; }
.visitor-bars strong { min-width: 22px; color: #334d61; font-size: 12px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.visitor-empty { display: grid; place-items: center; min-height: 135px; color: #6a818b; font-size: 12px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: #5f7382; font-size: 11px; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 3px; background: #a5dee9; }
.legend i.stay { background: #f6d96d; }
.chart { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(4px,.7vw,13px); height: 279px; margin-top: 11px; padding: 20px 14px 30px 43px; }
.chart-grid { position: absolute; inset: 20px 14px 30px 43px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid div { position: relative; width: 100%; border-top: 1px solid #f1f6f7; }
.chart-grid span { position: absolute; right: calc(100% + 12px); top: -8px; color: #61747e; font-size: 10px; }
.chart-column { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-self: stretch; min-width: 0; max-width: 56px; }
.chart-bar { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; border-radius: 6px 6px 0 0; background: #f6d96d; }
.chart-bar > i { display: block; min-height: 0; background: #b6e5ee; }
.chart-date { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); color: #61747e; font-size: 10px; white-space: nowrap; }
.chart-column.pending .chart-date { color: #87969d; }
.chart-empty { position: absolute; inset: 50px 50px 55px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #5d7680; font-size: 12px; }
.chart-empty small { color: #5e757d; font-size: 11px; }
.recent-empty { padding: 33px 12px; color: #5f747d; font-size: 12px; text-align: center; }
.recent-empty > svg { margin: 0 auto; }
.recent-empty p { margin-top: 13px; }
.recent-table-wrap { overflow-x: auto; border-radius: 10px; }
.data-table.recent-table { min-width: 600px; table-layout: fixed; }
.data-table.recent-table th, .data-table.recent-table td { padding: 14px 9px; text-align: left; }
.recent-table th:nth-child(1) { width: 22%; }
.recent-table th:nth-child(2), .recent-table th:nth-child(3) { width: 9%; }
.recent-table th:nth-child(4) { width: 12%; }
.recent-table th:nth-child(5) { width: 31%; }
.recent-table th:nth-child(6) { width: 17%; }
.recent-table td { font-size: 11px; overflow-wrap: anywhere; }
.recent-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.recent-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.recent-rule summary { color: #426e79; cursor: pointer; line-height: 1.7; }
.recent-rule-detail { padding-top: 9px; }
.recent-rule-detail > div { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.recent-rule-detail strong, .recent-rule-detail span { display: block; }
.recent-rule-detail strong { font-weight: 550; color: #445065; }
.recent-rule-detail .cell-sub { white-space: normal; }
/* Local SVG country geometry; only the fills change with the report. */
.world-map { min-width: 0; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-legend { color: #637585; font-size: 10px; }
.map-legend > span { display: block; margin-bottom: 7px; color: #3c435c; font-size: 11px; }
.map-legend > div { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.map-legend strong { font-weight: 500; }
.map-zero { display: flex; align-items: center; gap: 5px; }
.map-zero i { width: 9px; height: 9px; background: #e9edf0; border-radius: 2px; }
.map-scale { width: clamp(52px,8vw,110px); height: 7px; border-radius: 4px; }
.map-controls { display: flex; gap: 4px; }
.map-controls button { width: 29px; height: 29px; border: 1px solid #e8edef; border-radius: 8px; font-size: 19px; font-weight: 400; }
.map-controls .map-reset { font-size: 20px; }
.map-controls button:disabled { opacity: .35; cursor: default; }
.map-stage { position: relative; margin-top: 22px; isolation: isolate; }
.world-map-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.world-map-svg.zoomed { cursor: grab; touch-action: none; }
.world-map-svg.zoomed:active { cursor: grabbing; }
.map-country { stroke: white; stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 240ms ease; }
.map-country:hover, .map-country:focus-visible, .map-country[aria-pressed="true"] { stroke: #5e578f; stroke-width: 1.2; outline: none; }
.map-tooltip { position: absolute; z-index: 2; max-width: calc(100% - 16px); padding: 10px 12px; border: 1px solid #e9ebf0; border-radius: 9px; background: rgba(255,255,255,.98); box-shadow: 0 5px 18px #24224514; pointer-events: none; color: #30354d; font-size: 11px; }
.map-tooltip strong, .map-tooltip span { display: block; }
.map-tooltip strong { font-weight: 550; }
.map-tooltip span { margin-top: 5px; color: #697889; font-variant-numeric: tabular-nums; }
.map-unmapped { margin-top: 12px; color: #6a7b85; font-size: 11px; }
.map-unmapped summary { cursor: pointer; }
.map-unmapped > div { display: flex; justify-content: space-between; max-width: 300px; gap: 15px; margin-top: 8px; }
.map-unmapped strong { font-weight: 500; }

.source-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e5eff0; }
.source-row:last-child { border: 0; }
.source-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #e7f5f6; color: #437981; }
.source-icon svg { width: 16px; height: 16px; }
.source-info { flex: 1; min-width: 0; }
.source-info strong { display: block; font-size: 12px; font-weight: 550; }
.source-info small { color: #537685; font-size: 11px; }
.source-footer { padding-top: 15px; color: #5d7682; font-size: 12px; line-height: 1.8; }
.source-footer a { color: #227d88; }

/* Tables, filter bars and forms share the same low-contrast surface system. */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.search { position: relative; flex: 1; min-width: 180px; max-width: 310px; }
.search svg { position: absolute; left: 12px; top: 12px; width: 15px; height: 15px; color: #5e7680; }
.search input { width: 100%; padding-left: 35px !important; }
.input, select, input:not([type=checkbox]):not([type=radio]), textarea { min-height: 38px; max-width: 100%; padding: 9px 11px; border: 1px solid #dde9eb; border-radius: 10px; background: #fff; color: #55676f; font-size: 12px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #61757e; }
select { min-width: 112px; cursor: pointer; }
textarea { width: 100%; min-height: 94px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--teal); flex-shrink: 0; }
input[type=date] { min-width: 128px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; min-height: 265px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.data-table th { padding: 14px 20px; border-bottom: 1px solid #e8f1f3; background: #fbfdfd; color: #5a7581; font-size: 11px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; }
.data-table td { padding: 18px 20px; border-bottom: 1px solid #ecf4f5; color: #5e747d; vertical-align: middle; }
.data-table tr:last-child td { border: 0; }
.data-table tbody tr:hover { background: #fcfdfe; }
.cell-title { overflow: hidden; max-width: 280px; margin-bottom: 3px; color: #445065; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.cell-sub { display: block; overflow: hidden; max-width: 290px; color: #5b7580; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.row-actions { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.row-actions .icon-button { width: 30px; height: 30px; }
.row-actions svg { width: 14px; height: 14px; }
.row-actions .danger:hover { background: #fff0f3; color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; background: #eff5f6; color: #557685; font-size: 11px; line-height: 1.25; white-space: nowrap; }
.pill.green { background: #e8f4f4; color: #527964; }
.pill.red { background: #fbeef1; color: #ad5668; }
.pill.amber { background: #fff7db; color: #8e6940; }
.pill.gray { background: #eff3f4; color: #65757c; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 60px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 7px; border-radius: 17px; background: #f3f7f8; color: #517788; }
.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { color: #557685; font-size: 14px; font-weight: 550; }
.empty-state p { max-width: 420px; color: #557683; font-size: 12px; line-height: 1.8; }
.empty-state .btn { margin-top: 8px; }
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination button { width: 28px; height: 27px; min-height: 0; padding: 0; }
.result-count, .table-selection { color: #5c7681; font-size: 11px; }
.table-selection { display: flex; align-items: center; gap: 10px; }
.log-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-label { color: #597682; font-size: 11px; }
.two-col, .form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.form-grid { gap: 17px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form-grid > .full { grid-column: 1/-1; }
.field label, .field-label { color: #5b7580; font-size: 11px; font-weight: 550; }
.field label span { margin-left: 3px; color: #557683; font-weight: 400; }
.field input:not([type=checkbox]):not([type=radio]), .field select { width: 100%; }
.help { color: #5b7681; font-size: 12px; line-height: 1.7; }
.form-divider { margin: 5px 0; border: 0; border-top: 1px solid #e5eff1; }
.form-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 1px; color: #567684; font-size: 12px; font-weight: 600; }
.check-label, .field label.check-label { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; max-width: 100%; color: #5b757f; font-size: 12px; font-weight: 400; line-height: 1.6; white-space: normal; cursor: pointer; }
.check-label input[type=checkbox], .field input[type=checkbox], .inline-check input[type=checkbox] { display: inline-block; width: 16px; min-width: 16px; max-width: 16px; height: 16px; min-height: 16px; max-height: 16px; flex: 0 0 16px; margin: 0; padding: 0; align-self: center; }
.check-label > span, .field label.check-label > span { flex: 1; min-width: 0; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.inline-check { display: flex; align-items: center; gap: 16px; padding: 7px 0; }
.inline-check .check-label { flex: 0 1 auto; }
.target-row, .target-labels { display: grid; grid-template-columns: minmax(100px,1fr) 70px 100px 30px; gap: 8px; }
.target-row { align-items: center; margin: 8px 0; }
.target-row select { min-width: 0; }
.target-labels { color: #567684; font-size: 11px; }
.dropdown-box { padding: 13px 15px; border: 1px solid #e2edef; border-radius: 11px; background: #fafcfd; }
.dropdown-box summary { color: #517786; font-size: 12px; cursor: pointer; }
.dropdown-box[open] summary { margin-bottom: 15px; }
.code { overflow: auto; max-height: 340px; padding: 16px; border: 1px solid #dce9eb; border-radius: 11px; background: #f7fafa; color: #537685; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; }

/* Dialogs, feedback and detailed views. */
dialog { width: min(650px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 0; border: 1px solid #eaf2f4; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 25px 100px #252e3e35; }
dialog::backdrop { background: #242c3b55; backdrop-filter: blur(3px); }
dialog.wide { width: min(860px,calc(100vw - 32px)); }
.modal-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 27px 20px; border-bottom: 1px solid #e8f1f3; background: #fff; }
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-header p { margin-top: 3px; color: #587683; font-size: 11px; }
.modal-body { padding: 24px 27px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 9px; padding: 17px 27px; border-top: 1px solid #e8f1f3; background: #fcfdfd; }
.modal-footer .footer-hint { align-self: center; margin-right: auto; color: #537684; font-size: 11px; }
.modal-error { margin: 15px 0 0; padding: 12px 14px; border: 1px solid #f0d5de; border-radius: 10px; background: #fff1f5; color: #a65875; font-size: 12px; }
.modal-error:empty { display: none; }
.notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e1edef; border-radius: 12px; background: #f4f8f9; color: #557683; font-size: 12px; line-height: 1.8; }
.notice strong { color: #567785; font-weight: 600; }
.notice.warning { border-color: #f0e0c4; background: #fff9ef; color: #826d4b; }
.notice a { text-decoration: underline; }
.error-banner { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 15px 18px; border: 1px solid #efd5db; border-radius: 12px; background: #fff5f7; color: #a15c76; font-size: 12px; }
.error-banner .btn { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px 20px; font-size: 12px; }
.detail-grid dt { color: #547684; }
.detail-grid dd { margin: 0; color: #587783; overflow-wrap: anywhere; }
.trace-list { margin: 18px 0 0; padding: 0; list-style: none; }
.trace-list li { position: relative; margin-left: 5px; padding: 0 0 18px 25px; border-left: 1px solid #dce9eb; color: #527786; font-size: 11px; }
.trace-list li::before { content: ""; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #acc4ce; }
.trace-list li:last-child { padding-bottom: 0; border-color: transparent; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 100px 20px; color: #517687; font-size: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid #ddeaed; border-top-color: #88a9b7; border-radius: 50%; animation: spin .8s linear infinite; }
.progress-note { margin-top: 12px; padding: 9px 12px; border-radius: 9px; background: #f0f6f7; color: #507686; font-size: 11px; }
.running-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #98b5c1; animation: pulse 1s infinite; }
#toasts { position: fixed; right: 26px; bottom: 26px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 440px; padding: 13px 17px; border: 1px solid #deebed; border-radius: 13px; background: #fff; color: #517685; font-size: 12px; box-shadow: 0 8px 26px #34405724; pointer-events: auto; animation: toastin .2s ease-out; }
.toast.error { border-color: #edcfdc; color: #a5587f; }
.toast svg { width: 17px; height: 17px; }
.toast button { margin-left: auto; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; margin: 20px 0; background: var(--line); }
.compact { padding: 15px 20px; }
.under-title { margin-top: 6px; color: #527788; font-size: 11px; }
.status-inline { color: #517687; font-size: 11px; }
.inline-link { padding: 0; border: 0; background: none; color: #517786; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.separator { color: #517686; }
.small-copy { color: #5a7682; font-size: 12px; line-height: 1.8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* finesse · login component · product · reference-led monochrome split card
 * geometric characters with restrained pointer feedback · scoped to authentication only */
.auth-screen { --auth-ink: #202125; --auth-muted: #717077; --auth-paper: #fdfcfd; --auth-art: #ebe9ec; display: grid; place-items: center; min-height: 100dvh; padding: clamp(18px, 5vw, 70px); background: var(--auth-ink); color: var(--auth-ink); }
.auth-card { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); width: min(100%, 1080px); min-height: min(730px, calc(100dvh - 100px)); padding: 8px; border: 1px solid #ffffff80; border-radius: 27px; background: var(--auth-art); box-shadow: 0 22px 70px #12111624; }
.auth-art { position: relative; display: flex; flex-direction: column; min-width: 0; justify-content: center; padding: 34px 30px; overflow: hidden; }
.auth-brand { position: absolute; top: 29px; left: 31px; display: flex; align-items: baseline; gap: 10px; font-size: 25px; font-weight: 720; letter-spacing: -1px; }
.auth-brand span { color: var(--auth-muted); font-size: 11px; font-weight: 450; letter-spacing: 0; }
.auth-characters { display: block; width: 100%; max-width: 490px; height: auto; align-self: center; margin-top: 28px; }
.auth-eye-open { transform-origin: 0 0; transition: transform .24s cubic-bezier(.22,.8,.3,1), opacity .16s; }
.auth-eye-lid { opacity: 0; transform: scaleX(.65); transform-origin: 0 0; transition: opacity .1s, transform .18s ease-out; }
.auth-eye [data-auth-pupil] { transition: transform .12s ease-out; }
.is-password-focused .auth-eye-open { transform: scaleY(0); opacity: 0; transition-duration: .16s, .14s; }
.is-password-focused .auth-eye-lid { opacity: 1; transform: scaleX(1); transition-delay: .08s; }
.auth-form-pane { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 45px clamp(28px, 4.7vw, 62px); border-radius: 20px; background: var(--auth-paper); }
.auth-form { width: 100%; max-width: 340px; padding: 10px 0; }
.auth-symbol { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-symbol svg { width: 37px; height: 37px; transform: rotate(-4deg); }
.auth-form h1 { min-width: 0; overflow-wrap: anywhere; font-size: 31px; font-weight: 670; line-height: 1.3; letter-spacing: -.9px; text-align: center; }
.auth-form > p { margin-top: 13px; color: var(--auth-muted); font-size: 12px; text-align: center; }
.auth-fields { display: grid; gap: 23px; margin-top: 35px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 4px; color: var(--auth-ink); font-size: 13px; font-weight: 550; }
.auth-form .auth-field input { width: 100%; min-width: 0; min-height: 45px; padding: 8px 0; border: 0; border-bottom: 1px solid #919095; border-radius: 0; background: transparent; color: var(--auth-ink); font-size: 14px; box-shadow: none; }
.auth-form .auth-field input::placeholder { color: #85838b; font-size: 12px; }
.auth-form .auth-field input:focus { border-color: var(--auth-ink); }
.auth-form .auth-field input:focus-visible { outline: 2px solid #7028ff; outline-offset: 5px; border-radius: 2px; }
.auth-password { position: relative; }
.auth-form .auth-password input { padding-right: 48px; }
.auth-password-toggle { position: absolute; top: 0; right: -8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--auth-ink); }
.auth-password-toggle:hover { background: #20212508; }
.auth-password-toggle:focus-visible, .auth-submit:focus-visible { outline: 3px solid #7028ff; outline-offset: 4px; }
.auth-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 126px; align-items: center; gap: 14px; }
.auth-captcha-visual { display: grid; place-items: center; min-width: 0; height: 46px; overflow: hidden; border: 1px solid #e7e3eb; border-radius: 5px; background: #f0edf3; }
.auth-captcha-visual img { display: block; width: 100%; height: 100%; object-fit: fill; }
.auth-captcha-placeholder { color: var(--auth-muted); font-size: 12px; }
.auth-captcha-refresh { display: block; min-height: 44px; margin-left: auto; padding: 4px 1px; border: 0; background: transparent; color: #615d69; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.auth-captcha-refresh:hover { color: var(--auth-ink); }
.auth-captcha-refresh:focus-visible { outline: 2px solid #7028ff; outline-offset: 2px; }
.auth-error { min-height: 48px; padding: 11px 0 8px; color: #a12c3d; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 11px 20px; border: 1px solid var(--auth-ink); border-radius: 28px; background: var(--auth-ink); color: var(--auth-paper); font-size: 14px; font-weight: 550; white-space: nowrap; transition: transform .15s, opacity .15s; }
.auth-submit:hover:not(:disabled) { opacity: .88; }
.auth-submit:active:not(:disabled) { transform: scale(.99); }
.auth-submit .spinner { width: 16px; height: 16px; }
.auth-foot { margin-top: 30px; color: var(--auth-muted); font-size: 11px; letter-spacing: .2px; text-align: center; }
@media (max-width: 820px) {
 .auth-screen { padding: 22px; }
 .auth-card { grid-template-columns: minmax(0, 1fr); width: min(100%, 500px); min-height: 0; }
 .auth-art { height: 175px; padding: 0 24px; }
 .auth-brand { top: 17px; left: 19px; font-size: 23px; }
 .auth-characters { width: 214px; margin: 0 0 -11px auto; }
 .auth-form-pane { padding: 29px 36px; }
 .auth-symbol { margin-bottom: 19px; }
 .auth-symbol svg { width: 29px; height: 29px; }
 .auth-form h1 { font-size: 28px; }
 .auth-fields { gap: 21px; margin-top: 28px; }
 .auth-foot { margin-top: 29px; }
}
@media (max-width: 420px) {
 .auth-screen { padding: 12px; }
 .auth-card { padding: 6px; border-radius: 22px; }
 .auth-art { height: 155px; }
 .auth-characters { width: 191px; margin-right: -12px; }
 .auth-brand { left: 15px; top: 13px; }
 .auth-form-pane { padding: 26px 22px; border-radius: 17px; }
 .auth-captcha-row { grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; }
 .auth-form .auth-field input { font-size: 16px; }
}

@media (min-width: 1650px) {
  :root { --rail-width: 242px; }
  .shell { padding: 48px 54px 30px; }
  .overview-columns { grid-template-columns: minmax(0,1fr) 320px; gap: 42px; }
  .chart { height: 300px; }
}
@media (max-width: 1200px) {
  :root { --rail-width: 216px; }
  .sidebar { padding-left: 15px; }
  .nav-link { padding-left: 20px; gap: 11px; }
  .shell { padding: 34px 28px 25px; }
  .stat { padding-inline: 17px; }
  .stat-value { font-size: 28px; }
  .overview-columns { grid-template-columns: minmax(0,1fr) 262px; gap: 25px; }
  .card-header { padding: 21px 20px 0; }
  .card-body { padding: 20px; }
  .data-table th, .data-table td { padding-inline: 16px; }
  .source-row { gap: 8px; flex-wrap: wrap; }
  .source-row .pill { margin-left: 40px; }
}
@media (max-width: 1020px) {
  :root { --rail-width: 205px; }
  .shell { padding-inline: 24px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .stat { padding: 16px 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #deebed; }
  .overview-columns { grid-template-columns: minmax(0,1fr); gap: 29px; }
  .overview-secondary { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 20px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 26px; }
  .page-heading > .actions { justify-content: flex-end; max-width: 270px; }
}
@media (max-width: 760px) {
  :root { --frame: 6px; }
  .workspace { padding-left: var(--frame); }
  .sidebar { width: 240px; padding: 25px 0 20px 17px; transform: translateX(-100%); transition: transform .2s ease; z-index: 60; }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .mobile-shade { position: fixed; inset: 0; z-index: 55; display: block; background: #173d4f55; }
  .sidebar-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 17px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #ffffff16; color: #fff; }
  .sidebar-close svg { width: 15px; height: 15px; }
  .sidebar .brand { padding-left: 10px; }
  .sidebar .nav-link { border-radius: 24px 0 0 24px; }
  .nav-indicator::before, .nav-indicator::after { display: none; }
  .shell { margin-left: 0; padding: 26px 20px 23px; border-radius: 22px 22px 0 0; }
  .page-title .mobile-toggle { display: inline-flex; width: 34px; height: 34px; border: 1px solid #d7e9eb; border-radius: 10px; background: #f4fafb; }
  .page-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading > .actions { max-width: none; justify-content: flex-start; }
  .page-heading > .actions:empty { display: none; }
  .overview-toolbar { margin-bottom: 20px; }
  .overview-toolbar .page-heading { flex-wrap: wrap; align-items: center; gap: 13px; }
  .overview-toolbar .page-heading > .actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 37px; width: 100%; gap: 7px; }
  .overview-toolbar select { min-width: 0; width: 100%; max-width: none; padding-inline: 9px; font-size: 11px; }
  .report-refresh { width: 37px; height: 37px; }
  .report-meta { gap: 6px 13px; font-size: 11px; }
  .stats { margin-bottom: 25px; border-radius: 13px; }
  .stat { padding: 15px 14px; }
  .stat-label { gap: 5px; font-size: 11px; }
  .stat-label svg { width: 15px; height: 15px; }
  .stat-value { font-size: 27px; }
  .stat-foot { font-size: 11px; }
  .trend-card { margin-bottom: 30px; }
  .overview-columns, .overview-primary, .overview-secondary { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .card-header { padding: 20px 18px 0; gap: 12px; }
  .card-header h2 { font-size: 15px; }
  .card-body { padding: 18px; }
  .trend-card .card-header { align-items: flex-start; flex-wrap: wrap; }
  .chart { height: 238px; gap: 4px; padding-left: 30px; }
  .chart-grid { left: 30px; }
  .chart-empty { inset: 50px 25px; text-align: center; }
  .chart-date { font-size: 9px; }
  .chart-date.wide-tick { display: none; }
  .legend { gap: 12px; font-size: 10px; }
  .toolbar { padding: 15px; gap: 8px; }
  .search { max-width: none; min-width: 150px; }
  .toolbar select { flex: 1; min-width: 100px; }
  .toolbar .grow { display: none; }
  .data-table { min-width: 680px; }
  .card-footer { flex-wrap: wrap; padding: 13px 15px; gap: 10px; }
  .footer-note { flex-wrap: wrap; padding-top: 23px; font-size: 10px; }
  .form-grid, .two-col { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .field.full { grid-column: auto; }
  .modal-header, .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-footer .footer-hint { display: none; }
  .target-row, .target-labels { grid-template-columns: minmax(65px,1fr) 45px 61px 25px; gap: 5px; }
  .target-row input { padding-inline: 5px !important; }
  .detail-grid { grid-template-columns: 85px minmax(0,1fr); gap: 12px; }
  .source-row { flex-wrap: nowrap; }
  .source-row .pill { margin-left: 0; }
  #toasts { left: 18px; right: 18px; bottom: 18px; }
  .toast { min-width: 0; max-width: none; }
  .log-filters { width: 100%; }
  .log-filters input { flex: 1; min-width: 90px !important; }
  .filter-label { display: none; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 16px; }
  .stat { padding-inline: 12px; }
  .stat-value { font-size: 25px; }
  .card-header, .card-body { padding-inline: 15px; }
  .card-header { flex-wrap: wrap; }
  .target-row, .target-labels { grid-template-columns: minmax(55px,1fr) 39px 53px 23px; gap: 4px; }
  .modal-header, .modal-body { padding: 17px; }
  .source-row { flex-wrap: wrap; }
  .source-row .pill { margin-left: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
