/* Mobil öncelikli, iOS benzeri arayüz. Build adımı yok. */
:root {
    --bg: #f2f2f7;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --text: #1c1c1e;
    --muted: #6e6e73;
    --border: #d1d1d6;
    --separator: #e5e5ea;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: #e5f0fd;
    --danger: #d70015;
    --positive: #1f7a35;
    --negative: #c4001a;
    --success-bg: #e8f5e9;
    --success-text: #1b5e20;
    --error-bg: #fdecee;
    --bar-bg: rgba(249, 249, 251, .88);
    --radius: 14px;
    --tabbar-h: 58px;
    --appbar-h: 52px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

/* Koyu tema: Ayarlar → Görünüm ile seçilir ("Cihaza göre" seçiliyse sayfa başındaki betik belirler).
   Tam siyah yerine yumuşak koyu gri. */
:root[data-theme="dark"] {
    --bg: #17171a;
    --surface: #232327;
    --surface-2: #2f2f34;
    --text: #f2f2f5;
    --muted: #9d9da3;
    --border: #3d3d42;
    --separator: #36363b;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: #10304f;
    --danger: #ff453a;
    --positive: #30d158;
    --negative: #ff6961;
    --success-bg: #12301a;
    --success-text: #a5d6a7;
    --error-bg: #3b1518;
    --bar-bg: rgba(28, 28, 31, .9);
    --series-1: #3987e5;
    --series-2: #d95926;
    color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ---------- Giriş ekranları ---------- */
.auth-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 20px;
    width: 100%;
}
.auth-wrap .card { max-width: 400px; border: 1px solid var(--border); }
@media (min-width: 480px) { .auth-wrap .card { padding: 32px; } }

.card h1 { font-size: 24px; margin-bottom: 4px; }
.card p.sub, p.sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ---------- Form ---------- */
label, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=search], select, textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px; /* iOS'ta odaklanınca zoom yapmasın */
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    margin-bottom: 16px;
    appearance: none;
    -webkit-appearance: none;
    min-height: 46px;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }

.field-error { color: var(--danger); font-size: 13px; margin: -10px 0 14px; }
.hint { color: var(--muted); font-size: 13px; margin: -10px 0 14px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 20px; font-weight: 400; }

.grid-2 { display: grid; grid-template-columns: 1fr; column-gap: 12px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Segment seçici (radio) */
.segmented {
    display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin-bottom: 16px; gap: 2px;
}
.segmented label {
    flex: 1; margin: 0; text-align: center; font-size: 14px; font-weight: 500;
    padding: 9px 6px; border-radius: 8px; cursor: pointer; color: var(--text);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); }

/* iOS anahtar */
.switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 4px 0 16px; font-size: 16px; font-weight: 500; margin: 0;
}
.switch-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span {
    position: absolute; inset: 0; background: var(--border); border-radius: 31px; transition: background .2s;
}
.switch span::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
    background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s;
}
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 46px; padding: 12px 16px;
    font-size: 16px; font-weight: 600; font-family: inherit;
    border-radius: 12px; border: 1px solid transparent; cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-tinted { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-sm { width: auto; min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .6; cursor: wait; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .actions { flex-direction: row-reverse; justify-content: flex-start; } .actions .btn { width: auto; min-width: 140px; } }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.error { color: var(--danger); font-size: 14px; margin: 0 0 16px; }
.alert-error { background: var(--error-bg); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.status { background: var(--success-bg); color: var(--success-text); padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* ---------- Uygulama kabuğu ---------- */
.appbar {
    position: sticky; top: 0; z-index: 20;
    padding-top: var(--safe-top);
    background: var(--bar-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: .5px solid var(--separator);
}
.appbar-inner {
    height: var(--appbar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 8px; max-width: 960px; margin: 0 auto;
}
.appbar-title { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.appbar-left { justify-self: start; }
.appbar-right { justify-self: end; }
.appbar a, .appbar button.link {
    display: inline-flex; align-items: center; gap: 2px; padding: 8px; font-size: 17px;
    background: none; border: 0; color: var(--accent); font-family: inherit; cursor: pointer;
}

.content {
    max-width: 960px; margin: 0 auto;
    padding: 16px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
}
.page-title { font-size: 30px; font-weight: 700; margin: 4px 4px 16px; }

/* Alt sekme çubuğu */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; justify-content: space-around;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--bar-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--separator);
}
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: 11px; font-weight: 500; max-width: 120px;
}
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current=page] { color: var(--accent); }

/* Geniş ekranda sekme çubuğu sol menü olur */
@media (min-width: 900px) {
    .tabbar {
        top: 0; right: auto; width: 220px; height: auto; flex-direction: column; justify-content: flex-start;
        padding: calc(var(--safe-top) + 20px) 12px 20px; gap: 4px;
        border-top: 0; border-right: .5px solid var(--separator);
    }
    .tabbar a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 10px 12px; border-radius: 10px; max-width: none; }
    .tabbar a svg { width: 22px; height: 22px; }
    .tabbar a[aria-current=page] { background: var(--accent-soft); }
    .appbar, .content { margin-left: 220px; }
    .content { padding-bottom: 40px; }
}

/* ---------- Gruplu liste (iOS) ---------- */
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 24px 16px 8px; font-weight: 500; }
.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.group.padded { padding: 16px; }
.group-footer { color: var(--muted); font-size: 13px; margin: -8px 16px 16px; }

