/* Smart Door manuals · premium shared presentation layer · v3 */
body[data-manual-theme="premium-v3"] {
  --sd-bg: #0a0c11;
  --sd-panel: #151a24;
  --sd-panel-2: #1b2130;
  --sd-blue: #1838c6;
  --sd-sky: #4fa3e3;
  --sd-gold: #ffcc33;
  --sd-text: #eef2f9;
  --sd-muted: #9aa6bf;
  --sd-line: rgba(255,255,255,.09);
  --sd-line-strong: rgba(255,255,255,.16);
  --sd-shadow: 0 26px 70px rgba(0,0,0,.34);
  --sd-glow-x: 50%;
  --sd-glow-y: 30%;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(900px 520px at 82% -10%,rgba(24,56,198,.22),transparent 64%),
    radial-gradient(620px 430px at -5% 22%,rgba(79,163,227,.075),transparent 67%),
    var(--sd-bg);
  background-size: 42px 42px,42px 42px,auto,auto,auto;
  background-attachment: fixed;
  color: var(--sd-text);
}

body[data-manual-theme="premium-v3"]::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:linear-gradient(180deg,rgba(10,12,17,0) 0%,rgba(10,12,17,.48) 42%,#0a0c11 86%);
}

body[data-manual-theme="premium-v3"] header {
  border-bottom-color:rgba(255,255,255,.1);
  background:rgba(10,12,17,.78);
  box-shadow:0 12px 34px rgba(0,0,0,.16);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  backdrop-filter:blur(22px) saturate(150%);
}

body[data-manual-theme="premium-v3"] header .logo,
body[data-manual-theme="premium-v3"] header .brand-mark {
  box-shadow:0 9px 24px rgba(0,0,0,.2);
}

body[data-manual-theme="premium-v3"] .header-product {
  margin-left:2px;
  padding-left:14px;
  border-left:1px solid var(--sd-line-strong);
  color:#dfe7f8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap;
}

body[data-manual-theme="premium-v3"] nav {
  scrollbar-width:thin;
  scrollbar-color:rgba(143,178,255,.28) transparent;
}

body[data-manual-theme="premium-v3"] nav a {
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}

body[data-manual-theme="premium-v3"] nav a.active {
  box-shadow:inset 0 0 0 1px rgba(143,178,255,.08);
}

body[data-manual-theme="premium-v3"] .toc-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

body[data-manual-theme="premium-v3"] .toc-head .toc-title { margin:0; }
body[data-manual-theme="premium-v3"] .toc-count {
  min-width:27px;
  padding:3px 8px;
  border:1px solid var(--sd-line);
  border-radius:999px;
  color:var(--sd-muted);
  background:rgba(255,255,255,.035);
  font-size:10px;
  font-weight:850;
  text-align:center;
}

body[data-manual-theme="premium-v3"] .hero {
  isolation:isolate;
  position:relative;
  border-color:rgba(143,178,255,.24);
  box-shadow:var(--sd-shadow),inset 0 1px 0 rgba(255,255,255,.09);
}

body[data-manual-theme="premium-v3"] .hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(440px 270px at var(--sd-glow-x) var(--sd-glow-y),rgba(255,255,255,.105),transparent 68%),
    linear-gradient(115deg,rgba(255,255,255,.055),transparent 34%);
}

body[data-manual-theme="premium-v3"] .hero h1 {
  letter-spacing:-.035em;
  text-wrap:balance;
}

body[data-manual-theme="premium-v3"] .hero p { text-wrap:pretty; }

body[data-manual-theme="premium-v3"] .hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

body[data-manual-theme="premium-v3"] .hero-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:10px 15px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;
  color:#fff;
  background:rgba(8,12,25,.24);
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}

body[data-manual-theme="premium-v3"] .hero-button.primary {
  border-color:rgba(255,204,51,.48);
  color:#111521;
  background:var(--sd-gold);
}

body[data-manual-theme="premium-v3"] .hero-visual { position:relative; }
body[data-manual-theme="premium-v3"] .visual-kicker {
  display:inline-flex;
  position:absolute;
  z-index:2;
  top:12px;
  left:12px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#edf3ff;
  background:rgba(8,10,16,.68);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
}

body[data-manual-theme="premium-v3"] section[id] { scroll-margin-top:88px; }
body[data-manual-theme="premium-v3"] section[id] > h2 { text-wrap:balance; }

body[data-manual-theme="premium-v3"] :is(.card,.method,.spec,.menu-branch,.kit-card,.node,.check,.profile-badge) {
  position:relative;
  overflow:hidden;
  border-color:var(--sd-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 15px 42px rgba(0,0,0,.1);
}

body[data-manual-theme="premium-v3"] :is(.card,.method,.spec,.menu-branch,.kit-card,.node,.check,.profile-badge)::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.46;
  background:radial-gradient(320px circle at var(--sd-glow-x) var(--sd-glow-y),rgba(79,163,227,.12),transparent 66%);
}

body[data-manual-theme="premium-v3"] :is(.box,.notice,.callout) {
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

body[data-manual-theme="premium-v3"] figure {
  border-color:var(--sd-line);
  box-shadow:0 18px 50px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.05);
}

body[data-manual-theme="premium-v3"] figure img {
  transition:transform .45s cubic-bezier(.22,.61,.36,1),filter .3s ease;
}

body[data-manual-theme="premium-v3"] table {
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  box-shadow:0 14px 38px rgba(0,0,0,.12);
}

body[data-manual-theme="premium-v3"] thead th {
  background:rgba(46,82,232,.11);
}

body[data-manual-theme="premium-v3"] tbody tr:nth-child(even) td {
  background:rgba(255,255,255,.016);
}

body[data-manual-theme="premium-v3"] footer {
  border-top-color:var(--sd-line);
  background:linear-gradient(180deg,rgba(10,12,17,.2),rgba(10,12,17,.9));
}

body[data-manual-theme="premium-v3"] a:focus-visible,
body[data-manual-theme="premium-v3"] button:focus-visible,
body[data-manual-theme="premium-v3"] input:focus-visible {
  outline:2px solid var(--sd-gold);
  outline-offset:3px;
}

@media (hover:hover) and (pointer:fine) {
  body[data-manual-theme="premium-v3"] nav a:hover { transform:translateX(2px); }
  body[data-manual-theme="premium-v3"] .hero-button:hover { transform:translateY(-2px);border-color:rgba(255,255,255,.38); }
  body[data-manual-theme="premium-v3"] figure:hover img { transform:scale(1.012);filter:saturate(1.04); }
}

@media (max-width:760px) {
  body[data-manual-theme="premium-v3"] { background-size:30px 30px,30px 30px,auto,auto,auto; }
  body[data-manual-theme="premium-v3"] .header-product { display:none; }
  body[data-manual-theme="premium-v3"] .hero-actions { display:grid;grid-template-columns:1fr 1fr; }
  body[data-manual-theme="premium-v3"] .hero-button { padding-inline:10px; }
}

@media (max-width:430px) {
  body[data-manual-theme="premium-v3"] .hero-actions { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce) {
  body[data-manual-theme="premium-v3"] *,
  body[data-manual-theme="premium-v3"] *::before,
  body[data-manual-theme="premium-v3"] *::after {
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
  }
}

@media print {
  body[data-manual-theme="premium-v3"] { background:#fff!important;color:#111!important; }
  body[data-manual-theme="premium-v3"]::before,
  body[data-manual-theme="premium-v3"] .hero-actions,
  body[data-manual-theme="premium-v3"] .visual-kicker { display:none!important; }
}
