/* KIMINO KIDS WEATHER — PLAYFUL & SIMPLE */
:root {
  --blue: #2864D9; --blue-d: #1F4FB0; --blue-l: #DCE6FA; --blue-ll: #EEF3FD;
  --red: #ED5145; --red-d: #C23A2F; --red-l: #FBDDD9;
  --yellow: #F6CE45; --yellow-l: #FDF1C7;
  --ivory: #F8F6EF; --black: #252525; --white: #FFFFFF; --grey: #5E5B55; --line: #252525;
  --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "M PLUS Rounded 1c", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--black); font-family: var(--font);
  font-size: 16px; line-height: 1.6; font-weight: 500; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-d); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { max-width: 560px; margin: 0 auto; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); min-height: 100vh; }

/* ---------- ヘッダー ---------- */
.top {
  background: var(--blue); color: var(--white); padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 16px;
  border-radius: 0 0 var(--r-lg) var(--r-lg); position: relative; overflow: hidden;
}
.top::before, .top::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.top::before { width: 120px; height: 120px; background: var(--yellow); right: -38px; top: -46px; }
.top::after { width: 44px; height: 44px; background: var(--red); right: 64px; top: 30px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .08em; font-size: 13px; position: relative; z-index: 1; }
.brand .mark { display: inline-flex; gap: 3px; }
.brand .mark i { width: 10px; height: 10px; display: block; }
.brand .mark i:nth-child(1) { background: var(--yellow); border-radius: 50%; }
.brand .mark i:nth-child(2) { background: var(--red); }
.brand .mark i:nth-child(3) { background: var(--white); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; position: relative; z-index: 1; }
.top h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.25; }
.loc { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; margin-top: 2px; --pin-hole: var(--blue); }
.loc svg { width: 16px; height: 16px; }
.refresh {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--black); border: 0;
  border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 15px; min-height: 44px; flex-shrink: 0;
}
.refresh svg { width: 20px; height: 20px; }
.refresh.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fetched { font-size: 13px; margin-top: 8px; opacity: .95; position: relative; z-index: 1; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto; border: 2px solid var(--black); background: var(--white); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 15px; min-height: 40px;
}
.day-chip[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* ---------- バナー ---------- */
.banner {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--black);
  display: flex; gap: 10px; align-items: flex-start; font-size: 15px; background: var(--white);
}
.banner .ill { width: 28px; height: 28px; flex-shrink: 0; }
.banner.warn { background: var(--yellow-l); }
.banner.err { background: var(--red-l); }
.banner.info { background: var(--blue-ll); }
.banner b { font-weight: 900; }
.banner button { margin-top: 6px; }

