/* ============================================================
   رَونَق — warm, quiet, editorial
   ============================================================ */
:root{
  --ivory:#F7F2EA;
  --paper:#FBF7F1;
  --beige:#EFE6D8;
  --beige-deep:#E7DBC9;
  --gold:#C9A96A;
  --hair:rgba(201,169,106,.35);
  --hair-soft:rgba(201,169,106,.22);
  --ink:#332D28;
  --ink-soft:#7A6E63;
  --burgundy:#6E2B3A;
  --burgundy-tint:rgba(110,43,58,.08);
  --shadow:0 6px 20px rgba(74,52,44,.06);
  --shadow-lift:0 10px 28px rgba(74,52,44,.10);
  --radius:20px;
  --radius-sm:14px;
}

*, *::before, *::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; }
html, body{ margin:0; padding:0; }

body{
  background:var(--ivory);
  color:var(--ink);
  font-family:'Tajawal', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
  font-size:15px;
  line-height:1.7;
  font-weight:400;
  min-height:100vh;
  overscroll-behavior-y:contain;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.modal-open{ overflow:hidden; }

h1, h2, h3, .serif{
  font-family:'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif;
  font-weight:700;
  margin:0;
  line-height:1.35;
}
p{ margin:0; }
button, input, select, textarea{ font-family:inherit; font-size:inherit; color:inherit; }
button{ cursor:pointer; -webkit-tap-highlight-color:transparent; user-select:none; }
img{ display:block; max-width:100%; }
svg{ display:block; }

.grain{
  position:fixed; inset:0; z-index:6; pointer-events:none; opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:160px 160px;
}

/* ---------- shell ---------- */
.app{
  position:relative; z-index:1;
  max-width:520px; margin:0 auto;
  padding:16px 18px calc(96px + 16px);
}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:6px 2px 14px;
}
.brand{ display:flex; align-items:center; gap:11px; min-width:0; }
.brand-seal{
  width:40px; height:40px; flex:0 0 auto;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--beige);
  border:1px solid var(--hair);
  color:var(--burgundy);
  font-family:'Amiri', serif; font-size:21px; line-height:1;
  padding-bottom:2px;
}
.brand-text h1{ font-size:24px; color:var(--burgundy); letter-spacing:0; }
.brand-text p{
  font-size:12px; color:var(--ink-soft); line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.icon-btn{
  width:44px; height:44px; flex:0 0 auto;
  display:grid; place-items:center;
  border-radius:50%;
  background:transparent;
  border:1px solid var(--hair-soft);
  color:var(--ink-soft);
  transition:background .16s ease, color .16s ease, transform .12s ease;
}
.icon-btn svg{ width:19px; height:19px; }
.icon-btn:active{ transform:scale(.94); background:var(--beige); }

/* ---------- typography helpers ---------- */
.eyebrow{
  font-size:11.5px; letter-spacing:.02em;
  color:var(--gold); font-weight:700;
  text-transform:none;
}
.muted{ color:var(--ink-soft); }
.small{ font-size:12.5px; line-height:1.6; }
.num{ font-variant-numeric:tabular-nums; }

.card{
  background:var(--beige);
  border:1px solid var(--hair);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card-title{
  font-size:18px; color:var(--ink); margin:0 0 10px;
}

.view{ animation:viewIn .28s ease-out; }
@keyframes viewIn{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none;} }

.view-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin:2px 0 14px;
}
.view-title{ font-size:27px; color:var(--ink); }

.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin:24px 2px 10px;
}
.section-head .card-title{ margin:0; font-size:19px; }

/* ---------- buttons ---------- */
.primary-btn{
  background:var(--burgundy);
  color:#FCF7F0;
  border:1px solid var(--burgundy);
  border-radius:999px;
  padding:10px 20px;
  min-height:44px;
  font-size:14px; font-weight:700;
  transition:transform .12s ease, background .16s ease, opacity .16s ease;
}
.primary-btn:active{ transform:scale(.97); }
.primary-btn:disabled{ opacity:.55; }
.primary-btn.wide{ width:100%; margin-top:4px; }

