:root {
  --paper: #ededed;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #686868;
  --faint: #e6e6e6;
  --soft: #f5f5f5;
  --night: #171717;
  --lime: #ffffff;
  --alert: #b33e2d;
  --ok: #26704c;
  --ok-bg: #edf5f0;
  --warning: #99601c;
  --warning-bg: #fbf3e8;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0 !important; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; touch-action: manipulation; }
button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
button:active > svg { transform: scale(.9); }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button svg, a svg { flex: none; width: 20px; height: 20px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; }
[hidden] { display: none !important; }

.prototype-shell { min-height: 100svh; display: grid; grid-template-columns: 390px minmax(300px, 430px); gap: 64px; justify-content: center; align-items: center; padding: 38px 28px; }
.prototype-topline { position: fixed; top: 15px; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.topline-status { display: inline-flex; gap: 7px; align-items: center; }
.topline-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.phone { width: 390px; height: min(844px, calc(100svh - 76px)); min-height: 540px; background: var(--surface); border: 6px solid #171717; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; position: relative; justify-self: end; }
.phone-statusbar { height: 30px; padding: 9px 18px 0; display: flex; justify-content: space-between; background: white; font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.signal { width: 13px; height: 8px; border-bottom: 2px solid var(--ink); border-left: 2px solid transparent; border-right: 2px solid transparent; transform: skewX(-18deg); }
.wifi { width: 11px; height: 7px; border: 2px solid var(--ink); border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; border-radius: 50%; }
.battery { width: 17px; height: 8px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; background: var(--ink); }
.screen { height: calc(100% - 99px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: white; }
.screen::-webkit-scrollbar { display: none; }
.tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 69px; padding: 7px 12px 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid var(--faint); background: white; z-index: 20; }
.tab { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; color: #7d7d7d; font-size: 11px; font-weight: 500; }
.tab-icon { width: 26px; height: 24px; display: grid; place-items: center; font: 20px/1 Georgia, serif; }
.tab-icon svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--ink); font-weight: 700; }
.tab.is-active .tab-icon { color: var(--ink); }
.phone.subpage .tabbar, .phone.fullview .tabbar, .phone.admin-view .tabbar { display: none; }
.phone.subpage .screen, .phone.fullview .screen, .phone.admin-view .screen { height: calc(100% - 30px); }

.app-navbar { position: sticky; top: 0; z-index: 15; height: 50px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 78px; align-items: center; gap: 4px; padding: 0 14px; background: white; border-bottom: 1px solid var(--faint); }
.app-navbar h1, .app-navbar h2, .app-navbar .navbar-title { margin: 0; min-width: 0; font-size: 16px; line-height: 1.3; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-navbar > .wordmark { font-size: 17px; white-space: nowrap; }
.app-navbar > b { min-width: 0; font-size: 16px; line-height: 1.3; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-navbar .button-icon { width: 36px; height: 36px; margin-left: -5px; }
.wechat-capsule, .capsule { width: 76px; height: 29px; display: flex; align-items: center; justify-content: space-evenly; border: 1px solid #e1e1e1; border-radius: 16px; background: white; }
.wechat-capsule svg, .capsule svg { width: 19px; height: 19px; }
.wechat-capsule::before, .capsule::before { content: ""; order: 1; height: 14px; width: 1px; background: #dedede; }
.wechat-capsule > :last-child, .capsule > :last-child { order: 2; }
.page, .content { padding: 18px 18px 28px; animation: page-in .2s ease-out; }
.page .content { padding: 0; }
.page:has(.app-navbar) { padding: 0; }
.screen:has(.sticky-footer) .content, .screen:has(.sticky-footer) > .page { padding-bottom: 106px; }
.screen:has(.sticky-footer) > .page:has(.app-navbar) { padding-bottom: 0; }
@keyframes page-in { from { opacity: .7; } to { opacity: 1; } }
.page-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.page-header > div { min-width: 0; }
.wordmark { font: 800 19px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.page-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 600; }
.page-title { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 750; }
.page-subtitle, .lead { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.header-action, .button-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 20px; }
.button-icon:hover, .header-action:hover { background: var(--soft); }
.button-icon.small { width: 30px; height: 30px; }
.button-icon svg { width: 21px; height: 21px; }
.location-chip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; min-height: 34px; margin-top: 5px; padding: 0; border: 0; background: white; text-align: left; font-size: 12px; font-weight: 600; }
.location-chip b { width: 6px; height: 6px; flex: none; display: inline-block; border-radius: 50%; background: var(--ok); }

.section { margin: 22px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-head h2, .section-head h3, .section > h2, .section > h3 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; }
.section > h2, .section > h3 { margin-bottom: 12px; }
.section-head button, .text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.text-link svg { width: 15px; height: 15px; }
.inline-help, .form-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.breadcrumb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 14px; height: 14px; }
.divider { border: 0; border-top: 1px solid var(--faint); margin: 20px 0; }

.notice, .mode-banner, .service-preview, .rider-callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 12px 0; border-radius: 4px; border-left: 3px solid #858585; background: var(--soft); font-size: 12px; line-height: 1.65; }
.notice b, .notice strong, .mode-banner b, .service-preview b, .rider-callout b { display: block; color: var(--ink); font-size: 12px; font-weight: 700; }
.notice p, .notice span, .mode-banner p, .service-preview span, .rider-callout span { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.notice > svg, .service-preview > svg, .rider-callout > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice.warning, .rider-callout { color: var(--warning); border-left-color: var(--warning); background: var(--warning-bg); }
.notice.success, .service-preview { color: var(--ok); border-left-color: var(--ok); background: var(--ok-bg); }
.notice.danger { color: var(--alert); border-left-color: var(--alert); background: #fcf0ed; }
.notice.warning b, .notice.warning strong, .rider-callout b { color: #805016; }
.notice.success b, .notice.success strong, .service-preview b { color: var(--ok); }
.mode-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 4px; background: white; color: var(--ink); font-size: 18px; }
.mode-icon svg { width: 20px; height: 20px; }

.hero-status { overflow: hidden; min-height: 0; margin: 0 -18px; padding: 18px; border: 0; border-radius: 0; color: white; background: var(--night); }
.hero-status::after { content: none; }
.hero-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.status-label { color: #bdbdbd; font-size: 12px; font-weight: 500; }
.status-live { display: inline-flex; align-items: center; gap: 6px; color: #d7ebde; font-size: 11px; font-weight: 600; }
.status-live i { width: 5px; height: 5px; border-radius: 50%; background: #8dc0a1; }
.hero-status h2 { max-width: 100%; margin: 17px 0 6px; font-size: 23px; line-height: 1.4; }
.hero-status p { margin: 0; color: #c6c6c6; font-size: 12px; line-height: 1.7; }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hero-meta div { padding-top: 10px; border-top: 1px solid #444; }
.hero-meta small { display: block; margin-bottom: 4px; color: #bcbcbc; font-size: 11px; }
.hero-meta strong { font-size: 16px; }
.hero-cta { min-height: 40px; padding: 8px 14px; margin-top: 14px; border-radius: 6px; background: white; color: var(--ink); font-size: 13px; font-weight: 700; }
.service-scene { display: block; width: 100%; height: auto; aspect-ratio: 360 / 130; margin: 10px 0; overflow: hidden; }
.service-scene text { font-family: var(--font); font-size: 10px; }
.service-scene .scene-baseline { fill: none; stroke: #c6c6c6; stroke-width: 1; }
.service-scene .scene-building path, .service-scene .scene-bags path, .service-scene .scene-collector path, .service-scene .scene-collector circle, .service-scene .scene-bin path, .service-scene .scene-camera path, .service-scene .scene-camera circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-scene .scene-building, .service-scene .scene-bags, .service-scene .scene-collector, .service-scene .scene-bin, .service-scene .scene-camera { color: var(--ink); }
.service-scene text { fill: var(--muted); }
.service-scene .scene-route { fill: none; stroke: #c7c7c7; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.service-scene .scene-route-draw { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: scene-draw 8s ease-in-out infinite; }
.service-scene .scene-traveler { fill: var(--ink); stroke: white; stroke-width: 1.3; transform-box: fill-box; transform-origin: center; animation: scene-travel 8s ease-in-out infinite; }
.service-scene .scene-traveler.done { animation: none; transform: translate(200px, 27px); }
.service-scene .scene-camera { opacity: 0; transform-box: fill-box; transform-origin: center; animation: camera-pulse 8s ease-in-out infinite; }
.service-scene.dark { background: #171717; }
.service-scene.dark .scene-baseline { stroke: #555; }
.service-scene.dark .scene-building, .service-scene.dark .scene-bags, .service-scene.dark .scene-collector, .service-scene.dark .scene-bin, .service-scene.dark .scene-camera { color: white; }
.service-scene.dark text { fill: #c2c2c2; }
.service-scene.dark .scene-route { stroke: #5b5b5b; }
.service-scene.dark .scene-route-draw { stroke: white; }
.service-scene.dark .scene-traveler { fill: white; stroke: #171717; }
@keyframes scene-draw { 0%, 10% { stroke-dashoffset: 100; } 65%, 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes scene-travel { 0%, 10% { transform: translate(0, 0); } 55% { transform: translate(104px, -36px); } 78% { transform: translate(200px, 27px); } 100% { transform: translate(200px, 27px); } }
@keyframes camera-pulse { 0%, 68% { opacity: 0; transform: translateY(6px); } 78%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-3px); } }
.progress-svg { display: block; width: 100%; height: 128px; margin: 5px 0; overflow: hidden; }
.progress-svg .route { fill: none; stroke: #646464; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 6; }
.progress-svg .route-glow { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 18 82; animation: travel 7s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.progress-svg .node { fill: #171717; stroke: white; stroke-width: 1.5; }
.progress-svg text { fill: #c2c2c2; font: 500 10px var(--font); }
.progress-svg .moving { fill: white; animation: move-dot 7s ease-in-out infinite; }
@keyframes move-dot { 0%, 8% { offset-distance: 0%; } 65%, 75% { offset-distance: 74%; } 100% { offset-distance: 100%; } }

.metric-band, .quota-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.metric-band > *, .quota-card { min-width: 0; padding: 15px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.metric-band > *:first-child, .quota-card:first-child { padding-left: 0; }
.metric-band > * + *, .quota-card + .quota-card { border-left: 1px solid var(--faint); }
.quota-card.primary { color: var(--ink); background: transparent; }
.metric-band small, .quota-card small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.metric-band strong, .quota-card strong { display: block; font: 700 29px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; }
.metric-band > span > b, .quota-card > b { display: block; font: 700 29px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; }
.metric-band > span { color: var(--ink); margin: 0; }
.metric-band > span > b em { font: 500 12px var(--font); font-style: normal; color: var(--muted); }
.metric-band.words > span > b { font: 700 18px/1.5 var(--font); }
.metric-band strong em, .quota-card strong em { margin-left: 4px; font: 500 12px var(--font); font-style: normal; }
.metric-band span, .quota-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.metric-band.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-band.three strong { font-size: 23px; }
.item-list, .task-list, .menu-list, .ledger-list { display: grid; gap: 0; border-top: 1px solid var(--faint); }
.row-link, .menu-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 14px 0; border-bottom: 1px solid var(--faint); background: white; text-align: left; font-size: 13px; }
.row-link > svg, .menu-item > svg { width: 18px; height: 18px; flex: none; color: #969696; }
.row-link > span, .row-link > div { min-width: 0; }
.row-link b, .row-link strong { display: block; font-size: 13px; font-weight: 600; }
.row-link > span:first-child, .row-link > div:first-child { flex: 1; }
.row-link small, .row-link .meta, .menu-item span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.row-link small { display: block; margin-top: 4px; }
.menu-list { margin-top: 16px; }
.menu-item em { color: #969696; font-style: normal; font-size: 18px; }
.menu-item > b, .menu-item > span { flex: 1; min-width: 0; }
.task-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 78px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0; background: white; text-align: left; }
.task-date { width: 36px; min-height: 41px; display: grid; place-items: center; border-radius: 4px; background: var(--soft); color: var(--ink); font: 600 11px/1.5 var(--font); }
.task-row b { display: block; font-size: 12px; line-height: 1.55; }
.task-row span span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.task-state, .state-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-height: 23px; padding: 3px 7px; border-radius: 4px; background: var(--soft); color: #555; font-size: 10px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.state-pill.success, .state-pill.ok, .task-state { background: var(--ok-bg); color: var(--ok); }
.state-pill.warning { background: var(--warning-bg); color: var(--warning); }
.state-pill.danger, .state-pill.error { background: #fcf0ed; color: var(--alert); }
.state-pill.dark { background: var(--ink); color: white; }

.primary-button, .secondary-button, button.primary, button.secondary, button.danger, .sheet-actions .primary, .sheet-actions .secondary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; line-height: 1.5; font-weight: 700; text-align: center; }
.primary-button, button.primary, .sheet-actions .primary { background: var(--ink); color: white; }
.secondary-button, button.secondary, .sheet-actions .secondary { border-color: #d6d6d6; background: white; color: var(--ink); }
button.danger { border-color: #e9bdb4; color: var(--alert); background: white; }
.primary-button svg, .secondary-button svg, button.primary svg, button.secondary svg { width: 17px; height: 17px; }
.primary-button:active, button.primary:active { background: #3f3f3f; }
.primary-button.inverse { color: var(--ink); background: white; }
.primary-button.inverse:active { background: #ddd; }
.notification-dot { position: absolute; width: 5px; height: 5px; margin: -18px 0 0 15px; background: var(--alert); border-radius: 50%; }
.row-symbol { width: 30px; height: 30px; flex: 0 0 30px !important; display: grid !important; place-items: center; color: var(--ink); border-radius: 5px; background: var(--soft); }
.secondary-button:active, button.secondary:active { background: var(--soft); }
.button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.full-button { width: 100%; margin-top: 14px; }
.sticky-footer { position: absolute; bottom: 69px; left: 0; right: 0; z-index: 18; display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 12px 18px; border-top: 1px solid var(--faint); background: white; }
.phone.subpage .sticky-footer, .phone.fullview .sticky-footer { bottom: 0; }
.sticky-footer > .primary, .sticky-footer > .primary-button { flex: 1; }
.sticky-footer > .secondary, .sticky-footer > .secondary-button { flex: 0 1 auto; }
.sticky-footer .full-button { margin-top: 0; }
.sticky-footer .footer-summary { flex: 1; min-width: 0; }
.sticky-footer .footer-summary small { display: block; color: var(--muted); font-size: 11px; }
.sticky-footer .footer-summary strong { display: block; margin-top: 3px; font-size: 17px; }
.sticky-footer .footer-summary + button { flex: none; min-width: 130px; }
.bottom-sheet { margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); border-radius: 0; background: white; }
.bottom-sheet h3 { margin: 0 0 6px; font-size: 14px; }
.bottom-sheet p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; min-height: 40px; border: 1px solid var(--faint); border-radius: 6px; background: var(--soft); }
.segmented button { min-height: 32px; padding: 6px 8px; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 600; }
.segmented button.active, .segmented button.is-active, .segmented button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.filter-row { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--faint); scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 43px; padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: white; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.filter:first-child { padding-left: 0; }
.filter.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.choice-grid { display: grid; gap: 8px; }
.choice, .option { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; padding: 13px 12px; border: 1px solid var(--faint); border-radius: 6px; text-align: left; background: white; }
.choice.selected, .option.selected, .option.is-selected, .option:has(input:checked) { border-color: var(--ink); background: #fafafa; }
.choice b, .option b, .option strong { font-size: 13px; line-height: 1.6; }
.choice span span, .option small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.choice > strong { display: grid; place-items: center; width: 22px; height: 22px; flex: none; font-size: 15px; }
.option > input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--ink); }
.option:disabled, .option.disabled { color: #999; background: #f8f8f8; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day { display: grid; gap: 7px; justify-items: center; min-height: 62px; padding: 9px 2px; border: 1px solid var(--faint); border-radius: 4px; background: white; font-size: 11px; }
.day b { font-size: 11px; line-height: 1.5; }
.day.is-on { background: var(--ink); color: white; border-color: var(--ink); }
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field > label, .field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.form-input, .form-select, .form-textarea, .field-select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: white; color: var(--ink); font-size: 14px; line-height: 1.6; }
.form-select { padding-right: 28px; }
.form-textarea { min-height: 116px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: #909090; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 0; border-color: var(--ink); }
.form-input:disabled, .form-select:disabled { background: var(--soft); color: var(--muted); }
.field-select { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.field-select span { color: var(--muted); font-size: 16px; }
.stepper { display: inline-grid; grid-template-columns: 40px 62px 25px 40px; height: 42px; flex: none; border: 1px solid #d5d5d5; border-radius: 5px; overflow: hidden; }
.stepper > b { display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.stepper button { display: grid; place-items: center; min-width: 0; padding: 0; background: var(--soft); font-size: 20px; }
.stepper button svg { width: 16px; height: 16px; }
.stepper input, .stepper output, .stepper span { display: grid; place-items: center; width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--faint); background: white; text-align: center; font-size: 14px; font-weight: 600; }
.stepper .button-icon { width: 40px; height: 40px; border-radius: 0; }
.stepper input { appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.flow-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.flow-steps > * { position: relative; padding-top: 9px; border-top: 2px solid var(--faint); color: var(--muted); font-size: 11px; line-height: 1.5; }
.flow-steps .active, .flow-steps .is-active, .flow-steps .done { border-top-color: var(--ink); color: var(--ink); font-weight: 600; }
.step-count { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; color: var(--muted); font: 500 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.step-count i { width: 24px; height: 2px; background: var(--ink); }

.order-list { display: grid; gap: 10px; margin-top: 15px; }
.order-card { width: 100%; padding: 14px; border: 1px solid var(--faint); border-radius: 6px; background: white; text-align: left; }
.order-card-top, .order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card-top b { min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.6; }
.order-card-top > span { flex: none; padding: 3px 7px; border-radius: 4px; background: var(--ok-bg); color: var(--ok); font-size: 10px; line-height: 1.6; font-weight: 600; }
.order-card p { margin: 12px 0; font-size: 13px; line-height: 1.6; font-weight: 600; }
.order-card-bottom { color: var(--muted); font-size: 11px; line-height: 1.6; }
.order-card-bottom b { flex: none; color: var(--ink); font-size: 11px; }
.ledger-summary { padding: 17px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); border-radius: 0; background: white; color: var(--ink); }
.ledger-summary small { color: var(--muted); font-size: 12px; }
.ledger-number { display: flex; align-items: baseline; gap: 5px; margin: 9px 0 16px; font: 700 34px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ledger-number em { font: 500 12px var(--font); font-style: normal; }
.ledger-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ledger-split div { padding-top: 10px; border-top: 1px solid var(--faint); }
.ledger-split span { display: block; color: var(--muted); font-size: 11px; }
.ledger-split b { display: block; margin-top: 4px; font-size: 13px; }
.ledger-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--faint); }
.ledger-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 4px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.ledger-row b { display: block; font-size: 12px; line-height: 1.6; }
.ledger-row span span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ledger-row strong { color: var(--ok); font: 600 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ledger-row.negative .ledger-mark { background: var(--soft); color: var(--ink); }
.ledger-row.negative strong { color: var(--ink); }
.profile-card { padding: 4px 0 19px; border-bottom: 1px solid var(--faint); border-radius: 0; color: var(--ink); background: white; }
.profile-card-top { display: flex; gap: 12px; align-items: center; }
.avatar, .mini-avatar { width: 45px; height: 45px; display: grid; place-items: center; flex: none; border-radius: 8px; background: var(--soft); color: var(--ink); font-weight: 700; }
.mini-avatar { width: 34px; height: 34px; border-radius: 6px; font-size: 12px; }
.profile-card h2 { margin: 0; font-size: 18px; }
.profile-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--faint); font-size: 12px; line-height: 1.6; }
.detail-line > span { color: var(--muted); }
.detail-line > b { min-width: 0; text-align: right; font-weight: 600; }
.home-topline, .home-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-intro { display: block; margin: 17px 0 14px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.quick-actions .row-link { min-height: 86px; display: block; padding: 12px 10px; border: 1px solid var(--faint); border-radius: 6px; }
.quick-actions .row-link svg { display: block; margin-bottom: 9px; }
.quick-actions .row-link b, .quick-actions .row-link small { display: block; }
.quick-actions .row-link small { margin-top: 5px; }
.service-band { margin: 0 -18px; padding: 16px 18px 18px; overflow: hidden; color: white; background: var(--night); }
.service-band .hero-top { margin-bottom: 6px; }
.service-band h2 { margin: 9px 0 5px; font-size: 22px; line-height: 1.4; }
.service-band p { margin: 0; color: #c7c7c7; font-size: 12px; line-height: 1.7; }
.service-band .primary-button { margin-top: 14px; }
.service-band .service-scene { margin: 9px 0 0; }
.service-band .badge, .service-band .state-pill { background: #303030; color: #fff; }
.plan-offer { padding: 16px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.plan-offer h1 { margin: 15px 0; }
.plan-offer h1 small { font-size: 12px; font-weight: 500; color: var(--muted); }
.option-list { display: grid; gap: 8px; }
.option { transition: border-color .2s ease, background-color .2s ease; }
.option.selected input { animation: state-confirm .24s ease-out; }
.result-content > .lucide-circle-check { stroke-dasharray: 100; stroke-dashoffset: 0; animation: status-draw .65s ease-out; color: var(--ok); }
.result-content > .lucide-loader-circle { animation: pending-turn 1.6s linear infinite; }
.notice.success > svg { animation: state-confirm .4s ease-out; }
@keyframes state-confirm { from { transform: scale(.75); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes status-draw { from { stroke-dashoffset: 100; opacity: .4; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes pending-turn { to { transform: rotate(360deg); } }
.option > span { flex: 1; min-width: 0; }
.schedule-preview { padding: 14px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.schedule-preview b { font-size: 13px; }
.schedule-preview p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 18px 0 24px; }
.timeline span { padding-top: 8px; border-top: 2px solid var(--faint); color: var(--muted); font-size: 11px; line-height: 1.5; }
.timeline .complete, .timeline .active { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.timeline .warning { border-color: var(--warning); color: var(--warning); }
.ticket-timeline { margin: 0; padding: 0 0 0 19px; color: var(--ink); }
.ticket-timeline li { padding: 0 0 16px 7px; border-left: 1px solid var(--ink); font-size: 12px; }
.ticket-timeline li::marker { color: var(--ink); }
.ticket-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-identity { display: flex; align-items: center; gap: 11px; }
.profile-identity > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-identity p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-summary b { display: block; margin-top: 3px; font-size: 17px; }
.result-content { text-align: center; }
.result-content > svg { margin: 25px auto 14px; }
.result-content > .detail-line { text-align: left; }
.agreement { display: flex !important; align-items: flex-start; gap: 7px; font-size: 12px !important; font-weight: 500 !important; }
.agreement input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--ink); }
.full-button { width: 100%; margin-top: 10px; }
.muted { color: var(--muted); }
.onboarding { min-height: 100%; padding: 20px 18px 28px; background: white; }
.onboarding .page-title { max-width: 100%; margin-top: 16px; font-size: 25px; }
.onboarding .lead { max-width: 100%; margin: 10px 0 22px; font-size: 13px; line-height: 1.8; }
.onboarding .step-count { margin-top: 22px; }
.dorm-form { padding: 0; border: 0; border-radius: 0; background: white; box-shadow: none; }
.detail-hero { padding: 16px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); border-radius: 0; color: var(--ink); background: white; }
.detail-hero h2 { margin: 16px 0 7px; font-size: 22px; }
.detail-hero p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.detail-hero .progress-svg .route-glow, .detail-hero .progress-svg .node { stroke: var(--ink); }
.detail-hero .progress-svg .node { fill: white; }
.detail-hero .progress-svg .moving { fill: var(--ink); }
.detail-hero .progress-svg text { fill: var(--muted); }
.detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 11px; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.detail-cell { padding: 13px 0; border-radius: 0; background: white; }
.detail-cell + .detail-cell { padding-left: 12px; border-left: 1px solid var(--faint); }
.detail-cell small { display: block; color: var(--muted); font-size: 11px; }
.detail-cell b { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; }
.proof-row, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.proof, .proof-image { aspect-ratio: 1; width: 100%; display: grid; place-items: center; overflow: hidden; padding: 9px; border: 1px solid var(--faint); border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.proof::before { content: none; }
img.proof-image, .proof-image img { width: 100%; height: 100%; padding: 0; object-fit: cover; }
.proof-image { aspect-ratio: 3 / 2; padding: 0; }
.proof-image svg { width: 100%; height: 100%; }
.proof svg { width: 24px; height: 24px; }
.photo-preview img { width: 100%; max-height: 180px; object-fit: contain; margin-top: 10px; background: var(--soft); }
.photo-large svg { display: block; width: 100%; height: auto; }
.photo-grid figure { min-width: 0; margin: 0; }
.photo-grid figcaption { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.file-input { display: block; width: 100%; padding: 9px; border: 1px solid #d9d9d9; border-radius: 6px; background: white; font-size: 12px; }
.file-input::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 4px; background: var(--soft); color: var(--ink); font: inherit; }
.result-scene { width: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 0; text-align: center; }
.result-scene > svg { width: 100%; height: 120px; }
.result-scene h1, .result-scene h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.result-scene p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state { padding: 42px 12px; text-align: center; }
.empty-state > svg { width: 40px; height: 40px; color: #949494; }
.empty-state h3 { margin: 14px 0 8px; font-size: 16px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }

#overlay-root { position: absolute; inset: 30px 0 0; z-index: 40; pointer-events: none; }
.sheet-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .38); animation: overlay-in .18s ease; pointer-events: auto; }
.sheet { width: 100%; max-height: 85%; overflow-y: auto; padding: 19px 18px 22px; border-radius: 8px 8px 0 0; background: white; animation: sheet-in .24s cubic-bezier(.2,.7,.2,1); }
.sheet h2 { margin: 0 0 12px; font-size: 18px; }
.sheet p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.sheet-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sheet-header h2 { margin: 0; }
.sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet > header h2 { margin: 0; font-size: 17px; }
.motion-copy { border-top: 1px solid var(--faint); padding-top: 15px; }
.motion-copy b { font-size: 14px; }
.phone.admin-view .sheet { width: min(100%, 500px); margin: 0 auto; }
.sheet-actions { display: flex; gap: 9px; margin-top: 20px; }
.sheet-actions > button { flex: 1; }
.toast { position: absolute; left: 18px; right: 18px; bottom: 90px; z-index: 60; width: max-content; max-width: calc(100% - 36px); margin: 0 auto; padding: 11px 15px; border-radius: 6px; background: #262626; color: white; font-size: 12px; line-height: 1.7; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.12); pointer-events: none; animation: overlay-in .15s ease; }
.phone.subpage .toast, .phone.fullview .toast, .phone.admin-view .toast { bottom: 98px; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { transform: translateY(18px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

.prototype-notes { align-self: center; max-width: 430px; }
.notes-kicker { margin-bottom: 12px; color: var(--muted); font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prototype-notes h1 { margin: 0; font-size: 32px; line-height: 1.4; }
.prototype-notes > p { margin: 15px 0 23px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.review-list { display: grid; gap: 0; border-top: 1px solid #d5d5d5; }
.review-list button { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 49px; padding: 8px 0; border: 0; border-bottom: 1px solid #d5d5d5; border-radius: 0; background: transparent; text-align: left; }
.review-list button:hover { color: #666; }
.review-list b { font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.review-list span { font-size: 12px; font-weight: 500; }
.review-list em { color: var(--muted); font-style: normal; }
.notes-legend { display: flex; align-items: center; gap: 7px; margin-top: 21px; color: var(--muted); font-size: 11px; }
.legend-dot { width: 6px; height: 6px; display: inline-block; margin-left: 7px; border-radius: 50%; background: var(--ok); }
.legend-dot.motion { background: var(--ink); }
.review-toolbar { display: grid; gap: 12px; margin: 20px 0; padding: 15px 0; border-top: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; }
.review-toolbar label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.review-toolbar select { max-width: 250px; min-height: 34px; padding: 6px 26px 6px 9px; border: 1px solid #cfcfcf; border-radius: 4px; background: white; color: var(--ink); font-size: 12px; }
.review-toolbar input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ink); }

.phone.fullview, .phone.admin-view { width: min(1080px, calc(100vw - 56px)); height: min(1000px, calc(100svh - 76px)); justify-self: center; border-radius: 8px; border-width: 1px; border-color: #cfcfcf; }
.prototype-shell:has(.phone.fullview), .prototype-shell:has(.phone.admin-view) { grid-template-columns: minmax(0, 1080px); gap: 0; }
.prototype-shell:has(.phone.fullview) .prototype-notes, .prototype-shell:has(.phone.admin-view) .prototype-notes { display: none; }
.admin-shell { display: grid; grid-template-columns: 174px minmax(0, 1fr); min-height: 100%; background: white; }
.admin-sidebar { padding: 22px 14px; border-right: 1px solid var(--faint); background: #f8f8f8; }
.admin-sidebar .wordmark { display: block; margin-bottom: 24px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar button, .admin-sidebar a { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 9px 10px; border-radius: 4px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }
.admin-sidebar button.active, .admin-sidebar a.active { background: var(--ink); color: white; }
.admin-sidebar svg { width: 17px; height: 17px; }
.admin-main { min-width: 0; padding: 24px; }
.admin-main > header, .admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.admin-main h1 { margin: 0; font-size: 23px; line-height: 1.4; }
.admin-main h2 { margin: 0; font-size: 15px; }
.admin-main .section { margin-top: 25px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.admin-metrics > * { min-width: 0; padding: 17px 15px; }
.admin-metrics > * + * { border-left: 1px solid var(--faint); }
.admin-metrics small, .admin-metrics span { display: block; color: var(--muted); font-size: 11px; }
.admin-metrics strong, .admin-metrics b { display: block; margin-top: 7px; font: 700 26px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.6; }
.data-table th { padding: 11px 10px; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); background: #f7f7f7; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 13px 10px; border-bottom: 1px solid var(--faint); vertical-align: middle; }
.data-table td .text-link { font-size: 12px; }
.data-table tr:hover td { background: #fafafa; }
.admin-filters, .admin-filter { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filters .form-input, .admin-filters .form-select { width: auto; min-width: 150px; min-height: 36px; padding: 7px 10px; font-size: 12px; }
.admin-filter .form-select { width: auto; flex: 1; min-width: 140px; }
.admin-header > span { font-size: 12px; color: var(--muted); }
.admin-sidebar > small { display: block; margin: -12px 0 20px; color: var(--muted); font-size: 11px; }
.admin-main .notice { margin: 18px 0; }

@media (max-width: 920px) and (min-width: 601px) {
  .prototype-shell { grid-template-columns: 390px minmax(210px, 290px); gap: 24px; padding: 38px 20px; }
  .prototype-notes h1 { font-size: 25px; }
  .prototype-notes > p { font-size: 12px; }
  .review-toolbar label { align-items: flex-start; flex-direction: column; gap: 6px; }
  .review-toolbar select { width: 100%; max-width: none; }
}
@media (max-width: 740px) and (min-width: 601px) {
  .prototype-shell { grid-template-columns: 390px; }
  .phone { justify-self: center; }
  .prototype-notes { display: none; }
}
@media (max-width: 600px) {
  body { background: white; }
  .prototype-shell { display: block; min-height: 100svh; height: 100svh; padding: 0; }
  .prototype-topline, .prototype-notes, .review-toolbar { display: none; }
  .phone, .phone.fullview { width: 100%; max-width: none; height: 100svh; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone-statusbar { padding-left: 20px; padding-right: 20px; }
  .tabbar { padding-bottom: 10px; }
  .page, .content { padding-left: 18px; padding-right: 18px; }
  .sticky-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 12px 18px 0; border-right: 0; border-bottom: 1px solid var(--faint); }
  .admin-sidebar .wordmark { margin-bottom: 10px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
  .admin-sidebar button, .admin-sidebar a { width: auto; min-width: max-content; min-height: 43px; padding: 10px 12px; border-radius: 0; }
  .admin-sidebar button.active, .admin-sidebar a.active { background: white; color: var(--ink); border-bottom: 2px solid var(--ink); }
  .admin-main { padding: 18px; }
  .admin-main > header, .admin-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .admin-main h1 { font-size: 21px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics > * { padding: 13px 10px; }
  .admin-metrics > *:nth-child(3) { border-left: 0; border-top: 1px solid var(--faint); }
  .admin-metrics > *:nth-child(4) { border-top: 1px solid var(--faint); }
  .admin-metrics strong, .admin-metrics b { font-size: 24px; }
  .data-table { min-width: 590px; }
  .admin-filters .form-input, .admin-filters .form-select { min-width: 0; flex: 1; }
}
@media (max-width: 360px) {
  .page, .content, .onboarding { padding-left: 14px; padding-right: 14px; }
  .hero-status { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .service-band { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .sticky-footer { padding-left: 14px; padding-right: 14px; }
  .page-title { font-size: 21px; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .task-date { width: 29px; }
  .task-state { padding: 3px 5px; font-size: 9px; }
  .flow-steps { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.motion-off *, .motion-off *::before, .motion-off *::after, .reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

.service-scene:not(.showcase) .scene-camera { animation: none; opacity: 0; }
.service-scene:not(.showcase) .scene-traveler { animation: waiting-pulse 4s ease-in-out infinite; }
.service-scene:not(.showcase) .scene-route-draw { animation: waiting-route 8s linear infinite; stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: .7; }
.service-scene[data-status="done"] .scene-camera { opacity: 1; }
.service-scene[data-status="done"] .scene-traveler { animation: none; transform: translate(200px, -13px); }
.service-scene[data-status="done"] .scene-route-draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.service-scene[data-status="exception"] .scene-traveler { animation: none; opacity: 0; }
.service-scene[data-status="exception"] .scene-route-draw { animation: none; opacity: 0; }
.service-scene .scene-cart-bags { opacity: 0; }
.service-scene.showcase .scene-route-draw { animation: journey-route 18s ease-in-out infinite; }
.service-scene.showcase .scene-building { animation: journey-building 18s ease-in-out infinite; }
.service-scene.showcase .scene-bag-shapes { transform-box: fill-box; transform-origin: bottom; animation: journey-bags 18s ease-in-out infinite; }
.service-scene.showcase .scene-collector { animation: journey-collector 18s ease-in-out infinite; }
.service-scene.showcase .scene-cart-bags { animation: journey-cart 18s ease-in-out infinite; }
.service-scene.showcase .scene-bin-lid { transform-box: fill-box; transform-origin: right bottom; animation: journey-bin 18s ease-in-out infinite; }
.service-scene.showcase .scene-camera { animation: journey-camera 18s ease-in-out infinite; }
.service-scene.showcase .scene-traveler { animation: journey-traveler 18s ease-in-out infinite; }
@keyframes waiting-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes waiting-route { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes journey-route { 0%, 20% { stroke-dashoffset: 100; } 60%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes journey-building { 0%, 8% { opacity: .35; } 16%, 92% { opacity: 1; } 100% { opacity: .35; } }
@keyframes journey-bags { 0%, 16% { opacity: 0; transform: scale(.7); } 23%, 41% { opacity: 1; transform: scale(1); } 48%, 90% { opacity: 0; transform: translate(50px, -16px) scale(.8); } 100% { opacity: 0; } }
@keyframes journey-collector { 0%, 30% { transform: translate(240px, 55px); } 43%, 50% { transform: translate(156px, 55px); } 70%, 90% { transform: translate(240px, 55px); } 100% { transform: translate(240px, 55px); } }
@keyframes journey-cart { 0%, 42% { opacity: 0; } 49%, 66% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes journey-bin { 0%, 62% { transform: rotate(0); } 69%, 74% { transform: rotate(20deg); } 81%, 100% { transform: rotate(0); } }
@keyframes journey-camera { 0%, 75% { opacity: 0; transform: translate(224px, 16px); } 80%, 90% { opacity: 1; transform: translate(224px, 9px); } 100% { opacity: 0; transform: translate(224px, 9px); } }
@keyframes journey-traveler { 0%, 24% { transform: translate(0, 0); opacity: 0; } 28% { opacity: 1; } 49% { transform: translate(94px, 0); } 72%, 90% { transform: translate(200px, -13px); opacity: 1; } 100% { transform: translate(200px, -13px); opacity: 0; } }
.reduced-motion .scene-bags, .reduced-motion .scene-bag-shapes, .reduced-motion .scene-building { opacity: 1 !important; transform: none !important; }
.reduced-motion .scene-collector { transform: translate(193px, 55px) !important; }
.reduced-motion .scene-camera { opacity: 0 !important; }
.reduced-motion .scene-traveler { transform: none !important; }
.metric-band > span > b { color: var(--ink); }
.home-page .home-intro { margin-top: 12px; margin-bottom: 12px; }
.home-page .service-band { padding-top: 14px; padding-bottom: 14px; }
.home-page .service-scene { height: 100px; aspect-ratio: 342 / 142; margin-top: 6px; }
.home-page .service-band h2 { margin-top: 6px; font-size: 21px; }
.home-page .service-band .primary-button { min-height: 40px; margin-top: 12px; }
.home-page .metric-band > span { padding-top: 12px; padding-bottom: 12px; }
.home-page .quick-actions { margin-top: 14px; }
.home-page .quick-actions .row-link { min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
.home-page .quick-actions .row-link svg { margin-bottom: 7px; }
.phone-statusbar .status-icons svg { width: 15px; height: 12px; }
.button-icon[aria-label]:hover::after { content: attr(aria-label); position: absolute; top: 100%; padding: 4px 7px; color: white; background: var(--ink); border-radius: 3px; font-size: 10px; white-space: nowrap; z-index: 30; }
.button-icon { position: relative; }
.ledger-row > span:nth-child(2) { min-width: 0; }
.ledger-row > b { white-space: nowrap; font-size: 12px; }
.admin-metrics > span > b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .service-scene .scene-bags, .service-scene .scene-bag-shapes, .service-scene .scene-building { opacity: 1 !important; transform: none !important; }
  .service-scene .scene-collector { transform: translate(193px, 55px) !important; }
  .service-scene .scene-camera { opacity: 0 !important; }
  .service-scene .scene-traveler { transform: none !important; }
}
@media (max-width: 600px) {
  .phone.admin-view { width: 100%; height: 100svh; border: 0; border-radius: 0; }
  .admin-sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-bottom: 8px; }
  .admin-sidebar .wordmark { margin: 0 10px 0 0; }
  .admin-sidebar > small { margin: 0 10px 0 0; }
  .admin-sidebar > button { flex: 1 0 auto; font-size: 11px; }
  .tabbar { height: calc(69px + env(safe-area-inset-bottom)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .phone:not(.subpage) .screen { height: calc(100% - 99px - env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) {
  .phone.admin-view .phone-statusbar { display: none; }
  .phone.admin-view .screen { height: 100%; }
  .phone.admin-view #overlay-root { top: 0; }
}