/* ---------- セクション ---------- */
.sec { margin: 18px 16px 0; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 19px; font-weight: 900; }
.sec-h .shape { width: 14px; height: 14px; flex-shrink: 0; }
.shape.c { border-radius: 50%; background: var(--red); }
.shape.s { background: var(--blue); border-radius: 3px; }
.shape.t { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sec-h small { font-size: 13px; font-weight: 700; color: var(--grey); margin-left: auto; }
.card { background: var(--white); border: 2px solid var(--black); border-radius: var(--r-lg); padding: 16px; }
.card + .card { margin-top: 10px; }
.note { font-size: 13px; color: var(--grey); margin: 8px 2px 0; line-height: 1.55; }

/* 今日の天気 */
.today { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.today .ill { width: 92px; height: 92px; }
.wx-name { font-size: 20px; font-weight: 900; }
.temps { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-top: 2px; }
.temp { display: flex; align-items: baseline; gap: 6px; }
.temp .tag { font-size: 13px; font-weight: 900; padding: 1px 8px; border-radius: 999px; color: var(--white); }
.temp.max .tag { background: var(--red-d); }
.temp.min .tag { background: var(--blue-d); }
.temp .v { font-size: 38px; font-weight: 900; line-height: 1; }
.temp .u { font-size: 17px; font-weight: 700; }
.sub { font-size: 14px; color: var(--grey); margin-top: 6px; }

/* 外遊び */
.play { background: var(--blue); color: var(--white); border-radius: var(--r-lg); padding: 16px; border: 2px solid var(--black); }
.play-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.play-head .t { font-size: 18px; font-weight: 900; }
.play-head .time { background: var(--yellow); color: var(--black); font-weight: 900; border-radius: 999px; padding: 4px 12px; font-size: 16px; }
.play-wx { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; font-weight: 700; font-size: 17px; }
.play-wx .ill { width: 44px; height: 44px; background: var(--white); border-radius: 50%; padding: 3px; border: 2px solid var(--black); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--ivory); color: var(--black); border-radius: var(--r-md); padding: 10px 12px; border: 2px solid var(--black); min-width: 0; }
.tile.wide { grid-column: span 2; }
.tile .k { font-size: 13px; font-weight: 700; color: var(--grey); display: flex; gap: 6px; align-items: center; }
.tile .v { font-size: 24px; font-weight: 900; line-height: 1.25; }
.tile .v small { font-size: 14px; font-weight: 700; }
.tile .s { font-size: 13px; font-weight: 700; }
.badge-est { font-size: 11px; font-weight: 900; background: var(--yellow); color: var(--black); border-radius: 6px; padding: 0 6px; }
.effects { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.effect { background: var(--blue-d); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.warrow { display: inline-block; vertical-align: -3px; color: var(--blue); }

/* 要点 */
.points { background: var(--yellow); border-radius: var(--r-lg); padding: 14px 16px; border: 2px solid var(--black); }
.points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 17px; line-height: 1.45; }
.points li .ill { width: 34px; height: 34px; flex-shrink: 0; background: var(--white); border-radius: 50%; border: 2px solid var(--black); padding: 2px; }
.points li:first-child { font-size: 19px; font-weight: 900; }

/* 服装 */
.outfit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.piece { border: 2px solid var(--black); border-radius: var(--r-md); padding: 10px; background: var(--white); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.piece.big { grid-column: span 2; flex-direction: row; gap: 12px; align-items: center; background: var(--red-l); }
.piece.big .ill { width: 84px; height: 84px; flex-shrink: 0; }
.piece .cat { font-size: 12px; font-weight: 900; letter-spacing: .06em; align-self: flex-start; border-radius: 6px; padding: 0 7px; background: var(--black); color: var(--white); }
.piece .ills { display: flex; gap: 2px; }
.piece .ill { width: 64px; height: 64px; }
.piece .nm { font-size: 16px; font-weight: 900; line-height: 1.35; word-break: break-word; }
.piece .why { font-size: 13px; color: var(--grey); line-height: 1.45; }
.piece.inner { background: var(--ivory); }
.piece.tops { background: var(--blue-ll); }
.piece.pants { background: var(--yellow-l); }
.piece.missing { background: var(--white); border-style: dashed; }
.acc { grid-column: span 2; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-cat { font-size: 12px; font-weight: 900; letter-spacing: .06em; border-radius: 6px; padding: 0 7px; background: var(--black); color: var(--white); align-self: center; }
.acc .chip { display: flex; align-items: center; gap: 6px; border: 2px solid var(--black); border-radius: 999px; padding: 2px 12px 2px 4px; background: var(--white); font-weight: 700; font-size: 15px; }
.acc .chip .ill { width: 34px; height: 34px; }
.acts { display: grid; gap: 8px; margin-top: 12px; }
.act { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: var(--ivory); border-radius: var(--r-md); padding: 10px 12px; border: 2px solid var(--black); }
.act .lb { font-weight: 900; font-size: 15px; }
.act .tx { grid-column: span 2; font-size: 14px; }
.lv { display: inline-block; font-size: 13px; font-weight: 900; border-radius: 999px; padding: 1px 10px; border: 2px solid var(--black); justify-self: end; white-space: nowrap; }
.lv.ok { background: var(--yellow); }
.lv.cool, .lv.cold { background: var(--blue); color: var(--white); }
.lv.warm, .lv.hot { background: var(--red-d); color: var(--white); }
.lv.na { background: var(--white); }
.commute { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.commute .c { flex: 1 1 140px; font-size: 14px; border: 2px dashed var(--black); border-radius: var(--r-md); padding: 8px 10px; }
.commute .c b { font-weight: 900; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); font-weight: 900; font-size: 16px; text-decoration: none; color: var(--black); }
.btn.primary { background: var(--blue); color: var(--white); }
.btn.accent { background: var(--yellow); }
.btn.danger { background: var(--red-d); color: var(--white); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* アウター比較 */
.oc { display: grid; gap: 10px; }
.oc-item { border: 2px solid var(--black); border-radius: var(--r-md); padding: 12px; background: var(--white); }
.oc-item.rec { background: var(--red-l); }
.oc-head { display: flex; align-items: center; gap: 10px; }
.oc-head .ill { width: 48px; height: 48px; flex-shrink: 0; }
.oc-head .nm { font-weight: 900; font-size: 16px; line-height: 1.35; flex: 1; }
.oc-head .score { font-size: 28px; font-weight: 900; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--black); background: var(--white); flex-shrink: 0; line-height: 1; }
.oc-item.rec .score { background: var(--yellow); }
.recflag { font-size: 12px; font-weight: 900; background: var(--red-d); color: var(--white); border-radius: 6px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.oc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.oc-grid div { background: var(--ivory); border-radius: var(--r-sm); padding: 6px 8px; font-size: 13px; font-weight: 700; text-align: center; border: 1.5px solid var(--black); }
.oc-grid div b { display: block; font-size: 17px; font-weight: 900; }
.oc-why { font-size: 14px; margin-top: 8px; line-height: 1.5; }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--black); background: var(--white); }
.meter i.on { background: var(--black); }

/* 展開 */
details.fold { background: var(--white); border: 2px solid var(--black); border-radius: var(--r-lg); }
details.fold > summary { list-style: none; padding: 14px 16px; font-weight: 900; font-size: 17px; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 52px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary svg { width: 22px; height: 22px; margin-left: auto; transition: transform .2s; }
details.fold[open] > summary svg { transform: rotate(180deg); }
details.fold .body { padding: 0 16px 16px; }

/* 時間帯別 */
.hscroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.hours { border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 100%; }
table.hours th, table.hours td { padding: 6px 7px; text-align: center; white-space: nowrap; border-bottom: 1px solid #E4E0D4; }
table.hours th[scope=row] { position: sticky; left: -16px; background: var(--white); text-align: left; font-weight: 900; font-size: 13px; z-index: 1; }
table.hours thead th { font-weight: 900; }
table.hours .play-col { background: var(--blue-l); }
table.hours thead .play-col { background: var(--blue); color: var(--white); border-radius: 8px 8px 0 0; }
table.hours td .ill { width: 30px; height: 30px; }
.legend { display: flex; gap: 12px; font-size: 13px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.legend .sw { display: inline-block; width: 14px; height: 14px; background: var(--blue-l); border: 1.5px solid var(--blue); border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

/* 気圧 */
.seg { display: inline-flex; border: 2px solid var(--black); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: 6px 14px; font-weight: 700; font-size: 14px; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 6px; }
.pstats div { background: var(--ivory); border-radius: var(--r-sm); padding: 6px 8px; font-size: 12px; font-weight: 700; border: 1.5px solid var(--black); }
.pstats b { display: block; font-size: 18px; font-weight: 900; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--black); color: var(--white); border-radius: 8px; padding: 4px 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); display: none; }
.trend { font-weight: 900; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.links { display: grid; gap: 8px; margin-top: 12px; }

/* 週間 */
.week { display: grid; gap: 8px; }
.wd { display: grid; grid-template-columns: 56px 48px 1fr; gap: 8px; align-items: center; border: 2px solid var(--black); border-radius: var(--r-md); padding: 10px; background: var(--white); text-align: left; width: 100%; }
.wd[aria-current="true"] { background: var(--blue-ll); }
.wd .d { font-weight: 900; font-size: 15px; line-height: 1.25; }
.wd .d small { display: block; font-size: 12px; font-weight: 700; color: var(--grey); }
.wd .ill.wx { width: 46px; height: 46px; }
.wd .info { min-width: 0; }
.wd .tt { font-weight: 900; font-size: 15px; }
.wd .tt .mx { color: var(--red-d); } .wd .tt .mn { color: var(--blue-d); }
.wd .pl { font-size: 13px; color: var(--grey); }
.wd .mini { display: flex; gap: 0; margin-top: 2px; }
.wd .mini .ill { width: 30px; height: 30px; }
.rel { font-size: 11px; font-weight: 900; border-radius: 6px; padding: 0 6px; border: 1.5px solid var(--black); margin-left: 4px; white-space: nowrap; }
.rel.high { background: var(--yellow); } .rel.mid { background: var(--white); } .rel.low { background: var(--white); border-style: dashed; }

/* フォーム */
label.f { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 6px; }
.in, select.in, textarea.in { width: 100%; border: 2px solid var(--black); border-radius: var(--r-sm); padding: 10px 12px; background: var(--white); font-size: 16px; min-height: 46px; }
textarea.in { min-height: 76px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 15px; }
.chips input:checked + span { background: var(--blue); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.feel input:checked + span { background: var(--black); color: var(--white); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E4E0D4; }
.switch:last-child { border-bottom: 0; }
.tog { appearance: none; -webkit-appearance: none; width: 54px; height: 32px; border-radius: 999px; background: var(--white); border: 2px solid var(--black); position: relative; flex-shrink: 0; cursor: pointer; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--black); transition: transform .15s; }
.tog:checked { background: var(--blue); }
.tog:checked::after { transform: translateX(22px); background: var(--white); }
input[type=range] { width: 100%; accent-color: var(--blue); }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }

/* 手持ち服 */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 2px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #E4E0D4; }
.item:last-child { border-bottom: 0; }
.item .ill { width: 52px; height: 52px; }
.item.off .ill, .item.off .nm { opacity: .45; }
.item .nm { font-weight: 900; font-size: 15px; line-height: 1.35; }
.item .at { font-size: 12px; font-weight: 700; color: var(--grey); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.item .ctl { display: flex; gap: 6px; align-items: center; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--black); background: var(--white); display: grid; place-items: center; padding: 0; }
.iconbtn svg { width: 20px; height: 20px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.picker label { position: relative; }
.picker input { position: absolute; opacity: 0; }
.picker span { display: flex; flex-direction: column; align-items: center; border: 2px solid var(--black); border-radius: var(--r-sm); padding: 4px; font-size: 11px; font-weight: 700; background: var(--white); text-align: center; line-height: 1.2; }
.picker .ill { width: 44px; height: 44px; }
.picker input:checked + span { background: var(--yellow); }
.lvl { display: flex; gap: 6px; }
.lvl label { flex: 1; position: relative; }
.lvl input { position: absolute; opacity: 0; }
.lvl span { display: grid; place-items: center; height: 42px; border: 2px solid var(--black); border-radius: var(--r-sm); font-weight: 900; background: var(--white); }
.lvl input:checked + span { background: var(--blue); color: var(--white); }

/* 記録 */
.rec { border: 2px solid var(--black); border-radius: var(--r-md); padding: 12px; background: var(--white); }
.rec + .rec { margin-top: 8px; }
.rec-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rec-h .dt { font-weight: 900; }
.rec .ills { display: flex; margin: 4px 0; }
.rec .ills .ill { width: 36px; height: 36px; }
.rec .meta { font-size: 13px; color: var(--grey); }
.feelb { font-size: 13px; font-weight: 900; border-radius: 999px; padding: 1px 10px; border: 2px solid var(--black); }
.feelb.cold, .feelb.cool { background: var(--blue); color: var(--white); }
.feelb.ok { background: var(--yellow); }
.feelb.warm, .feelb.sweat { background: var(--red-d); color: var(--white); }
.feelb.unknown { background: var(--white); }
.big-num { font-size: 32px; font-weight: 900; line-height: 1.1; }

/* 判定ロジック説明 */
.logic h4 { margin: 14px 0 4px; font-size: 16px; font-weight: 900; }
.logic p, .logic li { font-size: 14px; line-height: 1.65; }
.logic ol, .logic ul { padding-left: 1.3em; margin: 4px 0; }
.logic code { background: var(--ivory); border-radius: 6px; padding: 1px 6px; font-family: inherit; font-weight: 700; }
.th-group { margin-top: 14px; }
.th-group h4 { margin: 0 0 4px; font-size: 15px; font-weight: 900; }
.th { display: grid; grid-template-columns: 1fr 96px; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E4E0D4; }
.th .lb { font-size: 14px; font-weight: 700; line-height: 1.4; }
.th .ds { grid-column: span 2; font-size: 12px; color: var(--grey); line-height: 1.5; }
.th input { min-height: 40px; padding: 6px 8px; text-align: right; }
.th .changed { color: var(--red-d); font-size: 12px; font-weight: 900; }

/* ナビ */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--white); border-top: 2px solid var(--black);
  padding-bottom: var(--safe-b); --nav-bg: var(--white);
}
.nav ul { list-style: none; margin: 0 auto; padding: 6px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 560px; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--black); font-weight: 900; font-size: 12px; height: 54px; border-radius: 16px; }
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { background: var(--blue); color: var(--white); --nav-bg: var(--blue); }

/* モーダル・トースト */
.modal-bg { position: fixed; inset: 0; background: rgba(37, 37, 37, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--ivory); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 2px solid var(--black); border-bottom: 0; padding: 16px 16px calc(20px + var(--safe-b)); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal-h h3 { margin: 0; font-size: 19px; font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%); background: var(--black); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 50; max-width: 90vw; font-size: 15px; text-align: center; }

.empty { text-align: center; padding: 24px 8px; color: var(--grey); font-weight: 700; }
.skel { height: 120px; border-radius: var(--r-lg); background: #EFEBDF; border: 2px solid #E4E0D4; }
.foot { margin: 28px 16px 0; font-size: 12px; color: var(--grey); line-height: 1.7; }
.foot a { font-weight: 700; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 420px) { .outfit { grid-template-columns: 1fr 1fr 1fr; } .piece.big, .acc { grid-column: span 3; } }
