:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #14181f;
  --ink-2: #4a5160;
  --ink-3: #7c8494;
  --line: #e2e5ea;
  --line-2: #d0d4db;
  --bar: #14181f;
  --bar-ink: #e9ecf1;
  --accent: #d98a00;
  --accent-ink: #ffffff;
  --accent-soft: #fff4dd;
  --focus: #2f6fed;
  --danger: #c4332b;
  --danger-soft: #fdecea;
  --ok: #1e8a4c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .06), 0 2px 8px rgba(20, 24, 31, .04);
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  /* durum renkleri */
  --st-open: #2f6fed;        --st-open-bg: #e8f0fe;
  --st-analysis: #7a4fd6;    --st-analysis-bg: #f1ebfd;
  --st-wait: #b26a00;        --st-wait-bg: #fff2d9;
  --st-review: #c4332b;      --st-review-bg: #fdecea;
  --st-closed: #1e8a4c;      --st-closed-bg: #e3f5ea;
  --st-rejected: #5d6573;    --st-rejected-bg: #eceef1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217; --surface: #171b22; --surface-2: #1c2129; --ink: #e9ecf1; --ink-2: #b4bac6; --ink-3: #848c9b;
    --line: #262c36; --line-2: #333a46; --bar: #0b0d11; --accent: #f5a524; --accent-ink: #14181f; --accent-soft: #33280f;
    --danger: #ff6b61; --danger-soft: #3a1c1a; --ok: #4cc584; --shadow: none;
    --st-open: #7aa5ff; --st-open-bg: #1b2740; --st-analysis: #b39bff; --st-analysis-bg: #2a2340;
    --st-wait: #f5b84a; --st-wait-bg: #3a2c10; --st-review: #ff7f75; --st-review-bg: #3d1d1b;
    --st-closed: #5fd395; --st-closed-bg: #163325; --st-rejected: #a1a9b6; --st-rejected-bg: #262b33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }
.btn.mobile-only { display: none; }
#barcodeSection { scroll-margin-top: 66px; }

/* ---------- ust bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--bar-ink);
  padding: env(safe-area-inset-top) 0 0;
}
.topbar-inner { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 16px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .02em; text-decoration: none; margin-right: 14px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #14181f; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: #aab2c0; font-weight: 500; font-size: 14px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.spacer { flex: 1; }
.lang-select { height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(255,255,255,.08); color: #fff; padding: 0 5px; cursor: pointer; font-size: 12px; }
.lang-select option { color: #14181f; background: #fff; }
.mobile-lang-btn { display: none; }
.login-lang { align-self: flex-start; margin: 8px 0 12px; background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.user-btn { background: rgba(255,255,255,.08); border: 0; color: #e9ecf1; border-radius: 999px; padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #39404d; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.menu { position: absolute; right: 16px; top: 52px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.18); min-width: 200px; padding: 6px; z-index: 30; }
.menu button, .menu a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 7px; cursor: pointer; text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }

/* alt gezinme (mobil) */
.tabbar { display: none; }

/* ---------- sayfa ---------- */
.page { max-width: 1400px; margin: 0 auto; padding: 18px 16px 90px; }
.page-narrow { max-width: 880px; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.page-head .count { color: var(--ink-3); font-size: 14px; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  font-weight: 550; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); border-color: var(--accent); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { width: 38px; padding: 0; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field > span em { color: var(--danger); font-style: normal; }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  font-size: 15px; min-width: 0;
}
textarea.input { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,237,.15); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8494' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.form-section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid .span-2 { grid-column: span 2; }
.grid .span-all { grid-column: 1 / -1; }
.form-actions { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: flex-end; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- filtreler ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; }
.search input { padding-left: 36px; }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); }
.toolbar select.input { width: auto; flex: 0 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 12px; height: 38px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--surface); }

/* ---------- liste tablosu ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: var(--surface-2); }
.cell-issue { max-width: 380px; }
.cell-issue .t { font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-issue .n { color: var(--ink-3); font-size: 13px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.nowrap { white-space: nowrap; }

/* mobil kartlar */
.cards { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 9px; display: block; text-decoration: none; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--ink-3); }
.card-top .cust { color: var(--ink); font-weight: 650; font-size: 14px; }
.card .issue { font-weight: 560; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); margin-top: 7px; }

