/* LAUTRA — gaya antarmuka. Desktop 1366–1920 px dan tablet lapangan (NFR-COMP-02). */
:root {
  --navy: #0b3d5c;
  --navy-2: #0e4f75;
  --sea: #0e7490;
  --sea-soft: #e0f2f7;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --line: #dbe3ea;
  --line-2: #eef2f5;
  --text: #13232f;
  --muted: #5b6b78;
  --ok: #15803d; --ok-bg: #e7f6ec;
  --warn: #b45309; --warn-bg: #fdf3e2;
  --bad: #b91c1c; --bad-bg: #fdecec;
  --info: #0e7490; --info-bg: #e3f3f7;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 40, 60, .06), 0 2px 8px rgba(15, 40, 60, .05);
  --nav-w: 232px;
  --top-h: 56px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--sea); }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
h1 { font-size: 1.45rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.bad { color: var(--bad); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }

/* ---- Kerangka -------------------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 1000;
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand b { display: block; font-size: 1.05rem; letter-spacing: .08em; }
.brand small { display: block; font-size: .72rem; opacity: .8; white-space: nowrap; }
.logo {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #0e7490, #155e75); color: #a5f3fc; font-size: 22px; font-weight: 700;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.year { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.year select { font-weight: 700; background: var(--navy-2); color: #fff; border-color: rgba(255, 255, 255, .25); }
.sync, .mode-local {
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; border-radius: 999px;
  padding: 4px 12px 4px 26px; font: inherit; font-size: .85rem; cursor: pointer; position: relative; white-space: nowrap;
}
.sync::before, .mode-local::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #4ade80;
}
.sync.pending::before { background: #fbbf24; }
.sync.err::before { background: #f87171; }
.sync.busy::before { background: #67e8f9; animation: pulse 1s infinite; }
.mode-local { cursor: default; }
.mode-local::before { background: #a5b4fc; }
@keyframes pulse { 50% { opacity: .3; } }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; padding: 4px; border-radius: 6px; }
.user-btn:hover { background: rgba(255, 255, 255, .08); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #67e8f9; color: var(--navy); font-weight: 700; }
.who b { display: block; font-size: .85rem; }
.who small { display: block; font-size: .72rem; opacity: .8; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 8px; z-index: 1100;
}
.menu-pop button { width: 100%; text-align: left; background: none; border: 0; padding: 8px; font: inherit; cursor: pointer; border-radius: 6px; }
.menu-pop button:hover { background: var(--line-2); }
.menu-pop label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.icon-btn { background: none; border: 0; color: inherit; font-size: 1.15rem; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.icon-btn:hover { background: rgba(127, 127, 127, .15); }
.topbar .menu { display: none; }

.nav {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--nav-w); overflow-y: auto; z-index: 900;
  background: var(--surface); border-right: 1px solid var(--line); padding: 10px 8px 16px; display: flex; flex-direction: column;
}
.nav-group { margin-bottom: 10px; }
.nav-group > span { display: block; padding: 6px 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500;
}
.nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); flex: none; }
.nav a:hover { background: var(--line-2); }
.nav a.active { background: var(--sea-soft); color: var(--navy); font-weight: 650; }
.nav a.active svg { color: var(--sea); }
.nav-foot { margin-top: auto; padding: 10px; font-size: .72rem; color: var(--muted); }
.nav-scrim { display: none; }

main { margin: var(--top-h) 0 0 var(--nav-w); padding: 22px 28px 48px; outline: none; max-width: 1680px; }

/* ---- Komponen --------------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.desc { margin: 0; color: var(--muted); max-width: 80ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.cols > .card { margin-bottom: 0; }
.cols + .card, .cols + section { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #b7c5d1; background: #f8fafb; }
.btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .sort:focus-visible, a:focus-visible {
  outline: 2px solid var(--sea); outline-offset: 1px;
}
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.primary:hover { background: #0c637a; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost-danger { color: var(--bad); }
.btn.ghost-danger:hover { background: var(--bad-bg); border-color: #f3b4b4; }
.btn.sm { padding: 3px 9px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

input, select, textarea {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; min-width: 0;
}
textarea { resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--line-2); color: var(--muted); }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap;
  background: var(--line-2); color: var(--muted);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }

.note { padding: 9px 12px; border-radius: 6px; background: var(--line-2); border-left: 3px solid #94a3b8; margin: 0 0 12px; }
.note.info { background: var(--info-bg); border-color: var(--info); }
.note.warn { background: var(--warn-bg); border-color: var(--warn); }
.note.bad { background: var(--bad-bg); border-color: var(--bad); }
.alerts { margin-bottom: 16px; }
.alerts .note { margin-bottom: 6px; }

/* Tabel */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar input[type=search] { width: 260px; }
.toolbar .count { margin-left: auto; color: var(--muted); font-size: .86rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .table-wrap { border: 0; border-radius: 0; margin: 0 -18px; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.grid thead th { background: #f7f9fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.grid th.num, .grid td.num { text-align: right; }
.grid tbody tr:hover { background: #fafcfd; }
.grid tr.current { background: var(--sea-soft); }
.grid tfoot td { background: #f7f9fb; border-top: 1px solid var(--line); }
.grid td.no, .grid th.no { width: 36px; color: var(--muted); text-align: right; }
.grid td.act { white-space: nowrap; text-align: right; }
.grid td.act .btn + .btn { margin-left: 4px; }
.grid td.empty { text-align: center; color: var(--muted); padding: 28px; }
.grid.compact th, .grid.compact td { padding: 5px 8px; }
.sort { background: none; border: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--muted); }
.barcell { min-width: 140px; }
.bar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-right: 6px; }
.bar i { display: block; height: 100%; background: var(--ok); }
.bar.warn i { background: #d97706; }
.bar.bad i { background: var(--bad); }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.tile span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.tile b { display: block; font-size: 1.3rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile.bad b { color: var(--bad); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 10px; align-items: center; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--sea); border-radius: 5px; }
.hbar small { color: var(--muted); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field { display: grid; gap: 4px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .86rem; }
.field .req { color: var(--bad); }
.field .hint { color: var(--muted); font-size: .78rem; }
.field .err { color: var(--bad); font-size: .8rem; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); background: #fffafa; }
.meta { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; }
fieldset:disabled { opacity: .5; }
legend { font-weight: 650; padding: 0 4px; font-size: .86rem; }
.check { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }
.year-form { display: grid; gap: 12px; max-width: 760px; }
.year-form > label { display: grid; gap: 4px; font-weight: 600; max-width: 200px; }

/* Unggah berkas */
.upload-row { display: flex; gap: 6px; }
.upload-row input { flex: 1; }
.upload-row .btn.busy { opacity: .6; pointer-events: none; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(10, 25, 40, .45); z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 10px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.small { width: min(440px, 100%); }
.modal.wide { width: min(820px, 100%); }
.modal.xwide { width: min(1180px, 100%); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 10px 10px; }

/* Toast */
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 3000; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 10px 14px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: opacity .3s, transform .3s; }
.toast.ok { background: #166534; }
.toast.error { background: #991b1b; }
.toast.warn { background: #92400e; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* GIS */
.gis { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.gis-side { display: grid; gap: 14px; margin: 0; }
.gis-side > label { display: grid; gap: 4px; font-weight: 600; }
.gis-map { padding: 0; overflow: hidden; position: relative; margin: 0; }
#map { height: calc(100vh - var(--top-h) - 150px); min-height: 460px; }
#map.crosshair { cursor: crosshair; }
.placing { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 800; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); }
.legend { display: grid; gap: 4px; font-size: .86rem; }
.legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #94a3b8; }
.sq { width: 12px; height: 12px; background: #c2410c; border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 1px #94a3b8; }
.ring { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--navy); }
ul.plain { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
ul.plain li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-kon span { display: block; width: 14px; height: 14px; background: #c2410c; border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pop h3 { margin: 0; font-size: 1rem; }
.pop p { margin: 2px 0 6px; }
.pop img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 6px; margin: 4px 0; }
.pop dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0; }
.pop dt { color: var(--muted); }
.pop dd { margin: 0; }
.pop ul { margin: 4px 0; padding-left: 18px; }

/* Pratinjau KAK (mengikuti template Spesifikasi Teknis) */
.kak-preview { background: #e9edf1; padding: 16px; border-radius: 6px; }
.kak-paper { background: #fff; max-width: 820px; margin: 0 auto; padding: 36px 48px; font-family: "Times New Roman", Times, serif; font-size: 14px; color: #000; box-shadow: var(--shadow); }
.kak-paper p { margin: 0 0 6px; text-align: justify; }
.kak-paper .c { text-align: center; }
.kak-paper .r { text-align: right; }
.kak-paper h3 { text-align: center; font-size: 1.1em; text-decoration: underline; margin: 14px 0 8px; }
.kak-paper h3.pb { text-decoration: none; margin-top: 36px; border-top: 1px dashed #999; padding-top: 18px; }
.kak-paper h3 small { font-size: .8em; }
.kak-paper.kak-v2 { font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
.kak-paper.kak-v2 h3 { text-decoration: none; }
.kak-paper.kak-v2 h4 { margin: 14px 0 6px; font-size: 1em; }
table.kk { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.kk th, table.kk td { border: 1px solid #000; padding: 4px 8px; vertical-align: top; text-align: left; }
table.kk th[scope], table.kk > tbody > tr > th:first-child { width: 28%; }
table.kk th.bar { background: #d9d9d9; width: auto; }
table.kk th.c, table.kk td.c { text-align: center; }
table.kk th.sm { font-size: .85em; }
table.kk td.lg { width: 120px; }
table.kk td.lg img { width: 80px; }
table.kk.box { border-width: 3px; }
.kak-paper ul, .kak-paper ol { margin: 0 0 6px; padding-left: 22px; }
table.kk-t { width: 100%; border-collapse: collapse; font-size: .88em; margin: 4px 0; }
table.kk-t th, table.kk-t td { border: 1px solid #000; padding: 3px 6px; vertical-align: top; }
table.kk-t th { background: #f1f5f9; text-align: left; }
table.kk-t tr.navy th { background: #0f2c59; color: #fff; }
table.kk-t td.wil { background: #dbeafe; color: #1e40af; font-weight: bold; }
table.kk-t td.sp { height: 6px; padding: 0; }
table.kk-t td.c { text-align: center; }
table.kk-t td img { max-width: 80px; max-height: 80px; display: block; margin: auto; }
.kak-ttd { margin: 18px 0 0 55%; text-align: center; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: var(--bg); }
.login-hero {
  background: linear-gradient(160deg, #0b3d5c 0%, #0e7490 100%); color: #fff; padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.login-hero h1 { font-size: 2rem; line-height: 1.2; max-width: 22ch; margin: 12px 0 0; }
.login-hero p { max-width: 52ch; opacity: .9; margin: 0; }
.login-points { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.login-points li { padding-left: 24px; position: relative; }
.login-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: #67e8f9; }
.login-panel { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 32px; max-width: 460px; width: 100%; margin: 0 auto; }
.login-panel .card { display: grid; gap: 12px; padding: 24px; margin: 0; }
.login-panel h2 { margin: 0; font-size: 1.25rem; }
.login-panel h3 { margin: 0; font-size: 1rem; }
.login-panel label { display: grid; gap: 4px; font-weight: 600; }
.login .err { color: var(--bad); min-height: 1em; margin: 0; }
.login .demo { margin: 0; }
.guest-card { background: var(--sea-soft); border-color: #bde3ec; }
.guest-card p { margin: 0; }
.guest-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.brand.big { color: var(--navy); }
.brand.big.light { color: #fff; }
.brand.big b { font-size: 1.4rem; }
.brand.big small { white-space: normal; }
.mode-guest { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 12px; font-size: .85rem; background: rgba(103, 232, 249, .15); white-space: nowrap; }
.nav-guest { margin: 8px 4px 0; padding: 12px; border-radius: 8px; background: var(--sea-soft); display: grid; gap: 6px; font-size: .84rem; }
.nav-guest span { color: var(--muted); }


/* E-Katalog & Konstruksi Desa (kartu) */
.target-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface);
  border: 1px solid #c6e3ea; border-radius: 10px; padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.target-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1; }
.target-left label { display: grid; gap: 3px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 220px; flex: 1; }
.target-left select { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; color: var(--text); }
.target-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--sea-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.target-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pill-stat { text-align: right; }
.pill-stat small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 650; }
.pill-stat b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.shop-filter { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.shop-filter input[type=search] { flex: 1; min-width: 240px; padding: 10px 12px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .86rem; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--sea); color: var(--sea); }
.pill.active { background: var(--sea); border-color: var(--sea); color: #fff; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 96px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 40, 60, .1); border-color: var(--sea); }
.shop-thumb { height: 130px; background: linear-gradient(135deg, #eef7f9, #e0eff3); display: grid; place-items: center; font-size: 46px; position: relative; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag-code, .tag-dim, .tag-have { position: absolute; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.tag-code { top: 8px; left: 8px; background: rgba(11, 61, 92, .88); color: #e2f1f8; }
.tag-have { top: 8px; right: 8px; background: #fff; color: var(--ok); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tag-dim { bottom: 8px; right: 8px; background: rgba(255, 255, 255, .94); color: var(--navy); }
.shop-body { padding: 12px 14px; display: flex; flex-direction: column; flex: 1; }
.shop-cat { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 650; letter-spacing: .04em; }
.shop-body h3 { font-size: .98rem; margin: 2px 0 6px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-price { font-size: 1.12rem; font-weight: 800; color: var(--sea); font-variant-numeric: tabular-nums; }
.shop-price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.shop-est { font-size: .78rem; background: #f1f7f9; border-radius: 6px; padding: 4px 8px; margin: 6px 0; }
.shop-spec { font-size: .78rem; color: var(--muted); margin: auto 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-foot { padding: 10px 14px 12px; border-top: 1px solid var(--line-2); }
.add-cart { border-color: var(--sea); color: var(--sea); background: var(--sea-soft); }
.add-cart:hover { background: var(--sea); color: #fff; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--sea); border-radius: 8px; overflow: hidden; height: 34px; }
.shop-foot .stepper { display: flex; }
.stepper button { width: 36px; border: 0; background: var(--sea-soft); color: var(--sea); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--sea); color: #fff; }
.stepper input { width: 54px; flex: 1; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 0; }
.float-bar { position: fixed; left: calc(var(--nav-w) + 24px); right: 24px; bottom: 18px; z-index: 950; max-width: 1200px; margin: 0 auto;
  background: linear-gradient(135deg, #0b3d5c, #0e4f75); color: #fff; border-radius: 12px; padding: 12px 20px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 12px 36px rgba(11, 61, 92, .35); }
.float-bar.static { position: sticky; left: auto; right: auto; bottom: 12px; margin-top: 8px; }
.float-bar small { display: block; color: #a8cbd8; font-size: .78rem; }
.float-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-align: right; }
.float-right b { font-size: 1.2rem; color: #67e8f9; font-variant-numeric: tabular-nums; }
.btn.ghost-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .2); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { -moz-appearance: textfield; appearance: textfield; }
body:has(.float-bar) #toasts { bottom: 104px; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.preset-bar { background: linear-gradient(135deg, #0b3d5c, #0e7490); color: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.preset-bar h2 { margin: 2px 0; font-size: 1.1rem; }
.preset-bar p { margin: 0; color: #c3e1e8; font-size: .86rem; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #93e4d4; font-weight: 700; }
.preset-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 9px; padding: 8px 14px; cursor: pointer;
  text-align: left; font: inherit; display: grid; gap: 2px; }
.preset-btn small { color: #93e4d4; font-size: .76rem; }
.preset-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.preset-btn:disabled { opacity: .5; cursor: not-allowed; }
.konst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.konst-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; }
.konst-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 40, 60, .12); }
.konst-card.placed { border-color: var(--sea); box-shadow: 0 6px 20px rgba(14, 116, 144, .16); }
.konst-visual { display: block; width: 100%; height: 190px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #f8fafc; position: relative; cursor: zoom-in; overflow: hidden; }
.konst-visual svg { width: 100%; height: 100%; display: block; transition: transform .25s; }
.konst-card:hover .konst-visual svg { transform: scale(1.03); }
.konst-body { padding: 12px 14px; display: flex; flex-direction: column; flex: 1; }
.konst-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; font-weight: 700; color: var(--sea); }
.konst-body h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.konst-body p { margin: 0 0 6px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 6px 0 10px; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--line-2);
  border-radius: 8px; font-size: .78rem; }
.spec-grid dt { font-size: .68rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.spec-grid dd { margin: 0; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spec-grid.big { font-size: .9rem; }
.spec-grid.big dd { -webkit-line-clamp: unset; }
.tier-label { font-size: .76rem; color: var(--muted); margin-top: auto; }
.tier-pills { display: flex; gap: 4px; margin-top: 4px; }
.tier { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 4px; font: inherit; font-size: .72rem; font-weight: 650;
  color: var(--muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier:hover:not(:disabled) { border-color: var(--sea); color: var(--sea); }
.tier.active { background: var(--sea-soft); border-color: var(--sea); color: var(--sea); }
.tier:disabled { cursor: not-allowed; opacity: .55; }
.konst-foot { padding: 10px 14px 12px; background: #f8fafc; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.konst-foot small { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.konst-foot b { font-variant-numeric: tabular-nums; }
.konst-foot b.pos { color: var(--sea); }
.konst-detail { height: 300px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.konst-detail svg { width: 100%; height: 100%; }

/* ---- Responsif --------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .who, .brand small { display: none; }
  .gis { grid-template-columns: 1fr; }
  #map { height: 60vh; }
}
@media (max-width: 900px) {
  .float-bar { left: 12px; right: 12px; }
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 20px; }
  .login-hero h1 { font-size: 1.5rem; }
  .login-panel { padding: 20px 16px 32px; }
  .topbar .menu { display: inline-block; }
  .nav { transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 16px rgba(0, 0, 0, .12); }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0, 0, 0, .25); z-index: 800; }
  main { margin-left: 0; padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar input[type=search] { width: 100%; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sync, .mode-local { display: none; }
  .kak-paper { padding: 20px; }
}
@media print {
  .topbar, .nav, .toolbar, .actions, .act, .pager { display: none !important; }
  main { margin: 0; padding: 0; }
}
