:root {
  --ink: #16302f;
  --ink-2: #3f5857;
  --muted: #6b7f7e;
  --line: #dfe7e3;
  --bg: #f4f7f3;
  --card: #ffffff;
  --side: #0f3b3a;
  --side-2: #154a48;
  --lime: #d9ec9c;
  --accent: #127a6a;
  --heat: #d9793d;
  --rain: #3f8fc5;
  --flood: #2b5ea8;
  --drought: #b58b2a;
  --bio: #3f9d5c;
  --energy: #d8a52b;
  --mobility: #7b64b5;
  --money: #2f7d6d;
  --danger: #b8432f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 48, 47, .06), 0 6px 20px rgba(16, 48, 47, .06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.sidebar { background: var(--side); color: #e7f1ee; display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px 2px 9px 2px; background: linear-gradient(135deg, var(--lime), #7fcf9a); }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 10px; letter-spacing: .18em; color: #a9c9c2; margin-top: 2px; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps button { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 0; background: transparent; color: #d4e6e1; padding: 10px 12px; border-radius: 10px; }
.steps button span { font-size: 11px; color: #8fb3ab; width: 18px; }
.steps button b { font-weight: 600; font-size: 14px; }
.steps button:hover:not(:disabled) { background: var(--side-2); }
.steps button.active { background: var(--lime); color: var(--side); }
.steps button.active span { color: var(--side); }
.steps button:disabled { opacity: .45; cursor: default; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.lang { display: inline-flex; background: var(--side-2); border-radius: 8px; padding: 3px; width: max-content; }
.lang button { border: 0; background: transparent; color: #cfe3de; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.lang button.active { background: var(--lime); color: var(--side); }
.foot-note { font-size: 11px; color: #9dbdb6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
.foot-links a { color: #cfe3de; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.search { position: relative; width: min(360px, 40vw); }
.search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dropdown { position: absolute; z-index: 20; top: 42px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.dropdown li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.dropdown li:hover, .dropdown li.focus { background: #eef5f1; }
.dropdown small { color: var(--muted); }
.crumb { color: var(--muted); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.ghost, .primary, .chip-btn { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ghost:hover { border-color: #b9ccc4; }
.ghost.on { background: var(--lime); border-color: #b9d77a; }
select { border: 1px solid var(--line); background: #fff; padding: 7px 10px; border-radius: 10px; font-size: 13px; }

.workspace { flex: 1; display: grid; grid-template-columns: 1fr minmax(360px, 440px); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.map-legend { position: absolute; left: 12px; bottom: 28px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; min-width: 190px; }
.map-legend .ramp { height: 10px; border-radius: 5px; margin: 6px 0 4px; }
.map-legend .ends { display: flex; justify-content: space-between; color: var(--muted); }
.map-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--side); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); }
.panel { border-left: 1px solid var(--line); background: var(--bg); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card h3 { margin: 0 0 8px; font-size: 14px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfdfb; }
.kpi .v { font-size: 20px; font-weight: 700; }
.kpi .l { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; background: #e8efeb; border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.rank-item:hover, .rank-item.sel { border-color: var(--accent); background: #f1f8f5; }
.rank-no { font-weight: 700; color: var(--muted); font-size: 13px; }
.rank-score { font-weight: 700; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #eef3f0; color: var(--ink-2); white-space: nowrap; }
.chip.hitze { background: #fbe9dd; color: #8a4212; }
.chip.starkregen { background: #e1eef8; color: #1f5a86; }
.chip.hochwasser { background: #dfe7f5; color: #1f3f78; }
.chip.trockenheit { background: #f5ecd6; color: #6e5212; }
.chip.biodiversitaet { background: #e2f2e6; color: #245f36; }
.chip.sturm { background: #ece8f5; color: #4a3c7a; }

.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 8px; align-items: center; font-size: 12px; }
.bar-track { height: 9px; background: #edf2ef; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.problem { border-left: 3px solid var(--line); padding: 6px 0 6px 10px; margin: 6px 0; font-size: 13px; }
.problem.hitze { border-color: var(--heat); }
.problem.starkregen { border-color: var(--rain); }
.problem.biodiversitaet { border-color: var(--bio); }
.problem .src { font-size: 11px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data th, table.data td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.media-item { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.media-item a { color: var(--ink); text-decoration: none; font-weight: 600; }
.media-item a:hover { text-decoration: underline; }
.media-item .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid #cfe0d9; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 50; max-width: 90vw; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty h2 { color: var(--ink); }
details summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.src-list { font-size: 11px; color: var(--muted); padding-left: 16px; margin: 6px 0 0; }

.seg.tabs { display: flex; flex-wrap: wrap; }
.seg.tabs button { flex: 0 0 auto; }
.pair-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 8px; align-items: center; font-size: 12px; }
.pair-bars { display: flex; flex-direction: column; gap: 3px; }
.bar-fill.sq { background: #b7c3bf; }
.delta { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #eef2ef; }
.delta.good { background: #dff1e4; color: #1f6a39; }
.delta.bad { background: #f8e3dc; color: #8f3b1e; }
.kpi .v { overflow-wrap: anywhere; }

.name-input { font-size: 17px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; background: transparent; min-width: 0; flex: 1; }
.name-input:hover, .name-input:focus { border-color: var(--line); background: #fff; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.cmp { border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; background: #fbfdfb; }
.cmp .l { font-size: 11px; color: var(--muted); }
.cmp .v { font-size: 16px; font-weight: 700; }
.cmp .s { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pal { margin-bottom: 4px; }
.pal-group { width: 100%; text-align: left; border: 1px solid var(--line); border-left: 4px solid; background: #fff; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.pal-items { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 2px 4px; }
.chip-btn { font-size: 12px; padding: 5px 9px; font-weight: 500; }
.chip-btn:hover { border-color: var(--accent); background: #f1f8f5; }
.m-list { display: flex; flex-direction: column; gap: 5px; }
.m-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.m-item .ghost { padding: 3px 8px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; margin: 6px 0; }
.field input[type=range] { width: 100%; accent-color: var(--accent); }
.field input[type=number], .field select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; gap: 6px; align-items: center; font-size: 12px; margin: 4px 0; }
.map-wrap.split #map { right: 50%; }
.map-wrap.split #map2 { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; border-left: 3px solid var(--lime); }
.split-labels { position: absolute; top: 10px; left: 0; right: 0; display: flex; pointer-events: none; z-index: 5; }
.split-labels span { flex: 1; text-align: center; }
.split-labels span::after { content: ''; }
.split-labels span { font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.hazard-note { position: absolute; right: 50px; bottom: 28px; max-width: 320px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--ink-2); box-shadow: var(--shadow); }
#hazard { max-width: 230px; }
.modal { position: fixed; inset: 0; background: rgba(15, 40, 39, .45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 60; overflow: auto; }
.modal-card { background: #fff; border-radius: 14px; padding: 18px; width: min(560px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-card input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ghost.danger { color: var(--danger); border-color: #e7c2b8; }
.project-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.project-status[data-state="pj.unsaved"] { color: var(--danger); }
.project-status[data-state="pj.saved"] { color: var(--accent); }
.sc-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.sc-tab { border: 1px solid var(--line); background: #f3f6f4; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tab.active { background: var(--lime); border-color: #b9d77a; }
.sc-tab-add { padding: 4px 8px; font-size: 12px; }
/* ---- area profile & chart primitives */
.workspace.wide { grid-template-columns: 1fr minmax(420px, 620px); }
@media (max-width: 1200px) { .workspace.wide { grid-template-columns: 1fr minmax(380px, 50%); } .ap-tiles { grid-template-columns: repeat(2, 1fr); } }
.viz-tip { position: fixed; z-index: 80; pointer-events: none; background: #0b0b0b; color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; max-width: 260px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.ap-hero { background: linear-gradient(135deg, #ffffff 0%, #f3f8f2 55%, #eaf4fb 100%); }
.ap-hero h2 { font-size: 20px; }
.ap-hero-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 8px; }
.hero-figure { font-size: 48px; font-weight: 700; line-height: 1; color: #0b0b0b; letter-spacing: -0.02em; }
.ap-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-tiles.four { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.viz-tile { position: relative; background: #fff; border: 1px solid rgba(11,11,11,.08); border-radius: 10px; padding: 8px 10px 8px 13px; overflow: hidden; }
.viz-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.tile-value { font-size: 17px; font-weight: 700; color: #0b0b0b; }
.tile-label { font-size: 11px; color: #52514e; }
.tile-sub { font-size: 11px; color: #898781; }
.ap-card { padding: 4px 14px; }
.ap-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ap-section:last-of-type { border-bottom: 0; }
.ap-h { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 10px; }
.ap-h::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.viz-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #52514e; margin: 6px 0; }
.viz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.viz-stack { display: flex; gap: 2px; border-radius: 6px; overflow: hidden; margin: 6px 0 2px; }
.viz-stack .seg { display: flex; align-items: center; justify-content: center; min-width: 2px; font-size: 11px; font-weight: 600; outline-offset: -2px; }
.viz-stack .seg:first-child { border-radius: 4px 0 0 4px; } .viz-stack .seg:last-child { border-radius: 0 4px 4px 0; }
.viz-stack .seg span { white-space: nowrap; padding: 0 4px; }
.viz-table { margin-top: 4px; } .viz-table summary { font-size: 11px; color: #52514e; font-weight: 500; }
.viz-cols { position: relative; }
.viz-cols svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.viz-cols-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 36px; }
.viz-cols .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.viz-cols .col-bar { border-radius: 4px 4px 0 0; }
.viz-cols .col-val { font-size: 11px; color: #0b0b0b; font-weight: 600; min-height: 16px; }
.viz-cols .col-lab { position: absolute; bottom: -30px; font-size: 10px; color: #52514e; text-align: center; line-height: 1.1; width: 100%; }
.viz-dots { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dot-row { display: grid; grid-template-columns: 120px 1fr 72px; gap: 10px; align-items: center; font-size: 12px; }
.dot-label { color: #52514e; }
.dot-track { position: relative; height: 20px; }
.dot-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e1e0d9; }
.dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.dot.main { width: 14px; height: 14px; z-index: 2; }
.dot-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-pairs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pair-row2 { display: grid; grid-template-columns: 90px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.ap-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.viz-meter .meter-head { display: flex; justify-content: space-between; font-size: 12px; color: #52514e; }
.viz-meter .meter-head b { color: #0b0b0b; }
.meter-track { position: relative; height: 10px; background: #e7eef6; border-radius: 5px; margin: 5px 0; }
.meter-fill { height: 100%; border-radius: 5px; }
.meter-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0b0b0b; }
.meter-status { font-size: 11px; font-weight: 600; } .meter-status.good { color: #006300; } .meter-status.critical { color: #b8432f; }
.viz-range { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.range-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; }
.range-label { color: #52514e; }
.range-track { position: relative; height: 16px; }
.range-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e1e0d9; }
.range-bar { position: absolute; top: 3px; height: 10px; border-radius: 4px; }
.range-marker { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #0b0b0b; z-index: 2; }
.range-row:nth-child(n) .range-marker:nth-child(2) { background: #b8432f; }
.range-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.range-keys { display: flex; gap: 14px; font-size: 11px; color: #52514e; margin-top: 2px; }
.range-keys .mk { display: inline-block; width: 2px; height: 11px; margin-right: 5px; vertical-align: -1px; background: #0b0b0b; }
.range-keys .mk1 { background: #b8432f; }
.viz-heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px; margin-top: 4px; }
.viz-heat th { font-weight: 500; color: #52514e; font-size: 11px; text-align: center; }
.viz-heat td { text-align: center; padding: 7px 4px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-strip { width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.viz-strip .tick { font-size: 9px; fill: #898781; }
.ap-protected { display: flex; flex-direction: column; gap: 6px; }
.pa { display: flex; flex-direction: column; border: 1px solid var(--line); border-left: 4px solid #b7d9b8; border-radius: 0 8px 8px 0; padding: 6px 10px; font-size: 13px; }
.pa.in { border-left-color: #008300; background: #f4faf2; }
@media (max-width: 900px) {
  .ap-hero-row { grid-template-columns: 1fr; }
  .dot-row { grid-template-columns: 96px 1fr 64px; }
  .ap-meters { grid-template-columns: 1fr; }
}

.fx-list { display: flex; flex-direction: column; gap: 6px; }
.fx { border-left: 4px solid var(--line); background: #fafcfa; border-radius: 0 8px 8px 0; padding: 7px 10px; }
.fx-head { display: flex; justify-content: space-between; margin-bottom: 2px; }
.fx-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fx.conflict { border-color: var(--danger); } .fx.conflict .fx-kind { color: var(--danger); }
.fx.negative { border-color: #d9793d; } .fx.negative .fx-kind { color: #a4521f; }
.fx.tradeoff { border-color: #d8a52b; } .fx.tradeoff .fx-kind { color: #8a6710; }
.fx.hint { border-color: #7b64b5; } .fx.hint .fx-kind { color: #5a4591; }
.fx.positive { border-color: var(--bio); } .fx.positive .fx-kind { color: #245f36; }

@media (max-width: 900px) {
  .cmp-grid { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .sidebar { flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 8px; }
  .steps { flex-direction: row; overflow-x: auto; width: 100%; }
  .steps button { white-space: nowrap; }
  .sidebar-foot { margin: 0; flex-direction: row; align-items: center; }
  .workspace { grid-template-columns: 1fr; }
  .map-wrap { height: 55vh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .topbar { flex-wrap: wrap; }
  .search { width: 100%; }
  .crumb { display: none; }
}

/* ---- Wissens-Center ---- */
.wz-search { width: 100%; margin: 10px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.wz-tabs { flex-wrap: wrap; }
.wz-content { margin-top: 12px; }
.wz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wz-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.wz-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.wz-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--lime); color: var(--side); font-weight: 700; }
.wz-count { position: absolute; top: 12px; right: 14px; font-size: 12px; color: var(--muted); }
.wz-item { border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; background: var(--card); }
.wz-item[open] { border-color: var(--accent); }
.wz-item summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-weight: 600; list-style: none; }
.wz-item summary::-webkit-details-marker { display: none; }
.wz-item summary::before { content: '›'; color: var(--accent); margin-right: 6px; transition: transform .15s; }
.wz-item[open] summary::before { transform: rotate(90deg); }
.wz-item summary > span { flex: 1; }
.wz-link { text-decoration: none; font-size: 13px; opacity: .55; }
.wz-link:hover { opacity: 1; }
.wz-body { padding: 0 14px 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.wz-body p { margin: 0 0 8px; }
.wz-body ul { margin: 4px 0 10px; padding-left: 20px; }
.wz-sub { margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wz-kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.wz-kv span { color: var(--muted); }
.wz-see { margin-top: 6px; font-size: 13px; }
.wz-lead { font-weight: 600; color: var(--ink); }
.wz-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; position: sticky; top: 0; background: var(--card); padding: 6px 0; z-index: 1; }
.wz-letters a { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 6px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.wz-letters a:hover { background: var(--lime); }
.wz-letter { margin: 14px 0 4px; color: var(--accent); }
.wz-results { display: flex; flex-direction: column; gap: 6px; }
.wz-hit { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.wz-hit:hover { border-color: var(--accent); }
.wz-facts td:first-child { width: 28%; color: var(--muted); }
.wz-status { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--bg); color: var(--muted); }
.wz-info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: middle; }
.wz-info:hover { background: var(--accent); color: #fff; }

.pal-wrap { display: inline-flex; align-items: center; gap: 2px; }
.pal-wrap .wz-info { margin-left: 0; }
