:root {
  color-scheme: dark;
  --ink: #f3fbf7;
  --ink-soft: #b8c9c1;
  --muted: #7e948b;
  --line: rgba(221, 255, 239, .14);
  --line-strong: rgba(221, 255, 239, .26);
  --canvas: #060a0a;
  --panel: rgba(17, 25, 23, .7);
  --panel-strong: rgba(23, 34, 31, .86);
  --accent: #54e6a5;
  --accent-bright: #9dffd0;
  --accent-soft: rgba(84, 230, 165, .13);
  --danger: #ff827d;
  --danger-soft: rgba(255, 107, 102, .14);
  --warning: #f4ca73;
  --warning-soft: rgba(244, 202, 115, .14);
  --blue: #8bbdff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .38);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 18px 45px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse 90% 46% at 8% -4%, rgba(42, 158, 118, .27), transparent 68%), radial-gradient(ellipse 75% 45% at 96% 5%, rgba(117, 70, 196, .22), transparent 66%), linear-gradient(150deg, #060a0a 0%, #0a1010 48%, #07090d 100%);
  color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}
body::before, body::after { position: fixed; z-index: -1; display: block; content: ""; pointer-events: none; }
body::before { top: -16vh; left: 16%; width: 68%; height: 28vh; border-radius: 50%; background: linear-gradient(110deg, rgba(71, 225, 160, .18), rgba(157, 102, 255, .22), transparent 72%); filter: blur(54px); opacity: .8; animation: ambientShift 14s ease-in-out infinite alternate; }
body::after { right: -18vw; bottom: 12vh; width: 54vw; height: 30vh; border-radius: 50%; background: linear-gradient(130deg, rgba(30, 165, 129, .11), rgba(135, 84, 216, .12), transparent 72%); filter: blur(70px); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .52; cursor: wait; }

.app { width: min(760px, 100vw); max-width: 100vw; min-height: 100vh; margin: auto; padding: max(20px, env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 6px 2px 22px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 32px; line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 7px; font-size: 19px; line-height: 1.22; letter-spacing: 0; }
h3 { margin: 0 0 15px; font-size: 16px; }
.role { min-height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--ink-soft); background: rgba(255, 255, 255, .055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); font-size: 11px; white-space: nowrap; }
.role:disabled { cursor: default; }

