/* Müzik Connect paneli: açık tema "Atölye", koyu tema "Sahne". */

:root {
    --bg: #f5f0e8;
    --canvas: #efe8dd;
    --card: #fffdf9;
    --ink: #221c15;
    --soft: #5f5446;
    --muted: #998b79;
    --line: #ebe2d5;
    --accent: #8b5a2b;
    --accent-2: #b07a45;
    --accent-soft: #f3e7d8;
    --on-accent: #fff;
    --green: #4f7a5a;
    --green-soft: #e5efe6;
    --red: #b4513f;
    --red-soft: #f8e4df;
    --amber: #a8701a;
    --amber-soft: #fbf0d9;
    --blue: #3b6a8f;
    --blue-soft: #e3edf5;
    --photo: #f1e8dc;
    --shadow: 0 1px 2px rgba(60, 40, 20, .04), 0 8px 24px rgba(60, 40, 20, .06);
    --radius: 18px;
    --serif: Fraunces, Georgia, serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #141216;
    --canvas: #0b0a0c;
    --card: #1c191f;
    --ink: #f3ede4;
    --soft: #c9bfb2;
    --muted: #8f857b;
    --line: rgba(255, 255, 255, .08);
    --accent: #e0b061;
    --accent-2: #f2cf8a;
    --accent-soft: rgba(224, 176, 97, .13);
    --on-accent: #1a1408;
    --green: #7ad69a;
    --green-soft: rgba(122, 214, 154, .12);
    --red: #f39483;
    --red-soft: rgba(243, 148, 131, .13);
    --amber: #f2c46b;
    --amber-soft: rgba(242, 196, 107, .13);
    --blue: #8fb8e8;
    --blue-soft: rgba(143, 184, 232, .12);
    --photo: #efe7dc;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

/* Eski sayfalardaki satır içi stiller için takma adlar. */
:root, html[data-theme="dark"] {
    --panel: var(--card);
    --panel-2: var(--bg);
    --text: var(--ink);
    --border: var(--line);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
    background: radial-gradient(1100px 500px at 15% -10%, #261f2b 0%, transparent 60%), var(--bg);
    background-attachment: fixed;
}
a { color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- İskelet ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
    position: sticky; top: 0; height: 100vh;
    padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid var(--line);
    background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 24px; text-decoration: none; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--on-accent);
}
.brand b { font-family: var(--serif); font-size: 17px; font-weight: 600; white-space: nowrap; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--soft); font-weight: 500; text-decoration: none;
}
.nav-item:hover { background: var(--card); }
.nav-item.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav-item.on svg { color: var(--accent); }
html[data-theme="dark"] .nav-item.on { background: linear-gradient(90deg, rgba(224, 176, 97, .16), rgba(224, 176, 97, .03)); box-shadow: inset 2px 0 0 var(--accent); }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; }
.side-foot { margin-top: auto; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); font-size: 13px; }
.side-foot small { color: var(--muted); display: block; font-size: 12px; }
.side-foot b { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }
.pulse.off { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.scrim { display: none; }
.content { min-width: 0; display: flex; flex-direction: column; }
.appbar { display: flex; align-items: center; gap: 10px; padding: 18px 32px 0; }
.appbar .menu-btn { display: none; }
.search-box {
    display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px;
    background: var(--card); border-radius: 12px; padding: 0 14px; box-shadow: var(--shadow); color: var(--muted);
}
.search-box input { border: 0; background: transparent; padding: 10px 0; box-shadow: none; color: var(--ink); width: 100%; }
.search-box input:focus { outline: none; }
.appbar .spacer { flex: 1; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow);
    display: grid; place-items: center; color: var(--soft); border: 0; cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.subnav { display: flex; gap: 6px; padding: 18px 32px 0; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
    padding: 8px 14px; border-radius: 999px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.subnav a.on { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .subnav a.on { background: var(--accent); color: var(--on-accent); }

.main { padding: 22px 32px 48px; min-width: 0; }

/* ---------- Sayfa başlığı ---------- */
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1, .page-title { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.topbar p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
html[data-theme="dark"] .card, html[data-theme="dark"] .side-foot, html[data-theme="dark"] .search-box, html[data-theme="dark"] .icon-btn { border: 1px solid var(--line); }
.card-title { color: var(--muted); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.card-value { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 6px; line-height: 1.15; letter-spacing: -.01em; }
.card-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card h3, .card-head { margin: 0 0 12px; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-head a { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ink); color: var(--bg); border: 0; border-radius: 12px; padding: 10px 16px;
    font: 600 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
html[data-theme="dark"] .btn { background: linear-gradient(140deg, var(--accent-2), #d39a45); color: var(--on-accent); }
.btn:hover { filter: brightness(1.08); }
.btn-dark { background: var(--card) !important; color: var(--ink) !important; box-shadow: var(--shadow); border: 1px solid var(--line); }
.btn-danger { background: var(--red-soft) !important; color: var(--red) !important; }
.btn-green { background: var(--green-soft) !important; color: var(--green) !important; }
.btn-blue { background: var(--accent-soft) !important; color: var(--accent) !important; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- Rozetler ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: var(--green-soft); color: var(--green); white-space: nowrap;
}
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--blue-soft); color: var(--blue); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th {
    text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
    padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
/* Tablo içindeki buton grupları hücre gibi kalsın (satır çizgileri kaymasın). */
.table td.actions { display: table-cell; white-space: nowrap; }
.table td.actions > * { display: inline-flex; vertical-align: middle; margin: 2px 0; }
.table td.actions form { display: inline-block; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }

/* Tıklanınca sıralayan başlıklar */
.table th.th-sort a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table th.th-sort a:hover { color: var(--ink); }
.table th.th-sort .sort-arrow { opacity: .35; font-size: 11px; }
.table th.th-sort.on { color: var(--accent); }
.table th.th-sort.on .sort-arrow { opacity: 1; }

/* Satır içi stok: − [ 12 ] + */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.stepper .step { border: 0; background: transparent; color: var(--soft); width: 30px; height: 34px; font-size: 17px; cursor: pointer; line-height: 1; }
.stepper .step:hover { background: var(--accent-soft); color: var(--accent); }
.stepper input { width: 56px; border: 0; border-radius: 0; background: transparent; text-align: center; padding: 6px 2px; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper.is-low input { color: var(--amber); }
.stepper.is-out input { color: var(--red); }
.stepper.is-saving { opacity: .6; }
.stepper.is-saved { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.stepper.is-error { border-color: var(--red); }

/* ---------- Formlar ---------- */
label { display: block; margin-bottom: 6px; color: var(--soft); font-weight: 600; font-size: 13px; }
input, select, textarea {
    width: 100%; font: 14px var(--sans); color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-group { margin-bottom: 16px; }
.sm-input { padding: 7px 10px; font-size: 13px; border-radius: 10px; }

/* ---------- Sekmeler / filtreler ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
    padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--soft);
    text-decoration: none; font-weight: 600; font-size: 13px; box-shadow: var(--shadow);
}
.tab.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 170px; background: var(--card); }

/* ---------- Bildirimler ---------- */
.success, .error {
    display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 500;
}
.success { background: var(--green-soft); color: var(--green); }
.error { background: var(--red-soft); color: var(--red); }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); }
.thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: var(--photo); display: block; }
.photo { background: var(--photo); border-radius: 14px; display: grid; place-items: center; overflow: hidden; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
button.photo[data-zoom] { border: 0; padding: 0; cursor: zoom-in; font: inherit; }
button.photo[data-zoom]:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
button.photo[data-zoom]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-zoom { border: 0; padding: 12px; border-radius: 18px; background: var(--photo); max-width: min(92vw, 900px); box-shadow: var(--shadow); cursor: zoom-out; }
.photo-zoom::backdrop { background: rgba(0, 0, 0, .7); }
.photo-zoom img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.photo-zoom-cap { color: #3a2a1a; font-size: 13px; text-align: center; margin-top: 8px; }
.photo-zoom-cap:empty { display: none; }
.pagebar { margin-top: 18px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.page-link { display: block; padding: 7px 12px; border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; box-shadow: var(--shadow); }
.page-item.active .page-link { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .page-item.active .page-link { background: var(--accent); color: var(--on-accent); }
.page-item.disabled .page-link { opacity: .4; }
nav .d-sm-none { display: none !important; }
nav .d-none.d-sm-flex { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
nav p.small { color: var(--muted); margin: 0; }

/* ---------- Bugün ekranı ---------- */
.greet { margin-bottom: 22px; }
.greet h1 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.greet p { margin: 2px 0 0; color: var(--muted); }
.kpi .spark { width: 100%; height: 34px; margin-top: 6px; display: block; }
.meter { height: 6px; border-radius: 6px; background: var(--line); margin-top: 16px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list-row:first-of-type { border-top: 0; }
.list-row .t { flex: 1; min-width: 0; }
.list-row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .t span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.list-row .amt span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--bg); margin-top: 8px; text-decoration: none; }
html[data-theme="dark"] .task { background: rgba(255, 255, 255, .03); }
.task .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.task .tx { flex: 1; min-width: 0; }
.task .tx b { display: block; font-weight: 600; font-size: 13.5px; }
.task .tx span { font-size: 12px; color: var(--muted); }
.task.done { opacity: .6; }
.ring { position: relative; width: 78px; height: 78px; flex: none; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.shelf-item { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); text-decoration: none; }
html[data-theme="dark"] .shelf-item { border: 1px solid var(--line); }
.shelf-item .photo { height: 96px; margin-bottom: 10px; }
.shelf-item b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-item span { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero {
    border-radius: 24px; padding: 20px 22px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(260px 160px at 90% 0%, rgba(255, 215, 160, .35), transparent 70%), linear-gradient(150deg, #3a2a1b, #6b4422);
}
html[data-theme="dark"] .hero { background: radial-gradient(260px 160px at 90% 0%, rgba(242, 207, 138, .3), transparent 70%), linear-gradient(150deg, #2a2016, #120f0c); border: 1px solid rgba(242, 207, 138, .18); }
.hero small { color: #e7cfb2; }
.hero .big { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 2px 0; }
.hero .meta { display: flex; gap: 22px; margin-top: 8px; font-size: 13px; color: #f1dfc8; flex-wrap: wrap; }
.hero .meta b { display: block; font-size: 18px; color: #fff; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a, .quick button {
    background: var(--card); border-radius: 18px; padding: 12px 4px 10px; text-align: center; font: 600 12px var(--sans);
    color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 0; cursor: pointer; width: 100%;
}
.quick .q { width: 40px; height: 40px; border-radius: 13px; margin: 0 auto 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

.today-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- Yardım ("?") ---------- */
.help-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 48px; height: 48px; border-radius: 50%;
    border: 0; cursor: pointer; font: 700 20px var(--serif); color: var(--on-accent);
    background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.help-fab:hover { transform: translateY(-1px); }
.help-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 14, 8, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.help-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%); overflow-y: auto;
    background: var(--card); color: var(--ink); padding: 24px; box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
    transform: translateX(105%); transition: transform .22s ease; outline: none;
}
html[data-theme="dark"] .help-panel { border-left: 1px solid var(--line); }
body.help-open .help-scrim { opacity: 1; pointer-events: auto; }
body.help-open .help-panel { transform: none; }
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.help-head small { color: var(--accent); font-weight: 600; }
.help-head h2 { margin: 2px 0 0; font-size: 24px; }
.help-intro { color: var(--soft); margin: 0 0 16px; line-height: 1.6; }
.help-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.help-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--line); line-height: 1.55; }
.help-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--accent-soft); color: var(--accent);
}
.help-tips { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
html[data-theme="dark"] .help-tips { background: rgba(255, 255, 255, .04); }
.help-tips b { display: block; margin-bottom: 6px; }
.help-tips ul { margin: 0; padding-left: 18px; color: var(--soft); line-height: 1.55; }
.help-tips li + li { margin-top: 6px; }

/* ---------- Telefon alt menüsü ---------- */
.mobilebar { display: none; }

/* ---------- Giriş ekranı ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-box { width: 100%; max-width: 420px; background: var(--card); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
html[data-theme="dark"] .auth-box { border: 1px solid var(--line); }
.auth-box h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.auth-box p { color: var(--muted); margin: 0 0 20px; }
.auth-box .btn { width: 100%; padding: 13px; }
.auth-box .link { background: none; border: 0; color: var(--muted); cursor: pointer; margin-top: 14px; font-size: 13px; text-decoration: underline; width: 100%; }
.code { font-size: 24px; letter-spacing: .3em; text-align: center; }
.secret { font-family: Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; word-break: break-all; margin-bottom: 18px; }
#qr { display: flex; justify-content: center; background: #fff; padding: 14px; border-radius: 16px; margin: 0 auto 14px; width: fit-content; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side {
        position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-105%);
        transition: transform .2s ease; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    }
    .side.open { transform: none; }
    .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; display: none; }
    .side.open + .scrim { display: block; }
    .appbar { padding: 14px 16px 0; }
    .appbar .menu-btn { display: grid; }
    .hide-sm { display: none !important; }
    .today-row { grid-template-columns: minmax(0, 1fr); }
    .subnav { padding: 14px 16px 0; }
    .main { padding: 16px 16px 110px; }
    .topbar h1, .page-title, .greet h1 { font-size: 25px; }
    .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-value { font-size: 24px; }
    .filters input, .filters select { width: 100%; min-width: 0; }

    .help-fab { bottom: 94px; right: 16px; width: 44px; height: 44px; }
    .help-panel { top: auto; height: 82vh; width: 100%; border-radius: 24px 24px 0 0; transform: translateY(105%); }
    .mobilebar {
        display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; height: 68px; z-index: 30;
        background: rgba(34, 28, 21, .95); border-radius: 24px; justify-content: space-around; align-items: center;
        color: #bfae98; backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    }
    html[data-theme="dark"] .mobilebar { background: rgba(28, 25, 31, .94); border: 1px solid var(--line); }
    .mobilebar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: inherit; }
    .mobilebar a.on { color: #fff; }
    .mobilebar .plus {
        width: 54px; height: 54px; border-radius: 18px; margin-top: -30px; color: #fff; display: grid; place-items: center;
        background: linear-gradient(140deg, #b07a45, #c99a3b); box-shadow: 0 10px 20px rgba(139, 90, 43, .45);
    }
    html[data-theme="dark"] .mobilebar .plus { color: var(--on-accent); background: linear-gradient(140deg, #f2cf8a, #d39a45); }
}

@media (min-width: 901px) {
    .only-sm { display: none !important; }
}

/* ---------- Kasa: ürün kârlılığı ---------- */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num, .table th.th-sort.num { text-align: right; }
.kasa-note { background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px; }
.kasa-note a { color: inherit; font-weight: 700; margin-left: 6px; }
.kasa-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kasa-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.kasa-kpi:hover { transform: translateY(-1px); }
.kasa-kpi.on { border-color: var(--accent); }
.kasa-kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kasa-kpi-value { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kasa-kpi-note { font-size: 12px; color: var(--muted); }
.kasa-kpi.tone-danger .kasa-kpi-value, .kasa-kpi-value.neg { color: var(--red); }
.kasa-kpi.tone-warn .kasa-kpi-value { color: var(--amber); }
.kasa-target { display: flex; align-items: center; gap: 6px; margin: 0; }
.kasa-target input { width: 80px; min-width: 0 !important; }
.kasa-card { padding-top: 8px; }
.kasa-table td { padding: 10px 12px; }
.kasa-item { display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 380px; }
.kasa-item .thumb { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.kasa-name { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kasa-src { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.kasa-src.warn { color: var(--amber); font-weight: 600; }
.kasa-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.kasa-link:hover { color: var(--accent); border-color: var(--accent); }
.kasa-input { width: 96px; padding: 6px 8px; font-size: 13px; border-radius: 9px; text-align: right; background: var(--card); font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.kasa-input-sm { width: 62px; }
.kasa-input.saving { opacity: .55; }
.kasa-input.saved { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.kasa-input.failed { border-color: var(--red); }
.kasa-rate { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.kasa-profit { font-weight: 800; color: var(--green); }
.kasa-profit.neg { color: var(--red); }
.kasa-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.kasa-status.tone-ok { background: var(--green-soft); color: var(--green); }
.kasa-status.tone-warn { background: var(--amber-soft); color: var(--amber); }
.kasa-status.tone-danger { background: var(--red-soft); color: var(--red); }
.kasa-status.tone-muted { background: var(--canvas); color: var(--muted); font-weight: 600; }
.kasa-more { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; width: 30px; height: 30px; border-radius: 8px; transition: transform .2s, background .15s; }
.kasa-more:hover { background: var(--accent-soft); color: var(--accent); }
.kasa-more.open { transform: rotate(180deg); }
.kasa-table tr.kasa-detail td { background: var(--canvas); }
.kasa-table tbody tr.kasa-detail:hover td { background: var(--canvas); }
.kasa-breakdown { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-end; }
.kasa-figures { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-end; }
.kasa-figures > div { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.kasa-figures > div b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kasa-figures > div b.neg { color: var(--soft); }
.kasa-figures > div.total b { color: var(--green); }
.kasa-figures > div.total b.neg { color: var(--red); }
.kasa-offers { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.kasa-offers table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kasa-offers th, .kasa-offers td { padding: 3px 12px 3px 0; text-align: right; white-space: nowrap; }
.kasa-offers th:first-child, .kasa-offers td:first-child { text-align: left; }
.kasa-offers th { color: var(--muted); font-weight: 600; }
.kasa-offers tr.current td { font-weight: 700; color: var(--accent); }
.kasa-offers td.neg { color: var(--red); }
.kasa-offer-tag { color: var(--accent); }
.kasa-cargo { display: flex; gap: 14px; align-items: flex-end; padding-left: 22px; border-left: 1px solid var(--line); }
.kasa-cargo label { margin: 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 1100px) { .kasa-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kasa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kasa-kpi-value { font-size: 22px; } .kasa-cargo { padding-left: 0; border-left: 0; } }

.table tr.finance-total td { border-top: 2px solid var(--line); background: var(--canvas); font-weight: 700; }
.bulk-target { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 8px; }
.bulk-choice { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: var(--ink); cursor: pointer; }
