:root {
  --bg: oklch(0.975 0.008 80);
  --surface: oklch(1 0 0);
  --text: oklch(0.22 0.025 255);
  --muted: oklch(0.43 0.025 255);
  --accent: oklch(0.44 0.14 255);
  --accent-text: oklch(1 0 0);
  --border: oklch(0.83 0.015 255);
  --focus: oklch(0.48 0.2 255);
  --relevant-bg: oklch(0.9 0.075 145);
  --relevant-text: oklch(0.27 0.09 145);
  --irrelevant-bg: oklch(0.91 0.055 25);
  --irrelevant-text: oklch(0.3 0.11 25);
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--accent); text-underline-position: from-font; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 0.14em; }
h1, h2 { line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -0.025em; }
h2 { font-size: 1.25rem; }
p { text-wrap: pretty; }
button, input, select { font: inherit; font-size: 1rem; }
button, .button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: var(--text);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}
button:hover, .button:hover { box-shadow: 0 2px 8px oklch(0 0 0 / 0.12); text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.secondary { background: transparent; }
.relevant { background: var(--relevant-bg); color: var(--relevant-text); border-color: transparent; }
.irrelevant { background: var(--irrelevant-bg); color: var(--irrelevant-text); border-color: transparent; }
.skip-link { position: absolute; inset-block-start: 0.5rem; inset-inline-start: -100vw; z-index: 10; padding: 0.75rem; background: var(--surface); }
.skip-link:focus { inset-inline-start: 0.5rem; }
.site-header { padding: 0.75rem max(1rem, env(safe-area-inset-left)); background: var(--surface); box-shadow: 0 1px 8px oklch(0 0 0 / 0.08); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.nav a { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.nav form { margin: 0; }
.link-button { min-height: 2.5rem; padding: 0; border: 0; color: var(--accent); text-decoration: underline; background: transparent; box-shadow: none; font-weight: 500; }
.user-name { margin: 0.5rem 0 0; color: var(--muted); }
.container { width: min(100% - 2rem, 68rem); margin-inline: auto; padding-block: 2rem 4rem; }
.page-heading { max-width: 65ch; margin-block-end: 2rem; }
.page-heading p { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.category-card, .product-card, .empty-state, .auth-card, .stack-form, .progress-panel {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.08), 0 8px 24px oklch(0 0 0 / 0.05);
}
.category-card > :first-child, .empty-state > :first-child, .auth-card > :first-child { margin-block-start: 0; }
.category-card > :last-child, .empty-state > :last-child { margin-block-end: 0; }
progress { width: 100%; min-width: 0; accent-color: var(--accent); }
.numbers { font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin-block-end: 1.5rem; }
.filters label { width: 100%; font-weight: 650; }
.filters select { min-height: 2.75rem; max-width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); }
.progress-panel { margin-block-end: 1.5rem; }
.progress-panel p { margin-block-start: 0; }
.product-card { display: grid; grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr); gap: 2rem; }
.product-media img, .image-placeholder { display: block; width: 100%; max-height: 28rem; border-radius: 0.75rem; object-fit: contain; outline: 1px solid oklch(0 0 0 / 0.1); }
.image-placeholder { min-height: 12rem; align-content: center; text-align: center; color: var(--muted); background: var(--bg); }
.product-copy { min-width: 0; overflow-wrap: anywhere; }
.product-copy h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.eyebrow { margin-block-end: 0.25rem; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.label-status { font-weight: 700; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-block: 1.5rem; }
.actions button { flex-wrap: wrap; }
kbd { padding: 0.1rem 0.35rem; border: 1px solid currentColor; border-radius: 0.3rem; font: inherit; font-size: 0.8em; }
.stack-form, .auth-card { max-width: 38rem; }
.stack-form { display: grid; gap: 0.75rem; }
.stack-form p { margin: 0; }
.stack-form label { font-weight: 650; }
.stack-form input { width: 100%; min-height: 2.75rem; padding: 0.6rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.form-error { color: var(--irrelevant-text); font-weight: 650; }
.hint { color: var(--muted); }
.message { padding: 0.75rem 1rem; border-radius: 0.5rem; background: var(--relevant-bg); color: var(--relevant-text); }
@media (max-width: 42rem) {
  .container { width: min(100% - 2rem, 68rem); padding-block-start: 1.25rem; }
  .product-card { grid-template-columns: 1fr; gap: 1rem; }
  .actions { grid-template-columns: 1fr; }
  .filters > * { width: 100%; }
  .filters select { width: 100%; }
}
@media (max-width: 20rem) {
  .container { width: calc(100% - 1rem); }
  .category-card, .product-card, .empty-state, .auth-card, .stack-form, .progress-panel { padding: 0.75rem; }
  .actions button { padding-inline: 0.5rem; }
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}
