:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #151816;
  --panel-2: #1b201c;
  --line: #2a302c;
  --text: #f3f6f3;
  --muted: #9ca69f;
  --green: #91bd55;
  --green-2: #b7dc84;
  --amber: #e8b35a;
  --red: #ef7272;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(145, 189, 85, 0.17), transparent 31rem),
    linear-gradient(180deg, #101310 0, var(--bg) 30rem);
  color: var(--text);
}

button, a { font: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: 0.45; transform: none !important; }

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px max(24px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brandmark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 220, 132, 0.45);
  border-radius: 50%;
  color: var(--green-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 22px; font-weight: 600; }
h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 20px; }
.eyebrow { margin-bottom: 7px; color: var(--green-2); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mode { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.mode span { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px rgba(232, 179, 90, 0.7); }

.shell { width: min(1480px, calc(100% - 32px)); margin: 30px auto 70px; }
[hidden] { display: none !important; }
.auth-shell { width: min(520px, calc(100% - 32px)); margin: clamp(48px, 10vh, 110px) auto; }
.auth-card { padding: clamp(24px, 6vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(31, 37, 32, 0.98), rgba(16, 19, 17, 0.98)); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34); }
.brandmark.large { width: 64px; height: 64px; margin-bottom: 26px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.auth-form { display: grid; gap: 10px; margin-top: 24px; }
.auth-form label { color: var(--text); font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #0e120f; color: var(--text); font: inherit; }
.auth-form input[aria-invalid="true"] { border-color: var(--red); }
.field-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-error { min-height: 20px; margin: 0; color: #ffabab; font-size: 12px; }
.notice { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px; margin-bottom: 22px; border: 1px solid rgba(232, 179, 90, 0.28); border-radius: 22px; background: linear-gradient(125deg, rgba(232, 179, 90, 0.10), rgba(21, 24, 22, 0.85)); }
.notice h2 { font-size: 28px; }
.notice p:last-child { color: var(--muted); margin-bottom: 0; max-width: 820px; }
.selectors { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr); gap: 12px; margin-top: 20px; }
.selectors label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.selectors select { min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); }
.grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.75fr); gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(28, 32, 29, 0.95), rgba(18, 21, 19, 0.96)); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22); padding: 22px; }
.sidebar { display: grid; gap: 18px; position: sticky; top: 110px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.panel-head.small { align-items: center; }
.panel-head h2, .panel-head h3 { margin-bottom: 0; }
.price { color: var(--green-2); font-size: 30px; font-weight: 700; white-space: nowrap; }

.hero-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 17px; background: #080a09; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.image-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 54px; border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; background: rgba(0,0,0,0.55); color: white; cursor: pointer; font-size: 30px; }
.image-nav:hover { background: rgba(0,0,0,0.8); }
.image-nav.previous { left: 12px; }
.image-nav.next { right: 12px; }
.image-counter { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,0.67); font-size: 12px; }
.thumbnails { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 24px; }
.thumbnail { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid transparent; border-radius: 10px; background: #090b0a; cursor: pointer; opacity: 0.58; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbnail.active { border-color: var(--green); opacity: 1; box-shadow: 0 0 0 2px rgba(145,189,85,0.15); }

.field-block { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 9, 8, 0.32); }
.field-block.compact { margin-top: 0; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.field-label button { padding: 5px 8px; border: 0; border-radius: 8px; background: rgba(145, 189, 85, 0.12); color: var(--green-2); cursor: pointer; }
.copy-value { line-height: 1.55; }
.description { margin: 0; max-height: 430px; overflow: auto; white-space: pre-wrap; font: inherit; color: var(--text); }
.field-row { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 12px; margin-top: 16px; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; cursor: pointer; font-weight: 650; transition: 0.16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { width: 100%; margin-top: 14px; background: var(--green); color: #10150d; }
.button.secondary { width: 100%; margin-top: 9px; border-color: var(--line); background: #242a25; color: var(--text); }
.button.ghost { border-color: rgba(255,255,255,0.14); color: var(--text); white-space: nowrap; }
.status-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.status-line strong { color: var(--green-2); }
.status-line span { color: var(--muted); font-size: 12px; }
.score { min-width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green-2); font-weight: 700; }
.checks, .audit { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.check { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.42; }
.check-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--green); }
.check.blocked .check-dot { background: var(--red); }
.check.blocked { color: #d4aaa9; }
.next-step { border-color: rgba(239, 114, 114, 0.25); }
.next-step p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.audit li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.audit li:last-child { border-bottom: 0; }
.audit time { display: block; margin-top: 3px; opacity: 0.7; }
.toast { position: fixed; right: 22px; bottom: 22px; transform: translateY(120px); padding: 12px 16px; border: 1px solid rgba(145,189,85,0.35); border-radius: 12px; background: #1e281b; color: var(--green-2); box-shadow: 0 18px 50px rgba(0,0,0,0.38); transition: 0.2s ease; }
.toast.visible { transform: translateY(0); }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .notice { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1480px); margin-top: 16px; }
  .topbar { padding: 14px; }
  .brandmark { width: 42px; height: 42px; }
  .mode { padding: 7px 9px; }
  .panel, .notice { padding: 16px; border-radius: 16px; }
  .panel-head { flex-direction: column; }
  .price { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .thumbnails { grid-template-columns: repeat(3, 1fr); }
  .selectors { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
