/* GeoLog arayüz stilleri — açık/koyu tema */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/vendor/inter/inter-latin-ext-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/vendor/inter/inter-latin-ext-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/vendor/inter/inter-latin-ext-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/vendor/inter/inter-latin-ext-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url(/vendor/dejavu/DejaVuSansCondensed.ttf) format('truetype'); font-weight: 400; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url(/vendor/dejavu/DejaVuSansCondensed-Bold.ttf) format('truetype'); font-weight: 700; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url(/vendor/dejavu/DejaVuSansCondensed-Oblique.ttf) format('truetype'); font-style: italic; }

:root {
  --bg: #f4f6fa; --panel: #ffffff; --panel-2: #f8fafc; --border: #e2e8f0; --border-2: #cbd5e1;
  --text: #0f172a; --text-2: #475569; --text-3: #94a3b8; --brand: #c8102e; --brand-2: #1d4ed8;
  --primary: #2563eb; --primary-ink: #fff; --primary-soft: #dbeafe;
  --ok: #16a34a; --ok-soft: #dcfce7; --warn: #d97706; --warn-soft: #fef3c7; --err: #dc2626; --err-soft: #fee2e2; --info: #0891b2; --info-soft: #cffafe;
  /* alan renkleri */
  --c-general: #2563eb; --c-project: #0d9488; --c-log: #7c3aed; --c-lib: #c2410c; --c-admin: #be123c;
  --sidebar: #0b1220; --sidebar-2: #111a2e; --sidebar-text: #cbd5e1; --sidebar-muted: #64748b;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06); --radius: 10px; --radius-sm: 7px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b1020; --panel: #121a2d; --panel-2: #0f1626; --border: #23304a; --border-2: #33425f;
  --text: #e5e9f2; --text-2: #a5b1c7; --text-3: #64748b; --primary: #3b82f6; --primary-soft: #1e2b4a;
  --ok-soft: #12351f; --warn-soft: #3b2a0c; --err-soft: #3d1414; --info-soft: #0c3540;
  --sidebar: #070b16; --sidebar-2: #0d1424; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 650; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Kabuk ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
.app.collapsed { grid-template-columns: 64px 1fr; }
.sidebar { grid-row: 1 / 3; background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; overflow: hidden; }
.brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.brand .t { font-weight: 700; color: #fff; font-size: 1.02rem; letter-spacing: .2px; } .brand .s { font-size: .7rem; color: var(--sidebar-muted); }
.nav { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.nav-sec { margin-top: 12px; }
.nav-sec > .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-muted); padding: 6px 10px 4px; display: flex; align-items: center; gap: 8px; }
.nav-sec > .lbl::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--sec); }
.nav a { display: flex; align-items: center; gap: 11px; color: var(--sidebar-text); padding: 8px 10px; border-radius: 8px; font-size: .9rem; text-decoration: none; position: relative; white-space: nowrap; }
.nav a i { width: 18px; text-align: center; color: var(--sec); opacity: .9; }
.nav a:hover { background: var(--sidebar-2); color: #fff; }
.nav a.active { background: color-mix(in srgb, var(--sec) 22%, transparent); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--sec); }
.nav a .badge { margin-left: auto; }
.nav a.disabled { opacity: .4; pointer-events: none; }
.collapsed .nav a span, .collapsed .nav-sec > .lbl, .collapsed .brand .txt, .collapsed .side-foot .txt { display: none; }
.collapsed .nav a { justify-content: center; }
.side-foot { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: .72rem; color: var(--sidebar-muted); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.topbar .grow { flex: 1; }
.proj-switch { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px 4px 10px; max-width: 420px; }
.proj-switch i { color: var(--c-project); }
.proj-switch select { border: 0; background: transparent; font-weight: 600; color: var(--text); max-width: 340px; padding: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; display: inline-grid; place-items: center; position: relative; font-size: 15px; }
.icon-btn:hover { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--err); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 20px; cursor: pointer; border: 1px solid var(--border); background: var(--panel-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.main { overflow: auto; padding: 22px 26px 40px; }
.crumbs { font-size: .82rem; color: var(--text-2); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); } .crumbs i { font-size: .65rem; color: var(--text-3); }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; }
.page-head h1 .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--sec, var(--primary)); }
.page-head .sub { color: var(--text-2); font-size: .88rem; margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Bileşenler ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card > .hd h3 { margin: 0; font-size: .95rem; display: flex; align-items: center; gap: 8px; } .card > .hd h3 i { color: var(--sec, var(--primary)); }
.card > .hd .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card > .bd { padding: 16px; } .card > .bd.p0 { padding: 0; }
.card > .ft { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.nw { flex-wrap: nowrap; } .row .grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.stat { padding: 16px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.stat .v { font-size: 1.45rem; font-weight: 700; line-height: 1.1; } .stat .l { color: var(--text-2); font-size: .82rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--panel); color: var(--text); font: inherit; font-weight: 550; font-size: .88rem; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--panel-2); border-color: var(--text-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; } .btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--panel-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: .82rem; border-radius: 7px; } .btn.xs { height: 26px; padding: 0 8px; font-size: .78rem; border-radius: 6px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin: 0; } .btn-group .btn:last-child { border-radius: 0 8px 8px 0; } .btn-group .btn.active { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); z-index: 1; }

