:root {
  --ink: #f2f5f7; --dim: #8d9aa6; --glass: rgba(15, 21, 29, .74); --line: rgba(255, 255, 255, .08);
  --soft: rgba(255, 255, 255, .06); --accent: #ffd166; --good: #4ecb8a; --bad: #ff6b5e; --sea: #0c2a3a; --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--sea); color: var(--ink);
  font: 13.5px/1.4 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); border-radius: var(--r); box-shadow: 0 8px 30px rgba(0, 0, 0, .28); }
button { font: inherit; color: var(--ink); background: var(--soft); border: 0; border-radius: 10px; padding: 7px 12px;
  cursor: pointer; transition: background .15s; }
button:hover { background: rgba(255, 255, 255, .13); }
button.primary { background: #fff; color: #10161d; font-weight: 600; }
button.primary:hover { background: #e6ebef; }
button.primary:disabled { opacity: .35; cursor: not-allowed; }
button.danger { color: var(--bad); }
kbd { font: 500 10.5px Inter, sans-serif; opacity: .5; margin-left: 4px; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }

/* harita etiketleri */
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6); }
.lbl.d { font: 700 14px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.lbl.d.small { font-size: 11px; opacity: .6; }
.lbl.m { font: 500 11.5px Inter, sans-serif; color: #dfeaee; }
.lbl.m::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px;
  background: #71848c; vertical-align: 1px; }
.lbl.m.cov::before { background: var(--good); }
.lbl.s { font: 600 11px Inter, sans-serif; color: #fff; background: rgba(0, 0, 0, .65); padding: 2px 6px; border-radius: 6px;
  text-shadow: none; }
.lbl.p { font: 600 11.5px Inter, sans-serif; color: #fff; background: rgba(15, 21, 29, .88); border: 1px solid rgba(255, 255, 255, .25);
  padding: 2px 8px; border-radius: 20px; text-shadow: none; }
.lbl.p.on { border-color: var(--good); }
.lbl.p { pointer-events: auto; cursor: pointer; }
.lnk { cursor: pointer; font-weight: 600; }
.lbl.c { pointer-events: auto; cursor: pointer; display: flex; gap: 6px; align-items: flex-start; width: 210px; white-space: normal;
  text-align: left; background: #fff; color: #17232a; padding: 6px 9px; border-radius: 12px 12px 12px 3px; text-shadow: none;
  font: 500 11.5px/1.3 Inter, sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); z-index: 2; }
.lbl.c i { font-style: normal; } .lbl.c b { color: #1d6fb8; font-weight: 600; }
.lbl.c span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lbl.c.happy { background: #e7f8ee; }
.lbl.c:hover { z-index: 3; } .lbl.c:hover span { -webkit-line-clamp: 6; }

/* gündüz (açık zemin) etiketleri: koyu yazı, beyaz hale */
.day .lbl.d { color: #22303a; text-shadow: 0 0 3px #fff, 0 0 6px rgba(255, 255, 255, .95), 0 1px 0 #fff; }
.day .lbl.d.small { opacity: .7; }
.day .lbl.m { color: #36454f; text-shadow: 0 0 3px #fff, 0 0 5px rgba(255, 255, 255, .9); }
.day .lbl.m::before { background: #9aa6ad; } .day .lbl.m.cov::before { background: #2fa36b; }

/* taslak hatta durak arası mesafe çubuğu */
.lbl.k { background: rgba(15, 21, 29, .92); color: #fff; padding: 3px 8px 5px; border-radius: 9px; text-shadow: none;
  font: 600 11.5px Inter, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); z-index: 3; }
.lbl.k i { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.lbl.k b { display: block; height: 100%; background: var(--good); border-radius: 2px; }
.lbl.k.live { border: 1px solid rgba(255, 255, 255, .35); }
.lbl.k.bad { color: #ffb3ab; } .lbl.k.bad b { background: var(--bad); }

/* üst çubuk: üç hap */
#top { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; pointer-events: none; }
.pill { display: flex; align-items: center; gap: 16px; padding: 8px 14px; height: 54px; pointer-events: auto; }
.brand { font-weight: 700; font-size: 14px; line-height: 1.1; letter-spacing: -.01em; }
.brand span { display: block; color: var(--dim); font-weight: 500; font-size: 11px; }
.time b { font-weight: 600; font-size: 14px; display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; width: 104px; }
.time .bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; width: 0; }
.speed { display: flex; gap: 2px; background: var(--soft); border-radius: 10px; padding: 2px; }
.speed button { padding: 6px 9px; font-size: 10px; letter-spacing: -1px; min-width: 32px; background: none; border-radius: 8px; color: var(--dim); }
.speed button.on { background: #fff; color: #10161d; }
.stats { gap: 22px; }
.stat { display: flex; flex-direction: column; line-height: 1.15; }
.stat label { font-size: 10.5px; color: var(--dim); font-weight: 500; }
.stat b { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.stat small { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.stat small.up { color: var(--good); } .stat small.down { color: var(--bad); }
.stat.score b { color: var(--accent); }
.mini { display: flex; flex-direction: column; font-size: 10.5px; color: var(--dim); line-height: 1.3; padding-left: 16px;
  border-left: 1px solid var(--line); white-space: nowrap; }
.mini b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tools { gap: 8px; }
.searchBox { position: relative; width: 210px; }
#search { width: 100%; font: inherit; color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: 10px;
  padding: 7px 11px; outline: none; user-select: text; }
#search:focus { border-color: rgba(255, 255, 255, .35); }
#search::placeholder { color: var(--dim); }
#results { position: absolute; top: 44px; right: 0; width: 320px; padding: 5px; z-index: 6; background: rgba(15, 21, 29, .97); }
#results[hidden] { display: none; }
#results div { display: flex; gap: 8px; align-items: baseline; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
#results div:hover, #results div.on { background: var(--soft); }
#results em { font-size: 10px; font-weight: 600; color: var(--dim); width: 50px; flex: none; font-style: normal; }
#results small { color: var(--dim); margin-left: auto; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
#guideBtn { font-weight: 600; }

/* sol alt: katmanlar */
#leftcol { position: fixed; left: 12px; bottom: 12px; width: 300px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
#leftcol > * { pointer-events: auto; }
#left { padding: 10px; }
#layers { display: flex; flex-wrap: wrap; gap: 4px; }
#layers button { padding: 4px 9px; font-size: 11.5px; background: none; color: var(--dim); border-radius: 8px; }
#layers button:hover { color: var(--ink); }
#layers button.on { background: var(--soft); color: var(--ink); font-weight: 600; }
#legend { margin-top: 8px; font-size: 10.5px; color: var(--dim); padding: 0 4px; }
#legend .ramp { height: 5px; border-radius: 3px; margin-bottom: 3px; opacity: .85; }
#legend .ends { display: flex; justify-content: space-between; }

/* alt orta: inşa çubuğu */
#dock { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 6px; }
#modes { display: flex; gap: 4px; }
#modes button { text-align: left; padding: 8px 14px 8px 12px; background: none; border-radius: 11px; position: relative; min-width: 96px; }
#modes button:hover { background: var(--soft); }
#modes button b { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
#modes button b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
#modes button span { font-size: 10.5px; color: var(--dim); padding-left: 16px; white-space: nowrap; }
#modes button.on { background: #fff; color: #10161d; } #modes button.on span { color: #5c6770; }
#draft { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); width: max-content; /* dar pencerede metin sıkışıp alt alta kırılmasın */ padding: 12px 14px 12px 18px; display: flex; gap: 20px;
  align-items: center; max-width: calc(100% - 24px); }
#draft[hidden] { display: none; }
#draftText b { font-weight: 600; font-size: 14px; }
#draftText .err { color: var(--accent); font-size: 12px; margin-top: 2px; }
#draftText .nums { font-size: 12.5px; color: var(--dim); } #draftText .nums b { color: var(--ink); font-size: 12.5px; }
.draftBtns { display: flex; gap: 6px; flex: none; }

/* sağ panel */
#right { position: fixed; top: 78px; right: 12px; width: 310px; max-height: calc(100% - 92px); display: flex; flex-direction: column;
  overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1; background: none; color: var(--dim); font-weight: 500; padding: 6px; }
.tabs button.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.tabs span { opacity: .6; font-weight: 500; }
#info, #lines { padding: 16px; overflow-y: auto; }
#info[hidden], #lines[hidden] { display: none; }
#info h2 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
#info h3 { font-size: 11px; font-weight: 600; color: var(--dim); margin: 16px 0 6px; letter-spacing: .02em; }
#info .sub { color: var(--dim); font-size: 12px; margin: 2px 0 12px; }
#info .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
#info .row span { color: var(--dim); } #info .row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
#info .meter { height: 4px; background: var(--line); border-radius: 2px; margin: 0 0 8px; }
#info .meter i { display: block; height: 100%; border-radius: 2px; }
#info .tip { margin-top: 12px; padding: 10px 12px; background: rgba(255, 209, 102, .1); border-radius: 10px; font-size: 12.5px; color: #f3dfae; }
#info .log { font-size: 12px; color: var(--dim); max-height: 200px; overflow-y: auto; }
#info .log div { padding: 4px 0; } #info .log b { color: var(--ink); font-weight: 500; }
#info canvas { width: 100%; height: 70px; display: block; margin: 4px 0; }
#info .back { float: right; padding: 4px 9px; font-size: 11.5px; color: var(--dim); }
#info .acts { margin-top: 14px; display: flex; gap: 6px; }
#info .about { font-size: 12.5px; color: var(--dim); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 8px; }
.chips span { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; background: var(--soft); color: var(--ink); }
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { list-style: none; cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '›'; margin-left: auto; color: var(--dim); transition: transform .15s; font-size: 16px; line-height: 1; }
details[open] > summary::after { transform: rotate(90deg); }
summary i { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--dim); background: var(--soft); padding: 1px 7px; border-radius: 20px; }
details > :not(summary):last-child { margin-bottom: 12px; }
.stepper { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.stepper button { width: 34px; height: 34px; font-size: 17px; padding: 0; flex: none; border-radius: 50%; }
.stepper div { flex: 1; text-align: center; } .stepper b { display: block; font-weight: 700; font-size: 17px; }
.stepper small { color: var(--dim); font-size: 11px; }
.posts { display: flex; flex-direction: column; gap: 6px; }
.post { background: var(--soft); padding: 8px 10px; border-radius: 10px; font-size: 12.5px; cursor: pointer; }
.post b { color: #7cc0ff; font-weight: 600; }
.post em { display: block; font-style: normal; color: var(--accent); font-size: 11.5px; margin-top: 4px; }
.post.happy b { color: var(--good); }
.post:hover { background: rgba(255, 255, 255, .11); }
#lines .ln { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 12.5px; }
#lines .ln:hover, #lines .ln.on { background: var(--soft); }
#lines .ln i { width: 4px; height: 16px; border-radius: 2px; flex: none; }
#lines .ln span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lines .ln em { font-style: normal; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }

/* danışman kartı, bildirimler */
#tip { padding: 14px; }
#tip[hidden] { display: none; }
#tip h3 { color: var(--accent); margin: 0 0 6px; font-size: 12px; font-weight: 600; }
#tip p { margin: 0 0 12px; font-size: 13px; color: #d7dfe5; }
#tip .acts { display: flex; gap: 6px; justify-content: flex-end; }
#tip button { padding: 5px 11px; font-size: 12px; }
#toasts { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px;
  align-items: center; pointer-events: none; }
.toast { background: rgba(15, 21, 29, .94); border: 1px solid var(--line); padding: 9px 16px; border-radius: 12px;
  animation: tin .25s ease-out; max-width: 520px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.toast.out { opacity: 0; transition: opacity .5s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* pencereler */
.modal { position: fixed; inset: 0; background: rgba(6, 12, 18, .66); backdrop-filter: blur(6px); display: none; align-items: center;
  justify-content: center; padding: 16px; z-index: 10; }
.modal.on { display: flex; }
.card { max-width: 600px; width: 100%; padding: 30px 32px; max-height: 100%; overflow-y: auto; border-radius: 22px; }
.card.wide { max-width: 900px; }
.card h1 { font-weight: 700; font-size: 32px; letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.card h1 span { color: var(--dim); font-weight: 500; }
.card h3 { font-size: 11px; font-weight: 600; color: var(--dim); margin: 18px 0 8px; }
.card p { color: var(--dim); margin: 10px 0; font-size: 14.5px; }
.card ul { color: var(--dim); padding-left: 18px; margin: 10px 0 4px; } .card li { margin: 5px 0; } .card li b { color: var(--ink); font-weight: 600; }
.card .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card .choices button { text-align: left; padding: 16px; border-radius: 14px; }
.card .choices button b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.card .choices button span { font-size: 12.5px; color: var(--dim); }
.card .choices i { font-style: normal; color: var(--ink); font-weight: 600; }
.card .wide { width: 100%; margin-top: 10px; padding: 11px; }
.card .res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.card .res div { background: var(--soft); padding: 12px; border-radius: 12px; }
.card .res label { display: block; font-size: 11px; color: var(--dim); }
.card .res b { font-weight: 700; font-size: 19px; } .card .res small { color: var(--dim); display: block; font-size: 11.5px; }
.card .src { font-size: 11px; margin-top: 16px; opacity: .7; }
.card .back { color: var(--dim); }
.seg { display: flex; gap: 2px; background: var(--soft); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; padding: 8px; font-weight: 600; background: none; color: var(--dim); border-radius: 9px; }
.seg button.on { background: #fff; color: #10161d; }
.guide { display: grid; grid-template-columns: 210px 1fr; gap: 24px; margin-top: 18px; }
.guide nav { display: flex; flex-direction: column; gap: 2px; }
.guide nav button { text-align: left; padding: 9px 11px; background: none; color: var(--dim); }
.guide nav button.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.guide article { min-height: 380px; font-size: 14px; line-height: 1.55; }
.guide article h2 { font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin: 0 0 10px; }
.guide article p, .guide article li { color: #c3ced6; } .guide article li { margin: 7px 0; } .guide article b { color: var(--ink); }
.guide table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.guide th, .guide td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c3ced6; }
.guide th { font-size: 11px; font-weight: 600; color: var(--dim); }

/* durak yoğunluğu, olaylar, planlama */
#layers .tog { border: 1px solid var(--line); margin-left: 2px; }
#layers .tog.on { background: #fff; color: #10161d; border-color: transparent; }
.stleg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; }
.stleg span { display: flex; align-items: center; gap: 4px; } .stleg i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.lbl.s.q { border: 1.5px solid transparent; }
.lbl.e { pointer-events: auto; cursor: pointer; font: 600 12px Inter, sans-serif; color: #10161d; background: var(--accent);
  padding: 3px 10px; border-radius: 20px; text-shadow: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); z-index: 2; }
.lbl.e.soon { background: rgba(15, 21, 29, .9); color: var(--accent); border: 1px dashed var(--accent); }
.tabs .badge { background: var(--accent); color: #10161d; opacity: 1; padding: 0 6px; border-radius: 20px; font-weight: 700; font-size: 11px; }
#events { padding: 16px; overflow-y: auto; } #events[hidden] { display: none; }
#events h2 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0; }
#events h3 { font-size: 11px; font-weight: 600; color: var(--dim); margin: 18px 0 8px; }
#events .sub { color: var(--dim); font-size: 12px; margin: 2px 0 12px; }
#events .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
#events .row span { color: var(--dim); flex: none; } #events .row b { font-weight: 600; text-align: right; }
.empty { color: var(--dim); font-size: 12.5px; padding: 18px 0; text-align: center; }
.evcard { background: var(--soft); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.evhead { display: flex; gap: 10px; align-items: center; } .evhead span { font-size: 22px; }
.evhead b { display: block; font-size: 14px; } .evhead small { color: var(--accent); font-size: 11.5px; }
.evcard p { margin: 8px 0; font-size: 12.5px; color: #c9d3da; }
.opts { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.opts button { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 8px 10px; background: rgba(255, 255, 255, .07); }
.opts button:disabled { opacity: .4; cursor: not-allowed; }
.opts button b { font-weight: 600; font-size: 12.5px; } .opts button i { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
.opts button small { grid-column: 1 / -1; color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.chosen { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(78, 203, 138, .12); font-size: 12.5px; color: #bfe9d2; }
.evrep { border-top: 1px solid var(--line); padding: 10px 0; } .evrep > b { display: block; font-size: 13px; }
.evrep > small { color: var(--dim); font-size: 11.5px; display: block; margin-bottom: 4px; }
.note { font-size: 11.5px; color: var(--dim); line-height: 1.45; margin: 12px 0 0; }
.level { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.level b { color: var(--c); font-size: 15px; } .level span { color: var(--dim); font-size: 12px; }
.stline { display: flex; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.stline:hover { background: var(--soft); } .stline i { width: 4px; height: 28px; border-radius: 2px; flex: none; }
.stline b { display: block; font-size: 12.5px; font-weight: 600; } .stline small { color: var(--dim); font-size: 11px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
table.cmp th { text-align: left; font-size: 10.5px; font-weight: 600; color: var(--dim); padding: 4px 0; }
table.cmp td { padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.cmp td:first-child { color: var(--dim); padding-right: 6px; } table.cmp td:nth-child(3) { font-weight: 600; }
table.cmp em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--dim); margin-left: 3px; white-space: nowrap; }
table.cmp em.up { color: var(--good); } table.cmp em.down { color: var(--bad); }

/* düzenleme, hedef, tercih düğmeleri */
.ico { width: 34px; padding: 7px 0; text-align: center; color: var(--dim); } .ico.on { color: var(--ink); background: rgba(255, 255, 255, .16); }
#modes button.ban { opacity: .35; }
#goalSel { width: 100%; font: inherit; color: var(--ink); background: var(--soft); border: 0; border-radius: 10px; padding: 9px 10px; outline: none; }
#goalSel option { color: #10161d; }
.goal { background: rgba(255, 209, 102, .08); border-radius: 12px; padding: 11px 12px; margin-bottom: 6px; }
.ghead { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; } .ghead span { font-size: 11.5px; white-space: nowrap; }
.goal p { margin: 5px 0 8px; font-size: 12.5px; color: #d7dfe5; } .goal small { color: var(--dim); font-size: 11.5px; }
.gnum { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); } .gnum b { color: var(--ink); }
.stlist { display: flex; flex-direction: column; margin-bottom: 8px; }
.stlist div { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12.5px; border-left: 2px solid var(--line); padding-left: 9px; }
.stlist span { flex: 1; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stlist span:hover { text-decoration: underline; }
.stlist small { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.stlist button { padding: 1px 7px; font-size: 11px; color: var(--dim); } .stlist button:hover { color: var(--ink); }
#info .acts { flex-wrap: wrap; } .stepper button:disabled { opacity: .35; cursor: not-allowed; }
table.cmp th:nth-child(4), table.cmp td:nth-child(4) { padding-left: 8px; border-left: 1px solid var(--line); }

/* öğretici, panel küçültme, dokunmatik */
#tut { padding: 14px; border-color: rgba(255, 255, 255, .22); }
#tut[hidden] { display: none; }
#tut h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; color: var(--dim); }
#tut > b { font-size: 15px; font-weight: 700; } #tut p { margin: 5px 0 12px; font-size: 13px; color: #d7dfe5; }
#tut .acts { display: flex; gap: 6px; justify-content: flex-end; } #tut button { padding: 6px 12px; font-size: 12px; }
.hl { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; animation: hl 1.4s ease-in-out infinite; }
@keyframes hl { 50% { outline-color: rgba(255, 209, 102, .25); } }
.tabs #panelMin { flex: none; width: 32px; }
#right.min > :not(.tabs) { display: none !important; } #right.min .tabs { border-bottom: 0; }
html, body { overscroll-behavior: none; }
@media (pointer: coarse) {
  button { min-height: 38px; } .stlist button, #layers button { min-height: 32px; } .speed button { min-width: 40px; }
  .stepper button { width: 40px; height: 40px; } #results div { padding: 11px 9px; } summary { padding: 14px 0; }
}

@media (max-width: 1180px) {
  .brand, .mini { display: none; }
  #leftcol { bottom: 86px; } /* dar pencerede katman kutusu inşa çubuğunun üstüne çıkar, üst üste binmez */
  .searchBox { width: 150px; }
}
@media (max-width: 900px) {
  #top { flex-wrap: wrap; } .pill { height: 48px; gap: 10px; padding: 6px 10px; } .stats { order: 3; width: 100%; justify-content: space-around; }
  #right { top: auto; bottom: 98px; left: 8px; right: 8px; width: auto; max-height: 36%; }
  #leftcol { top: 184px; bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; }
  #left { padding: 6px; } #layers { flex-wrap: nowrap; overflow-x: auto; } #layers button { flex: none; } #legend { display: none; }
  #toasts { top: 236px; width: calc(100% - 32px); } .tools { flex: 1; } .searchBox { flex: 1; width: auto; min-width: 0; }
  #dock { max-width: calc(100% - 16px); overflow-x: auto; } #modes button { min-width: 84px; }
  #draft { flex-direction: column; gap: 8px; align-items: stretch; bottom: 150px; }
  .card { padding: 22px; } .card .choices, .guide { grid-template-columns: 1fr; } .card h1 { font-size: 26px; }
}
