/* mia yönetim paneli */
:root {
  --bg: #E6E9F3; --paper: #FFFFFF; --sunk: #DDE1EE; --field: #FFFFFF;
  --fg: #171B3C; --sub: #5C6180; --faint: #8E93AE;
  --line: #D2D7E8; --line2: #C9CEE2;
  --accent: #FFA526; --accent-fg: #171B3C; --accent-text: #171B3C; --accent-soft: rgba(255,165,38,0.16); --accent-line: rgba(255,165,38,0.55);
  --gold: #FFA526; --gold-soft: rgba(255,165,38,0.18); --gold-fg: #171B3C;
  --good: #2E9B5F; --good-soft: rgba(46,155,95,0.12);
  --warn: #B26A00; --warn-soft: rgba(178,106,0,0.12);
  --bad: #C0392B; --bad-soft: rgba(192,57,43,0.10);
  --side: #EEF0F7; --side-line: #D2D7E8;
  --night1: #1B2050; --night2: #11153A; --night3: #080A1C; --nfg: #F2F1EE; --nsub: #A9AECB;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23,27,60,0.04), 0 4px 16px -8px rgba(23,27,60,0.10);
  --shadow-lg: 0 24px 60px -12px rgba(6,8,24,0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E24; --paper: #141838; --sunk: #10142F; --field: #0F1230;
    --fg: #F2F1EE; --sub: #A9AECB; --faint: #6E7395;
    --line: #1E2347; --line2: #2A3060;
    --accent: #FFA526; --accent-fg: #171B3C; --accent-text: #FFA526; --accent-soft: rgba(255,165,38,0.14); --accent-line: rgba(255,165,38,0.5);
    --gold: #FFA526; --gold-soft: rgba(255,165,38,0.14); --gold-fg: #FFC66B;
    --good: #3DBE7E; --good-soft: rgba(61,190,126,0.13);
    --warn: #E8A43C; --warn-soft: rgba(232,164,60,0.14);
    --bad: #F0786A; --bad-soft: rgba(240,120,106,0.13);
    --side: #0D1029; --side-line: #1E2347;
    --shadow: 0 1px 2px rgba(0,0,0,0.3); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E24; --paper: #141838; --sunk: #10142F; --field: #0F1230;
  --fg: #F2F1EE; --sub: #A9AECB; --faint: #6E7395;
  --line: #1E2347; --line2: #2A3060;
  --accent: #FFA526; --accent-fg: #171B3C; --accent-text: #FFA526; --accent-soft: rgba(255,165,38,0.14); --accent-line: rgba(255,165,38,0.5);
  --gold: #FFA526; --gold-soft: rgba(255,165,38,0.14); --gold-fg: #FFC66B;
  --good: #3DBE7E; --good-soft: rgba(61,190,126,0.13);
  --warn: #E8A43C; --warn-soft: rgba(232,164,60,0.14);
  --bad: #F0786A; --bad-soft: rgba(240,120,106,0.13);
  --side: #0D1029; --side-line: #1E2347;
  --shadow: 0 1px 2px rgba(0,0,0,0.3); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 14.5px/1.5 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: 'Sora'; font-weight: 400; font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--sub); margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h2 .h-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); font-size: 13px; }
