:root {
  color-scheme: light;
  --ink: #1b1f2a;
  --muted: #6b7280;
  --line: #e3e6ec;
  --panel: #f1f3f7;
  --accent: #f5c518;
  --error: #c62f34;
  --ok: #0f7d6e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

a { color: inherit; }

code { font-size: 0.92em; background: var(--panel); padding: 0 4px; border-radius: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #1f2433;
  color: #fff;
}
.site-title { font-weight: 700; text-decoration: none; }
.site-nav { display: flex; gap: 16px; }
.site-link { color: #a9b1c6; font-size: 14px; }

h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 32px 0 8px; }

.breadcrumb { color: var(--muted); font-size: 14px; }

.flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e3f4f1;
  color: var(--ok);
  font-weight: 600;
}

.products { width: 100%; border-collapse: collapse; }
.products th, .products td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.products th { font-size: 13px; color: var(--muted); font-weight: 600; }
.products .num { text-align: right; white-space: nowrap; }
.products tr.updated td { background: #fff7d1; }

.price { font-size: 22px; font-weight: 700; }

.button,
.product-form button {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.product-form button:disabled { opacity: 0.5; cursor: progress; }

.try li { margin-bottom: 6px; }

.product-form { display: grid; gap: 6px; max-width: 480px; }
.product-form label { font-size: 14px; font-weight: 600; margin-top: 10px; }
.product-form input[type="text"],
.product-form input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9ced8;
  border-radius: 8px;
  font: inherit;
}
.product-form .actions { margin-top: 16px; }

.errors {
  margin: 0;
  padding: 10px 14px 10px 32px;
  border-radius: 8px;
  background: #fdeaea;
  color: var(--error);
  font-size: 14px;
}

.style-list { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--line); }
.style-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.style-list a { min-width: 8em; font-weight: 700; }
.style-list span { color: var(--muted); font-size: 14px; }

pre { overflow-x: auto; padding: 12px 14px; border-radius: 8px; background: var(--panel); font-size: 13px; line-height: 1.5; }
pre code { background: none; padding: 0; }

.modal-size { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--panel); font-size: 14px; }
.modal-size output { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 8px; }