.cell {
    display: flex; align-items: center; gap: 12px; min-height: 48px;
    padding: 12px 16px; color: var(--text); position: relative;
}
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--separator); }
a.cell:active, button.cell:active { background: var(--surface-2); }
.cell-main { flex: 1; min-width: 0; }
.cell-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-end { text-align: right; flex: none; max-width: 50%; }
.cell-end > * { display: block; }
.cell-chevron { color: var(--border); flex: none; }
.cell-label { color: var(--muted); flex: none; width: 42%; font-size: 15px; }
.cell-value { flex: 1; text-align: right; word-break: break-word; }
button.cell { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }

.avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-weight: 600; font-size: 15px;
    background: var(--accent-soft); color: var(--accent);
}

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--surface-2); color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: #fff3cd; color: #8a5a00; }
:root[data-theme="dark"] .badge-warn { background: #3d2e00; color: #ffd60a; }

/* Arama ve filtre */
.search { position: relative; margin-bottom: 12px; }
.search input { padding-left: 38px; margin: 0; background: var(--surface-2); border-color: transparent; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 20px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; border: 1px solid var(--separator); }
.chip[aria-current=true] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Özet kartları */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.stats .stat-wide { grid-column: 1 / -1; }
.stats .stat-wide strong { font-size: 24px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats .stat-wide { grid-column: auto; } .stats .stat-wide strong { font-size: 18px; } }
.stat { background: var(--surface); border-radius: 12px; padding: 12px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat strong { font-size: 16px; display: block; overflow-wrap: anywhere; }
@media (min-width: 640px) { .stat strong { font-size: 18px; } }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* Sayfalama */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 16px; font-size: 14px; color: var(--muted); }

/* Alttan açılan sayfa (hareket ekleme) */
dialog.sheet {
    border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px;
    max-height: 92dvh; border-radius: 16px 16px 0 0; background: var(--bg); color: var(--text);
}
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
dialog.sheet[open] { animation: sheet-up .25s ease-out; }
.sheet-body { padding: 8px 16px calc(16px + var(--safe-bottom)); overflow-y: auto; }
.sheet-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 8px; }
.sheet-header h2 { font-size: 17px; text-align: center; }
.sheet-header button { justify-self: start; background: none; border: 0; color: var(--accent); font-size: 17px; font-family: inherit; padding: 6px 8px; cursor: pointer; }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 16px; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }

form.inline { margin: 0; display: inline; }

/* Ay seçici */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav strong { font-size: 17px; }
.month-nav a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); }

/* Büyük tutar alanı */
input.amount-input { font-size: 28px; font-weight: 600; min-height: 60px; font-variant-numeric: tabular-nums; }

/* 5 sekmede dar ekranda yazı sığsın */
@media (max-width: 380px) { .tabbar a { font-size: 10px; } }

