:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --tile: #efe9e1;
  --ink: #1f1b16;
  --muted: #7a7066;
  --line: #e4ddd3;
  --accent: #a4502f;
  --accent-ink: #ffffff;
  --accent-soft: #f3e1d8;
  --danger: #b3261e;
  --ok: #3d6b45;
  --shadow: 0 10px 30px rgba(40, 28, 16, .12);
  --radius: 16px;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --surface: #211d18;
    --tile: #2b2620;
    --ink: #f1ebe3;
    --muted: #a39788;
    --line: #37302a;
    --accent: #e08a64;
    --accent-ink: #1b120d;
    --accent-soft: #3a2a22;
    --danger: #f2877e;
    --ok: #8fc19a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }

/* --- Üst bar --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar h1 { font-size: 28px; }
.topbar-actions { display: flex; gap: 8px; }

#view { padding: 4px 16px 0; max-width: 980px; margin: 0 auto; }

/* --- Alt menü --- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  background: none; border: 0; padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: 11px; font-weight: 500;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--ink); }
.add-tab {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  justify-content: center;
}
.add-tab svg { stroke-width: 2.2; }

/* --- Butonlar ve form --- */
.btn {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 16px; /* iOS yakınlaştırmasını engeller */
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-error { color: var(--danger); font-size: 14px; min-height: 1em; margin: 8px 0 0; }

/* Seçilebilir çipler */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* --- Dolap --- */
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input { flex: 1; }
.review-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--accent-soft); color: var(--ink);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; border: 0; width: 100%; text-align: left;
}
.review-banner b { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { border: 0; padding: 0; background: none; text-align: left; position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; }
.card .ph {
  aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--tile);
  display: grid; place-items: center; overflow: hidden;
}
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.card .ph img.full { object-fit: cover; padding: 0; }
.card .meta { padding: 7px 2px 0; }
.card .name { font-size: 13.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.badge {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 999px;
}
.badge.status { background: var(--ink); color: var(--bg); left: auto; right: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }

.empty { text-align: center; padding: 60px 20px; }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 320px; margin: 0 auto 18px; }

