:root {
  color-scheme: dark;
  --bg:#101115; --rail:#141519; --surface:#191a20; --raised:#202128; --input:#191a20;
  --line:#303139; --thin:#292a31; --ink:#f0eff5; --muted:#acadb8; --quiet:#8d8f9e;
  --accent:#b4a0ff; --active:#30293e; --success:#67d7ab; --warning:#eebc75; --danger:#f09094;
  --button:#b5a0fc; --button-ink:#211932; --shadow:0 10px 45px #0004;
  --rail-width:208px; --radius:14px; --ease:cubic-bezier(.2,.8,.2,1);
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-size:16px;
}
:root[data-theme=light] {
  color-scheme:light; --bg:#f6f6fa; --rail:#fbfbfd; --surface:#fff; --raised:#f3f3f8; --input:#fcfcfe;
  --line:#dbdbe4; --thin:#e9e9ef; --ink:#242532; --muted:#5f616e; --quiet:#646775;
  --accent:#6c4fc1; --active:#efeafc; --success:#127954; --warning:#915b0d; --danger:#b14650;
  --button:#775ac1; --button-ink:white; --shadow:0 8px 35px #281f5014;
}
* {box-sizing:border-box}
body {margin:0; background:var(--bg);color:var(--ink);line-height:1.5}
button,input,select {font:inherit;color:inherit}
button,select,a {touch-action:manipulation}
button,select {cursor:pointer}
button {border:0;background:none}
button:disabled {opacity:.32;cursor:default}
a {text-decoration:none;color:inherit}
:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
[hidden] {display:none!important}
.icon-bank {position:absolute;width:0;height:0;overflow:hidden}
.icon {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon-btn {display:inline-grid;place-items:center;width:34px;height:34px;border-radius:7px;color:var(--muted)}
.icon-btn:hover:not(:disabled),.settings-link:hover,.nav-link:hover {background:var(--raised);color:var(--ink)}
.sidebar {width:var(--rail-width);position:fixed;inset:0 auto 0 0;border-right:1px solid var(--thin);background:var(--rail);display:flex;flex-direction:column;z-index:5}
.brand {height:76px;display:flex;align-items:center;gap:9px;padding:0 24px;font-size:19px;font-weight:680;white-space:nowrap}
.brand .icon {width:32px;height:32px;stroke:none}
.sidebar .brand {padding-inline:14px;font-size:16px}
.sidebar .brand .icon {width:27px;height:27px}
.sidebar nav {padding:16px 14px}
.nav-label {padding:0 12px 10px;font-size:12px;color:var(--quiet);letter-spacing:.1em}
.source-label {margin-top:28px;border-top:1px solid var(--thin);padding-top:24px}
.nav-link,.settings-link {display:flex;align-items:center;gap:13px;margin-bottom:5px;width:100%;padding:10px 13px;color:var(--muted);font-size:14px;font-weight:530;border-radius:8px}
.nav-link[aria-current=page] {background:var(--active);color:var(--accent)}
.nav-link[aria-current=page]::after {content:"";width:5px;height:5px;background:currentColor;border-radius:50%;margin-left:auto}
.side-footer {margin-top:auto;padding:16px 14px}
.profile {display:flex;align-items:center;gap:11px;padding:18px 6px 3px;margin-top:12px;border-top:1px solid var(--line)}
.avatar {width:35px;height:35px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:10px;color:var(--accent);background:var(--active)}
.profile b,.profile small {display:block}.profile b {font-size:14px;font-weight:550}.profile small {font-size:12px;color:var(--quiet)}
.shell {margin-left:var(--rail-width)}
.topbar {height:63px;padding:0 clamp(20px,2.7vw,46px);border-bottom:1px solid var(--thin);display:flex;align-items:center;justify-content:space-between}
.crumb,.top-actions,.search-button,.page-actions,.button,.control,.date-line,.panel-title,.panel-title h2,.demo-label,.legend,.section-heading,.table-controls,.table-footer,.page-foot,.settings-foot {display:flex;align-items:center}
.crumb {gap:12px;color:var(--quiet);font-size:13px}.crumb>.icon {width:12px}.crumb strong {color:var(--muted);font-weight:550}
.collapse {margin-left:-6px}
.top-actions {gap:12px}.top-divider {width:1px;height:19px;background:var(--line)}
.logout-button {gap:6px;height:34px;color:var(--muted)}.logout-button .icon {width:17px;height:17px}.logout-button:hover {color:var(--ink)}
.search-button {color:var(--muted);border:1px solid var(--line);background:var(--input);width:188px;gap:9px;padding:5px 8px 5px 12px;border-radius:8px;font-size:13px}.search-button .icon {width:15px}
kbd,.key-btn {font:12px system-ui;color:var(--quiet);border:1px solid var(--line);border-radius:4px;padding:1px 5px}.search-button kbd {margin-left:auto}
.mobile-settings {display:none}
.page {max-width:1740px;margin:auto;padding:27px clamp(20px,2.7vw,46px) 16px}
.page-intro {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}
.date-line {gap:8px;color:var(--quiet);font:550 12px/1.4 Inter,system-ui;letter-spacing:.05em}
.date-accent {width:17px;height:2px;border-radius:4px;background:var(--accent)}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(30px,2.45vw,42px);font-weight:650;letter-spacing:-.055em;margin:5px 0 2px}
.page-intro p {color:var(--muted);font-size:14px}
h2 {font-weight:620;font-size:16px;letter-spacing:-.025em}
.page-actions,.table-controls {gap:9px}
.button,.control {border:1px solid var(--line);border-radius:8px;background:var(--input);height:36px;gap:7px;padding:0 12px;font-size:14px;font-weight:500;justify-content:center}
.button:hover,.control:hover,.search-button:hover {border-color:var(--quiet)}
.refresh {border-color:transparent;background:var(--button);color:var(--button-ink);font-weight:650}
.button .icon,.control .icon {width:15px;height:15px}
.control {position:relative;padding:0;gap:0}
.control select {appearance:none;background:transparent;border:0;border-radius:inherit;width:100%;height:100%;padding:0 29px 0 12px}
.control select option,select option {background:var(--surface);color:var(--ink)}
.control>.icon:first-child:not(:last-child) {position:absolute;left:11px;pointer-events:none}
.control>.icon:first-child+select {padding-left:34px}
.control .icon:last-child {position:absolute;right:10px;width:12px;pointer-events:none;color:var(--muted)}
.control.compact {height:29px;font-size:13px;color:var(--muted)}
.section-heading,.panel-title,.table-footer,.settings-foot {justify-content:space-between}
.section-heading {margin-bottom:12px}
.demo-label {font-size:12px;color:var(--quiet);gap:6px}.demo-label i {width:6px;height:6px;background:var(--accent);border-radius:50%}
.cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.source-card,.panel {border:1px solid var(--line);background:var(--surface);border-radius:var(--radius)}
.source-card {position:relative;overflow:hidden;min-width:0;background:linear-gradient(123deg,color-mix(in srgb,var(--src) 7%,var(--surface)),var(--surface) 80%);padding:17px 18px 0}
.card-head,.source-link,.card-main,.card-footer,.attention-row,.detail-top,.command-row {display:flex;align-items:center}
.card-head {justify-content:space-between;gap:5px}.source-link {gap:9px;font-size:16px;font-weight:640;letter-spacing:-.025em}
.source-link[href]:hover {text-decoration:underline;text-underline-offset:4px}
.src-icon {display:inline-grid;place-items:center;height:32px;width:32px;color:var(--src);background:color-mix(in srgb,var(--src) 12%,transparent);border:1px solid color-mix(in srgb,var(--src) 23%,transparent);border-radius:9px}
.health,.status {display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.health {padding:2px 7px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:20px;color:var(--success);background:color-mix(in srgb,currentColor 6%,transparent)}
.health.stale {color:var(--warning)}.health::before {content:"";width:5px;height:5px;background:currentColor;border-radius:50%}
.health.ok::before {animation:breathe 3s infinite ease-in-out}
.card-main {justify-content:space-between;gap:7px;margin:18px 0 14px;min-height:61px}
.card-label,.stat-label {color:var(--muted);font-size:13px}
.card-number {margin-top:2px;font-size:clamp(29px,2.45vw,43px);line-height:1.18;font-weight:620;letter-spacing:-.055em;font-variant-numeric:tabular-nums;white-space:nowrap}
.card-number small {margin-left:5px;font-size:12px;font-weight:500;letter-spacing:0;color:var(--quiet)}
.spark {width:34%;max-width:150px;height:48px;color:var(--src);align-self:flex-end}
.card-footer {border-top:1px solid var(--thin);justify-content:space-between;gap:8px;padding:10px 0;font-size:12px;color:var(--quiet)}
.card-footer b {font-size:13px;color:var(--ink);margin-left:5px;font-weight:560;font-variant-numeric:tabular-nums}
.source-facts {grid-column:span 2;display:grid;grid-template-columns:repeat(2,1fr);padding:20px;align-items:center;gap:12px}
.source-facts h2,.source-facts p {grid-column:1/-1}.source-facts p {font-size:13px;color:var(--muted)}.source-facts strong {display:block;font-size:22px;font-weight:600}
.analysis-grid {display:grid;grid-template-columns:minmax(0,1.9fr) minmax(255px,1fr);gap:16px;margin:19px 0}
.panel {overflow:hidden;min-width:0}.panel-title {min-height:56px;padding:13px 18px;gap:10px}
.panel-title h2 {gap:9px}.panel-title h2>.icon {width:18px;color:var(--muted)}
.legend {padding:0 18px;min-height:24px;gap:16px}.legend span {display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.legend i {width:14px;height:3px;border-radius:2px}
#chart-wrap {position:relative;margin:8px 12px 9px 5px;height:172px}
#chart {height:100%;width:100%}
#chart-tooltip {position:absolute;pointer-events:none;z-index:2;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--surface);box-shadow:var(--shadow);font-size:12px}
#chart-tooltip b {display:block}.uplot .u-cursor-x {border-right-color:var(--quiet)}
.attention-panel .panel-title {border-bottom:1px solid var(--thin)}
.count {font:550 12px/1.6 ui-monospace,monospace;background:var(--raised);color:var(--muted);padding:1px 7px;border:1px solid var(--line);border-radius:6px}
#attention {padding:0 17px}
.attention-row {width:100%;padding:10px 0;gap:9px;text-align:left;border-bottom:1px solid var(--thin)}
.attention-row:last-child {border:0}.attention-row:hover .row-title {color:var(--accent)}
.signal {width:25px;height:25px;background:color-mix(in srgb,currentColor 9%,transparent);border-radius:7px;display:grid;place-items:center;flex:none}
.signal .icon {width:14px;height:14px}
.failed {color:var(--danger)}.warning {color:var(--warning)}.success {color:var(--success)}.running {color:var(--accent)}
.attention-text {min-width:0}.row-title {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550}.attention-meta {display:block;color:var(--quiet);font-size:12px}
.attention-row time {margin-left:auto;color:var(--quiet);font:12px ui-monospace,monospace;white-space:nowrap}
.table-scroll {overflow:auto;max-height:490px}table {border-collapse:separate;border-spacing:0;width:100%;white-space:nowrap;text-align:left;font-size:13px}
th {position:sticky;top:0;background:var(--raised);color:var(--muted);font-weight:500;font-size:12px}
th,td {padding:9px 12px;border-bottom:1px solid var(--thin)}th:first-child,td:first-child {padding-left:18px}
tbody tr[data-detail] {cursor:pointer}tbody tr[data-detail]:hover {background:var(--raised)}tbody tr:hover .table-id {color:var(--accent)}
.table-id,.table-time,.mono {font:13px/1.5 "SFMono-Regular",Consolas,monospace;font-variant-numeric:tabular-nums}
.table-time,td:last-child>.icon {color:var(--quiet)}td:last-child>.icon {width:13px}
.src-cell {display:inline-flex;align-items:center;gap:6px}.src-cell i {width:6px;height:6px;border-radius:2px;background:var(--src)}
.status {padding:2px 7px;border-radius:5px;background:color-mix(in srgb,currentColor 8%,transparent)}.status .icon {width:12px;height:12px}
.table-footer {padding:6px 16px;color:var(--quiet);font-size:12px}.table-footer>div {display:flex;gap:4px}
.reverse {transform:rotate(180deg)}
.page-foot {gap:6px;font-size:12px;color:var(--quiet);padding:14px 0}.page-foot .icon {width:13px}.page-foot span:last-child {margin-left:auto}
dialog {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:0;box-shadow:var(--shadow)}
dialog::backdrop {background:#080a116e;backdrop-filter:blur(4px)}
.drawer {height:100dvh;max-height:100dvh;margin:0 0 0 auto;width:min(450px,100%);max-width:100%;border-radius:16px 0 0 16px}
.drawer[open] {animation:slide .22s var(--ease)}#detail-body {padding:22px}.detail-top {justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px}
.detail-content {padding:24px 0}.detail-content h2 {font-size:23px;margin:14px 0 18px}.detail-content dl {margin:24px 0}.detail-content dl div,.settings>label {display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--thin);gap:10px;font-size:14px}
.detail-content dd {margin:0}.detail-content dt,.detail-content p {color:var(--muted)}
.command,.settings {width:min(520px,92vw)}
.command {margin:15vh auto auto}.command-input,.command-row {display:flex;align-items:center;gap:10px;padding:12px 16px}.command-input {border-bottom:1px solid var(--line)}.command-input input {background:none;border:0;outline:none;flex:1;min-width:0}
.command-results {max-height:51vh;overflow:auto;padding:5px}.command-row {width:100%;text-align:left;font-size:14px;border-radius:8px}.command-row small {margin-left:auto;color:var(--quiet)}.command-row:hover,.command-row:focus-visible {background:var(--raised)}
.settings {padding:7px 18px 18px}.settings .panel-title {padding:8px 0}.settings select {border:1px solid var(--line);border-radius:6px;background:var(--raised);padding:4px}.settings-foot {padding-top:18px;font-size:13px;color:var(--quiet)}
#toast {position:fixed;z-index:12;bottom:22px;left:50%;transform:translateX(-50%);border-radius:9px;background:var(--ink);color:var(--bg);font-size:14px}#toast:not(:empty) {padding:9px 16px}
#load-error,.notice {font-size:14px;color:var(--warning);padding:10px}.empty {padding:24px;text-align:center;color:var(--muted)}
.skeleton {height:150px;border-radius:12px;background:var(--raised);animation:breathe 1s infinite}
.login {
  min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:32px 24px;
  background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 63%) no-repeat,var(--bg);
}
.login-shell {width:min(1080px,100%)}
.login-layout {display:grid;grid-template-columns:minmax(0,1.08fr) minmax(332px,1fr);overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.login-top {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 26px;border-bottom:1px solid var(--line)}
.login-top .brand {height:auto;padding:0;font-size:20px}
.login-top .brand .icon {width:28px;height:28px}
.login-mode {color:var(--muted);padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:var(--raised);white-space:nowrap}
.login-overview {
  display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(30px,3.8vw,55px);
  border-right:1px solid var(--line);
  background:linear-gradient(153deg,color-mix(in srgb,var(--accent) 13%,var(--surface)),color-mix(in srgb,var(--accent) 3%,var(--bg)) 75%);
}
.login-overview-copy {container-type:inline-size}
.login-overview-copy::before {content:"";display:block;width:46px;height:2px;margin-bottom:17px;border-radius:2px;background:linear-gradient(90deg,var(--accent),transparent)}
.login-overview h2 {
  margin:0 0 9px;font-size:clamp(24px,3vw,42px);font-size:clamp(24px,9.35cqi,46px);
  line-height:1.21;letter-spacing:-.035em;font-weight:580;white-space:nowrap;
}
.login-title-mark {margin-inline-start:.16em;letter-spacing:-.048em;font-weight:730;color:var(--accent)}
@supports (background-clip:text) {
  .login-title-mark {background:linear-gradient(102deg,var(--ink) 0%,var(--accent) 94%);background-clip:text;color:transparent}
}
@media(forced-colors:active) {.login-title-mark {background:none;color:CanvasText}}
.login-overview p,.login-intro {color:var(--muted);font-size:14px}
.login-art {display:block;width:100%;height:auto;margin:24px 0 0;color:var(--accent)}
.login-art-grid {opacity:.4;mask-image:radial-gradient(ellipse at center,#000 23%,transparent 76%)}
.login-art-orbits {opacity:.25}.login-art-guide {opacity:.36}
.login-art-layer {fill:color-mix(in srgb,var(--accent) 10%,var(--surface));stroke-opacity:.5}
.login-art-layer.mid {fill:color-mix(in srgb,var(--accent) 19%,var(--surface));stroke-opacity:.64}
.login-art-layer.front {fill:color-mix(in srgb,var(--accent) 31%,var(--surface));stroke-opacity:.8}
.login-art-chip rect {fill:var(--surface);stroke:currentColor;stroke-opacity:.46}
.login-card {padding:clamp(30px,4.5vw,65px);align-self:center;min-width:0}
.login-card h1 {font-size:31px;line-height:1.25;letter-spacing:-.035em;margin:0 0 8px}
.login-form {margin-top:24px}.login-label {display:block;margin:14px 0 6px;font-size:13px;font-weight:550}
.login-field {display:flex;align-items:center;min-height:44px;gap:9px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--input)}
.login-field:focus-within {border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 23%,transparent)}
.login-field>.icon {width:16px;color:var(--quiet)}
.login-field input {border:0;outline:0;background:none;min-width:0;flex:1;padding:9px 0;font-size:16px}.login-field input::placeholder {color:var(--quiet);font-size:14px}
.login-text-button {color:var(--accent);font-size:13px;font-weight:550;padding:4px 3px;white-space:nowrap}.login-text-button:hover {text-decoration:underline;text-underline-offset:3px}
.login-submit {width:100%;height:44px;margin-top:18px}.login-submit:hover {filter:brightness(1.07)}
.login-error {display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--danger) 45%,transparent);border-radius:8px;color:var(--danger);background:color-mix(in srgb,var(--danger) 8%,var(--surface));font-size:13px}
.login-error .icon {width:16px;height:16px;margin-top:2px}
.login-demo {margin-top:20px;border:1px solid var(--thin);border-radius:9px;background:var(--raised);padding:9px 12px 11px;font-size:13px}
.login-demo-head,.login-demo dl,.login-demo dl>div {display:flex;align-items:center;gap:6px}.login-demo-head {justify-content:space-between;gap:4px;margin-bottom:4px;flex-wrap:wrap}
.login-demo dl {margin:0;gap:6px 15px;flex-wrap:wrap}.login-demo dt {color:var(--muted)}.login-demo dd {margin:0}.login-demo code {font-size:12px;color:var(--ink)}
.login-footer {text-align:center;color:var(--quiet);font-size:12px;margin-top:18px}
@media(max-width:760px) {
  .login-shell {width:min(440px,100%)}.login-layout {grid-template-columns:minmax(0,1fr)}.login-overview {display:none}
  .login-top {padding:14px 22px}.login-card {padding:25px 22px 27px}
}
@media(max-width:400px) {.login {padding:20px 14px}.login-top {padding:13px 18px}.login-card {padding-inline:18px}}
.cards .source-card {animation:appear .22s var(--ease) backwards}.cards .source-card:nth-child(2) {animation-delay:40ms}.cards .source-card:nth-child(3) {animation-delay:80ms}
@keyframes appear {from {opacity:0;transform:translateY(5px)}}@keyframes breathe {50% {opacity:.5}}@keyframes slide {from {opacity:0;transform:translateX(28px)}}
@media(min-width:901px) {
  :root[data-compact=on] {--rail-width:66px}
  [data-compact=on] .brand {padding:0;justify-content:center}
  [data-compact=on] .sidebar nav,[data-compact=on] .side-footer {padding:12px 7px}
  [data-compact=on] .brand>span,[data-compact=on] .nav-link span,[data-compact=on] .nav-label,[data-compact=on] .nav-link::after,[data-compact=on] .settings-link span,[data-compact=on] .profile div {display:none}
  [data-compact=on] .nav-link,[data-compact=on] .settings-link,[data-compact=on] .profile {justify-content:center}
}
@media(max-width:1150px) and (min-width:901px) {
  :root {--rail-width:170px}.source-card {padding:14px 12px 0}.analysis-grid {grid-template-columns:minmax(0,1.6fr) minmax(235px,1fr)}
  .sidebar .brand {padding-inline:10px;gap:7px;font-size:14px}.sidebar .brand .icon {width:24px;height:24px}
}
@media(max-width:900px) {
  :root {--rail-width:67px}.sidebar nav,.side-footer {padding:12px 7px}.sidebar .brand,.nav-link,.profile,.settings-link {justify-content:center}
  .sidebar .brand {padding:0}.sidebar .brand>span,.nav-link span,.nav-label,.nav-link::after,.settings-link span,.profile div,.collapse {display:none!important}
  .cards {gap:9px}.source-card {padding:13px 12px 0}.card-footer {flex-wrap:wrap;gap:3px}.analysis-grid {grid-template-columns:minmax(0,1.6fr) minmax(215px,1fr);gap:12px}.spark {width:30%}
}
@media(max-width:680px) {
  .sidebar {width:100%;height:61px;inset:auto 0 0;border:0;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box}
  .sidebar nav {display:flex;justify-content:space-around;padding:3px}.sidebar .brand,.side-footer {display:none}.sidebar .nav-link {margin:0;gap:2px;border-radius:8px;flex-direction:column;padding:5px 2px}
  .sidebar .nav-link span {display:block!important;font-size:12px}.shell {margin:0;padding-bottom:calc(65px + env(safe-area-inset-bottom))}
  .topbar {height:48px;padding:0 16px}.search-button {width:32px;height:32px;padding:0;justify-content:center;border:0;background:transparent}.search-button span,.search-button kbd,.top-divider {display:none}.top-actions {gap:2px}.mobile-settings {display:grid}
  .logout-button {width:34px;padding:0;border:0;background:none}.logout-button span {display:none}
  .page {padding:18px 14px}.page-intro {flex-wrap:wrap;align-items:flex-start;gap:12px;margin-bottom:20px}.page-intro p {font-size:13px}
  .cards,.analysis-grid {grid-template-columns:1fr}.source-card {padding:14px 15px 0}.card-main {margin:8px 0;min-height:50px}.card-footer {padding:7px 0}.spark {width:40%}.source-facts {grid-column:auto}
  .analysis-grid {margin:14px 0}.panel-title {padding:12px}.table-panel .panel-title {flex-wrap:wrap}.drawer {border-radius:0}.page-foot {flex-wrap:wrap}.page-foot span:last-child {display:none}
  #toast {bottom:78px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important}}
[data-motion=off] *,[data-motion=off] *::before {animation:none!important;transition:none!important}
#top-updated {color:var(--quiet);font-size:12px;font-variant-numeric:tabular-nums}
.source-facts {display:flex;flex-direction:column;align-items:stretch;justify-content:space-between}
.facts-head,.fact-grid {display:flex;align-items:center;justify-content:space-between;gap:10px}
.facts-head>span {font-size:12px;color:var(--quiet)}
.fact-grid {align-items:start;flex-wrap:wrap}.fact-grid>div {flex:1;min-width:75px}
.fact-grid strong {font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.fact-grid small {font-size:12px;color:var(--quiet);font-weight:400;margin-left:4px}
.source-facts p {display:flex;align-items:center;gap:6px;border-top:1px solid var(--thin);padding-top:9px}
.source-facts p.warning {color:var(--warning)}.source-facts p .icon {width:14px;height:14px}
@media(max-width:900px) {#top-updated {display:none}.fact-grid {display:grid;grid-template-columns:repeat(2,1fr)}}

.ubpc-page {--ubpc-blue:#82baff;--hour-plan:#656775;--hour-future:#525462;--hour-success:#51a98b}
[data-theme=light] .ubpc-page {--ubpc-blue:#315dbd;--hour-plan:#a6a8b6;--hour-future:#c7c8d2;--hour-success:#398869}
.ubpc-control-strip {display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;padding:11px 15px;margin-bottom:16px;background:linear-gradient(100deg,color-mix(in srgb,var(--accent) 5%,var(--surface)),var(--surface) 65%)}
.ubpc-control-main {display:flex;align-items:center;gap:11px;min-width:0}
.ubpc-control-main h2 {font-size:14px}.ubpc-control-main p {font-size:12px;color:var(--quiet)}
.ubpc-control-icon {display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:9px;color:var(--accent);background:var(--active)}
.ubpc-control-icon .icon {width:17px;height:17px}
.ubpc-control-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
.ubpc-control-actions .button {height:32px;font-size:12px}
.ubpc-import {color:var(--accent);background:var(--active);border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}
.ubpc-import .icon {width:13px;height:13px}
.ubpc-import-drawer {width:min(620px,100vw);overflow:hidden}
.ubpc-import-drawer[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.ubpc-import-header {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:21px 23px 17px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--surface) 70%)}
.ubpc-import-header .demo-label {color:var(--accent);letter-spacing:.06em}
.ubpc-import-header h2 {margin:5px 0 3px;font-size:26px;line-height:1.35}
.ubpc-import-header p,.ubpc-import-footer p {color:var(--muted);font-size:13px}
.ubpc-import-body {overflow:auto;overscroll-behavior:contain;padding:21px 23px;min-height:0}
.ubpc-import-step {display:flex;align-items:center;gap:8px;margin-bottom:10px}
.ubpc-import-step span {padding:2px 5px;border-radius:4px;color:var(--accent);background:var(--active);font:600 11px/1.5 ui-monospace,monospace}
.ubpc-import-step h3 {font-size:15px;font-weight:620}
.ubpc-import-drop {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 12px;border:1px dashed color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--accent) 5%,var(--input))}
.ubpc-import-drop.is-over {border-color:var(--accent);background:var(--active)}
.ubpc-import-upload-icon {display:grid;place-items:center;width:38px;height:38px;border-radius:9px;color:var(--accent);background:var(--active)}
.ubpc-import-file {min-width:0;font-size:13px}
.ubpc-import-file strong {display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ubpc-import-file p,.ubpc-import-filefoot,.ubpc-import-preview-head {color:var(--quiet);font-size:12px}
.ubpc-import-drop .button {font-size:12px;white-space:nowrap}
.ubpc-import-filefoot,.ubpc-import-preview-head {display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-top:6px}
.ubpc-import-feedback:not([hidden]) {margin-top:10px;padding:8px 10px;border:1px solid color-mix(in srgb,currentColor 28%,var(--line));border-radius:7px;color:var(--muted);font-size:13px}
.ubpc-import-feedback[data-tone=error]:not([hidden]) {color:var(--danger);background:color-mix(in srgb,var(--danger) 6%,var(--surface))}
.ubpc-import-feedback[data-tone=success]:not([hidden]) {color:var(--success);background:color-mix(in srgb,var(--success) 6%,var(--surface))}
.ubpc-import-preview {margin-top:21px;padding-top:17px;border-top:1px solid var(--thin)}
.ubpc-import-placeholder {padding:13px 11px;border:1px solid var(--thin);border-radius:8px;background:var(--rail);color:var(--quiet);font-size:13px}
.ubpc-import-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px}
.ubpc-import-stats>div {padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:var(--rail)}
.ubpc-import-stats dt {color:var(--muted);font-size:11px;white-space:nowrap}
.ubpc-import-stats dd {margin:3px 0 0;font-size:20px;font-weight:630;line-height:1.15;font-variant-numeric:tabular-nums}
.ubpc-import-stats [data-import-count=valid] {color:var(--success)}.ubpc-import-stats [data-import-count=duplicate] {color:var(--warning)}.ubpc-import-stats [data-import-count=invalid] {color:var(--danger)}
.ubpc-import-table {margin-top:6px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.ubpc-import-table td,.ubpc-import-table th {max-width:220px;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:7px 9px}
.ubpc-import-table tr:last-child td {border-bottom:0}
.ubpc-import-issues {margin-top:10px;color:var(--muted);font-size:12px}
.ubpc-import-issues summary {cursor:pointer;color:var(--accent);padding:4px 0}
.ubpc-import-issues ul {padding-left:17px;margin:5px 0 0}.ubpc-import-issues li {padding:2px 0}
.ubpc-import-footer {display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 23px max(11px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--rail)}
.ubpc-import-footer .page-actions {margin-left:auto}
.ubpc-switch {display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;white-space:nowrap;background:var(--input);color:var(--muted);font-size:12px;font-weight:570}
.ubpc-switch:hover {border-color:var(--quiet)}
.ubpc-switch i {position:relative;display:block;width:25px;height:14px;border-radius:99px;background:var(--quiet)}
.ubpc-switch i::after {content:"";position:absolute;inset:2px auto auto 2px;width:10px;height:10px;border-radius:50%;background:var(--bg);transition:transform .17s var(--ease)}
.ubpc-switch[aria-checked=true] {color:var(--success)}.ubpc-switch[aria-checked=true] i {background:var(--success)}.ubpc-switch[aria-checked=true] i::after {transform:translateX(11px)}
.ubpc-settings-dialog {width:min(680px,calc(100% - 28px));max-width:none}
.ubpc-settings-dialog>.panel-title {align-items:flex-start;padding:15px 17px;border-bottom:1px solid var(--thin)}
.ubpc-settings-dialog .panel-title p,.ubpc-settings-grid p {margin-top:4px;color:var(--muted);font-size:12px}
.ubpc-settings-form {padding:16px 17px}
.ubpc-settings-grid {display:grid;grid-template-columns:1.3fr 1fr;gap:12px}
.ubpc-settings-grid fieldset {display:flex;flex-direction:column;min-width:0;margin:0;padding:11px 12px 13px;border:1px solid var(--line);border-radius:10px;background:var(--rail)}
.ubpc-settings-grid legend {padding:0 5px;font-size:14px;font-weight:620}
.ubpc-setting-check {display:flex;align-items:center;gap:5px;margin-top:10px;font-size:13px;color:var(--ink)}
.ubpc-setting-check input {accent-color:var(--accent)}
.ubpc-settings-inputs {display:flex;gap:9px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.ubpc-settings-inputs label {display:grid;gap:5px;color:var(--muted);font-size:12px;flex:1;min-width:112px}
.ubpc-settings-inputs input,.ubpc-settings-inputs select {min-width:0;width:100%;height:36px;border:1px solid var(--line);border-radius:7px;padding:0 8px;background:var(--input);font-size:14px;color:var(--ink)}
.ubpc-settings-foot {display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:15px}
.ubpc-delivery-panel {margin-bottom:16px}
.ubpc-comparisons {margin:16px 0}
.ubpc-comparisons .panel-title {flex-wrap:wrap}
.ubpc-comparisons input[type=date] {background:transparent;color:inherit;border:0;font:inherit;max-width:100%}
.ubpc-comparisons td small,.comparison-vehicle small {display:block;color:var(--muted);font-size:12px}
.ubpc-comparisons td small {max-width:22em;overflow:hidden;text-overflow:ellipsis}
.ubpc-comparisons dl small,.comparison-scope,.ubpc-rank-scope {color:var(--muted);font-size:12px}
.ubpc-comparisons dl small {display:block;margin-top:5px}
.comparison-scope,.ubpc-rank-scope {padding:0 18px 8px}
.comparison-list-title {border-top:1px solid var(--thin)}
.comparison-detail {overflow-wrap:anywhere}
.comparison-detail h3 {margin:22px 0 6px}
.comparison-detail p {margin:6px 0;font-size:13px}
.comparison-vehicle {border-top:1px solid var(--thin);padding:9px 0;font-size:13px}
.comparison-vehicle summary {cursor:pointer}
.comparison-vehicle small {margin-left:1em}
.ubpc-delivery-panel>.panel-title {border-bottom:1px solid var(--thin)}
.ubpc-delivery-facts>div {border-left:1px solid var(--thin);padding-left:12px}
.ubpc-delivery-facts>div:first-child {border-left:0;padding-left:0}
.ubpc-window-wrap {padding:0 17px 8px}
.ubpc-window-head,.ubpc-receipts-tools {display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--quiet)}
.ubpc-window-head {padding:9px 0 5px;border-top:1px solid var(--thin)}
.ubpc-window-head h3 {font-size:13px;color:var(--muted);font-weight:600}
.ubpc-window-head>span {display:inline-flex;align-items:center;gap:5px}.ubpc-window-head .icon {width:13px;height:13px;color:var(--accent)}
.ubpc-window-list {list-style:none;padding:0;margin:0}
.ubpc-window-list li + li {border-top:1px solid var(--thin)}
.ubpc-window-row {width:100%;display:grid;grid-template-columns:minmax(97px,.6fr) minmax(0,1fr) auto 14px;align-items:center;gap:3px 12px;text-align:left;padding:8px 6px;border-radius:6px;font-size:13px}
.ubpc-window-row:hover {background:var(--raised)}.ubpc-window-row:focus-visible {outline-offset:-2px}
.ubpc-window-time {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ubpc-window-time strong {font-weight:620}.ubpc-window-time small {color:var(--quiet);font-size:11px}
.ubpc-window-count {display:flex;flex-wrap:wrap;gap:0 9px;color:var(--muted);font-size:12px}
.ubpc-window-count span {white-space:nowrap}.ubpc-window-count b {font-weight:580;color:var(--ink);font-variant-numeric:tabular-nums}
.ubpc-window-arrow {width:13px;height:13px;color:var(--quiet)}
.ubpc-window-reason {grid-column:2/-1;color:var(--warning);font-size:12px}[data-window-tone=failed] .ubpc-window-reason {color:var(--danger)}
.ubpc-receipts-drawer {width:min(550px,100vw);overflow:hidden}
.ubpc-receipts-drawer[open] {display:grid;grid-template-rows:auto minmax(0,1fr)}
.ubpc-receipts-header {border-bottom:1px solid var(--thin);padding:15px 17px}
.ubpc-receipts-header p {margin-top:4px;color:var(--quiet);font-size:12px}
.ubpc-receipts-body {min-height:0;overflow:auto;padding:10px 16px 16px}
.ubpc-receipts-body[data-receipt-list-view] {display:flex;flex-direction:column;overflow:hidden}
.ubpc-receipts-tools {flex:none;padding:4px 0 9px;border-bottom:1px solid var(--thin)}
.ubpc-receipts-scroll {min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain}
.ubpc-receipts-day h3 {display:flex;align-items:center;gap:7px;margin:9px 0 3px;padding:5px 6px;border-radius:6px;background:var(--rail);font-size:12px;font-weight:620;font-variant-numeric:tabular-nums}
.ubpc-receipts-day h3 span {padding:0 5px;border-radius:4px;background:var(--active);color:var(--accent);font-size:11px}
.ubpc-receipts-footer {flex:none;margin-top:7px;padding:6px 0 0;border-top:1px solid var(--line)}
.ubpc-activity-list-view {display:flex;flex-direction:column;overflow:hidden}
.ubpc-activity-list {min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain}
.ubpc-activity-row {display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;padding:9px 6px;border-radius:6px;text-align:left}
.ubpc-activity-row:hover {background:var(--raised)}.ubpc-activity-row:focus-visible {outline-offset:-2px}
.ubpc-activity-description strong,.ubpc-activity-description small {display:block;overflow-wrap:anywhere}
.ubpc-activity-description strong {font-size:13px;font-weight:600}.ubpc-activity-description small {font-size:12px;color:var(--quiet);font-variant-numeric:tabular-nums}
.ubpc-activity-list .empty .ubpc-link {margin-left:7px}
.ubpc-hour-summary {display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:6px;padding:7px 0 10px;border-bottom:1px solid var(--thin);font-size:12px}
.ubpc-hour-summary span {padding:3px 7px;border-radius:6px;background:var(--raised);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ubpc-hour-summary b {font-weight:650}.ubpc-hour-summary .ubpc-hour-summary-total {color:var(--ink)}
.ubpc-hour-summary .ubpc-hour-summary-failed {color:var(--danger)}.ubpc-hour-summary .ubpc-hour-summary-running {color:var(--accent)}
.ubpc-activity-row[data-hour-status] {row-gap:2px}
.ubpc-activity-row .status.pending {color:var(--muted)}
.ubpc-hour-row-assignment,.ubpc-hour-row-note {grid-column:1/-1;font-size:12px;color:var(--quiet);overflow-wrap:anywhere}
.ubpc-hour-row-note {color:var(--muted)}.ubpc-activity-row[data-hour-status=failed] .ubpc-hour-row-note {color:var(--danger)}
.ubpc-section-head>div {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.ubpc-section-head>div>span {font-size:12px;color:var(--quiet)}
.ubpc-section-head .demo-label {white-space:nowrap}
.ubpc-kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ubpc-kpi {--kpi-tone:var(--accent);container-type:inline-size;padding:14px 16px 12px;background:linear-gradient(125deg,color-mix(in srgb,var(--kpi-tone) 8%,var(--surface)),var(--surface) 75%)}
.ubpc-kpi[data-tone=blue] {--kpi-tone:var(--ubpc-blue)}
.ubpc-kpi[data-tone=green] {--kpi-tone:var(--success)}
.ubpc-kpi[data-tone=amber] {--kpi-tone:var(--warning)}
.ubpc-kpi-top {display:flex;justify-content:space-between;align-items:center;gap:7px;color:var(--muted);font-size:13px;font-weight:550}
.ubpc-icon {width:29px;height:29px;display:grid;place-items:center;flex:none;border-radius:8px;color:var(--kpi-tone);background:color-mix(in srgb,var(--kpi-tone) 12%,var(--surface))}
.ubpc-icon .icon {width:16px;height:16px}
.ubpc-kpi-value {margin:8px 0 4px;color:color-mix(in srgb,var(--kpi-tone) 88%,var(--ink));font-size:clamp(26px,2.6vw,39px);font-weight:660;line-height:1.14;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.ubpc-kpi-unit {color:var(--muted);font-size:.49em;font-weight:550;letter-spacing:0;white-space:nowrap}
.ubpc-kpi-note {border-top:1px solid var(--thin);padding-top:8px;margin-top:8px;color:var(--quiet);font-size:12px}
.ubpc-runtime {margin-top:17px}
.ubpc-pool-value {display:flex;align-items:baseline;gap:clamp(1px,1.25cqi,4px);font-size:clamp(12px,8.5cqi,26px);white-space:nowrap;min-height:1.34em;margin-top:12px}
.ubpc-pool-value i {color:var(--quiet);font-style:normal;font-weight:380}
.ubpc-pool-value [data-ubpc-field=available] {color:color-mix(in srgb,var(--success) 88%,var(--ink))}
.ubpc-pool-value [data-ubpc-field=verification] {color:color-mix(in srgb,var(--warning) 88%,var(--ink))}
.ubpc-pool-value [data-ubpc-field=total] {color:var(--ink)}
.ubpc-hourly {margin:16px 0}
.ubpc-hourly-header,.ubpc-hourly-meta {display:flex;align-items:center;justify-content:space-between;gap:10px 15px;flex-wrap:wrap;padding:14px 17px}
.ubpc-hourly-header {border-bottom:1px solid var(--thin)}
.ubpc-hourly-header h2 {display:flex;align-items:center;gap:8px}.ubpc-hourly-header h2 .icon {width:17px;color:var(--accent)}
.ubpc-hourly-header p,.ubpc-hourly-meta,.ubpc-hourly-hint {font-size:12px;color:var(--quiet)}
.ubpc-hourly-header p {margin-top:4px}
.ubpc-hourly-nav {display:flex;align-items:center;gap:5px}
.ubpc-hourly-nav .button,.ubpc-hourly-nav .icon-btn {height:30px}.ubpc-hourly-nav .button {font-size:12px}.ubpc-hourly-nav .icon-btn {width:28px}
.ubpc-hourly-meta {padding-bottom:7px;font-variant-numeric:tabular-nums}
.ubpc-hourly-legend {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;list-style:none;padding:0;margin:0;color:var(--muted)}
.ubpc-hourly-legend li {display:flex;align-items:center;gap:6px;white-space:nowrap}
.ubpc-hourly-legend i {width:12px;height:8px;border-radius:2px;background:var(--hour-plan)}
.ubpc-hourly-legend i[data-series=success] {background:var(--hour-success)}
.ubpc-hourly-legend i[data-series=rate],.ubpc-hourly-legend i[data-series=threshold] {height:0;width:14px;border-top:2px solid var(--ubpc-blue);border-radius:0;background:none}
.ubpc-hourly-legend i[data-series=threshold] {border-top:2px dashed var(--warning)}
.ubpc-hourly-surface {position:relative;height:clamp(232px,25vw,318px);margin:0 9px;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;border-radius:5px}
.ubpc-hourly-surface.is-dragging {cursor:grabbing}
.ubpc-hourly-canvas,.ubpc-hourly-svg {display:block;height:100%;width:100%}
.ubpc-hourly-canvas .skeleton {height:calc(100% - 30px);margin:15px 35px}
.ubpc-hourly-svg {font:11px system-ui;fill:var(--quiet);font-variant-numeric:tabular-nums;pointer-events:none}
.ubpc-hourly-svg [data-day-tone=today] {--day-tone:var(--accent)}
.ubpc-hourly-svg [data-day-tone=sky] {--day-tone:#8ebcfa}
.ubpc-hourly-svg [data-day-tone=mint] {--day-tone:#76c7ad}
.ubpc-hourly-svg [data-day-tone=amber] {--day-tone:#e5b581}
.ubpc-hourly-svg [data-day-tone=rose] {--day-tone:#e4a8cd}
[data-theme=light] .ubpc-hourly-svg [data-day-tone=sky] {--day-tone:#3568a1}
[data-theme=light] .ubpc-hourly-svg [data-day-tone=mint] {--day-tone:#277859}
[data-theme=light] .ubpc-hourly-svg [data-day-tone=amber] {--day-tone:#96591e}
[data-theme=light] .ubpc-hourly-svg [data-day-tone=rose] {--day-tone:#904976}
.ubpc-hourly-svg .hourly-day-band {fill:var(--day-tone);opacity:.07}
.ubpc-hourly-svg [data-day-tone=today] .hourly-day-band {opacity:.11}
.ubpc-hourly-svg .hourly-day-rule {stroke:var(--day-tone);stroke-width:2;stroke-linecap:round;opacity:.43}
.ubpc-hourly-svg .hourly-day-pill {fill:var(--day-tone);opacity:.13}
.ubpc-hourly-svg .hourly-day {fill:var(--day-tone);font-weight:620}
.ubpc-hourly-svg .hourly-future {fill:var(--quiet);opacity:.05}
.ubpc-hourly-svg .hourly-current {fill:var(--warning);opacity:.21}
.ubpc-hourly-svg .hourly-current-pill {fill:var(--warning);opacity:.16}
.ubpc-hourly-svg .hourly-current-tick {fill:var(--warning);font-weight:700}
.ubpc-hourly-svg .hourly-grid,.ubpc-hourly-svg .hourly-day-divider {fill:none;stroke:var(--line);stroke-dasharray:3 4}
.ubpc-hourly-svg .hourly-day-divider {stroke:var(--quiet);opacity:.45}
.ubpc-hourly-svg .hourly-bar-planned {fill:var(--hour-plan)}
.ubpc-hourly-svg .hourly-bar-future {fill:var(--hour-future)}
.ubpc-hourly-svg .hourly-bar-success {fill:var(--hour-success)}
.ubpc-hourly-svg .hourly-axis-rate {fill:var(--ubpc-blue)}
.ubpc-hourly-svg .hourly-rate-line {stroke:var(--ubpc-blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.ubpc-hourly-svg .hourly-threshold {fill:none;stroke:var(--warning);stroke-dasharray:5 5;opacity:.75}
.ubpc-hourly-svg .hourly-selection {fill:none;stroke:var(--ink);stroke-width:.8;opacity:.68}
.ubpc-hourly-svg .hourly-rate-marker {fill:var(--ubpc-blue);stroke:var(--surface);stroke-width:1.6}
.ubpc-hourly-svg .hourly-crosshair {stroke:var(--quiet);stroke-dasharray:3 3}
.ubpc-hourly-tooltip {position:absolute;top:26px;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font-size:12px}
.ubpc-hourly-hint {padding:2px 17px 11px}
.ubpc-hourly-details {padding:11px 17px 14px;border-top:1px solid var(--thin);background:var(--rail);display:flex;align-items:center;gap:12px 28px;flex-wrap:wrap}
.ubpc-hourly-selected {display:grid;gap:3px;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ubpc-hourly-selected span {font-size:12px;color:var(--quiet)}
.ubpc-hourly-details dl {display:flex;flex-wrap:wrap;gap:9px clamp(14px,3vw,34px);margin:0}
.ubpc-hourly-details dt {font-size:11px;color:var(--quiet)}
.ubpc-hourly-details dd {margin:1px 0 0;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.ubpc-hourly-details dd[data-status=ok] {color:var(--success)}.ubpc-hourly-details dd[data-status=warn] {color:var(--warning)}.ubpc-hourly-details dd[data-status=low] {color:var(--danger)}
.ubpc-hourly-incomplete {height:29px;padding-inline:8px;color:var(--accent);font-size:12px;white-space:nowrap}
.ubpc-hourly-incomplete .icon {width:13px;height:13px}
.ubpc-errors {display:flex;flex-direction:column;align-items:stretch}
.ubpc-errors .panel-title,.ubpc-domain .panel-title {border-bottom:1px solid var(--thin)}
.ubpc-ranks {list-style:none;margin:0;padding:3px 16px;flex:1}
.ubpc-ranks li {display:grid;grid-template-columns:20px minmax(0,1.35fr) minmax(26px,.7fr) auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--thin);font-size:13px}
.ubpc-ranks li:last-child {border:0}
.ubpc-rank {font:12px ui-monospace,monospace;color:var(--quiet)}
.ubpc-rank-label {min-width:0;overflow-wrap:anywhere}
.ubpc-rank-meter {display:block;height:4px;border-radius:99px;background:var(--raised);overflow:hidden}
.ubpc-rank-meter i {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--warning) 56%,var(--active)),var(--warning))}
.ubpc-ranks b {min-width:30px;text-align:right;font-variant-numeric:tabular-nums}
.ubpc-ranks small {color:var(--quiet);font-size:11px;font-weight:400}
.ubpc-ranks .ubpc-no-ranks {display:block;color:var(--quiet);text-align:center;padding:23px 0}
.ubpc-link {display:inline-flex;align-items:center;gap:2px;padding:4px 0;color:var(--accent);white-space:nowrap;font-size:12px;font-weight:560}
.ubpc-link:hover {text-decoration:underline;text-underline-offset:3px}
.ubpc-link .icon {height:13px;width:13px}
.ubpc-errors>.ubpc-link {align-self:flex-end;margin:4px 16px 10px}
.ubpc-operations {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.ubpc-keepalive {display:flex;flex-direction:column}
.ubpc-keepalive-body {display:flex;flex:1;min-width:0;flex-direction:column;padding:13px 17px 0}
.ubpc-keepalive-focus {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}
.ubpc-keepalive-focus>div {min-width:0}.ubpc-keepalive-focus>div>span {display:block;margin-bottom:3px;font-size:12px;color:var(--muted)}
.ubpc-keepalive-focus strong {display:block;font-size:clamp(19px,1.8vw,26px);font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums}
.ubpc-keepalive-focus small {color:var(--quiet);font-size:12px;font-weight:400}
.ubpc-keepalive-link {gap:3px;flex:none;height:29px;padding:0 6px 0 8px;color:var(--accent);font-size:12px}.ubpc-keepalive-link .icon {width:12px;height:12px}
.ubpc-keepalive-progress {padding:12px 0 10px}
.ubpc-keepalive-line,.ubpc-keepalive-pending {display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.ubpc-keepalive-line {justify-content:space-between}
.ubpc-keepalive-line b,.ubpc-keepalive-pending b {color:var(--ink);font-weight:610}
.ubpc-keepalive-line i {display:inline-block;width:3px;height:3px;margin:0 5px 2px;border-radius:50%;background:var(--quiet)}
.ubpc-keepalive-exceptions {color:var(--quiet)}
.ubpc-keepalive-bar {height:6px;margin-top:7px;overflow:hidden;border-radius:99px;background:var(--raised)}
.ubpc-keepalive-bar[data-has-results=true] {background:color-mix(in srgb,var(--warning) 40%,var(--raised))}
.ubpc-keepalive-bar>span {display:block;width:0;height:100%;background:color-mix(in srgb,var(--success) 75%,var(--raised))}
.ubpc-keepalive-pending {margin-top:auto;padding:9px 0;border-top:1px solid var(--thin)}
.ubpc-keepalive-pending .icon {width:13px;height:13px;color:var(--quiet)}
.ubpc-facts {margin:0;padding:14px 17px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;font-variant-numeric:tabular-nums}
.ubpc-facts dt {font-size:12px;color:var(--muted)}
.ubpc-facts dd {margin:4px 0 0;font-size:clamp(17px,1.65vw,24px);font-weight:590;line-height:1.15}
.ubpc-settings-dialog {
  font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
}
.ubpc-settings-dialog .panel-title h2 {font-size:17px;font-weight:600;line-height:1.45}
.ubpc-settings-dialog legend {font-size:14px;font-weight:550}
.ubpc-settings-dialog .ubpc-facts {
  display:flex;flex-wrap:wrap;gap:12px 18px;padding:9px 5px 3px;
}
.ubpc-settings-dialog .ubpc-facts>div {flex:1 0 max-content}
.ubpc-settings-dialog .ubpc-facts dt {font-size:12px;font-weight:400;line-height:1.5;white-space:nowrap}
.ubpc-settings-dialog .ubpc-facts dd {
  margin-top:4px;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;
}
.ubpc-settings-dialog [data-ubpc-settings-state] {font-size:12px;color:var(--muted)}
.ubpc-page .table-panel {scroll-margin-top:12px}
@media(max-width:900px) {
  .ubpc-facts {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}
  .ubpc-delivery-facts>div:nth-child(3) {border-left:0;padding-left:0}
}
@media(max-width:680px) {
  .ubpc-kpis {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .ubpc-kpi {padding:10px 11px 9px}.ubpc-kpi-top {font-size:12px;min-height:31px;gap:4px}.ubpc-icon {width:23px;height:23px}
  .ubpc-kpi-note {font-size:11px}.ubpc-operations {grid-template-columns:minmax(0,1fr);gap:10px}
  .ubpc-hourly-header,.ubpc-hourly-meta,.ubpc-hourly-details {padding-inline:12px}
  .ubpc-hourly-hint {padding-inline:12px}.ubpc-hourly-surface {margin-inline:3px}.ubpc-hourly-svg {font-size:10px}
  .ubpc-control-strip {gap:9px;padding:10px 11px}
  .ubpc-control-main {gap:7px}.ubpc-control-icon {width:27px;height:27px}.ubpc-switch {padding-inline:6px}
  .ubpc-settings-grid {grid-template-columns:minmax(0,1fr)}
  .ubpc-import-header,.ubpc-import-body,.ubpc-import-footer {padding-inline:15px}
  .ubpc-import-drop {gap:7px;padding:10px 8px}.ubpc-import-upload-icon {width:28px;height:28px}.ubpc-import-upload-icon .icon {width:16px;height:16px}
  .ubpc-import-drop .button {padding-inline:7px}.ubpc-import-stats>div {padding-inline:6px}
  .ubpc-window-wrap {padding-inline:12px}
  .ubpc-window-row {grid-template-columns:minmax(83px,auto) minmax(0,1fr) auto 11px;gap:3px 6px;padding-inline:2px;font-size:12px}
  .ubpc-window-count,.ubpc-window-reason {font-size:11px}
  .ubpc-window-reason {grid-column:1/-1}
  .ubpc-window-row .status {font-size:11px;padding-inline:4px}
}

/* Size the overview cards against the space available beside the sidebar. */
.ubpc-page>.section-block {container:ubpc-section / inline-size}
@container ubpc-section (max-width:840px) {
  .ubpc-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container ubpc-section (max-width:310px) {
  .ubpc-kpis {grid-template-columns:minmax(0,1fr)}
}
@container (max-width:155px) {
  .ubpc-kpi-top .ubpc-icon {display:none}
}
.ubpc-window-wrap,.ubpc-receipts-scroll {container:ubpc-windows / inline-size}
@container ubpc-windows (max-width:410px) {
  .ubpc-window-row {grid-template-columns:minmax(0,1fr) auto 13px;column-gap:8px}
  .ubpc-window-time {grid-column:1;grid-row:1}
  .ubpc-window-row>.status {grid-column:2;grid-row:1}
  .ubpc-window-arrow {grid-column:3;grid-row:1}
  .ubpc-window-count,.ubpc-window-reason {grid-column:1/-1}
}
.ubpc-receipts-drawer .detail-content h2,.ubpc-receipts-drawer .detail-content dd {overflow-wrap:anywhere}
.ubpc-receipts-drawer .detail-content dt {flex:none}
.ubpc-receipts-drawer .detail-content dd {min-width:0;text-align:end}
