/* Rehber Okuyucu. Tema ziroo-edge www/shared/hub.css'i izler ("neon arcade", tools.ziroo.net ailesi):
   aynı zemin, mürekkep tonları, yazı yığınları ve araç vurgusu (.t-rehber). hub.css'e bağlanmaz; dosya kendi başına yeter.
   CSP: yalnız aynı kökenden stil (satır içi stil yok), dış font/CDN yok; img-src data: izinli (gren deseni).
   Hareket yalnız transform/opacity; prefers-reduced-motion hepsini kapatır. Okuma önce gelir: sakin, durağan ışık. */
:root {
  color-scheme: dark;
  /* hub.css belirteçleri */
  --bg: #07060e;
  --card: #110e20;
  --ink: #f4f2ff;
  --ink-2: #bcb7d8;
  --ink-3: #9d98bd;
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .16);
  --au-1: 59 130 246;
  --au-2: 34 211 238;
  --au-3: 139 92 246;
  /* araç vurgusu ("r g b"), tools.css .t-rehber */
  --a1: 56 189 248;
  --a2: 129 140 248;
  --ink-a: 186 230 253;
  --title: linear-gradient(95deg, #e6fbff 0%, #7dd3fc 40%, #a5b4fc 100%);
  --display: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --text-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* uygulama belirteçleri (eski adlar korunur; kurallar bunları kullanır) */
  --surface: #110e20;                     /* düz kart zemini (color-mix ve onay işareti için opak) */
  --glass: rgb(17 14 32 / .84);           /* kart zemini: arka ışık hafifçe sızar */
  --glass-top: linear-gradient(180deg, rgb(255 255 255 / .035), rgb(255 255 255 / 0) 48%);
  --surface-2: #1a1630;
  --border: rgb(255 255 255 / .1);
  --text: var(--ink);
  --prose: #e8e5f6;                       /* uzun metin: saf beyazdan bir tık yumuşak */
  --muted: #a9a4c8;
  --primary: rgb(var(--a1));
  --primary-ink: #04121c;
  --primary-soft: #16263d;
  --primary-grad: linear-gradient(90deg, rgb(var(--a1)), rgb(var(--a2)));
  --danger: #fb7185;
  --danger-soft: #331b2c;
  --success: #4ade80;
  --success-soft: #172b2c;
  --warn: #fbbf24;
  --warn-soft: #30261f;
  --accent2: rgb(var(--a2));
  --spoiler: #2b2648;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 10px 30px -14px rgb(0 0 0 / .7);
  --shadow-lg: 0 18px 50px -12px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 255 255 / .06);
  --radius: 16px;
  --radius-lg: 20px;
  --font: var(--text-font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgb(255 255 255 / .2) var(--bg);
}
body {
  /* zemin html'de; gövde saydam ki sabit ışık katmanı (body::before) görünsün */
  background: transparent;
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
/* Arka plan: durağan ışık bulutları (araç listesi renkleri + Rehber vurgusu), kenar karartma, ince gren. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(60vmax 42vmax at 8% -6%, rgb(var(--au-1) / .22), transparent 70%),
    radial-gradient(52vmax 40vmax at 98% 4%, rgb(var(--au-2) / .13), transparent 70%),
    radial-gradient(56vmax 44vmax at 30% 108%, rgb(var(--au-3) / .14), transparent 70%),
    radial-gradient(40vmax 30vmax at 72% 58%, rgb(var(--a1) / .06), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 20%, transparent 45%, rgb(3 2 8 / .6) 100%);
}
body::after {
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgb(var(--a1) / .4); color: #fff; }
[hidden] { display: none !important; }
a { color: rgb(var(--a1)); text-decoration-color: rgb(var(--a1) / .45); text-underline-offset: 2px; }
a:hover { color: rgb(var(--ink-a)); text-decoration-color: currentColor; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-family: var(--display); }
* { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .16); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--a1) / .45); background-clip: padding-box; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 200; background: var(--primary); color: var(--primary-ink); padding: 6px 12px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); color: var(--text);
  border-radius: 11px; padding: .55rem .95rem; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .05s;
}
.btn:hover { background: rgb(var(--a1) / .1); border-color: rgb(var(--a1) / .55); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-grad); border-color: transparent; color: var(--primary-ink); font-weight: 700; box-shadow: 0 8px 24px -10px rgb(var(--a1) / .8); }
.btn-primary:hover { background: var(--primary-grad); border-color: transparent; color: var(--primary-ink); box-shadow: 0 8px 28px -6px rgb(var(--a1) / .9); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / .06); border-color: var(--line); }
.btn-sm { padding: .38rem .75rem; font-size: .86rem; }
.btn-xs { padding: .26rem .6rem; font-size: .8rem; border-radius: 8px; }
.btn-icon { padding: .3rem .6rem; font-size: 1.1rem; line-height: 1; }
.btn-on { background: var(--primary-soft); border-color: rgb(var(--a1) / .45); color: rgb(var(--ink-a)); }
.btn[disabled], .btn[disabled]:hover { opacity: .5; cursor: default; box-shadow: none; }
.btn:not(.btn-primary)[disabled]:hover { background: rgb(255 255 255 / .04); border-color: var(--line-2); }
:focus-visible { outline: 2px solid rgb(var(--a1)); outline-offset: 2px; }

input, select {
  font: inherit; color: var(--text); background: rgb(7 6 14 / .6);
  border: 1px solid var(--line-2); border-radius: 11px; padding: .55rem .7rem; min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #8a85aa; opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled) { border-color: rgb(255 255 255 / .26); }
input:focus, select:focus { border-color: rgb(var(--a1) / .75); box-shadow: 0 0 0 3px rgb(var(--a1) / .18); }
input:focus-visible, select:focus-visible { outline: none; }
select option, select optgroup { background: var(--surface); color: var(--text); }
input::-webkit-search-cancel-button { filter: invert(.8); }
input:disabled, select:disabled { background: rgb(255 255 255 / .03); color: var(--muted); border-color: var(--line); cursor: default; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--success); cursor: pointer; padding: 0; margin: 0; flex: none; }
.error { color: var(--danger); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.chip-done { background: var(--success-soft); color: var(--success); }
.count-pill { display: inline-block; min-width: 1.6em; padding: .05rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; vertical-align: middle; }
.kbd { font: 600 .72rem var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35rem; background: var(--surface-2); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(7 6 14 / .74); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; min-height: var(--topbar-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.08rem/1.2 var(--display); color: var(--text); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgb(var(--a1) / .45); background: radial-gradient(120% 120% at 28% 18%, rgb(var(--a1) / .42), rgb(var(--a1) / .1) 55%, rgb(var(--a2) / .1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 6px 20px -8px rgb(var(--a1) / .8); color: rgb(var(--ink-a)); font-weight: 800; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand > span:not(.logo), .usage-title {
    background: var(--title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); text-decoration: none; font-weight: 700; padding: .35rem .6rem .35rem .4rem; border-radius: 10px; flex: none; }
.back:hover { background: rgb(255 255 255 / .06); color: var(--text); }
.back-arrow { font-size: 1.4rem; line-height: 1; color: var(--muted); }
.topbar-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); opacity: 0; transition: opacity .2s; }
body.scrolled .topbar-title { opacity: 1; }
.tabs { display: flex; gap: 4px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); padding: 3px; border-radius: 13px; flex: none; margin-left: auto; }
.tabs [role="tab"] { position: relative; border: 0; background: transparent; font: inherit; padding: .4rem .85rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: rgb(var(--a1) / .16); color: rgb(var(--ink-a)); box-shadow: inset 0 0 0 1px rgb(var(--a1) / .4); }
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: .4rem; vertical-align: middle; }
.tab-dot.fresh { background: var(--success); }

/* ---------- home ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 22px 16px 56px; display: grid; gap: 22px; align-content: start; }
/* cam kart: hub .card gibi üstten hafif ışık, ince açık kenar */
.card, .guide-card, .guide-head, .side-inner, .unit, .ai-block, .state-card, .empty-card, .empty-home {
  background: var(--glass-top), var(--glass);
  border: 1px solid var(--border);
}
.card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.add-card { display: grid; gap: 12px; border-radius: var(--radius-lg); padding: 20px; border-color: rgb(var(--a1) / .22); box-shadow: inset 0 2px 0 rgb(var(--a1) / .75), 0 22px 60px -30px rgb(var(--a1) / .55), var(--shadow); }
.add-title { font-size: 1.2rem; letter-spacing: .005em; }
.add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.add-url input { width: 100%; }
.add-status { margin: 0; font-size: .9rem; }
.add-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgb(var(--a1)); margin-right: .5rem; vertical-align: middle; animation: pulse 1.2s ease-in-out infinite; }
.list-section { display: grid; gap: 12px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.list-head input { width: min(320px, 100%); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.guide-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); min-width: 0; }
a.guide-card:hover { color: var(--text); border-color: rgb(var(--a1) / .5); box-shadow: 0 18px 44px -22px rgb(var(--a1) / .7), var(--shadow); }
@media (hover: hover) { a.guide-card:hover { transform: translateY(-2px); } }
.gc-thumb { flex: none; width: 88px; display: grid; gap: 6px; justify-items: center; }
.gc-thumb-img { width: 88px; height: 88px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.gc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-initial { font: 800 2rem/1 var(--display); color: rgb(var(--ink-a) / .7); }
.gc-body { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.gc-title { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-meta { margin: 0; display: flex; gap: .6rem; flex-wrap: wrap; font-size: .86rem; }
.gc-game { font-weight: 600; }
.gc-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.list-msg { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.empty-home { grid-column: 1 / -1; border-style: dashed; border-color: var(--line-2); border-radius: var(--radius); padding: 28px 24px; max-width: 640px; }
.empty-home p { margin: 0 0 .5rem; line-height: 1.6; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-processing { background: var(--primary-soft); color: var(--primary); }
.st-ready { background: var(--success-soft); color: var(--success); }
.st-failed { background: var(--danger-soft); color: var(--danger); }
.st-none { background: var(--surface-2); color: var(--muted); }

/* ---------- skeleton ---------- */
.sk { background: rgb(255 255 255 / .06); animation: sk-pulse 1.6s ease-in-out infinite alternate; border-radius: 10px; }
.sk-line { height: 14px; margin: 10px 0; }
.w60 { width: 60%; } .w80 { width: 80%; }
.sk-thumb { width: 88px; height: 88px; flex: none; }
.sk-card .sk-line { margin: 6px 0; }
.sk-head { height: 104px; margin-bottom: 20px; border-radius: var(--radius); }
.sk-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; }
.sk-side { height: 420px; border-radius: var(--radius); }
.sk-main { max-width: 780px; }
.sk-block { height: 220px; margin-top: 18px; border-radius: var(--radius); }
@keyframes sk-pulse { from { opacity: .55; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- guide page ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 96px; }
.state-card { max-width: 560px; margin: 48px auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px; }
.state-title { font-size: 1.25rem; }
.state-card p { margin: 0; }
.state-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.guide-head { border-radius: var(--radius-lg); box-shadow: inset 0 2px 0 rgb(var(--a1) / .6), var(--shadow); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; margin-bottom: 20px; }
.gh-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.gh-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gh-icon-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gh-text { min-width: 0; }
.gh-text h1 { font-size: 1.4rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gh-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); font-size: .9rem; align-items: baseline; }
.gh-meta a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.gh-meta a:hover { color: rgb(var(--ink-a)); border-bottom-color: rgb(var(--a1)); }
.gh-meta strong { color: var(--text); }
.sep { color: rgb(255 255 255 / .28); }
.gh-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ai-status { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--border); }
.ai-status .hint { color: var(--warn); }
.ai-status.is-failed { color: var(--danger); }
.busy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px rgb(251 191 36 / .7); animation: pulse 1.4s ease-in-out infinite; flex: none; }

.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
body.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
body.no-sidebar .sidebar { display: none; }
.content { min-width: 0; max-width: 800px; outline: none; }

/* sidebar */
.sidebar { position: sticky; top: calc(var(--topbar-h) + 12px); }
.side-inner { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - var(--topbar-h) - 28px); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px 10px 10px 14px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.side-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.drawer-close { display: none; }
.progress-row { display: flex; align-items: center; gap: 10px; padding-right: 4px; }
progress { flex: 1; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
progress::-webkit-progress-bar { background: rgb(255 255 255 / .08); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--primary-grad); border-radius: 999px; box-shadow: 0 0 10px rgb(var(--a1) / .6); }
progress::-moz-progress-bar { background: var(--primary-grad); border-radius: 999px; }
.progress-row.complete progress::-webkit-progress-value, .unit-progress.complete progress::-webkit-progress-value { background: var(--success); box-shadow: 0 0 10px rgb(74 222 128 / .5); }
.progress-row.complete progress::-moz-progress-bar, .unit-progress.complete progress::-moz-progress-bar { background: var(--success); }
.progress-text { font-size: .85rem; font-weight: 700; color: var(--muted); }
.progress-row.complete .progress-text { color: var(--success); }
.search-row { position: relative; padding-right: 4px; }
.search-row input { width: 100%; padding-right: 2rem; }
.search-row .kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-row input:focus + .kbd, .search-row input:not(:placeholder-shown) + .kbd { display: none; }
.search-count { margin: -4px 0 0; font-size: .8rem; color: var(--primary); font-weight: 600; }
.side-actions { display: flex; flex-wrap: wrap; gap: 4px; padding-right: 4px; }

.toc { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px 0 -6px; padding: 2px 4px 4px 2px; border-top: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .18) transparent; }
.toc-list, .toc-sub { list-style: none; margin: 0; padding: 0; }
.toc-list { padding-top: 6px; }
.toc-sub { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--border); }
.toc-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: 2px 8px; padding: 0 4px; border-radius: 8px; position: relative; }
.toc-item > .toc-sub { grid-column: 1 / -1; }
.toc-item .toc-check { width: 14px; height: 14px; margin-top: 7px; }
.toc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .22); margin: 12px 0 0 5px; }
.toc-link { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.toc-link:hover { color: rgb(var(--ink-a)); }
.toc-l1 .toc-link { font-size: .83rem; padding: 3px 0; color: var(--muted); }
.toc-l1 .toc-check { margin-top: 5px; width: 13px; height: 13px; }
.toc-group > .toc-link { font-weight: 700; }
.toc-count { font-size: .75rem; color: var(--muted); padding-top: 6px; }
.toc-item.done > .toc-link { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.toc-item.current > .toc-link { color: rgb(var(--ink-a)); font-weight: 700; }
.toc-item.current::before { content: ""; position: absolute; left: -6px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--primary); box-shadow: 0 0 8px rgb(var(--a1) / .8); }
.toc-item.current { background: rgb(var(--a1) / .1); }
.toc-l1.current::before { left: -10px; }
.toc-empty { font-size: .85rem; padding: 8px 4px; }

/* notices */
.notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--success-soft); color: var(--success); border: 1px solid rgb(74 222 128 / .25); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
.no-results { text-align: center; padding: 28px 12px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.no-results p { margin: 0; }
.empty-card { border-style: dashed; border-color: var(--line-2); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; justify-items: start; }
.empty-card h2 { font-size: 1.15rem; }
.empty-card p { margin: 0; line-height: 1.6; max-width: 62ch; }

.intro { margin: 0 0 16px; padding: 4px 4px 0; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.intro-text { margin: 0; white-space: pre-line; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }

/* ---------- units (sections, cards) ---------- */
.unit { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; scroll-margin-top: calc(var(--topbar-h) + 12px); transition: opacity .15s, border-color .2s; }
.unit-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 16px; }
.check-wrap { display: grid; place-items: center; height: 1.9rem; flex: none; }
.unit-head-main { flex: 1; min-width: 0; }
.unit-title { font-size: 1.08rem; font-weight: 700; }
.unit-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: .25rem 0; cursor: pointer; border-radius: 6px; line-height: 1.35; }
.unit-title-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chev { flex: none; width: 10px; height: 10px; margin-top: .4em; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.collapsed .chev { transform: rotate(-45deg); }
.unit-body { padding: 0 22px 18px 52px; }
.sec-num { flex: none; min-width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center; border-radius: 9px; background: rgb(var(--a1) / .1); border: 1px solid rgb(var(--a1) / .25); color: rgb(var(--ink-a)); font-size: .8rem; font-weight: 700; padding: 0 .3rem; }
.sec .unit-body { padding-left: 22px; }
.unit.done { box-shadow: none; background: rgb(12 10 22 / .7); }
.unit.done .unit-title-text { color: var(--muted); }
.unit.done .sec-num { background: var(--success-soft); border-color: rgb(74 222 128 / .3); color: var(--success); }
/* Vurgu yanıp sönmesi: ayrı bir halkanın yalnız opaklığı değişir */
.unit.flash::after, .ck-item.flash::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 3px rgb(var(--a1) / .7), 0 0 24px rgb(var(--a1) / .45); pointer-events: none; opacity: 0; animation: flash 1.3s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- prose (rendered blocks) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.7; max-width: 72ch; overflow-wrap: break-word; color: var(--prose); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.b-p { margin: .7em 0; white-space: pre-line; }
.b-h { margin: 1.3em 0 .45em; letter-spacing: -.005em; white-space: pre-line; }
.b-h1 { font-size: 1.22rem; }
.b-h2 { font-size: 1.1rem; }
.b-h3 { font-size: 1rem; color: var(--muted); text-transform: none; }
.b-list { margin: .6em 0; padding-left: 1.5em; }
.b-list li { margin: .25em 0; white-space: pre-line; }
.b-list .b-list { margin: .2em 0; }
.b-quote { margin: 1em 0; padding: .6em 1em; border-left: 3px solid rgb(var(--a2) / .55); background: rgb(255 255 255 / .04); border-radius: 0 10px 10px 0; }
.b-quote-author { font-size: .85rem; font-weight: 700; color: var(--muted); }
.b-code { margin: 1em 0; padding: .8em 1em; background: rgb(7 6 14 / .7); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font: .88rem/1.55 var(--mono); white-space: pre; }
.prose code { font-family: var(--mono); font-size: .9em; background: rgb(255 255 255 / .07); color: rgb(var(--ink-a)); padding: .05em .3em; border-radius: 4px; }
.b-code code { background: none; padding: 0; font-size: inherit; }
.b-hr { border: 0; border-top: 1px solid var(--border); margin: 1.4em 0; }
.prose a { text-underline-offset: 2px; overflow-wrap: anywhere; }

.table-wrap { margin: 1em 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; max-width: 100%; }
.b-table { border-collapse: collapse; font-size: .92rem; line-height: 1.45; min-width: 100%; }
.b-table th, .b-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; white-space: pre-line; min-width: 6rem; }
/* Rehber/model metni: büyük harfe çevrilmez (dili bilinmez; tr kuralı İngilizcede "İ" üretir). */
.b-table th { background: var(--surface-2); font-size: .8rem; letter-spacing: .01em; color: var(--ink-2); }
.b-table tbody tr:hover td { background: rgb(255 255 255 / .025); }
.b-table tr:last-child td { border-bottom: 0; }

