@property --bg-base { syntax: "<color>"; inherits: true; initial-value: #f5f7fa; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --surface-solid { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --surface-subtle { syntax: "<color>"; inherits: true; initial-value: #f3f5f9; }
@property --surface-glass { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .9); }
@property --text-primary { syntax: "<color>"; inherits: true; initial-value: #202838; }
@property --text-secondary { syntax: "<color>"; inherits: true; initial-value: #596579; }
@property --text-muted { syntax: "<color>"; inherits: true; initial-value: #6a7689; }
@property --border-soft { syntax: "<color>"; inherits: true; initial-value: #e6eaf1; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #356ae6; }
@property --primary-hover { syntax: "<color>"; inherits: true; initial-value: #2858ca; }
@property --primary-soft { syntax: "<color>"; inherits: true; initial-value: #edf2ff; }
@property --on-primary { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --success { syntax: "<color>"; inherits: true; initial-value: #187657; }
@property --success-soft { syntax: "<color>"; inherits: true; initial-value: #e9f6ef; }
@property --warning { syntax: "<color>"; inherits: true; initial-value: #94620b; }
@property --warning-soft { syntax: "<color>"; inherits: true; initial-value: #fff5df; }
@property --danger { syntax: "<color>"; inherits: true; initial-value: #c64050; }
@property --danger-soft { syntax: "<color>"; inherits: true; initial-value: #fff0f1; }
@property --purple { syntax: "<color>"; inherits: true; initial-value: #7655c7; }
@property --purple-soft { syntax: "<color>"; inherits: true; initial-value: #f2edfc; }
@property --shadow-card-color { syntax: "<color>"; inherits: true; initial-value: rgba(28, 46, 82, .025); }
@property --shadow-float-color { syntax: "<color>"; inherits: true; initial-value: rgba(22, 35, 60, .15); }
/* Animate the shared palette once. Descendants inherit each frame without
   starting their own transitions for text, SVG currentColor or borders. */
:root {
  transition-property: --bg-base, --surface, --surface-solid, --surface-subtle, --surface-glass, --text-primary, --text-secondary, --text-muted, --border-soft, --primary, --primary-hover, --primary-soft, --on-primary, --success, --success-soft, --warning, --warning-soft, --danger, --danger-soft, --purple, --purple-soft, --shadow-card-color, --shadow-float-color;
  transition-duration: var(--theme-duration);
  transition-timing-function: var(--theme-ease);
  color-scheme: light;
  --bg-base: #f5f7fa;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-subtle: #f3f5f9;
  --surface-glass: rgba(255, 255, 255, .9);
  --text-primary: #202838;
  --text-secondary: #596579;
  --text-muted: #6a7689;
  --border-soft: #e6eaf1;
  --primary: #356ae6;
  --primary-hover: #2858ca;
  --primary-soft: #edf2ff;
  --on-primary: #ffffff;
  --success: #187657;
  --success-soft: #e9f6ef;
  --warning: #94620b;
  --warning-soft: #fff5df;
  --danger: #c64050;
  --danger-soft: #fff0f1;
  --purple: #7655c7;
  --purple-soft: #f2edfc;
  --shadow-card-color: rgba(28, 46, 82, .025);
  --shadow-float-color: rgba(22, 35, 60, .15);
  --shadow-card: 0 3px 14px var(--shadow-card-color);
  --shadow-float: 0 16px 60px var(--shadow-float-color);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1.15);
  --theme-duration: 300ms;
  --theme-ease: cubic-bezier(.4, 0, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #141820;
  --surface: #202631;
  --surface-solid: #202631;
  --surface-subtle: #282f3c;
  --surface-glass: rgba(32, 38, 49, .92);
  --text-primary: #eef2f9;
  --text-secondary: #b2bed0;
  --text-muted: #9aa9bf;
  --border-soft: #343d4d;
  --primary: #85aaff;
  --primary-hover: #a4c0ff;
  --primary-soft: #2a3857;
  --on-primary: #162442;
  --success: #79d9b3;
  --success-soft: #233e36;
  --warning: #f0c477;
  --warning-soft: #423827;
  --danger: #ff9cab;
  --danger-soft: #442c37;
  --purple: #c2a9ff;
  --purple-soft: #383047;
  --shadow-card-color: rgba(0, 0, 0, .04);
  --shadow-float-color: rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; scroll-padding-top: 95px; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 14px/1.5 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: var(--primary); }
button, input, select, textarea { -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { max-width: 600px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 16px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text-primary); }
.brand-mark { width: 41px; height: 43px; border-radius: 14px; background: #356ae6; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px #356ae622; transform: rotate(-5deg); }
.brand-mark .icon { transform: rotate(5deg); width: 25px; height: 25px; }
.brand-title { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.brand-dot { color: var(--primary); }
.brand-subtitle { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; color: var(--text-muted); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-button { border: 1px solid var(--border-soft); color: var(--text-secondary); background: var(--surface); border-radius: 14px; width: 42px; height: 42px; display: inline-grid; place-items: center; flex-shrink: 0; transition: transform .2s ease; }
.icon-button .icon { width: 20px; height: 20px; }
.avatar-button { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface); outline: 1px solid var(--border-soft); background: var(--primary-soft); color: var(--primary); font-weight: 650; font-size: 16px; }
.theme-toggle { grid-template: 1fr / 1fr; }
.theme-toggle .icon { grid-area: 1 / 1; transition: opacity var(--theme-duration) var(--theme-ease), transform var(--theme-duration) var(--theme-ease); }
.theme-sun { opacity: 0; transform: rotate(-40deg) scale(.75); }
.theme-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-moon { opacity: 0; transform: rotate(40deg) scale(.75); }
[data-theme="dark"] .theme-sun { opacity: 1; transform: rotate(0) scale(1); }
.demo-bar { display: flex; align-items: center; padding: 9px 24px 0; gap: 10px; }
.demo-label { flex-shrink: 0; color: var(--text-muted); font-size: 10px; font-weight: 550; display: flex; align-items: center; gap: 5px; }
.demo-label > span { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }
.demo-bar select { width: auto; min-width: 0; max-width: 100%; border: 0; background-color: transparent; padding: 4px 24px 4px 0; min-height: 28px; font-size: 10px; color: var(--text-muted); background-size: 12px; }
.main-content { padding: 23px 24px 0; display: flex; flex-direction: column; gap: 23px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.page-context { color: var(--text-muted); font-size: 12px; margin-bottom: 7px; }
h1 { font-weight: 700; font-size: 29px; letter-spacing: -1.15px; }
h1:focus { outline: none; }
.today-label { font-size: 11px; line-height: 1.6; color: var(--text-muted); max-width: 100px; text-align: right; padding-bottom: 3px; }
.today-label::first-letter { text-transform: uppercase; }
.page-heading-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.page-enter { animation: page-reveal .32s var(--ease-smooth); }
@keyframes page-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.is-navigating .bottom-nav::before { content: ''; position: absolute; top: 0; height: 2px; width: 35%; left: 0; background: var(--primary); animation: navigation-loading .8s ease-in-out infinite alternate; }
@keyframes navigation-loading { to { left: 65%; } }
.trip-hero { position: relative; overflow: hidden; isolation: isolate; background: #356ae6; color: #fff; border-radius: 25px; padding: 23px; box-shadow: 0 9px 24px #356ae622; }
.trip-hero::before { content: ''; position: absolute; z-index: -1; width: 270px; height: 270px; border: 1px solid #ffffff10; border-radius: 50%; right: -110px; top: -95px; box-shadow: 0 0 0 35px #ffffff06, 0 0 0 70px #ffffff04; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-caption { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #e0eaff; }
.hero-caption .icon { width: 16px; height: 16px; }
.hero-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 550; padding: 5px 8px; border-radius: 7px; background: #ffffff1c; max-width: 52%; }
.hero-status > span { width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: #b9f2d9; }
.hero-content { display: flex; align-items: center; justify-content: space-between; min-height: 108px; gap: 4px; }
.hero-copy { min-width: 0; max-width: 75%; position: relative; z-index: 1; }
.hero-copy h2 { font-size: 32px; letter-spacing: -1.2px; font-weight: 650; }
.hero-trip-name { margin-top: 7px; font-size: 12px; color: #e0eaff; line-height: 1.5; }
.route-art { width: 95px; height: 95px; flex-shrink: 0; position: relative; margin-left: -12px; }
.route-art > svg { position: absolute; left: -20px; top: 0; }
.art-bag { display: grid; place-items: center; position: absolute; width: 53px; height: 59px; border-radius: 16px; background: linear-gradient(140deg, #f2f6ff, #c7d9ff); color: #356ae6; top: 22px; left: 18px; transform: rotate(-12deg); border: 1px solid #ffffffa6; box-shadow: 3px 9px 0 #194eb4aa, 8px 14px 20px #204fa54d; }
.art-bag .icon { width: 31px; height: 31px; stroke-width: 1.35; }
.art-spark { position: absolute; color: #c9dbff; font-size: 17px; font-weight: 400; }
.spark-one { right: 1px; top: 63px; }
.spark-two { left: 7px; top: 8px; font-size: 12px; }
.hero-deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px 0 17px; border-top: 1px solid #ffffff2b; }
.hero-deadlines > div { display: flex; gap: 7px; align-items: flex-start; }
.hero-deadlines .icon { width: 15px; height: 15px; color: #c7d9ff; margin-top: 2px; }
.hero-deadlines span { color: #d9e5ff; font-size: 11px; }
.hero-deadlines strong { display: block; color: #fff; font-size: 11px; font-weight: 500; margin-top: 3px; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.btn-hero { flex: 1; background: #fff; color: #285dd4; box-shadow: 0 2px 5px #2040a315; }
.btn-hero .icon { width: 18px; height: 18px; }
.btn-hero .icon:last-child { margin-left: auto; }
.hero-details-button { background: transparent; border: 0; color: #fff; padding: 10px 0; font-size: 10px; font-weight: 500; min-height: 44px; }
.dashboard-section { display: flex; flex-direction: column; gap: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-heading h2 { font-size: 16px; font-weight: 650; letter-spacing: -.4px; }
.section-heading > span { font-size: 11px; color: var(--text-muted); }
.section-heading > .count-label { background: var(--warning-soft); color: var(--warning); border-radius: 7px; min-width: 23px; padding: 2px 7px; text-align: center; font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.metric-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border-soft); background: var(--surface); color: var(--text-primary); border-radius: 19px; padding: 15px 16px; text-align: left; box-shadow: var(--shadow-card); transition: transform .2s ease; }
.metric-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.metric-top > .icon { width: 13px; height: 13px; color: var(--text-muted); opacity: .65; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; }
.metric-icon .icon { width: 17px; height: 17px; }
.tone-blue { background: var(--primary-soft); color: var(--primary); }
.tone-amber { background: var(--warning-soft); color: var(--warning); }
.tone-violet { background: var(--purple-soft); color: var(--purple); }
.tone-green { background: var(--success-soft); color: var(--success); }
.metric-value { font-size: 30px; font-weight: 650; letter-spacing: -.8px; margin-top: 10px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.metric-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.action-list { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; overflow: hidden; }
.action-item + .action-item { border-top: 1px solid var(--border-soft); }
.action-link { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; background: transparent; border: 0; color: var(--text-primary); padding: 15px; }
.action-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: var(--warning-soft); color: var(--warning); flex-shrink: 0; }
.action-icon .icon { width: 18px; height: 18px; }
.action-copy { display: block; flex: 1; min-width: 0; }
.action-copy b { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; }
.action-copy > span { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.action-link > .icon { width: 14px; height: 14px; color: var(--text-muted); }
.action-order-links { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0 15px 12px 61px; }
.action-order-links button { padding: 4px 0; color: var(--primary); background: transparent; border: 0; font-size: 11px; text-align: left; text-underline-offset: 3px; }
.secondary-summary { padding-top: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 11px; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); }
.summary-row:last-child { border: 0; padding-bottom: 0; }
.summary-row b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); min-width: 0; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-header > div:first-child { flex: 1; min-width: 130px; }
.card-title { font-size: 16px; font-weight: 650; letter-spacing: -.35px; color: var(--text-primary); overflow-wrap: anywhere; }
.card > .card-title:first-child { margin-bottom: 14px; }
.subtitle { color: var(--text-secondary); font-size: 12px; line-height: 1.65; margin-top: 4px; overflow-wrap: anywhere; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-box { background: var(--surface-subtle); border-radius: var(--radius-md); padding: 15px 10px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 650; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; font-size: 10px; font-weight: 550; max-width: 100%; overflow-wrap: anywhere; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-gray { background: var(--surface-subtle); color: var(--text-secondary); }
.btn { border: 1px solid transparent; border-radius: 12px; padding: 11px 15px; min-height: 44px; font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s var(--ease-spring); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.btn-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.btn-outline { background: var(--surface); color: var(--text-secondary); border-color: var(--border-soft); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-lg { width: 100%; min-height: 49px; padding: 13px 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.btn-row > .btn { flex: 1 1 auto; }
button:active:not(:disabled), .btn:active { transform: scale(.97); }
.input, select, textarea { width: 100%; max-width: 100%; min-width: 0; padding: 12px; min-height: 45px; color: var(--text-primary); border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-subtle); font-size: 14px; }
.input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .85; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select { padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238692a5' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
select option { color: var(--text-primary); background: var(--surface); }
textarea { resize: vertical; min-height: 80px; }
.form-group { margin: 11px 0; min-width: 0; }
.form-group label { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; }
.qty-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface-subtle); padding: 13px 8px; border-radius: 12px; gap: 6px; margin: 13px 0; }
.qty-matrix > div { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.qty-cell-label { font-size: 10px; color: var(--text-muted); margin-bottom: 5px; }
.qty-cell-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-bar-wrap { height: 7px; border-radius: 20px; background: var(--surface-subtle); overflow: hidden; margin: 15px 0; }
.progress-bar-fill { height: 100%; min-width: 0; background: var(--primary); border-radius: inherit; transition: width .5s var(--ease-smooth); }
.alert-banner { padding: 13px 14px; font-size: 12px; border-radius: 12px; line-height: 1.6; margin: 10px 0; overflow-wrap: anywhere; }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.one-hand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.one-hand-grid .btn { min-height: 62px; }
details { background: var(--surface-subtle); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; margin-top: 12px; }
summary { cursor: pointer; color: var(--primary); font-size: 12px; line-height: 1.6; }
summary::marker { color: var(--primary); }
details[open] > summary { margin-bottom: 10px; }
.catalog-intro { display: flex; align-items: center; gap: 12px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent); padding: 16px; border-radius: 18px; }
.catalog-intro-icon { color: var(--primary); flex-shrink: 0; }
.catalog-intro > div { flex: 1; }
.catalog-intro h2 { font-size: 13px; font-weight: 600; }
.catalog-intro p { margin-top: 5px; font-size: 11px; color: var(--text-secondary); }
.catalog-intro .icon-button { width: 28px; height: 36px; border: 0; background: transparent; }
.product-list { display: grid; gap: 14px; }
.product-card { padding: 18px; border-radius: 21px; }
.product-main { display: flex; align-items: center; gap: 13px; }
.product-visual { width: 64px; height: 68px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; position: relative; overflow: hidden; }
.product-visual::before { content: ''; position: absolute; width: 65px; height: 65px; border: 1px solid currentColor; border-radius: 50%; opacity: .09; top: 30px; right: -18px; }
.product-visual .icon { width: 33px; height: 33px; stroke-width: 1.4; }
.product-fish { background: var(--primary-soft); color: var(--primary); }
.product-cheese { background: var(--warning-soft); color: var(--warning); }
.product-leaf { background: var(--success-soft); color: var(--success); }
.product-box { background: var(--purple-soft); color: var(--purple); }
.product-copy { min-width: 0; }
.product-category { font-size: 11px; color: var(--text-muted); }
.product-copy h3 { font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: -.2px; margin-top: 5px; }
.product-description { font-size: 11px; color: var(--text-secondary); line-height: 1.65; margin-top: 13px; }
.product-price { font-size: 21px; font-weight: 650; letter-spacing: -.5px; margin: 13px 0; font-variant-numeric: tabular-nums; }
.product-price > span { color: var(--text-muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.product-buy { display: flex; gap: 10px; }
.product-buy > .btn { flex: 1; }
.quantity-field { position: relative; width: 105px; flex-shrink: 0; }
.quantity-field input { padding-right: 38px; height: 45px; }
.quantity-field > span { position: absolute; right: 12px; top: 14px; font-size: 11px; color: var(--text-muted); pointer-events: none; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-soft); background: var(--surface-glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); z-index: 80; }
.nav-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: var(--text-muted); border-radius: 13px; min-height: 56px; padding: 0 2px; font-size: 10px; font-weight: 500; transition: transform .2s ease; }
.nav-icon { position: relative; display: grid; place-items: center; width: 49px; height: 30px; border-radius: 10px; }
.nav-icon > .icon { width: 21px; height: 21px; }
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon { background: var(--primary-soft); }
.nav-counter { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 1px 4px; border-radius: 6px; font-size: 9px; font-weight: 600; color: #fff; background: #c64050; }
.nav-icon > .nav-counter { position: absolute; right: 1px; top: -3px; border: 2px solid var(--surface); min-width: 18px; height: 18px; }
.nav-notification-dot { position: absolute; width: 6px; height: 6px; background: var(--danger); right: 7px; top: 3px; border-radius: 50%; }
.sheet-dialog { border: 1px solid var(--border-soft); background: var(--surface); color: var(--text-primary); border-radius: 28px 28px 0 0; max-width: 600px; width: 100%; max-height: min(90dvh, 780px); padding: 12px 24px calc(24px + env(safe-area-inset-bottom, 0px)); margin: auto auto 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-float); }
.sheet-dialog[open] { animation: sheet-in .3s var(--ease-smooth); }
.sheet-dialog::backdrop { background: #0e182866; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: backdrop-in .2s ease; }
body:has(.sheet-dialog[open]) { overflow: hidden; }
.sheet-handle { width: 35px; height: 4px; border-radius: 4px; background: var(--border-soft); margin: 0 auto 21px; }
.sheet-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.sheet-heading h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 650; }
.sheet-heading .page-context { margin-bottom: 4px; }
.menu-links { display: flex; flex-direction: column; }
.menu-link { display: flex; align-items: center; width: 100%; border: 0; border-radius: 13px; padding: 12px 4px; gap: 12px; background: transparent; color: var(--text-primary); text-align: left; }
.menu-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-subtle); color: var(--text-secondary); flex-shrink: 0; }
.menu-icon .icon { width: 20px; height: 20px; }
.menu-link-text { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.menu-link-text b { font-size: 13px; font-weight: 550; }
.menu-link-text > span { font-size: 11px; color: var(--text-muted); }
.menu-link > .icon { width: 14px; height: 14px; color: var(--text-muted); }
.menu-link.selected .menu-icon { background: var(--primary-soft); color: var(--primary); }
.appearance-settings { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.card > .appearance-settings { margin: 0; padding: 0; border: 0; }
.appearance-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.appearance-heading h3 { font-size: 14px; font-weight: 600; }
.appearance-heading p { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-options button { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 5px; color: var(--text-secondary); background: var(--surface-subtle); border: 1px solid var(--border-soft); border-radius: 13px; font-size: 11px; transition: transform .2s ease; }
.theme-options button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.theme-hint { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }
.app-footer { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 0; color: var(--text-muted); font-size: 10px; }
.app-footer .icon { width: 12px; height: 12px; }
.app-footer > span { width: 100%; text-align: center; font-size: 9px; opacity: .8; }
.empty-state { padding: 28px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--success-soft); color: var(--success); margin: 0 auto 15px; }
.empty-state h3 { font-size: 15px; font-weight: 600; }
.empty-state p { margin: 8px auto 0; font-size: 12px; color: var(--text-muted); max-width: 280px; }
.initial-loader { min-height: 80dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.spinner-ring { width: 35px; height: 35px; border: 3px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; margin-bottom: 18px; animation: spin .8s linear infinite; }
.loader-title { font-size: 17px; font-weight: 600; }
.loader-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 7px; }
.modal-backdrop { position: fixed; inset: 0; background: #0e182866; backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; z-index: 200; animation: backdrop-in .2s ease; }
.modal-card { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border-soft); border-radius: 23px; padding: 24px; max-width: 440px; width: 100%; max-height: 85dvh; overflow-y: auto; box-shadow: var(--shadow-float); animation: sheet-in .25s var(--ease-smooth); }
.toast { position: fixed; bottom: calc(95px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); padding: 13px 18px; max-width: min(90vw, 500px); width: max-content; border-radius: 14px; background: var(--text-primary); color: var(--surface); font-size: 12px; box-shadow: var(--shadow-float); z-index: 1000; animation: toast-in .25s var(--ease-spring); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 20%, transparent); }
  .btn-outline:hover, .icon-button:hover, .menu-link:hover { background: var(--surface-subtle); color: var(--primary); }
  .btn-hero:hover { background: #eef3ff; }
  .metric-card:hover { border-color: var(--primary); transform: translateY(-2px); }
  .action-link:hover { background: var(--surface-subtle); }
  .action-order-links button:hover { text-decoration: underline; }
  .nav-item:hover { color: var(--primary); }
  .hero-details-button:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 601px) {
  .app-shell { border-inline: 1px solid var(--border-soft); }
  .topbar { padding-inline: 30px; }
  .main-content { padding-inline: 30px; padding-top: 28px; gap: 26px; }
  .demo-bar { padding-inline: 30px; }
  .hero-copy h2 { font-size: 37px; }
  .trip-hero { padding: 27px; }
  .hero-content { min-height: 123px; }
  .route-art { width: 125px; transform: scale(1.12); }
  .hero-deadlines strong { font-size: 12px; }
  .hero-caption { font-size: 12px; }
  .hero-status { font-size: 10px; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-main { align-items: flex-start; gap: 9px; }
  .product-visual { width: 45px; height: 51px; border-radius: 12px; }
  .product-visual .icon { width: 28px; height: 28px; }
  .product-card { display: flex; flex-direction: column; }
  .product-description { flex: 1; }
  .quantity-field { width: 80px; }
  .product-buy .btn { padding-inline: 9px; font-size: 11px; gap: 5px; }
  .product-buy .btn .icon { display: none; }
  .bottom-nav { border-inline: 1px solid var(--border-soft); }
}
@media (max-width: 359px) {
  .topbar { padding-inline: 16px; }
  .main-content { padding-inline: 16px; gap: 19px; }
  .demo-bar { padding-inline: 16px; }
  .header-actions { gap: 7px; }
  .brand-title { font-size: 19px; }
  .brand-subtitle { font-size: 9px; }
  h1 { font-size: 26px; }
  .today-label { max-width: 78px; font-size: 9px; }
  .trip-hero { padding: 18px; }
  .hero-copy h2 { font-size: 29px; }
  .hero-caption { font-size: 10px; }
  .hero-status { font-size: 8px; }
  .hero-actions { gap: 11px; }
  .btn-hero { padding-inline: 11px; font-size: 11px; }
  .card { padding: 16px; }
  .metric-card { padding: 13px; }
  .metric-label { font-size: 9px; }
  .grid-2 { gap: 9px; }
  .sheet-dialog { padding-inline: 18px; }
  .qty-cell-val { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
