/* ===== Face Paint Tycoon ===== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #1a0f1f;
  --bg-2: #2a1532;
  --panel: #2f1a3a;
  --panel-2: #3a2147;
  --ink: #fff5fb;
  --ink-dim: #c8b0d4;
  --muted: #9a85a8;
  --pink: #ff4fa3;
  --pink-2: #ff7ec0;
  --purple: #a45dff;
  --gold: #ffd24a;
  --green: #4cd07d;
  --red: #ff5a6d;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --border: 1px solid rgba(255,255,255,.08);
}

html, body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #5a2065 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #3a1d57 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100dvh;
  overscroll-behavior: none;
}

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 220px;
}

/* ----- Top bar ----- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,79,163,.15), rgba(164,93,255,.10));
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 18px; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--ink-dim); }
.logo { font-size: 28px; filter: drop-shadow(0 0 10px rgba(255,79,163,.6)); }

.stats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stat {
  background: rgba(0,0,0,.25);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  overflow: hidden;
}
.stat-label { font-size: 9px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.stat-value { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stat-money .stat-value { color: var(--gold); }

/* ----- Tabs ----- */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.tab {
  background: var(--panel);
  color: var(--ink-dim);
  border: var(--border);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,79,163,.4);
}

/* ----- Cards / views ----- */
.view { display: none; animation: fadeIn .2s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card h4 { font-size: 13px; margin: 12px 0 6px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .8px; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.controls { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--ink-dim); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 24px; font-style: italic; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.badge {
  font-size: 11px;
  background: rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-dim);
}

/* ----- Hero card ----- */
.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,79,163,.18), rgba(164,93,255,.10));
}

/* ----- Buttons ----- */
.btn {
  background: rgba(255,255,255,.08);
  color: var(--ink);
  border: var(--border);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  transition: all .12s;
}
.btn:hover:not(:disabled) { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255,79,163,.35);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(255,79,163,.5); }
.btn-large { padding: 14px 22px; font-size: 15px; }
.btn-ghost { background: transparent; }
.btn-danger {
  background: var(--red);
  border-color: transparent;
}
.btn-icon {
  background: rgba(255,255,255,.08);
  border: var(--border);
  color: var(--ink);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover { background: rgba(255,255,255,.16); }

/* ----- Inputs ----- */
input[type=text], input[type=number], input[type=search], select, textarea {
  background: rgba(0,0,0,.3);
  border: var(--border);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); }

/* ----- Schedule ----- */
.schedule-list { list-style: none; }
.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: 13px;
}
.schedule-list li.total {
  font-weight: 700;
  color: var(--gold);
  border-bottom: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 6px;
  padding-top: 8px;
}

/* ----- Menu grid ----- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.menu-grid.empty { display: block; }
.menu-item {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
}
.menu-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.menu-item.featured { outline: 2px solid var(--pink); }
.menu-item-img {
  width: 100%;
  aspect-ratio: 1;
  background: #000 center/cover no-repeat;
  border-bottom: var(--border);
}
.menu-item-body { padding: 8px 10px; flex: 1; }
.menu-item-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.menu-item-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-dim); }
.menu-item-stars { color: var(--gold); letter-spacing: 1px; }
.menu-item-price { font-weight: 700; color: var(--gold); font-size: 13px; }
.menu-item-supplies {
  display: flex;
  gap: 3px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.color-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
}
.menu-item-actions {
  display: flex;
  border-top: var(--border);
}
.menu-item-actions button {
  flex: 1;
  background: transparent;
  border: none;
  border-right: var(--border);
  padding: 6px;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.menu-item-actions button:last-child { border-right: none; }
.menu-item-actions button:hover { background: rgba(255,255,255,.08); color: var(--ink); }

/* ----- Upload ----- */
.upload-zone {
  border: 2px dashed rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  margin-top: 10px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--pink);
  background: rgba(255,79,163,.08);
}
.upload-icon { font-size: 32px; margin-bottom: 8px; }