.ghost-btn{
  background:transparent;
  color:var(--burgundy);
  border:1px solid var(--hair);
  border-radius:999px;
  padding:8px 15px;
  min-height:40px;
  font-size:13px; font-weight:500;
  transition:background .16s ease, color .16s ease, transform .12s ease;
}
.ghost-btn:active{ transform:scale(.97); }
.ghost-btn.danger{ color:#8A3A2E; border-color:rgba(138,58,46,.28); }
.ghost-btn.wide{ width:100%; }

.link-btn{
  background:none; border:0; padding:4px 2px;
  color:var(--burgundy);
  font-size:13px; font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--hair);
  text-underline-offset:4px;
}
.link-btn.danger{ color:#8A3A2E; }

button:focus-visible, .input:focus-visible, select:focus-visible{
  outline:2px solid rgba(110,43,58,.45);
  outline-offset:2px;
}

/* ---------- home ---------- */
.ready-card{
  background:var(--beige);
  border:1px solid var(--hair);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.ready-card::after{
  content:'';
  position:absolute; inset:8px;
  border:1px solid var(--hair-soft);
  border-radius:16px;
  pointer-events:none;
  opacity:.55;
}
.ready-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; position:relative; }
.ready-head-text{ min-width:0; }
.ready-title{
  font-size:25px; color:var(--ink); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis;
}
.ready-meta{
  font-size:12.5px; color:var(--ink-soft); margin-top:2px;
}

.strip{
  display:flex; gap:8px; overflow-x:auto;
  padding:14px 2px 6px; margin-top:6px;
  scrollbar-width:none;
}
.strip::-webkit-scrollbar{ display:none; }
.strip-thumb{
  flex:0 0 auto;
  width:72px; height:90px;
  border-radius:var(--radius-sm);
  overflow:hidden;
  border:1px solid var(--hair);
  background:var(--paper);
  display:grid; place-items:center;
}
.strip-thumb img{ width:100%; height:100%; object-fit:cover; }
.strip-thumb.ph svg{ width:34px; height:34px; color:rgba(201,169,106,.85); }
.strip-thumb.sm{ width:58px; height:72px; }

.weather-line{
  display:flex; align-items:center; gap:8px;
  margin-top:8px; padding-top:12px;
  border-top:1px solid var(--hair-soft);
  font-size:13.5px; color:var(--ink);
  position:relative;
  flex-wrap:wrap;
}
.w-ico{ display:grid; place-items:center; color:var(--gold); }
.w-ico svg{ width:18px; height:18px; }
.w-text{ font-weight:700; font-variant-numeric:tabular-nums; }
.w-city{ color:var(--ink-soft); font-size:12.5px; }
.weather-line .link-btn{ margin-inline-start:auto; }
.w-advice{
  margin-top:9px;
  font-size:12.5px;
  line-height:1.55;
  color:var(--ink-soft);
  background:rgba(201,169,106,.12);
  border:1px solid var(--hair-soft);
  border-radius:12px;
  padding:8px 11px;
  position:relative;
}

.tasks-card{ margin-top:16px; }
.task-list{ display:grid; gap:8px; }
.task-row{
  display:flex; align-items:center; gap:11px;
  width:100%; text-align:start;
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:11px 13px;
  min-height:56px;
  color:var(--ink);
  transition:background .16s ease, transform .12s ease;
}
.task-row:active{ transform:scale(.99); background:#F5EDE1; }
.task-ico{
  width:34px; height:34px; flex:0 0 auto;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--beige-deep);
  color:var(--burgundy);
}
.task-ico svg{ width:17px; height:17px; }
.task-text{ min-width:0; flex:1; }
.task-title{ font-size:13.5px; font-weight:700; line-height:1.45; }
.task-sub{ font-size:11.5px; color:var(--ink-soft); line-height:1.4; }
.task-chev{ color:var(--gold); flex:0 0 auto; }
.task-chev svg{ width:16px; height:16px; }

.quick-wrap{ margin-top:18px; }
.quick-actions{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.quick{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  min-height:88px;
  background:var(--paper);
  border:1px solid var(--hair);
  border-radius:var(--radius-sm);
  color:var(--ink);
  font-size:12.5px; font-weight:500;
  padding:12px 6px;
  box-shadow:var(--shadow);
  transition:transform .12s ease, background .16s ease, border-color .16s ease;
}
.quick svg{ width:21px; height:21px; color:var(--burgundy); }
.quick:active{ transform:scale(.97); background:var(--beige); }
.quick span{ line-height:1.3; text-align:center; }

/* ---------- chips / filters ---------- */
.chips{
  display:flex; gap:8px; overflow-x:auto;
  padding:2px 2px 12px; scrollbar-width:none;
}
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex:0 0 auto;
  display:inline-flex; align-items:center; gap:6px;
  background:var(--paper);
  border:1px solid var(--hair-soft);
  color:var(--ink-soft);
  border-radius:999px;
  padding:8px 14px;
  min-height:38px;
  font-size:13px;
  transition:background .16s ease, color .16s ease, border-color .16s ease;
}
.chip.active{ background:var(--burgundy); border-color:var(--burgundy); color:#FCF7F0; font-weight:700; }
.chip-n{ font-size:11px; opacity:.75; font-variant-numeric:tabular-nums; }
.chip.sm{ padding:6px 12px; min-height:32px; font-size:12px; }

.filters{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.mini-field{ display:grid; gap:4px; }
.mini-field > span{ font-size:11.5px; color:var(--ink-soft); }
.mini-field select{
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:12px;
  padding:10px 12px;
  min-height:44px;
  font-size:13.5px;
  color:var(--ink);
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.4 6 6.4l5-5' fill='none' stroke='%237A6E63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 14px center;
  padding-left:34px;
}

/* ---------- wardrobe grid ---------- */
.grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media (min-width:470px){ .grid{ grid-template-columns:repeat(3,1fr); } }

.item-card{
  background:var(--beige);
  border:1px solid var(--hair);
  border-radius:18px;
  overflow:hidden;
  padding:0;
  text-align:start;
  color:var(--ink);
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  transition:transform .14s ease, box-shadow .2s ease;
}
.item-card:active{ transform:scale(.985); box-shadow:var(--shadow-lift); }
.item-photo{
  aspect-ratio:4/5;
  background:var(--paper);
  display:grid; place-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--hair-soft);
}
.item-photo img{ width:100%; height:100%; object-fit:cover; }
.item-photo svg{ width:38px; height:38px; color:rgba(201,169,106,.9); }
.item-body{ padding:8px 11px 11px; }
.item-name{
  font-size:13px; font-weight:700; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.item-meta{ font-size:11px; color:var(--ink-soft); margin-top:2px; line-height:1.5; }

/* ---------- outfits ---------- */
.outfit-row{ display:grid; gap:10px; }
.outfit-card{
  display:flex; align-items:center; gap:12px;
  width:100%; text-align:start;
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:10px;
  color:var(--ink);
  box-shadow:var(--shadow);
  transition:transform .12s ease, background .16s ease;
}
.outfit-card:active{ transform:scale(.99); background:var(--beige); }
.outfit-mini{ display:flex; gap:4px; flex:0 0 auto; }
.mini-thumb{
  width:34px; height:44px; border-radius:8px; overflow:hidden;
  background:var(--beige); border:1px solid var(--hair-soft);
  display:grid; place-items:center;
}
.mini-thumb img{ width:100%; height:100%; object-fit:cover; }
.mini-thumb svg{ width:16px; height:16px; color:rgba(201,169,106,.85); }
.outfit-body{ min-width:0; flex:1; }
.outfit-name{ font-size:14px; font-weight:700; }
.outfit-sub{ font-size:11.5px; color:var(--ink-soft); }

/* ---------- events ---------- */
.stack{ display:grid; gap:12px; }
.event-card{ padding:16px; }
.event-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.event-head-text{ min-width:0; }
.event-title{ font-size:20px; margin-top:1px; }
.event-progress{ margin-top:12px; }
.bar{
  height:6px; border-radius:999px; background:var(--beige-deep); overflow:hidden;
  border:1px solid var(--hair-soft);
}
.bar-fill{ height:100%; background:var(--burgundy); border-radius:999px; transition:width .35s ease; }
.event-outfit{ margin-top:12px; display:flex; flex-direction:column; gap:6px; }
.small-strip{ padding:0; }

.pack-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; margin-top:12px;
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:11px 14px;
  min-height:48px;
  font-size:13.5px; font-weight:700;
  color:var(--ink);
}
.pack-toggle .chev{ transition:transform .22s ease; color:var(--gold); }
.pack-toggle .chev svg{ width:16px; height:16px; }
.pack-toggle[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.pack-list{ margin-top:10px; display:grid; gap:8px; }

.check-row{
  display:flex; align-items:center; gap:12px;
  width:100%; text-align:start;
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  min-height:52px;
  color:var(--ink);
  font-size:14px;
  transition:background .16s ease, border-color .16s ease;
}
.check-row .box{
  width:23px; height:23px; flex:0 0 auto;
  border-radius:50%;
  border:1.5px solid var(--gold);
  display:grid; place-items:center;
  color:#FCF7F0;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.check-row .box svg{ width:13px; height:13px; opacity:0; transition:opacity .16s ease; }
.check-row[aria-pressed="true"] .box{ background:var(--burgundy); border-color:var(--burgundy); transform:scale(1.02); }
.check-row[aria-pressed="true"] .box svg{ opacity:1; }
.check-row .label{ flex:1; line-height:1.45; }
.check-row[aria-pressed="true"] .label{ color:var(--ink-soft); text-decoration:line-through; text-decoration-color:var(--hair); }

.pack-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.add-inline{ display:flex; gap:8px; margin-top:8px; }
.add-inline .input{ flex:1; min-height:44px; }

.inline-input, .input{
  background:var(--ivory);
  border:1px solid var(--hair-soft);
  border-radius:12px;
  padding:11px 13px;
  font-size:14px;
  color:var(--ink);
  min-height:44px;
  width:100%;
  transition:border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .inline-input::placeholder{ color:#A99C8E; }
.input:focus, .inline-input:focus{ border-color:var(--burgundy); box-shadow:0 0 0 3px rgba(110,43,58,.09); outline:none; }

.tpl-row{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:6px; }

/* ---------- care ---------- */
.care-hero{
  display:flex; align-items:center; gap:16px;
  background:var(--beige);
  border:1px solid var(--hair);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.arc-wrap{ position:relative; width:100px; height:100px; flex:0 0 auto; }
.arc-wrap svg{ width:100%; height:100%; transform:rotate(-90deg); }
.arc-bg{ fill:none; stroke:rgba(201,169,106,.30); stroke-width:9; }
.arc-fill{
  fill:none; stroke:var(--burgundy); stroke-width:9; stroke-linecap:round;
  stroke-dasharray:289.03; stroke-dashoffset:289.03;
  transition:stroke-dashoffset .55s cubic-bezier(.22,.9,.3,1);
}
.arc-label{
  position:absolute; inset:0; display:grid; place-items:center;
  font-family:'Amiri', serif; font-size:21px; color:var(--burgundy);
  font-variant-numeric:tabular-nums;
}
.care-hero-text{ min-width:0; }
.care-count{ font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }

.routine-card{ margin-top:14px; padding:16px; }
.routine-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.routine-head .card-title{ margin-bottom:10px; }
.routine-tag{ font-size:11px; color:var(--gold); font-weight:700; }

.product-card{
  background:var(--paper);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:13px 14px;
  box-shadow:var(--shadow);
}
.product-card.soon{ border-color:rgba(201,169,106,.65); }
.product-card.exp{ border-color:rgba(138,58,46,.3); }
.product-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.product-name{ font-size:14px; font-weight:700; }
.badge{
  flex:0 0 auto;
  font-size:11px; font-weight:700;
  padding:3px 9px; border-radius:999px;
  border:1px solid var(--hair);
  color:var(--ink);
  background:rgba(201,169,106,.16);
  font-variant-numeric:tabular-nums;
}
.badge.exp{ color:#8A3A2E; border-color:rgba(138,58,46,.3); background:rgba(138,58,46,.07); }
.product-card .link-btn{ margin-top:6px; font-size:12px; }

/* ---------- empty states ---------- */
.empty{
  display:grid; gap:8px; justify-items:center;
  text-align:center;
  background:var(--paper);
  border:1px dashed var(--hair);
  border-radius:var(--radius);
  padding:26px 18px;
  margin-top:12px;
}
.empty-title{ font-family:'Amiri', serif; font-size:18px; color:var(--ink); }
.empty.small{ padding:18px; }
.empty .primary-btn{ margin-top:6px; }

/* ---------- tabbar ---------- */
.tabbar{
  position:fixed; bottom:0; left:0; right:0; margin:0 auto;
  max-width:520px; height:64px;
  display:grid; grid-template-columns:repeat(4,1fr);
  background:var(--paper);
  border-top:1px solid var(--hair);
  z-index:40;
}
.tab{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:transparent; border:0; padding:0;
  color:var(--ink-soft);
  font-size:11px; font-weight:500;
  min-height:64px;
  transition:color .16s ease;
}
.tab svg{ width:22px; height:22px; }
.tab svg .solid{ fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.tab svg .line{ opacity:1; }
.tab.active{ color:var(--burgundy); font-weight:700; }
.tab.active svg .solid{ fill:currentColor; fill-opacity:.16; stroke-width:1.9; }

/* ---------- modals ---------- */
.modal{ position:fixed; inset:0; z-index:70; display:none; }
.modal.open{ display:flex; align-items:flex-end; justify-content:center; }
.modal-backdrop{
  position:absolute; inset:0;
  background:rgba(51,45,40,.34);
  animation:fadeIn .2s ease-out;
}
@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
.modal-panel{
  position:relative;
  width:100%; max-width:520px;
  background:var(--paper);
  border:1px solid var(--hair);
  border-bottom:0;
  border-radius:24px 24px 0 0;
  max-height:90vh;
  display:flex; flex-direction:column;
  animation:sheetUp .26s cubic-bezier(.22,.9,.3,1);
  box-shadow:0 -10px 40px rgba(74,52,44,.16);
}
@keyframes sheetUp{ from{ transform:translateY(22px); opacity:.6;} to{ transform:none; opacity:1;} }
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid var(--hair-soft);
}
.modal-head h2{ font-size:20px; color:var(--ink); }
.modal-body{ padding:16px 18px 26px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.sheet-body{ display:grid; gap:10px; }
.sheet-title{ font-size:20px; }
.sheet-note{ font-size:13.5px; color:var(--ink-soft); }
.sheet-photo{
  border-radius:var(--radius-sm); overflow:hidden;
  border:1px solid var(--hair-soft); background:var(--beige);
  aspect-ratio:16/10; display:grid; place-items:center;
}
.sheet-photo img{ width:100%; height:100%; object-fit:cover; }
.sheet-photo .ph svg{ width:52px; height:52px; color:rgba(201,169,106,.9); }
.sheet-actions{ display:flex; gap:10px; margin-top:6px; }
.sheet-actions .primary-btn{ flex:1; }

/* ---------- forms ---------- */
.form{ display:grid; gap:14px; }
.field{ display:grid; gap:6px; min-width:0; }
.field > span{ font-size:12.5px; color:var(--ink-soft); font-weight:500; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.field-label{ font-size:12.5px; color:var(--ink-soft); }
select.input{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.4 6 6.4l5-5' fill='none' stroke='%237A6E63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 14px center;
  padding-left:34px;
}
.photo-picker{ display:flex; align-items:center; gap:12px; }
.photo-slot{
  width:92px; height:110px; flex:0 0 auto;
  border-radius:var(--radius-sm);
  border:1px dashed var(--gold);
  background:var(--ivory);
  display:grid; place-items:center;
  overflow:hidden;
  cursor:pointer;
  color:var(--ink-soft);
}
.photo-slot svg{ width:24px; height:24px; color:var(--gold); }
.photo-slot span{
  display:grid; justify-items:center; gap:4px;
  font-size:11px; text-align:center; padding:6px;
}
.photo-slot img{ width:100%; height:100%; object-fit:cover; }
.photo-note{ align-self:flex-end; }

.pick-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; max-height:44vh; overflow-y:auto; padding:2px; }
.pick-tile{
  display:grid; gap:5px; justify-items:center;
  background:var(--ivory);
  border:1px solid var(--hair-soft);
  border-radius:12px;
  padding:6px 4px 8px;
  color:var(--ink);
  transition:border-color .16s ease, background .16s ease, transform .12s ease;
}
.pick-tile:active{ transform:scale(.97); }
.pick-tile[aria-pressed="true"]{ border-color:var(--burgundy); background:rgba(110,43,58,.07); box-shadow:0 0 0 1px var(--burgundy) inset; }
.tile-photo{
  width:100%; aspect-ratio:1/1; border-radius:9px; overflow:hidden;
  background:var(--beige); display:grid; place-items:center;
}
.tile-photo img{ width:100%; height:100%; object-fit:cover; }
.tile-photo svg{ width:22px; height:22px; color:rgba(201,169,106,.9); }
.tile-name{ font-size:10.5px; line-height:1.3; text-align:center; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

.auto-weather{ margin-top:16px; padding-top:14px; border-top:1px solid var(--hair-soft); display:grid; gap:8px; }
.weather-err{ font-size:12.5px; color:#8A3A2E; line-height:1.5; }

/* ---------- sheet picker rows ---------- */
.pick-row{
  display:flex; align-items:center; gap:11px;
  width:100%; text-align:start;
  background:var(--ivory);
  border:1px solid var(--hair-soft);
  border-radius:var(--radius-sm);
  padding:10px 12px;
  color:var(--ink);
  min-height:60px;
}
.pick-row.on{ border-color:var(--burgundy); background:rgba(110,43,58,.06); }
.pick-thumbs{ display:flex; gap:4px; flex:0 0 auto; }
.pick-body{ min-width:0; flex:1; display:grid; }
.pick-name{ font-size:13.5px; font-weight:700; }
.pick-sub{ font-size:11.5px; color:var(--ink-soft); }
.pick-tag{
  flex:0 0 auto; font-size:10.5px; font-weight:700;
  color:var(--burgundy); border:1px solid var(--hair);
  border-radius:999px; padding:2px 8px;
}

/* ---------- toast ---------- */
.toast{
  position:fixed; z-index:90;
  left:50%; transform:translateX(-50%);
  bottom:calc(64px + 18px);
  max-width:min(88vw, 420px);
  background:var(--ink);
  color:#FBF7F1;
  font-size:13px;
  padding:11px 18px;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(51,45,40,.24);
  animation:toastIn .22s ease-out;
  text-align:center;
}
@keyframes toastIn{ from{ opacity:0; transform:translate(-50%, 8px);} to{ opacity:1; transform:translate(-50%,0);} }

/* ---------- desktop ---------- */
@media (min-width:720px){
  body{ background:#F1E9DE; }
  .app{
    background:var(--ivory);
    border-radius:28px;
    margin:20px auto;
    min-height:calc(100vh - 40px);
    padding-top:22px;
    padding-bottom:calc(110px + 20px);
    box-shadow:0 18px 50px rgba(74,52,44,.10);
  }
  .tabbar{ bottom:20px; border-radius:20px; border:1px solid var(--hair); box-shadow:0 10px 30px rgba(74,52,44,.12); }
  .modal{ align-items:center; }
  .modal-panel{ border-radius:24px; border-bottom:1px solid var(--hair); max-width:470px; max-height:84vh; }
  .modal-body{ padding:18px 22px 26px; }
  .pick-grid{ grid-template-columns:repeat(4,1fr); }
  .toast{ bottom:110px; }
}

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