label.f { display: block; } label.f > span { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 4px; } label.f > span .req { color: var(--err); }
input, select, textarea { font: inherit; color: var(--text); }
.inp, input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], input[type=search], input[type=url], input[type=color]:not(.sw), select, textarea { width: 100%; height: 36px; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--panel); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
input.sm, select.sm { height: 30px; font-size: .85rem; padding: 3px 8px; }
input[type=color] { padding: 2px; height: 32px; width: 46px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--panel); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: middle; }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; user-select: none; }
.help { font-size: .78rem; color: var(--text-3); margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0 0 14px; } legend { font-weight: 650; font-size: .85rem; padding: 0 6px; color: var(--text-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: .74rem; font-weight: 600; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .badge.err { background: var(--err-soft); color: var(--err); border-color: transparent; } .badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; } .badge.blue { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-c { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.tbl th { text-align: left; font-weight: 600; color: var(--text-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--panel-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.tbl th.sort { cursor: pointer; } table.tbl th.sort:hover { color: var(--text); }
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tr:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
table.tbl tr.sel td { background: color-mix(in srgb, var(--primary) 9%, transparent); }
table.tbl.compact td { padding: 5px 10px; } table.tbl.compact th { padding: 6px 10px; }
.tbl-wrap { overflow: auto; max-height: 70vh; }
.progress { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; min-width: 60px; } .progress > i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.pager { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: thin; }
.tabs a, .tabs button { padding: 9px 14px; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 550; font-size: .88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; display: flex; gap: 7px; align-items: center; text-decoration: none; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .cnt { font-size: .7rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 6px; color: var(--text-2); }

.empty { text-align: center; padding: 46px 20px; color: var(--text-2); }
.empty i.big { font-size: 40px; color: var(--text-3); margin-bottom: 12px; display: block; }
.empty h3 { color: var(--text); }
.alert { padding: 11px 14px; border-radius: 8px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.alert i { margin-top: 3px; } .alert.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .alert.err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 30%, transparent); } .alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(2,6,23,.55); display: grid; place-items: center; z-index: 1000; padding: 20px; animation: fade .12s; }
.modal { background: var(--panel); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border: 1px solid var(--border); }
.modal.lg { width: min(880px, 100%); } .modal.xl { width: min(1200px, 100%); }
.modal .hd { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; } .modal .hd h3 { margin: 0; flex: 1; }
.modal .bd { padding: 18px; overflow: auto; } .modal .ft { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0 } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--info); box-shadow: var(--shadow); border-radius: 8px; padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; animation: fade .15s; font-size: .88rem; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--err); } .toast.warn { border-left-color: var(--warn); }
.toast i { margin-top: 3px; } .toast.ok i { color: var(--ok); } .toast.err i { color: var(--err); } .toast.warn i { color: var(--warn); }
.dropdown { position: absolute; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); min-width: 220px; z-index: 900; padding: 6px; }
.dropdown a, .dropdown button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; font-size: .88rem; cursor: pointer; text-align: left; text-decoration: none; }
.dropdown a:hover, .dropdown button:hover { background: var(--panel-2); }
.dropdown .sep { height: 1px; background: var(--border); margin: 5px 0; }
.notif-list { max-height: 420px; overflow: auto; width: 360px; }
.notif { padding: 9px 10px; border-radius: 6px; cursor: pointer; } .notif:hover { background: var(--panel-2); } .notif.unread { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg) } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 30px; justify-content: center; }

