@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════════ */
:root {
  --ink:   #F2F2F8;
  --s0:    #FFFFFF;
  --s1:    #F8F8FC;
  --s2:    #EEEEF6;
  --s3:    #E4E4F0;
  --glass: rgba(255,255,255,.96);
  --bd:    rgba(0,0,0,.08);
  --bd2:   rgba(0,0,0,.04);

  --tx:    #0C0C18;
  --tx2:   #525268;
  --tx3:   #8A8A9E;
  --tx4:   #C2C2D2;

  --a:     #059669;
  --a2:    rgba(5,150,105,.1);
  --a3:    rgba(5,150,105,.05);

  --gold:  #B45309;
  --gold2: rgba(180,83,9,.1);
  --red:   #DC2626;
  --red2:  rgba(220,38,38,.1);
  --blue:  #2563EB;
  --blue2: rgba(37,99,235,.1);
  --amber: #CA8A04;
  --amber2:rgba(202,138,4,.12);
  --violet:#7C3AED;
  --violet2:rgba(124,58,237,.1);

  --sb:   252px;
  --hh:   56px;
  --r:    10px;
  --aw:   130px;
  --ah:   132px;
  --lw:   80px;
  --sw:   100px;
  --nbh:  30px;
  --pz:   1;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--tx);
  display: flex;
  overflow: hidden;
  transition: background .3s, color .3s;
}
input, select, button, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.2); }

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sb); min-width: var(--sb);
  display: flex; flex-direction: column;
  background: var(--s0);
  border-right: 1px solid var(--bd);
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.sb-top {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}

.sb-brand {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px;
}

.sb-logo {
  width: 36px; height: 36px; object-fit: contain; flex-shrink: 0;
  opacity: 1;
}

.sb-title {
  font-size: 18px; font-weight: 800;
  color: var(--tx); letter-spacing: -.5px; line-height: 1;
}

.sb-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--a); margin-top: 2px;
}
.sb-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--a);
}


.sb-section { padding: 12px 16px 4px; flex-shrink: 0; }
.sb-sec-lbl {
  font-size: 8px; font-weight: 800;
  color: var(--tx4); letter-spacing: 2px; text-transform: uppercase;
}

.sb-list { flex: 1; overflow-y: auto; padding: 4px 8px; min-height: 0; }

.bcard {
  padding: 10px 11px; border-radius: 8px; margin-bottom: 2px;
  cursor: pointer; border: 1px solid transparent;
  background: transparent; transition: background .12s, border-color .12s;
  position: relative;
}
.bcard::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--a); border-radius: 0 2px 2px 0;
  opacity: 0; transition: opacity .15s;
}
.bcard:hover { background: var(--s2); }
.bcard.active { background: var(--a3); border-color: var(--a2); }
.bcard.active::before { opacity: 1; }

