/* Shared chrome for all product demo pages - V1 "Morski turkus" (see DESIGN.md) */
:root {
  --ink: #0B0B0C;
  --muted: #71717A;
  --faint: #A1A1AA;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --wash: #F4F4F5;
  --page: #FAFAFA;
  --surface: #FFFFFF;
  --accent: #0E7C86;
  --ring: rgba(14, 124, 134, .16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.topbar {
  max-width: 1240px; margin: 0 auto; padding: 40px 28px 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex: none; }
.topbar h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin: 18px 0 8px; }
.topbar p { margin: 0; color: var(--muted); max-width: 620px; }
.layout { max-width: 1240px; margin: 0 auto; padding: 0 28px 48px; display: grid; grid-template-columns: minmax(280px, 330px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.panel h2 { font-size: 13px; font-weight: 600; margin: 24px 0 4px; }
.panel h2:first-child { margin-top: 0; }
.panel label, .topbar label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.panel label small { color: var(--faint); }
input[type=text], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: 14px; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { min-height: 64px; resize: vertical; }
input[type=color] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
input[type=range] { accent-color: var(--accent); }
.range { display: flex; align-items: center; gap: 10px; }
.range input { flex: 1; }
.range output { width: 30px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.segmented { display: inline-flex; background: var(--wash); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button { font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.segmented button[aria-selected=true], .segmented button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn { font: inherit; font-size: 14px; font-weight: 500; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 0; background: var(--ink); color: #fff; }
.btn:hover { background: #27272A; }
.btn.secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.secondary:hover { background: var(--wash); }
.push { margin-left: auto; }
.frame { width: 100%; height: 840px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .88em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
