/* 
ODG · pages/user/home.css
Page styles for app/user/home.html. Base rules and their mobile (@media) overrides are grouped per selector.
 */

/* Card Container Gaps & Grid Utilities (At least 1rem gap everywhere) */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem
}

.card-vendor-minimal {
  margin-bottom: 1rem
}

/* 2. Vertical Hero Vendor Card */

.card-vendor-minimal {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  gap: 8px
}

.status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px
}

.status-id {
  color: var(--color-text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.status-id i, .status-id svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
  flex-shrink: 0
}

.status-badge {
  color: var(--color-brand-red);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 10px
}

.status-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2px
}

.status-action {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-brand-red);
  margin-top: 4px
}

.view {display:none
}

.view.is-on {display:block
}

.home-list {display:flex;flex-direction:column;gap:18px
}

.home-list-row {
  display:grid;
  grid-template-columns:112px 1fr;
  gap:18px 20px;
  align-items:start;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0
}

.home-list-row img {
  width:112px;height:112px;object-fit:cover;border-radius:0;
  background:#1a1715
}

.home-list-row div {
  min-width:0;
  padding-top:6px;
  display:flex;
  flex-direction:column;
  gap:14px
}

.home-list-row strong {
  display:block;
  font-size:18px;
  letter-spacing:-.03em;
  font-weight:600;
  line-height:1.2
}

.home-list-row span {
  display:block;
  color:#8a8480;
  font-size:14px;
  line-height:1.35;
  max-width:28ch
}

.home-list-row em {display:none
}

.home-list-row b {
  grid-column:2;
  color:#ff1a1a;
  font-size:14px;
  font-weight:600;
  margin-top:-8px
}

/* Toggle switch rows remain 2-column flex row */

.set-row.set-row-toggle, .set-row:has(.switch) {
  flex-direction:row !important;
  justify-content:space-between !important;
  align-items:center !important
}

/* Activity and alert feed rows remain flex rows */

.alert-feed .set-row, .wallet-activity .set-row {
  flex-direction:row !important;
  justify-content:space-between !important;
  align-items:center !important
}

@media (max-width:800px) {

  .home-list-row {grid-template-columns:56px 1fr auto
  }
}

.ai-box {
  background:#12100f;border:1px solid #282525;border-radius:16px;padding:18px;max-width:560px
}

/* Editorial list rows */

.home-list-row {border-radius:8px
}

.home-list-row img {transition:filter .25s ease
}

.home-list-row:hover img {filter:brightness(1.12)
}

@media (max-width:800px) {

/* Mobile fixes */

.home-list-row img {width:56px;height:56px
  }
}

.set-row em.credit {color:#8fd48a;font-weight:600
}

.set-row em.debit {color:#f7f5f1;font-weight:600
}

.home-list-row b {font-variant-numeric:tabular-nums
}

/* Alert feed read state */

.alert-feed {transition:opacity .3s ease
}

.alert-feed.is-read {opacity:.45
}

/* Settings toggle switches (persisted client-side) */

.switch {position:relative;display:inline-block;width:42px;height:24px;flex-shrink:0;align-self:center
}

.switch input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1
}

.switch i {
  position:absolute;inset:0;pointer-events:none;
  background:#211d1b;border:1px solid #342f2d;border-radius:999px;
  transition:background .2s ease,border-color .2s ease
}

.switch i::after {
  content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:#77747b;transition:transform .2s ease,background .2s ease
}

.switch input:checked + i {background:#ff1a1a;border-color:#ff1a1a
}

.switch input:checked + i::after {transform:translateX(18px);background:#fff
}

.switch input:focus-visible + i {outline:2px solid #ff1a1a;outline-offset:2px
}

/* AI box hint chips sit tighter */

.ai-box .chip-row {margin:2px 0 0
}

.ai-box .button {align-self:flex-start
}

/* Alerts feed: fit to content, left-aligned, 1rem rhythm */

.alert-feed {width:fit-content;max-width:640px
}

.alert-feed .set-row {
  justify-content:flex-start;
  align-items:baseline;
  gap:4px 1rem;          /* 1rem between title and meta, tidy wrap on phones */
  flex-wrap:wrap
}

.gap-t-18 {margin-top:18px
}

.gap-act {margin:10px 0 18px
}

/* ============================================================
   Carousel Components (Style 02 for Top Hero, Style 03 for Cravings)
   ============================================================ */

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch
}

.carousel-track::-webkit-scrollbar { display: none
}

.carousel-card {
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  text-decoration: none;
  color: #fff;
  transition: border-color 0.15s ease
}