/* ---------- Veri editörü ---------- */
.ds-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ds-tab { display: inline-flex; gap: 7px; align-items: center; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; font-size: .84rem; color: var(--text-2); text-decoration: none !important; }
.ds-tab:hover { border-color: var(--border-2); color: var(--text); } .ds-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; } .ds-tab .n { font-size: .72rem; opacity: .75; }
.ds-tab .st { width: 8px; height: 8px; border-radius: 50%; }
.editor-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--panel-2); border-radius: var(--radius) var(--radius) 0 0; }
.save-ind { font-size: .8rem; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.tabulator { font-size: 13px; border: 0 !important; background: var(--panel) !important; }
.tabulator .tabulator-header { background: var(--panel-2) !important; border-bottom: 1px solid var(--border-2) !important; color: var(--text) !important; }
.tabulator .tabulator-header .tabulator-col { background: var(--panel-2) !important; border-right: 1px solid var(--border) !important; }
.tabulator .tabulator-header .tabulator-col.req .tabulator-col-title { color: var(--err); }
.tabulator .tabulator-tableholder { background: var(--panel) !important; }
.tabulator-row { background: var(--panel) !important; color: var(--text); border-bottom: 1px solid var(--border) !important; }
.tabulator-row.tabulator-row-even { background: var(--panel-2) !important; }
.tabulator-row .tabulator-cell { border-right: 1px solid var(--border) !important; }
.tabulator-row .tabulator-cell.cell-err { background: color-mix(in srgb, var(--err) 18%, transparent) !important; }
.tabulator-row .tabulator-cell.cell-warn { background: color-mix(in srgb, var(--warn) 18%, transparent) !important; }
.tabulator-row .tabulator-cell.cell-req-empty { box-shadow: inset 0 -2px 0 var(--err); }
.tabulator-row.row-dirty .tabulator-cell:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tabulator-row.row-pending { background: color-mix(in srgb, var(--warn) 10%, var(--panel)) !important; }
.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-only-cell-selected) { background: color-mix(in srgb, var(--primary) 20%, transparent) !important; }
.tabulator .tabulator-row .tabulator-cell.tabulator-editing { border: 2px solid var(--primary) !important; }
.tabulator .tabulator-footer { background: var(--panel-2) !important; color: var(--text-2) !important; border-top: 1px solid var(--border) !important; }
.tabulator-row .tabulator-cell input, .tabulator-row .tabulator-cell select { background: var(--panel); color: var(--text); }
.tabulator-edit-list { background: var(--panel) !important; color: var(--text) !important; border-color: var(--border) !important; }
.tabulator-edit-list .tabulator-edit-list-item { color: var(--text) !important; } .tabulator-edit-list .tabulator-edit-list-item.active, .tabulator-edit-list .tabulator-edit-list-item:hover { background: var(--primary) !important; color: #fff !important; }
.issues-panel { max-height: 220px; overflow: auto; border-top: 1px solid var(--border); font-size: .82rem; }
.issues-panel div { padding: 5px 12px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; gap: 8px; } .issues-panel div:hover { background: var(--panel-2); }

/* ---------- Log görüntüleyici ---------- */
.viewer { display: grid; grid-template-columns: 1fr 280px; gap: 14px; height: calc(100vh - 170px); min-height: 520px; }
.viewer .canvas { background: #6b7280; border-radius: var(--radius); overflow: auto; position: relative; border: 1px solid var(--border); }
[data-theme="dark"] .viewer .canvas { background: #1f2937; }
.viewer .pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 22px; min-width: max-content; }
.viewer .pages .pg { background: #fff; box-shadow: 0 4px 22px rgba(0,0,0,.35); line-height: 0; }
.viewer .pages .pg svg { display: block; }
.viewer .side { overflow: auto; }
.viewer .side .card + .card { margin-top: 12px; }
.warn-list { font-size: .8rem; max-height: 200px; overflow: auto; } .warn-list div { padding: 4px 0; border-bottom: 1px dashed var(--border); }

/* ---------- Tasarım editörü ---------- */
.designer { display: grid; grid-template-columns: 220px minmax(0, 1fr) 330px; gap: 12px; height: calc(100vh - 150px); min-height: 560px; }
.designer > .pane { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.designer .pane-hd { padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 650; font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.designer .pane-bd { padding: 10px; overflow: auto; flex: 1; min-height: 0; }
.palette-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px dashed var(--border-2); border-radius: 7px; margin-bottom: 6px; cursor: grab; font-size: .84rem; background: var(--panel-2); user-select: none; }
.palette-item:hover { border-color: var(--c-log); border-style: solid; } .palette-item i { color: var(--c-log); width: 16px; text-align: center; }
.stage-wrap { overflow: auto; background: repeating-conic-gradient(var(--panel-2) 0% 25%, var(--panel) 0% 50%) 50% / 20px 20px; flex: 1; min-height: 0; position: relative; }
.stage { margin: 18px auto; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.25); position: relative; color: #111; transform-origin: top left; }
.stage .zone { position: absolute; left: 0; right: 0; border: 1px dashed #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #64748b; cursor: pointer; }
.stage .zone:hover, .stage .zone.sel { border-color: #7c3aed; background: rgba(124,58,237,.06); }
.stage .cols { position: absolute; display: flex; }
.stage .col { position: relative; border: 1px solid #334155; border-right-width: 0; background: #fff; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.stage .col:last-child { border-right-width: 1px; }
.stage .col .ch { background: #e5e7eb; border-bottom: 1px solid #334155; font-size: 10px; font-weight: 700; text-align: center; padding: 3px 2px; line-height: 1.15; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stage .col .cb { flex: 1; display: grid; place-items: center; color: #94a3b8; font-size: 18px; }
.stage .col .cb small { display: block; font-size: 9px; text-align: center; }
.stage .col.sel { outline: 2px solid #7c3aed; outline-offset: -2px; z-index: 2; }
.stage .col.drag-over { box-shadow: inset 3px 0 0 #7c3aed; }
.stage .col .rz { position: absolute; right: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 3; }
.stage .col .rz:hover { background: rgba(124,58,237,.35); }
.stage .col.locked .rz { display: none; } .stage .col .lk { position: absolute; top: 2px; right: 3px; font-size: 9px; color: #7c3aed; }
.stage .drop-end { position: absolute; top: 0; bottom: 0; width: 40px; border: 2px dashed transparent; }
.stage .drop-end.drag-over { border-color: #7c3aed; background: rgba(124,58,237,.08); }
.props .grp { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.props .grp > .gh { padding: 7px 10px; font-weight: 650; font-size: .8rem; background: var(--panel-2); border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 6px; }
.props .grp > .gb { padding: 9px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.props .grp > .gb .full { grid-column: 1 / -1; }
.props label.f > span { font-size: .72rem; margin-bottom: 2px; } .props input, .props select { height: 30px; font-size: .84rem; padding: 3px 7px; }
.props textarea { min-height: 54px; font-size: .84rem; }
.series-row { display: grid; grid-template-columns: 1fr 40px 54px 28px; gap: 5px; align-items: center; margin-bottom: 5px; }
.mini-preview { border: 1px solid var(--border); border-radius: 8px; overflow: auto; max-height: 360px; background: #e5e7eb; }

/* ---------- Diğer ---------- */
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pattern-tile { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.pattern-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pattern-tile .sw { height: 70px; background-repeat: repeat; background-color: #fff; border-bottom: 1px solid var(--border); }
.pattern-tile .nm { padding: 6px 8px; font-size: .76rem; line-height: 1.25; } .pattern-tile .nm b { display: block; font-size: .72rem; color: var(--text-2); }
.swatch { width: 38px; height: 22px; border-radius: 4px; border: 1px solid var(--border-2); background-repeat: repeat; background-size: auto 22px; display: inline-block; vertical-align: middle; background-color: #fff; }
.wizard-steps { display: flex; gap: 0; margin-bottom: 18px; flex-wrap: wrap; }
.wizard-steps .st { flex: 1; min-width: 120px; padding: 10px 12px; border-bottom: 3px solid var(--border); color: var(--text-3); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wizard-steps .st .n { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-2); display: grid; place-items: center; font-size: .75rem; }
.wizard-steps .st.done { color: var(--ok); border-color: var(--ok); } .wizard-steps .st.done .n { background: var(--ok); color: #fff; }
.wizard-steps .st.cur { color: var(--primary); border-color: var(--primary); } .wizard-steps .st.cur .n { background: var(--primary); color: #fff; }
.map-box { height: calc(100vh - 200px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.bar-h { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin: 4px 0; } .bar-h .lbl { width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-h .bar { flex: 1; height: 14px; background: var(--panel-2); border-radius: 3px; overflow: hidden; } .bar-h .bar i { display: block; height: 100%; } .bar-h .v { width: 70px; text-align: right; color: var(--text-2); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: .88rem; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; font-weight: 500; }
.diff { font-family: var(--mono); font-size: .75rem; white-space: pre-wrap; word-break: break-all; max-width: 420px; max-height: 120px; overflow: auto; }
.kbd { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--panel-2); }

/* ---------- Giriş ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.login-hero { background: linear-gradient(150deg, #0b1220 0%, #13213f 55%, #3b0d17 100%); color: #e2e8f0; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.35), transparent 70%); }
.login-hero .logo { display: flex; gap: 14px; align-items: center; } .login-hero .logo img { width: 64px; height: 64px; background: #fff; border-radius: 50%; }
.login-hero h1 { font-size: 2.1rem; color: #fff; max-width: 520px; } .login-hero p { color: #94a3b8; max-width: 480px; }
.login-hero .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; position: relative; z-index: 1; }
.login-hero .feats div { display: flex; gap: 10px; align-items: center; font-size: .9rem; } .login-hero .feats i { color: #f87171; width: 18px; }
.login-box { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 1.5rem; } .login-card .stack > * + * { margin-top: 14px; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .designer { grid-template-columns: 180px minmax(0, 1fr) 290px; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 100; transform: translateX(-100%); transition: transform .2s; } .app.mob-open .sidebar { transform: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; } .main { padding: 14px; } .viewer { grid-template-columns: 1fr; height: auto; } .viewer .canvas { height: 70vh; }
  .designer { grid-template-columns: 1fr; height: auto; } .login-page { grid-template-columns: 1fr; } .login-hero { display: none; } .proj-switch select { max-width: 160px; } .hide-m { display: none !important; }
}
@media print { .sidebar, .topbar, .viewer .side { display: none !important; } .app { display: block; } .main { padding: 0; overflow: visible; } .viewer .canvas { background: none; overflow: visible; height: auto; } }
