/* Beyin Haritası — koyu "galaksi" teması (varsayılan) + açık tema */
:root {
  color-scheme: dark;
  --bg: #060814;
  --surface: #0e1228;
  --surface-2: #171d3b;
  --text: #eaeeff;
  --muted: #98a2cc;
  --line: #252d57;
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --accent-ink: #04121a;
  --grad: linear-gradient(120deg, #5eead4 0%, #8f94ff 55%, #c084fc 100%);
  --b0: #ff9966;
  --b1: #34e0c0;
  --b2: #8f94ff;
  --b3: #b5f54a;
  --b4: #ff6fb1;
  --b5: #46c3ff;
  --b6: #ffd05a;
  --b7: #c084fc;
  --on-b: #070a18;
  --k-bilgi: #94a3b8;
  --k-gorus: #fbbf24;
  --k-iddia: #f87171;
  --k-kavram: #34d399;
  --k-anekdot: #a78bfa;
  --glass: rgba(13, 17, 40, 0.68);
  --glass-solid: rgba(15, 19, 42, 0.94);
  --glass-line: rgba(150, 165, 255, 0.2);
  --stage: radial-gradient(1300px 900px at 50% 42%, #131b43 0%, #080b20 52%, #04050d 100%);
  --au1: rgba(52, 224, 192, 0.2);
  --au2: rgba(143, 148, 255, 0.26);
  --au3: rgba(255, 111, 177, 0.15);
  --star: 190, 205, 255;
  --star-hot: 94, 234, 212;
  --fx-blend: lighter;
  --spot: rgba(150, 170, 255, 0.11);
  --core-1: #ffffff;
  --core-2: #c9fff0;
  --core-3: #5eead4;
  --core-4: #7b6cff;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3fc;
  --surface: #ffffff;
  --surface-2: #eaedfb;
  --text: #14183a;
  --muted: #596090;
  --line: #d6dbf2;
  --accent: #5b4bdb;
  --accent-2: #0ea5a5;
  --accent-soft: rgba(91, 75, 219, 0.12);
  --accent-ink: #ffffff;
  --grad: linear-gradient(120deg, #5b4bdb 0%, #8b5cf6 50%, #db2777 100%);
  --b0: #e4572e;
  --b1: #0e9f8a;
  --b2: #4f46e5;
  --b3: #5f9a12;
  --b4: #d6336c;
  --b5: #1d7fe0;
  --b6: #c98a07;
  --b7: #9333ea;
  --on-b: #ffffff;
  --k-bilgi: #64748b;
  --k-gorus: #d97706;
  --k-iddia: #dc2626;
  --k-kavram: #059669;
  --k-anekdot: #7c3aed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-solid: rgba(255, 255, 255, 0.95);
  --glass-line: rgba(91, 75, 219, 0.2);
  --stage: radial-gradient(1300px 900px at 50% 42%, #ffffff 0%, #eef0ff 55%, #e2e6fb 100%);
  --au1: rgba(14, 159, 138, 0.18);
  --au2: rgba(91, 75, 219, 0.2);
  --au3: rgba(214, 51, 108, 0.14);
  --star: 70, 80, 170;
  --star-hot: 91, 75, 219;
  --fx-blend: source-over;
  --spot: rgba(91, 75, 219, 0.1);
  --core-1: #ffffff;
  --core-2: #ddd6fe;
  --core-3: #8b5cf6;
  --core-4: #5b4bdb;
  --shadow: 0 14px 40px rgba(60, 60, 140, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, color-mix(in srgb, var(--b2) 16%, transparent), transparent 62%),
    radial-gradient(800px 520px at 100% 0%, color-mix(in srgb, var(--b1) 11%, transparent), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- tema anahtarı ---------- */
.theme-switch {
  position: relative;
  flex: none;
  width: 64px;
  height: 32px;
  padding: 0;
  border-radius: 99px;
  border: 1px solid var(--glass-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 80%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
  cursor: pointer;
  display: block;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.theme-switch:hover { border-color: var(--accent); box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 20px -6px var(--accent); }
.ts-ic { position: absolute; top: 7px; width: 18px; height: 18px; color: var(--muted); transition: color 0.35s, opacity 0.35s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ts-sun { left: 7px; }
.ts-moon { right: 7px; }
.ts-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 2px 10px -2px var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.55s cubic-bezier(0.3, 1.5, 0.45, 1);
}
/* koyu: düğme sağda (ay), açık: solda (güneş) */
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(32px); }
.theme-switch[aria-checked="true"] .ts-moon { color: var(--accent-ink); transform: rotate(-20deg) scale(1.08); z-index: 1; }
.theme-switch[aria-checked="false"] .ts-sun { color: var(--accent-ink); transform: rotate(90deg) scale(1.08); z-index: 1; }
.theme-switch[aria-checked="true"] .ts-sun, .theme-switch[aria-checked="false"] .ts-moon { opacity: 0.75; }

/* tema geçişi: anahtardan yayılan daire */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- üst çubuk ve sekmeler ---------- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  z-index: 10;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  opacity: 0.7;
}
.brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #5eead4, #8f94ff, #c084fc, #ff6fb1, #ffd05a, #5eead4);
  position: relative;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent);
}
.logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg);
}
.top-title {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}
.top-title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 9;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-ind {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 80px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 6px 22px -6px var(--accent);
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1), width 0.35s ease;
  z-index: 0;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 7px 18px;
  border-radius: 99px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent-ink); }