.carousel-card:hover {
  border-color: var(--color-border-strong)
}

/* STYLE 02 (Top Hero Section) */

.card-style-02 {
  flex: 0 0 280px;
  height: 200px;
  border-radius: 16px
}

.card-style-02 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(13, 13, 13, 0.95) 90%)
}

.floating-top-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 3
}

.card-content-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.style-02-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.style-01-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2
}

.style-01-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px
}

.style-01-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff
}

/* STYLE 03 (Cravings Section) */

.card-style-03 {
  flex: 0 0 310px;
  height: 160px;
  border-radius: 14px;
  display: flex;
  flex-direction: row
}

.style-03-img-half {
  width: 45%;
  height: 100%;
  position: relative;
  flex-shrink: 0
}

.style-03-img-half img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Craving cards whose top dish has no uploaded photo get a calm brand panel
   with a watermark icon - never an unrelated stock photo. */
.craving-panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 130% at 82% 8%, rgba(255, 26, 26, 0.14) 0%, rgba(255, 26, 26, 0) 55%),
    radial-gradient(90% 90% at 12% 96%, rgba(255, 26, 26, 0.08) 0%, rgba(255, 26, 26, 0) 50%),
    linear-gradient(155deg, #201a17 0%, #14100e 58%, #0d0b0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.card-style-02 > .craving-panel .lucide {
  width: 84px;
  height: 84px;
  color: rgba(255, 255, 255, 0.13);
  stroke-width: 1.1;
  transform: rotate(-8deg)
}

.card-style-03 .style-03-img-half .craving-panel .lucide {
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.16);
  stroke-width: 1.1;
  transform: rotate(-8deg)
}

.style-03-info-half {
  width: 55%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-bg-elevated)
}

/* Wallet activity: compact width, left-aligned, column gap */

/* Wallet View Compact Sizing */

.wallet-card-compact {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 16px 20px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.wallet-card-compact .metric-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  text-transform: uppercase
}

.wallet-card-compact .metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em
}

.wallet-card-compact .metric-sub {
  font-size: 11px;
  color: var(--color-text-muted)
}

.button-sm {
  padding: 7px 14px !important;
  font-size: 12px !important
}

.wallet-activity {
  max-width: 360px
}

.wallet-activity .set-row {
  justify-content:flex-start;align-items:baseline;
  gap:4px 1.5rem;flex-wrap:wrap
}

/* Cravings only: keep the existing card design, but show every option as a
   vertical list instead of making the user swipe a horizontal carousel. */
.cravings-list {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  width:100%;
  overflow:visible;
  padding-bottom:0;
}

.cravings-list {
  align-items:flex-start;
}
.cravings-list .card-style-03 {
  flex:0 0 auto;
  width:clamp(16rem,25vw,18rem);
  max-width:100%;
  height:148px;
}

@media (max-width:800px) {
  .cravings-list {align-items:stretch;gap:10px}
  .cravings-list .card-style-03 {
    width:100%;
    height:132px;
  }
}

/* Orders need a deliberate pause before their empty state rather than reading
   as a continuation of the heading. */
#view-orders .set-name {margin-bottom:32px}

/* The lower half of an empty Orders view is a calm illustrated surface rather
   than unused black space. This is only inserted for the true empty state. */
#orders-list.is-empty {
  display:flex;
  flex-direction:column;
  min-height:calc(100svh - 350px);
}

#orders-list.is-empty .empty {
  position:relative;
  z-index:1;
}

.orders-empty-doodles {
  position:relative;
  flex:1 1 auto;
  min-height:260px;
  margin-top:26px;
  overflow:hidden;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 18%,#000 80%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 18%,#000 80%,transparent 100%);
}

