:root {
  --bg: #131225;
  --header: #0d0c1c;
  --ink: #ffffff;
  --muted: #a0a0a6;
  --card: #0d0c1c;
  --line: #2a2942;
  --accent: #c5c8d0;
  --panel: #17162c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--muted);
  background: var(--bg);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
header { background: var(--header); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.logo img { height: 46px; width: auto; display: block; }
.menu { display: flex; gap: 22px; margin-left: 12px; align-items: center; flex-wrap: wrap; }
.menu a, .menu button {
  background: none; border: 0; border-radius: 0; padding: 0;
  color: #fff; text-decoration: none; font: inherit; font-size: 15px; cursor: pointer;
}
.menu a:hover, .menu button:hover, .menu .on { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.wa-btn, .wa-fab {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #1faa59; border: 1px solid #1faa59;
  color: #fff; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600;
}
.wa-btn { height: 38px; padding: 0 14px; }
.wa-fab { position: fixed; right: 18px; bottom: 22px; z-index: 25; padding: 12px 16px; }
.page-hero { background: var(--header); padding: 54px 0 64px; }
.hero-inner { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; }
.page-hero h1 {
  margin: 0 0 12px; color: #fff;
  font-family: Sora, Inter, sans-serif; font-size: 40px; font-weight: 600;
}
.discount-banner {
  display: inline-block; margin: 0; padding: 10px 14px;
  border: 1px solid var(--accent); border-radius: 999px; color: #fff;
  background: rgba(197, 200, 208, .14);
  font-family: Sora, Inter, sans-serif; font-size: 16px; font-weight: 600;
}
.crumb { color: var(--accent); white-space: nowrap; }
.crumb span { color: var(--muted); margin: 0 6px; }
.crumb b { color: #fff; }
.page { width: min(1180px, calc(100% - 40px)); margin: 36px auto 48px; }
.layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 420px; } }
.card, .admin-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  color: var(--muted);
}
h2, h3 { color: #fff; font-family: Sora, Inter, sans-serif; font-weight: 600; }
.steps { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.steps .on { color: var(--accent); font-weight: 600; }
.steps .off { color: var(--muted); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.field, select.field {
  width: 100%; border: 0; border-radius: 8px; padding: 12px 14px;
  background: var(--header); color: #fff; font: inherit;
}
button, .btn, .btn-ghost { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn { background: var(--accent); color: #102000; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
button:disabled { opacity: .4; }
.grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; } .metrics { grid-template-columns: 1fr 1fr; } }
.metrics { display: grid; gap: 10px; }
.metric { background: var(--header); border-radius: 12px; padding: 12px 14px; }
.metric span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.metric strong { color: #fff; font-size: 18px; font-family: Sora, Inter, sans-serif; }
.alert { background: rgba(153, 27, 27, .25); color: #fecaca; border-radius: 12px; padding: 12px; }
.note { background: rgba(197, 200, 208, .12); color: #fff; border: 1px solid var(--accent); border-radius: 12px; padding: 12px; font-size: 14px; }
.status { background: var(--header); color: #fff; border-radius: 12px; padding: 12px; font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; color: #fff; }
th { color: var(--accent); font-weight: 600; }
th, td { text-align: left; padding: 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr.best { background: rgba(197, 200, 208, .12); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.admin-block { margin-bottom: 12px; }
.admin-page { max-width: 820px; }
.admin-page .bill li { align-items: center; }
.profile-meta { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
svg.preview { width: 100%; height: 180px; background: var(--header); border-radius: 12px; }
canvas.stl-preview { width: 100%; height: 320px; display: block; margin: 12px 0; background: var(--header); border-radius: 12px; cursor: grab; touch-action: none; }
.small, .small li { color: var(--muted); font-size: 13px; }
aside h2 { margin-top: 0; }
@media (max-width: 900px) {
  .nav, .hero-inner { flex-direction: column; align-items: flex-start; }
  .nav-actions, .menu { margin-left: 0; }
  .page-hero h1 { font-size: 32px; }
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.choice { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--header); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
.choice.on, .choice:has(input:checked) { outline: 1px solid var(--accent); color: var(--accent); }
.choice input { accent-color: var(--accent); }
.calc-form h2 { margin: 18px 0 8px; font-size: 20px; }
.split3 { grid-template-columns: repeat(3, 1fr); }
.extra-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; margin-bottom: 8px; }
.bill { list-style: none; padding: 0; margin: 0; }
.bill li, .total-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #fff; }
.total-line { margin-top: 8px; font-size: 22px; font-family: Sora, Inter, sans-serif; }
.total-line strong, .bill strong { color: #fff; }
.file-btn { margin-top: 16px; }
.role-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
.role-card { display: grid; gap: 8px; text-align: left; background: var(--panel); color: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.role-card strong { font-family: Sora, Inter, sans-serif; font-size: 22px; }
.role-card small { color: var(--muted); font-size: 14px; }
.role-card:hover { border-color: var(--accent); }
.client-logo { max-width: 160px; max-height: 70px; object-fit: contain; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 6px; }
.reseller-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.reseller-brand .small { flex-basis: 100%; margin: 0; }
aside.card { position: sticky; top: 16px; }
aside.card h2 { margin: 20px 0 8px; font-size: 18px; }
aside.card h2:first-of-type { margin-top: 0; }
aside.card .bill li { align-items: baseline; }
aside.card .bill li span { min-width: 0; }
aside.card .total-line { font-size: 18px; align-items: baseline; }
aside.card .note, aside.card .small { margin-top: 12px; }
.kicker { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { background: var(--header); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.tabs button.on { color: #102000; background: var(--accent); border-color: var(--accent); }
.calc-stack { display: grid; gap: 16px; }
.calc-stack h2 { margin: 18px 0 8px; font-size: 20px; }
.calc-stack > .card > h2:first-of-type { margin-top: 0; }
.calc-stack h3 { margin: 18px 0 8px; font-size: 16px; }
.calc-stack .file-btn { margin-top: 0; }
.admin-calc .metrics { grid-template-columns: 1fr; }
@media (min-width: 700px) { .admin-calc .metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1099px) {
  .layout.admin-calc aside { order: -1; position: static; }
}
@media (min-width: 1100px) { .layout.admin-calc { grid-template-columns: minmax(0, 1fr) 420px; } }
.requests { display: grid; gap: 14px; }
.requests-head h2 { margin-top: 0; }
.requests-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.requests-tools .check, .request-top .check { margin: 0; }
.requests-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.request-card { display: grid; gap: 8px; }
.request-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.request-id, .request-when { color: var(--muted); font-size: 13px; font-weight: 500; }
.request-when { margin-left: auto; }
.request-total { color: #fff; font-family: Sora, Inter, sans-serif; font-size: 20px; }
.request-total.is-open { color: var(--muted); font-family: Inter, "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; }
.request-card h3 { margin: 4px 0 0; font-size: 18px; }
.request-who { margin: 0; color: var(--muted); font-size: 14px; }
.request-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.request-links, .request-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.request-links a { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 12px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.request-links a:hover { border-color: var(--accent); color: var(--accent); }
.request-card:has(input[data-quote-select]:checked) { border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); background: var(--header); color: #fff; font-size: 12px; font-weight: 600; }
.badge.public { border-color: var(--accent); color: var(--accent); }
.badge.reseller { border-color: #7d8cff; color: #c9d0ff; }
.badge.request { border-color: #d6b36a; color: #f3e2b8; }
.badge.sale { border-color: #6fbf8b; color: #d5f5e0; }
@media (max-width: 700px) {
  .split3, .extra-row { grid-template-columns: 1fr; }
  .request-when, .requests-tools-actions { margin-left: 0; }
}
@media print {
  header, aside, .no-print, .wa-fab, .page-hero { display: none !important; }
  body, .card, .metric { background: #fff; color: #111; }
  .metric strong, td, th { color: #111; }
}
