/* Desktop only. No accent edges: selected/active states use a background tint, borders are full outlines. */
:root {
  --sv1: #8a6100; --sv1-bg: #fbeecb; --sv2: #8a3f00; --sv2-bg: #fcdcbd; --sv3: #a8322b; --sv3-bg: #fbe3e0;
  --s-yeni: #5b6c73; --s-yeni-bg: #e4eaec; --s-ilgi: #8a6100; --s-ilgi-bg: #fbeecb; --s-arandi: #1f5aa6; --s-arandi-bg: #dce9fb;
  --s-goruldu: #1d7a4d; --s-goruldu-bg: #dff3e7; --s-elendi: #a8322b; --s-elendi-bg: #fbe3e0;
  --bg: #f6f8f8; --surface: #ffffff; --fg: #14232a; --muted: #5b6c73; --line: #dbe3e5;
  --accent: #0f6e7c; --accent-tint: #e2f1f3;
  --yes: #1d7a4d; --yes-bg: #dff3e7; --part: #8a6100; --part-bg: #fbeecb;
  --no: #a8322b; --no-bg: #fbe3e0; --unk: #5b6c73; --unk-bg: #e9eeef;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --sv1: #e8c05c; --sv1-bg: #3d3110; --sv2: #f2a468; --sv2-bg: #4a2a10; --sv3: #f08b83; --sv3-bg: #44201d;
  --s-yeni: #94a6ac; --s-yeni-bg: #2c3d44; --s-ilgi: #e8c05c; --s-ilgi-bg: #3d3110; --s-arandi: #8db8f0; --s-arandi-bg: #1c3558;
  --s-goruldu: #6fd39c; --s-goruldu-bg: #153a28; --s-elendi: #f08b83; --s-elendi-bg: #44201d;
  --bg: #0f181b; --surface: #17242a; --fg: #e4edef; --muted: #94a6ac; --line: #2a3a41;
  --accent: #5cc3d0; --accent-tint: #173a41;
  --yes: #6fd39c; --yes-bg: #153a28; --part: #e8c05c; --part-bg: #3d3110;
  --no: #f08b83; --no-bg: #44201d; --unk: #94a6ac; --unk-bg: #24333a; color-scheme: dark } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 14px; line-height: 1.45; padding: 24px 12px 48px; }
.wrap { max-width: 1560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.wrap > * { min-width: 0; }
.top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
h1 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 0; }
.lede { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.summary { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--surface); font-size: 13px; }
.chip b { font-family: var(--display); font-size: 14px; }
.chip.on { background: var(--accent-tint); color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span, th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
select, input[type=number], button, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; min-width: 0; }
button { cursor: pointer; background: var(--surface); }
button:hover { background: var(--accent-tint); }
input[type=number] { width: 7.5em; }
select:focus-visible, input:focus-visible, a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; }
#count { font-family: var(--display); font-size: 16px; font-weight: 600; }
#count small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; align-items: center; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }

.tablebox { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
/* 836 px of fixed columns + an İlan column of at least 324 px: when the box is narrower (the chat panel is docked open) the table keeps these widths and scrolls inside its own box */
table { border-collapse: collapse; width: 100%; min-width: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tablebox > table { min-width: 1160px; }
th.w-marks { width: 132px; } th.w-price { width: 150px; } th.w-loc { width: 100px; } th.w-km { width: 76px; } th.w-flat { width: 104px; } th.w-heat { width: 110px; } th.w-track { width: 164px; }
th { text-align: left; vertical-align: top; padding: 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.elendi td { opacity: .55; }
tr.elendi td.c-track { opacity: 1; }
tr.flash td { background: var(--accent-tint); }
.price { font-family: var(--display); font-weight: 600; font-size: 15px; }
.sub { color: var(--muted); font-size: 12px; }
.title { font-weight: 500; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scoreline { margin-bottom: 6px; }
.adtitle { display: inline-block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; margin: 2px 4px 0 0; }
.tag.warn { background: var(--part-bg); color: var(--part); }
.tag.good { background: var(--yes-bg); color: var(--yes); }
.tag.plain { background: var(--unk-bg); color: var(--unk); }
a { color: var(--accent); text-underline-offset: 2px; }
.score { font-family: var(--display); font-weight: 600; font-size: 16px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.msg.err { background: var(--no-bg); color: var(--no); border-color: var(--no); }

.track { display: flex; flex-direction: column; gap: 6px; }
.saved { font-size: 11px; color: var(--muted); min-height: 14px; }
.saved.err { color: var(--no); font-weight: 600; }
.price { white-space: nowrap; }

/* sortable headers: each value is its own small control */
th { white-space: normal; }
th .hl { display: block; }
.sorts { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.sortbtn, .pickbtn { font: inherit; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 1px 5px; white-space: nowrap; }
.sortbtn:hover, .pickbtn:hover { background: var(--accent-tint); }
.sortbtn.on, .pickbtn.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.tag.gone { background: var(--no-bg); color: var(--no); border: 1px solid var(--no); }
.tag.down { background: var(--yes-bg); color: var(--yes); }
.tag.up { background: var(--no-bg); color: var(--no); }
tr.removed td, tr.scope-out td { opacity: .6; }
tr.removed td.c-track, tr.removed td.c-ad, tr.scope-out td.c-track, tr.scope-out td.c-ad { opacity: 1; }
tr.removed .adtitle { opacity: .7; }
.agency { font-size: 13px; margin-top: 3px; }
.agency button { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.agency button:hover { background: var(--accent-tint); }
tr.grp td { background: var(--accent-tint); padding: 10px; border-bottom: 1px solid var(--line); }
tr.grp .gname { font-family: var(--display); font-weight: 600; font-size: 15px; margin-right: 10px; }
tr.grp .gmeta { color: var(--muted); font-size: 12px; }
tr.grp button { margin-left: 10px; padding: 2px 10px; font-size: 12px; }

.icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.ico:hover { background: var(--accent-tint); border-color: var(--accent); }
.ico img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.srcbox.gone { opacity: .45; }
.contact { font-size: 13px; margin-top: 2px; }
.phone { user-select: all; font-variant-numeric: tabular-nums; }
.copy { font: inherit; font-size: 11px; padding: 0 6px; margin-left: 6px; border-radius: 999px; }
.agency button.lnk { font: inherit; }
.peek { width: calc(100% + 10px); }
.peek, .notebtn { display: block; width: 100%; text-align: left; font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; margin: 4px -5px 0; cursor: pointer; overflow-wrap: anywhere; }
.peek:hover, .notebtn:hover { background: var(--accent-tint); border-color: var(--line); }
.notebtn { margin: 0; font-size: 13px; color: var(--fg); border-color: var(--line); background: var(--bg); min-height: 44px; }
.notebtn.empty { color: var(--muted); font-style: italic; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-heat .clamp { -webkit-line-clamp: 3; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--surface); color: var(--fg); width: min(760px, 92vw); max-width: 94vw; max-height: 92vh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dlgbox { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 100%; box-sizing: border-box; }
.dlgbox > *, .dlghead > div { min-width: 0; max-width: 100%; }
.dlgbox a, .dlgbox li, .dlgbox p, .agbody, .agrow span, .agchain, .agex, .ld-cand span, #ld-info, #ld-msg, #nd-title, #nd-kind { overflow-wrap: anywhere; word-break: break-word; }
.dlghead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlghead h2 { margin: 2px 0 0; font-family: var(--display); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
#nd-text { width: 100%; box-sizing: border-box; min-height: 260px; resize: vertical; font-size: 15px; line-height: 1.5; }
.readbox { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; max-height: 60vh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.dlgfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#nd-save { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }

.pc { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-right: 8px; }
.c-flat { overflow-wrap: anywhere; }
.netline { font-size: 12px; margin-top: 3px; color: var(--muted); }
.conflict { font-size: 12px; color: var(--part); margin-top: 2px; }
.peek.none { color: var(--muted); font-style: italic; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs .sortbtn { font-size: 13px; padding: 3px 12px; }
mark { background: var(--part-bg); color: var(--part); border-radius: 3px; padding: 0 2px; font-weight: 600; }
.srcline { margin-top: 12px; }
input[type=search] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; width: 14em; }

/* status radio strip: joined segments, the selected one gets its own tint (and the icon carries the meaning) */
.segs { display: inline-flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.seg { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.seg:hover { background: var(--accent-tint); }
.seg:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg.on.st-yeni, .chip.st-yeni.on { background: var(--s-yeni-bg); color: var(--s-yeni); }
.seg.on.st-ilgileniyorum, .chip.st-ilgileniyorum.on { background: var(--s-ilgi-bg); color: var(--s-ilgi); }
.seg.on.st-arandi, .chip.st-arandi.on { background: var(--s-arandi-bg); color: var(--s-arandi); }
.seg.on.st-goruldu, .chip.st-goruldu.on { background: var(--s-goruldu-bg); color: var(--s-goruldu); }
.seg.on.st-elendi, .chip.st-elendi.on { background: var(--s-elendi-bg); color: var(--s-elendi); }
.seg.on svg { stroke-width: 2.5; }
.chip svg { vertical-align: -3px; }
.notebtn { display: flex; gap: 6px; align-items: flex-start; }
.notebtn svg { flex: none; margin-top: 2px; }
.notebtn .clamp { min-width: 0; }
.notebtn.has { background: var(--accent-tint); border-color: var(--accent); color: var(--fg); }

.countbox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }

/* author display rules (flex, grid, ...) must not defeat the hidden attribute */
[hidden] { display: none !important; }

.mp-grp { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 4px 2px; }
.mp-item { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 6px; cursor: pointer; }
.mp-item:hover { background: var(--accent-tint); }
.mp-item.zero { color: var(--muted); }
.mp-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mp-item input { width: 16px; height: 16px; margin: 0; }

.srcbox { display: inline-flex; align-items: center; gap: 4px; }
.idbtn { position: relative; font: inherit; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 4px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.idbtn:hover { background: var(--accent-tint); border-color: var(--line); color: var(--fg); }
.idbtn.copied::after { content: attr(data-flash); position: absolute; inset: 0; display: grid; place-items: center; background: var(--yes-bg); color: var(--yes); font-weight: 600; }

/* our own permanent number, first thing in the row */
.refbtn { position: relative; overflow: hidden; display: inline-block; margin-bottom: 4px; font-family: var(--display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; cursor: pointer; }
.refbtn:hover { background: var(--accent-tint); }
.refbtn.copied::after { content: attr(data-flash); position: absolute; inset: 0; display: grid; place-items: center; background: var(--yes-bg); color: var(--yes); font-family: var(--body); font-size: 11px; font-weight: 600; }
tr.flash td { background: var(--accent-tint); transition: background .4s; }
tr.pinnote td { background: var(--part-bg); color: var(--part); font-size: 13px; padding: 6px 10px; }

.rowacts { margin-top: 2px; }
.linkact { font: inherit; font-size: 11px; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkact:hover { color: var(--accent); }
.splitbtn { text-decoration: underline; }
.ld-cands { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ld-cand { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ld-cand:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); }
#ld-q { width: 100%; box-sizing: border-box; }
#ld-go { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
#ld-go:disabled { opacity: .5; cursor: default; }

/* Şikayetvar badge: strength by count and recency, background tint only */
.svbadge { font: inherit; font-size: 11px; font-weight: 600; border: 1px solid transparent; border-radius: 999px; padding: 1px 8px; cursor: pointer; margin-left: 4px; }
.svbadge.t1 { background: var(--sv1-bg); color: var(--sv1); }
.svbadge.t2 { background: var(--sv2-bg); color: var(--sv2); }
.svbadge.t3 { background: var(--sv3-bg); color: var(--sv3); }
.svbadge:hover { border-color: currentColor; }
.agbody p { margin: 0 0 8px; }
.agwarn { background: var(--part-bg); color: var(--part); border-radius: 6px; padding: 6px 10px; font-weight: 600; }
.agrow { display: flex; gap: 12px; padding: 2px 0; }
.agrow .sub { width: 11em; flex: none; }
.agchain { margin: 10px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.agex { margin: 4px 0 8px; padding-left: 18px; }
.agex li { margin-bottom: 6px; }

/* views */
.vbox { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.viewnav { display: flex; gap: 6px; }
.navbtn { font: inherit; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.navbtn.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.tag.ai { border: 0; font: inherit; font-size: 11px; font-weight: 600; background: var(--accent-tint); color: var(--accent); cursor: pointer; }
/* recommendation cards: roomy, full outlines and tints only */
.recs-top { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; max-width: 1100px; }
.recs-top h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.recs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.recs-top p { margin: 0; }
.recs-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; }
.recs-cav { margin: 4px 0 0; padding-left: 20px; }
.cards { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.card.flash { background: var(--accent-tint); transition: background .4s; }
.card-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-family: var(--display); font-size: 17px; flex: 1; min-width: 12em; }
.rankno { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-family: var(--display); font-weight: 600; font-size: 17px; flex: none; }
.banner { border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.banner.gone { background: var(--no-bg); color: var(--no); }
.banner.price { background: var(--part-bg); color: var(--part); }
.banner.plain { background: var(--unk-bg); color: var(--unk); }
.banner.elendi-note { display: none; background: var(--s-elendi-bg); color: var(--s-elendi); }
.card.elendi .banner.elendi-note { display: block; }
.card.elendi, .card.removed { background: var(--bg); }
.cardfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.factcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact { display: flex; gap: 10px; font-size: 14px; }
.fact > .sub { width: 6.5em; flex: none; }
.fact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cardmarks { margin-bottom: 8px; }
.cardmarks .marks.wide { grid-template-columns: repeat(6, 30px); gap: 6px 8px; margin-top: 6px; }
.aigrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aisec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.aisec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: inline-block; padding: 2px 10px; border-radius: 999px; }
.aisec.why h4 { background: var(--yes-bg); color: var(--yes); }
.aisec.concerns h4 { background: var(--part-bg); color: var(--part); }
.aisec.unknowns h4 { background: var(--unk-bg); color: var(--unk); }
.aisec.ask h4 { background: var(--s-arandi-bg); color: var(--s-arandi); }
.aisec ul { margin: 0; padding-left: 18px; }
.aisec li { margin-bottom: 3px; }
.card-f { border-top: 1px solid var(--line); padding-top: 12px; }
.card-f .track { flex-direction: row; align-items: center; flex-wrap: wrap; }
.card-f .notebtn { width: auto; min-width: 14em; max-width: 36em; }
.near { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; max-width: 1100px; }
.near h3 { margin: 0 0 6px; font-size: 15px; }
.near ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.near-why { color: var(--muted); }
.refbtn.small { font-size: 13px; padding: 0 6px; margin: 0; }

/* olanak (facility) chips */
.amchips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.amchip { display: inline-flex; align-items: center; gap: 3px; font: inherit; font-size: 11px; line-height: 1.3; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.amchip:hover { background: var(--accent-tint); }
.amchip svg { flex: none; }
.amchip.more { color: var(--muted); }
.amchip.static { cursor: default; margin: 0 3px 3px 0; }
.amchips:not(.open) .amx { display: none; }
.amtip { font-size: 12px; color: var(--muted); background: var(--accent-tint); border-radius: 6px; padding: 3px 8px; margin-top: 3px; overflow-wrap: anywhere; }

.tag.fresh { background: var(--yes-bg); color: var(--yes); border: 1px solid var(--yes); }


/* ---- Notion-style filter builder (view tabs, condition chips, popovers). Tints and full outlines only. */
.fui { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.vtabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vtab { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.vtab > button { font: inherit; font-size: 13px; background: none; border: 0; padding: 3px 11px; color: var(--muted); cursor: pointer; border-radius: 999px; }
.vtab.on { background: var(--accent-tint); border-color: var(--accent); }
.vtab.on > button { color: var(--accent); font-weight: 600; }
.vtab > button:hover { background: var(--accent-tint); }
.vtab .vmenu { padding: 3px 7px 3px 2px; }
.vtab.add { border-style: dashed; padding: 0; }
.vtab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--part); margin-left: 6px; }
.fbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fchips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; flex: 1 1 520px; min-width: 0; }
.fchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; }
.fchip.incomplete { border-style: dashed; color: var(--muted); }
.fchip.group { background: var(--part-bg); color: var(--part); }
.fchip .ftext { font: inherit; background: none; border: 0; padding: 2px 4px 2px 10px; cursor: pointer; color: inherit; border-radius: 999px; }
.fchip .x, .schip .x, .tgroup > .x { font: inherit; background: none; border: 0; padding: 2px 8px 2px 2px; cursor: pointer; color: var(--muted); border-radius: 999px; }
.fchip .ftext:hover, .fchip .x:hover, .schip button:hover { background: var(--accent-tint); }
.fadd, .fadv { font: inherit; font-size: 12px; border: 1px dashed var(--line); border-radius: 999px; background: none; padding: 2px 10px; color: var(--muted); cursor: pointer; }
.fadd:hover, .fadv:hover { background: var(--accent-tint); color: var(--accent); }
.fadv.on { background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent); }
.gop { font: inherit; font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; background: var(--unk-bg); color: var(--unk); padding: 1px 7px; cursor: pointer; }
.fsearch input { width: 20em; max-width: 100%; box-sizing: border-box; padding: 4px 8px; font-size: 13px; }
.fsorts, .fquick { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fl { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 2px; }
.schip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; }
.schip button { font: inherit; background: none; border: 0; padding: 2px 4px 2px 10px; cursor: pointer; color: var(--fg); border-radius: 999px; }
.schip .x { padding: 2px 8px 2px 2px; }
.qchip { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: none; padding: 2px 10px; color: var(--muted); cursor: pointer; }
.qchip:hover { background: var(--accent-tint); }
.qchip.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.fmod { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--part-bg); color: var(--part); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.fmod button { font-size: 12px; padding: 2px 10px; }
.fmod .ghost { background: none; }
.ftree { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--bg); }
.tbox { display: flex; gap: 8px; align-items: flex-start; }
.titems { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.trow, .tgroup { display: flex; align-items: center; gap: 6px; }
.tgroup { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--surface); align-items: flex-start; }
.tjoin { font-size: 10px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.tadd { display: flex; flex-direction: column; gap: 4px; }
.fpop { position: absolute; z-index: 30; width: 320px; max-height: 70vh; overflow: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 8px; }
.fpop.wide { width: 460px; }
.fpop[hidden] { display: none; }
.fe-row { display: flex; gap: 6px; align-items: center; }
.fe-row select, .fe-row input { flex: 1; min-width: 0; }
.fe-body input[type=text], .fe-body input[type=number], .fe-body input[type=date], .fe-body input[type=search], .fpop > input[type=search] { width: 100%; box-sizing: border-box; padding: 5px 8px; }
.fe-list { display: flex; flex-direction: column; max-height: 42vh; overflow: auto; }
.fe-foot { display: flex; justify-content: space-between; gap: 8px; }
.fe-foot button, .proplist-item { font: inherit; font-size: 13px; }
.fp-list { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; }
.proplist-item { text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 8px; cursor: pointer; color: var(--fg); }
.proplist-item:hover, .proplist-item:focus-visible { background: var(--accent-tint); }
button.danger { color: var(--no); }
#empty .sub { margin: 0; }

/* photos: a cover with a count at the start of the İlan cell, a gallery dialog, a strip on the recommendation cards */
.adbox { container-type: inline-size; min-width: 0; }
.adwrap { display: flex; gap: 10px; align-items: flex-start; }
/* a narrow İlan cell (under ~300 px): the cover goes above the title instead of squeezing the text into one word per line */
@container (max-width: 300px) { .adwrap { flex-direction: column; gap: 6px; } .adwrap .cover { width: 100%; max-width: 176px; height: auto; aspect-ratio: 4 / 3; } }
.adcol { min-width: 0; flex: 1; }
.cover { position: relative; flex: none; width: 88px; height: 66px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--unk-bg); cursor: pointer; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcount { position: absolute; right: 3px; bottom: 3px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 999px; padding: 0 6px; }
.nophoto { font-size: 11px; }
/* Photo gallery. Box model on a 1288 px viewport: dialog = min(1100, 94vw) = 1100 px wide (border-box), 88vh tall; the
   stage fills whatever the head/tabs/meta/strip leave, the image is only ever scaled DOWN into it (max-width/height 100%),
   the arrows sit inside the stage, the strip scrolls on its own. Nothing here can make the dialog wider than 94vw. */
#photodlg { width: min(1100px, 94vw); height: min(88vh, 900px); max-width: 94vw; max-height: 88vh; overflow: hidden; }
#photodlg[open] { display: flex; }
#photodlg .photobox { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
#photodlg .photobox > * { min-width: 0; flex: none; }
.pg-main { position: relative; flex: 1 1 auto !important; min-height: 0; }
.pg-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; outline: none; overscroll-behavior: contain; }
.pg-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: pointer; user-select: none; -webkit-user-drag: none; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 76px; padding: 0; font-size: 30px; line-height: 1; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; }
.pg-nav:hover:not(:disabled) { background: rgba(0, 0, 0, .75); }
.pg-nav:disabled { opacity: .35; cursor: default; }
.pg-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#pg-prev { left: 10px; }
#pg-next { right: 10px; }
.pg-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-meta a { overflow-wrap: anywhere; }
.pg-strip { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; max-width: 100%; }
.pg-strip button { flex: none; width: 76px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--unk-bg); cursor: pointer; }
.pg-strip button.on { border-color: var(--accent); outline: 2px solid var(--accent-tint); }
.pg-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pstrip { display: flex; gap: 8px; }
.pstrip button { padding: 0; width: 150px; height: 104px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--unk-bg); cursor: pointer; }
.pstrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pstrip .pmore { width: 64px; font-size: 14px; color: var(--muted); }

/* ---- icons (Lucide, inline SVG in currentColor) ---- */
.ic { flex: none; display: block; }
.ftext, .proplist-item { display: inline-flex; align-items: center; gap: 6px; }
.ftext .ic, .proplist-item .ic { color: var(--muted); }
.proplist-item { display: flex; }
.fadd { display: inline-flex; align-items: center; gap: 4px; }
.fchip .x, .schip .x { display: inline-grid; place-items: center; }
.pg-nav { display: grid; place-items: center; }
.amchip .ic { flex: none; }
.seg .ic, .chip .ic { display: inline-block; }
.chip .ic { vertical-align: -3px; }

/* ---- wish marks: an icon in a box tinted by the state, plus a corner badge (✓ ~ ✗ ?) so the state does not rest on colour ---- */
.marks { display: grid; grid-template-columns: repeat(3, 30px); gap: 7px 5px; margin-top: 2px; }
.wm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; border: 1px solid transparent; padding: 0; font-style: normal; }
.wmi { display: grid; place-items: center; }
.wm.y { background: var(--yes-bg); color: var(--yes); --wc: var(--yes); }
.wm.p { background: var(--part-bg); color: var(--part); --wc: var(--part); }
.wm.n { background: var(--no-bg); color: var(--no); border-color: var(--no); --wc: var(--no); }
.wm.n .wmi { opacity: .75; }
.wm.u { background: var(--unk-bg); color: var(--unk); border: 1px dashed var(--unk); --wc: var(--unk); }
.wm.u .wmi { opacity: .7; }
.wb { position: absolute; right: -5px; bottom: -5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; font: 700 10px/15px var(--body); font-style: normal; text-align: center; color: var(--surface); background: var(--wc, var(--unk)); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.wm.small { width: 22px; height: 22px; border-radius: 6px; }
.wm.small .wb { min-width: 12px; height: 12px; font-size: 8px; line-height: 12px; right: -4px; bottom: -4px; padding: 0 2px; }
.legend { gap: 6px 22px; }
.legend > span { display: inline-flex; gap: 8px; align-items: center; }

/* ---- column-header shortcuts: small toggles that edit the same filter model as the builder ---- */
.hq { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; text-transform: none; letter-spacing: 0; }
.hqb, .rngbtn, .hqtxt, button.hqw { font: inherit; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
.hqb { width: 25px; height: 25px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); }
.hqb:hover, .rngbtn:hover, .hqtxt:hover { background: var(--accent-tint); }
.hqb.on, .hqtxt.on, .rngbtn.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.hqb.on .ic { stroke-width: 2.5; }
.hqb.st-yeni.on { background: var(--s-yeni-bg); color: var(--s-yeni); border-color: var(--s-yeni); }
.hqb.st-ilgileniyorum.on { background: var(--s-ilgi-bg); color: var(--s-ilgi); border-color: var(--s-ilgi); }
.hqb.st-arandi.on { background: var(--s-arandi-bg); color: var(--s-arandi); border-color: var(--s-arandi); }
.hqb.st-goruldu.on { background: var(--s-goruldu-bg); color: var(--s-goruldu); border-color: var(--s-goruldu); }
.hqb.st-elendi.on { background: var(--s-elendi-bg); color: var(--s-elendi); border-color: var(--s-elendi); }
.hqb.site img { display: block; border-radius: 3px; }
.hqtxt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); white-space: nowrap; }
/* sort pill + range button: one pill, no divider between them */
.spill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.spill .sortbtn { border: 0; background: none; }
.spill:has(.sortbtn.on) { background: var(--accent-tint); border-color: var(--accent); }
.rngbtn { display: inline-grid; place-items: center; width: 20px; height: 18px; padding: 0; margin-right: 1px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.rngbtn.on { border: 0; background: var(--accent); color: var(--surface); }
.rngbtn.on:hover { background: var(--accent); }
.spill .sortbtn:hover { background: var(--accent-tint); }
.spill .sortbtn { padding-right: 3px; }
/* the six wish toggles in the header: same box, neutral when off */
button.wm.hqw { width: 19px; height: 19px; border-radius: 5px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
button.wm.hqw:hover { background: var(--accent-tint); }
button.wm.hqw.y { background: var(--yes-bg); color: var(--yes); border-color: var(--yes); --wc: var(--yes); }
button.wm.hqw.yp { background: var(--yes-bg); color: var(--yes); border-color: var(--yes); border-style: dashed; --wc: var(--part); }
button.wm.hqw.cu { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); --wc: var(--accent); }
button.wm.hqw.off .wb { display: none; }
button.wm.hqw .wb { display: none; }

/* Kira, aidat, depozito and aylık toplam share one column: amounts right-aligned so they line up */
th.w-price, td.c-price { text-align: right; }
td.c-price .price { white-space: nowrap; }
td.c-price .money { white-space: nowrap; font-variant-numeric: tabular-nums; }
th.w-price .sorts.money { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 3px; }

/* Takip cell: the status strip on top, the note preview takes the rest of the row's height and is cut there. The inner box is
   absolutely placed, so the note can never make the row taller; the other cells decide the row height. */
td.c-track { position: relative; padding: 0; height: 112px; }
td.c-track > .track { position: absolute; inset: 10px 6px; display: flex; flex-direction: column; gap: 6px; }
td.c-track .segs { flex: none; }
td.c-track .saved { flex: none; }
td.c-track .notebtn { flex: 1 1 0; min-height: 0; width: 100%; margin: 0; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: start; column-gap: 6px; }
td.c-track .notebtn .clamp { display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset; overflow: hidden; min-height: 0; max-height: 100%; white-space: pre-line; }
td.c-track .notebtn.cut .clamp { -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }

/* ---- pager (above the count line and below the table) ---- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
#pager { justify-content: center; padding: 4px 0 8px; }
.pager.compact { font-size: 12px; }
.psel select { font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 999px; }
.pbtn { font: inherit; font-size: 12px; min-width: 28px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.pbtn:hover:not(:disabled) { background: var(--accent-tint); }
.pbtn.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.pbtn:disabled { opacity: .45; cursor: default; }
.pgap { color: var(--muted); padding: 0 2px; }
.prange { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ---- help: one button at the top, one dialog (the old footer notes) ---- */
.helpbtn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.helpbtn:hover { background: var(--accent-tint); }
#helpdlg { width: min(860px, 92vw); }
.helpbody { display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
.helpbody h3 { margin: 0 0 4px; font-family: var(--display); font-size: 15px; }
.helpbody p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }
.helpbody section { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.helpbody section:last-child { border-bottom: 0; }
.hp-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 10px; }
.hp-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.top .chips { align-items: center; }
.helpbody section > p:first-of-type::first-letter { text-transform: uppercase; }

/* ---- compact header: the wish toggles in one row, the money controls as a 2x2 grid ---- */
.hq.wishrow { display: flex; flex-wrap: nowrap; gap: 2px; margin-top: 5px; }
button.wm.hqw .wmi { line-height: 0; }
.hqtxt .cnt { background: var(--accent); color: var(--surface); border-radius: 999px; font-size: 10px; min-width: 15px; padding: 0 4px; text-align: center; font-weight: 600; }
.hqtxt .cnt[hidden] { display: none; }

/* ---- Takip: a row without a note gets a small "Not ekle" control, not a tall empty box ---- */
td.c-track .notebtn.empty { flex: none; width: auto; align-self: flex-start; min-height: 0; display: flex; flex-direction: row; align-items: center; gap: 5px; border-style: dashed; background: transparent; padding: 3px 10px; }
td.c-track .notebtn.empty svg { margin-top: 0; }
td.c-track .notebtn.empty .clamp { display: inline; }
.card-f .notebtn.empty { min-width: 0; min-height: 0; padding: 3px 10px; }

/* ---- edit button, "elle düzeltildi" mark, extraction lines, the warning chip ---- */
.refrow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.refrow .refbtn { margin-bottom: 0; }
.editbtn { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.editbtn:hover { background: var(--accent-tint); color: var(--accent); }
.omark { display: inline-grid; place-items: center; vertical-align: 1px; margin-left: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--part-bg); color: var(--part); cursor: help; }
.price .omark { vertical-align: 3px; }
.payline, .siteline { font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.siteline { color: var(--muted); }
.tag.flagchip { border: 1px solid var(--part); background: var(--part-bg); color: var(--part); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.tag.flagchip:hover { filter: brightness(.96); }
.aisum { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; white-space: normal; font-size: 14px; line-height: 1.5; }
.aisum > div { margin-top: 2px; }
.flaglist { padding-left: 18px; margin: 4px 0 8px; }
.flaglist li { margin-bottom: 10px; }
.quote { font-style: italic; }

/* ---- the edit dialog ---- */
#editdlg { width: min(960px, 94vw); }
.edbody { display: flex; flex-direction: column; gap: 14px; max-height: 56vh; overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
.edgrp h3 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; }
.grpnote { margin: 0 0 6px; }
.edgrid { display: flex; flex-direction: column; gap: 2px; }
.edgrp.am .edgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.fld { display: grid; grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 2px 12px; align-items: center; padding: 3px 8px; border-radius: 8px; border: 1px solid transparent; }
.edgrp.am .fld { grid-template-columns: 150px minmax(0, 1fr); }
.edgrp.am .fl-m { grid-column: 1 / -1; }
.fld.ovr { background: var(--part-bg); }
.fld.dirty { border-color: var(--accent); }
.fld.bad { border-color: var(--no); background: var(--no-bg); }
.fld.reverting { opacity: .75; }
.fl-l { font-size: 13px; font-weight: 500; }
.fl-m { font-size: 12px; overflow-wrap: anywhere; }
.fld-err { grid-column: 1 / -1; color: var(--no); font-size: 12px; font-weight: 600; }
.fld-err:empty { display: none; }
.inwrap { display: flex; align-items: center; gap: 6px; }
.fld input[type=text], .fld select { width: 100%; box-sizing: border-box; padding: 3px 8px; font-size: 13px; }
.tri, .rooms { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tri-o { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; cursor: pointer; }
.mine { color: var(--part); font-weight: 600; display: inline-flex; gap: 3px; align-items: center; }
.undo { margin-left: 4px; }
.edbtns { display: flex; gap: 8px; }
#ed-save { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
#ed-save:disabled { opacity: .5; cursor: default; }

/* ---- "Claude'a sor": the read-only chat panel, docked on the right. A floating card with a full outline (no one-sided bar). ---- */
.chatbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.chatbtn:hover, .chatbtn.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
body.chat-open { padding-right: calc(var(--chat-w, 420px) + 24px); }
body.chat-open .top { flex-wrap: wrap; }
.chat { position: fixed; z-index: 40; top: 12px; right: 12px; bottom: 12px; width: var(--chat-w, 420px); display: flex; flex-direction: column; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); min-height: 0; }
.chat[hidden] { display: none; }
.chat > * { min-width: 0; }
.chatgrip { position: absolute; top: 0; bottom: 0; left: -5px; width: 10px; cursor: ew-resize; z-index: 2; touch-action: none; }
.chathead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chattitle { display: flex; flex-direction: column; min-width: 0; }
.chattitle b { font-family: var(--display); font-size: 15px; }
.chatbtns { display: flex; gap: 6px; flex: none; }
.chatbtns button { font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.cstate { margin: 10px 12px 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; }
.cstate p { margin: 4px 0 0; overflow-wrap: anywhere; }
.cstate.off { background: var(--part-bg); color: var(--part); border-color: var(--part); }
.cstate.mock { background: var(--accent-tint); color: var(--accent); }
.cstate code { font-size: 12px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.chatlog { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.cstart p { margin: 0 0 10px; }
.cstarters { display: flex; flex-direction: column; gap: 6px; }
.cstarter { text-align: left; font-size: 13px; padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.cm { max-width: 100%; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5; }
.cm.user { align-self: flex-end; max-width: 90%; background: var(--accent-tint); border: 1px solid var(--line); border-radius: 12px 12px 4px 12px; padding: 7px 11px; }
.cm.bot { display: flex; flex-direction: column; gap: 6px; }
.cwait { color: var(--muted); font-size: 12px; }
.cmd p { margin: 0 0 8px; }
.cmd p:last-child, .cmd ul:last-child, .cmd ol:last-child { margin-bottom: 0; }
.cmd ul, .cmd ol { margin: 0 0 8px; padding-left: 20px; }
.cmd li { margin: 2px 0; }
.cmd h4 { margin: 10px 0 4px; font-family: var(--display); font-size: 14px; }
.cmd hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.cmd blockquote { margin: 0 0 8px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.cmd code { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.cmcode { margin: 0 0 8px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; font-size: 12px; max-width: 100%; }
.cmcode code { border: 0; padding: 0; background: transparent; }
.cmtable { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 6px; max-width: 100%; }
.cmtable table { table-layout: auto; width: max-content; min-width: 100%; font-size: 12px; }
.cmtable th, .cmtable td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; text-transform: none; letter-spacing: 0; white-space: normal; background: transparent; }
.cmtable th { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cmtable tr:last-child td { border-bottom: 0; }
.idchip { font: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; cursor: pointer; line-height: 1.5; }
.idchip:hover { border-color: var(--accent); }
.ctool { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--muted); }
.ctool summary { cursor: pointer; padding: 4px 8px; display: flex; gap: 6px; align-items: baseline; list-style: none; }
.ctool summary::-webkit-details-marker { display: none; }
.ctool .ctext { overflow-wrap: anywhere; min-width: 0; }
.cdot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--unk); display: inline-block; }
.ctool.ok .cdot { background: var(--yes); }
.ctool.err .cdot { background: var(--no); }
.ctool.run .cdot { background: var(--part); }
.ctool.err { background: var(--no-bg); color: var(--no); }
.ctool pre { margin: 0; padding: 6px 8px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; max-height: 180px; overflow: auto; }
.cerr { background: var(--no-bg); color: var(--no); border: 1px solid var(--no); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.cacts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.capply { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.cusage { font-size: 11px; color: var(--muted); }
.chatform { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chatform[hidden] { display: none; }
.chatform textarea { flex: 1 1 0; resize: none; min-height: 52px; max-height: 140px; line-height: 1.4; }
.chatform button { padding: 8px 14px; font-weight: 600; background: var(--accent); color: var(--surface); border-color: var(--accent); }
.chatform button.stop { background: var(--no-bg); color: var(--no); border-color: var(--no); }
.chatform button:disabled, .chatform textarea:disabled { opacity: .55; cursor: not-allowed; }
.chatnote { margin: 0; padding: 0 12px 10px; font-size: 11px; }
.chatcard { position: fixed; z-index: 60; width: 270px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); overflow: hidden; pointer-events: none; }
.chatcard[hidden] { display: none; }
.chatcard img { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--unk-bg); }
.ccbody { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.cctitle { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- "Harita": Leaflet map, markers, rings, popup card, side list. Tints and full outlines only; no one-sided bars. ---- */
:root { --map-bg: #e3eaec; }
@media (prefers-color-scheme: dark) { :root { --map-bg: #1b282e; } }
.mapbar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
#map-count { font-family: var(--display); font-size: 16px; font-weight: 600; }
#map-count small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }
.maplegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; align-items: center; flex: 1 1 380px; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lgd { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--bc); background: var(--bb); }
.lgd.ai { background: var(--surface); border-color: var(--line); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); margin: 0 2px; }
.lgd.apx { border: 2px dashed var(--muted); background: color-mix(in srgb, var(--muted) 20%, transparent); width: 16px; height: 16px; }
.mapside { font: inherit; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.mapside[aria-pressed="false"] { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.mapwrap { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); grid-template-rows: minmax(0, 1fr); gap: 12px; height: 560px; }
.mapwrap.noside { grid-template-columns: minmax(0, 1fr); }
.mapwrap.noside .maplist { display: none; }
#map { height: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--map-bg); position: relative; z-index: 0; isolation: isolate; font: inherit; }
#map:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.maplist { overflow-y: auto; overflow-x: hidden; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overscroll-behavior: contain; }
.mlist, .mllist { list-style: none; margin: 0; padding: 0; }
.mlempty { padding: 16px; }
.mli { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 7px 10px; font: inherit; color: var(--fg); cursor: pointer; }
.mli:hover, .mli.hl { background: var(--accent-tint); }
.mli.sel { background: var(--accent-tint); outline: 2px solid var(--accent); outline-offset: -2px; }
.mli.removed .mlmain, .mli.removed .mlcov, .mli.elendi .mlmain, .mli.elendi .mlcov { opacity: .55; }
.mlcov { display: block; width: 52px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--unk-bg); border: 1px solid var(--line); }
.mlcov img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mlmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mlt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.mlt b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.mlr { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.mls { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlw { display: flex; gap: 5px; margin-top: 3px; }
.mli .tag { margin: 0; }
.mlst { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.mlst.st-ilgileniyorum, .mkb.st-ilgileniyorum { background: var(--s-ilgi-bg); color: var(--s-ilgi); border-color: var(--s-ilgi); }
.mlst.st-arandi, .mkb.st-arandi { background: var(--s-arandi-bg); color: var(--s-arandi); border-color: var(--s-arandi); }
.mlst.st-goruldu, .mkb.st-goruldu { background: var(--s-goruldu-bg); color: var(--s-goruldu); border-color: var(--s-goruldu); }
.mlst.st-elendi, .mkb.st-elendi { background: var(--s-elendi-bg); color: var(--s-elendi); border-color: var(--s-elendi); }

/* markers: a circle with the rent in thousands, tinted by score band; the status is a small round badge on its corner */
.leaflet-container .mkw { background: none; border: 0; }
.mk { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; font: 600 12px/1 var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .1s; }
.b3 { --bc: var(--yes); --bb: var(--yes-bg); } .b2 { --bc: var(--part); --bb: var(--part-bg); } .b1 { --bc: var(--no); --bb: var(--no-bg); }
.mk { background: var(--bb); color: var(--bc); border-color: var(--bc); }
.mk.ai, .apl.ai-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--accent); }
.mk.gone, .ap.gone { opacity: .45; } .mk.elendi, .ap.elendi { opacity: .6; }
.mkb { position: absolute; right: -7px; top: -7px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid; display: grid; place-items: center; font-style: normal; box-shadow: 0 0 0 1.5px var(--surface); pointer-events: none; }
.mkb svg { display: block; }
.mkw.hl { z-index: 99999 !important; }
.mkw.hl > .mk { transform: scale(1.3); box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 4.5px var(--accent); }
.mkw.hl > .mk.ai { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--accent), 0 0 0 7px var(--accent-tint); }
/* neighbourhood-level pin: a ~400 m translucent disc with a dashed outline (its size follows the zoom: --ad), the rent in a chip at the middle */
.ap { position: absolute; left: 0; top: 0; width: var(--ad, 60px); height: var(--ad, 60px); transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--bc) 75%, transparent); background: color-mix(in srgb, var(--bc) 9%, transparent); pointer-events: none; }
.apl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 26px; text-align: center; background: var(--bb); color: var(--bc); border: 1.5px dashed var(--bc); border-radius: 999px; padding: 2px 7px; font: 600 12px/1.1 var(--display); pointer-events: auto; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.ap.ai .apl { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--accent); border-style: solid; }
.mkw.hl .ap { background: color-mix(in srgb, var(--bc) 22%, transparent); border-color: var(--bc); }
.mkw.hl { z-index: 99999 !important; }
.apsmall .ap { background: none; border: 0; }
.mc { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); border: 2px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); cursor: pointer; line-height: 1.1; }
.mc b { font: 600 15px/1 var(--display); }
.mc span { font-size: 10px; font-weight: 600; }
.mkw.hl .mc { background: var(--accent); color: var(--surface); }
.wk { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--surface); display: grid; place-items: center; border: 2px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.ring { stroke: var(--accent); stroke-opacity: .8; fill: none; }
.ringlbl { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 600 11px/1.3 var(--body); background: var(--surface); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 7px; }
.mapctl { display: flex; flex-direction: column; margin-top: 8px !important; }
.mapctl button { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 0; background: var(--surface); color: var(--fg); font: 12px var(--body); padding: 5px 9px; white-space: nowrap; text-align: left; }
.mapctl button + button { border-top: 1px solid var(--line); }
.mapctl button:hover { background: var(--accent-tint); }
.leaflet-bar a, .leaflet-bar a:hover { background-color: var(--surface); color: var(--fg); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background-color: var(--accent-tint); }
.leaflet-bar { border: 1px solid var(--line); box-shadow: none; }
.leaflet-container { font-family: var(--body); }
.leaflet-container a { color: var(--accent); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 88%, transparent) !important; color: var(--muted); }
.leaflet-tooltip { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font: 12px var(--body); }
.leaflet-tooltip-top:before { border-top-color: var(--line); }
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.88); } }
/* popup card */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--fg); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.mp .leaflet-popup-content { margin: 10px; width: 300px !important; font: 13px/1.4 var(--body); }
.mp .leaflet-popup-close-button { top: 14px; right: 14px; width: 24px; height: 24px; padding: 0; font: 18px/22px var(--body); text-align: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; z-index: 2; }
.mp .leaflet-popup-close-button:hover { background: rgba(0, 0, 0, .85); color: #fff; }
.mp-pop { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mpcover { position: relative; display: block; width: 100%; height: 136px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--unk-bg); cursor: pointer; }
.mpcover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mpcover.none { height: 34px; display: grid; place-items: center; cursor: default; font-size: 12px; }
.mphead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.mpid { font-family: var(--display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.mphead .tag { margin: 0; }
.mptitle .adtitle { font-size: 14px; }
.mprent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mp-pop .marks { grid-template-columns: repeat(6, 30px); gap: 6px 8px; margin: 4px 0 2px; }
.mpmeta { overflow-wrap: anywhere; }
.mpapprox { background: var(--part-bg); color: var(--part); border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.mptrack { flex-direction: row; align-items: center; gap: 10px; }
.mpacts { display: flex; gap: 8px; flex-wrap: wrap; }
.mpbtn { font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.mapbtn { display: inline-grid; place-items: center; width: 26px; height: 22px; margin-top: 4px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.mapbtn:hover { background: var(--accent-tint); color: var(--accent); }

/* scans: the summary bar above the views, and the "T4" tag on a row. Full outlines and background tints only. */
.scanbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 6px 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.scanbar[hidden] { display: none; }
.scanhead { display: flex; align-items: center; gap: 8px; }
.scanhead select { font-size: 13px; padding: 4px 8px; }
.scannote { text-decoration: underline dotted; cursor: help; }
.scansites { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.scansite { display: flex; align-items: baseline; gap: 4px 9px; font-size: 12px; color: var(--muted); padding: 3px 10px; border-radius: 8px; background: var(--bg); }
.scansite b { color: var(--fg); font-size: 12px; }
.scansite .cnt { font: inherit; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.scansite button.cnt { background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 0 4px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.scansite button.cnt:hover { background: var(--accent-tint); border-color: var(--accent); }
.scansite .cnt.zero { color: var(--muted); font-weight: 500; padding: 0 4px; }
button.scantag { font: inherit; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent); cursor: pointer; }
button.scantag:hover { background: var(--accent); color: var(--surface); }
.scanhint { color: var(--muted); font-style: italic; }
.scanclear { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent); cursor: pointer; }
.scanclear:hover { background: var(--accent); color: var(--surface); }

/* ---- price model: expected rent under the rent (muted, no colour judgement) ---- */
.c-price .model { cursor: help; white-space: nowrap; margin-top: 2px; }

/* ---- the rent calculator ("Kira hesapla"). Full outlines and background tints only. ---- */
#calcdlg { width: min(1040px, 94vw); }
.helpbtn:disabled { opacity: .55; cursor: default; }
.helpbtn:disabled:hover { background: var(--surface); }
.c-price .model[data-calc] { cursor: pointer; border-radius: 4px; }
.c-price .model[data-calc]:hover { background: var(--accent-tint); }
.calcgrid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.calcform { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.calcfrom { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.calcfrom .inwrap input { width: 8em; }
.calcfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; max-height: 52vh; overflow-y: auto; overflow-x: hidden; padding: 2px 6px 2px 2px; }
.calcfields .field select, .calcfields .field input[type=text] { width: 100%; padding: 4px 8px; font-size: 13px; }
.calcfields .field:nth-child(1), .calcfields .field:last-child { grid-column: 1 / -1; }
.calcfields .inwrap { display: flex; align-items: center; gap: 6px; }
.calcact { display: flex; justify-content: flex-end; }
.calcout { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: 64vh; overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
.calcout h3 { margin: 4px 0 0; font-family: var(--display); font-size: 14px; }
.calcout p { margin: 0; }
.calc-main { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-tint); display: flex; flex-direction: column; gap: 4px; }
.calc-big { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.calc-range { font-size: 15px; }
.calc-dev { margin-top: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.calc-warn { padding: 6px 10px; border: 1px solid var(--part); border-radius: 8px; background: var(--part-bg); font-size: 13px; }
.calc-wait { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.calc-parts { width: 100%; border-collapse: collapse; font-size: 13px; }
.calc-parts th { padding: 3px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.calc-parts td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc-parts .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-parts th.num { text-align: right; }
.calc-parts .sub { font-size: 12px; }
.calc-base td, .calc-sum td { background: var(--bg); font-weight: 600; }
.calc-tag { display: inline-block; font-size: 11px; padding: 0 6px; border: 1px solid var(--part); border-radius: 999px; background: var(--part-bg); color: var(--part); white-space: nowrap; }
.agex-head { margin-top: 8px; }

/* ---- sign-in, tokens, and the visitor's (read-only) view ---- */
.authbar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: -10px 0 6px; min-height: 18px; }
.authbar[hidden] { display: none; }
.authbar .linkact { font-size: 12px; }
.dlgbox.narrow { max-width: 420px; }
dialog:has(.dlgbox.narrow) { width: min(420px, 92vw); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack input { width: 100%; box-sizing: border-box; }
.tk-list { overflow-x: auto; }
.tk-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tk-table th, .tk-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tk-table tr.off td { color: var(--muted); }
.tk-table code, .tk-secretbox code { font-family: ui-monospace, monospace; font-size: 12px; }
.tk-new { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tk-new .field { flex: 1 1 220px; }
.tk-scopes { border: 0; padding: 0; margin: 0; display: flex; gap: 12px; align-items: center; }
.tk-scopes legend { float: left; margin-right: 8px; padding: 0; }
.tk-scopes label { display: inline-flex; gap: 4px; align-items: center; }
.tk-secretbox { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-secretbox[hidden] { display: none; }
.tk-secretrow { display: flex; gap: 8px; align-items: center; }
.tk-secretrow code { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.seg:disabled { cursor: default; }
.seg:disabled:not(.on) { opacity: .5; }
.seg:disabled:not(.on):hover { background: var(--surface); }
/* a visitor: nothing that writes */
html[data-role="public"] .notebtn, html[data-role="public"] .editbtn, html[data-role="public"] [data-merge], html[data-role="public"] .splitbtn,
html[data-role="public"] #v-new, html[data-role="public"] #m-save, html[data-role="public"] #m-saveas, html[data-role="public"] [data-vmenu], html[data-role="public"] .chatbtn { display: none !important; }
.stack input, .tk-new input[type=text] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; box-sizing: border-box; }

/* Hurma treatment plant: a small round grey-violet marker, a thin dashed ring (no fill), a legend swatch */
.pl { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--muted); display: grid; place-items: center; border: 2px dashed var(--muted); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.plantring { stroke: var(--muted); stroke-opacity: .85; fill: none; }
.ringlbl.plantlbl { color: var(--muted); border-color: var(--muted); border-style: dashed; }
.lgplant { cursor: pointer; }
.lgplant input { margin: 0; }
.lgd.plt { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px dashed var(--muted); background: var(--surface); color: var(--muted); }
.plantpopup .plantpop { font-size: 12px; line-height: 1.45; max-width: 280px; }
.plantpopup .plantpop p { margin: 4px 0 0; }