.orders-doodle {
  position:absolute;
  width:clamp(58px,10vw,94px);
  height:auto;
  opacity:.2;
  filter:brightness(0) saturate(100%) invert(93%) sepia(15%) saturate(355%) hue-rotate(336deg) brightness(102%) contrast(89%);
}
.orders-doodle[data-doodle="0"] {top:3%;left:1%;transform:rotate(-21deg)}
.orders-doodle[data-doodle="1"] {top:0;left:26%;transform:rotate(16deg)}
.orders-doodle[data-doodle="2"] {top:5%;left:53%;transform:rotate(-12deg)}
.orders-doodle[data-doodle="3"] {top:1%;left:78%;transform:rotate(18deg)}
.orders-doodle[data-doodle="4"] {top:28%;left:-2%;transform:rotate(13deg)}
.orders-doodle[data-doodle="5"] {top:25%;left:21%;transform:rotate(-20deg)}
.orders-doodle[data-doodle="6"] {top:30%;left:46%;transform:rotate(18deg)}
.orders-doodle[data-doodle="7"] {top:25%;left:73%;transform:rotate(-14deg)}
.orders-doodle[data-doodle="8"] {top:53%;left:7%;transform:rotate(10deg)}
.orders-doodle[data-doodle="9"] {top:57%;left:32%;transform:rotate(-18deg)}
.orders-doodle[data-doodle="10"] {top:52%;left:58%;transform:rotate(14deg)}
.orders-doodle[data-doodle="11"] {top:57%;left:84%;transform:rotate(-10deg)}
.orders-doodle[data-doodle="12"] {top:78%;left:0;transform:rotate(-16deg)}
.orders-doodle[data-doodle="13"] {top:76%;left:25%;transform:rotate(21deg)}
.orders-doodle[data-doodle="14"] {top:80%;left:52%;transform:rotate(-12deg)}
.orders-doodle[data-doodle="15"] {top:76%;left:77%;transform:rotate(15deg)}

@media (max-width:800px) {
  #orders-list.is-empty {min-height:calc(100svh - 330px)}
  .orders-empty-doodles {min-height:320px;margin-top:22px}
  .orders-doodle {width:clamp(54px,17vw,84px);opacity:.16}
}

/* Customer discovery -------------------------------------------------------
   Food-first hierarchy for the home surface. Existing data hooks and hash
   views remain unchanged; these styles only compose them intentionally. */
.customer-topbar {display:none}
.customer-account-tools {display:none}
.customer-discovery-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--space-4);
}
.customer-discovery-header .home-kicker {
  display:inline-flex;
  align-items:center;
  gap:var(--space-2);
  margin-bottom:var(--space-3);
  color:var(--color-text-muted);
}
.customer-discovery-header .home-kicker .lucide {width:14px;height:14px;margin:0;color:var(--color-brand-red)}
.customer-discovery-title {
  max-width:14ch;
  color:var(--color-text);
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1.02;
  letter-spacing:-.055em;
}
.customer-location-link {
  display:inline-flex;
  align-items:center;
  gap:var(--space-1);
  min-height:2.5rem;
  color:var(--color-text-muted);
  font:600 .75rem/1 var(--font-mono);
  text-decoration:none;
}
.customer-location-link:hover {color:var(--color-text)}
.customer-location-link .lucide {width:14px;height:14px;margin:0;color:var(--color-brand-red)}
.customer-search-launcher {
  display:flex;
  align-items:center;
  gap:var(--space-3);
  min-height:3rem;
  margin-top:var(--space-5);
  padding:0 var(--space-4);
  border:1px solid var(--color-border-strong);
  border-radius:var(--radius-md);
  background:var(--color-surface-muted);
  color:var(--color-text-muted);
  font-size:.875rem;
  text-decoration:none;
  transition:border-color var(--transition-fast),background-color var(--transition-fast),color var(--transition-fast);
}
.customer-search-launcher:hover {border-color:#555;background:var(--color-bg-elevated-2);color:var(--color-text)}
.customer-search-launcher .lucide {width:17px;height:17px;margin:0;color:var(--color-brand-red)}
.customer-search-launcher .lucide:last-child {margin-left:auto;color:var(--color-text-dim)}
#view-for-you > .carousel-track {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  overflow:visible;
  margin-top:var(--space-5);
  padding:0;
}
#view-for-you > .carousel-track .card-style-02 {width:100%;height:15rem;flex:none}
#view-for-you .style-01-meta {gap:var(--space-3)}
#view-for-you .style-01-meta span:first-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-for-you .style-01-price {display:inline-flex;align-items:center;gap:var(--space-1);white-space:nowrap}
#view-for-you .style-01-price .lucide {width:13px;height:13px;margin:0}
#view-for-you .home-section-head {margin:var(--space-8) 0 var(--space-3)}
#view-for-you .home-section-head h3 {display:flex;align-items:center;gap:var(--space-2);font-size:1.375rem}
#view-for-you .home-section-head h3 .lucide {width:18px;height:18px;margin:0;color:var(--color-brand-red)}
#near-you {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap:var(--space-3);
}
#near-you .card-vendor-minimal {
  min-height:8.5rem;
  margin:0;
  padding:var(--space-4);
  border-radius:var(--radius-lg);
  gap:var(--space-3);
  text-decoration:none;
  color:var(--color-text);
  transition:border-color var(--transition-fast),background-color var(--transition-fast),transform var(--transition-fast);
}
#near-you .card-vendor-minimal:hover {border-color:#4a4540;background:var(--color-bg-elevated-2);transform:translateY(-1px)}
#near-you .vendor-top {display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3)}
#near-you .vendor-name {font-size:1rem;line-height:1.2}
#near-you .vendor-area {color:var(--color-brand-red);font:600 .6875rem/1.25 var(--font-mono);text-align:right}
#near-you .vendor-cuisines {color:var(--color-text-muted);font-size:.8125rem;line-height:1.45}
#near-you .sk-row {margin:0;border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-4);background:var(--color-surface)}
#view-food-ai,#view-orders,#view-wallet,#view-alerts,#view-settings {max-width:46rem;margin-inline:auto}

