/* ATDEdu Tarih Laboratuvarı — kendi kapsamında, ortak temayla uyumlu. */
.history-lab-page {
  --hl-bg: var(--color-bg, #111315);
  --hl-panel: var(--color-surface, #1b1f22);
  --hl-raised: var(--color-surface-raised, #20262a);
  --hl-soft: var(--color-surface-soft, #242b30);
  --hl-line: var(--color-border, #2a3a33);
  --hl-line-strong: var(--color-border-strong, #355445);
  --hl-ink: #effff5;
  --hl-muted: #b4c1b8;
  --hl-faint: #96a69b;
  --hl-accent: var(--neon, #39ff88);
  --hl-cyan: var(--neon-teal, #00e5c7);
  --hl-blue: var(--neon-blue, #4da3ff);
  --hl-gold: #ffd166;
  --hl-red: #ff8078;
  --hl-shadow: 0 18px 54px rgba(0,0,0,.22);
  color: var(--hl-ink);
}
html[data-theme="light"] .history-lab-page {
  --hl-bg: #f5f8f6;
  --hl-panel: #fff;
  --hl-raised: #f7faf8;
  --hl-soft: #edf4ef;
  --hl-line: #d2ded6;
  --hl-line-strong: #7e9a87;
  --hl-ink: #17231b;
  --hl-muted: #405249;
  --hl-faint: #53665a;
  --hl-accent: #08683a;
  --hl-cyan: #006d68;
  --hl-blue: #2d5590;
  --hl-gold: #6c4b08;
  --hl-red: #96352f;
  --hl-shadow: 0 16px 42px rgba(24,63,38,.09);
}
.history-lab-page main { overflow: clip; }
.history-lab-page .container { width: min(1200px, calc(100% - 40px)); }
.history-lab-page a { text-underline-offset: .2em; }
.history-lab-page button { font: inherit; }
.history-lab-page :is(button,a,[tabindex]):focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 3px; }

.history-lab-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 7vw, 92px) 0 clamp(52px, 7vw, 88px);
  border-bottom: 1px solid var(--hl-line);
  background:
    radial-gradient(ellipse 42% 78% at 95% 32%, rgba(0,229,199,.12), transparent 72%),
    radial-gradient(ellipse 52% 70% at 2% 0%, rgba(57,255,136,.11), transparent 72%),
    linear-gradient(115deg, rgba(57,255,136,.035), transparent 53%);
}
.history-lab-hero::after {
  content: ""; position: absolute; z-index: -1; right: 4%; top: 15%; width: 270px; height: 270px;
  border: 1px solid rgba(57,255,136,.13); border-radius: 50%; box-shadow: 0 0 0 34px rgba(57,255,136,.025), 0 0 0 72px rgba(0,229,199,.018);
  pointer-events: none;
}
.history-lab-hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: clamp(36px,8vw,112px); align-items: center; }
.history-lab-eyebrow,.history-lab-kicker { margin: 0 0 14px; color: #7be5aa; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.history-lab-eyebrow { display: flex; align-items: center; gap: 10px; }
.history-lab-eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--hl-accent); box-shadow: 0 0 14px var(--hl-accent); }
.history-lab-eyebrow b { color: var(--hl-faint); font-weight: 500; }
.history-lab-hero h1 { max-width: 760px; margin: 0; color: var(--hl-ink); font-size: clamp(48px,7.5vw,88px); font-weight: 760; letter-spacing: -.065em; line-height: .98; }
.history-lab-hero h1 span { background: linear-gradient(92deg,var(--hl-accent),var(--hl-cyan) 68%,var(--hl-blue)); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.history-lab-lead { max-width: 670px; margin: 22px 0 0; color: var(--hl-muted); font-size: clamp(16px,1.6vw,19px); line-height: 1.7; }
.history-lab-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.history-lab-hero-actions .button { min-height: 46px; display: inline-flex; align-items: center; gap: 12px; }
.history-lab-scope { max-width: 690px; margin: 22px 0 0; padding-left: 13px; border-left: 2px solid var(--hl-accent); color: var(--hl-muted); font-size: 12px; line-height: 1.65; }
.history-lab-scope strong { color: var(--hl-ink); }
.history-lab-dashboard { position: relative; padding: 23px 25px 20px; border: 1px solid var(--hl-line-strong); border-radius: 16px; background: linear-gradient(145deg,rgba(57,255,136,.07),rgba(0,229,199,.025) 58%),var(--hl-panel); box-shadow: var(--hl-shadow); }
.history-lab-dashboard-top,.history-lab-dashboard-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--hl-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.history-lab-dashboard-score { display: flex; align-items: baseline; gap: 9px; margin: 22px 0 18px; }
.history-lab-dashboard-score strong { color: var(--hl-accent); font-size: clamp(48px,6vw,68px); font-weight: 720; letter-spacing: -.065em; line-height: 1; text-shadow: 0 0 26px rgba(57,255,136,.18); }
.history-lab-dashboard-score span { color: var(--hl-muted); font-size: 14px; }
.history-lab-overall-copy { display:flex; justify-content:space-between; gap:12px; margin-bottom:9px; color:var(--hl-muted); font-size:12px; }
.history-lab-overall-copy strong { color:var(--hl-ink); font-variant-numeric:tabular-nums; }
.history-lab-progress-track { height:7px; overflow:hidden; border-radius:99px; background:var(--hl-soft); }
.history-lab-progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--hl-accent),var(--hl-cyan)); box-shadow:0 0 13px rgba(57,255,136,.38); transition:width .35s ease; }
.history-lab-dashboard-foot { justify-content:flex-start; gap:20px; margin-top:22px; padding-top:15px; border-top:1px solid var(--hl-line); font-size:9px; }
.history-lab-dashboard-foot span { display:inline-flex; align-items:center; gap:7px; }
.history-lab-dashboard-foot i,.history-lab-status i { width:6px; height:6px; border-radius:50%; background:var(--hl-accent); box-shadow:0 0 9px var(--hl-accent); }

.history-lab-intro { display:flex; align-items:center; gap:18px; padding-top:24px; padding-bottom:24px; border-bottom:1px solid var(--hl-line); }
.history-lab-intro-marker { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--hl-line); border-radius:50%; color:var(--hl-accent); font-size:19px; }
.history-lab-intro p { flex:1; margin:0; color:var(--hl-muted); font-size:13px; line-height:1.65; }
.history-lab-intro p strong,.history-lab-intro p b { color:var(--hl-ink); }
.history-lab-intro > a { flex:0 0 auto; color:var(--hl-accent); font-size:12px; font-weight:700; text-decoration:none; }
.history-lab-intro > a span { padding-left:6px; }

.history-lab-main { padding-top: clamp(42px,6vw,72px); padding-bottom: 70px; }
.history-lab-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.history-lab-section-heading h2,.history-lab-source h2 { margin:0; color:var(--hl-ink); font-size:clamp(29px,4vw,43px); font-weight:740; letter-spacing:-.045em; line-height:1.12; }
.history-lab-section-heading h2 span,.history-lab-source h2 span { color:var(--hl-accent); }
.history-lab-kicker { margin-bottom:10px; font-size:10px; }
.history-lab-heading-meta { display:grid; justify-items:end; gap:8px; color:var(--hl-muted); font-size:12px; }
.history-lab-status { display:inline-flex; align-items:center; gap:8px; color:var(--hl-faint); font-size:9px; font-weight:800; letter-spacing:.1em; }
.history-lab-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start; }
.history-lab-sidebar { position:sticky; top:18px; padding:16px 13px 14px; border:1px solid var(--hl-line); border-radius:13px; background:var(--hl-panel); }
.history-lab-sidebar-label { margin:0 0 11px 8px; color:var(--hl-faint); font-size:9px; font-weight:800; letter-spacing:.14em; }
.history-lab-category-nav { display:grid; gap:5px; }
.history-lab-category-button { width:100%; min-height:46px; display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:9px; padding:7px 9px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--hl-muted); text-align:left; cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.history-lab-category-button:hover { border-color:var(--hl-line); background:var(--hl-raised); color:var(--hl-ink); }
.history-lab-category-button[aria-pressed="true"] { border-color:var(--hl-line-strong); background:rgba(57,255,136,.08); color:var(--hl-ink); }
.history-lab-category-button .category-symbol { width:28px; height:28px; display:grid; place-items:center; border:1px solid var(--hl-line); border-radius:8px; color:var(--hl-accent); font-size:14px; }
.history-lab-category-button .category-title { font-size:11px; font-weight:730; line-height:1.3; }
.history-lab-category-button .category-count { color:var(--hl-faint); font-size:9px; font-variant-numeric:tabular-nums; }
.history-lab-sidebar-note { display:flex; gap:9px; margin-top:15px; padding:12px 9px 2px; border-top:1px solid var(--hl-line); color:var(--hl-muted); }
.history-lab-sidebar-note > span { color:var(--hl-accent); font-size:18px; }
.history-lab-sidebar-note p { margin:0; color:var(--hl-faint); font-size:10px; line-height:1.6; }
.history-lab-sidebar-note strong { color:var(--hl-muted); }
.history-lab-workspace { min-width:0; }
.history-lab-filter-row { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; padding:0 3px; color:var(--hl-muted); font-size:11px; }
.history-lab-filter-row > div { display:flex; align-items:center; gap:9px; }
.history-lab-filter-dot { width:7px; height:7px; border-radius:50%; background:var(--hl-accent); box-shadow:0 0 10px var(--hl-accent); }
.history-lab-text-button { padding:7px 4px; border:0; background:none; color:var(--hl-accent); font-size:11px; font-weight:700; cursor:pointer; }
.history-lab-activity-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.history-lab-card { position:relative; min-width:0; padding:17px 17px 15px; overflow:hidden; border:1px solid var(--hl-line); border-radius:13px; background:linear-gradient(135deg,rgba(57,255,136,.035),transparent 50%),var(--hl-panel); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.history-lab-card:hover { transform:translateY(-2px); border-color:var(--hl-line-strong); box-shadow:var(--hl-shadow); }
.history-lab-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.history-lab-card-number { color:var(--hl-faint); font-size:10px; font-weight:800; letter-spacing:.12em; }
.history-lab-card-state { min-height:24px; display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border:1px solid var(--hl-line); border-radius:99px; color:var(--hl-faint); font-size:9px; font-weight:700; }
.history-lab-card-state.is-done { border-color:rgba(57,255,136,.35); color:var(--hl-accent); }
.history-lab-card-state i { width:5px; height:5px; border-radius:50%; background:currentColor; }
.history-lab-card h3 { margin:0 0 8px; color:var(--hl-ink); font-size:17px; font-weight:740; letter-spacing:-.02em; line-height:1.22; }
.history-lab-card-description { min-height:40px; margin:0; color:var(--hl-muted); font-size:11px; line-height:1.55; }
.history-lab-card-meta { display:flex; flex-wrap:wrap; gap:7px 12px; margin:13px 0 16px; color:var(--hl-faint); font-size:9px; }
.history-lab-card-meta span { display:inline-flex; align-items:center; gap:5px; }
.history-lab-card-meta b { color:var(--hl-muted); font-weight:700; }
.history-lab-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid var(--hl-line); }
.history-lab-card-score { color:var(--hl-faint); font-size:10px; font-variant-numeric:tabular-nums; }
.history-lab-launch { min-width:102px; min-height:44px; display:inline-flex; justify-content:center; align-items:center; gap:9px; padding:8px 12px; border:1px solid var(--hl-line-strong); border-radius:8px; background:rgba(57,255,136,.08); color:var(--hl-accent); font-size:11px; font-weight:760; cursor:pointer; transition:background .18s ease,box-shadow .18s ease; }
.history-lab-launch:hover { background:rgba(57,255,136,.15); box-shadow:var(--glow-rest); }
.history-lab-launch span { font-size:14px; }