.bc-name {
  font-size: 13px; font-weight: 700; color: var(--tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bcard.active .bc-name { color: var(--a); }

.bc-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.bc-meta { font-size: 10px; color: var(--tx3); }
.bc-pct  { font-size: 10px; font-weight: 700; color: var(--a); }
.bc-bar  { margin-top: 6px; height: 2px; background: var(--bd); border-radius: 2px; overflow: hidden; }
.bc-fill {
  height: 100%; background: var(--a);
  border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1);
}

.sb-foot { padding: 8px 8px 12px; border-top: 1px solid var(--bd); flex-shrink: 0; }
.sb-new {
  width: 100%; padding: 11px 14px; margin-bottom: 7px;
  background: var(--a); color: #04120A;
  border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .13s, transform .13s;
}
.sb-new:hover { opacity: .88; transform: translateY(-1px); }

.sb-io { display: flex; gap: 5px; margin-bottom: 6px; }
.sb-io-btn {
  flex: 1; padding: 7px 5px;
  font-size: 9px; font-weight: 700; letter-spacing: .3px;
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 7px; color: var(--tx3);
  cursor: pointer; text-align: center; transition: all .12s;
}
.sb-io-btn:hover { background: var(--s3); color: var(--tx2); }

.sb-saved {
  text-align: center; font-size: 9px; color: var(--tx4);
  font-weight: 500; letter-spacing: .3px;
}

.m-ov {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 190;
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN
═══════════════════════════════════════════════════════════════════ */
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════ */
.hdr {
  height: var(--hh); min-height: var(--hh); flex-shrink: 0;
  background: var(--glass);
  border-bottom: 1px solid var(--bd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 8px; padding: 0 18px; z-index: 10;
}

.hbg {
  display: none; background: none; border: none; font-size: 17px;
  cursor: pointer; color: var(--tx2); width: 34px; height: 34px;
  border-radius: 7px; align-items: center; justify-content: center;
  transition: background .12s; flex-shrink: 0;
}
.hbg:hover { background: var(--s2); }

.hdr-name {
  font-size: 16px; font-weight: 700; color: var(--tx); letter-spacing: -.4px;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hdr-sub {
  font-size: 10px; color: var(--tx3); margin-left: 8px; font-weight: 500;
}

.hbtn {
  padding: 7px 13px; border-radius: 7px; border: none;
  font-size: 11px; font-weight: 600; letter-spacing: .1px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: all .13s; white-space: nowrap; flex-shrink: 0;
}
.hbtn:hover { transform: translateY(-1px); }

.hbtn-ghost {
  background: var(--s2); color: var(--tx2); border: 1px solid var(--bd);
}
.hbtn-ghost:hover { color: var(--tx); border-color: var(--bd); }

.hbtn-accent {
  background: var(--a); color: #04120A; font-weight: 700;
}
.hbtn-accent:hover { opacity: .88; }
[data-theme="light"] .hbtn-accent { color: #fff; }


/* ═══════════════════════════════════════════════════════════════════
   CONTENT
═══════════════════════════════════════════════════════════════════ */
.content {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: auto;
  padding: 18px 20px; position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════════════════ */
.empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 12px; text-align: center;
}
.empty-logo {
  width: 56px; height: 56px; object-fit: contain;
  opacity: .12;
}
.empty h2 {
  font-size: 26px; font-weight: 800; color: var(--tx);
  letter-spacing: -.8px;
}
.empty p { font-size: 13px; color: var(--tx3); max-width: 260px; line-height: 1.7; }
.empty-btn {
  margin-top: 8px; padding: 12px 28px;
  background: var(--a); color: #04120A;
  border: none; border-radius: 9px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
[data-theme="light"] .empty-btn { color: #fff; }
.empty-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
}
.sc {
  background: var(--s1);
  padding: 18px 20px 16px;
  position: relative;
  transition: background .13s;
}
.sc:hover { background: var(--s2); }

.sc-l {
  font-size: 8px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--tx3); margin-bottom: 9px;
}

.sc-v {
  font-size: 34px; font-weight: 800; line-height: 1;
  letter-spacing: -1.5px; color: var(--tx);
}
.sc-v.money {
  font-size: 13px; font-weight: 700; letter-spacing: -.3px;
  line-height: 1.5; color: var(--gold);
}
.sc-t .sc-v { color: var(--tx); }
.sc-r .sc-v { color: var(--red); }
.sc-g .sc-v { color: var(--a); }
.sc-wide { grid-column: span 2; }

/* ═══════════════════════════════════════════════════════════════════
   LEGEND
═══════════════════════════════════════════════════════════════════ */
.legend {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.li { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--tx3); }
.ld { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.leg-hint { margin-left: auto; font-size: 9px; color: var(--tx4); display: flex; gap: 5px; }
.leg-hint span {
  background: var(--s1); border: 1px solid var(--bd);
  padding: 2px 8px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════════
   BUILDING WRAP
═══════════════════════════════════════════════════════════════════ */
.bwrap {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 12px; overflow: hidden;
  display: inline-block; min-width: 100%;
}
.bwrap { box-shadow: 0 2px 16px rgba(0,0,0,.06); }

.bw-top-lbl {
  text-align: center; padding: 6px 0;
  font-size: 9px; font-weight: 800; color: var(--a);
  letter-spacing: 3px; text-transform: uppercase;
  border-bottom: 1px solid var(--bd);
}
.bw-sub-lbl {
  text-align: center; font-size: 10px; color: var(--tx3);
  letter-spacing: .4px; padding: 3px 0;
  border-bottom: 1px solid var(--bd);
}
.bw-body { display: flex; align-items: stretch; }

.fl-street {
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl;
  font-size: 7px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--tx3);
  background: var(--s2);
  padding: 6px 5px; min-width: 20px; flex-shrink: 0;
}
.fl-street.lft {
  transform: rotate(180deg);
  border-right: 1px solid var(--bd);
}
.fl-street:not(.lft) {
  border-left: 1px solid var(--bd);
}
.floors { flex: 1; display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════════
   FLOOR
═══════════════════════════════════════════════════════════════════ */
.floor {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--bd);
}
.floor:last-child { border-bottom: none; }

.fl-lbl {
  min-width: var(--lw); max-width: var(--lw); flex-shrink: 0;
  background: var(--s2); border-right: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--tx);
  text-align: center; padding: 6px 4px; letter-spacing: -.3px;
}

.fl-side { min-width: var(--sw); max-width: var(--sw); flex-shrink: 0; }
.fl-mid  { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.cph {
  padding: 3px 10px; text-align: left;
  font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--tx3); background: var(--s2);
  border-bottom: 1px solid var(--bd);
  cursor: pointer; transition: color .12s, background .12s;
  user-select: none;
}
.cph:hover { background: var(--s3); color: var(--tx2); }
.cph.bot { border-top: 1px solid var(--bd); border-bottom: none; }

.apt-row { display: flex; flex: 1; }

/* ═══════════════════════════════════════════════════════════════════
   APARTMENT CELL
═══════════════════════════════════════════════════════════════════ */
.apt, .side-apt {
  cursor: pointer; position: relative;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
  padding: 10px 10px 10px 14px;
  /* container query için */
  container-type: inline-size;
}

/* ── DURUM GÖSTERGESİ: üst şerit + sol çizgi ── */
.apt::before, .side-apt::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px; z-index: 3;
}
.apt::after, .side-apt::after {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px; z-index: 3;
}

.apt {
  flex: 1; min-width: var(--aw); height: var(--ah);
  padding-bottom: calc(var(--nbh) + 10px);
  border-right: 1px solid var(--bd);
}
.apt:last-child { border-right: none; }

.side-apt {
  flex: 1; min-width: 0; height: 100%;
  padding-bottom: calc(var(--nbh) + 10px);
  border-left: 1px solid var(--bd);
}

/* ── DURUM: SATIŞTA ── */
.st-available { background: #fff; }
.st-available::before { background: var(--a); }
.st-available::after  { background: var(--a); }
.st-available:hover   { background: rgba(5,150,105,.07); }

/* ── DURUM: SATILDI ── */
.st-sold { background: rgba(220,38,38,.20); }
.st-sold::before { background: var(--red); }
.st-sold::after  { background: var(--red); }
.st-sold:hover   { background: rgba(220,38,38,.30); }

/* ── DURUM: REZERVE ── */
.st-reserved { background: rgba(37,99,235,.18); }
.st-reserved::before { background: var(--blue); }
.st-reserved::after  { background: var(--blue); }
.st-reserved:hover   { background: rgba(37,99,235,.26); }

/* ── DURUM: ARSA SAHİBİ ── */
.st-land_owner { background: rgba(202,138,4,.22); }
.st-land_owner::before { background: var(--amber); }
.st-land_owner::after  { background: var(--amber); }
.st-land_owner:hover   { background: rgba(202,138,4,.32); }

/* ── DAİRE METİNLERİ (temel boyut ~130px hücre) ── */
.at {
  font-size: 16px; font-weight: 800; color: var(--tx);
  line-height: 1.2; position: relative; z-index: 2;
  letter-spacing: -.3px;
}
.ap {
  font-size: 13px; font-weight: 700; color: var(--gold);
  margin-top: 4px; line-height: 1.3; position: relative; z-index: 2;
}
[data-theme="light"] .ap { color: var(--gold); }
.as {
  font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; position: relative; z-index: 2;
  margin-top: 5px;
}
.an-t {
  font-size: 11px; font-weight: 500; position: relative; z-index: 2;
  margin-top: 2px; color: var(--tx3);
}

/* Satıldı renkleri — kontrast yüksek */
.st-sold .at    { color: #7f1d1d; }
.st-sold .as    { color: #991b1b; font-weight: 900; }
.st-sold .an-t  { color: #991b1b; opacity: .8; }

.st-reserved .at { color: #1e3a8a; }
.st-reserved .as { color: #1d4ed8; font-weight: 900; }

.st-land_owner .at { color: #713f12; }
.st-land_owner .as { color: #92400e; font-weight: 900; }

/* ── NUMARA ÇUBUĞU ── */
.nb {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--nbh);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .5px; z-index: 4;
}
.nc0 { background: #1d4ed8; } .nc1 { background: #991b1b; } .nc2 { background: #14532d; }
.nc3 { background: #7c2d12; } .nc4 { background: #581c87; } .nc5 { background: #134e4a; }
.nc6 { background: #1e293b; } .nc7 { background: #831843; }

/* ── CONTAINER QUERY: YAZI BOYUTU HÜCREYLE ORANTILI ── */
@container (min-width: 155px) {
  .at { font-size: 18px; }
  .ap { font-size: 14px; }
  .as { font-size: 12px; }
  .nb { font-size: 12px; }
}
@container (min-width: 200px) {
  .at { font-size: 22px; }
  .ap { font-size: 17px; }
  .as { font-size: 13px; }
  .nb { font-size: 13px; }
}
@container (min-width: 260px) {
  .at { font-size: 26px; }
  .ap { font-size: 20px; }
  .as { font-size: 14px; }
  .nb { font-size: 14px; }
}
@container (min-width: 340px) {
  .at { font-size: 32px; }
  .ap { font-size: 24px; }
  .as { font-size: 15px; }
  .nb { font-size: 15px; }
}

/* ── DURUM DEĞİŞİMİ ANİMASYONU ── */
@keyframes cellFlash {
  0%   { filter: brightness(1); }
  40%  { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}
.apt.flash, .side-apt.flash { animation: cellFlash .3s ease-out; }

/* ═══════════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════════ */
#toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 9500;
  background: var(--s1); color: var(--tx); border: 1px solid var(--bd);
  padding: 10px 16px; border-radius: 9px;
  font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; max-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
[data-theme="light"] #toast { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
#toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ═══════════════════════════════════════════════════════════════════
   TOOLTIP
═══════════════════════════════════════════════════════════════════ */
#tt { position: fixed; z-index: 9400; pointer-events: none; display: none; }
#tt.vis { display: block; animation: ttIn .12s cubic-bezier(.34,1.56,.64,1); }
@keyframes ttIn { from { opacity: 0; transform: scale(.93) translateY(5px); } to { opacity: 1; transform: none; } }

.ttb {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 11px; min-width: 188px; max-width: 240px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
[data-theme="light"] .ttb { box-shadow: 0 8px 24px rgba(0,0,0,.13); }

.tt-top {
  padding: 11px 14px; background: var(--s2);
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: space-between;
}
.tt-num {
  font-size: 18px; font-weight: 800; color: var(--tx); letter-spacing: -.6px;
}
.tt-badge {
  padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
  background: var(--bd); color: var(--tx2);
  border: 1px solid var(--bd);
}
.tt-body { padding: 9px 14px; }
.tt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 0; border-bottom: 1px solid var(--bd);
}
.tt-row:last-child { border-bottom: none; }
.tt-l { font-size: 8px; font-weight: 700; color: var(--tx3); text-transform: uppercase; letter-spacing: 1px; }
.tt-v { font-size: 12px; font-weight: 600; color: var(--tx); text-align: right; }
.tt-pv {
  font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: -.5px;
}
[data-theme="light"] .tt-pv { color: var(--gold); }
.tt-chip {
  padding: 2px 8px; border-radius: 20px;
  font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.cs-available  { background: var(--a2);      color: var(--a); }
.cs-sold       { background: var(--red2);     color: var(--red); }
.cs-land_owner { background: var(--amber2);   color: var(--amber); }
.cs-reserved   { background: var(--blue2);    color: var(--blue); }
[data-theme="light"] .cs-available  { background: #d1fae5; color: #065f46; }
[data-theme="light"] .cs-sold       { background: #fee2e2; color: #991b1b; }
[data-theme="light"] .cs-land_owner { background: #ffedd5; color: #9a3412; }
[data-theme="light"] .cs-reserved   { background: #dbeafe; color: #1e40af; }

/* ═══════════════════════════════════════════════════════════════════
   CONTEXT MENU
═══════════════════════════════════════════════════════════════════ */
#ctx {
  position: fixed; z-index: 9300;
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 10px; overflow: hidden;
  display: none; min-width: 192px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
[data-theme="light"] #ctx { box-shadow: 0 8px 24px rgba(0,0,0,.14); }
#ctx.vis { display: block; animation: ctxIn .11s cubic-bezier(.34,1.56,.64,1); }
@keyframes ctxIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.ci {
  padding: 9px 13px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--tx);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--bd);
  transition: background .08s;
}
.ci:last-child { border-bottom: none; }
.ci:hover { background: var(--s2); }
.ci.ast { font-weight: 700; color: var(--a); background: var(--a3); }
[data-theme="light"] .ci.ast { color: var(--a); background: var(--a3); }
.cx-sep { height: 1px; background: var(--bd); }
.cx-grp {
  padding: 4px 13px 2px; font-size: 8px; font-weight: 700;
  color: var(--tx4); letter-spacing: 1.5px; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM SHEET
═══════════════════════════════════════════════════════════════════ */
#bsht-ov {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(0,0,0,.7);
  display: none; align-items: flex-end;
}
#bsht-ov.vis { display: flex; }
.bsht {
  background: var(--s1); border-radius: 18px 18px 0 0;
  width: 100%; max-height: 80vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  padding-bottom: env(safe-area-inset-bottom, 12px);
  box-shadow: 0 -12px 50px rgba(0,0,0,.6);
}
[data-theme="light"] .bsht { box-shadow: 0 -6px 28px rgba(0,0,0,.12); }
.bsht-open .bsht { transform: translateY(0); }
.bsht-grip {
  width: 36px; height: 3px; background: var(--bd);
  border-radius: 2px; margin: 12px auto 0;
}
.bsht-head { padding: 15px 20px 12px; border-bottom: 1px solid var(--bd); }
.bsht-num  { font-size: 22px; font-weight: 800; color: var(--tx); letter-spacing: -.8px; }
.bsht-meta { font-size: 12px; color: var(--tx3); margin-top: 2px; }
.bsht-price { font-size: 16px; font-weight: 700; color: var(--gold); margin-top: 4px; }

.bsht-stl {
  padding: 12px 20px 5px; font-size: 8px; font-weight: 800;
  color: var(--tx4); letter-spacing: 1.8px; text-transform: uppercase;
}
.bsht-sts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.bsht-st {
  padding: 14px 8px; border-radius: 10px; border: 1px solid var(--bd);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--tx);
  background: var(--s2); transition: all .12s;
  -webkit-tap-highlight-color: transparent;
}
.bsht-st:active { transform: scale(.95); }
.bsht-st.bs-active { border-color: var(--a); background: var(--a3); color: var(--a); }
[data-theme="light"] .bsht-st.bs-active { color: var(--a); }

.bsht-foot { padding: 10px 12px 5px; display: flex; flex-direction: column; gap: 7px; }
.bsht-edit {
  width: 100%; padding: 13px; border-radius: 10px;
  border: 1px solid var(--bd); background: var(--s2);
  color: var(--tx2); font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .12s;
}
.bsht-edit:active { background: var(--s3); }
.bsht-cancel { width: 100%; padding: 10px; border: none; background: transparent; color: var(--tx3); font-size: 13px; font-weight: 500; cursor: pointer; }


/* ═══════════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════════ */
.ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72); z-index: 8000;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); padding: 14px;
}
.ov.vis { display: flex; }

.mb {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 14px; width: 480px; max-width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: mbIn .15s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 28px 70px rgba(0,0,0,.8);
}
[data-theme="light"] .mb { box-shadow: 0 16px 44px rgba(0,0,0,.15); }
.mb.wide { width: 720px; }
@keyframes mbIn { from { opacity: 0; transform: scale(.95) translateY(12px); } to { opacity: 1; transform: none; } }

.mb-h {
  padding: 18px 20px 14px; border-bottom: 1px solid var(--bd);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.mb-h h3 { font-size: 16px; font-weight: 700; color: var(--tx); letter-spacing: -.3px; }
.mb-h p  { font-size: 11px; color: var(--tx3); margin-top: 2px; }
.mb-x {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 7px;
  color: var(--tx3); font-size: 12px; cursor: pointer;
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s; flex-shrink: 0;
}
.mb-x:hover { background: var(--s3); color: var(--tx); }
.mb-b  { padding: 18px 20px; }
.mb-f  {
  padding: 12px 20px; border-top: 1px solid var(--bd);
  display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap;
}

/* ── FORM ── */
.fg { margin-bottom: 13px; }
.fg label {
  display: block; font-size: 8px; font-weight: 700;
  color: var(--tx3); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 1px;
}
.fg input, .fg select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--bd); border-radius: 8px;
  font-size: 13px; color: var(--tx); background: var(--s2); outline: none;
  transition: border-color .13s, box-shadow .13s;
}
.fg input:focus, .fg select:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 3px var(--a3);
}
[data-theme="light"] .fg input, [data-theme="light"] .fg select {
  background: #fff; color: var(--tx);
}
.fg select option { background: var(--s1); }
.frow { display: flex; gap: 11px; }
.frow .fg { flex: 1; }

/* ── BUTTONS ── */
.mbtn {
  padding: 10px 16px; border-radius: 8px; border: none;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .12s; white-space: nowrap; letter-spacing: .1px;
}
.mbtn:hover { transform: translateY(-1px); }
.mbtn-p { background: var(--a); color: #04120A; font-weight: 700; }
.mbtn-p:hover { opacity: .88; }
[data-theme="light"] .mbtn-p { color: #fff; }
.mbtn-g { background: var(--s2); color: var(--tx2); border: 1px solid var(--bd); }
.mbtn-g:hover { background: var(--s3); color: var(--tx); }
.mbtn-d { background: var(--red2); color: var(--red); border: 1px solid rgba(248,113,113,.2); }
[data-theme="light"] .mbtn-d { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.mbtn-o { background: var(--gold2); color: var(--gold); border: 1px solid rgba(251,191,36,.2); }
[data-theme="light"] .mbtn-o { background: #FEF9E7; color: #92400E; border-color: #FDE68A; }
.mbtn-gr { background: var(--a2); color: var(--a); border: 1px solid var(--a3); }
[data-theme="light"] .mbtn-gr { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }

/* ── COLOR PICKER ── */
.cpick { display: flex; gap: 7px; flex-wrap: wrap; }
.cpsw {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all .12s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.cpsw:hover { transform: scale(1.18); }
.cpsw.sel { border-color: var(--tx); transform: scale(1.08); }

/* ── RADIO ── */
.rrow { display: flex; gap: 14px; flex-wrap: wrap; }
.rl { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; color: var(--tx); font-weight: 500; }
.rl input[type=radio] { accent-color: var(--a); width: 14px; height: 14px; }

/* ── AUTO-NUM PREVIEW ── */
.an-pre {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 8px; padding: 10px 13px;
  font-size: 12px; color: var(--tx); font-weight: 700;
  letter-spacing: .3px; min-height: 36px;
}

/* ── CORNER PICKER ── */
.an-corner-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 5px;
}
.an-corner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 13px 8px; border: 1px solid var(--bd); border-radius: 9px;
  background: var(--s2); cursor: pointer;
  transition: all .12s; text-align: center;
}
.an-corner:hover { background: var(--s3); border-color: rgba(255,255,255,.12); }
.an-corner.active { border-color: var(--a); background: var(--a3); }
.an-corner-arrow {
  font-size: 22px; line-height: 1; color: var(--tx2);
  transition: color .12s;
}
.an-corner.active .an-corner-arrow { color: var(--a); }
.an-corner-label {
  font-size: 10px; font-weight: 600; color: var(--tx3);
  transition: color .12s;
}
.an-corner.active .an-corner-label { color: var(--a); }

/* ── ADVANCED SECTION SEPARATOR ── */
.an-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 12px;
  font-size: 9px; font-weight: 700; color: var(--tx4);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.an-sep::before, .an-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--bd);
}

/* ── FIELD HELP / HINT ── */
.field-help {
  font-size: 9px; font-weight: 400; color: var(--tx3);
  text-transform: none; letter-spacing: 0;
}
.field-hint {
  font-size: 10px; color: var(--tx3); margin: 2px 0 8px; line-height: 1.6;
}


/* ── WIZARD ── */
.wpg { display: flex; margin-bottom: 20px; position: relative; }
.wpg::before {
  content: ''; position: absolute; top: 11px; left: 28px; right: 28px;
  height: 1px; background: var(--bd); z-index: 0;
}
.wp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 1; }
.wpd {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  background: var(--s2); color: var(--tx3); border: 1px solid var(--bd);
  transition: all .18s;
}
.wp.done .wpd   { background: var(--a); border-color: var(--a); color: #04120A; }
[data-theme="light"] .wp.done .wpd { color: #fff; }
.wp.active .wpd { background: var(--a); border-color: var(--a); color: #04120A; }
[data-theme="light"] .wp.active .wpd { color: #fff; }
.wpl { font-size: 9px; font-weight: 600; color: var(--tx3); }
.wp.active .wpl { color: var(--a); font-weight: 700; }
.wp.done .wpl   { color: var(--a); }

/* ── FLOOR CONFIG TABLE ── */
.fct { width: 100%; border-collapse: collapse; font-size: 12px; }
.fct th {
  text-align: left; font-size: 8px; font-weight: 700; color: var(--tx3);
  padding: 6px 7px; background: var(--s2); border-bottom: 1px solid var(--bd);
  letter-spacing: 1px; text-transform: uppercase;
}
.fct th:not(:first-child) { text-align: center; }
.fct td { padding: 3px 4px; vertical-align: middle; }
.fct tr:nth-child(even) td { background: rgba(255,255,255,.015); }
[data-theme="light"] .fct tr:nth-child(even) td { background: rgba(0,0,0,.02); }
.fct input[type=text], .fct input[type=number] {
  width: 100%; padding: 5px 7px; border: 1px solid var(--bd);
  border-radius: 6px; font-size: 12px; color: var(--tx);
  background: var(--s1); outline: none; transition: border-color .12s;
}
.fct input:focus { border-color: var(--a); }
.fct input[type=number] { text-align: center; }
.fct input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: var(--a); display: block; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════ */
@keyframes floorIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.floor { opacity: 0; animation: floorIn .36s ease forwards; }
.floor:nth-child(1)  { animation-delay: .03s; }
.floor:nth-child(2)  { animation-delay: .06s; }
.floor:nth-child(3)  { animation-delay: .09s; }
.floor:nth-child(4)  { animation-delay: .12s; }
.floor:nth-child(5)  { animation-delay: .15s; }
.floor:nth-child(6)  { animation-delay: .18s; }
.floor:nth-child(7)  { animation-delay: .21s; }
.floor:nth-child(8)  { animation-delay: .24s; }
.floor:nth-child(9)  { animation-delay: .27s; }
.floor:nth-child(10) { animation-delay: .30s; }
.floor:nth-child(n+11) { animation-delay: .33s; }

@keyframes statIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.sc { opacity: 0; animation: statIn .3s ease forwards; }
.sc:nth-child(1) { animation-delay: .04s; }
.sc:nth-child(2) { animation-delay: .08s; }
.sc:nth-child(3) { animation-delay: .12s; }
.sc:nth-child(4) { animation-delay: .16s; }
.sc:nth-child(5) { animation-delay: .2s; }
.sc:nth-child(n+6) { animation-delay: .24s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --lw: 62px; --sw: 82px; --aw: 90px; --ah: 96px; --nbh: 24px; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 201; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .m-ov.show { display: block; }
  .hbg { display: flex !important; }
  .hdr { padding: 0 12px; }
  .hdr-name { font-size: 14px; }
  .hdr-sub { display: none; }
  .hbtn .ht { display: none; }
  .content { padding: 10px 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sc-wide { grid-column: span 2; }
  .sc-v { font-size: 28px; }
  .frow { flex-direction: column; gap: 0; }
  .mb-f { flex-direction: column; }
  .mb-f .mbtn { width: 100%; }
}
@media (min-width: 769px) { .hbg { display: none !important; } }

.an-pf { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.an-pf + .an-pf { border-top: 1px dashed var(--bd); }
.an-pl { width: 54px; font-size: 10px; color: var(--tx); opacity: .6; }
.an-pr { display: flex; gap: 4px; margin: 2px 0; }
.an-pc { min-width: 30px; text-align: center; padding: 3px 4px; border-radius: 5px; background: var(--s1, rgba(127,127,127,.12)); border: 1px solid var(--bd); }
.an-pc.off { opacity: .35; }
.an-pm { font-size: 11px; opacity: .5; padding-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   KOLAY KULLANIM: düzenleme modu, seçim, toplu çubuk, yardım
═══════════════════════════════════════════════════════════════════ */
.noanim .floor, .stats.noanim .sc { animation: none; opacity: 1; }
.hbtn:disabled { opacity: .4; cursor: default; transform: none; }
.hbtn-help { width: 32px; justify-content: center; font-weight: 800; font-size: 13px; padding: 6px 0; }

/* Toast + Geri Al düğmesi */
#toast.act { pointer-events: auto; max-width: 380px; display: flex; align-items: center; gap: 10px; }
.t-act {
  margin-left: auto; background: var(--a); color: #fff; border: none; border-radius: 6px;
  padding: 5px 11px; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.t-act:hover { opacity: .88; }

/* Lejant = filtre düğmeleri */
button.li {
  background: var(--s1); border: 1px solid var(--bd); border-radius: 20px;
  padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all .12s;
}
button.li:hover { border-color: var(--tx4); color: var(--tx); }
button.li.on { border-color: var(--tx2); color: var(--tx); background: var(--s0); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
button.li.off { opacity: .45; }
.li-n { font-weight: 800; color: var(--tx2); }
.li-clr { color: var(--red); }
.apt.dim, .side-apt.dim { opacity: .18; filter: grayscale(.7); }

/* Boş daire ipucu */
.a-empty { font-size: 10px; color: var(--tx4); font-weight: 600; position: relative; z-index: 2; line-height: 1.4; }
.apt:hover .a-empty, .side-apt:hover .a-empty { color: var(--a); }

/* Düzenleme bandı */
.ed-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  background: #ECFDF5; border: 1px solid rgba(5,150,105,.3); border-radius: 10px;
  padding: 10px 14px; font-size: 12px; color: #065F46; line-height: 1.6;
}
.ed-b-ico { font-size: 20px; }
.ed-b-txt { flex: 1; }
.ed-banner .mbtn { flex-shrink: 0; color: #fff; }

/* Düzenleme modunda bina */
.bwrap.editing { --lw: 118px; outline: 2px dashed rgba(5,150,105,.45); outline-offset: 3px; }
.fl-lbl.ed { flex-direction: column; gap: 5px; padding: 6px; }
.fl-in, .cph-in {
  width: 100%; font-family: inherit; border: 1px solid var(--bd); border-radius: 6px;
  background: #fff; color: var(--tx); outline: none;
}
.fl-in { font-size: 12px; font-weight: 800; text-align: center; padding: 5px 4px; }
.fl-in:focus, .cph-in:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a3); }
.cph.ed { padding: 2px 6px; cursor: default; }
.cph.ed:hover { background: var(--s2); }
.cph-in { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 6px; max-width: 260px; }
.fl-tools { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.fl-tools button, .apt-tools button {
  width: 21px; height: 21px; border-radius: 5px; border: 1px solid var(--bd);
  background: #fff; color: var(--tx2); font-size: 11px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit;
}
.fl-tools button:hover, .apt-tools button:hover { border-color: var(--a); color: var(--a); }
.fl-tools button.x:hover, .apt-tools button.x:hover { border-color: var(--red); color: #fff; background: var(--red); }
.fl-tools button:disabled { opacity: .3; cursor: default; }

.apt-tools {
  position: absolute; top: 7px; right: 5px; z-index: 6; display: flex; gap: 2px;
  opacity: 0; transition: opacity .12s;
}
.apt:hover .apt-tools, .side-apt:hover .apt-tools, [data-touch] .apt-tools { opacity: 1; }

.row-add, .side-add, .fl-add {
  border: 1.5px dashed rgba(5,150,105,.45); background: var(--a3); color: var(--a);
  font-family: inherit; font-weight: 800; cursor: pointer; transition: all .12s;
}
.row-add:hover, .side-add:hover, .fl-add:hover { background: var(--a2); border-color: var(--a); }
.row-add { width: 38px; flex-shrink: 0; font-size: 18px; border-radius: 6px; margin: 6px; }
.side-add {
  width: 34px; flex-shrink: 0; font-size: 15px; border-radius: 6px; margin: 6px 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.side-add span { font-size: 8px; letter-spacing: .5px; }
.fl-add { margin: 6px; padding: 9px; font-size: 12px; border-radius: 8px; }

/* Seçim */
.apt-chk {
  position: absolute; top: 8px; left: 9px; z-index: 6; width: 16px; height: 16px;
  border-radius: 4px; border: 1.5px solid var(--tx4); background: rgba(255,255,255,.9);
}
.apt.sel, .side-apt.sel { box-shadow: inset 0 0 0 3px var(--violet); }
.sel .apt-chk { background: var(--violet); border-color: var(--violet); }
.sel .apt-chk::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; height: 100%; }
.apt-chk ~ .at, .apt-chk ~ .a-empty { margin-top: 16px; }

/* Toplu düzenleme çubuğu */
#bulk {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 160%);
  z-index: 7000; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  background: var(--s0); border: 1px solid var(--bd); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 10px 14px;
  max-width: calc(100vw - 24px); width: max-content;
  transition: transform .22s cubic-bezier(.34,1.3,.64,1); font-size: 12px;
}
#bulk.vis { transform: translate(-50%, 0); }
@media (min-width: 769px) { #bulk { margin-left: calc(var(--sb) / 2); max-width: calc(100vw - var(--sb) - 24px); } }
body.has-bulk .content { padding-bottom: 150px; }
.bk-cnt { color: var(--tx2); display: flex; align-items: center; gap: 8px; }
.bk-cnt b { color: var(--violet); font-size: 16px; }
.bk-lnk { background: none; border: none; color: var(--a); font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: underline; font-family: inherit; }
.bk-grp { display: flex; align-items: center; gap: 5px; padding-left: 14px; border-left: 1px solid var(--bd); }
.bk-l { font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tx3); }
.bk-grp input {
  width: 110px; padding: 6px 8px; border: 1px solid var(--bd); border-radius: 6px;
  font-size: 12px; font-family: inherit; outline: none; background: #fff; color: var(--tx);
}
.bk-grp input:focus { border-color: var(--a); }
.bk-st, .bk-go, .bk-del, .bk-x {
  border-radius: 6px; padding: 6px 9px; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; border: 1px solid var(--bd); background: var(--s2); color: var(--tx2);
}
.bk-st.st-av { color: var(--a); }    .bk-st.st-so { color: var(--red); }
.bk-st.st-re { color: var(--blue); } .bk-st.st-la { color: var(--amber); }
.bk-st:hover { background: var(--s3); }
.bk-go { background: var(--a); color: #fff; border-color: var(--a); }
.bk-go:hover { opacity: .88; }
.bk-del { color: var(--red); background: var(--red2); border-color: rgba(220,38,38,.25); }
.bk-x { margin-left: auto; }

/* Daire penceresi ekleri */
.price-h { color: var(--gold); font-weight: 700; margin: 5px 0 0; min-height: 15px; }
#apt-loc { color: var(--a); font-weight: 600; }
.mbtn:disabled { opacity: .35; cursor: default; transform: none; }

/* Bina ayarları: yapı düzenleme kutusu */
.bs-struct {
  display: flex; align-items: center; gap: 12px; margin-top: 6px;
  background: var(--s2); border: 1px solid var(--bd); border-radius: 9px; padding: 11px 13px;
  font-size: 11px; color: var(--tx2); line-height: 1.6;
}
.bs-struct > div { flex: 1; }
.bs-struct b { color: var(--tx); }

/* Yardım */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { display: flex; gap: 11px; background: var(--s2); border: 1px solid var(--bd); border-radius: 10px; padding: 11px 13px; }
.hp-i { font-size: 20px; line-height: 1.2; width: 26px; text-align: center; flex-shrink: 0; }
.hp b { font-size: 12px; color: var(--tx); }
.hp p { font-size: 11px; color: var(--tx2); line-height: 1.6; margin-top: 3px; }

@media (max-width: 768px) {
  .help { grid-template-columns: 1fr; }
  .bwrap.editing { --lw: 96px; }
  .bk-grp { padding-left: 0; border-left: none; flex-wrap: wrap; }
  #bulk { bottom: 8px; padding: 9px 10px; }
  .ed-banner { flex-direction: column; align-items: stretch; }
  .bs-struct { flex-direction: column; align-items: stretch; }
}
body.has-bulk #toast { bottom: 96px; }
.ed-short { display: none; }
@media (max-width: 768px) {
  #bulk { flex-wrap: nowrap; overflow-x: auto; width: calc(100vw - 16px); justify-content: flex-start; gap: 10px; }
  #bulk > * { flex-shrink: 0; }
  .bk-grp { flex-wrap: nowrap; }
  .bk-grp input { width: 92px; }
  body.has-bulk #toast { bottom: 80px; }
  .ed-banner { flex-direction: row; align-items: center; padding: 8px 10px; font-size: 11px; }
  .ed-b-ico { display: none; }
  .ed-short { display: inline; } .ed-long { display: none; }
}
.sb-saved.ok { color: var(--a); }
.sb-saved.err { color: var(--red); font-weight: 700; }

/* ═══ Giriş ve kullanıcılar ═══════════════════════════════════════ */
[hidden] { display: none !important; }
.lg { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(5,150,105,.25), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(37,99,235,.18), transparent 60%), #0b0f19; }
.lg-card { width: 100%; max-width: 380px; background: var(--s0); border: 1px solid var(--bd); border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lg-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 4px; }
.lg-card h1 { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--tx); }
.lg-card > p { text-align: center; font-size: 13px; color: var(--tx3); margin-bottom: 8px; }
.lg-card label { font-size: 12.5px; font-weight: 600; color: var(--tx2); margin-top: 4px; }
.lg-card input { padding: 12px; border: 1px solid var(--bd); border-radius: 11px; background: var(--s1); color: var(--tx); font: inherit; font-size: 16px; width: 100%; min-width: 0; }
.lg-pw { display: flex; gap: 6px; }
.lg-pw button { width: 48px; border: 1px solid var(--bd); border-radius: 11px; background: var(--s1); cursor: pointer; }
.lg-btn { margin-top: 12px; padding: 13px; font-size: 15px; width: 100%; }
.lg-err { color: var(--red); font-weight: 600; font-size: 13.5px; text-align: center; min-height: 18px; }
.sb-me { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd); }
.sb-me-i { width: 32px; height: 32px; border-radius: 10px; background: var(--a2); color: var(--a); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.sb-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sb-me-t b { font-size: 13px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-me-t span { font-size: 11px; color: var(--tx3); }
.sb-me-b { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--bd); background: var(--s2); color: var(--tx2); cursor: pointer; font-size: 15px; flex-shrink: 0; }
.sb-me-b:hover { background: var(--s3); color: var(--tx); }
.us-list { display: flex; flex-direction: column; }
.us-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--bd); flex-wrap: wrap; }
.us-row:first-child { border-top: none; }
.us-u { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--tx3); width: 84px; }
.us-row input, .us-add input, .us-add select { padding: 9px 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--s1); color: var(--tx); font: inherit; font-size: 14px; min-width: 0; }
.us-row input { flex: 1; min-width: 130px; }
.us-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--s2); color: var(--tx2); }
.us-tag.adm { background: var(--a2); color: var(--a); }
.us-row .mbtn { padding: 7px 10px; font-size: 12.5px; }
.us-h { font-size: 13.5px; font-weight: 700; color: var(--tx); margin: 18px 0 8px; }
.us-add { display: flex; gap: 8px; flex-wrap: wrap; }
.us-add input, .us-add select { flex: 1 1 150px; }
.us-new { width: 100%; background: var(--a2); border: 1px solid var(--a); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; color: var(--tx); margin-top: 8px; }
.us-new b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.us-pw { width: 100%; display: flex; gap: 6px; }
.us-pw input { flex: 1; }
