:root {
  --canvas: #EBEBEE;
  --dot: rgba(24, 24, 27, .13);
  --panel: #FFFFFF;
  --panel-2: #F6F6F8;
  --line: #E6E6EA;
  --text: #18181B;
  --muted: #71717A;
  --faint: #A1A1AA;
  --accent: #2F5FE0;
  --accent-2: #2652C9;
  --accent-soft: #EAF0FD;
  --guide: #F0483E;
  --danger: #DC2626;
  --shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 6px 24px -6px rgba(16, 16, 20, .12);
  --shadow-lg: 0 2px 6px rgba(16, 16, 20, .06), 0 18px 48px -12px rgba(16, 16, 20, .25);
  --r: 12px;
  --inv: 1;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 400 13px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overscroll-behavior: none;
  touch-action: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { display: block; flex: none; }

/* ---------- ortak ---------- */
.btn {
  height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 500; transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.wide { width: 100%; height: 40px; font-size: 14px; }
.btn.danger { color: var(--danger); }
.btn svg { width: 15px; height: 15px; }

.icon-btn {
  width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--text); text-decoration: none;
  transition: background .12s;
}
.icon-btn:hover { background: var(--panel-2); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.sm { width: 26px; height: 26px; border-radius: 6px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255,255,255,.12); }

.panel { position: fixed; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); z-index: 20; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 13.5px; letter-spacing: -.01em; }
.brand-mark { width: 20px; height: 20px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 5fr 3fr 3fr 5fr; gap: 2px; }
.brand-mark span { background: var(--text); border-radius: 2px; }
.brand-mark span:nth-child(1) { grid-row: 1 / 3; }
.brand-mark span:nth-child(2) { grid-row: 1 / 2; background: var(--accent); }
.brand-mark span:nth-child(3) { grid-row: 3 / 5; opacity: .45; }
.brand-mark span:nth-child(4) { grid-row: 2 / 5; grid-column: 2; }
.brand-mark.big { width: 40px; height: 40px; gap: 3px; margin: 0 auto 18px; }
.brand-mark.big span { border-radius: 3px; }