/* images: Steam's own rules (sharedFilePreviewImage). Natural size capped at the column, sizeFull = column
   width, sizeThumb ≤ 311px; floatLeft/Right float with text around them; the rest sit in the flow. */
.pics { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: .6em 0; }
.pic { display: inline-block; vertical-align: bottom; max-width: 100%; padding: 0; margin: 0; border: 0; border-radius: 4px; background: none; cursor: zoom-in; line-height: 0; transition: box-shadow .15s; }
.pic:hover, .pic:focus-visible { box-shadow: 0 0 0 2px rgb(var(--a1) / .7); }
.pic-img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.pic-full, .pic-full .pic-img { width: 100%; }
.pics > .pic-full { flex: 1 1 100%; }
.pic-thumb .pic-img { max-width: min(311px, 100%); }
.pic-left { float: left; margin: 4px 12px 4px 0; }
.pic-right { float: right; margin: 4px 0 4px 12px; }
/* floats stay inside their unit; lists beside a float don't run their bullets under it */
.unit-body, .b-quote, .ai-block { display: flow-root; }
.b-list { display: flow-root; }
.cell-pic { display: inline-block; line-height: 0; vertical-align: middle; }
.cell-img { display: block; max-width: 100%; height: auto; }
@media (max-width: 910px) { .pic-left, .pic-right { max-width: 60%; } }

