#today {
  --wear-bg:#fff; --wear-text:#142a40; --wear-muted:#465e74; --wear-edge:#ccdae5;
  --wear-soft:#f5f8fb; --wear-link:#165ac2; --wear-select:#e7f1fc; --wear-sky:#e5f0fa;
  color:var(--wear-text); background:var(--wear-bg); border:1px solid var(--wear-edge);
  border-radius:1.25rem; overflow:clip; min-width:0; scroll-margin-top:1rem;
  display:flex; flex-direction:column; color-scheme:inherit;
}
#today[data-garment-tone=tshirt] {--wear-sky:#ffedbb}
#today[data-garment-tone=hoodie] {--wear-sky:#ebe2fb}
#today[data-garment-tone=jacket] {--wear-sky:#d9eee1}
#today[data-garment-tone=winter] {--wear-sky:#d7e9fc}
:root[data-theme="dark"] #today {
  --wear-bg:#182737; --wear-text:#f4f8fc; --wear-muted:#bed0df; --wear-edge:#435969;
  --wear-soft:#223444; --wear-link:#a9ccff; --wear-select:#2b4158;
}
:root[data-theme="dark"] #today .wear-brief {background:linear-gradient(120deg,var(--wear-bg) 18%,color-mix(in srgb,var(--wear-sky) 19%,var(--wear-bg)))}
#today [hidden] {display:none!important}
#today .wear-brief {
  flex:1 0 auto; display:flex; align-items:center; justify-content:space-between; gap:clamp(.45rem,1.4vw,1.4rem);
  padding:clamp(1.1rem,2vw,1.65rem); background:linear-gradient(115deg,var(--wear-bg) 6%,var(--wear-sky) 125%);
}
#today .wear-copy {min-width:0}
#today .weather-outfit {
  display:grid; grid-template-columns:3.2rem minmax(0,1fr); align-items:center; gap:.55rem;
  margin:.68rem 0 0; padding:0; border:0; border-radius:0; background:transparent; overflow:visible;
}
#today .weather-outfit .weather-panorama {height:2.3rem; min-height:0; border-radius:.48rem;}
#today .weather-outfit .weather-reading {padding:0;}
#today .weather-outfit .weather-place {display:none;}
#today .weather-outfit strong {color:var(--wear-text); font-size:.98rem; line-height:1.2;}
#today .weather-outfit small {color:var(--wear-muted); font-size:.75rem; line-height:1.3;}
#today .weather-outfit button {min-height:1.9rem; padding:0; border:0; background:transparent; color:var(--wear-link); font-size:.84rem;}