.staging {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.staging.hidden { display: none; }
.stage-card {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stage-img {
  width: 100%;
  aspect-ratio: 1;
  background: #000 center/cover no-repeat;
  position: relative;
}
.stage-img.loading::after {
  content: '🎨 analyzing…';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-2);
  font-weight: 700;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.stage-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.stage-body label { font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .6px; }
.stage-body .row { display: flex; gap: 6px; align-items: center; }
.stage-body .row input { flex: 1; }
.stage-cost {
  background: rgba(0,0,0,.3);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-cost .label { color: var(--ink-dim); }
.stage-cost .green { color: var(--green); font-weight: 700; }
.stage-cost .red { color: var(--red); font-weight: 700; }
.stage-supplies {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 11px;
}
.stage-supplies .chip {
  background: rgba(255,255,255,.08);
  padding: 3px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stage-remove {
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  align-self: flex-start;
}
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ----- Store ----- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.store-item {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-item-head { display: flex; align-items: center; gap: 8px; }
.store-item-name { font-weight: 700; font-size: 13px; }
.store-item-price { color: var(--gold); font-weight: 700; font-size: 12px; }
.store-item-stock { font-size: 11px; color: var(--ink-dim); }
.store-item-stock.low-stock { color: #ff8c00; font-weight: 600; }
.store-item-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.store-item-buttons button {
  flex: 1;
  font-size: 11px;
  padding: 6px;
  min-width: 44px;
}

/* ----- Staff ----- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.staff-card {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.staff-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.staff-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.staff-wage { color: var(--gold); font-size: 12px; }
.staff-knows {
  font-size: 11px;
  color: var(--ink-dim);
  margin: 6px 0;
}
.staff-knows-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.staff-knows-list .chip {
  background: rgba(255,255,255,.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.staff-schedule { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.day-circles { display: flex; gap: 7px; }
.day-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.day-circle:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.10); }
.day-circle.on { font-weight: 900; box-shadow: 0 0 8px rgba(0,0,0,.35); }
.staff-leave-balance { font-size: 11px; margin-top: 6px; color: var(--muted); }
.vreq-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.vreq-row:last-child { border-bottom: none; }
.vreq-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.vreq-btns { display: flex; gap: 6px; flex-shrink: 0; }
.badge-warn { background: rgba(244,208,63,.25); color: #f4d03f; border: 1px solid rgba(244,208,63,.4); }
.staff-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.staff-actions button { flex: 1; min-width: 80px; font-size: 11px; padding: 6px; }
.vacation-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vacation-option {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12);
  font-size: 13px; transition: background .15s, border-color .15s;
}
.vacation-option.selected { background: rgba(255,210,0,.15); border-color: #f4d03f; color: #f4d03f; }
.vacation-option input { display: none; }
.staff-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
  line-height: 1;
}

/* ----- Sales ----- */
.tab-group { display: flex; gap: 4px; }
.mini-tab {
  background: rgba(255,255,255,.06);
  border: var(--border);
  color: var(--ink-dim);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.mini-tab.active { background: var(--pink); color: white; border-color: transparent; }

.sales-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.summary-card {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.summary-label { font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .6px; }
.summary-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.summary-value.money { color: var(--gold); }
.summary-value.profit { color: var(--green); }

.sales-list { display: flex; flex-direction: column; gap: 6px; }
.sales-list.empty { display: block; }
.sale-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--panel-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: var(--border);
}
.sale-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.sale-row .name { font-weight: 700; font-size: 13px; }
.sale-row .qty { color: var(--ink-dim); font-size: 12px; }
.sale-row .gross { color: var(--gold); font-weight: 700; font-size: 13px; }

/* ----- Prices ----- */
.prices-list { display: flex; flex-direction: column; gap: 8px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-2);
  border: var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.price-row-info { display: flex; align-items: center; gap: 10px; }
.price-stars { color: var(--gold); }
.price-tier { font-weight: 700; }
.price-default { font-size: 11px; color: var(--ink-dim); }
.price-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-controls .price-value {
  min-width: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

/* ----- Settings ----- */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 12px;
}
.setting-row:last-child { border-bottom: none; }
.setting-row.danger strong { color: var(--red); }

/* ----- Featured design (bottom) ----- */
.featured-design {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(42,21,50,.95), rgba(26,15,31,.98));
  border-top: 2px solid rgba(255,79,163,.3);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  z-index: 50;
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
  max-width: 1180px;
  margin: 0 auto;
  transition: transform .25s;
}
.featured-design.collapsed { transform: translateY(100%); }
.featured-close {
  position: absolute;
  top: 4px; right: 8px;
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--ink);
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.featured-image-wrap {
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel-2);
  position: relative;
  border: var(--border);
}
.featured-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.featured-image-wrap img:not([src]), .featured-image-wrap img[src=""] { display: none; }
.featured-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  padding: 4px;
}
.featured-image-placeholder span { font-size: 28px; margin-bottom: 4px; }
.featured-image-placeholder.hidden { display: none; }

.featured-info { min-width: 0; }
.featured-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.featured-meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 6px; }
.featured-supplies {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 11px;
}
.featured-supplies .chip {
  background: rgba(255,255,255,.08);
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.featured-controls { display: flex; gap: 4px; }

.featured-show {
  position: fixed;
  bottom: 12px; right: 12px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,79,163,.5);
  z-index: 51;
}
.featured-show.hidden { display: none; }

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.modal-body {
  position: relative;
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.modal h3 { margin-bottom: 12px; }

/* ----- Toast ----- */
.toast {
  position: fixed;
  bottom: 230px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ----- Day simulation log ----- */
.day-log {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,.25);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
}
.log-entry { padding: 3px 6px; border-radius: 4px; }
.log-entry.time { color: var(--muted); }
.log-entry.sale { color: var(--green); background: rgba(76,208,125,.08); }
.log-entry.skip { color: var(--ink-dim); }
.log-entry.event { color: var(--pink-2); font-weight: 700; }
.log-entry.warn { color: var(--red); }
.log-entry.craft { color: #ffb6c1; background: rgba(255,182,193,.08); }

/* ----- Supply editor ----- */
.supply-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.color-pick {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: border-color .1s;
}
.color-pick.active { border-color: var(--gold); }
.color-pick:hover { border-color: rgba(255,255,255,.4); }
.supply-paint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  padding: 2px 0;
}
.supply-extras-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.supply-toggle-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255,255,255,.06);
  color: var(--ink-dim);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
}
.supply-toggle-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-color: transparent;
}
.supply-toggle-btn:hover { background: rgba(255,255,255,.14); }
.supply-toggle-btn.active:hover { opacity: .9; }

/* ----- Store sections ----- */
.store-section { margin-top: 18px; }
.store-section > h4, .store-section .card-head h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .04em; }