body.page-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
#app { flex: 1; min-height: 0; position: relative; }
.panel { position: absolute; inset: 0; overflow: auto; display: none; }
.panel.on { display: block; }
.panel.panel-map.on { display: block; overflow: hidden; }

/* ---------- ortak bileşenler ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.kchip { background: transparent; border: 1px solid var(--line); padding: 1px 9px; }
.kchip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kc, var(--k-bilgi));
  box-shadow: 0 0 8px var(--kc, var(--k-bilgi));
}
.k-bilgi { --kc: var(--k-bilgi); }
.k-gorus { --kc: var(--k-gorus); }
.k-iddia { --kc: var(--k-iddia); }
.k-kavram { --kc: var(--k-kavram); }
.k-anekdot { --kc: var(--k-anekdot); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 7px 13px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); box-shadow: 0 8px 22px -10px var(--accent); }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.btn.sm { padding: 4px 11px; font-size: 13px; }

.callout {
  border-left: 3px solid var(--k-gorus);
  background: color-mix(in srgb, var(--k-gorus) 11%, var(--surface));
  padding: 9px 12px;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.5;
}
.callout b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); display: block; margin-bottom: 2px; }

.seg { display: inline-flex; border: 1px solid var(--glass-line); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.seg button + button { border-left: 1px solid var(--glass-line); }
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.input {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px -6px var(--accent); background: rgba(255, 255, 255, 0.07); }
.input::placeholder { color: var(--muted); }

.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
.doc h1 { font-family: var(--serif); font-size: clamp(28px, 5vw, 38px); line-height: 1.15; margin: 0 0 6px; }
.doc .lead { font-family: var(--serif); font-size: 18px; line-height: 1.65; margin: 0 0 28px; }

/* ---------- Harita: sahne ---------- */
.mm-wrap { position: absolute; inset: 0; --tb: 56px; }
.mm-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--stage);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.mm-viewport.dragging { cursor: grabbing; }
.mm-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mm-aurora i {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.9;
}
.mm-aurora i:nth-child(1) { left: -20vmax; top: -24vmax; background: radial-gradient(circle, var(--au1), transparent 62%); }
.mm-aurora i:nth-child(2) { right: -24vmax; top: 6vmax; background: radial-gradient(circle, var(--au2), transparent 62%); }
.mm-aurora i:nth-child(3) { left: 14vmax; bottom: -34vmax; background: radial-gradient(circle, var(--au3), transparent 62%); }
.mm-bg, .mm-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }

