/* ZenQi — thème sombre, or #d4af37, mobile d'abord. */
:root {
  --bg: #0f0f0f; --bg-2: #171717; --card: #1b1b1b; --card-2: #242424; --border: #2e2e2e; --border-2: #3c3c3c;
  --fg: #f4f4f4; --fg-2: #d6d6d6; --muted: #b4b4b4; --muted-2: #8e8e8e;
  --gold: #d4af37; --gold-2: #e9c75a; --gold-dim: rgba(212,175,55,.14);
  --up: #3ddc84; --down: #ff6b63; --flat: #b4b4b4;
  --up-bg: rgba(46,204,113,.12); --down-bg: rgba(255,95,87,.12); --flat-bg: rgba(154,154,154,.14);
  --radius: 14px; --radius-s: 9px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 20px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, -apple-system, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --c0: #d4af37; --c1: #7f8c8d; --c2: #e9c75a; --c3: #bdc3c7; --c4: #a67c00; --c5: #566573; --c6: #f1d27a; --c7: #4a4a4a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body { margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; padding-top: var(--sat); }
a { color: inherit; text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 600; }
h3 { font-size: 1rem; margin: 0; font-weight: 600; }
p { margin: .25rem 0; }
small, .small { font-size: .8rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.center { text-align: center; }
.label { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.display { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: rgba(15,15,15,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 7px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.topnav a.active, .topnav a:hover { color: var(--fg); background: var(--card-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-dim); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .9rem; border: 1px solid rgba(212,175,55,.35); }
.currency-toggle { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; padding: 2px; background: var(--card); cursor: pointer; }
.currency-toggle span { padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.currency-toggle span.on { background: var(--gold); color: #1a1400; font-weight: 600; }

/* Page */
.page { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(84px + var(--sab)); }
.landing .page, .public .page { padding-bottom: 32px; }
.section { margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.grid-2 .card + .card { margin-top: 0; }
.card.empty { text-align: center; padding: 32px 16px; }
.card.empty p { margin-bottom: 14px; color: var(--muted); }
.card h2 { margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--fg); }

/* Summary */
.summary-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.summary-main { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.metrics > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metrics .mono { font-size: .98rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.coin-title { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--card-2); color: var(--fg); font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { background: #2a2a2a; } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #1a1400; }
.btn-primary:hover { background: var(--gold-2); }
.btn-danger { background: var(--down-bg); border-color: rgba(255,95,87,.4); color: var(--down); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: var(--card-2); color: var(--fg); border-color: var(--border); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: .78rem; font-weight: 600; background: var(--flat-bg); color: var(--fg-2); white-space: nowrap; }
.badge.up { background: var(--up-bg); color: var(--up); } .badge.down { background: var(--down-bg); color: var(--down); }
.segmented { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button, .segmented a { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; border-radius: 7px; font-weight: 600; font-size: .82rem; cursor: pointer; min-height: 32px; }
.segmented .on { background: var(--card-2); color: var(--gold); }

/* Ticker */
.ticker { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); margin-bottom: 14px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 22px; width: max-content; padding: 8px 12px; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; align-items: baseline; font-size: .82rem; white-space: nowrap; }
.ticker-item .sym { font-weight: 700; color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Portfolio cards */
.portfolio-card { display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; }
.portfolio-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.portfolio-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portfolio-card-value { font-size: 1.5rem; font-weight: 600; }
.portfolio-card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; flex-wrap: wrap; }
.logo-row { display: flex; gap: 4px; margin-top: 4px; }
.coin-logo { border-radius: 50%; background: var(--card-2); object-fit: cover; flex-shrink: 0; }
.coin-logo-fallback { display: inline-grid; place-items: center; font-size: .6em; font-weight: 700; color: var(--gold); background: var(--gold-dim); }

/* Asset rows */
.asset-list { display: flex; flex-direction: column; gap: 8px; }
.asset-row { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "logo id pnl" "logo price hold"; gap: 2px 12px; align-items: center; padding: 12px 14px; margin: 0; }
.asset-row .coin-logo { grid-area: logo; }
.asset-id { grid-area: id; display: flex; flex-direction: column; min-width: 0; }
.asset-id .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-price { grid-area: price; display: flex; gap: 8px; align-items: baseline; font-size: .9rem; }
.asset-hold { grid-area: hold; display: flex; flex-direction: column; align-items: flex-end; font-size: .9rem; }
.asset-pnl { grid-area: pnl; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.asset-row.closed { opacity: .75; }
.sym { font-weight: 700; letter-spacing: .02em; }
.row-actions { grid-area: actions; display: flex; gap: 2px; }
.alert-row { grid-template-columns: 36px 1fr auto auto; grid-template-areas: "logo id pnl actions" "logo price hold actions"; }
.alert-row.inactive { opacity: .6; }

/* Transactions */
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-row { display: grid; grid-template-columns: auto 28px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; margin: 0; }
.tx-row.no-logo { grid-template-columns: auto 1fr auto auto; }
.tx-type { font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; letter-spacing: .04em; }
.tx-type.buy { background: var(--up-bg); color: var(--up); } .tx-type.sell { background: var(--down-bg); color: var(--down); }
.tx-main { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.tx-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-total { font-size: .9rem; }

/* Charts */
.chart-card { margin-top: 12px; }
.chart-wrap { position: relative; height: 230px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-tip { position: absolute; top: 6px; left: 6px; pointer-events: none; font-size: .78rem; background: rgba(20,20,20,.9); border: 1px solid var(--border-2); padding: 6px 8px; border-radius: 8px; display: none; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; flex: 1; min-width: 160px; font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li .mono { margin-left: auto; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c0); }
.legend li i[style*="--i:1"] { background: var(--c1); } .legend li i[style*="--i:2"] { background: var(--c2); } .legend li i[style*="--i:3"] { background: var(--c3); }
.legend li i[style*="--i:4"] { background: var(--c4); } .legend li i[style*="--i:5"] { background: var(--c5); } .legend li i[style*="--i:6"] { background: var(--c6); } .legend li i[style*="--i:7"] { background: var(--c7); }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.health-list { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.health-list li { display: flex; justify-content: space-between; }
.alloc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.alloc-list li { display: grid; grid-template-columns: 22px 54px 1fr 54px; gap: 10px; align-items: center; }
.alloc-list .mono { text-align: right; color: var(--muted); }

/* Fear & Greed */
.fear-body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.gauge { --v: 50; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(from 180deg, var(--down) 0deg, #f39c12 90deg, var(--up) 180deg, var(--bg-2) 180deg); flex-shrink: 0; }
.gauge::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--card); }
.gauge::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 50px; background: var(--fg); transform-origin: 50% 0; transform: rotate(calc(var(--v) * 1.8deg + 90deg)); border-radius: 2px; opacity: .85; }
.gauge-value { position: relative; font-size: 1.6rem; font-weight: 600; z-index: 1; }
.gauge-label { position: relative; z-index: 1; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fear-history { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; margin: 0; min-width: 220px; }
.fear-history div { display: flex; flex-direction: column; } .fear-history dt { color: var(--muted); font-size: .8rem; } .fear-history dd { margin: 0; font-size: 1rem; } .fear-history small { color: var(--muted); }

/* Tables, kv */
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table .num { text-align: right; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.kv div { display: flex; flex-direction: column; min-width: 0; } .kv dt { color: var(--muted); font-size: .8rem; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.export-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.export-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.notif-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.danger .btn { margin-right: 8px; margin-bottom: 8px; }
.inline { display: inline; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 500; color: var(--fg-2); }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 1rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.form input[type=number], .form .mono-input { font-family: var(--mono); }
.form small { color: var(--muted); font-weight: 400; }
.form input::placeholder, .calc-table input::placeholder, .calc-current input::placeholder, .coin-search::placeholder { color: #8a8a8a; opacity: 1; }
.form-error { background: var(--down-bg); color: var(--down); padding: 10px 12px; border-radius: 9px; font-size: .9rem; margin: 0 0 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.type-switch label { flex-direction: row; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.type-switch input { display: none; width: auto; min-height: 0; }
.type-switch label:has(input:checked) { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.type-switch label.sell:has(input:checked) { border-color: var(--down); color: var(--down); background: var(--down-bg); }
.coin-picker { position: relative; }
.coin-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; max-height: 260px; overflow: auto; background: var(--card-2); border: 1px solid var(--border-2); border-radius: 10px; margin-top: 4px; display: none; }
.coin-results.open { display: block; }
.coin-results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--fg); min-height: 44px; }
.coin-results button:hover, .coin-results button.hl { background: var(--bg-2); }
.coin-results .muted { margin-left: auto; font-size: .78rem; }
.coin-selected { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg-2); color: var(--fg); }
.coin-selected .change { margin-left: auto; }

/* Modal (bottom sheet on mobile) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--card); border: 1px solid var(--border-2); border-radius: 18px 18px 0 0; width: 100%; max-height: calc(100vh - 40px); overflow: auto; padding: 18px 16px calc(18px + var(--sab)); animation: up .18s; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 1.15rem; margin: 0; }
.modal-actions { display: flex; gap: 8px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }
.modal-actions .btn-danger { flex: 0 0 auto; }
.share-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.share-list li { display: flex; gap: 8px; align-items: center; }
.share-list input { flex: 1; font-family: var(--mono); font-size: .8rem; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--sab)); transform: translate(-50%, 20px); background: var(--card-2); border: 1px solid var(--border-2); color: var(--fg); padding: 10px 16px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255,95,87,.5); color: var(--down); }

/* Bottom nav */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(15,15,15,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding-bottom: var(--sab); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .7rem; color: var(--muted); font-weight: 500; }
.bottomnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav a.active { color: var(--gold); }

/* Landing */
.hero { display: grid; gap: 24px; padding-top: 24px; }
.hero-logo { border-radius: 14px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.15; margin-bottom: 12px; }
.hero p { color: var(--fg-2); font-size: 1.02rem; max-width: 46ch; }
.hero-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--fg-2); }
.hero-list li::before { content: "◆"; color: var(--gold); margin-right: 10px; font-size: .7rem; }
.auth-card { padding: 20px; }
.auth-switch { display: flex; margin-bottom: 14px; }
.auth-switch a { flex: 1; text-align: center; }
.flash { animation: flash .8s; }
@keyframes flash { from { background: var(--gold-dim); } }

/* Responsive */
@media (min-width: 720px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .page { padding: 24px 24px 40px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .asset-row { grid-template-columns: 36px 1.3fr 1fr 1fr auto; grid-template-areas: "logo id price hold pnl"; }
  .alert-row { grid-template-columns: 36px 1.3fr 1fr 1fr auto auto; grid-template-areas: "logo id price hold pnl actions"; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { max-width: 520px; border-radius: 18px; padding-bottom: 18px; }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 70vh; }
  .kv { grid-template-columns: repeat(4, 1fr); }
  .chart-wrap { height: 300px; }
}

/* Correctifs mobile : aucun débordement horizontal dans les formulaires et la modale. */
.form label, .form .row > label, .type-switch label { min-width: 0; }
.modal { max-width: 100%; }
.coin-selected { min-width: 0; }
.coin-selected .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.coin-selected strong { white-space: nowrap; }
.coin-results button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.asset-hold .muted { text-align: right; }

/* Pages publiques (SEO) */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(212,175,55,.3); background: var(--gold-dim); color: var(--gold); font-size: .85rem; font-weight: 500; margin-bottom: 18px; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero h1 .gold { display: block; }
.lead { color: var(--fg-2); font-size: 1.05rem; max-width: 60ch; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat h3 { font-size: .98rem; margin-bottom: 2px; } .feat p { color: var(--muted); font-size: .9rem; margin: 0; }
.feat-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-dim); display: grid; place-items: center; }
.feat-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-hint { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.install-hint summary:hover { color: var(--fg); }
.install-hint summary { cursor: pointer; text-align: center; list-style: none; }
.install-hint summary::-webkit-details-marker { display: none; }
.install-steps { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); display: grid; gap: 10px; }
.install-steps ol { margin: 6px 0 0; padding-left: 18px; } .install-steps li { margin: 2px 0; }
.tag { display: inline-block; background: var(--card-2); border-radius: 6px; padding: 2px 8px; font-size: .75rem; color: var(--fg); }
.seo-section { margin-top: 44px; }
.seo-section h2 { font-size: 1.35rem; margin-bottom: 10px; }
.seo-section p { color: var(--fg-2); max-width: 72ch; }
.seo-section a { color: var(--gold); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.grid-3 .card + .card { margin-top: 0; }
.grid-3 .card h3 { margin-bottom: 6px; }
.grid-3 .card p.muted, .card.empty p { color: var(--muted); }
.steps { padding-left: 20px; color: var(--fg-2); display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.steps strong { color: var(--fg); }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; }
.page-head { padding: 12px 0 8px; }
.page-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.calc-table input, .calc-table select { width: 100%; min-height: 42px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--fg); font: inherit; }
.calc-table td, .calc-table th { padding: 6px 4px; white-space: normal; }
.calc-table td:first-child { min-width: 84px; }
.calc-current { color: var(--fg-2); }
.calc-current { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.calc-current input { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 1rem; }
.calc-results .kv { grid-template-columns: 1fr 1fr; }
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 16px calc(24px + var(--sab)); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--fg-2); }
.footer-links a:hover { color: var(--fg); }
@media (min-width: 720px) { .features-grid { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .calc-results .kv { grid-template-columns: 1fr 1fr; } }
