/* My Closet — design system. Warm, editorial, feminine-first but neutral enough for everyone. */
:root {
  --rose: #b5485d; --rose-deep: #8f3449; --rose-soft: #f3d3da; --blush: #fbf1ee; --cream: #fcf8f4; --sand: #efe4dc; --ink: #2a1f2d; --ink-2: #5a4a57; --muted: #8a7a86; --line: #ead9d8; --gold: #c9a35c; --sage: #7fa38c; --sky: #7aa5c4;
  --ok: #3f8f5f; --warn: #c7822b; --bad: #c43d4b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --r-sm: 12px; --shadow: 0 10px 30px -14px rgba(90, 40, 60, .25); --shadow-lg: 0 24px 60px -24px rgba(90, 40, 60, .35);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.hero .wrap > div, .browse > *, .item > *, .app > * { min-width: 0; }
.filter-toggle { display: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); } h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); } h3 { font-size: 1.3rem; } h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1rem; } .muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.serif { font-family: var(--serif); } .italic { font-style: italic; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; } .right { text-align: right; } .center { text-align: center; }
.stack { display: grid; gap: 12px; }
.mt { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3rem; } .mb { margin-bottom: 1rem; } .mb0 { margin-bottom: 0; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(252, 248, 244, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand em { color: var(--rose); font-style: italic; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.nav a:hover, .nav a.on { background: var(--blush); color: var(--rose-deep); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--rose-soft); display: inline-grid; place-items: center; font-weight: 700; color: var(--rose-deep); font-size: .85rem; overflow: hidden; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; } .avatar.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.notif-dot { position: relative; } .notif-dot[data-n]:not([data-n="0"])::after { content: attr(data-n); position: absolute; top: -4px; right: -6px; background: var(--rose); color: #fff; font-size: .65rem; font-weight: 800; border-radius: 999px; padding: 1px 5px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .btn:active { transform: translateY(0); } .btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, #d4607e, var(--rose)); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn.ghost:hover { background: #fff; }
.btn.soft { background: var(--blush); color: var(--rose-deep); } .btn.soft:hover { background: var(--rose-soft); }
.btn.white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 8px 14px; font-size: .85rem; } .btn.xs { padding: 5px 10px; font-size: .78rem; } .btn.lg { padding: 15px 28px; font-size: 1.05rem; } .btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f1c2c7; } .btn.danger:hover { background: #fff5f6; }
.btn.ok { background: var(--ok); color: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; }

/* forms */
.field { display: grid; gap: 6px; } .field > label, label.lbl { font-size: .82rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; outline: none; transition: border .12s, box-shadow .12s; }
.input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(181, 72, 93, .12); }
textarea.input { min-height: 110px; resize: vertical; }
.input.sm { padding: 8px 10px; font-size: .9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; } .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink-2); user-select: none; }
.chip:hover { border-color: var(--rose-soft); } .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chip.rose { background: var(--rose-soft); color: var(--rose-deep); border-color: transparent; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; } .toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); } .toggle button.on { background: var(--ink); color: #fff; }
.help { font-size: .8rem; color: var(--muted); }
.err { background: #fff3f4; color: var(--bad); border: 1px solid #f3c6cb; padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; } .okmsg { background: #eef8f1; color: var(--ok); border: 1px solid #c8e6d2; padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); } .card.flat { box-shadow: none; } .card.pad-sm { padding: 16px; } .card.blush { background: var(--blush); border-color: transparent; }
.kpi { display: grid; gap: 4px; } .kpi b { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; } .kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--sand); color: var(--ink-2); }
.badge.rose { background: var(--rose-soft); color: var(--rose-deep); } .badge.ok { background: #dff2e6; color: #2d7a4c; } .badge.warn { background: #fbe8cc; color: #8a5a14; } .badge.bad { background: #fde0e3; color: #a12a38; } .badge.ink { background: var(--ink); color: #fff; } .badge.sky { background: #ddeaf4; color: #2f5e7f; } .badge.gold { background: #f6ecd2; color: #7d6020; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.list { display: grid; gap: 10px; } .list-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; } .list-item:hover { border-color: var(--rose-soft); }
.thumb { width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--sand); flex: none; } .thumb.sq { height: 56px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); } .tbl td { padding: 11px 10px; border-bottom: 1px solid #f3eceb; vertical-align: middle; } .tbl tr:hover td { background: #fdf8f6; } .tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.pcard { display: block; position: relative; }
.pcard .ph { aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--sand); position: relative; transition: transform .25s, box-shadow .25s; }
.pcard:hover .ph { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .pcard:hover .ph img { transform: scale(1.04); }
.pcard .fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 0; display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; color: var(--rose); }
.pcard .fav.on { background: var(--rose); color: #fff; }
.pcard .tag { position: absolute; left: 10px; top: 10px; }
.pcard .meta { padding: 10px 2px 0; } .pcard .meta .t { font-weight: 700; font-size: .95rem; line-height: 1.3; } .pcard .meta .b { color: var(--muted); font-size: .82rem; } .pcard .price { font-weight: 800; margin-top: 4px; } .pcard .price small { color: var(--muted); font-weight: 600; }
.pcard .owner { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-top: 4px; } .pcard .owner .avatar { width: 20px; height: 20px; font-size: .6rem; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #f8dfe2 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #f1e6dc 0%, transparent 60%), var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; min-height: 560px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 520px; }
.search-bar { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); align-items: center; max-width: 620px; }
.search-bar input { border: 0; outline: none; flex: 1; padding: 10px 0; font-size: 1rem; background: transparent; min-width: 0; }
.search-bar .ai { font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--rose); text-transform: uppercase; padding: 4px 8px; background: var(--blush); border-radius: 999px; white-space: nowrap; }
.collage { position: relative; height: 520px; }
.collage .tile { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand); border: 6px solid #fff; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .t1 { left: 0; top: 30px; width: 46%; height: 62%; transform: rotate(-4deg); } .collage .t2 { right: 0; top: 0; width: 44%; height: 52%; transform: rotate(3deg); } .collage .t3 { right: 8%; bottom: 0; width: 48%; height: 46%; transform: rotate(-2deg); } .collage .t4 { left: 12%; bottom: 10px; width: 36%; height: 32%; transform: rotate(5deg); }
.collage .pill { position: absolute; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); } .collage .p1 { left: 36%; top: 6%; } .collage .p2 { right: 2%; bottom: 44%; }
.strip { display: flex; gap: 10px; flex-wrap: wrap; } .strip a { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; } .strip a:hover { border-color: var(--rose); color: var(--rose-deep); }
.section { padding: 56px 0; } .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; } .section-head p { margin: 0; }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .step { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); } .step .n { font-family: var(--serif); font-size: 2.4rem; color: var(--rose); line-height: 1; margin-bottom: 10px; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; } .cat { aspect-ratio: 1; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 10px; font-weight: 700; font-size: .9rem; gap: 6px; } .cat:hover { border-color: var(--rose); background: var(--blush); } .cat span { font-size: 1.7rem; }
.quote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.35; }
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; } .band h2 { color: #fff; } .band .muted { color: #c7b8c4; } .band .btn.white { color: var(--ink); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .trust div { padding: 18px; border-radius: var(--r); background: var(--blush); } .trust b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; margin-top: 60px; color: var(--muted); font-size: .9rem; } footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; } footer a { display: block; padding: 3px 0; } footer a:hover { color: var(--rose); }

/* browse */
.browse { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 18px; } .filters h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-row { display: flex; gap: 8px; align-items: center; } .price-row input { width: 100%; }
.results-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.map-box { height: 420px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sand); } .map-box.tall { height: 560px; }
.leaflet-container { font-family: var(--sans); } .leaflet-popup-content-wrapper { border-radius: 14px; } .leaflet-popup-content { margin: 10px 12px; }
.mk-pin { width: 34px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rose); border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); overflow: hidden; } .mk-pin img { width: 100%; height: 100%; object-fit: cover; transform: rotate(45deg) scale(1.5); }
.mk-me { width: 16px; height: 16px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(122, 165, 196, .3); }