/* çekirdek çevresindeki yörüngeler */
.mm-orbits { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: opacity 1.4s ease 0.4s; }
.mm-orbits .ring {
  position: absolute;
  left: calc(var(--r) * -1);
  top: calc(var(--r) * -1);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  border: 1px dashed rgba(var(--star), 0.16);
}
.mm-orbits .ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgb(var(--star-hot));
  box-shadow: 0 0 10px 2px rgba(var(--star-hot), 0.6);
}
.mm-orbits .ring.r1::after { background: #c084fc; box-shadow: 0 0 10px 2px rgba(192, 132, 252, 0.6); top: auto; bottom: -4px; }
.mm-viewport.booting .mm-orbits { opacity: 0; transition: none; }


/* ---------- Harita: dallar ---------- */
.mm-links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.mm-link {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-opacity: 0.5;
  stroke-dasharray: 1;
  transition: stroke-opacity 0.5s, stroke-width 0.3s;
}
.mm-link.d1 { stroke-width: 3.4; stroke-opacity: 0.85; }
.mm-link.d2 { stroke-width: 2.3; stroke-opacity: 0.6; }
.mm-link.warm { stroke-opacity: 1; stroke-width: 2.8; }
.mm-link.hot { stroke-opacity: 1; stroke-width: 4.2; }
.mm-viewport.focusing .mm-link:not(.hot) { stroke-opacity: 0.12; }

/* ---------- Harita: düğümler ---------- */
.mm-node {
  --c: var(--text);
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  max-width: 220px;
}
.mm-node.side-r { transform-origin: 0 50%; }
.mm-node.side-l { transform-origin: 100% 50%; }
.mm-node.off { pointer-events: none; }
.mm-node:hover { z-index: 5; }
.mm-node.sel { z-index: 4; }
.mm-node.hit { z-index: 3; }
.mm-label {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--c) 52%, transparent);
  border-radius: 11px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 24%, var(--surface)), color-mix(in srgb, var(--c) 7%, var(--surface)));
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s, background 0.2s, opacity 0.3s;
}
.mm-label:hover {
  transform: scale(1.07);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 36%, var(--surface)), color-mix(in srgb, var(--c) 14%, var(--surface)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 80%, transparent), 0 0 28px -2px color-mix(in srgb, var(--c) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.mm-label:active { transform: scale(0.97); }
.mm-node.group .mm-label {
  border-style: dashed;
  background: color-mix(in srgb, var(--c) 8%, transparent);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.mm-ic { margin-right: 7px; }

/* çekirdek */
.mm-node.d0 { max-width: 270px; }
.mm-node.d0 .mm-label {
  --c: var(--core-3);
  border: 0;
  color: #06121b;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 15px 26px;
  border-radius: 99px;
  background: radial-gradient(120% 150% at 26% 18%, var(--core-1) 0%, var(--core-2) 24%, var(--core-3) 55%, var(--core-4) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset, 0 0 40px 6px color-mix(in srgb, var(--core-3) 55%, transparent), 0 0 100px 24px color-mix(in srgb, var(--core-4) 32%, transparent);
}
.mm-node.d0 .mm-label:hover { transform: scale(1.06); background: radial-gradient(120% 150% at 26% 18%, var(--core-1) 0%, var(--core-2) 30%, var(--core-3) 62%, var(--core-4) 100%); }
.mm-viewport.booting .mm-node.d0 .mm-label { animation: coreIn 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) both; }

/* ana dallar */
.mm-node.d1 { max-width: 230px; }
.mm-node.d1 .mm-label {
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 46%, color-mix(in srgb, var(--c) 76%, #000));
  color: var(--on-b);
  font-size: 15px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset, 0 12px 30px -12px var(--c), 0 0 30px -8px var(--c);
}
.mm-node.d1 .mm-label:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), color-mix(in srgb, var(--c) 94%, #fff) 46%, var(--c));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 14px 38px -10px var(--c), 0 0 46px -4px var(--c);
}
.mm-node.d3 .mm-label { font-size: 13px; }

/* seçili / bulunan */
.mm-node.sel .mm-label {
  box-shadow: 0 0 0 2px var(--c), 0 0 30px 2px color-mix(in srgb, var(--c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.mm-node.hit .mm-label {
  box-shadow: 0 0 0 2px #ffd05a, 0 0 24px 2px rgba(255, 208, 90, 0.55);
}
.mm-viewport.focusing .mm-node:not(.rel) .mm-label { opacity: 0.22; }
.mm-viewport.focusing .mm-node:not(.rel) .mm-toggle { opacity: 0.2; }
.mm-ripple {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 2px solid var(--c);
  pointer-events: none;
  animation: ripple 0.7s ease-out both;
}

.mm-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kc);
  border: 2px solid var(--surface);
  box-sizing: content-box;
}
.mm-toggle {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  background: var(--surface);
  color: var(--c);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, opacity 0.3s;
}
.mm-toggle:hover { background: var(--c); color: var(--on-b); transform: scale(1.15); }
.mm-node.side-r .mm-toggle { right: -12px; }
.mm-node.side-l .mm-toggle { left: -12px; }
.mm-toggle .min { display: none; font-size: 15px; }
.mm-node.open .mm-toggle .cnt { display: none; }
.mm-node.open .mm-toggle .min { display: inline; }
@media (pointer: coarse) {
  .mm-toggle { width: 30px; height: 30px; margin-top: -15px; }
  .mm-node.side-r .mm-toggle { right: -15px; }
  .mm-node.side-l .mm-toggle { left: -15px; }
}

/* ---------- Harita: açılış başlığı ve altyazı ---------- */
.mm-title {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.2s ease;
}
.mm-viewport.titling .mm-title { opacity: 1; transform: scale(1); }
.mm-title span {
  font-family: var(--serif);
  font-size: clamp(48px, 12vw, 128px);
  font-weight: 800;
  letter-spacing: 0.2em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mm-title small {
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  color: var(--muted);
  font-size: clamp(11px, 2vw, 15px);
}
.mm-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  padding: 12px 26px;
  border-radius: 20px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
}
.mm-caption.show { animation: capIn 0.7s cubic-bezier(0.2, 1.3, 0.3, 1) both; }
.mm-caption b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.mm-caption span { color: var(--muted); font-size: 13px; }

/* ---------- Harita: araç çubuğu, kontroller, panel ---------- */
.mm-toolbar {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border-radius: 18px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.mm-toolbar .search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 340px; }
.mm-toolbar .search .input { flex: 1; padding-left: 32px; }
.mm-toolbar .search .si { position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 16px; pointer-events: none; }
.mm-toolbar .count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mm-toolbar .legend-inline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.mm-toolbar .legend-inline .lg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mm-toolbar .legend-inline .lg:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.mm-toolbar .legend-inline .lg[aria-pressed="true"] { color: var(--text); border-color: var(--kc); background: color-mix(in srgb, var(--kc) 18%, transparent); }
.mm-toolbar .legend-inline .lg::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kc);
}
.input.sm { padding: 5px 8px; font-size: 13px; border-radius: 10px; }
select.input { max-width: 100%; }
select.input option { background: var(--surface); color: var(--text); }

/* süzgeç paneli */
.mm-act.filter { position: relative; }
.mm-act.filter.on { border-color: var(--accent); background: var(--accent-soft); }
.f-badge { font-style: normal; font-size: 11px; font-weight: 800; min-width: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.f-badge:empty { display: none; }
.mm-filter {
  position: absolute;
  z-index: 9;
  top: calc(var(--tb) + 18px);
  left: 12px;
  width: min(380px, calc(100% - 24px));
  padding: 14px;
  border-radius: 16px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.mm-filter[hidden] { display: none; }
.f-row { display: grid; gap: 5px; }
.f-row > label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.f-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.f-check { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.f-check input { margin-top: 3px; accent-color: var(--accent); }
.f-hint { font-size: 12px; color: var(--muted); }
.f-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f-status { font-size: 12.5px; color: var(--muted); }

/* detay paneli: kaynak, zaman çizgisi, benzerler */
.src { display: grid; gap: 4px; }
.src-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.src-ep { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; padding: 2px 0; cursor: pointer; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; }
.src-ep:hover { color: var(--accent); }
.src-t { font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--text); text-decoration: none; font-size: 12.5px; }
a.src-t:hover { background: var(--accent); color: var(--accent-ink); }
.src-note { color: var(--muted); font-size: 12.5px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tl-chip { border: 1px solid var(--glass-line); border-radius: 99px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; padding: 3px 9px; cursor: pointer; }
.tl-chip small { margin-left: 5px; color: var(--muted); font-weight: 600; }
.tl-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.rel { display: grid; gap: 5px; }
.rel-item { text-align: left; border: 1px solid var(--glass-line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 13px; line-height: 1.35; padding: 7px 10px; cursor: pointer; }
.rel-item b { color: var(--accent); font-size: 12px; margin-right: 2px; }
.rel-item:hover { background: var(--accent-soft); }
.mm-actions { display: inline-flex; gap: 6px; }
.mm-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s, background 0.2s;
}
.mm-act:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px -10px var(--accent); background: rgba(255, 255, 255, 0.09); }
.mm-act:active { transform: scale(0.95); }
.mm-act .ai { font-size: 14px; line-height: 1; }
.mm-act.tour { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 24px -10px var(--accent); }
.mm-act.tour.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 24px -10px var(--accent); }

.mm-ctrl { position: absolute; left: 12px; top: calc(var(--tb) + 24px); display: flex; flex-direction: column; gap: 6px; z-index: 7; }
.mm-ctrl button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: var(--glass-solid);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s;
}
.mm-ctrl button:hover { transform: scale(1.12); background: var(--surface-2); }
.mm-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--glass-solid);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-line);
  pointer-events: none;
  transition: opacity 0.5s;
}
.mm-hint.gone { opacity: 0; }