/* ---------- giriş ---------- */
.login {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--canvas);
}
.login-card {
  width: 100%; max-width: 340px; background: var(--panel); border-radius: 16px; padding: 36px 28px 26px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.login-card h1 { margin: 0 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-card input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px;
  margin-bottom: 10px; outline: none; transition: border-color .12s, box-shadow .12s; background: var(--panel);
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-err { min-height: 18px; margin-top: 10px; color: var(--danger); font-size: 12.5px; }
.login-card.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- kanvas ---------- */
.viewport {
  position: fixed; inset: 0; overflow: hidden; outline: none; cursor: default;
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.3px);
}
.viewport.panning, .viewport.tool-hand { cursor: grab; }
.viewport.panning:active, .viewport.grabbing { cursor: grabbing; }
.viewport.tool-frame, .viewport.tool-text { cursor: crosshair; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#layerFrames, #layerItems { position: absolute; left: 0; top: 0; }
#layerFrames { z-index: 0; } #layerItems { z-index: 1; } .overlay { z-index: 2; }

.it { position: absolute; }
.it.image { container-type: inline-size; background: #fff; box-shadow: 0 0 0 calc(1px * var(--inv)) rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08); }
.it.image img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.it.image.loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) 0 0 / 300% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.it.image .prog {
  position: absolute; left: 0; bottom: 0; height: calc(4px * var(--inv)); background: var(--accent); transition: width .2s;
}
.it .cap {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: min(calc(6px * var(--inv)), 2cqw);
  font-size: min(calc(11.5px * var(--inv)), 4.6cqw); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.it .badge {
  position: absolute; right: min(calc(8px * var(--inv)), 3cqw); top: min(calc(8px * var(--inv)), 3cqw);
  width: min(calc(22px * var(--inv)), 9cqw); height: min(calc(22px * var(--inv)), 9cqw);
  border-radius: 50% 50% 50% 4px; background: #FFD43B; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none;
}
.it:not(.frame):hover::before, .it.frame.hover-outline::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: 0 0 0 calc(1.5px * var(--inv)) var(--accent);
}

.it.frame { background: #fff; }
.it.frame .flabel {
  position: absolute; left: 0; bottom: 100%; padding-bottom: calc(5px * var(--inv));
  font-size: calc(12px * var(--inv)); line-height: 1.2; font-weight: 500; color: var(--muted); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; cursor: default; user-select: none;
}
.it.frame .flabel:hover, .it.frame.sel .flabel { color: var(--accent); }
.it.frame .flabel input {
  font: inherit; color: var(--text); border: calc(1px * var(--inv)) solid var(--accent); border-radius: calc(3px * var(--inv));
  padding: 0 calc(3px * var(--inv)); outline: none; width: calc(220px * var(--inv)); background: #fff;
}

.it.text { white-space: pre; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--text); padding: 0; min-width: 4px; }
.it.text.editing { outline: calc(1.5px * var(--inv)) solid var(--accent); cursor: text; user-select: text; white-space: pre; }
.it.text.editing:empty::after { content: "Metin yaz"; color: var(--faint); }
.it.lift { z-index: 100000 !important; filter: drop-shadow(0 calc(10px * var(--inv)) calc(24px * var(--inv)) rgba(0,0,0,.18)); }
.viewport { user-select: none; -webkit-user-select: none; }

.overlay { position: absolute; left: 0; top: 0; pointer-events: none; }
.selbox { position: absolute; box-shadow: 0 0 0 calc(1.5px * var(--inv)) var(--accent); pointer-events: none; }
.selbox.multi { box-shadow: 0 0 0 calc(1px * var(--inv)) var(--accent); }
.selbox .h {
  position: absolute; width: calc(9px * var(--inv)); height: calc(9px * var(--inv));
  background: #fff; border: calc(1.5px * var(--inv)) solid var(--accent); border-radius: calc(2px * var(--inv));
  pointer-events: auto; transform: translate(-50%, -50%);
}
.selbox .h[data-handle="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.selbox .h[data-handle="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.selbox .h[data-handle="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.selbox .h[data-handle="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.selbox .size {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: calc(8px * var(--inv));
  background: var(--accent); color: #fff; font-size: calc(11px * var(--inv)); font-weight: 500;
  padding: calc(2px * var(--inv)) calc(6px * var(--inv)); border-radius: calc(4px * var(--inv)); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.selbox.with-cap .size { margin-top: calc(26px * var(--inv)); }
.subsel { position: absolute; box-shadow: 0 0 0 calc(1px * var(--inv)) var(--accent); pointer-events: none; }
.guide { position: absolute; background: var(--guide); pointer-events: none; }
.guide.v { width: calc(1px * var(--inv)); }
.guide.h { height: calc(1px * var(--inv)); }
.drawbox { position: absolute; background: rgba(255,255,255,.7); box-shadow: 0 0 0 calc(1.5px * var(--inv)) var(--accent); }

.marquee { position: fixed; border: 1px solid var(--accent); background: rgba(47, 95, 224, .08); pointer-events: none; z-index: 5; }

.empty {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--muted);
  width: min(380px, calc(100vw - 32px)); padding: 40px 28px; border: 1.5px dashed #CFCFD6; border-radius: 18px; background: rgba(255,255,255,.4);
}
.empty-icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; background: var(--panel); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--accent); }
.empty-icon svg { width: 20px; height: 20px; }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.empty p { margin: 0 0 18px; }
.drop-hint { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: grid; place-items: center; background: rgba(47,95,224,.06); box-shadow: inset 0 0 0 3px var(--accent); }
.drop-hint div { background: var(--accent); color: #fff; font-weight: 500; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); }

/* ---------- sol panel ---------- */
.left { left: 10px; top: 10px; bottom: 10px; width: 240px; display: flex; flex-direction: column; overflow: hidden; }
.left-head { height: 52px; padding: 0 10px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: none; }
.sect { padding: 10px 8px 6px; flex: none; }
.sect.grow { flex: 1; overflow: auto; border-top: 1px solid var(--line); min-height: 96px; }
.sect[data-sect="boards"] { flex: 0 1 auto; min-height: 0; overflow: auto; }
.sect[data-sect="boards"] .sect-head { position: sticky; top: -10px; background: var(--panel); z-index: 1; }
.sect-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; height: 26px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.list { list-style: none; margin: 4px 0 0; padding: 0; }
.list li {
  height: 30px; padding: 0 6px 0 8px; border-radius: 7px; display: flex; align-items: center; gap: 8px; cursor: pointer;
  white-space: nowrap; user-select: none; position: relative;
}
.list li:hover { background: var(--panel-2); }
.list li.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 500; }
.list li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.list li .ct { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.list li .ic { color: var(--faint); width: 15px; height: 15px; }
.list li.on .ic { color: var(--accent); }
.list li .more { opacity: 0; width: 22px; height: 22px; }
.list li:hover .more, .list li.on .more { opacity: 1; }
.list li input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--accent); border-radius: 5px; padding: 2px 5px; outline: none; }
.list .none { color: var(--faint); cursor: default; padding-left: 8px; font-size: 12.5px; }
.list .none:hover { background: none; }
.left-foot { height: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 14px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.status[data-s="saving"] i { background: #F59E0B; animation: pulse 1s infinite; }
.status[data-s="error"] i { background: var(--danger); }
.status[data-s="error"] { color: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- sağ panel ---------- */
.right { right: 10px; top: 62px; width: 260px; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow: auto; padding: 4px 0 8px; }
.rp-sect { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rp-sect:last-child { border-bottom: 0; }
.rp-title { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.rp-name { font-weight: 600; font-size: 13.5px; word-break: break-word; letter-spacing: -.01em; }
.rp-meta { color: var(--muted); font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.rp-row { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-row .btn { flex: 1; height: 30px; padding: 0 10px; font-size: 12.5px; }
.rp-input {
  width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; outline: none; background: var(--panel-2);
  transition: border-color .12s, background .12s;
}
.rp-input:focus { border-color: var(--accent); background: #fff; }
textarea.rp-input { resize: vertical; min-height: 76px; line-height: 1.45; }
.seg { display: flex; background: var(--panel-2); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { flex: 1; height: 28px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button svg { width: 15px; height: 15px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; position: relative; }
.swatches button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); }
.swatches button.clear { background: linear-gradient(135deg, #fff 45%, #E5484D 45%, #E5484D 55%, #fff 55%); }
.kbd { color: var(--faint); font-size: 11.5px; }

/* ---------- araç çubuğu ---------- */
.toolbar { left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px; }
.tool { height: 38px; min-width: 38px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; color: var(--text); transition: background .12s, color .12s; }
.tool:hover { background: var(--panel-2); }
.tool.on { background: var(--accent); color: #fff; }
.tool svg { width: 18px; height: 18px; }
.tool.accent { font-weight: 500; padding: 0 14px 0 12px; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

.zoom { right: 10px; bottom: 14px; display: flex; align-items: center; padding: 4px; gap: 2px; border-radius: 10px; }
.zoom-val { min-width: 54px; height: 26px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 12px; }
.zoom-val:hover { background: var(--panel-2); }

/* ---------- çerçeveye ekle düğmesi ---------- */
.it.frame .fadd {
  position: absolute; right: 0; bottom: 100%; margin-bottom: calc(3px * var(--inv));
  display: inline-flex; align-items: center; gap: calc(4px * var(--inv));
  height: calc(22px * var(--inv)); padding: 0 calc(8px * var(--inv)) 0 calc(6px * var(--inv));
  font-size: calc(11.5px * var(--inv)); font-weight: 500; color: var(--accent);
  background: var(--accent-soft); border: 0; border-radius: calc(6px * var(--inv)); cursor: pointer;
  opacity: 0; transition: opacity .12s, background .12s; white-space: nowrap;
}
.it.frame .fadd svg { width: calc(13px * var(--inv)); height: calc(13px * var(--inv)); stroke-width: 2.2; }
.it.frame:hover .fadd, .it.frame.sel .fadd, .it.frame .fadd:focus-visible { opacity: 1; }
.it.frame .fadd:hover { background: #DCE5FB; }
.it.frame .flabel { max-width: calc(100% - 110px * var(--inv)); }

/* ---------- seçim araç çubuğu ---------- */
.selbar {
  position: fixed; left: 0; top: 0; z-index: 30; display: flex; align-items: center; gap: 2px; padding: 4px;
  background: #1F1F23; color: #F4F4F5; border-radius: 10px; box-shadow: var(--shadow-lg); will-change: transform;
}
.selbar button {
  height: 30px; min-width: 30px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 500;
  transition: background .12s;
}
.selbar button.wl { padding: 0 10px 0 8px; }
.selbar button:hover { background: rgba(255,255,255,.12); }
.selbar button[data-act="sb-del"]:hover { background: var(--danger); }
.selbar svg { width: 16px; height: 16px; }
.selbar .sep { width: 1px; height: 18px; background: rgba(255,255,255,.14); margin: 0 3px; }
.selbar .cnt { font-size: 12px; color: #A1A1AA; padding: 0 6px 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- kısayol rehberi ---------- */
.zb-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
.help-btn { font-weight: 600; font-size: 13px; color: var(--muted); }
.help { position: fixed; inset: 0; z-index: 95; background: rgba(16,16,20,.32); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.help-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.help-head b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; padding: 14px 22px 22px; }
.help-grid h4 { margin: 10px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.help-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; align-items: baseline; }
.help-grid dt { white-space: nowrap; color: var(--text); font-weight: 500; font-size: 12.5px; }
.help-grid dd { margin: 0; color: var(--muted); font-size: 12.5px; }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--panel-2); font: 500 11px/1.5 Inter, system-ui, sans-serif; text-align: center; color: var(--text);
}
@media (max-width: 760px) { .help-grid { grid-template-columns: 1fr; } .selbar .wl span { display: none; } }

/* ---------- menü, bildirim ---------- */
.menu { position: fixed; z-index: 80; min-width: 210px; background: #1F1F23; color: #F4F4F5; border-radius: 10px; padding: 5px; box-shadow: var(--shadow-lg); font-size: 12.5px; }
.menu button { width: 100%; height: 30px; border: 0; background: transparent; color: inherit; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 6px; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--accent); }
.menu button .k { margin-left: auto; color: #8E8E96; font-size: 11.5px; }
.menu button:hover .k { color: rgba(255,255,255,.75); }
.menu button.danger:hover { background: var(--danger); }
.menu button.on::after { content: "✓"; margin-left: auto; }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 4px 2px; }

.uploads { left: 50%; transform: translateX(-50%); top: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; min-width: 260px; }
.uploads .bar { flex: 1; height: 4px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.uploads .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.uploads .txt { font-size: 12.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 90; background: #1F1F23; color: #fff; padding: 9px 14px; border-radius: 9px; font-size: 12.5px; box-shadow: var(--shadow-lg); animation: rise .18s ease-out; max-width: calc(100vw - 32px); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }
.toast { display: flex; align-items: center; gap: 14px; }
.toast button { border: 0; background: transparent; color: #8FB0FF; font: inherit; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 5px; }
.toast button:hover { background: rgba(255,255,255,.1); }

/* ---------- tam ekran ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 14, .94); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; color: #fff; z-index: 2; }
.lb-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.lb-title b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title span { color: #8E8E96; font-size: 12px; font-variant-numeric: tabular-nums; }
.lb-actions { display: flex; gap: 4px; }
.lb-stage { position: absolute; inset: 56px 80px 24px; display: flex; align-items: center; justify-content: center; }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-note { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); background: #FFD43B; color: #1F1F23; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; white-space: pre-wrap; z-index: 2; }

/* ---------- çizim ---------- */
.it.draw { pointer-events: none; }
.it.draw .dsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.it.draw .hit { fill: none; stroke: transparent; pointer-events: stroke; stroke-linecap: round; stroke-linejoin: round; cursor: move; }
.it.draw .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.it.draw.marker .ln, .ink-tmp.marker path { opacity: .5; }
.it.draw.sel .ln { filter: drop-shadow(0 0 calc(1.5px * var(--inv)) var(--accent)) drop-shadow(0 0 calc(1.5px * var(--inv)) var(--accent)); }
.it.draw:hover::before, .it.draw.sel::before { display: none; }
.ink-tmp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 3; display: none; }
.ink-tmp path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.viewport.tool-pen, .viewport.tool-marker, .viewport.tool-arrow { cursor: crosshair; }
.viewport.tool-eraser { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='9' fill='rgba(255,255,255,.7)' stroke='%2318181B' stroke-width='1.5'/%3E%3C/svg%3E") 11 11, cell; }
.viewport.tool-comment { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M3 23V12a9 9 0 1 1 9 9H3z' fill='%23fff' stroke='%2318181B' stroke-width='1.6'/%3E%3Cpath d='M12 8v8M8 12h8' stroke='%2318181B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 3 23, crosshair; }
.viewport.tool-eraser .it, .viewport.tool-eraser .it.draw .hit, .viewport.tool-pen .it, .viewport.tool-marker .it, .viewport.tool-arrow .it, .viewport.tool-comment .it { cursor: inherit; }
.viewport[class*="tool-"]:not(.tool-hand) .it:not(.frame):hover::before { display: none; }

/* ---------- kalem seçenekleri + araç ipucu ---------- */
.toolopts { left: 50%; bottom: 66px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 12px; animation: rise2 .14s ease-out; }
.toolopts[hidden] { display: none; }
.toolopts .swatches { gap: 6px; }
.toolopts .swatches button { width: 20px; height: 20px; }
.toolopts .sizes { display: flex; gap: 2px; }
.toolopts .sizes button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.toolopts .sizes button:hover { background: var(--panel-2); }
.toolopts .sizes button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.toolopts .sizes i { display: block; border-radius: 50%; }
@keyframes rise2 { from { opacity: 0; transform: translate(-50%, 4px); } }
.tool-hint { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 30; background: #1F1F23; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; pointer-events: none; animation: hint 1.1s ease forwards; display: flex; align-items: center; gap: 8px; }
.tool-hint[hidden] { display: none; }
.tool-hint kbd { font: 600 11px/1 Inter, sans-serif; background: rgba(255,255,255,.14); border-radius: 4px; padding: 3px 5px; }
@keyframes hint { 0% { opacity: 0; transform: translate(-50%, 4px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- kişiler ---------- */
.av { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; flex: none; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.av.sm { width: 20px; height: 20px; font-size: 9.5px; }
.av.lg { width: 44px; height: 44px; font-size: 16px; }
.me { right: 10px; top: 10px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 9px; border: 0; cursor: pointer; font: inherit; font-weight: 500; color: var(--text); max-width: 240px; }
.me:hover { background: var(--panel-2); }
.me .me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .me-chev svg { width: 13px; height: 13px; transform: rotate(90deg); color: var(--faint); display: block; }
.who-card { width: min(460px, 100%); padding: 22px; }
.who-head b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.who-head span { display: block; color: var(--muted); margin-top: 4px; font-size: 12.5px; }
.who-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 18px 0 16px; }
.who-btn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 500; color: var(--text); transition: border-color .12s, background .12s, transform .12s; min-width: 0; }
.who-btn span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.who-btn:active { transform: scale(.97); }
.who-btn.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.who-add { display: flex; gap: 8px; }
/* kendi şifresiyle giren kişi: pano yönetimi yok */
body.guest [data-act="new-board"], body.guest [data-board-menu] { display: none; }
/* erişim ayarları */
.acc-card { width: min(520px, 100%); }
.acc-body { padding: 4px 22px 22px; }
.acc-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 12px 0 14px; }
.acc-note b { color: var(--text); font-weight: 600; }
.acc-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.acc-row.open { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.acc-line { display: flex; align-items: center; gap: 10px; }
.acc-who { flex: 1; min-width: 0; }
.acc-who b { display: block; font-weight: 600; font-size: 13.5px; }
.acc-who span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-row.lim .acc-who span { color: var(--accent); }
.acc-edit { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.acc-lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.acc-boards { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-boards label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.acc-boards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.acc-pw { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; outline: none; background: var(--panel); color: var(--text); }
.acc-pw:focus { border-color: var(--accent); }
.acc-err { color: var(--danger); font-size: 12.5px; min-height: 0; }
.acc-err:empty { display: none; }
.acc-btns { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.acc-btns .sp { flex: 1; }
.who-add input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; height: 36px; outline: none; background: var(--panel-2); }
.who-add input:focus { border-color: var(--accent); background: #fff; }
.who-add .btn { height: 36px; }

/* ---------- yorum iğneleri ---------- */
.layer-comments { position: absolute; left: 0; top: 0; z-index: 4; }
.cpin {
  position: absolute; width: 30px; height: 30px; transform: translate(0, -100%) scale(var(--inv)); transform-origin: 0 100%;
  background: var(--c, #A1A1AA); border-radius: 50% 50% 50% 3px; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; color: #fff; font-weight: 600; font-size: 11px;
  transition: box-shadow .12s; user-select: none;
}
.cpin:hover, .cpin.open { box-shadow: 0 0 0 3px rgba(47,95,224,.35), 0 3px 10px rgba(0,0,0,.3); z-index: 2; }
.cpin.resolved { opacity: .55; filter: grayscale(.6); }
.cpin .n { position: absolute; right: -7px; top: -7px; min-width: 16px; height: 16px; border-radius: 8px; background: #1F1F23; color: #fff; font-size: 9.5px; display: grid; place-items: center; padding: 0 4px; border: 1.5px solid #fff; }
.cpin.draft { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; } }

/* ---------- yorum balonu ---------- */
.cpop { position: fixed; left: 0; top: 0; z-index: 60; width: 320px; max-width: calc(100vw - 20px); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: min(520px, calc(100vh - 20px)); }
.cpop[hidden] { display: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.cp-head b { font-weight: 600; font-size: 13px; }
.cp-acts { display: flex; gap: 2px; }
.cp-msgs { overflow: auto; padding: 6px 0; border-bottom: 1px solid var(--line); flex: 1 1 auto; min-height: 0; }
.cp-msgs[hidden] { display: none; }
.cp-msg { display: flex; gap: 9px; padding: 8px 14px; }
.cp-msg > div { flex: 1; min-width: 0; }
.cp-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.cp-meta b { font-weight: 600; }
.cp-meta span { color: var(--faint); font-size: 11.5px; }
.cp-x { margin-left: auto; width: 20px; height: 20px; border: 0; background: transparent; border-radius: 5px; cursor: pointer; color: var(--faint); display: grid; place-items: center; opacity: 0; }
.cp-x svg { width: 12px; height: 12px; }
.cp-msg:hover .cp-x { opacity: 1; }
.cp-x:hover { background: var(--panel-2); color: var(--danger); }
.cp-body { margin-top: 2px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.cp-res { margin: 2px 14px 4px; font-size: 12px; color: #15803D; background: #ECFDF3; border-radius: 7px; padding: 5px 9px; }
.cp-form { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: none; margin: 0; }
.cp-who { display: flex; align-items: center; gap: 8px; }
.cp-av { display: inline-flex; }
.cp-sel { flex: 1; min-width: 0; font: inherit; font-weight: 500; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: var(--panel-2); outline: none; cursor: pointer; color: var(--text); }
.cp-sel:focus { border-color: var(--accent); }
.cp-newp { display: flex; gap: 6px; }
.cp-newp[hidden] { display: none; }
.cp-newp input { flex: 1; min-width: 0; font: inherit; height: 30px; border: 1px solid var(--accent); border-radius: 7px; padding: 0 9px; outline: none; }
.cp-newp .btn { height: 30px; }
.cp-text { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: none; outline: none; min-height: 58px; line-height: 1.45; background: var(--panel-2); color: var(--text); }
.cp-text:focus { border-color: var(--accent); background: #fff; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-foot .kbd { font-size: 11px; }
.cp-send { height: 30px; padding: 0 12px 0 10px; font-size: 12.5px; }
.cp-send svg { width: 14px; height: 14px; }

/* ---------- yorum listesi ---------- */
.sect.grow { overflow: auto; }
.clist li { height: auto; min-height: 30px; align-items: flex-start; padding-top: 6px; padding-bottom: 6px; white-space: normal; }
.clist li .av { margin-top: 1px; }
.clist .ctext { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; }
.clist .ctext b { font-weight: 600; }
.clist .ctext i { font-style: normal; color: var(--faint); font-size: 11.5px; }
.clist .ctext > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.clist li.res { opacity: .5; }
.clist .ct { margin-top: 2px; }
.clist .none { white-space: normal; height: auto; }
[data-act="toggle-comments"] { position: relative; }
[data-act="toggle-comments"].off { opacity: .45; }
[data-act="toggle-comments"].off::after { content: ""; position: absolute; width: 16px; height: 1.6px; background: currentColor; transform: rotate(-40deg); }

/* ---------- yüklemeden önce düzenle ---------- */
.stage { z-index: 96; }
.stage-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(1180px, 100%); height: min(780px, calc(100vh - 32px)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.st-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.st-head b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.st-head span { color: var(--muted); margin-left: 10px; font-size: 12.5px; }
.st-body { display: grid; grid-template-columns: 270px 1fr; min-height: 0; }
.st-side { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; background: var(--panel-2); }
.st-side-title { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; }
.st-groups { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.st-groups li { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 4px 0 9px; border-radius: 8px; cursor: pointer; user-select: none; }
.st-groups li:hover { background: rgba(0,0,0,.04); }
.st-groups li.on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.05); }
.st-groups li .nm { flex: 1; font-weight: 500; }
.st-groups li .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-groups li input { flex: 1; min-width: 0; font: inherit; font-weight: 500; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; outline: none; color: var(--text); }
.st-groups li input:hover { border-color: var(--line); background: #fff; }
.st-groups li input:focus { border-color: var(--accent); background: #fff; }
.st-groups li .ct { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.st-move { display: none; height: 24px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-size: 11.5px; font-weight: 500; padding: 0 8px; cursor: pointer; align-items: center; gap: 5px; }
.st-move kbd { font: 600 10px/1 Inter, sans-serif; background: rgba(255,255,255,.22); border-radius: 3px; padding: 2px 4px; }
.st-move:hover { background: var(--accent-2); }
.st-groups.has-sel .st-move { display: inline-flex; }
.st-groups.has-sel li.on .st-move { display: none; }
.st-ungroup { opacity: 0; }
.st-groups li:hover .st-ungroup { opacity: 1; }
.st-newg, .st-auto { width: 100%; justify-content: center; height: 34px; }
.st-newg kbd { font: 600 10.5px/1 Inter, sans-serif; color: var(--muted); background: var(--panel-2); border-radius: 4px; padding: 3px 5px; margin-left: 4px; }
.st-auto { color: var(--accent-2); }
.st-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.st-selinfo { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-selinfo b { color: var(--text); font-weight: 600; }
.st-selinfo kbd, .st-bar kbd { font: 600 10.5px/1 Inter, sans-serif; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; color: var(--muted); }
.st-bar-acts { display: flex; gap: 6px; flex: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.st-grid { flex: 1; overflow: auto; padding: 14px 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; align-content: start; user-select: none; }
.st-th { position: relative; cursor: pointer; border-radius: 10px; padding: 5px; transition: background .1s; }
.st-th:hover { background: var(--panel-2); }
.st-img { aspect-ratio: 4 / 5; border-radius: 7px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.st-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; pointer-events: none; }
.st-nm { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.st-chk { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1.5px rgba(0,0,0,.18); display: grid; place-items: center; color: transparent; opacity: 0; transition: opacity .1s; }
.st-chk svg { width: 13px; height: 13px; stroke-width: 3; }
.st-th:hover .st-chk { opacity: 1; }
.st-th.on { background: var(--accent-soft); }
.st-th.on .st-img { box-shadow: 0 0 0 2.5px var(--accent); }
.st-th.on .st-chk { opacity: 1; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px #fff; }
.st-tag { position: absolute; right: 10px; top: 10px; max-width: calc(100% - 50px); color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.st-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 80px 20px; }
.st-foot { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.st-dest { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.st-dest .seg button { flex: none; padding: 0 12px; font: inherit; font-size: 12.5px; font-weight: 500; }
.st-always { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.st-always input { accent-color: var(--accent); }
.st-foot-acts { margin-left: auto; display: flex; gap: 8px; }
.st-foot-acts .btn { height: 36px; }
@media (max-width: 760px) {
  .st-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .st-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 34vh; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .st-bar-acts kbd, .st-selinfo span { display: none; }
  .st-foot-acts { width: 100%; } .st-foot-acts .btn { flex: 1; }
}

/* ---------- sol menü: gizle / bölümler ---------- */
.left { transition: transform .2s ease, opacity .2s ease; }
@media (min-width: 761px) { body.left-collapsed .left { transform: translateX(calc(-100% - 20px)); opacity: 0; pointer-events: none; } }
.left-open { left: 10px; top: 10px; width: 40px; height: 40px; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--text); animation: fade .15s; }
.left-open[hidden] { display: none; }
.left-open:hover { background: var(--panel-2); }
.left-open svg { width: 18px; height: 18px; }
.left-head .brand { min-width: 0; }
.sect-toggle { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; height: 22px; border-radius: 5px; }
.sect-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; opacity: .7; transition: transform .15s; }
.sect-toggle:hover { color: var(--text); }
.sect.closed .sect-toggle::after { transform: rotate(-45deg); }
.sect.closed > .list { display: none; }
.sect.grow.closed { flex: 0 0 auto; }
.notes-btn { flex: none; margin: 6px 8px 8px; height: 38px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 9px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; cursor: pointer; font: inherit; font-weight: 500; color: var(--text); transition: background .12s, border-color .12s; }
.notes-btn:hover { background: #fff; border-color: #D4D4DA; }
.notes-btn.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.notes-btn .ic svg { width: 16px; height: 16px; display: block; }
.notes-btn .nm { flex: 1; text-align: left; }
.notes-btn .ct:not(:empty) { background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.only-desktop { }
@media (max-width: 760px) { .only-desktop, .left-open { display: none !important; } }

/* ---------- tüm notlar paneli ---------- */
.notes { left: 260px; top: 10px; bottom: 10px; width: 330px; display: flex; flex-direction: column; overflow: hidden; z-index: 21; animation: slidein .16s ease-out; transition: left .2s ease; }
.notes[hidden] { display: none; }
body.left-collapsed .notes { left: 10px; }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }
.nt-head { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.nt-head b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.nt-acts { display: flex; gap: 2px; }
.nt-filters { flex: none; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.nt-filters .seg button { font: inherit; font-size: 12.5px; font-weight: 500; }
.nt-people { display: flex; gap: 4px; flex-wrap: wrap; }
.nt-people:empty { display: none; }
.nt-people button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 4px; border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; color: var(--text); }
.nt-people button:hover { border-color: #C9C9D0; }
.nt-people button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.nt-list { flex: 1; overflow: auto; padding: 4px 8px 12px; }
.nt-board { display: flex; align-items: center; gap: 7px; padding: 12px 8px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; position: sticky; top: -4px; background: var(--panel); z-index: 1; }
.nt-board svg { width: 13px; height: 13px; }
.nt-board i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; font-size: 11px; }
.nt-item { width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 10px 10px; cursor: pointer; font: inherit; color: var(--text); }
.nt-item:hover { background: var(--panel-2); }
.nt-item .av { margin-top: 1px; }
.nt-item.res { opacity: .6; }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.nt-meta b { font-weight: 600; }
.nt-meta > span:not(.nt-res) { color: var(--faint); font-size: 11.5px; }
.nt-res { display: inline-flex; align-items: center; gap: 3px; color: #15803D; font-size: 11px; font-weight: 500; margin-left: auto; }
.nt-res svg { width: 12px; height: 12px; stroke-width: 2.5; }
.nt-where { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; min-width: 0; }
.nt-where svg { width: 12px; height: 12px; flex: none; }
.nt-text { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.nt-mic { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.nt-mic svg { width: 14px; height: 14px; }
.nt-replies { font-size: 11.5px; color: var(--accent-2); font-weight: 500; }
.nt-none { color: var(--muted); text-align: center; padding: 48px 20px; line-height: 1.6; }
@media (max-width: 760px) { .notes { left: 10px !important; right: 10px; width: auto; z-index: 45; } }

/* ---------- sesli not ---------- */
.cp-foot-r { display: flex; align-items: center; gap: 6px; }
.cp-mic { width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.cp-mic:hover { color: var(--accent); background: var(--accent-soft); }
.cp-mic[hidden] { display: none; }
.cp-mic svg { width: 17px; height: 17px; }
.cp-rec { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.cp-rec[hidden] { display: none; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: pulse 1s infinite; flex: none; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; min-width: 32px; }
.rec-meter { flex: 1; height: 6px; border-radius: 3px; background: #E4E4E9; overflow: hidden; }
.rec-level { display: block; height: 100%; background: #E5484D; transform-origin: 0 50%; transform: scaleX(.06); transition: transform .06s linear; }
.cp-rec .btn.sm { height: 28px; padding: 0 9px; }
.cp-rec .btn svg { width: 12px; height: 12px; }
.cp-audio { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 2px 0; }
.cp-msg .cp-audio { margin: 5px 0 2px; background: var(--panel-2); border-radius: 18px; padding: 4px 12px 4px 4px; }
.cp-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .12s, transform .1s; }
.cp-play:hover { background: var(--accent-2); }
.cp-play:active { transform: scale(.94); }
.cp-play svg { width: 13px; height: 13px; }
.cp-audio.loading .cp-play { opacity: .6; cursor: progress; }
.cp-wave { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; min-width: 0; }
.cp-wave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: #C4C4CC; transition: background .1s; }
.cp-wave i.done { background: var(--accent); }
.cp-dur { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }

/* notlar paneli açıkken alt araçlar görünür alanın ortasına kaysın */
@media (min-width: 761px) {
  .toolbar, .toolopts, .tool-hint, .toast { transition: left .2s ease; }
  body.notes-open .toolbar, body.notes-open .toolopts, body.notes-open .tool-hint, body.notes-open .toast { left: calc(50% + 300px); }
  body.notes-open.left-collapsed .toolbar, body.notes-open.left-collapsed .toolopts, body.notes-open.left-collapsed .tool-hint, body.notes-open.left-collapsed .toast { left: calc(50% + 170px); }
}
.cp-foot .kbd { white-space: nowrap; }
/* ---------- belgeler: pano kartı ---------- */
.it.image.doc { box-shadow: 0 0 0 calc(1px * var(--inv)) rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); }
.docbadge { position: absolute; left: min(calc(8px * var(--inv)), 3cqw); bottom: min(calc(8px * var(--inv)), 3cqw); display: flex; align-items: center; gap: min(calc(5px * var(--inv)), 1.6cqw); background: rgba(24,24,27,.86); color: #fff; border-radius: min(calc(7px * var(--inv)), 2.4cqw); padding: min(calc(3px * var(--inv)), 1cqw) min(calc(7px * var(--inv)), 2.4cqw) min(calc(3px * var(--inv)), 1cqw) min(calc(3px * var(--inv)), 1cqw); font-size: min(calc(11px * var(--inv)), 4cqw); pointer-events: none; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.docbadge b { font-weight: 700; font-size: .86em; letter-spacing: .03em; padding: .2em .45em; border-radius: .45em; background: #E5484D; }
.docbadge b.sheet { background: #1D9A5B; }
.docbadge b.text { background: #2F5FE0; }
.st-doc { display: grid; place-items: center; width: 64%; aspect-ratio: 3 / 4; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: #E5484D; border-top: 5px solid #E5484D; }
.st-doc.sheet { color: #1D9A5B; border-top-color: #1D9A5B; }
.st-doc.text { color: #2F5FE0; border-top-color: #2F5FE0; }

/* ---------- belgeler: tam ekran görüntüleyici ---------- */
.docv { position: fixed; inset: 0; z-index: 70; background: #E9E9EC; display: flex; flex-direction: column; animation: fade .12s; }
.docv[hidden] { display: none; }
.dv-top { flex: none; height: 54px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px; position: relative; z-index: 3; }
.dv-file { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #E5484D; border-radius: 5px; padding: 3px 6px; flex: none; }
.dv-file.sheet { background: #1D9A5B; }
.dv-file.text { background: #2F5FE0; }
.dv-name { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 40px; max-width: 28vw; }
.dv-status { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-status.warn { color: #B45309; }
.dv-status.ok { color: #15803D; }
.dv-status.busy { color: var(--accent); }
.dv-tools { display: flex; align-items: center; gap: 2px; margin: 0 auto; background: var(--panel-2); border-radius: 11px; padding: 3px; }
.dv-tool { width: 34px; height: 32px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.dv-tool:hover { background: #fff; }
.dv-tool.on { background: var(--accent); color: #fff; }
.dv-tool svg { width: 17px; height: 17px; }
.dv-sep { width: 1px; height: 20px; background: var(--line); margin: 0 5px; }
.dv-colors { display: flex; gap: 5px; padding: 0 3px; }
.dv-colors button { width: 18px; height: 18px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.dv-colors button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); }
.dv-sizes { display: flex; gap: 1px; }
.dv-sizes button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.dv-sizes button.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.dv-sizes i { display: block; border-radius: 50%; }
.dv-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.dv-tools + .dv-right { margin-left: 0; }
.dv-pager, .dv-zoom { display: flex; align-items: center; gap: 2px; background: var(--panel-2); border-radius: 9px; padding: 2px; }
.dv-page { width: 40px; height: 26px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; background: #fff; }
.dv-page:focus { border-color: var(--accent); }
.dv-of { color: var(--muted); font-size: 12px; padding: 0 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-zv { min-width: 50px; height: 26px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.dv-zv:hover { background: #fff; }
.dv-right .btn.sm { height: 32px; }
.dv-right .btn:disabled { opacity: .45; cursor: default; }
.dv-right .icon-btn.on { background: var(--accent-soft); color: var(--accent); }
.dv-loading { margin: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #D4D4DA; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dv-body { flex: 1; min-height: 0; display: flex; }
.dv-confirm { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 5; background: #1F1F23; color: #fff; border-radius: 12px; padding: 8px 8px 8px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); animation: rise .16s ease-out; }
.dv-confirm .btn { height: 32px; }
.dv-confirm .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.dv-confirm .btn.danger { color: #FF9C9C; }

/* PDF */
.pv-thumbs { width: 150px; flex: none; overflow: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 12px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pv-th { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-thc { position: relative; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.08); background: #fff; line-height: 0; transition: box-shadow .12s; }
.pv-th:hover .pv-thc { box-shadow: 0 0 0 2px #C9D6F7; }
.pv-th.on .pv-thc { box-shadow: 0 0 0 2.5px var(--accent); }
.pv-th.on { color: var(--accent); font-weight: 600; }
.pv-tha { position: absolute; right: 4px; top: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; line-height: 1; }
.pv-th:hover .pv-tha { opacity: 1; }
.pv-tha button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(24,24,27,.82); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.pv-tha button:hover { background: var(--accent); }
.pv-tha button[data-pa="del"]:hover { background: var(--danger); }
.pv-tha svg { width: 13px; height: 13px; }
.pv-scroll { flex: 1; overflow: auto; position: relative; }
.pv-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 32px 80px; min-width: min-content; }
.pv-page { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 6px 20px -8px rgba(0,0,0,.2); flex: none; }
.pv-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-ann { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pv-ann path, .pv-ann rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pv-ann .hl { opacity: .4; }
.pv-ann text { font-family: Inter, Arial, sans-serif; font-weight: 500; white-space: pre; }
.pv-ann .gone { opacity: .15; }
.pv-no { position: absolute; right: -34px; bottom: 0; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pv-none { color: var(--muted); padding: 80px 0; }
.dv-body.pdf[data-tool="pen"] .pv-page, .dv-body.pdf[data-tool="hl"] .pv-page, .dv-body.pdf[data-tool="rect"] .pv-page, .dv-body.pdf[data-tool="arrow"] .pv-page { cursor: crosshair; touch-action: none; }
.dv-body.pdf[data-tool="text"] .pv-page { cursor: text; }
.dv-body.pdf[data-tool="eraser"] .pv-page { cursor: cell; touch-action: none; }
.pv-textedit { position: absolute; z-index: 2; font-family: Inter, Arial, sans-serif; font-weight: 500; border: 1.5px dashed var(--accent); border-radius: 4px; background: rgba(255,255,255,.85); padding: 0 3px; margin: 0; outline: none; resize: none; overflow: hidden; white-space: pre; min-width: 60px; }

/* Excel */
.sv-fbar { flex: none; height: 40px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.sv-addr { min-width: 64px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--panel-2); }
.sv-fx { color: var(--faint); font-style: italic; font-weight: 600; font-family: Georgia, serif; }
.sv-finput { flex: 1; height: 28px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 13px; padding: 0 8px; outline: none; background: transparent; }
.sv-finput:hover { border-color: var(--line); }
.sv-finput:focus { border-color: var(--accent); background: #fff; }
.dv-body.sheet { background: #fff; }
/* Metin */
.dv-body.text { justify-content: center; padding: 24px 16px; }
.tv-area { width: 100%; max-width: 860px; height: 100%; resize: none; border: 0; outline: none; border-radius: 10px; background: #fff; color: #18181B; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06); padding: 48px 56px; font: 400 15.5px/1.7 Inter, system-ui, sans-serif; tab-size: 4; white-space: pre-wrap; overflow-wrap: anywhere; }
.tv-area::placeholder { color: #A1A1AA; }
@media (max-width: 640px) { .dv-body.text { padding: 10px 8px; } .tv-area { padding: 22px 18px; font-size: 15px; } }
.sv { --hw: 46px; --hh: 24px; flex: 1; min-width: 0; display: grid; grid-template-columns: var(--hw) 1fr; grid-template-rows: var(--hh) 1fr; position: relative; font-size: calc(14.67px * var(--z, 1)); color: #18181B; }
.sv-corner { background: #F1F1F4; border-right: 1px solid #DADADF; border-bottom: 1px solid #DADADF; }
.sv-colh, .sv-rowh { overflow: hidden; position: relative; background: #F6F6F8; }
.sv-colh { border-bottom: 1px solid #DADADF; }
.sv-rowh { border-right: 1px solid #DADADF; }
.sv-colh-in, .sv-rowh-in { position: absolute; left: 0; top: 0; will-change: transform; }
.sv-colh-in { height: 100%; }
.sv-rowh-in { width: 100%; }
.svh { position: absolute; display: grid; place-items: center; font-size: 11.5px; color: #6B6B74; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; box-sizing: border-box; }
.sv-colh .svh { top: 0; height: 100%; border-right: 1px solid #E2E2E6; }
.sv-rowh .svh { left: 0; width: 100%; border-bottom: 1px solid #E2E2E6; }
.svh:hover { background: #ECECF0; }
.svh.on { background: #DCE5FB; color: var(--accent-2); font-weight: 600; }
.sv-scroll { overflow: auto; position: relative; outline: none; }
.sv-space { position: relative; }
.gl { position: absolute; background: #E6E6EA; pointer-events: none; }
.gl.v { top: 0; bottom: 0; width: 1px; }
.gl.h { left: 0; right: 0; height: 1px; }
.sv-cells { position: absolute; inset: 0; }
.svc { position: absolute; display: flex; padding: 0 calc(5px * var(--z, 1)) calc(2px * var(--z, 1)); overflow: hidden; white-space: pre; line-height: 1.25; box-sizing: border-box; background: #fff; box-shadow: inset -1px -1px 0 #E6E6EA; }
.svc span { overflow: hidden; text-overflow: clip; max-width: 100%; }
.sv-selbox { position: absolute; border: 2px solid var(--accent); background: rgba(47,95,224,.06); pointer-events: none; box-sizing: border-box; margin: -1px 0 0 -1px; }
.sv-edit { position: absolute; z-index: 3; border: 2px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.18); font: inherit; font-size: inherit; padding: 1px 4px; margin: -1px 0 0 -1px; outline: none; resize: none; background: #fff; white-space: pre; overflow: hidden; box-sizing: border-box; line-height: 1.25; }
.sv-tabs { flex: none; height: 38px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: stretch; gap: 2px; padding: 0 10px; overflow-x: auto; }
.sv-tabs button { border: 0; background: transparent; font: inherit; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 0 14px; cursor: pointer; border-top: 2.5px solid transparent; white-space: nowrap; }
.sv-tabs button:hover { color: var(--text); background: var(--panel-2); }
.sv-tabs button.on { color: #1D9A5B; border-top-color: #1D9A5B; background: #F2FBF6; }

@media (max-width: 760px) {
  .dv-top { flex-wrap: wrap; height: auto; padding: 6px 8px; row-gap: 6px; }
  .dv-tools { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .dv-name { max-width: 40vw; }
  .dv-status { display: none; }
  .pv-thumbs { display: none; }
  .pv-pages { padding: 12px 8px 60px; }
  .pv-no { display: none; }
  .dv-right .btn.sm span, .dv-zoom { display: none; }
}

/* ---------- mobil ---------- */
.only-mobile { display: none !important; }
@media (max-width: 760px) {
  .only-mobile { display: grid !important; }
  .left { transform: translateX(calc(-100% - 20px)); transition: transform .2s; z-index: 40; }
  .left.open { transform: none; }
  .fab-left { left: 10px; top: 10px; width: 40px; height: 40px; border: 0; cursor: pointer; place-items: center; }
  .fab-left svg { width: 18px; height: 18px; }
  .right { left: 10px; right: 10px; width: auto; top: auto; bottom: 72px; max-height: 45vh; }
  .zoom { bottom: auto; top: 10px; right: auto; left: 60px; }
  .me .me-name, .me .me-chev { display: none; }
  .toolbar { max-width: calc(100vw - 16px); overflow-x: auto; }
  .tool { min-width: 34px; padding: 0 7px; }
  .cpop { width: calc(100vw - 20px); }
  .toolopts { bottom: 62px; }
  .tool.accent span { display: none; }
  .lb-stage { inset: 56px 8px 24px; }
  .lb-nav { display: none; }
}

/* ================= video ================= */
.vidbadge { position: absolute; left: min(calc(8px * var(--inv)), 3cqw); bottom: min(calc(8px * var(--inv)), 3cqw); display: flex; align-items: center; gap: min(calc(4px * var(--inv)), 1.4cqw); background: rgba(24,24,27,.86); color: #fff; border-radius: 999px; padding: min(calc(3px * var(--inv)), 1cqw) min(calc(8px * var(--inv)), 2.6cqw) min(calc(3px * var(--inv)), 1cqw) min(calc(5px * var(--inv)), 1.8cqw); font-size: min(calc(11px * var(--inv)), 4cqw); font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.vidbadge svg { width: 1.15em; height: 1.15em; }
.st-img { position: relative; }
.st-img video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; pointer-events: none; }
.st-vtag { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 3px; background: rgba(24,24,27,.86); color: #fff; border-radius: 999px; padding: 2px 7px 2px 4px; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.st-vtag svg { width: 11px; height: 11px; }
.lb-stage video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); outline: none; }

/* ================= carousel ================= */
/* arkada iki kat "deste": tek görselden uzaktan ayırt edilsin */
.it.image.car {
  box-shadow:
    0 0 0 calc(1px * var(--inv)) rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08),
    calc(7px * var(--inv)) calc(-7px * var(--inv)) 0 calc(-1px * var(--inv)) #F4F4F5,
    calc(7px * var(--inv)) calc(-7px * var(--inv)) 0 0 rgba(0,0,0,.13),
    calc(14px * var(--inv)) calc(-14px * var(--inv)) 0 calc(-2px * var(--inv)) #E9E9EC,
    calc(14px * var(--inv)) calc(-14px * var(--inv)) 0 calc(-1px * var(--inv)) rgba(0,0,0,.11);
}
.carbadge { position: absolute; right: min(calc(8px * var(--inv)), 3cqw); top: min(calc(8px * var(--inv)), 3cqw); display: flex; align-items: center; gap: min(calc(4px * var(--inv)), 1.4cqw); background: rgba(24,24,27,.86); color: #fff; border-radius: 999px; padding: min(calc(3px * var(--inv)), 1cqw) min(calc(8px * var(--inv)), 2.6cqw) min(calc(3px * var(--inv)), 1cqw) min(calc(6px * var(--inv)), 2cqw); font-size: min(calc(11px * var(--inv)), 4cqw); font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 1; }
.carbadge svg { width: 1.2em; height: 1.2em; }
.it.car .badge { right: auto; left: min(calc(8px * var(--inv)), 3cqw); }
.cardots { position: absolute; left: 50%; transform: translateX(-50%); bottom: min(calc(9px * var(--inv)), 3cqw); display: flex; gap: min(calc(4px * var(--inv)), 1.2cqw); padding: min(calc(3px * var(--inv)), 1cqw) min(calc(5px * var(--inv)), 1.6cqw); border-radius: 999px; background: rgba(24,24,27,.42); pointer-events: none; z-index: 1; }
.cardots i { width: min(calc(5px * var(--inv)), 1.6cqw); height: min(calc(5px * var(--inv)), 1.6cqw); border-radius: 50%; background: rgba(255,255,255,.55); }
.cardots i.on { background: #fff; }
.carnav { position: absolute; top: 50%; transform: translateY(-50%); width: min(calc(30px * var(--inv)), 13cqw); height: min(calc(30px * var(--inv)), 13cqw); border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.92); color: #18181B; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 1px 6px rgba(0,0,0,.25); z-index: 3; }
.carnav svg { width: 55%; height: 55%; }
.carnav.prev { left: min(calc(8px * var(--inv)), 3cqw); } .carnav.next { right: min(calc(8px * var(--inv)), 3cqw); }
.it.car:hover .carnav, .it.car.sel .carnav { opacity: 1; }
.carnav:hover { background: #fff; }
@media (hover: none) { .it.car.sel .carnav { opacity: 1; } }

/* yükleme ekranı: carousel grubu */
.st-groups li .car-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--muted); margin-right: -2px; }
.st-groups li .car-ic svg { width: 14px; height: 14px; }

/* tam ekran: slayt şeridi */
.lightbox.car .lb-stage { bottom: 112px; }
.lightbox.car .lb-note { bottom: 116px; }
.lb-strip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); overflow-x: auto; z-index: 2; }
.lb-slide { position: relative; flex: none; width: 64px; height: 64px; border-radius: 7px; overflow: hidden; background: #2A2A2F; cursor: pointer; outline: 2px solid transparent; outline-offset: 1px; }
.lb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lb-slide.on { outline-color: #fff; }
.lb-slide.drag-over { outline-color: var(--accent); }
.lb-slide .n { position: absolute; left: 4px; top: 3px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.lb-slide .vd { position: absolute; left: 4px; bottom: 3px; width: 14px; height: 14px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.lb-slide .x { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.65); color: #fff; display: none; place-items: center; cursor: pointer; }
.lb-slide .x svg { width: 11px; height: 11px; }
.lb-slide:hover .x { display: grid; }
.lb-add { flex: none; width: 64px; height: 64px; border-radius: 7px; border: 1.5px dashed rgba(255,255,255,.35); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 11px; }
.lb-add:hover { border-color: #fff; }
.lb-add svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .lb-slide, .lb-add { width: 52px; height: 52px; } .lightbox.car .lb-stage { bottom: 96px; } }
.cpin.other { opacity: .4; filter: grayscale(.4); }
.cpin.other:hover { opacity: .85; }
.cp-slide { font-weight: 500; color: var(--muted); }

/* ================= mobil iyileştirmeler ================= */
.viewport { -webkit-touch-callout: none; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(12,12,14,.28); animation: fade .15s; }
.scrim[hidden] { display: none; }
.rp-grip { display: none; }
@media (max-width: 760px) {
  /* çentik ve alt çubuk (ana ekran çizgisi) için boşluk */
  .toolbar { bottom: calc(10px + env(safe-area-inset-bottom)); gap: 0; padding: 4px; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar .tb-sep { display: none; }
  .tool { height: 40px; min-width: 36px; padding: 0 6px; }
  .tool.accent { padding: 0 9px; }
  .toolopts { bottom: calc(64px + env(safe-area-inset-bottom)); max-width: calc(100vw - 16px); overflow-x: auto; }
  .tool-hint { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .fab-left, .zoom, .me { top: calc(10px + env(safe-area-inset-top)); }
  .left { top: calc(10px + env(safe-area-inset-top)); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(300px, calc(100vw - 56px)); }
  .notes { top: calc(10px + env(safe-area-inset-top)); bottom: calc(10px + env(safe-area-inset-bottom)); }
  .zoom .help-btn, .zoom .zb-sep { display: none; }

  /* bilgi paneli: alttan açılan sayfa; önce yalnız başlık görünür, tutamağa dokununca açılır */
  .right { bottom: calc(66px + env(safe-area-inset-bottom)); max-height: 60vh; max-height: 60dvh; padding-top: 0; border-radius: 14px; box-shadow: 0 -2px 18px rgba(0,0,0,.12), var(--shadow); }
  .rp-grip { display: block; width: 100%; height: 20px; border: 0; background: transparent; cursor: pointer; position: sticky; top: 0; z-index: 1; background: var(--panel); }
  .rp-grip::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: #D4D4DA; margin: 8px auto 0; }
  .right.peek .rp-sect:not(:nth-child(2)) { display: none; }
  .right.peek .rp-sect:nth-child(2) { border-bottom: 0; padding-top: 4px; }
  .right .rp-sect:nth-child(2) { padding-top: 4px; }

  /* yorum: alttan açılan sayfa (konumu JS klavyeye göre ayarlar) */
  .cpop { width: calc(100vw - 20px); max-width: none; }
  .cp-foot .kbd { display: none; }
  .cp-foot { justify-content: flex-end; }

  /* menüler: kısayol yazıları yerine daha geniş dokunma alanı */
  .menu .k { display: none; }
  .menu button { min-height: 40px; }

  /* tam ekran: başlık bilgisi alt satıra */
  .lb-top { padding: 0 6px 0 14px; }
  .lb-title { flex-direction: column; align-items: flex-start; gap: 1px; }
  .lb-title b { max-width: 100%; font-size: 13.5px; }
  .lb-title span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
/* dokunmatik ekranlar: üzerine gelme (hover) yok, gizli düğmeler görünür olsun; el aracı gereksiz (tek parmak boşlukta kaydırır, iki parmak her yerde) */
@media (hover: none) and (pointer: coarse) {
  .list li .more { opacity: .7; }
  .tool[data-tool="hand"] { display: none; }
}

/* ================= giriş · kayıt · onay ================= */
.login { overflow: auto; }
.login-card form[hidden], .login-card input[hidden] { display: none; }
.login-msg { background: var(--accent-soft); color: var(--accent-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; text-align: left; }
.login-msg[hidden] { display: none; }
.login-links { margin-top: 14px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12.5px; }
.login-links .dot { color: var(--faint); }
.linkbtn { border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; padding: 4px 2px; border-radius: 5px; }
.linkbtn:hover { text-decoration: underline; }
.approve-card { max-width: 460px; text-align: left; }
.approve-card[hidden] { display: none; }
.approve-card h1 { text-align: center; }
.approve-card .brand-mark { margin-left: auto; margin-right: auto; }
.ap-sub { color: var(--muted); text-align: center; line-height: 1.6; margin: 0 0 18px; }
.ap-sub b { color: var(--text); }
.ap-sub span { font-size: 12px; }
.ap-wait { color: var(--muted); text-align: center; }
.ap-ed { display: flex; flex-direction: column; gap: 8px; }
.approve-card .acc-btns { margin-top: 16px; }
.acc-person { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13.5px; background: var(--panel); color: var(--text); }
.acc-hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: -2px; }
.acc-role { align-self: flex-start; }
.acc-role button { padding: 0 16px; font: inherit; font-size: 12.5px; font-weight: 500; }
.acc-boardsel { display: flex; flex-direction: column; gap: 8px; }
.acc-boardsel[hidden], .acc-boards[hidden] { display: none; }
.acc-all { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.acc-all input { margin-top: 2px; accent-color: var(--accent); }
.acc-all i { font-style: normal; color: var(--muted); font-size: 12px; }
.acc-row.off { opacity: .6; }
.acc-who b i { font-style: normal; font-weight: 400; color: var(--muted); }
#usr .acc-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
@media (max-width: 760px) { .login-card input, .acc-person { font-size: 16px; } }
.login-card input[type="checkbox"] { width: auto; height: auto; margin: 0; padding: 0; box-shadow: none; flex: none; }
.approve-card .acc-boards { max-height: 220px; overflow: auto; }