@media (min-width:801px) {
  .customer-shell .rail-account-tools {display:none !important}
  .customer-topbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:2.25rem;
    margin:0 0 1.25rem;
  }
  .customer-topbar .home-kicker {
    display:inline-flex;
    align-items:center;
    gap:var(--space-2);
    margin:0;
    color:var(--color-text-muted);
  }
  .customer-topbar .home-kicker .lucide {width:14px;height:14px;margin:0;color:var(--color-brand-red)}
  .customer-account-tools {
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
    flex-shrink:0;
  }
  .customer-discovery-header .home-kicker {display:none}
}

@media (max-width:800px) {
  .customer-home-main {padding-bottom:6.25rem}
  .customer-discovery-header {align-items:flex-start}
  .customer-discovery-title {font-size:clamp(2rem,10vw,2.75rem)}
  #view-for-you > .carousel-track {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:var(--space-2)}
  #view-for-you > .carousel-track .card-style-02 {flex:0 0 min(84vw,22rem);height:13.5rem;scroll-snap-align:start}
  #near-you {grid-template-columns:1fr}
  #near-you .card-vendor-minimal {min-height:0}
}
/* Alerts page header (shared /app/notifications) */
.alerts-page-head {margin-bottom:1rem}
.alerts-page-head .home-kicker {display:inline-flex;align-items:center;gap:.4rem;margin:0 0 .2rem}
.alerts-page-head .home-kicker .lucide {width:.9rem;height:.9rem;margin:0}
.alerts-page-desc {margin:.4rem 0 0;font-size:.82rem;line-height:1.5;color:var(--color-text-muted);max-width:22rem}

/* ── Feed filter (search box) ─────────────────────────────────────────────── */
.customer-search {
  display:flex;
  align-items:center;
  gap:var(--space-3);
  min-height:3rem;
  margin-top:var(--space-5);
  padding:0 var(--space-4);
  border:1px solid var(--color-border-strong);
  border-radius:var(--radius-md);
  background:var(--color-surface-muted);
  transition:border-color var(--transition-fast),background-color var(--transition-fast);
}
.customer-search:focus-within {border-color:var(--color-brand-red);background:var(--color-bg-elevated-2)}
.customer-search .lucide {width:17px;height:17px;margin:0;color:var(--color-brand-red);flex-shrink:0}
.customer-search__input {
  flex:1;min-width:0;background:transparent;border:0;padding:0;color:var(--color-text);
  font:500 0.9rem var(--font-display);outline:none;
}
.customer-search__input::placeholder {color:var(--color-text-dim)}
.customer-search__clear {
  display:grid;place-items:center;flex-shrink:0;width:1.75rem;height:1.75rem;border-radius:999px;
  background:var(--color-bg-elevated-3);color:var(--color-text-muted);cursor:pointer;transition:color var(--transition-fast),background var(--transition-fast);
}
.customer-search__clear:hover {background:var(--color-bg-elevated-2);color:var(--color-text)}
.customer-search__clear .lucide {width:13px;height:13px;margin:0;color:inherit}

/* ── Category 1: horizontal carousel (cravings) ───────────────────────────── */
#view-for-you > .carousel-track {
  display:flex;
  gap:var(--space-3);
  overflow-x:auto;
  overflow-y:hidden;
  margin-top:var(--space-5);
  padding:var(--space-1) var(--space-1) var(--space-2);
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
#view-for-you > .carousel-track::-webkit-scrollbar {display:none}
#view-for-you > .carousel-track .card-style-02 {
  flex:0 0 15rem;width:15rem;height:15rem;scroll-snap-align:start;
}
#view-for-you .carousel-track .card-style-02:first-child {margin-left:0}
@media (min-width:801px) {
  #view-for-you > .carousel-track .card-style-02 {flex:0 0 15rem;width:15rem}
}
@media (max-width:800px) {
  /* At least ~86% of the viewport so cards feel like a real focus swipe. */
  #view-for-you > .carousel-track .card-style-02 {flex:0 0 min(88vw,24rem);width:min(88vw,24rem)}
}
.customer-search__input::-webkit-search-cancel-button,
.customer-search__input::-webkit-search-decoration {-webkit-appearance:none;appearance:none}

