/* Art Potolok design system. Colours come from the logo: deep navy, lamp gold, chrome.
   Radius rule: panels 18px, controls 11px, status chips full round. */
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0f1c; --sunk: #0d1424; --surface: #131b2f; --raised: #1a2440; --hover: #212c4c; --field: #0e1527;
  --line: rgba(190, 204, 235, .13); --line-strong: rgba(190, 204, 235, .26);
  --text: #eff2f8; --text-2: #c5ccdb; --muted: #929eb5;
  --gold: #f6b42b; --gold-hi: #ffd468; --gold-lo: #df8f0d; --on-gold: #0b101d; --gold-soft: rgba(246, 180, 43, .13); --gold-line: rgba(246, 180, 43, .55);
  --ok: #54d3a2; --danger: #ff8071; --warn: #ffb965;
  --r-panel: 18px; --r-ctl: 11px;
  --shadow: 0 1px 2px rgba(3, 6, 14, .4), 0 10px 30px rgba(3, 6, 14, .35);
  --shadow-lg: 0 2px 6px rgba(3, 6, 14, .5), 0 24px 70px rgba(3, 6, 14, .6);
  --ease: cubic-bezier(.2, 0, 0, 1);
  font-family: Onest, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden], .hidden { display: none !important; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; display: block; }

/* buttons */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 15px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--raised); color: var(--text);
  cursor: pointer; text-decoration: none; font-weight: 550; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease), scale 150ms var(--ease), opacity 150ms var(--ease);
}
button:disabled { opacity: .5; cursor: default; }
button:active:not(:disabled), .btn:active { scale: .97; }
.primary, a.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); border-color: transparent; color: var(--on-gold); font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 16px rgba(246, 180, 43, .18);
}
.ghost { background: transparent; }
.danger-solid, button.danger-solid:hover:not(:disabled) { background: #c7362b; border-color: transparent; color: #fff; font-weight: 650; }
.danger { color: var(--danger); }
.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.wide { width: 100%; }
.icon { min-height: 38px; width: 38px; padding: 0; border: 0; background: transparent; color: var(--text-2); }
@media (hover: hover) {
  button:hover:not(:disabled), .btn:hover { background: var(--hover); border-color: var(--line-strong); }
  .primary:hover:not(:disabled), a.primary:hover { background: linear-gradient(180deg, #ffe08a, var(--gold-hi) 45%, var(--gold)); border-color: transparent; }
  .ghost:hover:not(:disabled) { background: var(--raised); }
  .icon:hover:not(:disabled) { background: var(--raised); color: var(--text); }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* fields */
input, select, textarea { background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
input::placeholder, textarea::placeholder { color: #7f8ba3; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--gold); }
/* Own arrow: the browser's sits against the edge and differs between systems. */
select:not([multiple]) { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22%23c5ccdb%22%3E%3Cpath%20d%3D%22M216.49%2C104.49l-80%2C80a12%2C12%2C0%2C0%2C1-17%2C0l-80-80a12%2C12%2C0%2C0%2C1%2C17-17L128%2C159l71.51-71.52a12%2C12%2C0%2C0%2C1%2C17%2C17Z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; padding-right: 36px !important; text-overflow: ellipsis; cursor: pointer; }
select option { background: var(--surface); color: var(--text); }

/* a light sample tile: fixtures and catalog drawings are made for a light ceiling */
.fix-tile, .choice > svg, .bar-fix svg, .fix-opt svg, .ph.fix svg { background: #e8ecf3; border-radius: 9px; padding: 2px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes enter-up { from { opacity: 0; translate: 0 8px; } }
@keyframes pop-in { from { opacity: 0; scale: .97; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  button:active:not(:disabled), .btn:active { scale: 1; }
}
