:root {
  color-scheme: dark;
  --bg: #111113;
  --panel: #171719;
  --border: #343034;
  --text: #f3eeea;
  --muted: #c1b6b4;
  --subtle: #a39a9a;
  --red: #f47770;
  --dark-red: #4e252a;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin:0; background:radial-gradient(ellipse at 36% -20%,#2b181d 0,transparent 50%),var(--bg); color:var(--text); }
a { color:inherit; }
button,input { font:inherit; }
button,summary { cursor:pointer; }
:focus-visible { outline:2px solid #ffaaa0; outline-offset:4px; }
.skip { position:absolute; left:1rem; top:-8rem; z-index:1; padding:1rem; background:var(--bg); }
.skip:focus { top:1rem; }
.top { border-bottom:1px solid var(--border); background:#111113e8; }
.top-inner { max-width:1260px; min-height:77px; margin:auto; padding:0 27px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.identity { display:flex; gap:13px; align-items:center; text-decoration:none; }
.identity b,.identity small { display:block; font-family:var(--mono); letter-spacing:.055em; }
.identity b { font-size:.83rem; }
.identity small { font-size:.72rem; color:var(--subtle); margin-top:5px; }
.mark { width:33px; height:33px; display:inline-grid; place-items:center; border:1px solid #7d423f; transform:rotate(45deg) scale(.78); }
.mark::before { content:''; width:11px; height:11px; background:var(--red); }
.status,.progress { font:.75rem var(--mono); letter-spacing:.06em; color:var(--muted); }
.status { display:flex; align-items:center; gap:9px; }
.dot { display:inline-block; width:7px; height:7px; flex:none; border-radius:50%; background:var(--red); box-shadow:0 0 10px #f4777066; }
.progress { display:grid; gap:8px; min-width:142px; }
.progress b { color:var(--text); }
progress { width:100%; height:3px; appearance:none; border:0; background:#393136; color:var(--red); }
progress::-webkit-progress-bar { background:#393136; }
progress::-webkit-progress-value { background:var(--red); }
progress::-moz-progress-bar { background:var(--red); }
.shell { max-width:1260px; padding:0 27px; margin:auto; }
.case-head { padding:44px 0 29px; }
.eyebrow { display:flex; gap:20px; align-items:center; color:var(--subtle); font:.78rem var(--mono); letter-spacing:.13em; }
.eyebrow span:first-child { color:#ffa19a; border:1px solid #643337; background:#2e1d20; padding:6px 9px; }
h1 { margin:11px 0 6px; font-family:Georgia,'Times New Roman',serif; font-size:clamp(3.1rem,7.1vw,6.25rem); font-weight:600; line-height:1; letter-spacing:-.058em; }
h1 span { color:var(--red); }
.case-head p { margin:12px 0 0; color:var(--muted); line-height:1.55; }
.case-map { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:13px; padding:12px 15px; border:1px solid var(--border); background:#151416; margin-bottom:19px; }
.case-map > div { display:flex; gap:12px; align-items:center; }
.case-map > div span { font:.73rem var(--mono); letter-spacing:.1em; color:var(--subtle); }
.case-map strong { font-size:.89rem; font-weight:600; }
.file-nav { display:flex; flex-wrap:wrap; gap:4px; }
.file-nav a,.file-nav span { padding:6px 5px; min-width:27px; text-align:center; font:.72rem var(--mono); text-decoration:none; border:1px solid transparent; }
.file-nav span { color:#a19898; }
.file-nav a { border-color:#4c4144; color:#ede2df; }
.file-nav a[aria-current],.file-nav a:hover { border-color:#834744; color:#ffe0d9; background:#462226; }
.workbench { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(0,1fr); gap:20px; align-items:start; }
.primary,.side { display:grid; gap:18px; min-width:0; }
.photo { margin:0; border:1px solid var(--border); background:#121012; }
.photo img { display:block; width:100%; height:auto; aspect-ratio:1.74; object-fit:cover; object-position:center 17%; }
.photo figcaption { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 13px; font:.74rem var(--mono); color:var(--muted); }
.photo figcaption span:last-child { white-space:nowrap; color:#f49991; }
.panel { border:1px solid var(--border); background:var(--panel); }
.panel-heading { display:flex; gap:9px; justify-content:space-between; align-items:center; padding:12px 15px; border-bottom:1px solid var(--border); background:#1b191b; }
.panel-heading h2,.panel-heading span { font:.76rem var(--mono); letter-spacing:.075em; text-transform:uppercase; margin:0; }
.panel-heading h2 { color:#f8ebe7; }
.panel-heading span { color:var(--subtle); }
.message { padding:19px 19px 21px; }
.from { display:flex; align-items:center; gap:8px; font:.81rem var(--mono); color:#ffaaa0; }
blockquote { margin:12px 0 0; font:italic 1.19rem/1.47 Georgia,serif; color:#f3e3df; }
.previous { border-top:1px solid var(--border); color:var(--muted); padding:12px 17px; font-size:.84rem; line-height:1.5; }
.previous span { font:.72rem var(--mono); color:#f49991; margin-right:6px; }
.task { padding:18px 18px 16px; }
.task h3 { margin:0; font-size:1.4rem; font-weight:620; letter-spacing:-.025em; }
.task p { margin:.45rem 0 1rem; color:var(--muted); line-height:1.55; }
.task label { display:block; margin-bottom:6px; color:#e9dbd7; font:.82rem var(--mono); }
.answer-row { display:flex; align-items:stretch; gap:8px; }
input { padding:11px 12px; width:100%; min-width:0; border:1px solid #54474b; color:var(--text); background:#121113; border-radius:0; font-family:var(--mono); }
input::placeholder { color:#a89b9d; }
.submit { display:inline-block; text-decoration:none; border:1px solid #ff9f96; padding:10px 14px; background:#f18a80; color:#220d0d; font-weight:720; white-space:nowrap; }
.submit:hover { background:#ffaaa1; }
.task .error { color:#ff9a91; margin:.5rem 0 0; }
.evidence-tabs { display:flex; flex-wrap:wrap; gap:7px; padding:12px; }
.evidence-tabs button { border:1px solid #484044; background:#1b191c; color:#d4c8c6; padding:8px 9px; font:.78rem var(--mono); min-height:36px; text-align:left; }
.evidence-tabs button[aria-selected=true] { border-color:#8e4e4d; background:#332024; color:#ffe7e1; }
.sheets { padding:0 12px 12px; }
.evidence-sheet { padding:14px 15px; margin-bottom:8px; background:#221e1e; border-left:2px solid #a15c56; }
.evidence-sheet:last-child { margin-bottom:0; }
.evidence-sheet h3 { margin:0 0 9px; font-size:.91rem; }
.evidence-sheet pre { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; color:#e6d9d4; font:.89rem/1.6 var(--mono); }
.end-lines { padding:12px 18px; }
.end-lines p:last-child { color:#ffaaa0; font-family:Georgia,serif; font-style:italic; }
.finale img { object-position:center 49%; }
.task blockquote { margin:0 0 14px; }
footer { display:flex; flex-wrap:wrap; gap:8px 18px; justify-content:space-between; padding:20px 0; margin-top:22px; border-top:1px solid var(--border); color:var(--subtle); font:.72rem var(--mono); letter-spacing:.045em; }
@media(max-width:820px) {
  .workbench { grid-template-columns:1fr; }
  .primary,.side { display:contents; }
  .photo { order:0; }
  .narrative { order:1; }
  .evidence { order:2; }
  .challenge { order:3; }
  .file-nav a,.file-nav span { min-width:31px; padding:7px 5px; }
}
@media(max-width:470px) {
  .top-inner,.shell { padding-inline:14px; }
  .top-inner { min-height:65px; }
  .status { display:none; }
  .progress { min-width:90px; }
  .case-head { padding:32px 0 21px; }
  .eyebrow { gap:10px; letter-spacing:.075em; }
  .case-map { padding:10px; }
  .photo figcaption { font-size:.68rem; }
  .evidence-tabs { gap:5px; }
}

.site-nav { display:flex; gap:22px; align-items:center; font-size:.92rem; }
.site-nav a,.current-player { text-decoration:none; color:var(--muted); }
.site-nav a:hover,.current-player:hover { color:var(--text); }
.current-player { border:1px solid #684140; padding:8px 12px; font-size:.84rem; color:#ffb1aa; white-space:nowrap; }
.landing-hero { position:relative; min-height:505px; display:grid; grid-template-columns:1fr minmax(195px,27%); align-items:end; gap:28px; padding:35px; margin-top:24px; isolation:isolate; border:1px solid #4a2f30; overflow:hidden; background:#191315; }
.landing-photo { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#151216 12%,#171114e6 35%,#16101426 79%),linear-gradient(0deg,#111113 2%,transparent 68%),url('/assets/recovered.webp') center 36%/cover no-repeat; }
.hero-copy { align-self:center; }
.landing-hero h1 { font-size:clamp(4.2rem,9.6vw,8.65rem); margin:.14em 0 .16em; line-height:.87; }
.hero-lead { font-size:clamp(1rem,2vw,1.28rem); color:#e3d1cd; max-width:29ch; line-height:1.5; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:24px; }
.outline { display:inline-block; border:1px solid #685153; padding:10px 13px; font:inherit; color:#f1dedb; background:#21181b; text-decoration:none; }
.outline:hover { border-color:#e5877e; }
.launch-card { display:grid; gap:12px; align-content:center; padding:17px; background:#181416f2; border:1px solid #6c4345; }
.launch-state,.kicker { font:.74rem var(--mono); letter-spacing:.09em; color:#ffa79e; }
.launch-state { display:flex; gap:8px; align-items:center; }
.launch-card strong { line-height:1.4; }
.countdown { font:.85rem var(--mono); color:#e7c6bf; }
.countdown:empty { display:none; }
.intro-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }
.intro { padding:22px; }
.intro h2,.submission h2 { margin:8px 0 10px; font-size:1.48rem; letter-spacing:-.025em; }
.intro p,.intro li { color:var(--muted); line-height:1.55; }
.rules { margin:0; padding-left:1.3rem; }
.rules li+li { margin-top:8px; }
.event-heading { margin:36px 0 28px; }
.event-heading h1 { font-size:clamp(3rem,6.5vw,5.8rem); }
.event-heading p { color:var(--muted); }
.account-form { display:grid; gap:9px; }
.account-form label { font:.84rem var(--mono); }
.account-form .submit { justify-self:start; }
.account-form p { margin:0; }
.account-key { max-width:630px; }
.key-box { display:block; padding:12px; margin:12px 0; background:#0f0e10; border:1px solid #6d4747; color:#ffaaa0; overflow-wrap:anywhere; user-select:all; }
.board-layout { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(245px,1fr); align-items:start; gap:22px; }
.challenge-group + .challenge-group { margin-top:21px; }
.challenge-group h2 { margin:0 0 9px; font:.86rem var(--mono); color:#e7d5d2; }
.challenge-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.challenge-card { min-height:117px; display:grid; align-content:start; gap:8px; padding:11px; background:#1a171a; border:1px solid #423438; text-decoration:none; }
.challenge-card span,.challenge-card small { font:.73rem var(--mono); color:#c6b6b7; }
.challenge-card strong { font-size:.89rem; }
.challenge-card.active { background:#2c191d; border-color:#a55a58; }
.challenge-card.active small { color:#ffaaa0; }
.challenge-card.solved small,.success { color:#a7d7ac; }
.challenge-card.locked { color:#b0a6a7; background:#161416; }
.challenge-card.locked small { color:#a49a9d; }
.challenge-card[href]:hover { border-color:#fa9f97; }
.submission { position:sticky; top:14px; }
.submission .text-link { display:inline-block; margin-top:18px; color:#f7b2aa; }
.ranking { overflow:hidden; }
.table-wrap { overflow:auto; }
.ranking table { border-collapse:collapse; width:100%; text-align:left; }
.ranking th,.ranking td { padding:13px 18px; white-space:nowrap; border-bottom:1px solid var(--border); }
.ranking thead { background:#281c20; color:#ffc0b7; font-family:var(--mono); }
.ranking tr:last-child td,.ranking tr:last-child th { border-bottom:0; }
.ranking .my-rank { background:#312024; }
.empty-ranking { margin:20px; color:var(--muted); }
.earned .submit,.account-key .submit { margin-top:5px; }
.error { color:#ff9a91!important; }
@media(max-width:820px) {
  .landing-hero { gap:15px; min-height:410px; padding:22px; }
  .board-layout { grid-template-columns:1fr; }
  .submission { position:static; grid-row:1; }
}
@media(max-width:580px) {
  .top-inner { min-height:auto; padding-block:12px; flex-wrap:wrap; }
  .site-nav { order:1; flex-basis:100%; justify-content:space-between; gap:10px; border-top:1px solid var(--border); padding-top:9px; }
  .landing-hero { grid-template-columns:1fr; padding:18px; align-items:start; }
  .landing-hero h1 { font-size:clamp(3.4rem,14vw,5.1rem); }
  .landing-photo { background:linear-gradient(90deg,#151216d9 6%,#17111455 100%),linear-gradient(0deg,#111113 2%,transparent 68%),url('/assets/recovered.webp') center 36%/cover no-repeat; }
  .launch-card { width:max-content; max-width:100%; }
  .intro-grid { grid-template-columns:1fr; }
  .challenge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ranking th,.ranking td { padding:10px 9px; font-size:.85rem; }
}

.case-event { margin-bottom:22px; }
.case-event h1 { font-size:clamp(2.8rem,6.3vw,5.35rem); }
.artifact-list { display:grid; gap:8px; margin:12px 0; }
.artifact { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; border:1px solid #68474a; background:#211a1d; padding:10px 11px; text-decoration:none; font-family:var(--mono); font-size:.84rem; }
.artifact:hover { border-color:var(--red); }
.artifact small { color:#d5a9a4; font-size:.76rem; }
.delivery { margin-top:15px; }
.trail { max-width:780px; }
.trail video { display:block; width:min(100%,540px); max-height:65vh; background:#111; }
.trail li + li { margin-top:.55rem; }

.station-panel { padding:14px; border:1px solid #3d3336; background:#171417; }
.station-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.station-title h2 { margin:0 0 5px; font:600 1.2rem Georgia,serif; }
.station-title p { margin:0; color:var(--muted); font-size:.88rem; }
.station-title span { width:9px; height:9px; flex:none; border-radius:2px; background:var(--station); }
.lab { --station:#f47770; }
.web { --station:#84cbbb; }
.vault { --station:#d9b479; }
.station-panel .challenge-card.active { border-color:var(--station); }
.station-panel .challenge-card.active small,.case-event .kicker { color:var(--station); }
.case-event { padding-left:16px; border-left:2px solid var(--station); }
.case-map .text-link { color:#ffc4be; font-size:.88rem; }

/* Son Kare: bölüm panoları, kişiler, devam notu */
.chapter-panel { padding:14px; border:1px solid #4a3236; background:#171417; }
.chapter-panel .station-title span { width:auto; height:auto; padding:3px 7px; border-radius:2px; background:#2c191d; border:1px solid #a55a58; font:.74rem var(--mono); color:#ffaaa0; }
.chapter-panel.chapter-locked { opacity:.72; }
.chapter-panel.chapter-locked .station-title span { background:#1a171a; border-color:#423438; color:#a49a9d; }
.chapter-panel .station-title p { max-width:62ch; line-height:1.5; }
.cast { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:9px; }
.cast li { display:grid; gap:2px; padding-left:11px; border-left:2px solid #6c4345; }
.cast strong { font-size:.92rem; }
.cast span { color:var(--muted); font-size:.85rem; }
.sequel { margin:14px 0 0; padding:12px; border:1px dashed #a55a58; color:#ffc4be; line-height:1.5; }
.trail table { width:100%; border-collapse:collapse; font-size:.86rem; }
.trail th,.trail td { padding:7px 8px; border-bottom:1px solid #3d3336; text-align:left; }
.chapter-panel + .chapter-panel { margin-top:21px; }
.chapter-fresh { border-color:#fa9f97; box-shadow:0 0 0 1px #fa9f97 inset; }
.account-box { display:flex; align-items:center; gap:8px; }
.account-box form { margin:0; }
.logout { padding:6px 9px; background:none; border:1px solid #423438; color:#c6b6b7; font:.78rem var(--mono); cursor:pointer; }
.logout:hover { border-color:#fa9f97; color:#ffaaa0; }

/* Yönetim paneli */
.admin-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.admin-stat { display:grid; gap:4px; padding:13px; background:#1a171a; border:1px solid #423438; }
.admin-stat strong { font:600 1.7rem Georgia,serif; color:#ffaaa0; }
.admin-stat span { font:.74rem var(--mono); color:#c6b6b7; }
.admin-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:18px; align-items:start; }
.panel.ranking + .panel.ranking, .admin-grid + .panel.ranking { margin-top:18px; }
.panel.ranking h2 { margin:0; padding:12px 14px 10px; font:600 1.1rem Georgia,serif; }
.admin-row { opacity:.6; }
@media (max-width:900px) { .admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-grid { grid-template-columns:1fr; } }

/* First blood */
.first-blood { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:18px 0 0; padding:16px 18px; background:linear-gradient(90deg,#5a0f14,#2c191d); border:1px solid #e0464f; animation:blood-in .6s ease-out; }
.first-blood strong { font:700 1.5rem Georgia,serif; letter-spacing:.08em; color:#ff6b6b; text-shadow:0 0 18px #ff3b3b88; }
.first-blood span { flex:1 1 300px; color:#f3e3df; }
.first-blood [data-play-blood] { display:none; }
.first-blood.needs-click [data-play-blood] { display:inline-flex; }
.blood-tag { padding:1px 5px; font:.68rem var(--mono); color:#fff; background:#b3242c; }
.admin-empty { padding:0 14px 14px; }
@keyframes blood-in { from { transform:scale(.97); opacity:0; } to { transform:none; opacity:1; } }
.live-badge { display:inline-flex; align-items:center; gap:8px; margin-top:6px; font:.78rem var(--mono); color:#ffaaa0; }
.live-badge .dot { width:8px; height:8px; border-radius:50%; background:#ff5b5b; animation:live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity:.25; } }
.subtitle-switch { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0; }
.subtitle-switch span { font:.8rem var(--mono); }
.subtitle-switch button { padding:6px 10px; font-size:.82rem; cursor:pointer; }
.subtitle-switch button.selected { background:#345985; border-color:#345985; color:#fff; }

/* Yarışma durumu kontrolü */
.ctf-control { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; padding:18px; margin-bottom:18px; border-width:2px; }
.ctf-control h2 { margin:4px 0 6px; font:600 1.7rem Georgia,serif; }
.ctf-control p { margin:0; color:var(--muted); max-width:70ch; }
.ctf-control p.success { margin-top:8px; color:#a7d7ac; }
.ctf-control form { margin:0; }
.state-acik { border-color:#4f9a5a; }
.state-acik h2 { color:#a7d7ac; }
.state-kapali h2, .state-durduruldu h2 { color:#ffaaa0; }
.ctf-control .start { background:#4f9a5a; border-color:#4f9a5a; color:#fff; }
.ctf-control .stop { background:#b3242c; border-color:#b3242c; color:#fff; }

/* Kayıtlar, çevrimiçi, bitiş */
.ctf-actions { display:grid; gap:12px; justify-items:end; }
.end-form { display:grid; gap:6px; }
.end-form label { font:.78rem var(--mono); }
.end-form small { color:var(--muted); max-width:42ch; }
.end-form input { color-scheme:dark; }
.frozen-note { margin-top:8px !important; color:#ffc4be !important; }
.empty-ranking.frozen { color:#ffc4be; font-size:1.05rem; }
.online-tag { padding:1px 5px; font:.66rem var(--mono); color:#0f2a14; background:#a7d7ac; }
.online-list { list-style:none; margin:0; padding:0 14px 14px; display:grid; gap:6px; }
.online-list small { color:var(--muted); }
.chips { display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 12px; }
.chip { padding:4px 9px; border:1px solid #423438; font:.74rem var(--mono); color:#c6b6b7; text-decoration:none; }
.chip.active, .chip:hover { border-color:#fa9f97; color:#ffaaa0; }
.event-giris_hatali td, .event-flag_yanlis td { color:#ffb0a8; }
.event-flag_dogru td { color:#a7d7ac; }
.visit-line { margin:0; padding:0 14px 14px; color:var(--muted); }
.visit-line b { color:#ffaaa0; }


/* Sıfırlama */
.danger-zone { margin-top:18px; padding:16px; border-color:#7a2a2f; }
.danger-zone h2 { margin:0 0 6px; font:600 1.1rem Georgia,serif; color:#ffaaa0; }
.danger-zone p { margin:0 0 12px; color:var(--muted); }
.danger-zone > p:last-child { margin:12px 0 0; }
.danger-forms { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.danger-forms form, form.danger-forms { display:grid; gap:6px; }
.danger-forms small { color:var(--muted); }
.danger-zone .stop { background:#b3242c; border-color:#b3242c; color:#fff; }
.danger-zone button[disabled], .danger-zone input[disabled] { opacity:.45; cursor:not-allowed; }
.inline-form { margin:0; }
.inline-form button { padding:4px 10px; font-size:.8rem; cursor:pointer; }
.admin-add { padding:12px 14px 14px; }
.admin-note { padding:0 14px; }

.station-theme .shell { width:min(100% - 36px,1200px); padding:0; }
.station-theme h1 { letter-spacing:0; margin:0; }
.station-theme footer { margin-top:26px; }
.station-theme .delivery { margin-top:16px; }
.station-theme .trail { max-width:820px; padding:18px 22px; }
.station-theme .trail-heading { margin:22px 0 14px; }
.station-theme .trail-heading > span { font: .75rem var(--mono); }
.station-theme .trail-heading h1 { margin-top:5px; }
.station-theme .station-gateway { margin:30px auto; padding:26px; max-width:760px; }
.station-theme .station-gateway p { max-width:55ch; }

body.station-web {
  color-scheme:light; --text:#18253d; --muted:#344867; --subtle:#455980; --border:#a4b4cc;
  --red:#225b91; background:#d9e1ee; color:var(--text); font-family:Verdana,Tahoma,sans-serif;
}
.forum-head { width:min(100% - 36px,1200px); margin:14px auto 0; border:1px solid #546d94; background:#f1f4fa; }
.forum-head > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 17px; padding:13px 16px; color:#fff; background:linear-gradient(#4773a4,#214574); }
.forum-head > div a { color:white; text-decoration:none; font:bold 1.73rem Georgia,serif; }
.forum-head > div small { color:#f0f6ff; font-size:.85rem; }
.forum-head nav { display:flex; flex-wrap:wrap; gap:8px 18px; padding:8px 13px; background:#edf2f8; font-size:.82rem; color:#274e7b; }
.forum-head nav span { margin-left:auto; color:#4d6081; }
.forum-breadcrumb { padding:13px 1px; color:#29486d; font-size:.84rem; line-height:1.5; }
.forum-thread { border:1px solid #758caf; }
.forum-thread > header { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:7px 12px; background:linear-gradient(#4a7099,#335780); color:white; }
.forum-thread h1 { font:bold 1.14rem/1.35 Verdana,sans-serif; }
.forum-thread header span { white-space:nowrap; font-size:.75rem; }
.forum-post { display:grid; grid-template-columns:155px minmax(0,1fr); background:#f7f8fc; border-top:1px solid #9fb0cb; }
.forum-post aside { display:grid; gap:7px; align-content:start; border-right:1px solid #b3c1d5; padding:15px 12px; background:#e2e9f4; overflow-wrap:anywhere; }
.forum-post aside small { color:#4a5970; }
.forum-post > div { padding:13px 16px 16px; min-width:0; }
.forum-avatar { display:grid; place-items:center; width:43px; height:43px; background:#315480; color:#fff; border:2px ridge #b9d0eb; font: bold 1.2rem Georgia,serif; }
.forum-avatar.forum-admin { color:#243b5d; background:#c3d5eb; }
.forum-time { display:block; color:#486080; font-size:.76rem; border-bottom:1px solid #cdd7e6; padding-bottom:6px; }
.forum-post p { font-size:.98rem; line-height:1.6; margin:12px 0; }
.forum-attachment { max-width:425px; }
.station-web .photo { background:#f8faff; border:1px solid #98a9c4; }
.station-web .photo img { aspect-ratio:2; }
.station-web .photo figcaption { font-size:.73rem; }
.station-web .photo figcaption span:last-child { color:#345985; }
.station-web .submit { background:linear-gradient(#fdfefe,#d3e0ef); border:1px solid #6d89b0; color:#173d68; font-weight:700; }
.station-web .submit:hover { background:#c5d9f1; }
.station-web .artifact { background:#e9eff8; border:1px solid #9aafcb; color:#173c66; }
.station-web .artifact small { color:#39587c; }
.station-web .artifact:hover { border-color:#2c5c92; }
.station-web .trail-heading h1,.station-web .station-gateway h1 { font:bold 1.65rem Georgia,serif; color:#1e4a78; }
.station-web .trail,.station-web .station-gateway { background:#f6f8fc; border:1px solid #8298b6; }
.station-web .trail p { line-height:1.55; }

body.station-vault {
  color-scheme:light; --text:#17322e; --muted:#3e5850; --subtle:#546b62; --border:#aabeb5;
  --red:#245d4f; background:#e8eeeb; color:var(--text); font-family:system-ui,sans-serif;
}
.registry-head { background:#103d34; color:#f1f7f4; min-height:72px; padding:10px max(18px,calc((100% - 1200px)/2)); display:flex; align-items:center; justify-content:space-between; gap:15px; }
.registry-head a { font-size:.9rem; white-space:nowrap; }
.registry-head a:first-child { display:flex; gap:10px; align-items:center; text-decoration:none; }
.registry-head a:first-child span { display:grid; place-items:center; width:37px; height:37px; background:#f3f9f4; color:#15483e; font:bold 1rem var(--mono); }
.registry-head b { font-size:1.21rem; }
.registry-head small { display:block; font:.65rem var(--mono); letter-spacing:.075em; }
.registry-layout { display:grid; grid-template-columns:190px minmax(0,1fr); border:1px solid #b2c5bb; background:#fcfdfc; margin-top:18px; }
.registry-rail { padding:18px 13px; background:#dce8e2; border-right:1px solid #b4c8bf; }
.registry-rail h2 { margin:0 0 11px; font:.82rem var(--mono); text-transform:uppercase; }
.registry-rail ul { margin:0; padding:0; list-style:none; }
.registry-rail a { display:block; padding:8px 6px; border-bottom:1px solid #bacdc4; text-decoration:none; color:#1e4d43; font-size:.9rem; }
.registry-rail a[aria-current] { color:#fff; background:#2f6355; }
.registry-title { padding:15px 20px; border-bottom:1px solid #b4c8bf; }
.registry-title span,.registry-fields dt { font:.74rem var(--mono); color:#436456; text-transform:uppercase; }
.registry-title h1 { font:600 clamp(1.7rem,4vw,2.65rem) system-ui,sans-serif; margin-top:4px; }
.registry-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; background:#f1f6f3; }
.registry-fields div { padding:10px 12px; border-bottom:1px solid #bacdc4; border-right:1px solid #bacdc4; }
.registry-fields div:last-child { border-right:0; }
.registry-fields dd { margin:4px 0 0; font-weight:600; overflow-wrap:anywhere; }
.registry-note,.registry-evidence { padding:15px 20px; }
.registry-note h2,.registry-evidence h2 { margin:0; font-size:1.18rem; }
.registry-note p,.registry-evidence p { line-height:1.55; }
.registry-note { border-bottom:1px solid #bacdc4; }
.registry-note .photo { max-width:350px; }
.station-vault .photo { background:#dae8df; border-color:#a4b9ac; }
.station-vault .photo img { aspect-ratio:2.6; }
.station-vault .photo figcaption { padding:7px; }
.station-vault .photo figcaption span:last-child { color:#26554b; }
.station-vault .artifact { background:#f1f6f3; color:#164b3e; border-color:#a5baad; }
.station-vault .artifact small { color:#345c4f; }
.station-vault .artifact:hover { border-color:#215b4b; }
.station-vault .submit { background:#256153; border-color:#174c40; color:white; }
.station-vault .submit:hover { background:#174c40; }
.station-vault .trail-heading h1,.station-vault .station-gateway h1 { font:600 1.8rem system-ui,sans-serif; }
.station-vault .trail,.station-vault .station-gateway { background:#fcfdfc; border:1px solid #97b0a3; }

body.station-lab {
  --text:#f5e6d8; --muted:#dbc7be; --subtle:#bba59c; --border:#533d3a;
  --red:#ff9e89; background:#190f11; color:var(--text);
}
.darkroom-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; background:#110d0e; padding:14px max(18px,calc((100% - 1200px)/2)); border-bottom:1px solid #69413c; font:.78rem var(--mono); color:#ffe1d6; }
.darkroom-head a:first-child { font: bold 1.24rem Georgia,serif; text-decoration:none; }
.photo-file { padding-top:16px; }
.photo-file header span,.photo-note span,.negative-paper > span { color:#efad9c; font:.78rem var(--mono); letter-spacing:.08em; }
.photo-file header h1 { margin:4px 0 12px; font:600 clamp(2.3rem,6vw,4.5rem)/1 Georgia,serif; }
.photo-file-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:17px; align-items:start; }
.contact-print { background:#100c0d; border:1px solid #6c4b44; padding:12px 9px; position:relative; }
.contact-print::before,.contact-print::after { content:''; display:block; height:6px; background:repeating-linear-gradient(90deg,#8d6958 0 9px,transparent 9px 16px); opacity:.55; }
.contact-print .photo { margin:7px 0; border-color:#4f322f; }
.contact-print .photo img { aspect-ratio:1.35; object-position:center 38%; }
.photo-note,.negative-paper { background:#27171a; border:1px solid #63443d; padding:15px; }
.photo-note { margin-bottom:12px; }
.photo-note p { font:italic 1.12rem/1.5 Georgia,serif; margin:.65rem 0 0; }
.negative-paper p { font-size:1rem; line-height:1.6; margin:.65rem 0; }
.station-lab .trail,.station-lab .station-gateway { border:1px solid #775148; background:#24181a; }
.station-lab .trail-heading h1,.station-lab .station-gateway h1 { font:600 2.1rem Georgia,serif; }

.station-theme :focus-visible { outline:2px solid var(--red); outline-offset:4px; }
@media(max-width:730px) {
  .photo-file-grid,.registry-layout { grid-template-columns:1fr; }
  .registry-rail { border-right:0; border-bottom:1px solid #b4c8bf; }
  .registry-rail ul { display:flex; flex-wrap:wrap; gap:5px; }
  .registry-rail a { border:1px solid #a1b8ad; }
  .registry-fields { grid-template-columns:1fr 1fr; }
}
@media(max-width:490px) {
  .station-theme .shell,.forum-head { width:calc(100% - 22px); }
  .forum-post { grid-template-columns:1fr; }
  .forum-post aside { grid-template-columns:auto 1fr; align-items:center; border-right:0; border-bottom:1px solid #bac9df; padding:6px 10px; }
  .forum-post aside small { grid-column:2; }
  .forum-avatar { grid-row:span 2; height:34px; width:34px; }
  .registry-head a:last-child { white-space:normal; text-align:right; }
  .darkroom-head span { order:3; flex-basis:100%; }
}

/* Sorgu ve forum eklerindeki alıntılar açık zeminde okunur olsun */
.station-web .trail blockquote { color:#1d2d44; background:#eef3fa; border-left:3px solid #345985; padding:10px 14px; font-style:italic; }
.station-vault .trail blockquote { color:#1f2a26; background:#f1f4ef; border-left:3px solid #26554b; padding:10px 14px; }
.station-web .trail th,.station-web .trail td { border-color:#c5d1e0; }