/* --- Alt sayfa (sheet) --- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 8, .45); }
.sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(24px + var(--safe-b));
  box-shadow: var(--shadow);
  animation: up .22s ease-out;
}
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: 620px; transform: translateX(-50%); bottom: 4vh; border-radius: 22px; max-height: 88vh; }
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) { @keyframes up { from { opacity: 0; } } }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 22px; }

.add-options { display: grid; gap: 10px; }
.add-option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px;
}
.add-option svg { width: 28px; height: 28px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.add-option b { display: block; font-size: 15px; }
.add-option small { color: var(--muted); }
.tip { font-size: 13px; color: var(--muted); background: var(--tile); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }

/* Yükleme kuyruğu */
.queue { display: grid; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.q-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--tile); }
.q-item .q-text { flex: 1; min-width: 0; font-size: 14px; }
.q-item .q-text small { display: block; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.q-ok { color: var(--ok); font-weight: 700; }
.q-err { color: var(--danger); font-weight: 700; }

/* Parça detayı */
.item-hero { position: relative; background: var(--tile); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.item-hero img { width: 100%; height: 100%; object-fit: contain; }
.item-hero img.cut { padding: 6%; }
.hero-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.color-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 6px 5px 5px; font-size: 13px; }
.color-pill input[type=color] { width: 22px; height: 22px; border: 0; padding: 0; background: none; border-radius: 50%; }
.color-pill input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-pill input[type=color]::-webkit-color-swatch { border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.color-pill input[type=text] { width: 90px; border: 0; padding: 2px; background: none; font-size: 13px; }
.color-pill button { border: 0; background: none; color: var(--muted); padding: 0 4px; font-size: 16px; line-height: 1; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 2px; font-size: 12px; line-height: 1.15; }
.scale button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sticky-actions {
  position: sticky; bottom: calc(-24px - var(--safe-b)); margin: 16px -16px calc(-24px - var(--safe-b));
  padding: 12px 16px calc(12px + var(--safe-b)); background: var(--bg);
  border-top: 1px solid var(--line); display: flex; gap: 8px;
}
.sticky-actions .btn.primary { flex: 1; }
details.more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { font-weight: 600; cursor: pointer; margin-bottom: 12px; }

/* --- Profil --- */
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.section h2 { font-size: 20px; margin-bottom: 4px; }
.section > p.muted { margin: 0 0 14px; font-size: 14px; }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 14px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); position: relative; }
.swatch-label { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 3px; line-height: 1.15; }
.palette-cell { min-width: 0; }
.season-title { font-family: var(--serif); font-size: 26px; margin: 4px 0; }
.kv { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; margin-bottom: 10px; }
.kv b { font-weight: 600; }
.tips { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.tips li { margin-bottom: 4px; }
h3.sub { font-size: 15px; font-family: var(--sans); margin-top: 6px; }

.placeholder { text-align: center; padding: 50px 20px; }
.placeholder .big { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.placeholder ul { text-align: left; max-width: 360px; margin: 16px auto 0; color: var(--muted); font-size: 14px; }

/* --- Bildirim --- */
.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px;
  font-size: 14px; width: max-content; max-width: min(calc(100vw - 32px), 440px); box-shadow: var(--shadow);
}

/* --- Giriş sayfası --- */
.login-body { display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-card h1 { font-size: 34px; margin: 10px 0 6px; }
.login-card form { display: grid; gap: 10px; margin-top: 22px; }
.brand-mark { color: var(--accent); display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--accent-soft); }

/* --- Kombin --- */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--tile); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.segmented button { border: 0; background: none; padding: 9px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.segmented.small { margin: 0; flex: 0 0 auto; }
.segmented.small button { padding: 6px 10px; font-size: 12.5px; }
.stylist-form { margin-bottom: 20px; }
.wx-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.wx { font-size: 13.5px; color: var(--muted); }
.wx b { color: var(--ink); }
.anchors { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.anchor { position: relative; width: 72px; height: 86px; border-radius: 14px; border: 1px solid var(--line); background: var(--tile); padding: 6px; }
.anchor img { width: 100%; height: 100%; object-fit: contain; }
.anchor span { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 21px; }
.anchor.add { width: auto; padding: 0 16px; border-style: dashed; font-weight: 600; font-size: 13px; }
.small-note { font-size: 13px; margin: 4px 0 12px; }
.big-btn { padding: 14px; font-size: 15.5px; margin-top: 4px; }
.spinner.light { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: currentColor; display: inline-block; vertical-align: -3px; }
.grid.picker { margin-bottom: 8px; }
.card.pick .ph { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s; }
.card.pick.chosen .ph { outline-color: var(--accent); }
.card.pick.chosen::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.outfit { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 16px; }
.outfit-head h3 { font-size: 21px; }
.outfit-head p { margin: 2px 0 12px; font-size: 13px; }
.look { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; background: var(--tile); border-radius: 16px; padding: 12px; }
.look.no-side { grid-template-columns: 1fr; }
.look-main, .look-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.look-tile { border: 0; padding: 0; background: none; display: grid; place-items: center; border-radius: 12px; position: relative; }
.look-tile img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(40, 28, 16, .16)); }
.look-tile img.full { object-fit: cover; border-radius: 12px; filter: none; }
.look-tile.big { aspect-ratio: 1; }
.look-tile.big.cat-ust { aspect-ratio: 1 / .9; }
.look-tile.big.cat-tek_parca { aspect-ratio: 3 / 4; }
.look-tile.big.cat-ayakkabi { aspect-ratio: 5 / 2; }
.look-main { justify-content: center; }
.look-side .look-tile { aspect-ratio: 1; background: color-mix(in srgb, var(--surface) 55%, transparent); padding: 8%; }
.look-side .look-tile.cat-dis { aspect-ratio: 3 / 4; }
.look-tile.missing { border: 2px dashed var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); padding: 10px; gap: 4px; align-content: center; text-align: center; min-height: 90px; }
.miss-swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.miss-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.miss-tag { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.look.compact { padding: 8px; }
.outfit-why { margin: 12px 0 6px; font-size: 14.5px; }
.missing-box { background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 10px; }
.missing-row { display: flex; align-items: center; gap: 10px; }
.missing-row > div { flex: 1; min-width: 0; font-size: 14px; }
.missing-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.dot.big { width: 22px; height: 22px; flex: 0 0 auto; }
.outfit-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.outfit-actions .icon-btn { font-size: 17px; }
.outfit-actions .icon-btn.on { background: var(--ink); border-color: var(--ink); }
.hint { font-size: 12px; margin: 10px 0 0; }

.piece-menu { text-align: center; }
.piece-menu .piece-img { width: 160px; height: 160px; margin: 0 auto 10px; background: var(--tile); border-radius: 18px; padding: 14px; }
.piece-menu .piece-img img { width: 100%; height: 100%; object-fit: contain; }
.piece-menu h2 { font-size: 20px; }
.piece-menu p.muted { margin: 2px 0 16px; }
.piece-menu .btn { margin-bottom: 8px; }

/* Sohbet */
.chat-log { min-height: 40vh; max-height: 58vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.msg.model { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-empty { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-empty p { width: 100%; margin: 0 0 4px; }
.chat-empty .chip { white-space: normal; text-align: left; }
.chat-form { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--bg); padding-top: 8px; }
.chat-form input { flex: 1; }

/* --- Alışveriş --- */
.shop-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; }
.shop-add input { grid-column: 1 / -1; }
.shop { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.shop.bought { opacity: .7; }
.shop-top { display: flex; gap: 14px; }
.shop-img { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 14px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-swatch { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.shop-body { min-width: 0; }
.shop-body h3 { font-size: 17px; }
.shop-body p.muted { margin: 2px 0 4px; font-size: 13px; }
.shop-why { font-size: 13.5px; margin: 0; }
.analysis { display: flex; gap: 12px; align-items: center; background: var(--tile); border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.analysis p { margin: 0; }
.analysis p.muted { font-size: 12.5px; margin-top: 2px; }
.combos { text-align: center; flex: 0 0 auto; min-width: 58px; }
.combos b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--accent); }
.combos span { font-size: 11px; color: var(--muted); }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img { width: 52px; height: 52px; object-fit: contain; background: var(--tile); border-radius: 10px; padding: 4px; flex: 0 0 auto; }
.warn { font-size: 13px; color: var(--danger); margin: 8px 0 0; }
.shop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
a.btn { text-decoration: none; color: inherit; }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Nasıl giyilir */
.howto { background: var(--tile); border-radius: 14px; padding: 12px; margin: 10px 0 4px; display: grid; gap: 9px; }
.howto h4 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.how-row { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.35; }
.how-row img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; background: var(--surface); border-radius: 9px; padding: 3px; }
.how-row img.full { object-fit: cover; padding: 0; }
.how-row b { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.how-row.extra { align-items: flex-start; }
.extra-tag { flex: 0 0 auto; min-width: 78px; text-align: center; font-size: 11.5px; font-weight: 700; background: var(--surface); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.toggle { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.toggle small { display: block; color: var(--muted); font-size: 13px; }

/* Takım */
.card .ph { position: relative; }
.badge.set { top: auto; bottom: 8px; left: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.set-box { margin-bottom: 14px; }
.set-head { display: flex; flex-direction: column; margin-bottom: 8px; font-size: 14px; }
.set-head .muted { font-size: 12.5px; }
.set-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.set-thumb { width: 84px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.set-thumb img { width: 100%; height: 64px; object-fit: contain; }
.set-thumb span { font-size: 11px; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-thumb.add { justify-content: center; border-style: dashed; font-weight: 600; font-size: 13px; min-height: 90px; }

.hint-inline { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.care-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }

.usage { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.usage th { text-align: right; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 4px 0; }
.usage td { text-align: right; padding: 4px 0; border-top: 1px solid var(--line); }
.usage td:first-child, .usage th:first-child { text-align: left; }