/* item page */
.item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.gallery { display: grid; gap: 10px; } .gallery .main { aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--sand); } .gallery .main img { width: 100%; height: 100%; object-fit: cover; } .gallery .thumbs { display: flex; gap: 8px; } .gallery .thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; } .gallery .thumbs img.on { border-color: var(--rose); }
.buy-box { position: sticky; top: 84px; } .price-big { font-family: var(--serif); font-size: 2rem; } .price-big small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 600; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .92rem; } .specs b { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; display: block; }
.quote-lines { display: grid; gap: 6px; font-size: .92rem; } .quote-lines div { display: flex; justify-content: space-between; } .quote-lines .total { font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 1.05rem; }
.prot { display: grid; gap: 8px; } .prot label { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; align-items: flex-start; background: #fff; } .prot label.on { border-color: var(--rose); background: var(--blush); } .prot input { margin-top: 3px; accent-color: var(--rose); }
.agreement { max-height: 320px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: .86rem; } .agreement h2 { font-size: 1.2rem; } .agreement h3 { font-size: .95rem; margin-top: 14px; font-family: var(--sans); font-weight: 800; }
.sig { font-family: 'Fraunces', cursive; font-style: italic; font-size: 1.5rem; }

/* app shell */
.app { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-top: 24px; }
.side { position: sticky; top: 84px; display: grid; gap: 4px; } .side a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); } .side a:hover { background: var(--blush); } .side a.on { background: var(--ink); color: #fff; } .side .sep { height: 1px; background: var(--line); margin: 8px 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; } .page-head h1 { font-size: 2rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.closet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .closet-grid .pcard .meta .t { font-size: .9rem; }
.dropzone { border: 2px dashed var(--rose-soft); border-radius: var(--r); padding: 36px; text-align: center; background: var(--blush); cursor: pointer; } .dropzone:hover { border-color: var(--rose); } .dropzone b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; display: block; margin-bottom: 4px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.canvas-wrap { position: relative; border-radius: var(--r); overflow: hidden; background: #f1e9e4; display: grid; place-items: center; min-height: 360px; } .canvas-wrap canvas { max-width: 100%; max-height: 70vh; display: block; }
.crop-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .crop-opts button { padding: 10px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .82rem; display: grid; gap: 2px; justify-items: center; } .crop-opts button.on { border-color: var(--rose); background: var(--blush); color: var(--rose-deep); } .crop-opts button span { font-size: 1.3rem; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; } .photo-strip .ps { position: relative; width: 72px; height: 90px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; } .photo-strip .ps img { width: 100%; height: 100%; object-fit: cover; } .photo-strip .ps.on { border-color: var(--rose); } .photo-strip .ps .x { position: absolute; top: 2px; right: 2px; background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; cursor: pointer; }
.scan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .scan-grid .sc { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; border: 3px solid transparent; cursor: pointer; background: var(--sand); } .scan-grid .sc img { width: 100%; height: 100%; object-fit: cover; } .scan-grid .sc.pick { border-color: var(--rose); } .scan-grid .sc.skip { opacity: .4; } .scan-grid .sc .lbl { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: .7rem; padding: 18px 6px 6px; font-weight: 700; }
.ai-box { border: 1px solid var(--rose-soft); background: linear-gradient(135deg, #fff, var(--blush)); border-radius: var(--r); padding: 16px; } .ai-box .eyebrow { margin-bottom: 4px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--rose-soft); border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
.timeline { display: grid; gap: 0; } .tl { display: grid; grid-template-columns: 22px 1fr; gap: 12px; } .tl .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin: 6px auto; } .tl.done .dot { background: var(--ok); } .tl.now .dot { background: var(--rose); box-shadow: 0 0 0 5px var(--rose-soft); } .tl .body { padding-bottom: 18px; border-left: 0; } .tl .body b { display: block; }
.msgs { display: grid; gap: 8px; max-height: 420px; overflow: auto; padding: 6px; } .msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: .92rem; } .msg.me { margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink); } .msg .when { display: block; font-size: .7rem; opacity: .6; margin-top: 3px; }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--blush); border: 1px solid var(--rose-soft); font-size: .9rem; } .notice.gold { background: #fbf4e3; border-color: #ecd9a6; } .notice.sky { background: #eaf2f8; border-color: #c9dcea; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 999; animation: up .25s; } .toast.bad { background: var(--bad); } @keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(42, 31, 45, .5); display: grid; place-items: center; z-index: 200; padding: 20px; backdrop-filter: blur(4px); } .modal { background: var(--cream); border-radius: 24px; padding: 28px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.stars { color: var(--gold); letter-spacing: 1px; } .stars.pick span { cursor: pointer; font-size: 1.8rem; color: var(--line); } .stars.pick span.on { color: var(--gold); }
.auth { max-width: 440px; margin: 48px auto; } .auth .card { padding: 32px; }
.legal-doc { max-width: 760px; } .legal-doc h2 { margin-top: 0; } .legal-doc h3 { font-family: var(--sans); font-weight: 800; font-size: 1rem; margin-top: 24px; }
.profile-head { display: flex; gap: 20px; align-items: center; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty b { font-family: var(--serif); font-size: 1.4rem; display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.sparkline { display: flex; align-items: flex-end; gap: 4px; height: 60px; } .sparkline i { flex: 1; background: var(--rose-soft); border-radius: 3px 3px 0 0; min-height: 3px; } .sparkline i.hi { background: var(--rose); }

/* admin */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; } .admin-side { background: var(--ink); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; } .admin-side .brand { color: #fff; margin: 0 8px 22px; font-size: 1.25rem; } .admin-side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: #cfc2cc; font-weight: 600; font-size: .9rem; } .admin-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; } .admin-side a.on { background: var(--rose); color: #fff; } .admin-side .grp { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8a7a86; margin: 16px 12px 6px; }
.admin-main { padding: 26px 32px; background: var(--cream); min-width: 0; }
.admin-main .kpis { grid-template-columns: repeat(5, 1fr); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; } .tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs button.on { color: var(--rose-deep); border-color: var(--rose); }
.chat { display: grid; grid-template-rows: 1fr auto; height: 70vh; } .chat .log { overflow: auto; display: grid; gap: 10px; align-content: start; padding: 10px; } .chat .log .msg { max-width: 85%; white-space: pre-wrap; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 140px; } .bars div { background: linear-gradient(180deg, #d4607e, var(--rose)); border-radius: 6px 6px 2px 2px; position: relative; min-height: 4px; } .bars div span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .65rem; color: var(--muted); }
.json { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; white-space: pre-wrap; max-height: 300px; overflow: auto; }

@media (max-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); } .cats { grid-template-columns: repeat(3, 1fr); } .admin-main .kpis { grid-template-columns: repeat(3, 1fr); } .scan-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; min-height: 0; } .collage { height: 380px; } .steps, .trust, .grid3, .grid4, .kpis, .size-grid, .editor, .item, .browse, .app, .band, footer .cols, .crop-opts { grid-template-columns: 1fr 1fr; } .browse, .item, .app, .editor, .band, .steps { grid-template-columns: 1fr; }
  .filters, .side, .buy-box { position: static; } .filters { display: none; } .filters.open { display: grid; } .filter-toggle { display: inline-flex; } .side { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .side a { white-space: nowrap; } .side .sep { display: none; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px; } .nav.open { display: flex; } .menu-btn { display: block; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } .closet-grid { grid-template-columns: repeat(2, 1fr); } .cats { grid-template-columns: repeat(3, 1fr); } .scan-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; } .admin-side .brand { width: 100%; margin-bottom: 8px; } .admin-side .grp { display: none; } .admin-side a { padding: 7px 10px; font-size: .82rem; } .admin-main { padding: 18px 16px; } .admin-main .kpis { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 28px; } .section { padding: 36px 0; } h1 { font-size: 2.2rem; }
}
@media (max-width: 520px) { .grid2, .trust, .grid3, .grid4, .kpis, .size-grid, .crop-opts, footer .cols { grid-template-columns: 1fr; } .pgrid { gap: 14px 10px; } .wrap { padding: 0 16px; } .card { padding: 16px; } .modal { padding: 20px; } .bars { height: 100px; } }
