:root {
  --orange: #f6c945;
  --orange-dark: #d7a411;
  --orange-soft: rgba(246, 201, 69, .14);
  --green: #57c979;
  --red: #ff6948;
  --ink: #f4f6f8;
  --muted: #929ba8;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .15);
  --surface: #151a22;
  --surface-raised: #1a2029;
  --background: #0b0e13;
  color: var(--ink);
  background: var(--background);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: clip; position: relative; background: radial-gradient(circle at 72% -10%, #171d27 0, var(--background) 38%); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='80' viewBox='0 0 180 80'%3E%3Cpath d='M0 0H180M0 40H180M0 80H180M0 0V40M90 0V40M180 0V40M45 40V80M135 40V80' fill='none' stroke='%23000000' stroke-opacity='.72' stroke-width='2'/%3E%3C/svg%3E"); background-size: 180px 80px; opacity: .42; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.34) 70%, transparent); mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.34) 70%, transparent); }
.auth-shell, .app-shell { position: relative; z-index: 1; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.auth-shell { min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); display: grid; place-items: center; overflow: auto; position: relative; background: radial-gradient(circle at 50% -10%, rgba(246, 201, 69, .15), transparent 33%), radial-gradient(circle at 100% 100%, #171e28, transparent 38%), #080b10; }
.auth-shell::before { content: ""; width: min(72vw, 680px); aspect-ratio: 1; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.035); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 80px rgba(255,255,255,.012), 0 0 0 160px rgba(255,255,255,.008); pointer-events: none; }
.auth-card { width: min(100%, 900px); min-height: 560px; padding: clamp(28px, 5vw, 58px); position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; display: grid; grid-template-columns: minmax(240px,.9fr) minmax(280px,1.1fr); align-items: center; gap: clamp(32px, 6vw, 82px); background: linear-gradient(155deg, rgba(29,35,45,.96), rgba(13,17,23,.98)); box-shadow: 0 34px 100px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.055); }
.auth-intro { text-align: center; }
.auth-mark, .brand { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: grid; place-items: center; background: transparent; box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 4px rgba(255,255,255,.025); }
.auth-mark { width: 104px; height: 104px; margin: 0 auto 24px; padding: 4px; }
.auth-mark img, .brand img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.kicker { margin: 0 0 7px; color: #f8d66d; font-size: .68rem; font-weight: 780; letter-spacing: .17em; text-transform: uppercase; }
.auth-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; }
.auth-intro > p:last-child { max-width: 360px; margin: 15px auto 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.pin-form { display: grid; justify-items: center; }
.pin-display { min-height: 54px; padding: 14px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(4,7,11,.52); }
.pin-display i { width: 13px; height: 13px; border: 1.5px solid rgba(255,255,255,.36); border-radius: 50%; transition: .16s ease; }
.pin-display i.is-filled { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px rgba(246,201,69,.1); }
.pin-help { margin: 9px 0 14px; color: #747d89; font-size: .66rem; }
.pin-error { width: 100%; margin: -5px 0 12px; color: #ffad91; font-size: .72rem; text-align: center; }
.pin-keypad { width: min(100%, 290px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px 17px; }
.pin-keypad button { width: 62px; height: 62px; min-height: 62px; padding: 0; justify-self: center; border: 1px solid rgba(255,255,255,.095); border-radius: 50%; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 9px 22px rgba(0,0,0,.2); font-size: 1.25rem; font-weight: 650; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.pin-keypad button:hover { border-color: rgba(246,201,69,.5); background: rgba(246,201,69,.14); }
.pin-keypad button:active { transform: scale(.94); }
.pin-keypad .pin-delete { border-color: transparent; color: #aeb5bf; background: transparent; box-shadow: none; }
.login-submit { width: min(100%, 290px); min-height: 54px; margin-top: 18px; padding: 0 20px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; color: #171308; background: linear-gradient(135deg, #ffe272, #efb91f); box-shadow: 0 14px 34px rgba(246,193,43,.23), inset 0 1px 0 rgba(255,255,255,.32); font-size: .8rem; font-weight: 800; }
.auth-security { grid-column: 1 / -1; margin: -8px auto 0; display: flex; align-items: center; gap: 7px; color: #68717e; font-size: .62rem; }
.auth-security svg { width: 15px; height: 15px; }

.app-shell { min-height: 100vh; }
.topbar { height: 100px; padding: 18px 36px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; background: rgba(11,14,19,.84); backdrop-filter: saturate(150%) blur(22px); }
.brand { width: 50px; height: 50px; padding: 2px; justify-self: start; }
.clock { justify-self: center; display: grid; justify-items: center; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock strong { font-size: 1.75rem; font-weight: 650; line-height: 1; letter-spacing: -.045em; }
.clock span { color: var(--muted); font-size: .66rem; text-transform: capitalize; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.location-control { height: 54px; padding: 7px 10px 7px 15px; border: 1px solid var(--line); border-radius: 16px; display: grid; align-content: center; gap: 1px; background: rgba(255,255,255,.045); }
.location-control > span { color: var(--muted); font-size: .56rem; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.location-control select { min-width: 150px; padding: 0 25px 0 0; border: 0; color: #fff; background: transparent; font-size: .76rem; font-weight: 700; outline: 0; }
.icon-button { width: 50px; height: 50px; padding: 0; border: 1px solid var(--line); border-radius: 15px; display: grid; place-items: center; color: #cbd1d9; background: rgba(255,255,255,.045); }
.icon-button:hover { border-color: rgba(246,201,69,.35); color: #fff; background: rgba(246,201,69,.09); }

.floating-nav { width: 66px; padding: 6px; position: fixed; top: 50%; left: 12px; z-index: 60; transform: translateY(-50%); display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.115); border-radius: 20px; background: rgba(18,22,29,.84); backdrop-filter: saturate(170%) blur(26px); box-shadow: 0 20px 52px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.055); }
.nav-item { width: 100%; min-height: 54px; padding: 0; position: relative; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #89929f; background: transparent; transition: .2s ease; }
.nav-item span { display: none; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-item::after { content: ""; width: 5px; height: 18px; position: absolute; left: 3px; top: 50%; border-radius: 999px; opacity: 0; transform: translate(-5px,-50%) scale(.6); background: var(--orange); box-shadow: 0 0 12px rgba(246,201,69,.65); transition: .2s ease; }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.085); }
.nav-item.is-active::after { opacity: 1; transform: translate(0,-50%) scale(1); }

.content { width: calc(100% - 180px); max-width: 1260px; margin: 0 auto; padding: 36px 40px calc(60px + env(safe-area-inset-bottom)); }
.loading-bar { height: 2px; position: fixed; inset: 100px 0 auto; z-index: 70; overflow: hidden; background: rgba(255,255,255,.04); }
.loading-bar i { width: 32%; height: 100%; display: block; background: var(--orange); box-shadow: 0 0 16px rgba(246,201,69,.7); animation: loading 1s infinite ease-in-out; }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(420%); } }
.error-banner { margin: 0 0 20px; padding: 14px 16px; border: 1px solid rgba(255,105,72,.34); border-radius: 13px; color: #ffb09d; background: rgba(160,45,10,.16); font-size: .82rem; }
.demo-banner { margin: 0 0 18px; padding: 13px 16px; border: 1px solid rgba(246,201,69,.3); border-radius: 15px; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(246,201,69,.14), rgba(246,201,69,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.demo-banner > span { padding: 6px 9px; border-radius: 999px; color: #171308; background: var(--orange); font-size: .58rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.demo-banner > div { min-width: 0; display: grid; gap: 2px; }
.demo-banner strong { font-size: .76rem; }
.demo-banner small { color: #c7bd98; font-size: .66rem; line-height: 1.4; }
.section { min-height: calc(100vh - 196px); animation: page-enter .34s cubic-bezier(.22,1,.36,1) both; }
.section:not(.is-active) { display: none; }
.topic-section { margin-top: 0; padding-top: 0; border-top: 0; }
@keyframes page-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h1, .section-heading h2 { margin: 0; line-height: 1.08; letter-spacing: -.05em; }
.section-heading h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.section-heading h1 em { color: var(--orange); font-family: "Bradley Hand", "Segoe Print", cursive; font-size: .75em; font-weight: 500; font-style: normal; letter-spacing: .01em; }
.section-heading h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.section-heading > div > p:last-child { max-width: 630px; margin: 13px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.section-heading--hero { min-height: 210px; padding: 30px; border: 1px solid var(--line); border-radius: 25px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1b212b 0%, #12161d 62%, #0e1117 100%); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.section-heading--hero::after { content: ""; width: 320px; height: 320px; position: absolute; right: -110px; top: -190px; border: 70px solid rgba(246,201,69,.1); border-radius: 50%; pointer-events: none; }
.section-heading--hero > * { position: relative; z-index: 1; }
.report-controls { flex: none; display: grid; justify-items: end; gap: 9px; }
.range-switch { padding: 4px; display: flex; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,8,12,.46); }
.range-switch button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 720; }
.range-switch button.is-active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.sales-metric-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-card { min-height: 134px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; display: grid; align-content: space-between; background: rgba(20,25,33,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.metric-card > span { color: var(--muted); font-size: .65rem; font-weight: 740; letter-spacing: .04em; text-transform: uppercase; }
.metric-card strong { margin-top: 13px; font-size: 2.1rem; font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric-card small { margin-top: 6px; color: #727c89; font-size: .65rem; }
.metric-card small.is-positive { color: #71d890; }
.metric-card small.is-negative { color: #ff9c83; }
.metric-card--accent { border-color: rgba(246,201,69,.3); background: linear-gradient(145deg, rgba(246,201,69,.17), rgba(20,25,33,.88)); }
.insight-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.insight-card { min-height: 98px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 17px; display: grid; align-content: center; gap: 5px; background: rgba(10,13,18,.64); }
.insight-card > span { color: var(--muted); font-size: .59rem; font-weight: 740; letter-spacing: .04em; text-transform: uppercase; }
.insight-card strong { color: #fff; font-size: 1.15rem; font-weight: 730; letter-spacing: -.03em; }
.insight-card small { color: #747e8b; font-size: .6rem; line-height: 1.4; }

.location-performance-panel { margin: 14px 0; }
.location-performance-grid { padding: 18px 22px 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.performance-card { min-width: 0; min-height: 186px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; display: grid; align-content: space-between; gap: 18px; color: #fff; background: linear-gradient(145deg, rgba(28,34,44,.82), rgba(10,13,18,.76)); text-align: left; }
.performance-card.is-selected { border-color: rgba(246,201,69,.48); background: linear-gradient(145deg, rgba(246,201,69,.15), rgba(14,17,22,.86)); box-shadow: inset 0 0 0 1px rgba(246,201,69,.07); }
.performance-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.performance-card__head > span { min-width: 0; display: grid; gap: 4px; }
.performance-card__head small { color: #8993a0; font-size: .53rem; font-weight: 770; letter-spacing: .08em; text-transform: uppercase; }
.performance-card__head strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.performance-card__revenue { display: grid; gap: 4px; font-size: 1.65rem; font-weight: 730; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.performance-card__revenue small { color: #77818e; font-size: .57rem; font-weight: 600; letter-spacing: 0; }
.performance-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.performance-card__facts > span { min-width: 0; display: grid; gap: 4px; color: #707a86; font-size: .52rem; }
.performance-card__facts strong { overflow: hidden; color: #dfe3e8; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.8fr); gap: 14px; }
.dashboard-grid > *, .analysis-grid > *, .settings-grid > *, .finance-grid > *, .compliance-grid > * { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: rgba(20,25,33,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.16); }
.panel > header { padding: 20px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel h2, .panel h3 { margin: 0; letter-spacing: -.035em; }
.panel h2 { font-size: 1.25rem; }
.panel h3 { font-size: 1.05rem; }
.privacy-badge, .status-dot, .integration-state { padding: 6px 9px; border: 1px solid rgba(87,201,121,.25); border-radius: 999px; color: #84dfa0; background: rgba(87,201,121,.08); font-size: .58rem; font-weight: 760; white-space: nowrap; }
.status-dot::before { content: ""; width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(87,201,121,.1); }
.status-dot.is-planned, .integration-state { border-color: rgba(255,255,255,.13); color: #a1a9b4; background: rgba(255,255,255,.045); }
.status-dot.is-paused { border-color: rgba(255,105,72,.25); color: #ff9f87; background: rgba(255,105,72,.08); }
.trend-chart { height: 230px; padding: 28px 22px 16px; display: flex; align-items: end; gap: clamp(3px, .55vw, 8px); overflow: hidden; }
.trend-column { min-width: 3px; flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 2px; position: relative; }
.trend-column i { width: min(8px, 42%); min-height: 2px; border-radius: 999px 999px 2px 2px; background: #6c7480; transition: height .3s ease; }
.trend-column i:last-child { background: var(--orange); }
.trend-column:hover::after { content: attr(data-label); padding: 5px 7px; position: absolute; bottom: calc(100% + 4px); border: 1px solid var(--line); border-radius: 7px; z-index: 2; color: #fff; background: #080b10; font-size: .55rem; white-space: nowrap; }
.chart-legend { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: .62rem; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: #6c7480; }
.chart-legend .legend-orders { background: var(--orange); }
.status-list { padding: 18px 22px 22px; display: grid; gap: 1px; }
.status-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row span { color: var(--muted); font-size: .68rem; }
.status-row strong { font-size: .76rem; font-weight: 700; text-align: right; }

.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.sales-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.sales-grid > * { min-width: 0; }
.sales-trend-panel { grid-column: 1 / -1; }
.sales-trend { height: 240px; padding: 28px 22px 14px; display: flex; align-items: end; gap: clamp(4px, .7vw, 10px); }
.sales-day { min-width: 5px; height: 100%; flex: 1; display: flex; align-items: flex-end; gap: 3px; position: relative; }
.sales-day i { width: 62%; min-height: 2px; border-radius: 999px 999px 2px 2px; background: linear-gradient(180deg, #ffe272, #d7a411); }
.sales-day i:last-child { width: 38%; background: #667181; }
.sales-day:hover::after { content: attr(data-label); padding: 6px 8px; position: absolute; bottom: calc(100% + 5px); left: 50%; z-index: 4; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 8px; color: #fff; background: #080b10; font-size: .57rem; white-space: nowrap; }
.chart-legend .legend-revenue { background: var(--orange); }
.product-list, .payment-list, .order-list { padding: 18px 22px 22px; display: grid; gap: 1px; }
.product-row, .payment-row, .order-row { min-height: 54px; display: grid; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.product-row:last-child, .payment-row:last-child, .order-row:last-child { border-bottom: 0; }
.product-row { grid-template-columns: 28px minmax(0,1fr) auto; }
.product-row > i { color: #f8d66d; font-size: .68rem; font-style: normal; font-weight: 800; }
.product-row span, .order-row span { min-width: 0; display: grid; gap: 3px; }
.product-row strong, .order-row strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.product-row small, .order-row small { color: #707986; font-size: .58rem; }
.product-row > b, .payment-row > b, .order-row > b { font-size: .7rem; font-weight: 700; white-space: nowrap; }
.payment-row { grid-template-columns: minmax(90px,1fr) minmax(110px,1.3fr) auto; }
.payment-row > span { color: #d8dce2; font-size: .7rem; }
.payment-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.payment-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #d7a411, #ffe272); }
.hourly-chart { height: 218px; padding: 22px; display: flex; align-items: end; gap: 4px; }
.hour-bar { min-width: 4px; height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; }
.hour-bar i { width: 100%; min-height: 2px; border-radius: 5px 5px 2px 2px; background: #525d6b; transition: .2s ease; }
.hour-bar.is-peak i { background: var(--orange); box-shadow: 0 0 15px rgba(246,201,69,.2); }
.hour-bar span { color: #68717e; font-size: .48rem; transform: rotate(-55deg); transform-origin: center; }
.weekday-chart { height: 218px; padding: 22px; display: flex; align-items: end; gap: clamp(8px, 1.2vw, 18px); }
.weekday-bar { min-width: 0; height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; }
.weekday-bar > i { width: min(100%, 30px); min-height: 2px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #ffe272, #d7a411); }
.weekday-bar > strong { color: #cbd1d9; font-size: .6rem; }
.weekday-bar > small { color: #697381; font-size: .53rem; }
.mix-list { padding: 18px 22px 22px; display: grid; gap: 12px; }
.mix-row { min-height: 54px; display: grid; grid-template-columns: minmax(92px,.85fr) minmax(110px,1.5fr) auto; align-items: center; gap: 12px; }
.mix-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.mix-row strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.mix-row small { color: #747e8b; font-size: .57rem; }
.mix-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.mix-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #d7a411, #ffe272); }
.mix-row > b { min-width: 54px; display: grid; gap: 2px; font-size: .7rem; text-align: right; white-space: nowrap; }
.mix-row > b small { font-weight: 500; }
.recent-orders-panel { grid-column: 1 / -1; }
.order-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 28px; }
.order-row { grid-template-columns: 34px minmax(0,1fr) auto; }
.order-row > i { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: #f8d66d; background: var(--orange-soft); font-size: .66rem; font-style: normal; }
.finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.reconciliation-panel { grid-column: 1 / -1; }
.tax-summary { padding: 18px 22px 22px; display: grid; gap: 10px; }
.tax-row { min-height: 78px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(5,8,12,.28); }
.tax-row span { display: grid; gap: 5px; }
.tax-row strong { font-size: .78rem; }
.tax-row small { color: var(--muted); font-size: .63rem; }
.tax-row b { color: #f8d66d; font-size: .8rem; white-space: nowrap; }
.export-panel form { padding: 18px 22px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.export-panel label { display: grid; gap: 7px; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.export-panel input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(5,8,12,.48); color-scheme: dark; }
.export-panel .primary-button { grid-column: 1 / -1; }
.panel-note { margin: 10px 22px 22px; color: var(--muted); font-size: .65rem; line-height: 1.55; }
.release-badge { padding: 8px 12px; border: 1px solid rgba(255,105,72,.3); border-radius: 999px; color: #ffae98; background: rgba(255,105,72,.08); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.release-badge.is-ready { border-color: rgba(87,201,121,.3); color: #8ee0a6; background: rgba(87,201,121,.08); }
.release-hero { min-height: 180px; margin-bottom: 14px; padding: 28px; border: 1px solid rgba(255,105,72,.24); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 90% 0, rgba(255,105,72,.12), transparent 38%), linear-gradient(145deg, #1c2029, #11151b); }
.release-hero > div > span { color: #ff967d; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.release-hero h3 { margin: 8px 0 7px; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.release-hero p { max-width: 670px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.release-hero > strong { width: 100px; height: 100px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(5,8,12,.36); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.compliance-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 14px; }
.compliance-list { padding: 18px 22px 22px; display: grid; gap: 8px; }
.compliance-row { min-height: 56px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; background: rgba(5,8,12,.25); }
.compliance-row > i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #ffae98; background: rgba(255,105,72,.1); font-size: .72rem; font-style: normal; font-weight: 900; }
.compliance-row > span { font-size: .7rem; line-height: 1.4; }
.compliance-row > strong { color: #ffae98; font-size: .6rem; text-transform: uppercase; }
.compliance-row.is-complete > i { color: #8ee0a6; background: rgba(87,201,121,.1); }
.compliance-row.is-complete > strong { color: #8ee0a6; }
.funnel, .ranking, .device-list, .activity-list { padding: 20px 22px 22px; }
.funnel { display: grid; gap: 11px; }
.funnel-row { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(180px,1.7fr) 64px; align-items: center; gap: 12px; }
.funnel-label { display: grid; gap: 2px; }
.funnel-label strong { font-size: .74rem; }
.funnel-label small { color: #707a87; font-size: .58rem; }
.funnel-track { height: 30px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.045); }
.funnel-track i { min-width: 3px; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #d7a411, #ffe272); box-shadow: 0 0 18px rgba(246,201,69,.15); }
.funnel-row > strong { font-size: .78rem; text-align: right; font-variant-numeric: tabular-nums; }
.ranking { display: grid; gap: 13px; }
.rank-row { display: grid; grid-template-columns: minmax(100px,1fr) minmax(120px,1.3fr) 42px; align-items: center; gap: 12px; }
.rank-row > span { overflow: hidden; color: #d6dae0; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.055); }
.rank-track i { height: 100%; display: block; border-radius: inherit; background: #7c8693; }
.rank-row strong { font-size: .68rem; text-align: right; }
.donut-wrap { min-height: 195px; padding: 22px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; }
.donut { width: 142px; height: 142px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--orange) 0 var(--mobile), #596477 var(--mobile) calc(var(--mobile) + var(--tablet)), #343b47 calc(var(--mobile) + var(--tablet)) 100%); }
.donut::after { content: ""; width: 92px; height: 92px; position: absolute; border-radius: 50%; background: #151a22; }
.donut span { position: relative; z-index: 1; font-size: 1.25rem; font-weight: 700; }
.device-list { padding: 0; display: grid; gap: 14px; }
.device-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: .7rem; }
.device-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.device-item strong { color: #fff; font-size: .7rem; }
.activity-list { max-height: 220px; overflow: auto; display: grid; gap: 1px; }
.activity-row { min-height: 46px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row > i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #f8d66d; background: var(--orange-soft); font-size: .72rem; font-style: normal; }
.activity-row div { display: grid; gap: 2px; }
.activity-row strong { font-size: .68rem; }
.activity-row small, .activity-row time { color: #707986; font-size: .58rem; }
.empty-state { min-height: 140px; padding: 20px; display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; }

.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.location-card { min-height: 230px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(28,34,44,.96), rgba(17,21,28,.96)); }
.location-card::after { content: attr(data-number); position: absolute; right: 12px; bottom: -22px; color: rgba(255,255,255,.035); font-size: 7.5rem; font-weight: 800; letter-spacing: -.1em; pointer-events: none; }
.location-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.location-card h3 { margin: 18px 0 4px; font-size: 1.55rem; letter-spacing: -.045em; }
.location-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.location-card footer { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.location-card footer span { display: grid; gap: 3px; color: #737d89; font-size: .58rem; }
.location-card footer strong { color: #d9dde3; font-size: .72rem; }
.location-card button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(255,255,255,.055); font-size: .65rem; font-weight: 700; }

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.form-panel { padding-bottom: 22px; }
.form-panel > header { margin-bottom: 18px; }
.form-panel > header > svg { color: #818a96; }
.form-panel > label:not(.switch-row) { margin: 0 22px 14px; display: grid; gap: 7px; color: #89929f; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.form-panel input, .form-panel select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(5,8,12,.48); font-size: .76rem; text-transform: none; outline: 0; }
.form-panel input:focus, .form-panel select:focus { border-color: rgba(246,201,69,.55); box-shadow: 0 0 0 4px rgba(246,201,69,.08); }
.switch-row { min-height: 70px; margin: 8px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row > span { display: grid; gap: 4px; }
.switch-row strong { font-size: .75rem; }
.switch-row small { max-width: 240px; color: #737d8a; font-size: .6rem; line-height: 1.45; }
.switch-row input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.switch-row i { width: 48px; height: 28px; flex: none; border-radius: 999px; position: relative; background: #3a424e; transition: .2s ease; }
.switch-row i::after { content: ""; width: 22px; height: 22px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: .2s ease; }
.switch-row input:checked + i { background: var(--orange); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 3px; }
.integration-state.is-connected { border-color: rgba(87,201,121,.25); color: #84dfa0; background: rgba(87,201,121,.08); }
.integration-note { min-height: 108px; margin: 18px 22px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 11px; color: var(--muted); background: rgba(5,8,12,.3); }
.integration-note svg { width: 20px; height: 20px; flex: none; color: #f8d66d; }
.integration-note p { margin: 0; font-size: .65rem; line-height: 1.55; }
.secondary-button, .primary-button { min-height: 48px; padding: 0 16px; border-radius: 13px; font-size: .7rem; font-weight: 750; }
.secondary-button { margin: 0 22px; border: 1px solid var(--line); color: #fff; background: rgba(255,255,255,.05); }
.primary-button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #171308; background: linear-gradient(135deg,#ffe272,#efb91f); box-shadow: 0 13px 30px rgba(246,193,43,.2); font-weight: 800; }
.save-bar { min-height: 74px; margin-top: 14px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; bottom: 12px; z-index: 10; background: rgba(18,22,29,.9); backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.save-bar p { margin: 0; color: var(--muted); font-size: .68rem; }
.save-bar p.is-success { color: #84dfa0; }

@media (max-width: 1050px) {
  .content { width: calc(100% - 120px); padding-inline: 22px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid .form-panel:first-child { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .sales-metric-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .location-performance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: #0b0e13; }
  .auth-card { width: min(100%, 430px); min-height: min(690px, calc(100dvh - 32px)); padding: 28px 22px; grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .auth-mark { width: 76px; height: 76px; margin-bottom: 17px; }
  .auth-card h1 { font-size: 2rem; }
  .auth-intro > p:last-child { margin-top: 10px; font-size: .8rem; }
  .auth-security { grid-column: 1; margin-top: 0; }
  .pin-keypad button { width: 56px; height: 56px; min-height: 56px; }

  .topbar { height: 82px; padding: 13px 15px; }
  .brand { width: 45px; height: 45px; }
  .clock strong { font-size: 1.4rem; }
  .clock span { font-size: .56rem; }
  .location-control { height: 45px; padding: 5px 9px; }
  .location-control > span { display: none; }
  .location-control select { min-width: 0; max-width: 118px; padding-right: 17px; font-size: .67rem; }
  .icon-button { width: 44px; height: 44px; }
  .floating-nav { width: calc(100vw - 22px); max-width: none; padding: 5px; inset: auto 11px calc(9px + env(safe-area-inset-bottom)); transform: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-radius: 18px; }
  .nav-item { min-width: 0; min-height: 49px; padding: 4px 3px; flex-direction: column; gap: 2px; font-size: .51rem; }
  .nav-item span { display: block; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item:hover { transform: none; }
  .nav-item::after { width: 20px; height: 4px; left: 50%; top: auto; bottom: 2px; transform: translate(-50%, 5px) scale(.6); }
  .nav-item.is-active::after { transform: translate(-50%, 0) scale(1); }
  .content { width: 100%; padding: 20px 14px calc(142px + env(safe-area-inset-bottom)); }
  .loading-bar { top: 82px; }
  .section { min-height: calc(100vh - 176px); }
  .section-heading { display: grid; align-items: start; }
  .section-heading--hero { min-height: 0; padding: 23px; display: grid; align-items: start; }
  .section-heading--hero::after { width: 230px; height: 230px; right: -110px; top: -150px; border-width: 50px; }
  .section-heading h1 { font-size: 2.65rem; }
  .section-heading h2 { font-size: 2rem; }
  .report-controls { width: 100%; justify-items: start; }
  .range-switch { width: max-content; max-width: 100%; margin-top: 0; }
  .metric-grid, .sales-metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 120px; padding: 16px; border-radius: 17px; }
  .metric-card strong { font-size: 1.8rem; }
  .dashboard-grid, .analysis-grid, .sales-grid, .finance-grid, .compliance-grid, .location-grid, .settings-grid { grid-template-columns: 1fr; }
  .sales-trend-panel, .recent-orders-panel { grid-column: auto; }
  .reconciliation-panel { grid-column: auto; }
  .order-list { grid-template-columns: 1fr; }
  .settings-grid .form-panel:first-child { grid-column: auto; }
  .trend-chart { height: 190px; padding-inline: 15px; }
  .funnel-row { grid-template-columns: minmax(100px,.9fr) minmax(110px,1.4fr) 48px; gap: 8px; }
  .funnel-row > strong { font-size: .68rem; }
  .donut-wrap { grid-template-columns: 130px 1fr; padding-inline: 18px; }
  .donut { width: 126px; height: 126px; }
  .donut::after { width: 82px; height: 82px; }
  .location-card { min-height: 190px; }
  .release-hero { padding: 22px; }
  .release-hero > strong { width: 78px; height: 78px; font-size: 1.25rem; }
  .save-bar { bottom: calc(126px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .topbar { grid-template-columns: 46px 1fr auto; }
  .clock { justify-self: start; margin-left: 8px; }
  .location-control select { max-width: 105px; }
  .icon-button { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .sales-metric-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 108px; }
  .metric-card strong { margin-top: 8px; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .device-list { width: 100%; }
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-bar .primary-button { width: 100%; }
  .release-hero { align-items: flex-start; flex-direction: column; }
  .export-panel form { grid-template-columns: 1fr; }
  .export-panel .primary-button { grid-column: auto; }
  .tax-row { align-items: flex-start; flex-direction: column; }
  .location-performance-grid { padding-inline: 16px; }
  .performance-card__facts { grid-template-columns: 1fr 1fr; }
  .mix-row { grid-template-columns: 1fr auto; }
  .mix-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 360px) {
  .nav-item { padding-inline: 2px; font-size: .48rem; }
  .funnel, .ranking, .activity-list { padding-inline: 15px; }
  .funnel-row { grid-template-columns: 86px minmax(54px, 1fr) 42px; gap: 6px; }
  .funnel-label strong { font-size: .65rem; }
  .funnel-label small { display: none; }
  .funnel-row > strong { font-size: .58rem; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .auth-shell { padding: 12px; }
  .auth-card { width: min(100%, 900px); min-height: calc(100dvh - 24px); padding: 18px 32px; grid-template-columns: .8fr 1.2fr; gap: 24px; }
  .auth-mark { width: 58px; height: 58px; margin-bottom: 9px; }
  .auth-card h1 { font-size: 1.65rem; }
  .auth-intro > p:last-child { margin-top: 6px; font-size: .7rem; }
  .pin-display { min-height: 42px; padding-block: 9px; }
  .pin-help { margin-block: 5px 7px; }
  .pin-keypad { width: 230px; gap: 5px 10px; }
  .pin-keypad button { width: 44px; height: 44px; min-height: 44px; font-size: 1rem; }
  .login-submit { min-height: 42px; margin-top: 8px; }
  .auth-security { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }
  .app-shell .floating-nav { padding: 4px; }
  .app-shell .nav-item { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Kaufmännisches Cockpit 2026-10-25 */
.topbar { min-height: 104px; height: auto; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
.global-filters { justify-self: center; display: flex; align-items: end; justify-content: center; gap: 9px; flex-wrap: wrap; }
.filter-control, .custom-range label { min-width: 150px; min-height: 54px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 15px; display: grid; align-content: center; gap: 2px; background: rgba(255,255,255,.045); }
.filter-control > span, .custom-range label > span { color: var(--muted); font-size: .54rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.filter-control select, .custom-range input { min-width: 0; width: 100%; padding: 0 22px 0 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: .72rem; font-weight: 720; color-scheme: dark; }
.custom-range { display: flex; align-items: end; gap: 7px; }
.custom-range label { min-width: 132px; }
.custom-range button { min-height: 54px; padding: 0 14px; border: 1px solid rgba(246,201,69,.34); border-radius: 15px; color: #171308; background: var(--orange); font-size: .66rem; font-weight: 800; }
.top-actions .clock { justify-items: end; }
.top-actions .clock strong { font-size: 1.25rem; }
.top-actions .clock span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-nav { width: 92px; left: 10px; }
.nav-item { min-height: 48px; padding: 4px 7px; }
.nav-item span { display: block; overflow: hidden; font-size: .54rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.content { width: calc(100% - 210px); max-width: 1360px; }
.data-stamp { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(5,8,12,.36); font-size: .6rem; white-space: nowrap; }
.metric-card--muted { border-style: dashed; background: rgba(20,25,33,.52); }
.metric-card--muted strong { color: #8b94a0; }
.metric-detail { width: max-content; margin-top: 8px; padding: 0; border: 0; color: #d6bb60; background: transparent; font-size: .58rem; font-weight: 750; }
.metric-explanation { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: #9ba4b0; font-size: .62rem; line-height: 1.45; }
.alert-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.alert-card { min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 10px; background: rgba(20,25,33,.75); }
.alert-card > i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #f8d66d; background: var(--orange-soft); font-size: .68rem; font-style: normal; font-weight: 900; }
.alert-card > span { min-width: 0; display: grid; gap: 3px; }
.alert-card strong { font-size: .7rem; }
.alert-card small { color: var(--muted); font-size: .61rem; line-height: 1.45; }
.alert-card.is-warning { border-color: rgba(255,105,72,.24); }
.alert-card.is-warning > i { color: #ffab96; background: rgba(255,105,72,.1); }
.dashboard-grid--wide { grid-template-columns: minmax(0, 2fr) minmax(280px, .7fr); }
.comparison-stack { padding: 18px 22px 22px; display: grid; gap: 8px; }
.comparison-row { min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(5,8,12,.25); }
.comparison-row span { color: var(--muted); font-size: .65rem; }
.comparison-row strong { font-size: .82rem; }
.comparison-row.is-primary { border-color: rgba(246,201,69,.3); background: var(--orange-soft); }
.insight-list { padding: 18px 22px 22px; display: grid; gap: 9px; }
.insight-row { min-height: 60px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; background: rgba(5,8,12,.25); }
.insight-row i { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: #f8d66d; background: var(--orange-soft); font-size: .65rem; font-style: normal; }
.insight-row p { margin: 0; color: #d8dce2; font-size: .7rem; line-height: 1.5; }
.status-row .is-ok { color: #84dfa0; }
.status-row .is-open { color: #ffae98; }
.gap-card { min-height: 190px; padding: 22px; display: grid; align-content: center; justify-items: start; gap: 8px; }
.gap-card > span { padding: 5px 8px; border: 1px solid rgba(255,105,72,.24); border-radius: 999px; color: #ffae98; background: rgba(255,105,72,.08); font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.gap-card strong { font-size: 1.05rem; letter-spacing: -.025em; }
.gap-card p { max-width: 560px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.heatmap-panel { grid-column: 1 / -1; overflow: auto; }
.sales-heatmap { min-width: 760px; padding: 18px 22px 24px; display: grid; grid-template-columns: 36px repeat(12, minmax(42px, 1fr)); gap: 5px; align-items: center; }
.heatmap-corner { height: 20px; }
.heatmap-hour, .heatmap-day { color: #747e8b; font-size: .54rem; text-align: center; }
.heatmap-day { text-align: left; }
.heatmap-cell { height: 34px; border: 1px solid rgba(246,201,69, calc(var(--intensity) * .7)); border-radius: 7px; display: grid; place-items: center; background: rgba(246,201,69, var(--intensity)); }
.heatmap-cell i { color: rgba(255,255,255,.86); font-size: .52rem; font-style: normal; }
.finance-grid--expanded { grid-template-columns: repeat(2, minmax(0,1fr)); }
.expense-entry-panel { grid-column: 1 / -1; }
.expense-form { padding: 18px 22px 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.expense-form label { display: grid; gap: 7px; color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.expense-form input, .expense-form select { width: 100%; min-height: 47px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(5,8,12,.48); color-scheme: dark; outline: 0; }
.span-2 { grid-column: 1 / -1; }
.save-status { margin: 0; color: var(--muted); font-size: .63rem; line-height: 1.45; }
.save-status.is-success { color: #84dfa0; }
.save-status.is-error { color: #ffae98; }
.data-notice { margin: 0 0 14px; padding: 14px 16px; border: 1px solid rgba(246,201,69,.24); border-radius: 15px; display: grid; gap: 4px; background: rgba(246,201,69,.07); }
.data-notice strong { color: #f8d66d; font-size: .7rem; }
.data-notice span { color: #a9a28b; font-size: .64rem; line-height: 1.45; }
.settings-actions { min-height: 74px; margin-top: 14px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; bottom: 12px; z-index: 10; background: rgba(18,22,29,.92); backdrop-filter: blur(20px); }
.release-hero > div:first-child { min-width: 105px; display: grid; gap: 8px; }
.release-hero > div:first-child strong { font-size: 1.8rem; }

@media (max-width: 1180px) {
  .content { width: calc(100% - 145px); padding-inline: 22px; }
  .global-filters { justify-content: flex-start; }
  .filter-control { min-width: 132px; }
  .top-actions .clock { display: none; }
}

@media (max-width: 760px) {
  .topbar { padding: 11px 13px; grid-template-columns: 46px minmax(0,1fr) 44px; gap: 8px; }
  .global-filters { grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .filter-control { min-width: 0; min-height: 46px; padding: 5px 9px; }
  .custom-range { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; }
  .custom-range label { min-width: 0; min-height: 46px; }
  .custom-range button { min-height: 46px; }
  .top-actions { grid-column: 3; grid-row: 1; }
  .floating-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(66px, 1fr); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: inline proximity; }
  .floating-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-height: 53px; scroll-snap-align: center; }
  .nav-item span { font-size: .5rem; }
  .content { width: 100%; }
  .alert-grid, .dashboard-grid--wide, .finance-grid--expanded { grid-template-columns: 1fr; }
  .heatmap-panel, .expense-entry-panel { grid-column: auto; }
  .expense-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .data-stamp { white-space: normal; }
  .settings-actions { bottom: calc(84px + env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; }
  .settings-actions .primary-button { width: 100%; }
}

@media (max-width: 420px) {
  .topbar { grid-template-columns: 46px 1fr 44px; }
  .top-actions .icon-button { display: grid; }
  .custom-range { grid-template-columns: 1fr 1fr; }
  .custom-range button { grid-column: 1 / -1; }
  .nav-item span { transform: none; }
  .alert-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: minmax(76px, .9fr) minmax(64px, 1.2fr) 32px; gap: 8px; }
  .section-heading--hero { padding: 20px; }
}
