/* Shared Z3RA interface: quiet dark surfaces, clear hierarchy, blue actions. */
:root {
  color-scheme: dark;
  --bg: #080d17; --bg-card: #101927; --bg-rail: #0b121e; --bg-hover: #172337;
  --bg-input: #0b1320; --bg-elevated: #152237; --surface: #101927; --surface-2: #17263c;
  --text: #f1f5fc; --muted: #b2c0d3; --dim: #94a6bd;
  --accent: #60b8ff; --accent-dk: #3094e7; --accent-glow: #429cff24;
  --border: #26374c; --border-card: #26374c; --border-soft: #26374c;
  --line: #26374c; --line-2: #3c506a; --green: #66e3b7; --red: #ff939e;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; }
button,input,select,textarea { font: inherit; }
h1,h2,h3 { text-wrap: balance; line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
p { text-wrap: pretty; }
a { text-underline-offset: .22em; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
:where(button,.btn,[role=button]) { min-height: 44px; touch-action: manipulation; }
button:disabled { opacity: .55; cursor: wait; }
:where(.input,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-input); color: var(--text); padding: .7rem .85rem; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder,textarea::placeholder { color: var(--dim); opacity: 1; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 28px #00000012; }
.card-hover { transition: border-color .18s, transform .18s, box-shadow .18s; }
.card-hover:hover { border-color: #4b8bc1; transform: translateY(-3px); box-shadow: 0 12px 32px #00000035; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px; font-weight: 650; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn-primary { background: #2c8dde; border: 1px solid #53aaf0; color: #fff; box-shadow: inset 0 1px #ffffff18; }
.btn-primary:hover { background: #227bc7; }
.btn-secondary { background: #17253a; border: 1px solid #354a66; color: var(--text); }
.btn-ghost { color: var(--muted); }
.btn-sm { min-height: 40px; }
.btn-icon { min-width: 44px; }
.eyebrow { display: block; color: var(--accent); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; font-weight: 700; margin-bottom: 1rem; }
.store-hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 3rem; padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.store-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 14ch; margin: 0 0 1.3rem; font-weight: 750; line-height: 1.04; }
.store-hero h1 span { color: var(--accent); }
.store-hero p { color: var(--muted); max-width: 48ch; margin: 0 0 1.8rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-note { color: var(--dim); font-size: .8rem; margin-top: 1rem; }
.hero-panel { padding: 1.8rem; border: 1px solid #315170; border-radius: 22px; background: linear-gradient(145deg,#172b44,#0d1726); position: relative; }
.hero-panel .panel-mark { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: #2188dc; color: white; font-size: 1.5rem; font-weight: 800; letter-spacing: -.08em; margin-bottom: 2rem; }
.hero-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.hero-steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.hero-steps li { counter-increment: steps; display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-top: 1px solid #35516d; color: var(--muted); font-size: .9rem; }
.hero-steps li::before { content: '0' counter(steps); font-variant-numeric: tabular-nums; color: var(--accent); font-size: .75rem; font-weight: 700; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: 1.5rem; }
.empty-state { max-width: 680px; margin: 2rem auto; padding: 3rem 2rem; text-align: center; background: var(--bg-card); border: 1px dashed #3d5572; border-radius: 18px; }
.empty-state h1,.empty-state h2 { margin: 0 0 1rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }
.empty-state .btn { margin: .25rem; }
.product-tile .product-art { aspect-ratio: 4/3; display: grid; place-items: center; padding: 2rem; background: linear-gradient(160deg,#1b2c43,#101b2b); border-bottom: 1px solid var(--border); }
.product-art img { width: 100%; height: 100%; max-height: 140px; object-fit: contain; }
.product-tile .product-info { padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product-tile .product-name { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.product-tile .product-meta { color: var(--dim); font-size: .8rem; }
.product-tile .product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.product-tile .product-price { font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.badge { border-radius: 6px; padding: .25rem .55rem; line-height: 1.4; }
.delivery-unit { padding: .9rem; border: 1px solid #31534b; border-radius: 10px; margin: .6rem 0; }
.delivery-unit pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.rail { background: var(--bg-rail); border-right: 1px solid var(--border); }
.rail-brand { min-height: 88px; }
.rail-brand .mark { color: var(--accent); }
.rail-link { margin: .2rem .65rem; border-radius: 8px; min-height: 44px; border-left: 0; }
.rail-link.is-active { background: #17324e; color: #9ed3ff; border-left: 0; }
.rail-section { color: var(--dim); }
.topbar { background: #0b121eea; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.main .stat,.stat-card { border-radius: 14px; background: var(--bg-card); border-color: var(--border); }
.main table { font-variant-numeric: tabular-nums; }
.main table th { color: var(--dim); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: #0c1523; }
.main table td { border-color: var(--border); }
.main .table-wrap { border-radius: 14px; border: 1px solid var(--border); overflow-x: auto; }
.main .btn { white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 999; background: #2188dc; color: white; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.mini-app { max-width: 760px; margin: auto; }
.mini-app .top { padding: 1.5rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.mini-app .card { border-radius: 14px; }
.mini-app .tag { color: var(--muted); }
.mini-app .sheet { background: var(--bg-card); border: 1px solid var(--line-2); }
.mini-app .btn { background: #2589da; }
.mini-app .sec { font-size: .75rem; color: var(--muted); }
@media (max-width: 700px) {
  .store-hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0 2rem; }
  .store-hero h1 { max-width: 16ch; }
  .hero-panel { padding: 1.4rem; }
  .hero-panel .panel-mark { margin-bottom: 1rem; }
  .product-tile .product-art { padding: 1.2rem; }
  .product-tile .product-info { padding: .85rem; }
  .main { min-width: 0; }
  .main .card { padding: 1rem; }
  input,select,textarea { font-size: 16px; }
  footer { margin-top: 3rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 720px) {
  .main .page-head { flex-direction: column; align-items: stretch; gap: 1rem; }
  .main .page-actions { align-self: flex-start; }
  .main .stat-grid { min-width: 0; }
  .main .stat-cell { padding-right: .6rem; }
  .main .table-wrap { max-width: 100%; overflow-x: auto; }
  .main .tabs { flex-wrap: wrap; }
}
.shell > div { min-width: 0; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } }
