:root {
  color-scheme: light;
  --bg: #f6efe6;
  --paper: #fffaf4;
  --ink: #2b2320;
  --muted: #8a7b6d;
  --line: #eadccb;
  --accent: #d2603f;
  --accent-ink: #ffffff;
  --accent-soft: #f8dfd4;
  --ok: #4f8a5b;
  --danger: #b4412f;
  --wood: #b98758;
  --wood-dark: #8a5a36;
  --wood-light: #f3e6d3;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(70, 45, 20, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
em { font-style: italic; font-weight: 500; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.count { font: 600 12px var(--font); color: var(--muted); background: var(--line); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; }

/* header + tabs */
#top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(246, 239, 230, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#brand { font: 650 20px var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
#weather { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 14px; cursor: pointer; }
#weather:empty { display: none; }
.gated #top, .gated #tabs { display: none; }

#view { padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); }

#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: flex-end;
  max-width: 560px; margin: 0 auto;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 244, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 2px 0; }
#tabs a.active { color: var(--ink); font-weight: 600; }
.tab-icon { font-size: 21px; line-height: 1.1; }
#tabs a.tab-add .tab-icon {
  width: 48px; height: 48px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(210, 96, 63, 0.4);
}

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn:disabled { opacity: 0.6; }
.link { background: none; border: 0; color: var(--accent); padding: 6px 0; cursor: pointer; font-weight: 500; }
.row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.row.wrap { flex-wrap: wrap; }
.row > input, .row > select { flex: 1; min-width: 0; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 16px; /* no zoom on iOS */
}
input[type="color"] { padding: 2px; width: 48px; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }

.seg { display: flex; background: var(--line); border-radius: 12px; padding: 3px; margin: 6px 0 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.weather.on { background: #3d6a8f; border-color: #3d6a8f; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { border: 0; background: var(--accent-soft); color: #7a3320; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: default; }
button.tag { cursor: pointer; }
.tag.soft { background: var(--line); color: var(--ink); }
.tag.new { background: #2b2320; color: #fff; }

.filters { margin-bottom: 4px; }
.filters input[type="search"] { margin-bottom: 4px; }

/* cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); margin: 6px 0 10px; }
.card { position: relative; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.card-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.sil img, .card-img.sil img { object-fit: contain; padding: 12%; background: #fffaf3; }
.card-name { font-size: 12.5px; margin-top: 5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(43, 35, 32, 0.75); color: #fff; font-size: 12px; display: grid; place-items: center; }
.add-card { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); background: transparent; }
.add-card span { font-size: 12px; }
.card.picked .card-img { outline: 3px solid var(--accent); outline-offset: -3px; }
.card.picked::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

.group { margin: 16px 0 6px; }
.group h3 { font-size: 18px; }
.subgroup h4 { font: 600 13px var(--font); color: var(--muted); margin: 10px 0 6px; text-transform: none; }

.ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ocard { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.ocard-photo { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.ocard-photo img { width: 100%; height: 100%; object-fit: cover; }
.ocard .collage { aspect-ratio: 3 / 4; }
.ocard-title { font-size: 13px; font-weight: 600; margin-top: 6px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 10px; padding: 2px 16px 6px; }
.hscroll .ocard { flex: 0 0 130px; }

.collage { display: grid; gap: 3px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.collage > div { position: relative; background: #fff; overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage img[src^="data:image/svg"] { object-fit: contain; padding: 10%; background: #fffaf3; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 > div:first-child { grid-row: span 2; }
.collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-empty { display: grid; place-items: center; height: 100%; font-size: 32px; background: var(--paper); }
.collage .is-new { outline: 3px solid var(--ink); outline-offset: -3px; }
.new-badge { position: absolute; left: 4px; top: 4px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 5px; }

/* closet illustration */
.closet { max-width: 480px; margin: 6px auto 0; perspective: 1400px; }
.closet-crown { height: 18px; margin: 0 -6px; border-radius: 10px 10px 3px 3px; background: linear-gradient(#a8744a, var(--wood-dark)); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08); }
.closet-frame {
  position: relative; padding: 10px; border-radius: 0 0 6px 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 3px, rgba(0, 0, 0, 0.03) 3px 7px),
    linear-gradient(90deg, #a87447, var(--wood) 30%, #c4945f 70%, #a87447);
  box-shadow: 0 14px 26px rgba(70, 40, 15, 0.22);
}
.closet-inner {
  position: relative; border-radius: 4px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #f5e9d8 0 22px, #f1e3cf 22px 23px);
  box-shadow: inset 0 0 22px rgba(90, 55, 20, 0.28);
}
.closet-feet { display: flex; justify-content: space-between; padding: 0 22px; }
.closet-feet span { width: 26px; height: 10px; border-radius: 0 0 5px 5px; background: #6f4527; }

.door {
  position: absolute; top: 10px; bottom: 10px; width: calc(50% - 10px); z-index: 3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 4px, rgba(0, 0, 0, 0.03) 4px 9px),
    var(--wood);
  border: 6px solid #a5714a; border-radius: 3px;
  transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.35s ease 0.75s;
  pointer-events: none;
}
.door-l { left: 10px; transform-origin: left center; }
.door-r { right: 10px; transform-origin: right center; }
.door .knob { position: absolute; top: 50%; width: 9px; height: 30px; border-radius: 5px; background: linear-gradient(#e7d3a3, #b08f52); }
.door-l .knob { right: 8px; }
.door-r .knob { left: 8px; }
.closet.open .door-l { transform: rotateY(-108deg); opacity: 0; }
.closet.open .door-r { transform: rotateY(108deg); opacity: 0; }
.closet.instant .door { display: none; }

.comp { position: relative; padding: 30px 10px 12px; border-bottom: 10px solid #c4925f; box-shadow: 0 4px 0 rgba(70, 40, 15, 0.12); }
.comp:last-child { border-bottom: 0; box-shadow: none; }
.comp-label {
  position: absolute; top: 7px; left: 10px; z-index: 1;
  border: 1px solid #dcc3a1; background: rgba(255, 250, 242, 0.92); border-radius: 999px;
  padding: 1px 9px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: #6b4a2e; cursor: pointer;
}
.comp-label b { color: var(--accent); margin-left: 2px; }
.comp-empty { font-size: 12px; color: #b49a7c; font-style: italic; padding: 6px 2px 2px; }

.comp-rail { padding-top: 34px; }
.rail-rod { position: absolute; top: 42px; left: 4px; right: 4px; height: 7px; border-radius: 4px; background: linear-gradient(#f2f2f2, #9a9a9a 60%, #7d7d7d); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); }
.rail { position: relative; display: flex; gap: 2px; overflow-x: auto; padding: 0 2px 6px; scrollbar-width: none; min-height: 150px; }
.rail::-webkit-scrollbar { display: none; }
.hang { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 4px; }
.hang:active, .hang:focus-visible { animation: swing 0.9s ease; }
.hanger { width: 58px; height: 29px; color: #7a5233; margin-top: -2px; position: relative; z-index: 1; }
.hang-img { width: 78px; height: calc(100px * var(--len, 1)); margin-top: -7px; border-radius: 12px 12px 8px 8px; overflow: hidden; background: #fff; box-shadow: 0 5px 10px rgba(60, 35, 10, 0.25); }
.hang-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(7deg); } 45% { transform: rotate(-5deg); } 70% { transform: rotate(2deg); } 100% { transform: rotate(0); } }

.stack, .rack { display: flex; gap: 7px; flex-wrap: wrap; }
.fold { width: 66px; height: 56px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 3px 6px rgba(60, 35, 10, 0.2); transition: transform 0.15s; }
.fold img { width: 100%; height: 100%; object-fit: cover; }
.fold.sil img { object-fit: contain; padding: 6px; }
.fold:active { transform: translateY(-4px); }
.rack { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; border-bottom: 5px solid #9b6c43; scrollbar-width: none; }
.rack .fold { flex: none; width: 72px; height: 52px; }
.hint { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0; }

/* empty states */
.empty { text-align: center; padding: 24px 12px; }
.empty-art svg { width: 130px; height: 130px; }
.empty p { color: var(--muted); }
.empty.small { padding: 18px 8px; }

/* detail pages */
.detail h1 { margin-top: 12px; }
.back { border: 0; background: none; color: var(--muted); padding: 4px 0 8px; font-size: 15px; cursor: pointer; }
.detail-img { aspect-ratio: 1; max-height: 360px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.detail-img img { width: 100%; height: 100%; object-fit: contain; }
.detail-img.sil img { padding: 14%; }
.detail-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); max-height: 520px; background: #fff; }
.detail-photo img { width: 100%; max-height: 520px; object-fit: contain; }
.detail > .collage { max-width: 320px; margin: 0 auto; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.15); }
.block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.block > h2 { display: flex; align-items: center; gap: 8px; }
.ai-block { background: linear-gradient(160deg, #fff7ef, #fbe9df); }
.edit summary { cursor: pointer; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.wish-banner { background: #eef3fb; border: 1px solid #cfdcef; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.page-title { margin: 8px 0 6px; }

.form label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0; flex: 1; }
.form label input, .form label select { margin-top: 3px; color: var(--ink); }
.form label.narrow { flex: 0 0 auto; }
.form .label { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form .btn.primary { width: 100%; margin-top: 12px; }
.title-input { font: 650 20px var(--serif); border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0; margin: 10px 0 4px; }

/* AI suggestions */
.sug { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sug:first-child { border-top: 0; }
.sug > .collage { flex: 0 0 112px; height: 112px; }
.sug-body { flex: 1; min-width: 0; }
.sug-body h3 { margin-bottom: 4px; }
.sug-body p { margin: 0 0 6px; font-size: 14px; }
.sug-items { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.today { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #e7eef6, #f6efe6); border: 1px solid #d6e0ea; border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 4px; }
.today-w { display: flex; flex-direction: column; }
.today .big { font: 650 22px var(--serif); }
#today-res:not(:empty) { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; margin-top: 8px; }

/* add */
.add-cards { display: grid; gap: 10px; }
.add-card-big {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
}
.add-card-big b { display: block; font-size: 16px; }
.add-card-big small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.add-card-big .row { margin: 6px 0 0; }
.ac-icon { font-size: 28px; line-height: 1; flex: none; width: 36px; text-align: center; }
.grow { flex: 1; min-width: 0; }
.buy-card { margin: 14px 0; background: linear-gradient(160deg, #fff7ef, #fbe9df); }
.basics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.basic { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; font-size: 11.5px; line-height: 1.2; text-align: center; cursor: pointer; }
.basic img { width: 46px; height: 46px; }
.basic.added { border-color: var(--ok); background: #eef6ef; }
.basic.added::after { content: "✓"; position: absolute; top: 4px; right: 6px; color: var(--ok); font-weight: 700; }

/* review */
.boxed-photo { position: relative; border-radius: 14px; overflow: hidden; margin: 8px 0; box-shadow: var(--shadow); }
.boxed-photo img { width: 100%; }
.bbox { position: absolute; border: 2.5px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.bbox b { position: absolute; top: -1px; left: -1px; background: var(--accent); color: #fff; font-size: 12px; padding: 0 6px; border-radius: 4px 0 6px 0; }
.bbox.off { border-color: rgba(120, 120, 120, 0.7); border-style: dashed; }
.bbox.off b { background: #888; }
.review { display: grid; gap: 10px; }
.rv { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.rv.off { opacity: 0.55; }
.rv > img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #fff; }
.rv-check { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rv-check .num { font-size: 12px; font-weight: 700; color: var(--accent); }
.rv-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.rv-body input, .rv-body select { min-height: 36px; padding: 5px 9px; }
.sticky-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 12px 0 4px; }
.sticky-actions .btn { width: 100%; box-shadow: 0 6px 18px rgba(210, 96, 63, 0.35); }

/* purchase check */
.candidate { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 8px 0; }
.candidate img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.verdict { display: flex; gap: 14px; align-items: center; margin: 12px 0; }
.verdict p { margin: 4px 0 0; font-size: 14px; }
.score { flex: none; width: 78px; height: 78px; border-radius: 50%; display: grid; place-content: center; text-align: center; font: 650 30px/1 var(--serif); color: #fff; }
.score small { font-size: 12px; opacity: 0.85; }
.score.shi { background: var(--ok); }
.score.smid { background: #c99a2e; }
.score.slo { background: var(--danger); }

/* gate */
.gate { text-align: center; padding: calc(env(safe-area-inset-top) + 48px) 8px 24px; }
.gate-logo svg { width: 92px; height: 92px; }
.gate h1 { font-size: 32px; margin: 12px 0; }
.gate form { display: grid; gap: 10px; max-width: 320px; margin: 18px auto; }

/* settings */
.list-btn { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 2px; cursor: pointer; }

/* sheet (picker) */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(43, 35, 32, 0.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); animation: up 0.25s ease; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -14px; background: var(--bg); padding: 4px 0 6px; z-index: 1; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* toast + busy */
#toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px;
  transition: 0.25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { border: 0; background: none; color: #ffb59c; font-weight: 700; cursor: pointer; white-space: nowrap; }
#busy { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(246, 239, 230, 0.75); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#busy.show { display: grid; }
.busy-box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; text-align: center; box-shadow: 0 10px 30px rgba(70, 45, 20, 0.15); max-width: 280px; }
.spinner { width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .door { display: none; }
  .hang:active { animation: none; }
}

/* feedback */
textarea { resize: vertical; line-height: 1.4; }
#fb-form { display: grid; gap: 10px; }
#fb-form .seg { margin: 0; }
#fb-admin:not(:empty) { margin-top: 12px; }
.fb-text { white-space: pre-wrap; margin: 6px 0; }
.fb-item code { font-size: 12px; }