/* ============================================================================
   POLISH PASS (customer shell: top bar, rail, orders, wallet, settings)
   ========================================================================== */

/* Top bar: the address the app already knows, instead of a blank spacer. */
body.home-body .customer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 clamp(14px, 2.2vw, 22px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.home-body .customer-loc {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  max-width: min(100%, 34rem);
  padding: .4rem .8rem .4rem .6rem;
  border: 1px solid var(--hair, #e7e4de);
  border-radius: var(--r-pill, 999px);
  background: #fff;
  box-shadow: var(--el-hair, 0 1px 2px rgba(23, 19, 16, .05));
  transition: border-color .16s ease, box-shadow .2s ease, transform .12s ease;
}
body.home-body .customer-loc > .lucide,
body.home-body .customer-loc .lucide { color: var(--red, #ED1C24); flex: 0 0 auto; }
body.home-body .customer-loc span { display: grid; min-width: 0; line-height: 1.25; }
body.home-body .customer-loc small { color: var(--faint, #938d84); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
body.home-body .customer-loc strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink, #171310);
}
body.home-body .customer-loc--empty strong { color: var(--red, #ED1C24); }
@media (hover:hover) {
  body.home-body .customer-loc:hover { border-color: var(--ink, #171310); transform: translateY(-1px); box-shadow: var(--el-1, 0 10px 20px -14px rgba(23, 19, 16, .16)); }
}
@media (max-width:560px) {
  body.home-body .customer-loc small { display: none; }
  body.home-body .customer-loc strong { max-width: 14ch; }
}

/* Orders: clean tonal surface cards, zero borders or accent stripes. */
body.home-body #orders-list { display: grid; gap: 12px; }
body.home-body #orders-list.is-empty { gap: 18px; }
body.home-body .card-status-minimal {
  position: relative;
  display: grid;
  gap: .4rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 0;
  background: #f6f6f6;
  box-shadow: none;
  overflow: hidden;
  transition: transform .16s ease, background-color .16s ease;
}
body.home-body .card-status-minimal::before {
  display: none;
}
body.home-body .status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
body.home-body .status-id {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--faint, #938d84);
}
body.home-body .status-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink, #171310);
}
body.home-body .card-status-minimal .meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 62ch;
}
body.home-body .status-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .3rem;
  padding: .3rem .6rem;
  margin-left: -.6rem;
  border-radius: var(--r-in, 8px);
  font-size: .82rem;
  font-weight: 600;
  transition: background-color .16s ease, gap .16s ease;
}
@media (hover:hover) {
  body.home-body .card-status-minimal:hover { transform: translateY(-2px); box-shadow: var(--el-2, 0 18px 34px -20px rgba(23, 19, 16, .22)); border-color: #d9d5cd; }
  body.home-body .card-status-minimal:hover .status-action { background: rgba(237, 28, 36, .07); gap: .5rem; }
  body.home-body .card-status-minimal:active { transform: translateY(0); }
}
body.home-body .order-skel {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--hair, #e7e4de);
  border-radius: var(--r-card, 14px);
  background: #fff;
}
body.home-body .orders-empty-doodles { opacity: .055; }

/* Wallet / empty states: composed, not a grey box with a sentence in it. */
body.home-body .state-panel {
  display: grid;
  justify-items: start;
  gap: .5rem;
  padding: clamp(20px, 3vw, 30px);
}
body.home-body .state-panel__title { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.018em; }
body.home-body .state-panel__copy { max-width: 58ch; color: var(--muted, #6d675f); }
body.home-body .state-panel__action { margin-top: .5rem; }

/* Settings: the identity block is the page's anchor, so give it presence. */
body.home-body .settings-card, body.home-body .profile-card { box-shadow: var(--el-hair, 0 1px 2px rgba(23, 19, 16, .05)); }
body.home-body .set-group { padding-top: 1.1rem; }
body.home-body .set-row { padding-block: .8rem; }
body.home-body a.set-row, body.home-body .link-row { transition: background-color .14s ease; }

/* Rail: brand mark, then a quiet role caption so the column is not 6 links
   floating in white. */
body.home-body .home-side .home-nav { margin-top: 26px; gap: 3px; }
body.home-body .home-side .home-nav a { padding: .5rem .7rem; }