/* Radyo seçim listesi */
.choice-list { border: 1px solid var(--separator); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 0; font-weight: 400; cursor: pointer; }
.choice + .choice { border-top: .5px solid var(--separator); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice strong { display: block; font-size: 15px; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.choice:has(input:checked) { background: var(--accent-soft); }
.badge-danger { background: var(--error-bg); color: var(--negative); }
button.chip { font-family: inherit; cursor: pointer; }

/* Kredi kartı limit çubuğu */
.limit-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 12px auto 0; max-width: 280px; }
.limit-bar span { display: block; height: 100%; background: var(--negative); border-radius: 3px; }

/* ---------- Raporlar ---------- */
:root { --series-1: #2a78d6; --series-2: #eb6834; }

.seg-link { flex: 1; text-align: center; font-size: 14px; font-weight: 500; padding: 9px 6px; border-radius: 8px; color: var(--text); }
.seg-link[aria-selected=true] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }

.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.swatch-income { background: var(--series-1); }
.swatch-expense { background: var(--series-2); }

.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.bar-chart {
    position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px;
    height: 180px; padding-top: 18px; border-bottom: 1px solid var(--separator);
}
.bar-chart-max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--muted); }
.bar-chart::before { /* üst kılavuz çizgisi */
    content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 1px dashed var(--separator);
}
.bar-col {
    display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit; position: relative; min-width: 0;
}
.bar-col .bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: 42%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .15s; }
.bar-income { background: var(--series-1); }
.bar-expense { background: var(--series-2); }
.bar-label { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.bar-col[aria-pressed=true] .bar-label { color: var(--text); font-weight: 600; }
.bar-chart:has(.bar-col[aria-pressed=true]) .bar-col[aria-pressed=false] .bar { opacity: .45; }
.bar-col:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.bar-detail { margin: 30px 0 0; font-size: 14px; min-height: 20px; }

.hbar + .hbar { margin-top: 14px; }
.hbar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 4px; }
.hbar-income { background: var(--series-1); }
.hbar-expense { background: var(--series-2); }

/* Dar ekranlar (iPhone SE vb.) */
.tabbar a span { white-space: nowrap; }
@media (max-width: 360px) {
    .tabbar a { font-size: 9.5px; letter-spacing: -.2px; }
    .tabbar a svg { width: 24px; height: 24px; }
    .avatar { width: 34px; height: 34px; }
    .cell { padding: 12px 12px; gap: 10px; }
    .content { padding-left: 12px; padding-right: 12px; }
}
/* Genel durum satırlarında başlık kesilmesin */
.group.position .cell-title, .group.position .cell-sub { white-space: normal; }

/* ---------- Sade arayüz ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desktop-only { display: none !important; }
.avatar-out { background: var(--error-bg); color: var(--negative); }

/* Ortadaki + butonu */
.tab-add {
    flex: 1; max-width: 120px; display: flex; align-items: center; justify-content: center;
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
}
.tab-add-circle {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(0, 113, 227, .35);
}
.tab-add-circle svg { width: 26px; height: 26px; }
.tab-add-label { display: none; }
.tab-add:focus-visible .tab-add-circle { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 900px) {
    .desktop-only { display: flex !important; }
    .tabbar .tab-add { order: -1; flex: none; max-width: none; justify-content: flex-start; gap: 10px; padding: 8px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
    .tabbar .tab-add-circle { width: auto; height: auto; background: none; box-shadow: none; }
    .tabbar .tab-add-circle svg { width: 20px; height: 20px; }
    .tabbar .tab-add-label { display: inline; }
}

/* Büyük tutar */
.amount-hero { font-size: 34px !important; font-weight: 700; text-align: center; min-height: 64px; border: 0 !important; background: transparent !important; margin-bottom: 4px !important; }
.amount-hero:focus { outline: none; }
.tax-line { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.tax-line button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

.grid-2.always { grid-template-columns: 1fr 1fr; }

/* Açılır detay bölümü */
details.more { padding: 0; }
details.more > summary {
    list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-weight: 500;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
details.more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.more > .details-body { padding: 4px 16px 16px; border-top: .5px solid var(--separator); padding-top: 16px; }

/* Tema düğmesi (başlıkta her sayfada) */
.appbar-right { display: flex; align-items: center; gap: 2px; }
.theme-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
    background: none; border: 0; border-radius: 50%; color: var(--accent); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle-floating {
    position: fixed; z-index: 10;
    top: calc(12px + var(--safe-top)); right: 12px;
    background: var(--surface); border: 1px solid var(--border);
}