/* ---------- rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.st-open { color: var(--st-open); background: var(--st-open-bg); }
.st-analysis { color: var(--st-analysis); background: var(--st-analysis-bg); }
.st-wait { color: var(--st-wait); background: var(--st-wait-bg); }
.st-review { color: var(--st-review); background: var(--st-review-bg); }
.st-closed { color: var(--st-closed); background: var(--st-closed-bg); }
.st-rejected { color: var(--st-rejected); background: var(--st-rejected-bg); }
.chip { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 550; }

/* ---------- detay ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-body { padding: 16px; }
.issue-title { font-size: 19px; font-weight: 650; margin: 0 0 10px; line-height: 1.35; white-space: pre-wrap; letter-spacing: -.005em; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; }
.kv div { min-width: 0; }
.kv dt { font-size: 12px; letter-spacing: .01em; color: var(--ink-3); font-weight: 650; margin-bottom: 2px; }
.kv dd { margin: 0; font-weight: 520; overflow-wrap: anywhere; }
.kv dd:empty::after { content: "—"; color: var(--line-2); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: -7px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline .when { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timeline .when b { color: var(--ink-2); font-weight: 650; }
.timeline .txt { white-space: pre-wrap; margin-top: 3px; overflow-wrap: anywhere; }
.timeline .tools { margin-left: auto; display: flex; gap: 2px; }
.timeline .tools button { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 12.5px; padding: 2px 6px; border-radius: 5px; }
.timeline .tools button:hover { background: var(--surface-2); color: var(--ink); }
.note-form { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.note-form .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.note-form .row .input { width: auto; flex: 1 1 140px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .file { font-size: 11px; padding: 6px; text-align: center; color: var(--ink-2); overflow-wrap: anywhere; }
.thumb .file b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 3px; }
.thumb .del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.upload-zone { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.barcode-form { display: grid; gap: 8px; margin-top: 12px; }
.barcode-form .upload-zone { margin-top: 0; }
.barcode-list { list-style: none; padding: 0; margin: 0; }
.barcode-list li { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.barcode-list li:first-child { padding-top: 0; }
.barcode-list strong { font-size: 14px; user-select: all; }
.barcode-list small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.scanner-modal { width: min(100%, 520px); }
.scanner-head { position: sticky; top: -20px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 10px; background: var(--surface); }
.scanner-head h3 { margin: 0; }
.scanner-head [data-scan-close] { min-width: 40px; font-size: 24px; line-height: 1; }
.scanner-modal video { width: 100%; max-height: 55vh; object-fit: cover; background: #111; border-radius: 8px; margin: 8px 0; }
.scanner-modal #scanStatus { min-height: 20px; margin-top: 10px; overflow-wrap: anywhere; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { text-decoration: none; display: block; }
.mini-list .sub { color: var(--ink-3); font-size: 12.5px; }
.warn-box { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }

/* ---------- panel / dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; display: block; }
.kpi .label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi .value { font-size: 30px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.alert .value { color: var(--st-review); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; display: flex; }
.bar-fill { height: 100%; background: var(--ink-3); opacity: .35; }
.bar-fill.open { background: var(--accent); opacity: 1; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; min-width: 0; }
.col .c { width: 100%; max-width: 46px; background: var(--accent); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.col .c span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.col .m { font-size: 11.5px; color: var(--ink-3); }

/* ---------- giris ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bar); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 14px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card .brand { color: var(--ink); margin: 0 0 4px; font-size: 18px; }
.login-card p { color: var(--ink-3); margin: 0 0 22px; font-size: 14px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; height: 44px; margin-top: 6px; }
.err { color: var(--danger); font-size: 13.5px; margin: 8px 0 0; min-height: 1em; }

/* ---------- admin ---------- */
.user-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 90px 90px auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.secret { font-family: var(--mono); background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; font-size: 15px; margin: 8px 0; user-select: all; }

/* ---------- toast & modal ---------- */
#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--danger); color: #fff; }
.modal-back { position: fixed; inset: 0; background: rgba(10, 12, 16, .55); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 460px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 12px; font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 95; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .user-row { grid-template-columns: 1fr auto; }
  .user-row .hide-m { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .btn.mobile-only { display: inline-flex; }
  .nav, .user-btn .uname { display: none; }
  .topbar-inner { height: 50px; }
  .brand { min-width: 0; margin-right: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-inner > .lang-select { display: none; }
  .mobile-lang-btn { display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
  .page { padding: 12px 12px 96px; }
  .page-head h1 { font-size: 19px; }
  .table-wrap { display: none; }
  .cards { display: block; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .span-2 { grid-column: 1 / -1; }
  .toolbar select.input { flex: 1 1 calc(50% - 4px); }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { flex: 1; }
  .hide-m { display: none !important; }
  .input, select.input { height: 44px; font-size: 16px; } /* iOS zoom engeli */
  textarea.input { font-size: 16px; }
  .btn { height: 42px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 0 7px; text-decoration: none; font-size: 11px; color: var(--ink-3); font-weight: 600; }
  .tabbar button { border: 0; background: transparent; cursor: pointer; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar-globe { font-size: 21px; line-height: 22px; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.new { color: var(--accent); }
  .form-actions { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .bar-row { grid-template-columns: 96px 1fr 56px; }
}