/* video */
.video-card { display: flex; align-items: center; gap: 14px; margin: 1em 0; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; max-width: 520px; }
.video-card:hover { border-color: rgb(var(--a1) / .7); color: var(--text); }
.video-media { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; width: 40px; height: 28px; transform: translate(-50%, -50%); background: #e62117; border-radius: 8px; }
.video-play::after { content: ""; position: absolute; left: 16px; top: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.video-label { display: grid; gap: 2px; font-size: .92rem; }

/* spoilers */
.spoiler { border-radius: 4px; transition: background .2s, color .2s; }
.spoiler:not(.revealed) { background: var(--spoiler); color: transparent; cursor: pointer; user-select: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.spoiler:not(.revealed) * { color: transparent !important; background: transparent !important; text-decoration-color: transparent !important; }
.spoiler:not(.revealed):hover { background: color-mix(in srgb, var(--spoiler) 80%, rgb(var(--a1))); }
.spoiler.revealed { background: rgb(255 255 255 / .06); }
.spoiler-block { margin: 1em 0; }
.spoiler-cover { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; border: 1px dashed color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 12px; background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 8px, transparent 8px, transparent 16px); color: var(--text); font: inherit; cursor: pointer; }
.spoiler-cover:hover { border-color: rgb(var(--a1) / .7); }
.spoiler-cover-title { font-weight: 700; }
.spoiler-cover-hint { font-size: .85rem; color: var(--muted); }
.spoiler-body { border-left: 3px solid #3d3766; padding-left: 1em; }

/* callouts */
.callout { --cc: var(--primary); --cb: var(--primary-soft); margin: 1em 0; padding: 10px 14px; border-radius: 4px 12px 12px 4px; background: var(--cb); border-left: 3px solid var(--cc); }
.callout-label { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--cc); margin-bottom: 2px; }
.callout-text { margin: 0; white-space: pre-line; line-height: 1.6; }
.callout-tip { --cc: var(--success); --cb: var(--success-soft); }
.callout-warning { --cc: var(--warn); --cb: var(--warn-soft); }
.callout-missable { --cc: var(--danger); --cb: var(--danger-soft); }

/* ---------- AI view ---------- */
.ai-block { border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 22px 20px; margin-bottom: 16px; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.block-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.ai-overview { border-color: rgb(var(--a1) / .22); box-shadow: inset 0 2px 0 rgb(var(--a1) / .7), var(--shadow); }
.ai-summary { font-size: 1.08rem; line-height: 1.7; margin: 0 0 14px; white-space: pre-line; max-width: 70ch; color: var(--prose); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fact { display: inline-flex; align-items: baseline; gap: .45rem; padding: .35rem .75rem; border-radius: 10px; background: rgb(255 255 255 / .045); border: 1px solid var(--line); max-width: 100%; }
/* Etiketler İngilizce oyun terimleri içerebilir ("Speed Completion"); lang="tr" altında büyük harfe çevirmek "COMPLETİON" yapar. */
.fact dt { font-size: .78rem; font-weight: 700; letter-spacing: .01em; color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.warnings { margin: 0 0 12px; }
.warnings-list { margin: 0; padding-left: 1.15em; line-height: 1.55; }
.warnings-list li { margin: .2em 0; white-space: pre-line; overflow-wrap: anywhere; }
.warnings-list li::marker { color: var(--cc); }
.issues { margin: 6px 0 8px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; }
.issues summary { cursor: pointer; padding: 9px 0; font-weight: 600; font-size: .92rem; color: var(--muted); }
.issues ul { margin: 0 0 10px; padding-left: 1.2em; line-height: 1.6; }
.issues li { margin: .2em 0; }
.ai-foot { margin: 10px 0 0; font-size: .8rem; }

.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 18px; }
.phase:last-child { padding-bottom: 0; }
.phase:not(:last-child)::before { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.2rem; bottom: 4px; width: 2px; background: linear-gradient(rgb(var(--a1) / .4), var(--border)); }
.phase-num { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary-grad); color: var(--primary-ink); font-weight: 800; font-size: .9rem; }
.phase-main { min-width: 0; padding-top: .2rem; }
.phase-title { font-size: 1.02rem; margin-bottom: .3em; }

.ach-head { display: grid; gap: 10px; margin: 26px 0 6px; }
.ach-head .block-title { margin: 0; }
.ach-lang { max-width: 15rem; min-width: 0; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-clear { border: 0; background: transparent; color: rgb(var(--a1)); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: .2rem .4rem; }

.group { margin-top: 18px; }
.group-head { padding: 8px 4px 10px; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.group-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group-title { font-size: 1.25rem; letter-spacing: .005em; }
.group-count { font-size: .85rem; font-weight: 700; color: var(--muted); }
.group-complete .group-count { color: var(--success); }
.group-note { margin: 4px 0 0; color: var(--muted); line-height: 1.55; white-space: pre-line; max-width: 72ch; }

.ach .unit-head { padding: 12px 14px; align-items: flex-start; }
.ach .check-wrap { height: 44px; }
.ach-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.ach-icon-empty { background: radial-gradient(120% 120% at 28% 18%, rgb(var(--a1) / .22), rgb(var(--a2) / .06)); }
.ach-icon-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ach .unit-title { font-size: 1.02rem; }
.ach .unit-toggle { padding-top: .1rem; }
.ach-sub { display: grid; gap: 6px; margin-top: 2px; }
.ach-desc { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.ach-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ach-pct { font-size: .78rem; color: var(--muted); margin-left: 2px; }
.ach .unit-body { padding: 0 20px 16px 46px; }
.ach-has-icon .unit-body { padding-left: 110px; }
.ach:not(.ach-has-icon) .check-wrap { height: 1.9rem; }
.ach-missable { border-left: 3px solid var(--danger); }
.ach.collapsed .ach-sub { display: none; }
.ach.done .ach-icon { filter: grayscale(1); opacity: .6; }
.sources { margin: 12px 0 0; font-size: .88rem; }
.source-link { font-weight: 600; }

/* tags */
.tag { --tc: var(--muted); display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: color-mix(in srgb, var(--tc) 85%, var(--text)); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); }
.tag-missable { --tc: var(--danger); background: var(--danger); color: #fff; border-color: var(--danger); }
.tag-missable::before { content: "!"; display: inline-grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; background: #fff; color: var(--danger); font-size: .72rem; font-weight: 900; }
.tag-story { --tc: #a5b4fc; } .tag-collectible { --tc: #2dd4bf; } .tag-grind { --tc: #fbbf24; }
.tag-skill { --tc: #f472b6; } .tag-online { --tc: #38bdf8; } .tag-coop { --tc: #22d3ee; }
.tag-dlc { --tc: #c084fc; } .tag-secret { --tc: #94a3b8; } .tag-glitch { --tc: #fb923c; }
.tag-timed { --tc: #facc15; } .tag-difficulty { --tc: #fb7185; } .tag-multirun { --tc: #a3e635; }
.tag-unobtainable { --tc: #9ca3af; text-decoration: line-through; }
.tag-missable { color: #1a0b0d; }
.tag-missable::before { background: #1a0b0d; color: var(--danger); }
.tag-btn { cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; padding: .25rem .7rem; }
.tag-btn:hover { border-color: var(--tc); }
.tag-btn[aria-pressed="true"] { background: var(--tc); color: var(--surface); border-color: var(--tc); }
.tag-btn.tag-missable[aria-pressed="false"] { background: var(--danger-soft); color: var(--danger); }
.tag-btn.tag-missable[aria-pressed="false"]::before { background: var(--danger); color: var(--danger-soft); }
.tag-n { font-weight: 600; opacity: .75; }

/* ---------- floating buttons & drawer ---------- */
.fabs { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(17 14 32 / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); box-shadow: var(--shadow-lg); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s; }
.fab:hover { background: #1a1630; border-color: rgb(var(--a1) / .6); }
.fab-top { font-size: 1.15rem; padding: 0; width: 46px; }
.fab-toc { display: none; background: var(--primary-grad); border-color: transparent; color: var(--primary-ink); box-shadow: 0 12px 32px -10px rgb(var(--a1) / .8), var(--shadow-lg); }
.fab-toc:hover { background: var(--primary-grad); border-color: transparent; }
.fab-icon { font-size: 1.05rem; }
.drawer-backdrop { position: fixed; inset: 0; background: rgb(3 2 8 / .6); z-index: 45; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 4 11 / .95); color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(5 4 11 / .6); }
.lb-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; padding: 16px 64px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity .15s; background: rgba(255, 255, 255, .03); }
.lightbox.loading .lb-img { opacity: .35; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgb(var(--a1) / .22); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-size: .9rem; color: rgba(255, 255, 255, .8); }
.lb-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-open { color: rgb(var(--ink-a)); }
.lb-close { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.lb-close:hover { background: rgb(var(--a1) / .25); }
body.lb-open-body { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1a1630; color: var(--text); border: 1px solid rgb(var(--a1) / .45); padding: .65rem 1rem; border-radius: 12px; font-weight: 600; box-shadow: 0 0 30px -8px rgb(var(--a1) / .5), var(--shadow-lg); z-index: 120; max-width: calc(100vw - 32px); }
.toast.toast-error { background: var(--danger-soft); color: #fecdd3; border-color: rgb(251 113 133 / .6); box-shadow: 0 0 30px -8px rgb(251 113 133 / .5), var(--shadow-lg); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout, .sk-layout { grid-template-columns: minmax(0, 1fr); }
  .sk-side { display: none; }
  .content { max-width: none; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(360px, 88vw); transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  body.drawer-open .sidebar { transform: none; visibility: visible; }
  body.drawer-open { overflow: hidden; }
  .side-inner { height: 100%; max-height: none; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-left: 0; padding-top: calc(14px + env(safe-area-inset-top)); background: var(--glass-top), var(--surface); box-shadow: var(--shadow-lg); }
  .drawer-close { display: inline-flex; }
  .fab-toc { display: inline-flex; }
  body.no-sidebar .fab-toc { display: none; }
  .kbd { display: none; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 52px; }
  .topbar-inner { gap: 8px; padding: 0 10px; }
  .topbar-title { display: none; }
  .back-text { display: none; }
  .tabs [role="tab"] { padding: .38rem .6rem; font-size: .86rem; }
  .page { padding: 12px 10px 96px; }
  .container { padding: 16px 12px 48px; }
  .add-form { grid-template-columns: 1fr auto; }
  .add-url { grid-column: 1 / -1; }
  .add-lang select { width: 100%; }
  .guide-head { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .gh-actions { justify-content: flex-start; }
  .gh-text h1 { font-size: 1.2rem; }
  .gh-icon { width: 40px; height: 40px; }
  .unit-head { padding: 10px 10px 10px 12px; gap: 8px; }
  .sec .unit-body, .unit-body { padding: 0 14px 16px; }
  .ach .unit-body, .ach-has-icon .unit-body { padding: 0 14px 14px; }
  .ach-icon { width: 36px; height: 36px; }
  .ach-has-icon .check-wrap { height: 36px; }
  .prose { font-size: 1rem; line-height: 1.65; }
  .ai-block { padding: 14px 14px 16px; }
  .video-media { width: 120px; }
  .lb-stage { padding: 8px; }
  .lb-nav { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; background: rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- per-item ticks ---------- */
.items-line { margin: -4px 0 0; font-size: .8rem; font-weight: 600; color: var(--muted); padding-right: 4px; }

/* counters in unit headers ("3 / 12" + thin bar) */
.unit-progress { flex: none; display: grid; justify-items: end; gap: 3px; padding-top: .3rem; min-width: 3.6rem; font-weight: 400; }
.unit-title .unit-progress { line-height: 1; }
.unit-count { font-size: .78rem; font-weight: 700; color: var(--muted); }
.unit-progress.complete .unit-count { color: var(--success); }
progress.unit-bar { width: 3.6rem; height: 4px; flex: none; }
.sec:not(.extra) progress.unit-bar { display: none; }
.sec:not(.extra) .unit-count { font-weight: 600; opacity: .8; }
.block-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.block-title-row .unit-progress { padding-top: 0; }

/* shared custom tick box (quiet, theme-aware) */
.it-box, .ck-box {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; flex: none; cursor: pointer;
  width: 15px; height: 15px; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent);
  border-radius: 4px; background: transparent; display: inline-grid; place-items: center;
  transition: background .12s, border-color .12s, opacity .12s;
}
.it-box::after, .ck-box::after { content: ""; width: 4px; height: 8px; border: solid transparent; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.it-box:checked, .ck-box:checked { background: var(--success); border-color: var(--success); }
.it-box:checked::after, .ck-box:checked::after { border-color: var(--surface); }
.it-box:hover, .ck-box:hover { border-color: var(--success); }

/* original view: list items and table rows. The box sits in the left gutter,
   faint until the row is hovered or ticked, so prose lists stay prose. */
.b-list.tickable > li { position: relative; }
.b-list.tickable > li > .it-box { position: absolute; left: -2.75em; top: .42em; opacity: .28; }
.b-list.tickable { padding-left: 1.5em; margin-left: 1.25em; }
.b-list.tickable .b-list.tickable { margin-left: 1.1em; }
.b-list.tickable > li:hover > .it-box, .b-list.tickable > li > .it-box:focus-visible, .b-list.tickable > li > .it-box:checked { opacity: 1; }
.b-list.tickable > li.checked > .li-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.b-table .it-cell { width: 1%; min-width: 0; padding-right: 0; }
.b-table .it-cell .it-box { opacity: .3; margin-top: .2em; }
.b-table tr:hover .it-box, .b-table .it-box:checked, .b-table .it-box:focus-visible { opacity: 1; }
.b-table tr.checked td:not(.it-cell) { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
@media (hover: none) {
  .b-list.tickable > li > .it-box, .b-table .it-cell .it-box { opacity: .5; }
}

/* AI checklist */
.checklist { margin: 1em 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgb(7 6 14 / .25); }
.ck-head { display: flex; justify-content: flex-end; padding: 4px 8px; background: rgb(255 255 255 / .035); border-bottom: 1px solid var(--border); }
.ck-all { border: 0; background: transparent; color: rgb(var(--a1)); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; padding: .15rem .35rem; border-radius: 6px; }
.ck-all:hover { background: var(--primary-soft); color: rgb(var(--ink-a)); }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-item { position: relative; border-top: 1px solid var(--border); }
.ck-item:first-child { border-top: 0; }
.ck-row { display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px 8px 12px; }
.ck-label { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 1rem; line-height: 1.5; color: var(--prose); font-weight: 500; }
.ck-label .ck-box { width: 18px; height: 18px; margin-top: .14em; border-color: color-mix(in srgb, var(--muted) 75%, transparent); }
.ck-label .ck-box::after { width: 5px; height: 10px; }
.ck-text { white-space: pre-line; overflow-wrap: anywhere; }
.ck-toggle { flex: none; border: 0; background: transparent; cursor: pointer; padding: .35rem .45rem; border-radius: 6px; color: var(--muted); }
.ck-toggle:hover { background: rgb(255 255 255 / .06); }
.ck-toggle .chev { display: block; margin: 0; transform: rotate(-45deg); }
.ck-item.ck-open .ck-toggle .chev { transform: rotate(45deg); }
.ck-detail { padding: 0 14px 10px 40px; font-size: .97rem; }
.ck-detail > :first-child { margin-top: 0; }
.ck-detail > :last-child { margin-bottom: 0; }
.ck-item.checked .ck-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.ck-item.checked { background: rgb(255 255 255 / .025); }
.ck-item.ck-match { box-shadow: inset 3px 0 0 var(--primary); }
.hide-checked .ck-item.checked:not(.ck-match) { display: none; }

/* cards the guide does not cover */
.unit.compact .unit-title { padding: .25rem 0; }
.ach-uncovered { margin: 0; font-size: .85rem; color: var(--muted); font-style: italic; }
.ach.compact.collapsed .ach-sub, .ach.compact .ach-sub { display: grid; }
.tag-uncovered { --tc: var(--muted); }
.tag-btn.tag-uncovered[aria-pressed="false"] { text-decoration: line-through; opacity: .7; background: transparent; color: var(--muted); border-color: var(--border); }
.tag-btn.tag-uncovered[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.tag-sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 2px 2px; }

@media (max-width: 640px) {
  .ck-detail { padding-left: 14px; }
  .b-list.tickable > li > .it-box { left: -2.55em; }
}

/* ---------- owner session ---------- */
.auth { display: flex; align-items: center; gap: 6px; flex: none; }
.page-home .auth { margin-left: auto; }
.chip-owner { background: var(--primary-soft); color: rgb(var(--ink-a)); }
.dialog { border: 1px solid rgb(var(--a1) / .3); border-radius: var(--radius-lg); padding: 0; width: min(400px, calc(100vw - 32px)); background: var(--glass-top), var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8), 0 0 60px -20px rgb(var(--a1) / .45); }
.dialog::backdrop { background: rgb(3 2 8 / .65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.login-form { padding: 22px; display: grid; gap: 12px; }
.login-title { font-size: 1.15rem; }
.login-note { margin: 0; font-size: .88rem; line-height: 1.5; }
.login-label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.login-label input { width: 100%; }
/* ortak "Ziroo'ya yaz" kartı (/yaz-karti.css): yalnız tema değişkenleri, kart kendi tasarımını taşır */
.login-form .zy { --zy-serit: var(--primary); --zy-odak: var(--primary); justify-self: start; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

/* owner AI controls */
.ai-controls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ai-empty .ai-controls { margin-left: 0; }
.ai-field { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; max-width: 100%; }
.ai-field .muted { white-space: nowrap; }
.ai-lang { padding: .22rem .45rem; font-size: .8rem; border-radius: 8px; }
.btn-confirm { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); }
.btn-confirm:hover { background: var(--warn-soft); filter: brightness(1.05); }
.ai-empty h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ai-elapsed { color: var(--muted); font-weight: 600; }
.ai-usage { margin: 2px 0 0; font-size: .76rem; }
.add-hint { margin: 0; font-size: .86rem; }
.add-mode { justify-self: start; }
.chip-research { background: var(--primary-soft); color: rgb(var(--ink-a)); }
.research-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); border: 1px solid rgb(var(--a1) / .22); }
.research-note .eyebrow { color: var(--primary); }
.research-note p { margin: 0; line-height: 1.55; }

@media (max-width: 640px) {
  .chip-owner { display: none; }
  .ai-controls { margin-left: 0; }
}
.ai-reload { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- AI phase steps ---------- */
.phase-steps { list-style: none; margin: 2px 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: step; }
.phase-steps li { counter-increment: step; display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem .2rem .3rem; border-radius: 999px; background: rgb(255 255 255 / .05); color: var(--muted); font-size: .82rem; font-weight: 600; }
.phase-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--muted); font-size: .72rem; }
.phase-steps li.done { color: var(--success); }
.phase-steps li.done::before { content: "✓"; background: var(--success-soft); color: var(--success); }
.phase-steps li.current { background: var(--primary-soft); color: rgb(var(--ink-a)); }
.phase-steps li.current::before { background: var(--primary); color: var(--primary-ink); }

/* ---------- usage page ---------- */
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-title { font-size: 1.35rem; }
.period-tabs { margin-left: 0; }
.period-tabs button { border: 0; background: transparent; font: inherit; padding: .4rem .85rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; }
.period-tabs button:hover { color: var(--text); }
.period-tabs button[aria-pressed="true"] { background: rgb(var(--a1) / .16); color: rgb(var(--ink-a)); box-shadow: inset 0 0 0 1px rgb(var(--a1) / .4); }
#usage { display: grid; gap: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-card { --st: var(--primary); padding: 14px 16px; box-shadow: inset 0 2px 0 var(--st), var(--shadow); }
.stat-card:nth-child(2) { --st: var(--accent2); }
.stat-card:nth-child(3) { --st: var(--success); }
.stat-card:nth-child(4) { --st: rgb(255 255 255 / .22); }
.stat-card.warn { --st: var(--warn); }
.stat-card.warn .stat-value { color: var(--warn); }
.stat-label { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font: 700 1.45rem/1.3 var(--display); letter-spacing: .005em; margin-top: 2px; }
.stat-hint { font-size: .8rem; }
.cost-note { margin: -6px 0 0; font-size: .8rem; }
.usage-section { padding: 16px; }
.usage-h { font-size: 1rem; margin-bottom: 10px; }
.usage-table { border: 1px solid var(--border); }
.usage-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.usage-table th, .usage-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; vertical-align: middle; }
.usage-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); }
.usage-table tbody tr:hover td { background: rgb(255 255 255 / .025); }
.usage-table tr:last-child td { border-bottom: 0; }
.usage-table .r { text-align: right; }
.usage-table td .run-guide { white-space: normal; display: inline-block; min-width: 12rem; max-width: 22rem; }
.small { font-size: .8rem; }
.ubar { display: block; width: 140px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.ubar-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary-grad); }
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 1.15rem; }
  .ubar { width: 80px; }
}

/* ---------- roadmap steps as units, linked items ---------- */
.ai-roadmap-wrap { margin: 18px 0 8px; }
.rm-head { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.phase-unit .phase-num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary-grad); color: var(--primary-ink); font-weight: 800; font-size: .85rem; }
.phase-unit.done .phase-num { background: var(--success); }
.phase-unit .unit-body { padding-left: 52px; }
.phase-unit.done { box-shadow: none; background: rgb(12 10 22 / .7); }
.phase-unit.done .unit-title-text { color: var(--muted); }
.ck-achs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-self: center; flex: none; max-width: 45%; justify-content: flex-end; }
.ach-chip { border: 1px solid rgb(var(--a1) / .3); background: var(--primary-soft); color: rgb(var(--ink-a)); font: inherit; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.ach-chip:hover { border-color: rgb(var(--a1) / .8); }
.linked-steps { margin-top: 14px; }
.linked-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.linked-group { margin: 0 0 8px; }
.linked-step { font-size: .8rem; font-weight: 700; color: var(--ink-2); padding: 5px 12px; background: rgb(255 255 255 / .04); border-bottom: 1px solid var(--border); }
.ck-linked .ck-row { align-items: center; }
.linked-show { flex: none; border: 0; background: transparent; color: rgb(var(--a1)); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; padding: .2rem .35rem; border-radius: 6px; white-space: nowrap; }
.linked-show:hover { background: var(--primary-soft); color: rgb(var(--ink-a)); }
.ck-item.flash { animation: flash 1.4s ease-out; }
@media (max-width: 640px) {
  .phase-unit .unit-body { padding-left: 14px; }
  .ck-row { flex-wrap: wrap; }
  .ck-achs { max-width: none; justify-content: flex-start; padding-left: 28px; }
  .linked-show { margin-left: 28px; }
  .ck-row > .ck-label { flex: 1 1 calc(100% - 44px); }
  .ck-row > .ck-achs { order: 3; flex-basis: 100%; }
}

/* plain roadmap/extras steps (count toward no achievement): no tick, a quiet
   bullet in the checkbox column so rows stay aligned */
.ck-plain .ck-label { cursor: default; font-weight: 400; }
.ck-bullet { flex: none; width: 18px; height: 18px; margin-top: .14em; display: inline-grid; place-items: center; }
.ck-bullet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 60%, transparent); }

/* ---------- alt bilgi (hub .foot gibi: küçük, sönük, ayraç noktası) ---------- */
.foot { width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px 16px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-3); font: 500 13px/1.4 var(--display); letter-spacing: .08em; }
.foot a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgb(255 255 255 / .25); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.foot a:hover { color: #fff; text-decoration-color: rgb(var(--a1)); }
.foot .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; color: inherit; }
/* rehber sayfası: alt boşluğu yüzen düğmeler için altbilgi taşır */
.page-guide .page { padding-bottom: 32px; }
.page-guide .foot { padding-bottom: 88px; }
@media (max-width: 640px) {
  .foot { padding-inline: 12px; }
  .page-guide .foot { padding-inline: 10px; }
}

/* ---------- pins ---------- */
/* Sabitle düğmesi: kart/bölüm başlık satırının sağında. Raptiye simgesi maske ile (data: img-src'de izinli). */
.pin-btn, .pin-head .group-title::before, .toc-pin-mark { --pin-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8v2l-1.5 1.5V10l3.5 3.5V16h-5v6h-2v-6H6v-2.5L9.5 10V5.5L8 4z'/%3E%3C/svg%3E"); }
.pin-btn { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-right: -4px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; opacity: .5; transition: opacity .15s, color .15s, background-color .15s; }
.pin-btn:hover, .pin-btn:focus-visible { opacity: 1; color: rgb(var(--ink-a)); background: rgb(255 255 255 / .06); }
.pin-btn[aria-pressed="true"] { opacity: 1; color: var(--primary); }
.pin-icon { width: 16px; height: 16px; background: currentColor; transform: rotate(45deg); transition: transform .15s; -webkit-mask: var(--pin-svg) center / contain no-repeat; mask: var(--pin-svg) center / contain no-repeat; }
.pin-btn[aria-pressed="true"] .pin-icon { transform: none; }
/* Sabitlenenler grubu: içeriğin en üstünde (AI görünümünde özetin de üstünde). */
.pin-group { margin: 0 0 22px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.pin-head .group-title::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .4em; background: var(--primary); vertical-align: -.05em; -webkit-mask: var(--pin-svg) center / contain no-repeat; mask: var(--pin-svg) center / contain no-repeat; }
.pin-home { display: none; }
/* İçindekiler: en üstteki "Sabitlenenler" maddesi; altındaki bölümler ve kartlar tek düzeyde. */
.toc-pin-mark { width: 10px; height: 10px; margin: 9px 0 0 3px; background: var(--primary); -webkit-mask: var(--pin-svg) center / contain no-repeat; mask: var(--pin-svg) center / contain no-repeat; }
.toc-pins { margin-bottom: 4px; }
.toc-pins > .toc-sub > .toc-item > .toc-link { font-size: .83rem; padding: 3px 0; }
.toc-pins > .toc-sub > .toc-l0 > .toc-check { margin-top: 5px; width: 13px; height: 13px; }
.toc-pins > .toc-sub > .toc-l0.current::before { left: -10px; }
@media (max-width: 640px) {
  .pin-btn { width: 2.2rem; height: 2.2rem; opacity: .65; }
}
