:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #1d1a17;
  --muted: #8a827a;
  --line: #e6e0d8;
  --accent: #b4483c;
  --ok: #2f7a4f;
  --radius: 14px;
  --tabs: 62px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--sans); }
body { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
main { max-width: 1400px; margin: 0 auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 8px; }
.top h1 { font: 600 30px/1.1 var(--serif); margin: 0; letter-spacing: -.01em; }
h2 { font: 600 19px/1.2 var(--serif); margin: 22px 0 10px; }
.pad { padding: 0 16px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card);
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 18px; }
.icon-btn svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.search { padding: 0 16px 8px; }
.search input { width: 100%; }

/* chip */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on small { color: #cfc8c0; }
.chips.sub .chip { padding: 6px 12px; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 16px 10px; }

/* form */
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
input:focus, select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.toolbar select { width: auto; padding: 8px 10px; min-height: 38px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.switch input { appearance: none; width: 44px; min-width: 44px; height: 26px; min-height: 26px; padding: 0;
  border-radius: 99px; background: var(--line); border: 0; position: relative; transition: .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 21px; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.form label:not(.switch) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form label > input, .form label > select, .form label .row input { color: var(--ink); font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: space-between; margin: 10px 0 30px; }
.btn { border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 22px; font-weight: 600; }
.pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 15px;
  font-size: 14px; white-space: nowrap; }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.danger { color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 0 16px 10px; }
.form .hint { margin: 0; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
code { background: #ece6de; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
details[open] { display: flex; flex-direction: column; gap: 14px; }
.actions { padding: 16px; }

/* griglia prodotti */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; padding: 4px 12px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; } }
@media (min-width: 1050px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card { cursor: pointer; }
.ph { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: #ebe5dd; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.ph img.loading { opacity: 0; }
.ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.heart { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); display: grid; place-items: center; }
.heart svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.heart.on svg { fill: var(--accent); stroke: var(--accent); }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(29,26,23,.85); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge.sale { background: var(--accent); }
.card.oos .ph img { filter: grayscale(.6); opacity: .75; }
.meta { padding: 8px 2px 0; }
.meta .site { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .name { font-size: 14px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 650; margin-top: 3px; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.sentinel { height: 40px; }
.skeleton .ph { animation: pulse 1.2s infinite alternate; }
@keyframes pulse { from { opacity: .5 } to { opacity: 1 } }

/* scheda prodotto */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex;
  justify-content: center; align-items: flex-end; }
.sheet-body { background: var(--bg); width: 100%; max-width: 760px; height: 100%; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { .sheet { align-items: center; } .sheet-body { height: 92vh; border-radius: 18px; } }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #ebe5dd; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 3/4; object-fit: cover; scroll-snap-align: center; }
@media (min-width: 800px) { .slides img { width: 60%; } }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.close-fab { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 2; }
.detail { padding: 16px; }
.detail .site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.detail h1 { font: 600 24px/1.2 var(--serif); margin: 6px 0 8px; }
.detail .price { font-size: 20px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 10px 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.no::before { background: var(--accent); }
.status.unk::before { background: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.size { min-width: 48px; padding: 10px 12px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; font-size: 14px; }
.size.no { color: var(--muted); text-decoration: line-through; background: transparent; }
.size.sel { border-color: var(--ink); outline: 1.5px solid var(--ink); }
.detail .buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.detail .buttons .btn, .detail .buttons .pill { text-align: center; text-decoration: none; padding: 14px; font-size: 15px; }
.detail .small { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* siti */
.list { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 20px; }
.site-card { background: var(--card); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.site-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-card b { font-size: 16px; }
.site-card .url { color: var(--muted); font-size: 12px; word-break: break-all; }
.site-card .st { font-size: 13px; }
.site-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; background: #ece6de; border-radius: 6px; padding: 2px 6px; margin-left: 6px; color: var(--muted); }
.cat-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px; margin-bottom: 6px; }
.cat-row button { border: 0; background: none; font-size: 18px; color: var(--muted); }
.tester { border-top: 1px solid var(--line); margin-top: 6px; }
.test-res { background: var(--card); border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 13px; word-break: break-all; }
.test-res img { width: 90px; border-radius: 8px; float: right; margin-left: 10px; }
.test-res ul { padding-left: 18px; margin: 6px 0 0; }
.ok { color: var(--ok); } .ko { color: var(--accent); }
.chat-list { display: flex; flex-direction: column; gap: 6px; }

/* eventi */
.events { list-style: none; margin: 0; padding: 0 16px 30px; font-size: 13px; }
.events li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.events time { color: var(--muted); flex: none; width: 92px; }
.events .error { color: var(--accent); }
.events .restock { color: var(--ok); font-weight: 600; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  background: rgba(246,243,238,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); height: calc(var(--tabs) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; position: relative; }
.tabs a.on { color: var(--ink); }
.tabs a b { position: absolute; top: 6px; left: 54%; background: var(--accent); color: #fff; font-size: 10px;
  border-radius: 99px; padding: 1px 6px; }
.tabs a b:empty { display: none; }

.busy { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--ink); color: #fff; font-size: 12px;
  text-align: center; padding: calc(4px + env(safe-area-inset-top)) 10px 4px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 70; font-size: 14px;
  max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* accesso */
.login-body { display: flex; align-items: center; justify-content: center; }
@media (min-width: 800px) { .login-body { height: auto; padding: 30px 0; } }
.login-card { width: 100%; max-width: 380px; padding: 30px 20px; text-align: center; }
.login-card label { text-align: left; }
.login-card h1 { font: 600 28px/1.1 var(--serif); margin: 0; }
.login-card .lock { width: 44px; height: 44px; margin: 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.err { color: var(--accent); font-size: 14px; min-height: 1em; margin: 0; }
.account { margin-top: 10px; }

/* genere */
.seg { display: flex; gap: 4px; margin: 2px 16px 8px; padding: 4px; background: #ebe5dd; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button small { font-weight: 400; color: var(--muted); margin-left: 3px; font-size: 11px; }
.genders { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.genders legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink) !important; flex-direction: row !important; }
.chk input { width: 20px; height: 20px; min-height: 0; }
.cat-row { grid-template-columns: 1fr 2fr 92px auto; }
.cat-row select { padding: 8px 6px; }
@media (max-width: 520px) { .cat-row { grid-template-columns: 1fr 1fr auto; } .cat-row [data-cu] { grid-column: 1 / -1; grid-row: 2; } }
.row.wrap { flex-wrap: wrap; }
/* log */
.log-list { list-style: none; margin: 0; padding: 0 0 30px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-list li { padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.log-list .lv { display: inline-block; min-width: 44px; font-weight: 700; }
.log-list .info .lv { color: var(--muted); }
.log-list .warn .lv { color: #b07a10; }
.log-list .error .lv { color: var(--accent); }
.log-list .error { background: #fbeeec; }
.log-list .u { color: var(--muted); display: block; font-size: 11px; }
.log-list .d { color: #5d564f; display: block; font-size: 11px; white-space: pre-wrap; max-height: 120px; overflow: auto; }
#log-run { width: auto; flex: 1; min-width: 200px; }

.log-list .run { background: #ece6de; border-radius: 8px; padding: 8px 10px; margin-top: 10px; border: 0;
  font: 600 12px/1.4 var(--sans); color: var(--ink); }
.log-list .run small { font-weight: 400; color: var(--muted); display: block; }
.log-list .site { display: inline-block; background: var(--ink); color: #fff; border-radius: 4px; padding: 0 5px; margin-right: 4px; font-size: 10px; }
.tabs a span { white-space: nowrap; }
@media (max-width: 380px) { .tabs a span { font-size: 10px; } }

.brand { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%; resize: vertical; font-size: 16px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: none; width: 110px; }
.strip .meta .name { font-size: 12px; }
.motivo { font-size: 12px; color: var(--accent); margin-top: 3px; line-height: 1.3; }
.like-on { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
#kind { width: auto; padding: 8px 10px; min-height: 38px; }
.toolbar { flex-wrap: wrap; }
.tabs a span { font-size: 10px; }

.measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.size.rec { border-color: var(--ok); outline: 2px solid var(--ok); }
.size-tip { font-size: 14px; background: #e9f3ec; color: #1f5a37; border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.size-tip a { color: inherit; }
.grid h3.group { grid-column: 1 / -1; margin: 14px 2px 2px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.grid h3.group:first-child { margin-top: 2px; }

/* ================================================================ restyling 2 */
:root { --bg: #f7f1ea; --accent: #c2405e; --accent-soft: #f8e3e8; --ok: #23784a; --ok-soft: #e3f2e8; --radius: 18px; }
body { background: radial-gradient(1200px 500px at 50% -200px, #fbe9ec 0%, var(--bg) 60%) fixed; }
.feed-head { position: sticky; top: 0; z-index: 30; background: rgba(247,241,234,.88);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,0,0,.04); }
.feed-head .top { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 6px; }
.feed-head .top h1 { font-size: 26px; }
.brand { background: linear-gradient(90deg, var(--accent), #8e2b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg { background: #efe6dc; }
.seg button.on { color: var(--accent); }
.chips.sub .chip { background: transparent; border-color: #e3d8cc; }
.chips.sub .chip.on, .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { padding: 2px 16px 8px; flex-wrap: nowrap; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; }
.filter-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.filter-btn b { background: var(--accent); border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.filter-btn b:empty { display: none; }
#sort { border-radius: 999px; padding: 8px 14px; min-height: 38px; background: var(--card); width: auto; }
.chips.active { padding-top: 0; }
.chip.x { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; font-size: 13px; padding: 6px 12px; }

.grid { gap: 14px 12px; padding: 10px 12px 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(40,20,10,.05), 0 6px 18px rgba(40,20,10,.06);
  transition: transform .15s ease, box-shadow .15s ease; }
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(40,20,10,.06), 0 12px 28px rgba(40,20,10,.10); } }
.card .ph { border-radius: 0; }
.card .meta { padding: 9px 10px 11px; }
.meta .name { font-size: 13.5px; line-height: 1.3; }
.price { font-size: 15px; }
.badge.sale { background: var(--accent); }
.heart { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.skeleton { box-shadow: none; background: transparent; }

.sz { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: var(--muted); display: flex; flex-direction: column; gap: 1px; }
.sz b { font-weight: 700; }
.sz i { font-style: normal; opacity: .7; }
.sz.ok { color: var(--ok); }
.sz.ok b { background: var(--ok-soft); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.sz.no b { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.sz span { color: var(--muted); }

.grid h3.group { font: 600 20px/1.2 var(--serif); margin: 18px 4px 0; display: flex; align-items: center; gap: 12px; }
.grid h3.group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #dccfc2, transparent); }

/* pannello filtri */
.fsheet { align-items: flex-end; }
.fbody { height: auto; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 6px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease; }
@media (min-width: 800px) { .fbody { border-radius: 22px; max-width: 520px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.fhead { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 10px 0 4px; z-index: 1; }
.fhead h2 { margin: 0; font-size: 22px; }
.fbody h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { border: 1px solid #e3d8cc; background: var(--card); border-radius: 999px; padding: 9px 15px; font-size: 14px; }
.opts button small { color: var(--muted); }
.opts button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts button.on small { color: #cfc8c0; }
.toggles { display: flex; flex-direction: column; gap: 14px; }
.toggles .switch { justify-content: space-between; flex-direction: row-reverse; background: var(--card); border-radius: 14px; padding: 12px 14px; }
.toggles .switch span { display: flex; flex-direction: column; flex: 1; }
.toggles .switch small { color: var(--muted); font-size: 12px; }
.toggles .switch input:checked { background: var(--accent); }
.fbtns { display: flex; gap: 10px; margin-top: 22px; }
.fbtns .pill { flex: 1; padding: 14px; }
.fbtns .btn { flex: 2; background: var(--accent); }

/* la mia taglia nel dettaglio e nelle impostazioni */
.my-sz { border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; background: #eee6dd; }
.my-sz.ok { background: var(--ok-soft); color: #1b5a37; }
.my-sz.no, .my-sz.missing { background: var(--accent-soft); color: #8a2340; }
.size.sel { background: var(--ink); color: #fff; outline: none; }
.mysizes { display: flex; flex-direction: column; gap: 8px; }
.msz { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.msz span { flex: 1; display: flex; flex-direction: column; }
.msz small { color: var(--muted); font-size: 12px; }
.msz em { font-style: normal; font-weight: 700; font-size: 18px; min-width: 40px; text-align: center; }
.tabs a.on { color: var(--accent); }
.chips.subsub { padding-top: 0; }
.chips.subsub:empty { display: none; }
.chips.subsub .chip { font-size: 12.5px; padding: 5px 11px; background: var(--card); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chips.subsub .chip.on { background: var(--accent); color: #fff; }
.chips.subsub .chip.on small { color: #ffe3ea; }
.grid h3.group.small { font-size: 16px; color: #5d4a40; }

/* profilo, marche, guida taglie */
.brands { display: flex; flex-direction: column; gap: 10px; }
.brand-card { background: var(--card); border-radius: 14px; padding: 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: block !important; }
.brand-card summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--ink); font-size: 15px; }
.brand-card summary::-webkit-details-marker { display: none; }
.brand-card summary span { flex: 1; display: flex; flex-direction: column; }
.brand-card summary small { color: var(--muted); font-size: 12.5px; }
.brand-card summary i { font-style: normal; font-size: 22px; color: var(--muted); transition: transform .2s; }
.brand-card[open] summary i { transform: rotate(90deg); }
.bsizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 12px; }
.bsizes label { font-size: 11.5px !important; }
.bsizes input { min-height: 38px; padding: 8px; text-transform: uppercase; }
.guide { border-top: 1px solid var(--line); padding: 10px 0 14px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.gscroll { overflow-x: auto; }
.gtable table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.gtable th, .gtable td { border: 1px solid var(--line); padding: 5px 7px; text-align: center; white-space: nowrap; }
.gtable th { background: #f3ece4; }
.gtext { white-space: pre-wrap; font: 12px/1.45 var(--sans); background: #f7f1ea; border-radius: 8px; padding: 8px; max-height: 260px; overflow: auto; margin: 0; }
.gnote { margin: 0; background: var(--accent-soft); color: #8a2340; border-radius: 8px; padding: 8px 10px; }
#admin-area { margin-top: 26px; border-top: 6px solid #efe6dc; }

/* mi sta bene? */
.fit-btn { width: 100%; margin-top: 12px; border: 2px solid var(--ink); background: transparent; border-radius: 12px; padding: 13px; font-weight: 650; font-size: 15px; }
.fit-btn:disabled { opacity: .5; }
.fit-res { margin-top: 10px; border-radius: 14px; padding: 12px 14px; background: #eee6dd; font-size: 14px; }
.fit-res ul { margin: 8px 0 6px; padding-left: 18px; }
.fit-res li { margin: 3px 0; }
.fit-res small { color: var(--muted); font-size: 11.5px; }
.fit-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fit-head i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; }
.fit-res.ok { background: var(--ok-soft); color: #1b5a37; }
.fit-res.small, .fit-res.large { background: #fff1d6; color: #7a4b00; }
.fit-advice { margin: 8px 0 0; font-weight: 600; }
.fit-wait { color: var(--muted); }
.size.sel, .size.sel.rec { background: var(--ink); color: #fff; }