/* Fixed five-slot glass navigation with a draggable liquid indicator. */
.bottom-nav { position: fixed; z-index: 30; right: auto; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; width: min(690px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: 78px; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(224, 255, 241, .18); border-radius: 26px; background: rgba(11, 18, 17, .73); box-shadow: var(--glass-shadow), 0 20px 60px rgba(0, 0, 0, .43); backdrop-filter: blur(25px) saturate(145%); transform: translateX(-50%); touch-action: none; user-select: none; }
.bottom-nav[hidden] { display: none; }
.bottom-nav::before { position: absolute; inset: 1px; border-radius: 25px; background: linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 34%, rgba(84, 230, 165, .04)); content: ""; pointer-events: none; }
.nav-indicator { position: absolute; z-index: 0; top: 50%; left: var(--nav-x, 50%); width: 58px; height: 58px; border: 1px solid rgba(183, 255, 221, .38); border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(222, 255, 241, .3), rgba(84, 230, 165, .12) 42%, rgba(12, 36, 29, .55) 100%); box-shadow: 0 0 0 1px rgba(84, 230, 165, .08), 0 7px 24px rgba(84, 230, 165, .2), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -10px 22px rgba(0, 0, 0, .25); pointer-events: none; transform: translate(-50%, -50%); transition: left .48s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease; }
.nav-indicator::before, .nav-indicator::after { position: absolute; inset: 6px; border: 1px solid rgba(197, 255, 226, .12); border-radius: inherit; content: ""; }
.nav-indicator::after { inset: -5px; border-color: rgba(84, 230, 165, .09); filter: blur(2px); }
.nav-no-transition .nav-indicator { transition: none; }
.bottom-nav.is-dragging .nav-indicator { transform: translate(-50%, -50%) scale(.84); box-shadow: 0 0 0 7px rgba(84, 230, 165, .08), 0 2px 16px rgba(84, 230, 165, .33), inset 0 1px 0 rgba(255, 255, 255, .27); transition: left .04s linear, transform .2s ease, box-shadow .2s ease; }
.tab { position: relative; z-index: 1; min-width: 0; min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 3px; flex-direction: column; border: 0; border-radius: 18px; padding: 5px 2px; color: #789088; background: transparent; transition: color .25s ease, transform .25s ease; }
.tab:hover { color: var(--ink); transform: translateY(-1px); }
.tab.active { color: var(--ink); }
.tab:active { transform: scale(.94); }
.nav-icon { display: block; min-height: 21px; font-size: 21px; line-height: 21px; font-weight: 600; text-shadow: 0 0 13px rgba(84, 230, 165, .25); }
.nav-label { display: block; max-width: 100%; max-height: 22px; overflow: hidden; font-size: 10px; line-height: 11px; text-align: center; white-space: normal; }

.notice { max-width: 100%; margin-bottom: 15px; border: 1px solid rgba(84, 230, 165, .25); border-radius: 13px; padding: 11px 13px; color: var(--accent-bright); background: rgba(42, 120, 91, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); overflow-wrap: anywhere; animation: rise .35s ease both; }
.notice.error { border-color: rgba(255, 130, 125, .35); color: #ffc1bd; background: var(--danger-soft); }
.content { display: grid; gap: 13px; animation: rise .42s ease both; }
.order-list, .admin-list, .support-list, .quick-links { display: grid; gap: 11px; }

.card, .form, .detail-main, .history, .metric, .glass-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--glass-shadow); backdrop-filter: blur(19px) saturate(125%); }
.card, .form, .detail-main, .history { padding: 17px; }
.card, .metric, .quick-link { animation: rise .38s ease both; }
.order-card { cursor: pointer; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.order-card:hover { border-color: rgba(150, 255, 211, .36); box-shadow: var(--glass-shadow), 0 12px 30px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.order-card:active { transform: scale(.992); }
.card-head, .detail-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card h2 { max-width: 72%; }
.status { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 8px; color: var(--ink-soft); background: rgba(255, 255, 255, .07); font-size: 11px; white-space: nowrap; }
.status-new { border-color: rgba(139, 189, 255, .25); color: var(--blue); background: rgba(139, 189, 255, .12); }
.status-in_work { border-color: rgba(84, 230, 165, .28); color: var(--accent-bright); background: var(--accent-soft); }
.status-review { border-color: rgba(244, 202, 115, .28); color: var(--warning); background: var(--warning-soft); }
.status-completed { border-color: rgba(138, 222, 154, .25); color: #a8edb2; background: rgba(138, 222, 154, .11); }
.status-cancelled { border-color: rgba(255, 130, 125, .28); color: var(--danger); background: var(--danger-soft); }
.description { margin: 11px 0 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.description.clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.card-foot { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 11px; border-top: 1px solid rgba(221, 255, 239, .1); color: var(--accent); font-size: 12px; font-weight: 700; }

.order-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 9px; }
.order-search { min-width: 0; }
.filters { display: flex; gap: 7px; margin: 0 -2px 5px; padding: 0 2px 4px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(255, 255, 255, .045); font-size: 12px; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.filter span { min-width: 18px; border-radius: 999px; padding: 1px 5px; color: var(--muted); background: rgba(255, 255, 255, .08); font-size: 10px; text-align: center; }
.filter.active { border-color: rgba(84, 230, 165, .45); color: var(--accent-bright); background: var(--accent-soft); }
.filter.active span { color: #06120d; background: var(--accent); }
.section-intro { margin-bottom: 3px; }
.section-intro h2 { margin-bottom: 4px; }
.section-intro p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.compact-intro { margin: 2px 4px; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.metric { min-height: 89px; padding: 14px; }
.metric:first-child { grid-column: 1 / -1; background: linear-gradient(130deg, rgba(84, 230, 165, .18), rgba(24, 49, 40, .62)); }
.metric span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 7px; color: var(--ink); font-size: 25px; line-height: 1.15; }
.admin-section { display: grid; gap: 11px; margin-top: 9px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { margin: 0; }
.text-button { border: 0; padding: 4px 0; color: var(--accent); background: transparent; font-weight: 700; }
.admin-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: rgba(17, 25, 23, .68); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.admin-row > div { min-width: 0; }
.admin-row strong, .admin-row span { overflow-wrap: anywhere; }
.admin-row > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.admin-row-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.support-card .description { margin-top: 9px; }
.support-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.support-actions { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(221, 255, 239, .1); }
.support-form { margin-top: 14px; }
.service-description { border: 1px solid rgba(84, 230, 165, .22); border-radius: 8px; padding: 13px 14px; color: var(--ink-soft); background: rgba(84, 230, 165, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.service-description-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-description .eyebrow { margin-bottom: 6px; font-size: 9px; }
.service-description-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.service-price { display: block; margin-top: 6px; color: var(--accent-bright); font-size: 14px; font-weight: 800; white-space: nowrap; }
.service-description-head .service-price { margin-top: 0; }
.admin-service-description { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.admin-toolbar .section-intro { margin-bottom: 0; }
.state { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.state.active { border-color: rgba(84, 230, 165, .24); color: var(--accent-bright); background: var(--accent-soft); }
.state.inactive { border-color: rgba(255, 130, 125, .24); color: var(--danger); background: var(--danger-soft); }

.primary, .secondary, .danger, .danger-link { min-height: 42px; border-radius: 12px; padding: 9px 13px; font-weight: 700; transition: transform .2s ease, filter .2s ease, border-color .2s ease; }
.primary:hover, .secondary:hover, .danger:hover, .danger-link:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary:active, .secondary:active, .danger:active, .danger-link:active { transform: scale(.98); }
.small { min-height: 35px; border-radius: 10px; padding: 7px 10px; font-size: 12px; }
.primary { border: 1px solid rgba(157, 255, 208, .5); color: #04120c; background: linear-gradient(130deg, var(--accent-bright), var(--accent)); box-shadow: 0 8px 24px rgba(84, 230, 165, .17), inset 0 1px 0 rgba(255, 255, 255, .42); }
.secondary { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.danger { border: 1px solid rgba(255, 130, 125, .5); color: #230d0c; background: linear-gradient(130deg, #ffb0a8, var(--danger)); }
.danger-link { border: 1px solid rgba(255, 130, 125, .35); color: #ffaaa5; background: rgba(255, 109, 103, .08); }

.empty, .loading { max-width: 100%; padding: 39px 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.loading::before { display: block; width: 22px; height: 22px; margin: 0 auto 10px; border: 2px solid rgba(84, 230, 165, .22); border-top-color: var(--accent); border-radius: 50%; content: ""; animation: spin .8s linear infinite; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--ink-soft); font-weight: 650; font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid rgba(221, 255, 239, .15); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: rgba(0, 0, 0, .23); box-shadow: inset 0 1px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .04); color-scheme: dark; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
input::placeholder, textarea::placeholder { color: #61766d; }
input:hover, textarea:hover, select:hover { border-color: rgba(221, 255, 239, .25); }
input:focus, textarea:focus, select:focus { border-color: rgba(84, 230, 165, .65); background: rgba(13, 38, 29, .45); box-shadow: 0 0 0 3px rgba(84, 230, 165, .1), inset 0 1px 6px rgba(0, 0, 0, .18); outline: none; }
textarea { min-height: 108px; resize: vertical; }
input[type="file"] { padding: 8px; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px #101b18 inset; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.checkbox span { font-weight: 650; }

.detail { display: grid; gap: 13px; }
.back-button { justify-self: start; border: 0; padding: 3px 0; color: var(--accent); background: transparent; font-weight: 700; }
.back-button span { margin-left: 3px; }
.detail-title .meta { margin: 0 0 5px; }
.detail-title h2 { margin: 0; font-size: 22px; }
.detail-description { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid rgba(221, 255, 239, .1); }
.detail-meta { display: grid; gap: 10px; }
.detail-row { display: grid; grid-template-columns: minmax(86px, 1fr) minmax(0, 2fr); gap: 12px; align-items: start; font-size: 13px; }
.detail-row span { color: var(--muted); }
.detail-row strong { overflow-wrap: anywhere; color: var(--ink-soft); text-align: right; font-weight: 650; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.detail-actions > :only-child, .detail-actions .danger-link { grid-column: 1 / -1; }
.reason-box { margin-top: 16px; border-left: 3px solid var(--danger); border-radius: 0 10px 10px 0; padding: 9px 12px; color: #ffc0bc; background: var(--danger-soft); }
.reason-box strong { font-size: 13px; }
.reason-box p { margin: 4px 0 0; white-space: pre-wrap; }
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; min-height: 50px; margin-left: 5px; padding: 0 0 18px 22px; border-left: 1px solid rgba(221, 255, 239, .18); }
.timeline li:last-child { min-height: auto; padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; border: 2px solid #11251d; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(84, 230, 165, .55); content: ""; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; }
.timeline-head strong { font-size: 14px; }
.timeline-head div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.timeline time { color: var(--muted); font-size: 12px; text-align: right; }
.timeline p { margin: 5px 0 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

.profile-screen, .more-screen { display: grid; gap: 13px; }
.glass-panel { padding: 17px; }
.profile-hero { display: flex; align-items: center; gap: 14px; min-height: 132px; overflow: hidden; background: linear-gradient(125deg, rgba(84, 230, 165, .18), rgba(25, 36, 33, .72) 55%, rgba(118, 73, 179, .12)); }
.profile-orbit { position: relative; display: grid; flex: 0 0 66px; width: 66px; height: 66px; place-items: center; border: 1px solid rgba(157, 255, 208, .46); border-radius: 50%; color: #052017; background: linear-gradient(145deg, var(--accent-bright), #258f69); box-shadow: 0 0 0 8px rgba(84, 230, 165, .08), 0 0 35px rgba(84, 230, 165, .26), inset 0 1px 0 rgba(255, 255, 255, .5); font-size: 24px; font-weight: 800; }
.profile-orbit::after { position: absolute; inset: -10px; border: 1px solid rgba(157, 255, 208, .14); border-radius: 50%; content: ""; animation: orbit 6s linear infinite; }
.profile-hero .eyebrow { margin-bottom: 5px; }
.profile-hero h2 { margin-bottom: 2px; }
.profile-hero .muted { margin: 0; }
.info-list { display: grid; gap: 0; padding: 5px 17px; }
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid rgba(221, 255, 239, .09); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); font-size: 13px; }
.info-row strong { color: var(--ink-soft); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.quick-link { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-align: left; }
.quick-link:hover { border-color: rgba(84, 230, 165, .4); transform: translateY(-2px); }
.quick-link-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(84, 230, 165, .25); border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 20px; }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 14px; }
.quick-link small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.quick-arrow { color: var(--accent); font-size: 25px; line-height: 1; }
.muted { margin-bottom: 0; color: var(--muted); }

dialog { width: min(540px, calc(100% - 24px)); max-height: min(86vh, 700px); border: 1px solid var(--line-strong); border-radius: 18px; padding: 0; color: var(--ink); background: rgba(13, 21, 19, .94); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(24px); }
dialog::backdrop { background: rgba(1, 4, 4, .72); backdrop-filter: blur(5px); }
dialog form { display: grid; max-height: 86vh; gap: 14px; overflow: auto; padding: 19px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dialog-head h2 { margin-bottom: 0; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: rgba(255, 255, 255, .06); font-size: 23px; line-height: 1; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .12); }

@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ambientShift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }

@media (max-width: 520px) {
  .app { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 1px; padding-left: 1px; }
  h1 { font-size: 27px; }
  .card, .form, .detail-main, .history, .glass-panel { padding: 14px; }
  .profile-hero { min-height: 116px; }
  .order-tools { grid-template-columns: 1fr; }
  .admin-row { display: grid; padding: 12px; }
  .admin-row-actions { justify-content: flex-start; }
  .detail-title { flex-direction: column; gap: 9px; }
  .detail-title .status { align-self: flex-start; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail-actions > * { grid-column: 1; }
  .timeline-head { display: grid; gap: 2px; }
  .timeline time { text-align: left; }
}
@media (max-width: 370px) {
  .bottom-nav { width: calc(100% - 14px); height: 74px; padding: 6px; border-radius: 23px; }
  .tab { min-height: 58px; }
  .nav-indicator { width: 54px; height: 54px; }
  .nav-label { font-size: 9px; }
  .nav-icon { font-size: 19px; }
  .app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@supports not ((backdrop-filter: blur(1px))) {
  .bottom-nav, .card, .form, .detail-main, .history, .metric, .glass-panel, dialog { background: #111b18; }
}