.mm-detail {
  --c: var(--accent);
  position: absolute;
  top: calc(var(--tb) + 24px);
  right: 12px;
  bottom: 12px;
  width: 340px;
  z-index: 7;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px -18px var(--c);
  overflow: auto;
  padding: 20px 16px 18px;
  border-top: 3px solid var(--c);
}
.mm-detail:not([hidden]) { animation: panelIn 0.6s cubic-bezier(0.2, 1.1, 0.3, 1) both; }
.mm-detail.swap > *:not(.x) { animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mm-detail .x {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.3, 1.8, 0.5, 1), background 0.2s;
}
.mm-detail .x:hover { background: var(--surface-2); transform: rotate(90deg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 12.5px; color: var(--muted); margin: 0 30px 8px 0; }
.crumbs button { border: 0; background: transparent; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.crumbs button:hover { color: var(--text); }
.mm-detail h3 { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.mm-detail p { margin: 10px 0; font-size: 15px; line-height: 1.6; }
.mm-detail h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 18px 0 6px; }
.kids { display: grid; gap: 5px; }
.kids button {
  text-align: left;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 11px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 14px;
  border-left: 4px solid var(--c, var(--accent));
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s;
}
.kids button:hover { background: color-mix(in srgb, var(--c) 18%, transparent); transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

@media (max-width: 760px) {
  .topbar { padding: 9px 14px; gap: 10px; }
  .mm-toolbar { gap: 6px 8px; padding: 7px 8px; border-radius: 16px; }
  .mm-toolbar .search { flex: 1 1 100%; max-width: none; }
  .mm-toolbar .count { display: none; }
  .mm-toolbar .seg button { padding: 6px 8px; font-size: 12.5px; }
  .mm-toolbar .legend-inline { display: none; }
  .mm-actions { margin-left: auto; }
  .mm-act { padding: 6px 10px; }
  .mm-act .al { display: none; }
  .mm-act.tour .al { display: inline; }
  .mm-hint { display: none; }
  .mm-caption { bottom: 18px; padding: 10px 20px; }
  .mm-detail {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 46%;
    border-radius: 20px;
  }
  .mm-detail:not([hidden]) { animation-name: sheetIn; }
}

/* ---------- Notlar ---------- */
#tab-notlar { background: transparent; }
.notes {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 90px;
}
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.toc a:hover { background: var(--surface-2); color: var(--text); transform: translateX(3px); }
.toc a.on { color: var(--text); font-weight: 800; border-left-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.n-sec { margin-bottom: 52px; scroll-margin-top: 16px; }
.reveal-on .n-sec { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal-on .n-sec.in { opacity: 1; transform: none; }
.n-sec > header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.n-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  color: var(--on-b);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-top: 4px;
  box-shadow: 0 8px 22px -8px var(--c);
}
.n-sec h2 { font-family: var(--serif); font-size: 29px; line-height: 1.2; margin: 0; flex: 1; }
.n-lead { font-family: var(--serif); font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.n-sec h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 26px 0 6px;
  padding-left: 11px;
  border-left: 4px solid var(--c);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.n-sec h3 .grow { flex: 1; min-width: 0; }
.n-p { font-family: var(--serif); font-size: 17px; line-height: 1.7; margin: 6px 0 10px; }
.n-list { margin: 8px 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.n-list .n-list { margin: 8px 0 0 4px; padding-left: 16px; border-left: 2px solid var(--line); }
.n-item { position: relative; padding-left: 4px; font-family: var(--serif); font-size: 17px; line-height: 1.65; }
.n-item strong { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.n-item .callout, .n-sec .callout { margin: 8px 0; font-family: var(--sans); }
.n-tools { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.n-tools button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.3, 1.8, 0.5, 1), background 0.2s, color 0.2s, border-color 0.2s;
}
.n-tools button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.18); }

@media (max-width: 900px) {
  .notes { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .toc { position: static; }
  .toc ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; border-left-width: 1px; }
  .toc a.on { border-color: var(--c, var(--accent)); }
  .toc h2 { display: none; }
}

/* notlarda haritadan gelinen yerin kısa vurgusu */
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } to { background: transparent; } }
.flash { animation: flash 1.8s ease-out; border-radius: 8px; }

/* ---------- animasyonlar ---------- */
@keyframes coreIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ripple { from { opacity: 0.95; transform: scale(1); } to { opacity: 0; transform: scale(1.5, 2); } }
@keyframes capIn { from { opacity: 0; transform: translate(-50%, 20px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes panelIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .mm-caption.show { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   ZAMAN ÇİZELGESİ
   ============================================================ */
.tl-wrap { max-width: 880px; margin: 0 auto; padding: 22px 16px 90px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tl-title h2 { font-family: var(--serif); font-size: clamp(24px, 4.5vw, 32px); line-height: 1.15; margin: 0 0 4px; }
.tl-title p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.tl-note, .tl-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.tl-eps[hidden], .tl-chrono[hidden], .tl-ep-body[hidden], .tl-ev-body[hidden] { display: none; }

/* --- yayın sırası --- */
.tl-month {
  position: sticky; top: 0; z-index: 3; margin: 26px 0 8px; padding: 8px 0 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: linear-gradient(var(--bg) 70%, transparent);
}
.tl-rail { position: relative; padding-left: 22px; }
.tl-rail::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: 0.55; }
.tl-ep { position: relative; margin-bottom: 10px; }
.tl-ep::before { content: ""; position: absolute; left: -22px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition: transform 0.25s, background 0.25s; }
.tl-ep.open::before, .tl-ep:hover::before { background: var(--accent); transform: scale(1.15); }
.tl-ep-head {
  width: 100%; display: flex; gap: 14px; text-align: left; color: inherit; font: inherit; cursor: pointer;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.tl-ep-head:hover { border-color: var(--accent); box-shadow: 0 10px 28px -16px var(--accent); }
.tl-ep.open .tl-ep-head { border-color: var(--accent); }
.tl-ep-date { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); padding: 6px 0; }
.tl-ep-date b { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-ep-date small { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.tl-ep-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.tl-ep-tag { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.04em; }
.tl-ep-sub { font-size: 15px; line-height: 1.4; font-weight: 600; }
.tl-ep-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.tl-ep-topics i { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.tl-span { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.tl-span-bar { position: relative; flex: 1; max-width: 240px; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tl-span-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--grad); }
.tl-span-txt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-ep-body { margin: 6px 0 4px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px dashed var(--line); }
.tl-sum { margin: 0 0 10px; line-height: 1.65; font-size: 14.5px; }
.tl-take { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tl-take li { margin-bottom: 4px; }
.tl-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- konu kronolojisi --- */
.tl-controls {
  position: sticky; top: 0; z-index: 5; margin: 0 -16px 8px; padding: 10px 16px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-row .input { flex: 1 1 200px; }
.tl-era-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tl-era-seg::-webkit-scrollbar { display: none; }
.tl-era-seg button { white-space: nowrap; }
.tl-topics { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.tl-topics::-webkit-scrollbar { display: none; }
.tl-tchip {
  flex: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: transparent; transition: all 0.2s; white-space: nowrap;
}
.tl-tchip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--c); vertical-align: 0; }
.tl-tchip:hover { color: var(--text); border-color: var(--c); }
.tl-tchip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--on-b); }
.tl-tchip[aria-pressed="true"]::before { background: var(--on-b); }
.tl-epchip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--accent-soft); font-size: 13px; }
.tl-epchip button { border: 0; background: var(--surface-2); color: var(--text); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.tl-epchip button:hover { background: var(--accent); color: var(--accent-ink); }
.tl-mini { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin-top: 10px; }
.tl-mini button { position: relative; flex: 1; height: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: flex-end; min-width: 0; }
.tl-mini button i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--accent-2); opacity: 0.45; transition: height 0.35s, opacity 0.2s, background 0.2s; }
.tl-mini button:hover:not(:disabled) i { opacity: 0.85; }
.tl-mini button.on i { background: var(--accent); opacity: 1; }
.tl-mini button:disabled { cursor: default; }
.tl-mini button span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.tl-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 18px; }
.tl-count { font-size: 13px; font-weight: 800; color: var(--accent); }
.tl-hint { margin: 0; font-size: 12px; }
.tl-hint { opacity: 0.85; }

.tl-list { padding-top: 6px; }
.tl-empty { display: none; text-align: center; color: var(--muted); padding: 40px 10px; }
.tl-list.empty .tl-empty { display: block; }
.tl-era { margin-top: 22px; }
.tl-era[hidden], .tl-yr[hidden], .tl-ev[hidden] { display: none; }
.tl-era-h { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--text); }
.tl-yr { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 10px; padding: 4px 0; }
.tl-y { margin: 8px 0 0; font-size: 16px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.02em; }
.tl-evs { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.tl-evs::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.tl-ev { position: relative; margin: 4px 0; }
.tl-dot { position: absolute; left: -20px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg); transition: transform 0.2s; }
.tl-ev:hover .tl-dot, .tl-ev.open .tl-dot { transform: scale(1.3); box-shadow: 0 0 0 3px var(--bg), 0 0 14px 1px var(--c); }
.tl-ev-head {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; text-align: left; color: inherit; font: inherit; cursor: pointer;
  padding: 9px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; transition: background 0.2s, border-color 0.2s;
}
.tl-ev-head:hover { background: var(--surface); border-color: var(--line); }
.tl-ev.open .tl-ev-head { background: var(--surface); border-color: var(--c); }
.tl-ev-label { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.tl-range { font-style: normal; font-size: 12px; font-weight: 800; color: var(--c); margin-right: 8px; font-variant-numeric: tabular-nums; }
.tl-ev-tag { flex: none; max-width: 36%; font-size: 11px; font-weight: 700; color: var(--muted); padding-top: 3px; text-align: right; }
.tl-ev-body { margin: 4px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; }
.tl-ev-body p { margin: 0 0 10px; }
.tl-crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.tl-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: 12.5px; color: var(--muted); }
.tl-srcchip { cursor: pointer; font: inherit; font-size: 12px; }
.tl-srcchip:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .tl-wrap { padding: 16px 12px 90px; }
  .tl-controls { position: static; margin: 0 -12px 8px; padding: 8px 12px 6px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tl-yr { grid-template-columns: 1fr; padding: 2px 0; }
  .tl-y { text-align: left; margin: 12px 0 2px 20px; font-size: 15px; color: var(--accent); }
  .tl-ev-tag { display: none; }
  .tl-ep-head { padding: 10px 11px; gap: 10px; }
  .tl-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-ep::before, .tl-dot, .tl-mini button i { transition: none; }
}

.tl-sumbox { margin-bottom: 10px; }
.tl-sumbox .tl-sum { margin-bottom: 4px; }
.tl-more { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 2px 0; }
.tl-more:hover { text-decoration: underline; }
