:root {
  --ink: #120d0f;
  --side: #17110f;
  --bg: #f6f1ec;
  --card: #ffffff;
  --text: #241b1d;
  --muted: #85767a;
  --line: #ece4dd;
  --line-2: #e2d8cf;
  --gold: #c8a46b;
  --gold-soft: #f5ecdc;
  --rose: #b0716b;
  --rose-soft: #f6e6e3;
  --good: #2f8a5b;   --good-bg: #e5f4ec;
  --warn: #a8701c;   --warn-bg: #fbf0dc;
  --bad: #c0463f;    --bad-bg: #fbe7e5;
  --info: #3c6aa8;   --info-bg: #e6eef9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(36, 27, 29, .04), 0 8px 24px -12px rgba(36, 27, 29, .12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(200, 164, 107, .6); color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--line-2); background: var(--card); transition: background .2s, border-color .2s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: #cbbcb0; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #2c2023; border-color: #2c2023; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--danger { color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); border-color: #efc4bf; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: #f1ebe5; border-color: transparent; }
.btn--sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: #f1ebe5; color: var(--text); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__art { background: radial-gradient(120% 90% at 0% 0%, #4a2730 0%, var(--ink) 55%), var(--ink); color: #f6efe7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login__art::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(200, 164, 107, .35), transparent 65%); }
.login__brand { display: flex; align-items: center; gap: 12px; }
.login__brand b { font-family: var(--serif); font-size: 24px; font-weight: 500; display: block; line-height: 1; }
.login__brand small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }
.login__art h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; margin: 0; }
.login__art h1 em { color: #e2c590; }
.login__art p { opacity: .65; max-width: 380px; }
.login__form { align-self: center; justify-self: center; width: min(380px, calc(100% - 32px)); padding: 32px 0; display: grid; gap: 14px; }
.login__form h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; margin: 0; line-height: 1; }
.login__form .muted { margin: 0 0 10px; }
.err { color: var(--bad); min-height: 20px; margin: 0; font-size: 13px; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--side); color: #d9cfc6; display: flex; flex-direction: column; z-index: 40; transition: transform .4s var(--ease); }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px; }
.side__brand b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #f6efe7; display: block; line-height: 1; }
.side__brand small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
.side__nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; scrollbar-width: thin; scrollbar-color: #3a2e2b transparent; }
.side__group { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8a7b74; padding: 18px 10px 6px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 500; font-size: 13.5px; color: #cbbfb5; position: relative; transition: background .2s, color .2s; }
.side__nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side__nav a.active { background: rgba(200, 164, 107, .14); color: #f3dcb0; }
.side__nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side__nav .count { margin-left: auto; font-size: 11px; background: var(--rose); color: #fff; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.side__foot { padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.side__foot a { color: #a89a91; }
.side__foot a:hover { color: var(--gold); }
.side-scrim { display: none; }

.main { flex: 1; margin-left: 248px; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(246, 241, 236, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__menu { display: none; }
.top__title { flex: 1; min-width: 0; }
.top__title h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 0; }
.top__title span { font-size: 12px; }
.top__user { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); text-align: left; }
.user-chip b { display: block; font-size: 13px; line-height: 1.1; }
.user-chip small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: #8a6a35; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; display: grid; }
.dropdown button { text-align: left; padding: 9px 12px; border-radius: 8px; }
.dropdown button:hover { background: #f5efe9; }

.view { padding: 26px 28px 60px; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.card__head h3 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.card__head a { font-size: 12px; color: var(--rose); font-weight: 600; }
.card__body { padding: 10px 20px 18px; }

.grid { display: grid; gap: 18px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nowrap { white-space: nowrap; }
.dash-2 { grid-template-columns: 2fr 1fr; margin-top: 18px; }
.dash-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi__label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi__label svg { width: 16px; height: 16px; color: var(--gold); }
.kpi__value { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; margin-top: 8px; letter-spacing: -.01em; }
.kpi__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi--dark { background: var(--ink); color: #f6efe7; border-color: var(--ink); }
.kpi--dark .kpi__label, .kpi--dark .kpi__sub { color: rgba(246, 239, 231, .6); }
.kpi--dark::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -80px; background: radial-gradient(circle, rgba(200, 164, 107, .45), transparent 70%); }

/* ---------- chart ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; stroke: none; fill: none; }
.chart #hit { fill: transparent; stroke: none; cursor: crosshair; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--sans); stroke: none; }
.chart .area { fill: url(#revGrad); stroke: none; }
.chart .line { stroke: var(--rose); stroke-width: 2; fill: none; }
.chart .cross { stroke: #cdbfb4; stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--rose); stroke: #fff; stroke-width: 2; }
.chart-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.chart-tip b { display: block; font-size: 14px; }
.chart-tip span { opacity: .7; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; cursor: default; }
.bar-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row__val { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row__track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #f3ede7; overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 4px; background: var(--rose); transform-origin: left; animation: grow 1s var(--ease) both; }
.bar-row:hover .bar-row__fill { background: #8f524d; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- lists ---------- */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li__main { flex: 1; min-width: 0; }
.li__main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__main span { font-size: 12px; color: var(--muted); }
.li__time { font-weight: 700; font-size: 12px; color: var(--rose); background: var(--rose-soft); border-radius: 8px; padding: 6px 8px; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.empty { padding: 26px 0; text-align: center; color: var(--muted); font-size: 13px; }
.check-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cdbfb4; display: grid; place-items: center; flex-shrink: 0; transition: .2s; }
.check-btn:hover { border-color: var(--good); background: var(--good-bg); }
.check-btn svg { width: 12px; height: 12px; opacity: 0; color: var(--good); stroke-width: 3; }
.check-btn:hover svg { opacity: 1; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #f1ebe5; color: #6c5d60; white-space: nowrap; text-transform: capitalize; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge--good { background: var(--good-bg); color: var(--good); }
.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); }
.badge--gold { background: var(--gold-soft); color: #8a6a35; }
.badge--plain::before { display: none; }

/* ---------- table toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { width: 100%; padding: 10px 12px 10px 36px; }
.toolbar .spacer { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

input, select, textarea {
  font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 107, .2); }
input[disabled], select[disabled], textarea[disabled] { background: #faf7f4; color: var(--muted); }
textarea { resize: vertical; min-height: 80px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); padding: 0; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
th .arrow { opacity: .5; margin-left: 4px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fcf9f6; }
tbody tr.clickable { cursor: pointer; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .thumb { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--gold-soft); display: block; }
td .name-cell { display: flex; align-items: center; gap: 10px; }
td .name-cell b { font-weight: 600; }
td .actions { display: flex; gap: 4px; justify-content: flex-end; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pager div { display: flex; gap: 6px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; transition: visibility 0s .5s; }
.drawer.open { visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(18, 13, 15, .4); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .3); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer.wide .drawer__panel { width: min(900px, 100%); }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer__head h2 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12px; font-weight: 600; color: #5d4f52; }
.fld > span i { color: var(--bad); font-style: normal; }
.fld--full { grid-column: 1 / -1; }
.fld--check { display: flex; align-items: center; gap: 10px; padding-top: 22px; }
.fld--check > span { order: 2; font-size: 13px; }
.form-section { grid-column: 1 / -1; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding-top: 10px; }
.form-actions .spacer { flex: 1; }
.img-field { display: flex; gap: 12px; align-items: center; }
.img-field img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--gold-soft); flex-shrink: 0; }
.img-field .col { flex: 1; display: grid; gap: 6px; }
.img-field label.btn { cursor: pointer; justify-self: start; }
.hint { font-size: 12px; color: var(--muted); }

/* permissions grid */
.perm { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.perm table td, .perm table th { padding: 8px 12px; }
.perm td:first-child { font-weight: 600; text-transform: capitalize; }
.perm td.c, .perm th.c { text-align: center; width: 70px; }
.perm input[type=radio] { width: 16px; height: 16px; accent-color: var(--ink); padding: 0; }

/* invoice editor */
.inv-items { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.inv-items table td { padding: 6px 6px; border-bottom: 1px solid var(--line); }
.inv-items table th { padding: 10px 6px; }
.inv-items input, .inv-items select { padding: 8px; font-size: 13px; border-radius: 8px; }
.inv-items .w-type { width: 96px; } .inv-items .w-qty { width: 64px; } .inv-items .w-price { width: 100px; } .inv-items .w-total { width: 100px; text-align: right; font-weight: 600; padding-right: 10px; }
.inv-items .add { display: flex; gap: 8px; padding: 10px; }
.totals { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.totals__box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.totals__box div { display: flex; justify-content: space-between; gap: 10px; }
.totals__box .grand { font-family: var(--serif); font-size: 26px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 8px; }
.totals__box .due { color: var(--bad); font-weight: 700; }

/* audit */
.diff { margin: 8px 0 0; font-size: 12px; background: #faf6f2; border-radius: 8px; padding: 8px 10px; display: grid; gap: 4px; }
.diff code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
.diff .from { color: var(--bad); text-decoration: line-through; }
.diff .to { color: var(--good); }
.act { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.settings-grid .card__body { padding-top: 14px; }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: toast .5s var(--ease); max-width: 360px; }
.toast--err { background: var(--bad); }
.toast svg { color: var(--gold); }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); }
  .app.nav-open .side { transform: none; }
  .app.nav-open .side-scrim { display: block; position: fixed; inset: 0; background: rgba(18, 13, 15, .4); z-index: 35; }
  .main { margin-left: 0; }
  .top__menu { display: grid; }
  .dash-2, .settings-grid { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__art { min-height: 260px; padding: 28px 20px; }
}
@media (max-width: 640px) {
  .view { padding: 18px 16px 50px; }
  .top { padding: 12px 16px; }
  .top__title h1 { font-size: 24px; }
  .user-chip > span:last-child { display: none; }
  .user-chip { padding: 4px; }
  .dash-3 { grid-template-columns: 1fr; }
  .kpis, .kpis--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; }
  .kpi__value { font-size: 24px; }
  .kpi__sub { font-size: 11px; }
  .form { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .drawer__body { padding: 18px 16px 24px; }
}

@media print {
  .side, .top, .toolbar { display: none !important; }
  .main { margin: 0; }
}

/* ---------- brand logo ---------- */
.mark.has-logo { display: block; width: auto; height: auto; border: 0; border-radius: 10px; overflow: hidden; background: #000; --logo-h: 52px; }
.mark.has-logo img { height: var(--logo-h); width: auto; max-width: 160px; object-fit: contain; display: block; }
.login__brand .mark.has-logo { --logo-h: 110px; border-radius: 16px; }
.login__brand .mark.has-logo img { max-width: 220px; }
.brand-text.is-hidden { display: none; }
.brand-text b:empty, .brand-text small:empty { display: none; }

/* ---------- settings: brand preview, image slots, map ---------- */
.brand-preview { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #120d0f; color: #f6efe7; }
.brand-preview .mark { border-color: rgba(200, 164, 107, .6); }
.brand-preview b { font-family: var(--serif); font-size: 24px; font-weight: 500; display: block; line-height: 1; }
.brand-preview small { font-size: 9px; letter-spacing: .35em; text-transform: uppercase; opacity: .7; }
.brand-preview .tag { margin-left: auto; font-size: 11px; opacity: .5; }
.slots { display: grid; gap: 14px; }
.slot { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; padding-top: 0; }
.slot__info b { display: block; font-size: 14px; }
.slot__info p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.slot__col > span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.slot__col > span em { font-family: var(--sans); font-style: normal; font-weight: 600; color: #8a6a35; background: var(--gold-soft); border-radius: 6px; padding: 1px 7px; font-size: 11px; }
.slot .img-field img { width: 74px; height: 74px; }
.slot__col[data-device="mobile"] .img-field img { width: 52px; height: 74px; }
.map-preview { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #f1ebe5; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.map-preview iframe { width: 100%; height: 100%; border: 0; }
.settings-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.settings-pane[hidden] { display: none !important; }
@media (max-width: 960px) {
  .slot { grid-template-columns: 1fr 1fr; }
  .slot__info { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .slot { grid-template-columns: 1fr; }
}
