:root {
  color-scheme: dark;
  --bg: #0c0e11;
  --surface: #14171b;
  --surface-2: #1b1f24;
  --line: #292e35;
  --text: #f1f3f5;
  --muted: #a3abb5;
  --faint: #7c8590;
  --accent: #53fc18;
  --danger: #ff6b6b;
  --warn: #ffc53d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* düzen */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.brand { padding: 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-weight: 600; }
.nav button:hover { background: var(--surface-2); color: var(--text); }
.nav button:focus-visible { outline: 2px solid var(--accent); }
.nav button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.main { padding: 26px 32px 80px; min-width: 0; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.top h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.top p { color: var(--muted); margin-top: 2px; }
.save { flex: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.save.err { color: var(--danger); border-color: var(--danger); }

.grid { display: grid; gap: 14px; }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cols-6 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.split { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card h2 { font-size: 16px; margin-bottom: 12px; }
.card .hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.kicker { font-size: 13px; color: var(--muted); font-weight: 600; }
.big { font-size: 24px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }
.dot.on { background: var(--accent); }
.dot.bad { background: var(--danger); }

/* form */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
input, textarea, select { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 74px; }
input[type=color] { padding: 3px; height: 40px; width: 64px; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
label.chk { display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 180px; min-width: 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.note { font-size: 12.5px; color: var(--faint); font-weight: 400; }

button.b { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
button.b:hover { border-color: var(--faint); }
button.b.primary { background: var(--accent); border-color: var(--accent); color: #0b0d10; }
button.b.danger { color: var(--danger); }
button.b.small { padding: 5px 10px; font-size: 13px; }
button.b:disabled { opacity: .5; cursor: default; }
a.b { display: inline-block; padding: 9px 14px; border-radius: 8px; background: var(--accent); color: #0b0d10; font-weight: 700; text-decoration: none; }
a.b.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs button { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--surface-2); color: var(--text); border-color: var(--faint); }

/* aktivite */
.feed { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; }
.ev { display: grid; grid-template-columns: 46px 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.ev:first-child { border-top: 0; }
.ev time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.tag { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tag.error { color: var(--danger); }
.ev .t { overflow-wrap: anywhere; }
.empty { padding: 26px 8px; text-align: center; color: var(--muted); }

/* grafik */
.chart { position: relative; }
.chart-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 170px; align-items: end; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; align-items: center; cursor: default; outline-offset: 2px; }
.seg { width: min(100%, 30px); min-height: 3px; }
.seg:first-child { border-radius: 4px 4px 0 0; }
.chart-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; transform: translate(-50%, -100%); }

/* önizleme */
.preview { display: grid; place-items: center; min-height: 190px; padding: 12px; border-radius: 10px; background: repeating-conic-gradient(#1a1d21 0 25%, #14171b 0 50%) 0 0 / 22px 22px; overflow: hidden; }
.preview .ac { zoom: .62; }

/* sahne */
.stage-wrap { width: 100%; }
.stage { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: repeating-conic-gradient(#1a1d21 0 25%, #14171b 0 50%) 0 0 / 28px 28px; user-select: none; touch-action: none; }
.box { position: absolute; border: 2px solid var(--faint); border-radius: 6px; background: rgba(255, 255, 255, .06); cursor: move; overflow: hidden; }
.box.on { border-color: var(--accent); z-index: 30; }
.box.off { opacity: .4; border-style: dashed; }
.box span { position: absolute; left: 6px; top: 3px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.box img, .box video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }
.box .grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: var(--accent); cursor: nwse-resize; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.layer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.layer:first-child { border-top: 0; }
.layer .n { flex: 1 1 140px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; cursor: pointer; }
.drop { display: block; padding: 22px; border: 2px dashed var(--line); border-radius: 10px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.progress { color: var(--muted); font-size: 13px; }

/* hedef çubuğu */
.gbar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 8px 0 12px; }
.gbar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }

/* adım listesi */
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.step.done .num { background: var(--accent); color: #0b0d10; }
.check { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check .sym { font-weight: 800; width: 18px; flex: none; }
.check .ok { color: var(--accent); }
.check .no { color: var(--warn); }
.copy { display: flex; gap: 8px; }
.copy input { font-family: Consolas, Menlo, monospace; font-size: 13px; }
.item { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.item:first-of-type { border-top: 0; padding-top: 0; }

/* giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.login h1 { font-size: 22px; }
.error { color: var(--danger); font-size: 14px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 11px 15px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast.err { border-color: var(--danger); }

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 10px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav button { width: auto; white-space: nowrap; }
  .nav button.on { box-shadow: inset 0 -3px 0 var(--accent); }
  .side-foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .main { padding: 18px 14px 60px; }
  .split, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .ev .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition: none !important; } }

/* alert stüdyosu */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile.off .tile-main { opacity: .55; }
.tile-main { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.tile-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tile-name { font-weight: 700; }
.tile-name i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.tile-msg { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.9em; }
.tile-count { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .gbar { margin: 4px 0 0; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.tile-foot .row { gap: 6px; flex-wrap: nowrap; }
.goal-prev { width: min(420px, 100%); padding: 12px 16px; border-radius: 12px; background: rgba(14, 16, 19, .92); border: 1px solid rgba(255, 255, 255, .1); }
.goal-prev-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-prev-top span:first-child { overflow-wrap: anywhere; }
.goal-prev .gbar { margin: 8px 0 0; }

/* ===== Vault teması ===== */
:root {
  --bg: #0a0e14; --surface: #121923; --surface-2: #1b2531; --line: #243040;
  --text: #eef1f4; --muted: #9aabbd; --faint: #7f93a8; --accent: #d81f2a; --on-accent: #fff;
  --danger: #ff4350; --warn: #ffc53d; --good: #53fc18; --radius: 14px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
body { font-family: "Space Grotesk", system-ui, sans-serif; background: radial-gradient(1100px 700px at 75% -10%, rgba(216, 31, 42, .11), transparent 70%), var(--bg); background-attachment: fixed; }
.shell { grid-template-columns: 252px minmax(0, 1fr); }
.side { background: rgba(10, 14, 20, .78); padding: 18px 12px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand img { height: 46px; width: auto; transform: rotate(-5deg); filter: drop-shadow(0 0 10px rgba(216, 31, 42, .6)); }
.brand b { display: block; font: 900 32px/.9 "Big Shoulders Display", Impact, sans-serif; letter-spacing: .01em; }
.brand small, .side-chan small { display: block; font: 500 10px var(--mono); letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.side-chan { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.side-chan b { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.nav-g { padding: 14px 12px 5px; font: 500 10.5px var(--mono); letter-spacing: .16em; color: var(--faint); }
.nav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 10px; }
.nav button small { font: 500 10.5px var(--mono); color: var(--faint); }
.nav button.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.nav button.on small { color: inherit; opacity: .8; }
.side-foot { flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 12px 10px 0; }
.side-foot a { text-decoration: none; font-weight: 600; color: var(--text); }
.linkish { all: unset; cursor: pointer; font-weight: 600; color: var(--muted); }
.linkish:hover { color: var(--text); }
.linkish:focus-visible { outline: 2px solid var(--accent); }
.main { padding: 16px 34px 80px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumb b { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; font: 500 11.5px var(--mono); letter-spacing: .04em; text-transform: none; color: var(--muted); white-space: nowrap; }
.chip.good { color: var(--good); border-color: rgba(83, 252, 24, .5); }
.chip.err { color: var(--danger); border-color: var(--danger); }
.top { display: block; margin-bottom: 26px; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--danger); margin-bottom: 8px; }
.top h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
.top p { margin-top: 8px; font-size: 16px; }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 120px), var(--surface); border-radius: var(--radius); }
.card h2 { font-size: 18px; letter-spacing: -.01em; }
.big { font-weight: 700; letter-spacing: -.02em; }
.kicker { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
button.b.primary, a.b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
a.b.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
button.b.primary-ghost { border-color: var(--accent); }
button.b.primary-ghost:hover { background: var(--accent); color: var(--on-accent); }
.dot.on { background: var(--good); }
.gbar i { background: var(--accent); }
.tile.on { border-color: var(--accent); }
.step.done .num { color: var(--on-accent); }
.preview { background: repeating-conic-gradient(#1b2531 0 25%, #121923 0 50%) 0 0 / 22px 22px; }
.stage { background: repeating-conic-gradient(#1b2531 0 25%, #121923 0 50%) 0 0 / 28px 28px; }
.box .grip { background: var(--accent); }
.vault-preview { padding: 0; aspect-ratio: 16/9; min-height: 0; display: block; }
.vault-frame { width: 100%; height: 100%; border: 0; display: block; background: transparent; color-scheme: dark; }
.login { grid-template-columns: minmax(0, 340px) minmax(0, 380px); gap: 20px; justify-content: center; align-content: center; }
.login-face { width: 100%; max-width: 300px; justify-self: end; transform: rotate(-5deg); filter: drop-shadow(0 0 50px rgba(216, 31, 42, .55)); }
.login form { width: 100%; }
.login h1 { font-size: 36px; letter-spacing: -.03em; line-height: 1.05; }
.login .eyebrow { margin-bottom: -6px; }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { flex-direction: row; }
  .nav-g { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-face { display: none; }
}

.nav small.badge { padding: 1px 7px; border-radius: 99px; background: var(--danger); color: #fff; font-weight: 700; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.unread { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }

/* mod medya */
.mod-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mod-tile { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.mod-tile .row { gap: 6px; margin-top: 8px; }
.mod-thumb { display: grid; place-items: center; height: 96px; border-radius: 6px; overflow: hidden; font-size: 32px; background: repeating-conic-gradient(#1b2531 0 25%, #121923 0 50%) 0 0 / 16px 16px; }
.mod-thumb img, .mod-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; }
.mod-name { margin-top: 6px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-link { padding: 12px; border: 1px solid var(--accent); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.ev.mod-ev { grid-template-columns: 46px minmax(0, 1fr); }

/* çekiliş */
.gw-entries { display: flex; flex-wrap: wrap; gap: 6px; max-height: 320px; overflow-y: auto; }
.gw-entry { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13.5px; }
.gw-entry small { color: var(--muted); }
