:root {
  color-scheme: light;
  --ink: #171717;
  --ink-soft: #4d4d4d;
  --ink-muted: #737373;
  --paper: #ffffff;
  --canvas: #f5f5f4;
  --surface: #fafafa;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --focus: #0072f5;
  --blue: #0a72ef;
  --blue-soft: #ebf5ff;
  --red: #d92d20;
  --red-soft: #fff1f0;
  --amber: #8a4b08;
  --amber-soft: #fff8e6;
  --green: #16794b;
  --green-soft: #ecfdf3;
  --shadow-border: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 16px -14px rgba(0, 0, 0, 0.22), inset 0 0 0 1px #fafafa;
  --header-height: 0px;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
.preset-option:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.brand-name {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header-divider {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: var(--line-strong);
}

.lab-name {
  font-size: 14px;
  font-weight: 500;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #0068d6;
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.primary-button {
  gap: 6px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 2px 4px rgba(0, 0, 0, 0.14);
}

.primary-button:hover {
  background: #2b2b2b;
  transform: translateY(-1px);
}

.primary-button.large {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.secondary-button,
.icon-button {
  background: var(--paper);
  box-shadow: var(--shadow-border);
}

.secondary-button:hover,
.icon-button:hover {
  background: #f5f5f5;
}

.secondary-button.compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