/* Etkinlik çalışma alanı */
.history-lab-stage { margin-bottom:18px; padding:clamp(16px,3vw,27px); border:1px solid var(--hl-line-strong); border-radius:15px; background:linear-gradient(145deg,rgba(57,255,136,.05),transparent 48%),var(--hl-panel); box-shadow:var(--hl-shadow); }
.history-lab-stage[hidden] { display:none !important; }
.history-lab-stage-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:19px; }
.history-lab-stage-back { min-height:44px; padding:7px 10px; border:1px solid var(--hl-line); border-radius:8px; background:var(--hl-raised); color:var(--hl-muted); font-size:11px; font-weight:700; cursor:pointer; }
.history-lab-stage-back:hover { border-color:var(--hl-line-strong); color:var(--hl-ink); }
.history-lab-stage-title { margin:0; color:var(--hl-ink); font-size:clamp(20px,3vw,28px); letter-spacing:-.035em; line-height:1.2; }
.history-lab-stage-subtitle { margin:7px 0 0; color:var(--hl-muted); font-size:11px; line-height:1.55; }
.history-lab-stage-counter { flex:0 0 auto; min-width:84px; padding:7px 10px; border:1px solid var(--hl-line); border-radius:8px; color:var(--hl-accent); font-size:11px; font-weight:800; text-align:center; font-variant-numeric:tabular-nums; }
.history-lab-stage-progress { margin:0 0 18px; }
.history-lab-stage-progress-top { display:flex; justify-content:space-between; gap:10px; margin-bottom:7px; color:var(--hl-faint); font-size:10px; }
.history-lab-stage-progress .history-lab-progress-track { height:5px; }
.history-lab-question { padding:clamp(15px,2.6vw,22px); border:1px solid var(--hl-line); border-radius:12px; background:var(--hl-raised); }
.history-lab-question-title { margin:0 0 7px; color:var(--hl-ink); font-size:clamp(16px,2.3vw,20px); font-weight:730; letter-spacing:-.02em; line-height:1.4; }
.history-lab-question-context { margin:0 0 12px; color:var(--hl-muted); font-size:12px; line-height:1.65; }
.history-lab-question-source { display:inline-flex; align-items:center; gap:7px; margin:0 0 16px; padding:5px 8px; border:1px solid var(--hl-line); border-radius:6px; color:var(--hl-faint); font-size:9px; line-height:1.35; }
.history-lab-question-source::before { content:"↗"; color:var(--hl-accent); font-weight:800; }
.history-lab-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.history-lab-option { min-height:48px; display:flex; align-items:center; gap:11px; padding:10px 12px; border:1px solid var(--hl-line); border-radius:9px; background:var(--hl-panel); color:var(--hl-ink); font-size:12px; line-height:1.45; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.history-lab-option:hover { border-color:var(--hl-line-strong); background:var(--hl-soft); transform:translateY(-1px); }
.history-lab-option:disabled { cursor:default; opacity:.72; transform:none; }
.history-lab-option.is-selected { border-color:var(--hl-accent); background:rgba(57,255,136,.09); }
.history-lab-option-key { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; border:1px solid var(--hl-line); border-radius:7px; color:var(--hl-accent); font-size:10px; font-weight:800; }
.history-lab-feedback { display:flex; align-items:flex-start; gap:11px; margin-top:15px; padding:13px 14px; border:1px solid var(--hl-line); border-radius:9px; background:var(--hl-panel); color:var(--hl-muted); }
.history-lab-feedback[hidden] { display:none !important; }
.history-lab-feedback.is-correct { border-color:rgba(57,255,136,.44); background:rgba(57,255,136,.065); }
.history-lab-feedback.is-incorrect { border-color:rgba(255,128,120,.44); background:rgba(255,128,120,.06); }
.history-lab-feedback-icon { flex:0 0 25px; width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:rgba(57,255,136,.12); color:var(--hl-accent); font-size:13px; font-weight:900; }
.history-lab-feedback.is-incorrect .history-lab-feedback-icon { background:rgba(255,128,120,.13); color:var(--hl-red); }
.history-lab-feedback-copy { min-width:0; color:var(--hl-muted); font-size:11px; line-height:1.65; }
.history-lab-feedback-copy strong { display:block; margin-bottom:3px; color:var(--hl-ink); font-size:12px; }
.history-lab-feedback-copy .feedback-source { display:block; margin-top:6px; color:var(--hl-faint); font-size:10px; }
.history-lab-stage-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:15px; }
.history-lab-stage-score { color:var(--hl-muted); font-size:11px; }
.history-lab-stage-score strong { color:var(--hl-accent); font-variant-numeric:tabular-nums; }
.history-lab-next { min-width:130px; min-height:44px; padding:9px 15px; border:1px solid var(--hl-accent); border-radius:8px; background:linear-gradient(125deg,var(--hl-accent),var(--hl-cyan)); color:#06170c; font-size:11px; font-weight:850; cursor:pointer; }
.history-lab-next:hover { filter:brightness(1.08); }
.history-lab-next[hidden] { display:none !important; }

/* Harita: yerel vektör altlık + erişilebilir harfli işaretler ve cevap düğmeleri. */
.history-lab-map-intro { margin:0 0 11px; color:var(--hl-muted); font-size:11px; line-height:1.55; }
.history-lab-map-frame { position:relative; width:100%; aspect-ratio:1100 / 690; overflow:hidden; border:1px solid var(--hl-line); border-radius:10px; background:#edf4f3; isolation:isolate; }
.history-lab-map-frame > img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
.history-lab-map-lines { position:absolute; z-index:1; inset:0; width:100%; height:100%; pointer-events:none; }
.history-lab-map-lines.history-lab-route-layer { pointer-events:none; }
.history-lab-map-callout { stroke:#102b1b; stroke-width:2; stroke-dasharray:4 4; opacity:.83; vector-effect:non-scaling-stroke; }
.history-lab-map-target { fill:#ffcc66; stroke:#102b1b; stroke-width:3; vector-effect:non-scaling-stroke; }
.history-lab-map-pin { position:absolute; z-index:2; width:34px; min-width:34px; height:34px; min-height:34px; display:grid; place-items:center; padding:0; transform:translate(-50%,-50%); border:2px solid #102b1b; border-radius:50%; background:#f2fff6; color:#0a582e; box-shadow:0 2px 12px rgba(0,0,0,.28); font-size:11px; font-weight:900; cursor:pointer; touch-action:manipulation; }
.history-lab-map-pin:hover { background:#b9ffd1; transform:translate(-50%,-50%) scale(1.08); }
.history-lab-map-pin.is-correct { z-index:4; border-color:#064423; background:#39ff88; color:#04170c; box-shadow:0 0 0 5px rgba(57,255,136,.24),0 0 24px rgba(57,255,136,.9); }
.history-lab-map-pin.is-wrong { border-color:#692923; background:#ff8078; color:#30110e; }
.history-lab-map-pin:disabled { cursor:default; }
.history-lab-map-pins { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:11px; }
.history-lab-map-choice { min-width:54px; min-height:44px; padding:8px 14px; border:1px solid var(--hl-line-strong); border-radius:8px; background:var(--hl-panel); color:var(--hl-ink); font-size:12px; font-weight:800; cursor:pointer; }
.history-lab-map-choice:hover { border-color:var(--hl-accent); color:var(--hl-accent); }
.history-lab-map-choice:disabled { opacity:.58; cursor:default; }
.history-lab-map-note { margin:10px 0 0; color:var(--hl-faint); font-size:10px; line-height:1.55; }
.history-lab-route-path { fill:none; stroke-width:4; stroke-dasharray:10 7; stroke-linecap:round; stroke-linejoin:round; opacity:.86; vector-effect:non-scaling-stroke; pointer-events:none; }
.history-lab-route-label { fill:#fff; stroke:#102b1b; stroke-width:4px; paint-order:stroke; font:800 15px system-ui,sans-serif; text-anchor:middle; dominant-baseline:central; }
.history-lab-route-dot { fill:#102b1b; stroke:#fff; stroke-width:2; vector-effect:non-scaling-stroke; }
.history-lab-route-legend { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:11px; }
.history-lab-route-choice { min-width:78px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 12px; border:1px solid var(--hl-line-strong); border-radius:8px; background:var(--hl-panel); color:var(--hl-ink); font-size:11px; font-weight:800; cursor:pointer; }
.history-lab-route-choice:hover { border-color:var(--hl-accent); }
.history-lab-route-choice:disabled { opacity:.58; cursor:default; }
.history-lab-route-choice i { width:15px; height:5px; border-radius:5px; background:var(--route-color); box-shadow:0 0 9px var(--route-color); }

/* Coğrafi ipuçları: etiketler cevap adını değil, yakındaki doğrulanmış yer adını taşır. */
.history-lab-map-place-tag,
.history-lab-route-place-tag {
  position:absolute; z-index:3; display:inline-flex; align-items:center; gap:5px; max-width:150px;
  padding:4px 6px; transform:translate(-50%,-50%); border:1px solid #244b32; border-radius:7px;
  background:rgba(255,255,255,.97); color:#102719; box-shadow:0 2px 10px rgba(0,0,0,.24);
  font-size:10px; font-weight:760; line-height:1.2; white-space:nowrap; pointer-events:none;
  transition:box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.history-lab-map-place-tag > b {
  flex:0 0 20px; width:20px; height:20px; display:grid; place-items:center; border-radius:5px;
  background:#0b6536; color:#fff !important; font-size:9px; font-weight:900;
}
.history-lab-map-place-tag > span { color:#102719 !important; }
.history-lab-map-place-tag.is-correct { border-color:#08723b; box-shadow:0 0 0 3px rgba(8,114,59,.2),0 2px 10px rgba(0,0,0,.2); }
.history-lab-map-place-tag.is-wrong { border-color:#96352f; background:#fff1ef; box-shadow:0 0 0 3px rgba(150,53,47,.16),0 2px 10px rgba(0,0,0,.2); }
.history-lab-map-place-list {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:8px 0 11px; padding:0; list-style:none;
}
.history-lab-map-place-list li {
  min-width:0; min-height:37px; display:flex; align-items:center; gap:7px; padding:5px 8px;
  border:1px solid var(--hl-line); border-radius:7px; background:var(--hl-panel); color:var(--hl-muted);
  font-size:10px; line-height:1.35;
}
.history-lab-map-place-list li > b {
  flex:0 0 22px; width:22px; height:22px; display:grid; place-items:center; border-radius:6px;
  background:var(--hl-soft); color:var(--hl-accent); font-size:9px; font-weight:900;
}
.history-lab-map-place-list li > span { min-width:0; overflow-wrap:anywhere; }
.history-lab-route-place-list { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:8px; }
.history-lab-route-place-list li { min-height:32px; justify-content:center; text-align:center; }
.history-lab-route-place-leader { stroke:#173b27; stroke-width:1.5; stroke-dasharray:3 3; opacity:.75; vector-effect:non-scaling-stroke; }
.history-lab-route-place-dot { fill:#ffcc66; stroke:#173b27; stroke-width:2; vector-effect:non-scaling-stroke; }
.history-lab-route-place-tag { z-index:4; padding:3px 6px; border-color:#244b32; background:rgba(16,39,25,.94); color:#fff !important; font-size:9px; }
.history-lab-route-place-tag > b { flex:0 0 16px; width:16px; height:16px; display:grid; place-items:center; border-radius:4px; background:#0b6536; color:#fff !important; font-size:8px; font-weight:900; }
.history-lab-route-place-tag > span { color:#fff !important; }
.history-lab-route-choice { transition:transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.history-lab-route-choice:hover { transform:translateY(-1px); box-shadow:0 5px 14px rgba(0,0,0,.12); }
@media (max-width:1100px) {
  .history-lab-map-place-tag,.history-lab-route-place-tag { width:26px; min-width:26px; height:26px; display:grid; place-items:center; gap:0; padding:0; border-radius:50%; }
  .history-lab-map-place-tag > b,.history-lab-route-place-tag > b { flex:0 0 22px; width:22px; height:22px; border-radius:50%; }
  .history-lab-route-place-tag > b { background:#0b6536; color:#fff !important; font-size:9px; }
  .history-lab-map-place-tag > span,.history-lab-route-place-tag > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}

/* Zaman çizgisi, sıralama ve yorum kartları. */
.history-lab-sort-help { margin:0 0 10px; color:var(--hl-faint); font-size:10px; line-height:1.55; }
.history-lab-sort-list { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.history-lab-sort-item { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:58px; padding:7px 8px; border:1px solid var(--hl-line); border-radius:9px; background:var(--hl-panel); }
.history-lab-sort-item.is-dragging { opacity:.45; }
.history-lab-sort-grip { width:28px; height:32px; display:grid; place-items:center; border:1px solid var(--hl-line); border-radius:7px; color:var(--hl-faint); cursor:grab; font-size:15px; }
.history-lab-sort-label { color:var(--hl-ink); font-size:11px; line-height:1.45; }
.history-lab-sort-buttons { display:flex; gap:5px; }
.history-lab-sort-buttons button { width:44px; min-height:44px; padding:0; border:1px solid var(--hl-line); border-radius:7px; background:var(--hl-raised); color:var(--hl-accent); font-size:15px; cursor:pointer; touch-action:manipulation; }
.history-lab-sort-buttons button:disabled { color:var(--hl-faint); opacity:.45; cursor:default; }
.history-lab-sort-check { min-height:44px; margin-top:12px; padding:9px 15px; border:1px solid var(--hl-line-strong); border-radius:8px; background:rgba(57,255,136,.1); color:var(--hl-accent); font-size:11px; font-weight:800; cursor:pointer; }
.history-lab-sort-check:disabled { opacity:.55; cursor:default; }
.history-lab-timeline { position:relative; display:grid; gap:8px; margin:14px 0 17px; padding:0 0 0 13px; }
.history-lab-timeline::before { content:""; position:absolute; top:12px; bottom:12px; left:4px; width:2px; background:linear-gradient(var(--hl-accent),var(--hl-cyan)); opacity:.55; }
.history-lab-timeline-event { position:relative; display:grid; grid-template-columns:minmax(86px,.45fr) minmax(0,1fr); align-items:center; gap:10px; min-height:49px; padding:8px 10px; border:1px solid var(--hl-line); border-radius:8px; background:var(--hl-panel); text-align:left; cursor:pointer; }
.history-lab-timeline-event::before { content:""; position:absolute; left:-14px; top:50%; width:8px; height:8px; border:2px solid var(--hl-accent); border-radius:50%; background:var(--hl-panel); transform:translateY(-50%); }
.history-lab-timeline-event:hover,.history-lab-timeline-event.is-selected { border-color:var(--hl-line-strong); background:var(--hl-soft); }
.history-lab-timeline-event time { color:var(--hl-accent); font-size:10px; font-weight:850; font-variant-numeric:tabular-nums; }
.history-lab-timeline-event span { color:var(--hl-ink); font-size:11px; line-height:1.4; }
.history-lab-timeline-graphic { position:relative; min-height:112px; margin:15px 5px 17px; }
.history-lab-timeline-rail { position:absolute; left:7%; right:7%; top:48px; height:3px; border-radius:9px; background:linear-gradient(90deg,var(--hl-accent),var(--hl-cyan),var(--hl-blue)); opacity:.7; }
.history-lab-timeline-point { position:absolute; top:0; width:min(42%,210px); min-height:90px; padding:7px 9px 8px; border:1px solid var(--hl-line); border-radius:9px; background:var(--hl-panel); color:var(--hl-ink); text-align:left; cursor:pointer; }
.history-lab-timeline-point::after { content:""; position:absolute; left:50%; top:42px; width:13px; height:13px; border:3px solid var(--hl-accent); border-radius:50%; background:var(--hl-panel); transform:translateX(-50%); box-shadow:0 0 0 4px var(--hl-panel); }
.history-lab-timeline-point:hover,.history-lab-timeline-point.is-selected { border-color:var(--hl-accent); background:var(--hl-soft); }
.history-lab-timeline-point:disabled { cursor:default; }
.history-lab-timeline-point time { display:block; margin-bottom:25px; color:var(--hl-accent); font-size:10px; font-weight:850; }
.history-lab-timeline-point span { display:block; color:var(--hl-ink); font-size:10px; font-weight:700; line-height:1.35; }
.history-lab-compare-card p { margin:5px 0 0; color:var(--hl-faint); font-size:10px; line-height:1.5; }
.history-lab-clues { display:grid; gap:8px; margin:12px 0 16px; }
.history-lab-clue { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid var(--hl-line); border-radius:8px; background:var(--hl-panel); color:var(--hl-muted); font-size:11px; line-height:1.55; }
.history-lab-clue b { flex:0 0 auto; color:var(--hl-accent); font-size:10px; }
.history-lab-compare-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:12px 0; }
.history-lab-compare-card { padding:12px; border:1px solid var(--hl-line); border-radius:9px; background:var(--hl-panel); }
.history-lab-compare-card time { display:block; margin-bottom:5px; color:var(--hl-accent); font-size:10px; font-weight:850; }
.history-lab-compare-card strong { color:var(--hl-ink); font-size:11px; line-height:1.45; }

/* Tamamlama ekranı ve yanlış analizi. */
.history-lab-result { padding:clamp(18px,4vw,34px); border:1px solid var(--hl-line-strong); border-radius:12px; background:linear-gradient(135deg,rgba(57,255,136,.08),transparent 60%),var(--hl-raised); }
.history-lab-result-kicker { margin:0 0 7px; color:var(--hl-accent); font-size:10px; font-weight:850; letter-spacing:.14em; }
.history-lab-result h3 { margin:0; color:var(--hl-ink); font-size:clamp(24px,4vw,34px); letter-spacing:-.04em; }
.history-lab-result-score { margin:10px 0 0; color:var(--hl-muted); font-size:13px; }
.history-lab-result-score strong { color:var(--hl-accent); font-size:21px; }
.history-lab-result-actions { display:flex; flex-wrap:wrap; gap:9px; margin:18px 0 21px; }
.history-lab-result-actions button { min-height:44px; padding:9px 14px; border:1px solid var(--hl-line-strong); border-radius:8px; background:rgba(57,255,136,.1); color:var(--hl-accent); font-size:11px; font-weight:800; cursor:pointer; }
.history-lab-result-actions button.secondary { background:var(--hl-panel); color:var(--hl-muted); }
.history-lab-review { border-top:1px solid var(--hl-line); padding-top:15px; }
.history-lab-review > h4 { margin:0 0 10px; color:var(--hl-ink); font-size:14px; }
.history-lab-review-list { display:grid; gap:9px; }
.history-lab-review-item { padding:12px; border:1px solid var(--hl-line); border-radius:8px; background:var(--hl-panel); }
.history-lab-review-item h5 { margin:0 0 7px; color:var(--hl-ink); font-size:11px; line-height:1.5; }
.history-lab-review-item p { margin:4px 0; color:var(--hl-muted); font-size:10px; line-height:1.55; }
.history-lab-review-item strong { color:var(--hl-ink); }
.history-lab-review-item .history-lab-review-source { color:var(--hl-faint); }
.history-lab-review-empty { margin:0; color:var(--hl-muted); font-size:11px; }
.history-lab-empty { padding:28px; border:1px dashed var(--hl-line-strong); border-radius:12px; color:var(--hl-muted); text-align:center; font-size:12px; }

.history-lab-source { display:grid; grid-template-columns:46px minmax(0,1fr); gap:18px; align-items:start; padding-top:32px; padding-bottom:52px; border-top:1px solid var(--hl-line); }
.history-lab-source-icon { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--hl-line-strong); border-radius:12px; color:var(--hl-accent); font-size:22px; }
.history-lab-source h2 { font-size:clamp(23px,3.2vw,34px); }
.history-lab-source p:not(.history-lab-kicker) { max-width:920px; margin:13px 0 0; color:var(--hl-muted); font-size:12px; line-height:1.75; }
.history-lab-source-links { display:flex; flex-wrap:wrap; gap:12px 22px; }
.history-lab-source-links a { color:var(--hl-accent); font-size:11px; font-weight:700; }
.history-lab-noscript { margin-top:20px; margin-bottom:24px; padding:14px; border:1px solid #a73d34; border-radius:9px; color:var(--hl-red); }
.history-lab-page .site-footer { margin-top:10px; }

/* Light theme: explicit contrast over the shared page-wide text palette. */
html[data-theme="light"] .history-lab-page .history-lab-hero h1,
html[data-theme="light"] .history-lab-page .history-lab-section-heading h2,
html[data-theme="light"] .history-lab-page .history-lab-source h2,
html[data-theme="light"] .history-lab-page .history-lab-card h3,
html[data-theme="light"] .history-lab-page .history-lab-stage-title,
html[data-theme="light"] .history-lab-page .history-lab-question-title,
html[data-theme="light"] .history-lab-page .history-lab-result h3,
html[data-theme="light"] .history-lab-page .history-lab-review-item h5 { color:#17231b !important; }
html[data-theme="light"] .history-lab-page .history-lab-eyebrow,
html[data-theme="light"] .history-lab-page .history-lab-kicker,
html[data-theme="light"] .history-lab-page .history-lab-status,
html[data-theme="light"] .history-lab-page .history-lab-dashboard-top,
html[data-theme="light"] .history-lab-page .history-lab-dashboard-foot { color:#53635a !important; }
html[data-theme="light"] .history-lab-page .history-lab-hero h1 span,
html[data-theme="light"] .history-lab-page .history-lab-section-heading h2 span,
html[data-theme="light"] .history-lab-page .history-lab-source h2 span { background-image:linear-gradient(92deg,#08723b,#087b77 68%,#315a9b) !important; color:transparent !important; -webkit-text-fill-color:transparent; }
html[data-theme="light"] .history-lab-page .history-lab-feedback-icon { color:#08723b !important; }
html[data-theme="light"] .history-lab-page .history-lab-feedback.is-incorrect .history-lab-feedback-icon { color:#a73d34 !important; }
html[data-theme="light"] .history-lab-page .history-lab-next { color:#06170c !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-pin { color:#0a582e !important; }
html[data-theme="light"] .history-lab-page .history-lab-route-label { fill:#fff !important; }
html[data-theme="light"] .history-lab-page .history-lab-option,
html[data-theme="light"] .history-lab-page .history-lab-map-choice,
html[data-theme="light"] .history-lab-page .history-lab-timeline-event span,
html[data-theme="light"] .history-lab-page .history-lab-compare-card strong { color:#17231b !important; }
/* Keep every small secondary label and interactive state readable in daylight mode. */
html[data-theme="light"] .history-lab-page :is(
  .history-lab-lead,.history-lab-scope,.history-lab-intro p,.history-lab-card-description,
  .history-lab-stage-subtitle,.history-lab-question-context,.history-lab-feedback-copy,
  .history-lab-stage-score,.history-lab-map-intro,.history-lab-map-note,.history-lab-sort-help,
  .history-lab-sort-label,.history-lab-clue,.history-lab-compare-card p,
  .history-lab-review-item p,.history-lab-review-empty,.history-lab-source p
) { color:#405047 !important; }
html[data-theme="light"] .history-lab-page :is(
  .history-lab-dashboard-top,.history-lab-dashboard-foot,.history-lab-card-number,
  .history-lab-card-state,.history-lab-card-score,.history-lab-sidebar-label,
  .history-lab-category-count,.history-lab-heading-meta,.history-lab-stage-progress-top,
  .history-lab-stage-counter,.history-lab-question-source,.history-lab-map-place-list li,
  .history-lab-review-source
) { color:#526359 !important; }
html[data-theme="light"] .history-lab-page .history-lab-category-button { color:#405047 !important; }
html[data-theme="light"] .history-lab-page .history-lab-category-button[aria-pressed="true"] { color:#17231b !important; }
html[data-theme="light"] .history-lab-page :is(
  .history-lab-option,.history-lab-route-choice,.history-lab-map-choice,
  .history-lab-stage-back,.history-lab-sort-buttons button,.history-lab-sort-check,
  .history-lab-result-actions button
) { color:#17231b !important; }
html[data-theme="light"] .history-lab-page :is(.history-lab-option-key,.history-lab-text-button,.history-lab-launch) { color:#075c33 !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-pin { color:#0a582e !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-pin.is-correct { color:#04170c !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-pin.is-wrong { color:#30110e !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-place-tag > b { color:#fff !important; }
html[data-theme="light"] .history-lab-page .history-lab-map-place-tag > span { color:#102719 !important; }
html[data-theme="light"] .history-lab-page .history-lab-route-place-tag,
html[data-theme="light"] .history-lab-page .history-lab-route-place-tag > b,
html[data-theme="light"] .history-lab-page .history-lab-route-place-tag > span { color:#fff !important; }
html[data-theme="light"] .history-lab-page .history-lab-next { color:#06170c !important; }

/* Small, single-pass motion gives feedback without drawing attention away from the task. */
@keyframes hl-enter {
  from { opacity:0; transform:translateY(7px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes hl-feedback-enter {
  from { opacity:0; transform:translateY(5px) scale(.995); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes hl-select-once {
  0% { transform:scale(.985); }
  70% { transform:scale(1.012); }
  100% { transform:scale(1); }
}
@keyframes hl-tag-feedback {
  from { opacity:.84; filter:brightness(.98); }
  to { opacity:1; filter:brightness(1); }
}
.history-lab-card { animation:hl-enter .24s ease-out both; }
.history-lab-stage-head,.history-lab-question-wrap,.history-lab-result { animation:hl-enter .24s ease-out both; }
.history-lab-feedback:not([hidden]) { animation:hl-feedback-enter .24s ease-out both; }
.history-lab-option,.history-lab-category-button,.history-lab-launch,.history-lab-stage-back,
.history-lab-next,.history-lab-sort-check,.history-lab-result-actions button,
.history-lab-map-choice,.history-lab-sort-buttons button {
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.history-lab-option:active,.history-lab-map-choice:active,.history-lab-route-choice:active,
.history-lab-sort-check:active,.history-lab-next:active,.history-lab-result-actions button:active { transform:scale(.985); }
.history-lab-option.is-selected { animation:hl-select-once .2s ease-out both; }
.history-lab-option.is-selected:disabled { opacity:1; }
.history-lab-feedback.is-correct { box-shadow:inset 3px 0 0 var(--hl-accent); }
.history-lab-feedback.is-incorrect { box-shadow:inset 3px 0 0 var(--hl-red); }
.history-lab-progress-track span { will-change:width; }
.history-lab-map-pin { transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease; }
.history-lab-map-pin:active { transform:translate(-50%,-50%) scale(.94); }
.history-lab-map-place-tag.is-correct,.history-lab-map-place-tag.is-wrong { animation:hl-tag-feedback .2s ease-out both; }
.history-lab-sort-item { transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background-color .16s ease; }
.history-lab-sort-item.is-dragging { opacity:.55; transform:scale(.985); }
.history-lab-sort-item.is-drop-target { border-color:var(--hl-accent); background:var(--hl-soft); box-shadow:0 0 0 3px rgba(57,255,136,.13); transform:translateY(-1px); }
.history-lab-sort-buttons button:hover:not(:disabled) { border-color:var(--hl-line-strong); background:var(--hl-soft); }
.history-lab-route-place-tag { transition:box-shadow .18s ease,transform .18s ease; }

@media (max-width: 960px) {
  .history-lab-hero-grid { grid-template-columns:minmax(0,1fr) minmax(260px,.72fr); gap:36px; }
  .history-lab-layout { grid-template-columns:minmax(0,1fr); }
  .history-lab-sidebar,.history-lab-workspace,.history-lab-category-nav { min-width:0; max-width:100%; }
  .history-lab-sidebar { position:static; padding:12px; }
  .history-lab-sidebar-label { margin-bottom:8px; }
  .history-lab-category-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .history-lab-category-button { grid-template-columns:28px 1fr; }
  .history-lab-category-button .category-count { display:none; }
  .history-lab-sidebar-note { display:none; }
}
@media (max-width: 680px) {
  .history-lab-page .container { width:min(calc(100% - 28px),1200px); }
  .history-lab-hero { padding:45px 0 42px; }
  .history-lab-hero::after { right:-110px; top:4%; width:200px; height:200px; }
  .history-lab-hero-grid { grid-template-columns:minmax(0,1fr); gap:30px; }
  .history-lab-hero-copy,.history-lab-dashboard { min-width:0; max-width:100%; }
  .history-lab-hero h1 { font-size:clamp(40px,12.5vw,69px); }
  .history-lab-lead { font-size:15px; }
  .history-lab-dashboard { padding:18px 19px 16px; }
  .history-lab-dashboard-score { margin:15px 0; }
  .history-lab-dashboard-score strong { font-size:54px; }
  .history-lab-dashboard-foot { gap:12px; font-size:8px; }
  .history-lab-intro { align-items:flex-start; gap:12px; padding-top:17px; padding-bottom:17px; }
  .history-lab-intro-marker { flex-basis:28px; width:28px; height:28px; }
  .history-lab-intro p { font-size:11px; }
  .history-lab-intro > a { display:none; }
  .history-lab-main { padding-top:42px; padding-bottom:50px; }
  .history-lab-section-heading { display:block; margin-bottom:20px; }
  .history-lab-heading-meta { justify-items:start; margin-top:12px; }
  .history-lab-category-nav { display:flex; overflow-x:auto; gap:7px; padding:0 0 3px; scrollbar-width:thin; }
  .history-lab-category-button { flex:0 0 auto; width:auto; min-height:42px; display:flex; gap:8px; padding:6px 10px; }
  .history-lab-category-button .category-symbol { width:25px; height:25px; }
  .history-lab-category-button .category-title { max-width:125px; font-size:10px; white-space:nowrap; }
  .history-lab-activity-list { grid-template-columns:1fr; gap:10px; }
  .history-lab-card { padding:15px; }
  .history-lab-card-description { min-height:0; }
  .history-lab-stage { padding:13px; }
  .history-lab-stage-head { gap:8px; flex-wrap:wrap; }
  .history-lab-stage-counter { min-width:68px; padding:7px 8px; }
  .history-lab-stage-subtitle { max-width:100%; }
  .history-lab-options { grid-template-columns:1fr; }
  .history-lab-option { min-height:48px; }
  .history-lab-stage-actions { align-items:flex-end; }
  .history-lab-next { min-width:116px; }
  .history-lab-map-pin { width:29px; min-width:29px; height:29px; min-height:29px; font-size:10px; }
  .history-lab-map-choice { min-width:56px; }
  .history-lab-map-place-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
  .history-lab-map-place-list li { min-height:39px; padding:5px 6px; font-size:10px; }
  .history-lab-route-place-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .history-lab-sort-item { grid-template-columns:25px minmax(0,1fr) auto; gap:6px; padding:6px; }
  .history-lab-sort-grip { width:24px; height:30px; }
  .history-lab-sort-label { font-size:10px; }
  .history-lab-sort-buttons { gap:3px; }
  .history-lab-sort-buttons button { width:44px; min-height:44px; }
  .history-lab-compare-pair { grid-template-columns:1fr; }
  .history-lab-source { grid-template-columns:34px minmax(0,1fr); gap:11px; padding-top:25px; padding-bottom:38px; }
  .history-lab-source-icon { width:32px; height:32px; border-radius:9px; font-size:17px; }
  .history-lab-source p:not(.history-lab-kicker) { font-size:11px; }
  .history-lab-page .footer-main { gap:18px; }
}
@media (prefers-reduced-motion: reduce) {
  .history-lab-page *, .history-lab-page *::before, .history-lab-page *::after {
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    transition-delay:0ms !important;
  }
}
