:root {
  --bg: #071314;
  --bg-2: #0c1c1e;
  --panel: #102426;
  --panel-2: #163033;
  --line: #1e4548;
  --teal: #2bbbad;
  --teal-2: #148f86;
  --text: #e7f6f4;
  --muted: #8eb0ad;
  --warn: #e2b15c;
  --danger: #ef6f6f;
  --ok: #7dcea0;
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
button { min-height: 44px; padding: 8px 12px; }
input, select, textarea { min-height: 44px; padding: 8px 10px; width: 100%; }
textarea { min-height: 88px; }
button.primary { background: var(--teal-2); border-color: var(--teal); color: #f3fffd; font-weight: 650; }
button.ghost { background: transparent; }
button.warn { border-color: var(--warn); color: var(--warn); }
button.danger { border-color: var(--danger); color: var(--danger); }
a { color: var(--teal); }
#app { max-width: 1100px; margin: 0 auto; padding: 12px 12px 88px; }
.top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 12px; }
.brand { font-weight: 750; letter-spacing: 0.04em; color: var(--teal); }
.muted { color: var(--muted); font-size: 0.92rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { flex: 1 1 auto; }
.chips button.on { background: var(--teal-2); border-color: var(--teal); }
h1 { font-size: 1.35rem; margin: 0 0 8px; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
.err { color: var(--danger); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #0a191b; border-top: 1px solid var(--line); z-index: 5; }
.nav button { flex: 1; border: 0; border-radius: 0; background: transparent; }
.nav button.on { color: var(--teal); }
.list button.item { width: 100%; text-align: left; margin-bottom: 8px; background: var(--panel); }
svg.elev { width: 100%; height: auto; background: #0b1a1c; border-radius: 12px; touch-action: none; }
.issue { font-size: 0.92rem; margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
#view3d { width: 100%; height: min(70dvh, 640px); border-radius: 12px; display: block; background: #071314; }
.shapes { display: flex; flex-direction: column; gap: 8px; }
.shape { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--panel); }
.shape span { color: var(--muted); font-size: 0.92rem; }
.sheet { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.sheet button { flex: 0 0 auto; }
.banner { background: #1c2a14; border: 1px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
@media (min-width: 800px) {
  #app { padding: 20px 20px 96px; }
  .split { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
}