#today h2 {font-size:clamp(1.23rem,2vw,1.58rem); margin:0; line-height:1.2}
#today .wear-meta,#today small {font-size:.875rem; color:var(--wear-muted)}
#today .wear-meta {margin:.28rem 0}
#today .wear-answer {margin:.8rem 0 0; max-inline-size:30ch; font-size:clamp(1.24rem,1.8vw,1.65rem); line-height:1.19; letter-spacing:-.033em; font-weight:680; text-wrap:pretty}
#today .wear-body {padding:.9rem clamp(1rem,2vw,1.65rem) 1rem}
#today .wear-parts {display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:.47rem}
#today .wear-parts:empty {display:none}
#today button,#today input,#today select,#today .wear-actions a {
  box-sizing:border-box; min-height:2.75rem; max-width:100%; border:1px solid var(--wear-edge);
  border-radius:.66rem; background:var(--wear-bg); color:var(--wear-text); padding:.45rem .65rem; font:inherit;
}
#today button,#today .wear-actions a {cursor:pointer; font-size:.95rem; text-decoration:none; font-weight:630}
#today .wear-parts button {
  display:grid; align-content:start; gap:.17rem; text-align:start; line-height:1.25; min-width:0;
  background:var(--wear-soft); padding:clamp(.5rem,1.1vw,.9rem); border-color:transparent;
}
#today .wear-parts button[aria-pressed=true] {background:var(--wear-select); border-color:var(--wear-link)}
#today .wear-parts strong {font-size:clamp(1.18rem,1.7vw,1.5rem); letter-spacing:-.04em}
#today .wear-parts span {font-size:.9rem; font-weight:500; overflow-wrap:anywhere}
#today .wear-parts small {font-size:.85rem; font-weight:550}
#today .wear-parts time {font-size:.78rem; color:var(--wear-muted); font-variant-numeric:tabular-nums; font-weight:500}
#today .wear-part-time {display:flex; align-items:baseline; flex-wrap:wrap; gap:0 .35rem}
#today a,#today summary {color:var(--wear-link)}
#today summary {cursor:pointer; font-weight:650; min-height:2.75rem; padding:.54rem 0}
#today details {margin-top:.48rem}
#today details p {margin:.35rem 0}
#today .wear-fields,#today .wear-actions {display:flex; flex-wrap:wrap; align-items:flex-end; gap:.65rem; margin:.65rem 0}
#today label {display:grid; gap:.18rem; color:var(--wear-muted); font-size:.9rem; min-width:0}
#today .wear-actions a:first-child {background:#185bd0; border-color:#185bd0; color:white}
#today input[readonly] {width:100%}
#today .wear-credit {display:block; border-top:1px solid var(--wear-edge); padding-top:.55rem; font-size:.81rem}
#today :focus-visible {outline:3px solid var(--wear-link); outline-offset:2px}
#today .daily-scene {
  flex:none; position:relative; isolation:isolate; width:clamp(6.2rem,10.7vw,9.7rem); aspect-ratio:1.12;
  min-height:0; padding:0; border:0; border-radius:30%; background:none; cursor:default; touch-action:manipulation;
}
.daily-scene::before,.packing-scene::before {
  content:""; position:absolute; inset:85% 18% 4%; z-index:-1; border-radius:50%;
  background:radial-gradient(ellipse,#21384c36,transparent 70%);
}
.daily-garment {position:absolute; inset:1% 4% 6%; width:92%; height:93%; object-fit:contain; transform:rotate(-6deg); filter:drop-shadow(0 3px 2px #1633471f); pointer-events:none}
.wear-umbrella {position:absolute; width:32%; height:40%; right:0; bottom:3%; rotate:14deg; filter:drop-shadow(0 2px 1px #273a4c42); pointer-events:none}
.wear-umbrella::before {content:""; position:absolute; left:0; top:0; width:100%; height:50%; border-radius:100% 100% 9% 9% / 165% 165% 10% 10%; background:linear-gradient(90deg,#be5835 0 22%,#ff995b 23% 47%,#f58a49 48% 70%,#d86b42 71%); border:1px solid #965138}
.wear-umbrella::after {content:""; position:absolute; left:34%; top:50%; width:15%; height:39%; border:2px solid #384c56; border-top:0; border-radius:0 0 10px 10px; border-inline-start-color:transparent}
@media (max-width:400px) {
  #today .daily-scene {width:5.6rem}
  #today .wear-brief {padding:1rem}
  #today .wear-parts button {padding:.53rem .38rem}
  #today .wear-part-time {display:grid}
}
@media (prefers-reduced-motion:no-preference) {
  .daily-scene.play-outfit .daily-garment {animation:unpack-today .7s cubic-bezier(.22,.68,.25,1)}
  .daily-scene.play-outfit .wear-umbrella {animation:umbrella-bob .78s ease-in-out}
  @keyframes unpack-today {0%,100%{transform:rotate(-6deg)} 35%{transform:translateY(-7%) rotate(3deg) scale(1.055)} 72%{transform:translateY(1%) rotate(-9deg)}}
  @keyframes umbrella-bob {38%{transform:translateY(-16%) rotate(-9deg)} 72%{transform:translateY(3%) rotate(4deg)}}
}

#today [data-wear=retry] {margin-block-start:.7rem}

#today .wear-partner {display:grid;gap:.2rem;padding:.4rem 0}
#today .wear-shop-links {display:flex;flex-wrap:wrap;gap:0 1rem}
#today .wear-shop-links a {display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:.18em}
#today details[data-wear="shop"][hidden] {display:none}

#today .wear-partner [data-wear=shop-photo]{display:block;width:100%;height:auto;max-height:13rem;aspect-ratio:2.3;object-fit:cover;border-radius:.6rem;margin-bottom:.65rem}
#today .wear-shop-links a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:.45rem;background:#235142;color:white;font-weight:650;text-decoration:none;padding:.6rem .9rem;line-height:1.35}
@media(max-width:580px){#today .wear-shop-links a{width:100%}}
