@font-face {
  font-family: "Golos Text";
  src: url("/shared/fonts/GolosText.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  font-family:
    "Golos Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --bg: #f5f5f8;
  --card: #ffffff;
  --text: #2d2835;
  --muted: #686171;
  --accent: #6953cb;
  --accent-text: #6045c0;
  --button-text: #ffffff;
  --border: #e7e3ed;
  --input-border: #9991a5;
  --tint: #eee8f8;
  --soft: #f8f6fa;
  --success: #347650;
  --warning: #875910;
  --danger: #b12e42;
  --radius: 16px;
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #19191f;
    --card: #23232c;
    --text: #f2eff8;
    --muted: #b7b0c4;
    --accent-text: #bcaaff;
    --border: #393640;
    --input-border: #898092;
    --tint: #3e334f;
    --soft: #2b2833;
    --success: #92d3ae;
    --warning: #e9c17b;
    --danger: #ffacb9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #19191f;
  --card: #23232c;
  --text: #f2eff8;
  --muted: #b7b0c4;
  --accent-text: #bcaaff;
  --border: #393640;
  --input-border: #898092;
  --tint: #3e334f;
  --soft: #2b2833;
  --success: #92d3ae;
  --warning: #e9c17b;
  --danger: #ffacb9;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
h1,
h2,
h3,
p,
a,
label,
button,
article,
dd {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
}
h1 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -1px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 18px;
}
button,
input,
select,
textarea {
  font: inherit;
  min-height: 44px;
  max-width: 100%;
}
button {
  min-width: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
button:hover:not(:disabled) {
  border-color: var(--accent-text);
}
button:active:not(:disabled) {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary,
form > button[type="submit"] {
  background: var(--accent);
  color: var(--button-text);
  border-color: transparent;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--input-border);
  border-radius: 9px;
  color: var(--text);
  background: var(--card);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  accent-color: var(--accent);
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
a {
  color: var(--accent-text);
}
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}
:focus {
  scroll-margin-block: 24px;
}
[tabindex="-1"]:focus {
  outline: none;
}
.muted {
  color: var(--muted);
}
.empty {
  color: var(--muted);
  padding: 32px 16px;
  text-align: center;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  padding: 12px;
  background: var(--card);
  z-index: 30;
}
.skip-link:focus {
  top: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand-mark {
  width: 23px;
  height: 30px;
  flex: 0 0 23px;
  background: repeating-linear-gradient(
    -24deg,
    transparent 0 3px,
    var(--accent-text) 3px 5px
  );
  border-radius: 60% 60% 30% 30%;
  transform: rotate(12deg);
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-error {
  color: var(--danger);
  font-size: 14px;
}
[aria-invalid="true"] {
  border-color: var(--danger);
}
.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--accent-text);
  font-size: 13px;
}
.status-pill[data-status="in_production"] {
  color: var(--warning);
  background: var(--soft);
}
.status-pill[data-status="ready"],
.status-pill[data-status="completed"] {
  color: var(--success);
  background: var(--soft);
}
.status-pill[data-status="cancelled"] {
  color: var(--muted);
  background: var(--soft);
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background-color 150ms,
      border-color 150ms;
  }
}
