* { box-sizing: border-box; }
:root {
  --ground: #f6f5f3;
  --surface: #ffffff;
  --ink: #202024;
  --muted: #5c5c66;
  --line: #e6e4e0;
  --line-strong: #d8d5cf;
  --accent: #c2410c;
  --accent-bright: #ff6118;
  --accent-soft: #fff7f2;
  --ok: #1f7a4d;
  --ok-soft: #e6f6ec;
  --warn-soft: #fdefdb;
  --danger: #b42318;
  --font: Onest, system-ui, sans-serif;
  --r: 12px;
  --r-lg: 18px;
}
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.is-shell { min-height: 100vh; }
body.is-shell .top { display: none; }
body.is-shell .wrap { max-width: none; margin: 0; padding: 0; min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.03em; font-weight: 650; line-height: 1.15; }
h2 { font-size: 20px; letter-spacing: -0.025em; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }

.wrap { max-width: 920px; margin: 0 auto; padding: 16px 20px 64px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: rgba(246,245,243,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15;
}
.logo { text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.mockbar { display: none; }
.iconbtn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  height: 36px; padding: 2px; border-radius: 999px; background: #efeeeb;
  border: 1px solid var(--line);
}
.lang-opt {
  min-width: 36px; height: 30px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 600 12px Onest, system-ui, sans-serif; padding: 0 10px;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.on { background: var(--ink); color: #fff; }
.top .right { display: flex; align-items: center; gap: 8px; }
.top-left { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  font-size: 14px; font-weight: 550;
}
.btn:hover { background: #333339; }
.btn.accent { background: var(--accent-bright); color: #fff; }
.btn.accent:hover { background: var(--accent); }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.light:hover { background: #f1f0ec; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--surface); color: var(--danger); box-shadow: inset 0 0 0 1px #f1c6c1; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .app-nav button:focus-visible {
  outline: 2px solid var(--accent-bright); outline-offset: 2px;
}

.narrow { max-width: 560px; margin: 0 auto; }
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 18px 18px;
  border: 1px solid var(--line);
}
.card + .card { margin-top: 12px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

label.f { display: grid; gap: 6px; font-size: 13px; color: #3a3a40; font-weight: 500; }
.maprow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], textarea, select {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #f8f7f5; padding: 0 12px; font-size: 15px;
}
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--ink); outline: 0; }
textarea { padding: 10px 12px; min-height: 100px; resize: vertical; }
input.mini, select.mini { min-height: 36px; padding: 0 10px; font-size: 14px; }
.err { background: #fde8e6; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.ok { background: var(--ok-soft); color: #11602f; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.note { background: var(--warn-soft); color: #5c3410; border-radius: 10px; padding: 12px 14px; font-size: 14px; }

.steps { display: flex; gap: 8px; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; }
.steps i {
  font-style: normal; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); border: 1px solid var(--line);
}
.steps i b { width: 24px; height: 24px; border-radius: 50%; background: #e4e4e6; display: grid; place-items: center; font-size: 12px; }
.steps i.on { color: var(--ink); border-color: var(--accent); }
.steps i.on b { background: var(--accent); color: #fff; }
.steps i.done b { background: var(--ok); color: #fff; }

.google { width: 100%; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d8d8dc; }
.or { text-align: center; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; background: #efeff0; padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-weight: 500; }
.tabs button.on { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-card {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px; background: #faf9f7;
  cursor: pointer; text-align: left; display: grid; gap: 4px;
}
.role-card.on { border-color: var(--accent); background: var(--accent-soft); }
.drop { position: relative; border: 2px dashed #c8c8d0; border-radius: 16px; padding: 22px; text-align: center; background: #fafafa; cursor: pointer; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.files span { background: #efeff0; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ffd2b8; border-top-color: var(--accent); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.working { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--accent-soft); border-radius: 14px; }

.swatch { display: inline-block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d4d4d8; cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #f8f7f5; cursor: pointer; border: 2px solid transparent; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.price-tag { margin-left: auto; font-weight: 600; }

/* ===== App shell (pay craft, not Flatwise) ===== */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.app-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  height: 56px; padding: 0 14px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.app-logo {
  text-decoration: none; font-size: 16px; font-weight: 650; letter-spacing: -0.035em; color: var(--ink);
  flex: none;
}
.app-actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.venue-switch { position: relative; flex: none; max-width: 180px; }
.venue-btn {
  display: inline-flex; align-items: center; gap: 4px; max-width: 180px;
  border: 0; background: transparent; min-height: 36px; padding: 0 6px;
  cursor: pointer; color: var(--ink); border-radius: 8px;
}
.venue-btn:hover { background: #f3f2ef; }
.venue-name {
  font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-search {
  display: flex; align-items: center; gap: 6px; flex: 0 1 168px; min-width: 96px; max-width: 168px;
  height: 34px; padding: 0 10px; border-radius: 999px; background: #f3f2ef; border: 1px solid transparent;
  color: var(--muted); margin-left: 4px;
}
.app-search.compact { flex: 0 0 148px; max-width: 148px; }
.app-search:focus-within { background: #fff; border-color: var(--line-strong); color: var(--ink); flex-basis: 200px; max-width: 200px; }
.app-search input {
  border: 0; background: transparent; min-height: 32px; padding: 0; width: 100%; font-size: 13px;
}
.app-search input:focus { outline: 0; box-shadow: none; }
.iconbtn.sm {
  width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
}
.iconbtn.sm:hover, .iconbtn.sm.on { background: #f3f2ef; color: var(--ink); }
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(32,32,36,0.12);
  display: grid; gap: 2px;
}
.user-menu-label {
  font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px 4px; letter-spacing: 0.02em;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; text-align: left; text-decoration: none;
  color: var(--ink); font-size: 13px; font-weight: 500; padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.user-menu-item:hover { background: #f3f2ef; }
.user-menu-item .mock-role { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.user-menu-item svg { flex: none; color: var(--muted); }
.ai-drawer {
  position: sticky; top: 56px; align-self: start; width: 260px;
  background: #fff; border-left: 1px solid var(--line); padding: 14px; display: grid; gap: 10px;
  max-height: calc(100vh - 56px); overflow: auto;
}
.ai-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.acct-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(32,32,36,0.12);
}
.acct-menu button {
  width: 100%; display: flex; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px;
}
.acct-menu button:hover, .acct-menu button.on { background: #f6f5f3; }
.mock-role { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.app-body {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 0; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1;
}
.app-nav {
  position: sticky; top: 56px; align-self: start;
  display: grid; gap: 2px; padding: 16px 12px 32px; max-height: calc(100vh - 56px); overflow: auto;
}
.app-nav .nav-label {
  margin: 14px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  text-transform: none; color: #8a8a90;
}
.app-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: 0; background: transparent; min-height: 40px; padding: 8px 10px;
  border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: #3a3a40;
}
.app-nav button svg { color: #8a8a90; flex: none; }
.app-nav button:hover { background: rgba(32,32,36,0.05); }
.app-nav button.on {
  background: #efeeeb; color: var(--ink); font-weight: 600;
  box-shadow: none; border: 0; outline: none;
}
.app-nav button.on svg { color: var(--ink); }
.app-nav .badge-pill {
  margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: #efeeeb; color: var(--muted); font-weight: 650;
}
.app-nav button.on .badge-pill { background: #e7e5e4; color: var(--ink); }

.app-main {
  padding: 20px 20px 48px; min-width: 0;
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  background: var(--surface); border-radius: var(--r); padding: 10px 12px;
  border: 1px solid var(--line);
}
.kpi small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.kpi b {
  display: block; font-size: 17px; letter-spacing: -0.02em; margin-top: 2px;
  font-variant-numeric: tabular-nums; font-weight: 650;
}
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; }
.bars div { flex: 1; background: #ffd2b8; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bars div.today { background: var(--accent); }
.axis { display: flex; gap: 5px; font-size: 10px; color: var(--muted); margin-top: 6px; }
.axis span { flex: 1; text-align: center; }
.check { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; }
.check i {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d0d0d4; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff;
}
.check.done i { background: var(--ok); border-color: var(--ok); }
.check button { margin-left: auto; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.quick-links a, .quick-links button {
  display: grid; gap: 4px; text-align: left; padding: 16px; border: 0; background: transparent;
  cursor: pointer; text-decoration: none; font: inherit; color: inherit;
}
.quick-links > *:first-child { border-right: 1px solid var(--line); }
.quick-links > *:hover { background: #faf9f7; }
.quick-links b { font-size: 14px; }
.quick-links small { color: var(--muted); font-size: 12.5px; }

/* 3D floor — ops surface */
.floor-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px;
}
.floor-kpi {
  background: #f7f5f2; border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px;
}
.floor-kpi small { color: var(--muted); font-size: 11px; }
.floor-kpi b { font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.floor-kpi.occ { background: #fff3eb; }
.floor-kpi.res { background: #eef4ff; }
.floor-sep { width: 1px; height: 22px; background: var(--line); align-self: center; margin: 0 2px; }
.floor-layout {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.7fr); gap: 14px; align-items: start;
}
.floor-stage-wrap {
  background: #14110f;
  border-radius: 18px; padding: 0; color: #fff;
  overflow: hidden; position: relative; height: min(72vh, 720px);
  border: 1px solid #3f3a36;
}
.floor-stage-wrap.hall3d { height: min(74vh, 760px); min-height: 520px; }
.floor-hall {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
}
.floor-hall canvas {
  display: block; width: 100% !important; height: 100% !important;
}
.hall-labels {
  position: absolute !important; inset: 0; pointer-events: none; overflow: hidden;
}
.hall-label {
  pointer-events: none;
  background: rgba(28, 25, 23, 0.82);
  color: #fafaf9;
  padding: 5px 9px;
  border-radius: 10px;
  font: 600 11px/1.25 Onest, system-ui, sans-serif;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transform: translate(-50%, -100%);
}
.hall-label b { display: block; font-size: 12px; letter-spacing: -0.02em; }
.hall-label small { display: block; color: #a8a29e; font-weight: 600; margin-top: 1px; }
.hall-label em {
  display: inline-block; margin-top: 3px; font-style: normal;
  font-size: 10px; font-weight: 700; color: #bbf7d0; background: #14532d;
  padding: 1px 6px; border-radius: 999px;
}
.floor-hall-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 3; margin: 0; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; color: #a8a29e; background: rgba(28, 25, 23, 0.75);
  white-space: nowrap; pointer-events: none;
}
.floor-legend {
  position: absolute; top: 12px; left: 14px; z-index: 3;
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: #d6d3d1; background: rgba(28, 25, 23, 0.72);
  padding: 6px 10px; border-radius: 999px;
}
.floor-legend .lg {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
  vertical-align: middle;
}
.floor-legend .lg.free { background: #fafaf9; box-shadow: 0 0 0 1px #a8a29e; }
.floor-legend .lg.occupied { background: #f97316; }
.floor-legend .lg.reserved { background: #3b82f6; }
.floor-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  margin: 0; color: #a8a29e; font-size: 13px; z-index: 2;
}
.floor-detail { gap: 12px; position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; }
.floor-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.floor-seats-ctrl {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.floor-seats-ctrl b { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.floor-metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.floor-metrics > div {
  background: #fafaf9; border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px;
}
.floor-metrics small { color: var(--muted); font-size: 11px; }
.floor-metrics b { font-size: 15px; font-variant-numeric: tabular-nums; }
.floor-metrics .tip-strong { background: #ecfdf5; }
.floor-metrics .tip-strong b { color: #15803d; }
.floor-metrics .tip-good { background: #f0fdf4; }
.floor-metrics .tip-ok { background: #fffbeb; }
.floor-metrics .tip-weak { background: #fef2f2; }
.floor-metrics .tip-weak b { color: #b91c1c; }
.floor-venue-spark {
  margin-top: 10px; padding: 12px 14px; gap: 8px;
  background: #fafaf9; border: 1px solid var(--line);
}
.floor-spark { display: block; }
.floor-channel { display: grid; gap: 4px; }
.floor-channel .ch-bar {
  height: 8px; border-radius: 999px; background: #e7e5e4; overflow: hidden;
}
.floor-channel .ch-bar > i {
  display: block; height: 100%; background: #f97316; border-radius: 999px;
}
.floor-channel .ch-bar.dual { display: flex; background: #d6d3d1; }
.floor-channel .ch-bar.dual > i.online { background: #3b82f6; }
.floor-timeline {
  display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px;
  align-items: end; min-height: 72px;
}
.tl-hour { display: grid; gap: 4px; justify-items: center; }
.tl-label { font-size: 9px; color: var(--muted); font-weight: 600; }
.tl-track {
  position: relative; width: 100%; height: 56px;
  background: #f5f5f4; border-radius: 6px; overflow: hidden;
}
.tl-track i {
  position: absolute; left: 15%; right: 15%; bottom: 0; border-radius: 4px 4px 0 0;
}
.tl-track .tl-res { background: rgba(59, 130, 246, 0.45); z-index: 1; }
.tl-track .tl-sit { background: #f97316; left: 35%; right: 35%; z-index: 2; }
.floor-tl-legend {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 4px;
}
.floor-tl-legend .lg {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px;
  vertical-align: middle;
}
.floor-legend .lg.heat-lo { background: #57534e; }
.floor-legend .lg.tip { background: #22c55e; }
.floor-order {
  display: flex; justify-content: space-between; gap: 10px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.floor-order:last-child { border-bottom: 0; }
.floor-edit summary {
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted);
  list-style: none;
}
.floor-edit summary::-webkit-details-marker { display: none; }
@media (max-width: 980px) {
  .floor-layout { grid-template-columns: 1fr; }
  .floor-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floor-detail { position: static; }
  .floor-stage-wrap, .floor-stage-wrap.hall3d { height: min(58vh, 480px); min-height: 360px; }
}
@media (max-width: 560px) {
  .floor-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-hall-hint { font-size: 10px; max-width: 92%; white-space: normal; text-align: center; }
  .floor-stage-wrap, .floor-stage-wrap.hall3d { height: 52vh; min-height: 320px; }
}

/* ===== Marktplatz ===== */
.market { display: grid; gap: 22px; }
.market-head {
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: end;
}
.market-head .muted { max-width: 42ch; margin-top: 6px; }
.market-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px;
  min-width: min(100%, 520px);
}
.market-kpis small { display: block; color: var(--muted); font-size: 11px; }
.market-kpis b { font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.market-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
}
.market-near {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.market-stage {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr); gap: 12px; align-items: stretch;
}
.market-map-shell {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #e7e5e4; min-height: 420px;
}
.market-map {
  height: min(56vh, 520px); min-height: 380px; position: relative; width: 100%;
  background: #e7e5e4;
}
.market-map.mapbox { z-index: 1; }
.market-map-legend {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 11px; color: #44403c; background: rgba(255,255,255,0.92);
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.market-map-legend .lg {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.market-map-legend .lg.venue { background: #57534e; }
.market-map-legend .lg.supplier { background: #c2410c; }
.market-map-legend .lg.pool { background: #ea580c; }
.market-side { gap: 10px; max-height: min(56vh, 520px); overflow: auto; }
.market-block { display: grid; gap: 12px; }
.market-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.market-list .listing { padding: 12px 0; }
.listing.compact { grid-template-columns: minmax(0, 1fr) auto; }
.listing.compact .listing-img { display: none; }
.market-form { border-top: 1px solid var(--line); padding-top: 14px; }
.market-advanced {
  border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 12px;
}
.market-advanced summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
}
.market-advanced[open] summary { color: var(--ink); }
.market-map .mapboxgl-map { font: inherit; }
.market-map .mapboxgl-ctrl-group {
  border: 0 !important; box-shadow: 0 4px 16px rgba(28, 25, 23, 0.12) !important;
  border-radius: 12px !important; overflow: hidden;
}
.market-map .mapboxgl-ctrl-group button { width: 34px; height: 34px; }
.market-map.mapboxgl-map:-webkit-full-screen,
.market-map.mapboxgl-map:fullscreen,
.market-map:-webkit-full-screen,
.market-map:fullscreen {
  height: 100% !important; width: 100% !important; border-radius: 0;
}
.map-missing {
  display: grid; place-items: center; height: 100%; min-height: 380px;
  color: #78716c; font-size: 13px; padding: 16px; text-align: center;
}
.fallback-map {
  position: relative; width: 100%; height: 100%; min-height: 380px;
  background:
    radial-gradient(ellipse at 30% 40%, #f5f5f4 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, #e7e5e4 0%, transparent 50%),
    linear-gradient(135deg, #fafaf9, #e7e5e4);
  overflow: hidden;
}
.fallback-map::before {
  content: ""; position: absolute; inset: 12% 10%;
  border: 1px solid rgba(87, 83, 78, 0.18); border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(87,83,78,0.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(87,83,78,0.08) 50%, transparent 51%);
  background-size: 48px 48px;
  pointer-events: none;
}
.fb-river {
  position: absolute; left: 42%; top: 8%; width: 10%; height: 84%;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.35), rgba(147, 197, 253, 0.2));
  border-radius: 999px; transform: rotate(-12deg); pointer-events: none;
}
.fb-pin {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid #fff; border-radius: 50%; background: var(--pin, #c2410c);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.25); cursor: pointer; padding: 0; z-index: 1;
}
.fb-pin:hover, .fb-pin:focus-visible { transform: scale(1.2); z-index: 2; }
.fb-pin-label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font: 600 10px/1 Onest, system-ui, sans-serif;
  color: #44403c; background: rgba(255,255,255,0.92); border: 1px solid #e7e5e4;
  padding: 3px 6px; border-radius: 6px; pointer-events: none;
}
.mkt-tabs { margin: 0; }
.citychip.on { background: var(--ink); color: #fff; }
@media (max-width: 980px) {
  .market-stage { grid-template-columns: 1fr; }
  .market-side { max-height: none; }
  .market-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .market-map { height: 46vh; min-height: 280px; }
}
.chat-box { display: grid; gap: 10px; }
.chat-thread {
  max-height: 220px; overflow: auto; display: grid; gap: 8px;
  background: #f8f7f5; border-radius: 12px; padding: 10px;
}
.chat-bubble {
  max-width: 85%; justify-self: start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px;
}
.chat-bubble.me { justify-self: end; background: var(--accent-soft); border-color: #f0d7c6; }
.chat-bubble small { color: var(--muted); font-size: 10px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: grid; gap: 6px;
}
.offer-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.offer-top b { font-size: 14px; letter-spacing: -0.02em; }
.offer-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.offer-actions {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px;
}
.offer-actions .btn { margin-left: auto; }
.bucket { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.bucket-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.offer-search { max-width: none; }
.progress-bar { height: 8px; border-radius: 999px; background: #eceae4; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--ok); border-radius: 999px; }

.listing {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid #f0f0f0;
}
.listing:first-of-type { border-top: 0; }
.listing-img {
  width: 72px; height: 56px; border-radius: 8px; object-fit: cover;
  background: #eee; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 600;
}
.listing-body { min-width: 0; }
.listing-body b { display: block; font-size: 14px; font-weight: 600; }
.listing-body small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.listing-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.listing-price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.listing-price s { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.status-pill {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650;
}
.status-pill.ok { background: var(--ok-soft); color: #11602f; }
.status-pill.warn { background: var(--warn-soft); color: #9a3412; }
.status-pill.pool { background: #fff7ed; color: #c2410c; }
.status-pill.blue { background: #eef4ff; color: #1e3296; }

.menu-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line);
}
.cat { margin: 14px 0 6px; font-weight: 600; color: var(--accent); font-size: 13px; }
.item {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start;
  padding: 12px; margin-top: 8px; background: #f8f7f5; border-radius: 14px; border: 1px solid #eceae6;
}
.item .main { display: grid; gap: 8px; min-width: 0; }
.item .top { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
.item .meta { display: grid; grid-template-columns: 1fr 130px 130px auto auto; gap: 8px; align-items: center; }
.item .name { font-weight: 600; font-size: 15px; }
.pricebox { display: flex; align-items: center; gap: 6px; margin: 0; }
.avail-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; cursor: pointer; }
.item.off { opacity: .55; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb {
  position: relative; width: 52px; height: 52px; border-radius: 10px;
  background: #efeff0 center / cover; display: grid; place-items: center; font-size: 12px;
  color: var(--muted); cursor: pointer; overflow: hidden; border: 1px solid #dfddd8; padding: 0;
}
.rmphoto { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; cursor: pointer; }
.coverpic { width: 88px; height: 58px; object-fit: cover; border-radius: 10px; }

.api-doc h4 { margin: 12px 0 6px; font-size: 14px; }
.doc { margin: 0; padding: 12px 14px; background: var(--ink); color: #f4f4f5; border-radius: 10px; overflow: auto; font-size: 12.5px; line-height: 1.5; white-space: pre; }
.tagrow { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 34px; padding: 6px 12px; border-radius: 999px; background: #efeff0;
  border: 0; cursor: pointer; font-size: 13px; font-weight: 500;
}
.chip.on { background: var(--ink); color: #fff; }
#livemode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qrs figure {
  margin: 0; background: #f8f7f5; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qrs .qr-box {
  width: 120px; height: 120px; background: #fff; padding: 8px; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid #eceae6;
}
.qrs img { width: 100%; height: 100%; object-fit: contain; }
.qrs figcaption { margin-top: 8px; font-weight: 600; font-size: 13px; }

.order { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.order .what { flex: 1; min-width: 180px; }
.badge-s { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--warn-soft); color: #9a3412; }
.badge-s.done { background: var(--ok-soft); color: #11602f; }
.badge-pill { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--warn-soft); color: #9a3412; font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 40;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.preview-wrap { background: #efeff0; border-radius: 14px; padding: 12px; display: grid; place-items: center; }
.preview { width: 100%; height: 460px; border: 1px solid #dcdad5; border-radius: 12px; background: #fff; }
.preview.mobile { width: 375px; max-width: 100%; height: 600px; border: 6px solid var(--ink); border-radius: 24px; }
.hero-thumb { width: 180px; height: 108px; border-radius: 12px; background: #f2f2f2 center/cover; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gal > div { aspect-ratio: 4/3; border-radius: 10px; background: center/cover; position: relative; }
.gal > div button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(32,32,36,.85); color: #fff; cursor: pointer; }
.gal-add { aspect-ratio: 4/3; border-radius: 10px; border: 2px dashed #c8c8d0; background: #fafafa; cursor: pointer; color: #3a3a40; font-weight: 500; }

.lg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.lg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.lg > .card:last-child { position: sticky; top: 80px; }
.lg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lrow {
  display: grid; grid-template-columns: 80px 1fr auto auto; gap: 8px; align-items: center; width: 100%;
  text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.lrow:hover, .lrow.on { background: #f4f4f5; }
.lrow .lt { color: var(--muted); }
.lrow .lw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .la { font-weight: 600; }

.inline-edit { border-bottom: 1.5px dashed #c8c6c0; cursor: pointer; padding: 1px 4px; border-radius: 4px; }
.inline-edit:hover { background: var(--warn-soft); border-bottom-color: var(--accent); }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 4px 8px; }
.compare td { border-top: 1px solid #eee; padding: 10px 8px; vertical-align: top; }

@media (max-width: 960px) {
  .app-body { grid-template-columns: 1fr; }
  .app-nav {
    position: static; display: flex; overflow-x: auto; gap: 4px; padding: 10px 12px;
    max-height: none; border-bottom: 1px solid var(--line);
  }
  .app-nav .nav-label { display: none; }
  .app-nav button { white-space: nowrap; width: auto; flex: none; }
  .lg, .lg2 { grid-template-columns: 1fr; }
  .lg > .card:last-child { position: static; }
  .listing { grid-template-columns: 64px minmax(0, 1fr); }
  .listing-meta { grid-column: 2; flex-direction: row; justify-content: space-between; width: 100%; }
}
@media (max-width: 760px) {
  .kpis, .grid2, .grid3, .grid4, .role-cards, .quick-links { grid-template-columns: 1fr; }
  .quick-links > *:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .item { grid-template-columns: 1fr; }
  .item .top, .item .meta { grid-template-columns: 1fr 1fr; }
  .app-main { padding: 14px 12px 40px; }
  .maprow { grid-template-columns: 1fr; }
  .steps i span { display: none; }
}

/* ===== Auth modes + tariff / IBAN / setup ===== */
.narrow.wide { max-width: 720px; }
.mode-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.mode-card {
  border: 2px solid var(--line); border-radius: 16px; padding: 14px 12px;
  background: #fff; cursor: pointer; text-align: left; display: grid; gap: 4px;
}
.mode-card b { font-size: 15px; letter-spacing: -0.02em; }
.mode-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.mode-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.tariff-grid { display: grid; gap: 8px; }
.tariff-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.tariff-row:last-child { border-bottom: 0; }
.tariff-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.iban-box {
  display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #111; color: #fff; font-size: 14px;
}
.iban-box .muted, .iban-box small { color: #a8a29e; }
.iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: 0.04em; font-weight: 600; }
.setup-opts { display: grid; gap: 8px; }
.setup-opt {
  display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #faf9f7;
}
.setup-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.setup-opt b { display: block; font-size: 14px; }
.setup-opt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.setup-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
}
.demo-grid { display: grid; gap: 8px; }
.demo-card {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.demo-card:hover { border-color: var(--accent); }
.demo-card b { display: block; font-size: 14px; }
.demo-card small { color: var(--muted); font-size: 12px; }
.demo-av {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
.pay-more { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.linkish {
  border: 0; background: none; padding: 0; color: var(--accent-bright); font: inherit; cursor: pointer; text-decoration: underline;
}

/* ===== Systeme / provider connect ===== */
.systeme { display: grid; gap: 28px; max-width: 720px; }
.systeme-head { display: grid; gap: 6px; }
.systeme-head .muted { max-width: 44ch; }
.systeme-block { display: grid; gap: 10px; }
.systeme-step-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.systeme-step-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.systeme-note {
  margin: 0; font-size: 13px; line-height: 1.4; color: #5c3410;
}
.systeme-toggle { justify-self: start; font-size: 13px; }
.systeme-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.systeme-advanced {
  border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 12px;
}
.systeme-advanced summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
}
.systeme-advanced[open] summary { color: var(--ink); }

.prov-list {
  display: grid; gap: 0; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.prov-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  width: 100%; min-height: 56px; padding: 10px 14px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; cursor: pointer;
}
.prov-row:last-child { border-bottom: 0; }
.prov-row:hover { background: #faf9f7; }
.prov-row.on { background: var(--accent-soft); }
.prov-row.on .prov-check { color: var(--accent); font-weight: 700; }
.prov-check {
  width: 18px; text-align: center; color: transparent; font-size: 14px; flex: none;
}
.prov-ico {
  width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; flex: none; letter-spacing: -0.02em;
}
.prov-meta { display: grid; gap: 1px; min-width: 0; }
.prov-meta b {
  font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prov-meta small {
  color: var(--muted); font-size: 12px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.connect-hero .btn { justify-self: start; }
.btn.is-disabled, a.btn.is-disabled { opacity: .45; pointer-events: none; }

@media (max-width: 760px) {
  .mode-cards { grid-template-columns: 1fr; }
  .systeme { gap: 22px; }
  .prov-row { min-height: 52px; padding: 8px 12px; gap: 10px; }
}

.tip-lead { margin: 4px 0 14px; max-width: 54ch; }
.tip-section h3 { letter-spacing: -0.02em; }
.tip-form-meta { flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.tip-list { gap: 10px; }
.tip-account {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 12px; border-radius: 14px; background: #f8f7f5; border: 1px solid #eceae6;
}
.tip-avatar {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #efeff0;
}
.tip-avatar.empty {
  display: grid; place-items: center; font-weight: 700; color: #fff; background: #5c5c66; font-size: 22px;
}
.tip-account-body { display: grid; gap: 6px; min-width: 0; }
.tip-account-head { gap: 8px; align-items: start; }
.tip-account-actions { flex-wrap: wrap; justify-content: flex-end; }
.tip-desc { margin: 0; font-size: 13px; line-height: 1.4; }
.tip-desc-edit { margin-top: 4px; }
.tip-badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; margin-left: 6px;
  border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle;
}
.tip-badge.shared { background: #fff7f2; color: #c2410c; }
.tip-badge.person { background: #e6f6ec; color: #1f7a4d; }
.tip-badge.wait { background: #efeeeb; color: #5c5c66; }
@media (max-width: 640px) {
  .tip-account { grid-template-columns: 52px 1fr; }
  .tip-avatar { width: 52px; height: 52px; border-radius: 12px; }
}

/* Brand tiles: approved pack marks, one radius, no frame/recolour */
.prov-mark-wrap {
  position: relative; flex: none; width: 44px; height: 44px;
}
.prov-mark {
  width: 44px; height: 44px; border-radius: 22%; flex: none;
  display: block; overflow: hidden; padding: 0; margin: 0;
  background: transparent; border: 0; box-shadow: none;
}
.prov-mark img {
  width: 44px; height: 44px; display: block;
  object-fit: contain; object-position: center;
}
.prov-mark.is-letter {
  display: grid; place-items: center;
  font-size: 15px; font-weight: 650; color: var(--muted);
  background: #f3f2ef;
}
.prov-mark.is-koveh {
  background: var(--accent-soft); color: var(--accent);
}
.prov-row.on .prov-twint { box-shadow: 0 0 0 2px var(--accent-soft); }
.prov-twint {
  position: absolute; right: -6px; bottom: -6px;
  width: 20px; height: 20px; border-radius: 22%; overflow: hidden;
  box-shadow: 0 0 0 2px #fff;
}
.prov-twint .prov-mark { width: 20px; height: 20px; }
.prov-twint .prov-mark img { width: 20px; height: 20px; }
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.path-card {
  text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); cursor: pointer; display: grid; gap: 4px;
}
.path-card b { font-size: 14px; letter-spacing: -0.02em; }
.path-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.path-card.on { border-color: var(--line-strong); background: var(--accent-soft); }
.path-card:hover { background: #faf9f7; }
.path-card.on:hover { background: var(--accent-soft); }
.self-box .btn { justify-self: start; }
.linkish {
  border: 0; background: none; padding: 0; color: var(--accent-bright);
  font: inherit; cursor: pointer; text-decoration: none;
}
.linkish:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .path-cards { grid-template-columns: 1fr; }
}

/* Embedded in the /dash React shell: hide own chrome, white page. */
html.embed { --ground: #fff; }
html.embed .app-top, html.embed .app-nav { display: none !important; }
html.embed .app-body { grid-template-columns: minmax(0, 1fr) auto; max-width: none; }
html.embed .app-main { max-width: 1024px; margin: 0 auto; width: 100%; }
/* Embedded: inputs, labels and hovers follow the shell theme (vars set by /dash). */
html.embed label.f { color: var(--muted); }
html.embed :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], textarea, select),
html.embed :is(input, textarea, select):focus { background: var(--surface); color: var(--ink); border-color: var(--line); }
html.embed .btn.light:hover, html.embed .app-main :is(button, a):hover { filter: brightness(0.97); }
/* Embedded: one primary color with the shell (theme vars set by /dash). */
html.embed { --accent: var(--ink); --accent-bright: var(--ink); --accent-soft: color-mix(in srgb, var(--ink) 6%, transparent); --ok: var(--ink); }
html.embed .btn.accent, html.embed .btn.accent:hover { background: var(--ink); color: var(--surface); }
html.embed .btn.accent:hover { opacity: .9; }
html.embed .chip.on, html.embed .lang-opt.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
html.embed a.linkish, html.embed .linkish { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html.embed .doc { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: var(--ink); border: 1px solid var(--line); }