h3 { font-size: 15.5px; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--sub); background: var(--paper); }
.muted { color: var(--sub); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.err { color: var(--bad); font-size: 13px; min-height: 0; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- düzen ---------- */
#shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
aside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--side-line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px; }
.brand b { font-family: 'Sora'; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--sub); font-size: 13px; padding: 1px 8px; border-radius: 99px; background: var(--sunk); }
.moon { width: 28px; height: 28px; display: inline-block; }
.search { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 13.5px; color: var(--sub); background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 7px 10px; cursor: pointer; }
.search span { flex: 1; text-align: left; }
.search:hover { border-color: var(--accent-line); }
nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
nav .grp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 5px; font-weight: 700; }
nav a { display: flex; align-items: center; gap: 10px; color: var(--fg); padding: 7px 10px; border-radius: 9px; font-weight: 500; font-size: 14px; }
nav a svg { flex: none; color: var(--sub); }
nav a:hover { background: var(--sunk); text-decoration: none; }
nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
nav a.on svg { color: var(--accent-text); }
nav a .badge { margin-left: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.side-foot { border-top: 1px solid var(--side-line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.side-row { display: flex; justify-content: space-between; }
.side-link { font: inherit; font-size: 13px; color: var(--sub); background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.side-link:hover { background: var(--sunk); color: var(--fg); text-decoration: none; }
.side-link b { font-weight: 600; color: var(--fg); }
.topbar { display: none; }
main { padding: 30px 40px 140px; max-width: 1240px; width: 100%; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.head .lead { color: var(--sub); margin-top: 6px; max-width: 720px; }
.crumb { font-size: 13px; color: var(--sub); margin-bottom: 8px; display: inline-block; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--sub); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs a.on { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ---------- yüzeyler ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.card > .card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card > .card-h p { font-size: 13px; color: var(--sub); }
.card-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--sunk); border-radius: 0 0 var(--r) var(--r); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { padding: 28px 20px; text-align: center; color: var(--sub); font-size: 14px; }

/* ---------- form ---------- */
.btn { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: var(--r-sm); padding: 7px 14px; min-height: 36px; border: 1px solid var(--line2); background: var(--paper); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { border-color: var(--accent-line); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #171B3C; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn kbd { background: transparent; border-color: rgba(23,27,60,.25); color: inherit; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--sub); }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--fg); background: var(--field); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 7px 11px; width: 100%; min-height: 38px; transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--sunk); }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6580' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.65; min-height: 360px; resize: vertical; }
.unit { position: relative; }
.unit input { padding-right: 46px; }
.unit em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--faint); pointer-events: none; }
.secret { display: flex; gap: 6px; }
.secret input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fields + .fields { margin-top: 14px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line2); position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch b { font-weight: 600; }
.switch small { display: block; color: var(--sub); font-size: 12.5px; font-weight: 400; }

.seg { display: inline-flex; background: var(--sunk); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--sub); padding: 5px 12px; border-radius: 7px; cursor: pointer; min-height: 28px; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--paper); color: var(--fg); box-shadow: var(--shadow); }

/* ---------- veri ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--sunk); color: var(--sub); white-space: nowrap; line-height: 20px; }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gold { background: var(--gold-soft); color: var(--gold-fg); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 650; color: var(--sub); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--sunk); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
thead tr:first-child th:first-child { border-top-left-radius: var(--r); }
thead tr:first-child th:last-child { border-top-right-radius: var(--r); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--accent-soft); }
td.r, th.r { text-align: right; }
.tbl-wrap { overflow-x: auto; }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-family: 'Sora'; color: #fff; font-size: 13.5px; flex: none; }
.av.lg { width: 48px; height: 48px; font-size: 19px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who b { display: block; }
.who small { display: block; color: var(--sub); overflow: hidden; text-overflow: ellipsis; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 0; }
.kv > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv > div:nth-child(odd) { color: var(--sub); font-size: 13.5px; }
pre.out { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 12.5px; overflow: auto; max-height: 460px; white-space: pre-wrap; margin: 12px 0 0; }

/* ---------- genel bakış ---------- */
.hero { border-radius: var(--r); color: var(--nfg); padding: 22px 26px; background: radial-gradient(120% 140% at 100% 0%, var(--night1) 0%, var(--night2) 45%, var(--night3) 100%); position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(1px 1px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 55% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 70%, #fff, transparent), radial-gradient(1px 1px at 35% 82%, #fff, transparent), radial-gradient(1px 1px at 92% 35%, #fff, transparent); }
.hero > * { position: relative; z-index: 1; }
.hero .display { font-family: 'Sora'; font-weight: 300; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.hero .meta { color: var(--nsub); font-size: 13.5px; margin-top: 5px; }
.hero .planets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero .planets span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,0.08); }
.hero .planets span.r { background: rgba(255,165,38,0.2); color: #FFA526; }
.kpi { padding: 16px 18px 14px; display: flex; flex-direction: column; }
.kpi .lbl { color: var(--sub); font-size: 13px; font-weight: 600; }
.kpi .big { font-family: 'Sora'; font-weight: 300; font-size: 30px; letter-spacing: -0.03em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--sub); font-size: 12.5px; }
.kpi svg { display: block; margin-top: auto; padding-top: 10px; width: 100%; height: 40px; }
.progress { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; margin: 10px 0 2px; }
.progress div { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.progress.warn div { background: var(--warn); }
.progress.bad div { background: var(--bad); }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 140px; padding-top: 20px; }
.chart > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.chart > div > i { display: block; background: var(--accent); border-radius: 4px 4px 1px 1px; min-height: 2px; opacity: .85; }
.chart > div:hover > i { opacity: 1; }
.chart > div > b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--sub); white-space: nowrap; font-weight: 500; opacity: 0; transition: opacity .1s; }
.chart > div:hover > b, .chart > div:last-child > b { opacity: 1; }
.chart-x { display: flex; gap: 5px; font-size: 11px; color: var(--faint); margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.tick.on { background: var(--good); border-color: var(--good); }

/* ---------- AI ---------- */
.prov { display: flex; flex-direction: column; }
.prov .pad { display: flex; flex-direction: column; gap: 12px; }
.prov-h { display: flex; align-items: center; gap: 11px; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: 'Sora'; font-weight: 600; color: #fff; flex: none; }
.res { font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sunk); white-space: pre-wrap; }
.res.ok { background: var(--good-soft); }
.res.bad { background: var(--bad-soft); color: var(--bad); }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preset { text-align: left; font: inherit; cursor: pointer; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; color: var(--fg); }
.preset:hover { border-color: var(--accent-line); }
.preset small { color: var(--sub); }
.preset .price { margin-top: 6px; font-family: 'Sora'; font-size: 15px; }
.task { display: grid; grid-template-columns: minmax(150px, 1.2fr) 130px minmax(160px, 1.4fr) 100px 110px 110px auto; gap: 12px; align-items: end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .name b { display: block; }
.task .name small { color: var(--sub); }
.task .cost { font-size: 12px; color: var(--sub); padding-bottom: 4px; line-height: 1.3; }
.task .cost b { color: var(--fg); font-family: 'Sora'; font-weight: 400; font-size: 15px; display: block; }
.total { display: flex; align-items: baseline; gap: 8px; }
.total b { font-family: 'Sora'; font-weight: 400; font-size: 20px; }
.price-row td input { max-width: 120px; }
.price-row td:first-child input { max-width: none; }

/* ---------- promptlar ---------- */
.prompts { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.plist { padding: 6px; position: sticky; top: 20px; }
.plist .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; padding: 10px 10px 4px; }
.plist a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--fg); font-weight: 600; font-size: 14px; }
.plist a:hover { background: var(--sunk); text-decoration: none; }
.plist a.on { background: var(--accent-soft); color: var(--accent-text); }
.plist a small { display: block; font-weight: 500; color: var(--faint); font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 12px 0 10px; }
.chip { font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); border: 0; min-height: 26px; font-family: ui-monospace, Menlo, monospace; }
.chip:hover { filter: brightness(1.1); }
.meter { font-size: 12.5px; color: var(--faint); margin-left: auto; }
.bubble { background: linear-gradient(135deg, var(--night2), var(--night1)); color: var(--nfg); border-radius: 16px 16px 16px 4px; padding: 13px 16px; margin-top: 12px; white-space: pre-wrap; font-size: 14.5px; }
.diff { font: 12.5px/1.6 ui-monospace, Menlo, monospace; background: var(--sunk); border-radius: var(--r-sm); padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.diff .add { background: var(--good-soft); color: var(--good); display: block; }
.diff .del { background: var(--bad-soft); color: var(--bad); display: block; text-decoration: line-through; }
.guide-card { display: grid; grid-template-columns: 140px 160px minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.guide-card:last-child { border-bottom: 0; }

/* ---------- bildirimler ---------- */
.ntype { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ntype:last-child { border-bottom: 0; }
.ntype.off > div:last-child { opacity: .45; }
.ntype .meta { display: flex; flex-direction: column; gap: 8px; }
.ntype .meta small { color: var(--sub); font-size: 12.5px; }
.vars { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.vars code { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--sub); cursor: help; }
.wb { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wb:first-child { padding-top: 0; }
.phone { border-radius: 34px; padding: 22px 14px; background: radial-gradient(120% 120% at 50% 0%, #1B2050 0%, #11153A 45%, #080A1C 100%); min-height: 440px; box-shadow: var(--shadow-lg); }
.phone .clock { color: #F2F1EE; font-family: 'Sora'; font-weight: 300; font-size: 48px; text-align: center; margin: 6px 0 0; }
.phone .date { color: #A9AECB; text-align: center; margin-bottom: 18px; font-size: 14px; }
.notif-card { background: rgba(22,27,58,0.92); border-radius: 18px; padding: 11px 14px; margin-bottom: 8px; color: #F2F1EE; display: flex; gap: 10px; }
.notif-card .ic { width: 26px; height: 26px; border-radius: 7px; background: #FFA526; flex: none; display: grid; place-items: center; font-family: Sora; color: #171B3C; font-size: 13px; }
.notif-card .top { display: flex; justify-content: space-between; font-size: 12px; color: #A9AECB; }
.notif-card .t { font-weight: 700; font-size: 14px; }
.notif-card .b { font-size: 13.5px; color: #D4D7E6; }
.sticky { position: sticky; top: 20px; }
.ndays { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ndays .btn { font-size: 18px; min-width: 34px; }
.ndays .btn:disabled { opacity: .3; cursor: default; background: transparent; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 62px 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; }
.timeline .t { font-size: 13px; font-weight: 600; text-align: right; line-height: 1.3; }
.timeline .dotc { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line2); margin-top: 4px; background: var(--paper); }
.timeline li.sent .dotc, .timeline li.opened .dotc { border-color: var(--accent); background: var(--accent); }
.timeline li.cancelled, .timeline li.expired { opacity: .55; }

/* ---------- gökyüzü ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dn { font-size: 12px; font-weight: 700; color: var(--sub); padding: 0 4px; }
.day { padding: 9px 10px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-height: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.day.key { background: linear-gradient(160deg, var(--night2), var(--night1)); color: var(--nfg); border-color: transparent; }
.day.key .muted { color: var(--nsub); }
.day .d { font-family: 'Sora'; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- katmanlar ---------- */
.savebar { position: fixed; left: calc(50% + 124px); bottom: 22px; transform: translateX(-50%); background: #171B3C; color: #fff; padding: 8px 8px 8px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); z-index: 20; font-weight: 600; font-size: 14px; animation: up .18s ease; border: 1px solid rgba(255,255,255,0.08); }
.savebar .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.savebar .btn.ghost { color: #D4D7E6; }
.savebar .btn.ghost:hover { background: rgba(255,255,255,0.1); }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } }
.toasts { position: fixed; top: 18px; right: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--paper); color: var(--fg); padding: 11px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-left: 4px solid var(--good); animation: fade .18s ease; max-width: 420px; font-size: 14px; }
.toast.bad { border-left-color: var(--bad); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }
.palette, .modal { position: fixed; inset: 0; background: rgba(6,8,24,0.45); backdrop-filter: blur(3px); z-index: 40; display: grid; place-items: start center; padding-top: 12vh; }
.pal-box { width: min(560px, 92vw); background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.pal-box input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; padding: 15px 18px; min-height: 54px; box-shadow: none !important; background: var(--paper); }
.pal-box ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.pal-box li { padding: 9px 12px; border-radius: 9px; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.pal-box li.on { background: var(--accent-soft); color: var(--accent-text); }
.pal-box li small { margin-left: auto; color: var(--faint); }
.modal-box { width: min(440px, 92vw); background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); }
.modal-box #mBody { color: var(--sub); margin: 8px 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 0%, #1B2050 0%, #11153A 40%, #080A1C 100%); padding: 16px; }
.login-card { background: var(--paper); padding: 30px; border-radius: 20px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.login-card .brand { padding: 0; margin-bottom: 6px; }
.login-card h1 { font-size: 22px; }

/* ---------- dar ekran ---------- */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task { grid-template-columns: 1fr 1fr 1fr; } .task .name { grid-column: 1 / -1; } }
@media (max-width: 980px) { .split, .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .presets { grid-template-columns: 1fr; } .sticky { position: static; } .ntype { grid-template-columns: 1fr; } .guide-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  #shell { grid-template-columns: minmax(0, 1fr); }
  aside { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 35; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  #shell.menu aside { transform: none; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--side); position: sticky; top: 0; z-index: 10; }
  main { padding: 20px 16px 130px; }
  .prompts { grid-template-columns: minmax(0, 1fr); } .plist { position: static; }
  .hero { grid-template-columns: 1fr; } .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cal .dn, .cal .pad-cell { display: none; }
  .savebar { left: 50%; width: calc(100% - 32px); }
  .savebar #sbText { flex: 1; }
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .task { grid-template-columns: 1fr 1fr; }
  .wb { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 90px 1fr; }
}