/* ----- Locations ----- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.loc-card {
  background: var(--panel-2);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all .15s;
}
.loc-card:hover { border-color: rgba(255,255,255,.2); }
.loc-card.selected { border-color: var(--pink); background: rgba(255,79,163,.10); }
.loc-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3px; }
.loc-emoji { font-size: 20px; line-height: 1; }
.loc-permit { font-size: 11px; color: var(--gold); font-weight: 700; }
.loc-name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.loc-customers { font-size: 11px; color: var(--green); margin-bottom: 4px; }
.loc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.loc-tag { font-size: 10px; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 999px; color: var(--ink-dim); }
.loc-tag.indoor { color: var(--purple); }
.loc-tag.tips   { color: var(--gold); }
.loc-desc { font-size: 10px; color: var(--muted); line-height: 1.4; }

/* ----- Locked location ----- */
.loc-card.locked { opacity: .45; cursor: not-allowed; pointer-events: none; }
.loc-tag.unavailable { color: var(--muted); background: rgba(255,255,255,.04); }

/* ----- Bills ----- */
.bill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.bill-row:last-child { border-bottom: none; }
.bill-info { flex: 1; min-width: 120px; }
.bill-label { font-weight: 700; font-size: 14px; display: block; }
.bill-due   { font-size: 11px; color: var(--ink-dim); }
.bill-amount { font-weight: 700; font-size: 15px; color: var(--green); min-width: 60px; text-align: right; }
.bill-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.bill-badge.due     { background: rgba(255,255,255,.08); color: var(--ink-dim); }
.bill-badge.late    { background: rgba(255,186,50,.15);  color: var(--gold); }
.bill-badge.overdue { background: rgba(255,60,60,.18);   color: #ff6b6b; }
.bill-badge.paid    { background: rgba(0,220,130,.15);   color: var(--green); }

/* ----- Weather badges ----- */
.weather-sunny  { background: rgba(255,210,74,.15); color: var(--gold); }
.weather-cloudy { background: rgba(255,255,255,.08); color: var(--ink-dim); }
.weather-rainy  { background: rgba(56,109,222,.15);  color: #7eb4ff; }
.weather-hot    { background: rgba(255,100,74,.15);  color: #ff8a60; }
.weather-cold   { background: rgba(164,93,255,.15);  color: var(--purple); }
.weather-windy  { background: rgba(255,255,255,.08); color: var(--ink-dim); }

/* ----- Productivity bars ----- */
.productivity-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.prod-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.prod-label { display: flex; align-items: center; gap: 6px; min-width: 80px; flex-shrink: 0; }
.prod-bar-wrap { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.prod-bar {
  flex: 1; height: 14px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden; display: flex;
}
.prod-seg { height: 100%; transition: width .3s; }
.prod-design  { background: #00b4ff; }
.prod-balloon { background: #8bc34a; }
.prod-soda    { background: #ff8c00; }
.prod-craft   { background: #ffb6c1; }
.prod-unused  { background: rgba(244,208,63,.35); }
.prod-stats { font-size: 10px; color: var(--ink-dim); white-space: nowrap; flex-shrink: 0; }
.prod-counts { display: flex; gap: 8px; font-size: 10px; color: var(--ink-dim); padding-left: 86px; width: 100%; flex-wrap: wrap; margin-top: -4px; }
.prod-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-dim); margin-top: 4px; flex-wrap: wrap; }
.prod-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ----- Balloons ----- */
.balloon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.balloon-card {
  background: var(--panel-2);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.balloon-emoji { font-size: 40px; line-height: 1.1; }
.balloon-name { font-weight: 700; font-size: 12px; }
.balloon-meta { font-size: 11px; color: var(--ink-dim); }
.balloon-img-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-3);
  margin-bottom: 4px;
}
.balloon-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.balloon-upload-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 700; color: #fff;
  opacity: 0; transition: opacity .2s;
}
.balloon-edit-mode .balloon-upload-overlay { opacity: 1; }
.balloon-card:not(.balloon-edit-mode) .balloon-img-wrap:hover .balloon-upload-overlay { opacity: 0; }
.balloon-delete-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(220,40,55,.85); border: none; border-radius: 6px;
  color: #fff; font-size: 13px; padding: 2px 5px; cursor: pointer; line-height: 1;
  z-index: 2;
}
.balloon-delete-btn:hover { background: #dc2837; }

/* ----- Mystery Bundle ----- */
.mystery-bundle { border: 2px dashed rgba(255,79,163,.4); background: rgba(255,79,163,.05); }
.mystery-bundle.bundle-used { opacity: .55; border-style: solid; }
.season-bundle { border-color: rgba(255,186,50,.6); background: rgba(255,186,50,.07); margin-top: 10px; }

/* ----- Calendar ----- */
.cal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cal-row:last-child { border-bottom: none; }
.cal-today {
  background: rgba(255,79,163,.07);
  border-radius: 8px;
  padding: 7px 8px;
}
.cal-dayinfo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 148px;
  flex-shrink: 0;
}
.cal-daynum {
  font-weight: 700;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--ink-dim);
}
.cal-daynum.today {
  background: var(--pink);
  color: #fff;
}
.cal-dayname { font-size: 12px; color: var(--ink-dim); min-width: 72px; }
.cal-season { font-size: 14px; }
.cal-events {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.cal-birthday-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  transition: opacity .15s;
}
.cal-birthday-tag:hover { opacity: .75; }
.cal-past { opacity: .45; }
.cal-season-tabs { margin-bottom: 6px; }

/* ----- Responsive ----- */
@media (max-width: 600px) {
  #app { padding: 8px 8px 220px; }
  .top-bar { flex-direction: column; align-items: flex-start; padding: 10px; }
  .stats { width: 100%; justify-content: flex-start; gap: 6px; }
  .stat { flex: 1 1 calc(33% - 6px); min-width: 0; padding: 7px 10px; }
  .stat-label { font-size: 9px; letter-spacing: .5px; }
  .stat-value { font-size: 14px; }
  .hero-card { flex-direction: column; text-align: center; }
  .card h2 { font-size: clamp(14px, 4.5vw, 18px); }
  .card h3 { font-size: clamp(13px, 3.8vw, 15px); }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .featured-design { grid-template-columns: 80px 1fr auto; }
  .featured-image-wrap { width: 76px; height: 76px; }
  .featured-name { font-size: 14px; }
  .location-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .brand h1 { font-size: clamp(14px, 4.5vw, 18px); }
  .schedule-list li { font-size: 13px; }
}
