/* Oroboro storefront. Shares the plugin's visual language: near-black
   panels, one phosphor-green accent, small uppercase section labels with a
   green mark. */

:root {
  --bg: #111111;
  --bg-raised: #171717;
  --panel: #1d1d1d;
  --panel-2: #222222;
  --border: #2c2c2c;
  --border-strong: #3a3a3a;
  --text: #e4e4e4;
  --text-muted: #8f8f8f;
  --accent: #00ff41;
  --accent-hover: #5cff82;
  --accent-ink: #03140a;
  --accent-soft: rgba(0, 255, 65, 0.12);
  --amber: #ffb347;
  --danger: #ff7a6b;
  --success: #6fdc8c;
  --radius: 8px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 650;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 640px;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 0.875rem;
}
.lede {
  font-size: 1.15rem;
  color: #b9b9b9;
  max-width: 44em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The plugin's section label: small caps text after a green bar. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mark {
  display: inline-block;
  flex: none;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: var(--accent);
}

/* ---- Header / footer --------------------------------------------------- */

.test-banner {
  background: var(--amber);
  color: #1d1300;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}
.logo .mark {
  height: 18px;
  width: 4px;
}
.logo:hover {
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav a:not(.button),
.link-button {
  color: var(--text);
}
.nav a:not(.button):hover,
.link-button:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav-cart .count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.inline-form {
  display: inline;
  margin: 0;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.page {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 64px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ---- Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 80ms, border-color 80ms, color 80ms;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.button-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.button-ghost:hover {
  background: var(--panel-2);
  border-color: #505050;
}
.button-small {
  padding: 6px 12px;
  font-size: 0.875rem;
}
.button-large {
  padding: 13px 28px;
  font-size: 1.05rem;
}
.button-wide {
  width: 100%;
}

/* ---- Panels, tables, alerts ----------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.table tfoot th {
  border-bottom: 0;
  font-size: 1.05rem;
}
.table tbody tr:last-child td {
  border-bottom-color: var(--border-strong);
}
.table .num {
  text-align: right;
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-paid {
  color: var(--success);
  border-color: rgba(111, 220, 140, 0.4);
  background: rgba(111, 220, 140, 0.08);
}
.status-pending {
  color: var(--amber);
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 179, 71, 0.08);
}
.status-cancelled,
.status-refunded {
  color: var(--text-muted);
}

.alert {
  padding: 12px 16px;
  margin: 0 0 20px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--amber);
  background: var(--panel);
}
.alert-error {
  border-left-color: var(--danger);
  color: #ffc9c2;
}
.alert-success {
  border-left-color: var(--accent);
}
.thanks {
  font-size: 1.05rem;
}

.empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent);
}

.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  margin-bottom: 6px;
}

.section {
  margin-top: 48px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}
.note p:last-child,
.note ol:last-child {
  margin-bottom: 0;
}
details.note summary {
  cursor: pointer;
  font-weight: 600;
}
details.note[open] summary {
  margin-bottom: 12px;
}
.steps {
  margin: 0;
  padding-left: 1.3em;
}
.steps li + li {
  margin-top: 8px;
}

/* ---- Home ---------------------------------------------------------------------- */

.hero {
  padding: 24px 0 48px;
}
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  max-width: 14em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 120ms, transform 120ms;
}
.product-card:hover {
  border-color: rgba(0, 255, 65, 0.5);
  text-decoration: none;
  transform: translateY(-2px);
}
.product-media {
  aspect-ratio: 2 / 1;
  background: #0b0b0b;
  border-bottom: 1px solid var(--border);
}
.product-media img,
.product-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 20px;
}
.product-card-body h2 {
  margin-bottom: 4px;
}
.product-card-body p {
  margin: 0;
}
.price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
}
.price-large {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* ---- Product ---------------------------------------------------------------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.product-hero-media {
  aspect-ratio: 2 / 1;
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.buy-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buy-box h1 {
  margin-bottom: 0;
}
.buy-box .price-large {
  margin-bottom: 4px;
}
.buy-box form {
  margin: 0;
}
.buy-box .eyebrow {
  margin-bottom: 0;
}
.owned {
  color: var(--success);
  font-weight: 600;
  margin: 0;
}
.assurances {
  list-style: none;
  margin: 8px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  color: #b9b9b9;
  font-size: 0.9rem;
}
.assurances li {
  position: relative;
  padding-left: 22px;
}
.assurances li + li {
  margin-top: 6px;
}
.assurances li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}
.product-details .note {
  margin-top: 0;
}
.prose {
  font-size: 1.05rem;
  color: #cfcfcf;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.features li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ---- Downloads (product page, /products/<slug>/releases) --------------------- */

.release {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.release-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.release-head h3 {
  margin: 0;
}
.download-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.download-button {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 150px;
}
.release > p {
  margin: 0 0 12px;
}
.release-notes {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: #cfcfcf;
}
.release-notes > :first-child {
  margin-top: 0;
}
.release-notes > :last-child {
  margin-bottom: 0;
}
.release-notes h1,
.release-notes h2,
.release-notes h3,
.release-notes h4 {
  font-size: 0.95rem;
  margin: 16px 0 6px;
}
.release-notes ul,
.release-notes ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.release-notes li + li {
  margin-top: 4px;
}
.downloads .note {
  margin-top: 12px;
}
.install-list {
  padding-left: 1.3em;
}
.install-list li + li {
  margin-top: 6px;
}
.admin-releases {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9rem;
}
.admin-releases-title {
  font-weight: 600;
}
.admin-releases .plain-list {
  margin: 0;
  padding-left: 1.1em;
}

/* ---- Cart / checkout ----------------------------------------------------------- */

.checkout-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}
.discount-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(100%, 320px);
  font-size: 0.9rem;
  font-weight: 600;
}
.discount-input {
  display: flex;
  gap: 8px;
}
.discount-input input {
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.discount-input input::placeholder {
  text-transform: none;
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-weight: 400;
}
.code-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border: 1px dashed rgba(0, 255, 65, 0.5);
  border-radius: 4px;
  color: var(--accent);
  font: 600 0.8rem/1.5 var(--mono);
  letter-spacing: 0.04em;
}
.table .subtotal td {
  color: var(--text-muted);
  border-bottom: 0;
  padding-bottom: 4px;
}
.table .discount-row td {
  color: var(--success);
}
.table .discount-row .num {
  font-weight: 600;
}
.checkout-bar p {
  margin: 0;
  max-width: 32em;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.test-checkout .table {
  margin-top: 8px;
}

/* ---- Forms ------------------------------------------------------------------------ */

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.auth-card h1 {
  font-size: 1.8rem;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.form-narrow {
  max-width: 440px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---- Licenses -------------------------------------------------------------------- */

.license-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.license-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.license-card-head h3 {
  margin-bottom: 2px;
}
.license-card-head p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.license-text {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0b0b0b;
  color: #b8ffc8;
  font: 0.8rem/1.5 var(--mono);
}
.license-card > p:last-child {
  margin: 0;
}

/* ---- Admin -------------------------------------------------------------------------- */

.nav a.nav-admin {
  color: var(--amber);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.admin-nav .eyebrow {
  margin: 0 8px 0 0;
}
.admin-nav a {
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.admin-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.admin-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.admin-columns > .section {
  margin-top: 32px;
}
.section-gap {
  margin-top: 32px;
}
.section-head h1 {
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat p {
  margin: 0;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 650;
  line-height: 1.3;
}
.stat-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-compact th,
.table-compact td {
  padding: 9px 14px;
}
.panel + p {
  margin-top: 10px;
}
.nowrap {
  white-space: nowrap;
}
.plain-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.quiet-link {
  color: var(--text);
}

.pill {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill-ok {
  color: var(--success);
  border-color: rgba(111, 220, 140, 0.4);
  background: rgba(111, 220, 140, 0.08);
}
.pill-warn {
  color: var(--amber);
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 179, 71, 0.08);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts dt {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts-wide {
  max-width: 720px;
}

.thumb-cell {
  width: 88px;
  padding-right: 0 !important;
}
.thumb {
  display: block;
  width: 72px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #0b0b0b;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters input[type="search"] {
  width: min(100%, 320px);
}
.filters select {
  width: auto;
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.pagination a:only-child {
  margin-left: auto;
}

.button-danger {
  background: transparent;
  border-color: rgba(255, 122, 107, 0.6);
  color: var(--danger);
}
.button-danger:hover {
  background: rgba(255, 122, 107, 0.1);
  border-color: var(--danger);
}

.action-box {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.action-box-danger {
  border-color: rgba(255, 122, 107, 0.35);
}
.action-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-link,
.code-title {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.code-list {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0b0b0b;
  color: var(--text);
  font: 0.9rem/1.6 var(--mono);
  resize: vertical;
}

/* Admin forms: the general .form rules, plus more kinds of input. */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 16px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.admin-form legend {
  padding: 0 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-narrow-wide {
  max-width: 640px;
}
.admin-form > .button {
  align-self: flex-start;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.form-main,
.form-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-row,
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.price-inputs {
  grid-template-columns: minmax(0, 1fr) 90px;
}
.admin-form label.checkbox,
.action-box label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.checkbox input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.checkbox .hint {
  display: block;
}
.admin-form label.radio-row {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 400;
}
.radio-row input[type="radio"] {
  accent-color: var(--accent);
}
.admin-form .input-short {
  width: 110px;
}
.admin-form .input-currency {
  width: 70px;
}
.input-code {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input-code::placeholder {
  text-transform: none;
}
.input-prefix {
  display: flex;
  align-items: stretch;
}
.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--panel-2);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}
.input-prefix input {
  border-radius: 0 6px 6px 0;
}
.image-preview {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0b0b0b;
}
input[type="search"],
input[type="number"],
input[type="date"],
select,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.admin-form textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type="file"] {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input:disabled {
  color: var(--text-muted);
  background: var(--panel-2);
}

/* ---- Errors ------------------------------------------------------------------------ */

.error-page {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ---- Small screens ------------------------------------------------------------------ */

@media (max-width: 820px) {
  .product-layout,
  .product-details,
  .admin-columns,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page {
    padding-top: 28px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .checkout-bar {
    justify-content: stretch;
  }
  .checkout-bar .button {
    width: 100%;
  }
  .table th,
  .table td {
    padding: 10px 12px;
  }
}
