/* Proxmox Desk product page */
.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 18ch; }
.hero h1 .amber { display: block; }
.rack.front { margin-top: clamp(32px, 5vw, 56px); padding: 12px 0; }
.faceplate { gap: clamp(14px, 2.4vw, 32px); }
.faceplate .plate { gap: 8px; }
.faceplate .leds { margin-top: 4px; }
.faceplate .leds .silk { font-size: 0.6rem; }
.faceplate .lcd { flex: 0 1 25ch; font-size: clamp(0.8rem, 1.35vw, 1.05rem); padding: 12px 16px; }
.faceplate .vents { flex: 1 1 40px; margin: 18px 0; }
.key-wrap { display: grid; justify-items: center; gap: 10px; flex: none; }
.spec-link { text-decoration: none; }
.spec-link:hover { color: var(--amber); }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: #23272d; border: 1px solid #23272d; border-radius: 6px; overflow: hidden; }
.facts li { background: #121417; padding: 14px 18px; display: grid; }
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 980px) {
  .faceplate { flex-wrap: wrap; padding-block: 22px; }
  .faceplate .vents, .faceplate .handle { display: none; }
  .faceplate .plate { flex: 1 1 200px; }
  .faceplate .lcd { flex: 1 1 260px; }
  .key-wrap { flex: 1 1 100%; justify-items: start; }
}
@media (max-width: 700px) { .rail ol { display: none; } }

/* ---------- slide-out demo ---------- */
.demo-sec { background: linear-gradient(180deg, transparent, rgba(255, 180, 58, 0.03) 30%, transparent); }
.slideout { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 0; margin-top: 36px; }
.srail {
  background: repeating-linear-gradient(180deg, #2a2e35 0 2px, #1f2227 2px 26px), #1f2227;
  border: 1px solid #343941;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin-block: 28px;
}
.srail .silk { writing-mode: vertical-rl; font-size: 0.6rem; color: var(--dim); }
.tray {
  background: #101215;
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: clamp(8px, 1.4vw, 14px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #000;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.6s;
}
.slideout.out .tray { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tray { transform: none; opacity: 1; transition: none; } }

.app { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 440px; background: #141b23; border-radius: 3px; overflow: hidden; font-size: 0.92rem; color: #d7e0ea; }
.app-nav { background: #0f151c; border-right: 1px solid #1f2a35; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 2px 8px 14px; color: #e6edf4; }
.app-brand svg { color: var(--amber); }
.app-nav button[role=tab] { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 4px; color: #9fb0c1; }
.app-nav button[role=tab]:hover { background: #172230; color: #e6edf4; }
.app-nav button[role=tab][aria-selected=true] { background: #1d2c3d; color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.app-nav button[role=tab]:focus-visible { outline: 2px solid var(--amber); }
.app-conn { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #8597a8; padding: 8px; }
.app-conn .led { width: 7px; height: 7px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-view { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.app-view[hidden] { display: none; }
.app-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-bar strong { font-size: 1.05rem; }
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid #1f2a35; border-radius: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #1c2631; white-space: nowrap; }
.tbl th { color: #8597a8; font-weight: 500; background: #111820; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .acts { text-align: right; }
.tbl .empty { color: #8597a8; text-align: center; padding: 26px; white-space: normal; }
.tbl code { font-size: 0.82rem; color: #b9c7d4; }
.tbl tr.new td { animation: rowin 0.5s ease-out; }
@keyframes rowin { from { background: rgba(255, 180, 58, 0.16); } }
.state { display: inline-flex; align-items: center; gap: 6px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #56636f; }
.state.running::before { background: var(--green); box-shadow: 0 0 6px var(--green); }
.state.busy::before { background: var(--amber); animation: blink 0.6s steps(1) infinite; }
.bar { display: inline-block; width: 46px; height: 5px; background: #1f2a35; border-radius: 3px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber); border-radius: 3px; transition: width 0.8s; }
.mini { all: unset; cursor: pointer; font-size: 0.78rem; padding: 4px 9px; border-radius: 4px; border: 1px solid #2b3a4a; color: #cbd6e1; margin-left: 4px; }
.mini:hover { background: #1d2c3d; }
.mini.go { border-color: #3c6b4c; color: #b9f3cb; }
.mini.stop { border-color: #6b3c3c; color: #f6c2bd; }
.mini:focus-visible { outline: 2px solid var(--amber); }
.mini[disabled] { opacity: 0.4; cursor: default; }
.keyish { background: var(--amber); color: #1d1404; border-color: #8a5600; }
.keyish:hover { background: #ffc461; color: #1d1404; }
.keyish[disabled] { opacity: 0.6; cursor: default; }
.scanbar { height: 3px; background: #1f2a35; border-radius: 2px; overflow: hidden; }
.scanbar span { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.term { flex: 1; background: #0b1016; border: 1px solid #1f2a35; border-radius: 4px; padding: 12px 14px; font: 0.86rem/1.5 var(--mono); color: #d7e3ee; display: flex; flex-direction: column; min-height: 300px; max-height: 360px; overflow-y: auto; cursor: text; }
.term-out { white-space: pre-wrap; word-break: break-word; }
.term-out .dim { color: #7c8a98; }
.term-out .ok { color: var(--green); }
.term-out .warn { color: var(--amber); }
.term-line { display: flex; gap: 8px; }
.term-line label { color: var(--green); white-space: nowrap; }
.term-line input { all: unset; flex: 1; min-width: 0; caret-color: var(--amber); }

@media (max-width: 760px) {
  .slideout { grid-template-columns: minmax(0, 1fr); }
  .srail { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-nav { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid #1f2a35; padding: 8px; }
  .app-brand { padding: 2px 8px; width: 100%; }
  .app-conn { display: none; }
}

/* ---------- rear panel ---------- */
.rear {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px;
  background: repeating-linear-gradient(90deg, #0d0e10 0 3px, #141619 3px 8px);
  border: 6px solid #1a1c20;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #33373e, 0 30px 60px rgba(0, 0, 0, 0.45);
}
.port-card { box-shadow: 0 0 0 1px #2a2e34; background: linear-gradient(180deg, #17191c, #141619); padding: 22px 22px 24px; }
.port-card h3 { margin: 14px 0 6px; font: 700 1.3rem/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.port-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.port-row { display: flex; align-items: center; justify-content: space-between; }
.port { display: block; position: relative; background: var(--hole); border: 2px solid #474c55; box-shadow: inset 0 3px 6px #000; }
.port.rj { width: 46px; height: 38px; border-radius: 2px; clip-path: polygon(0 0, 100% 0, 100% 78%, 72% 78%, 72% 100%, 28% 100%, 28% 78%, 0 78%); }
.port.rj i { position: absolute; top: 3px; width: 7px; height: 4px; background: var(--green); box-shadow: 0 0 5px var(--green); }
.port.rj i:first-child { left: 3px; }
.port.rj i:last-child { right: 3px; background: var(--amber); box-shadow: 0 0 5px var(--amber); animation: blink var(--d, 0.9s) steps(1) infinite; }
.port-card:nth-child(4) .port.rj i:last-child { --d: 1.3s; }
.port-card:nth-child(5) .port.rj i:last-child { --d: 0.5s; }
.port-card:nth-child(6) .port.rj i:last-child { --d: 2.1s; }
.port.usb { width: 44px; height: 18px; border-radius: 3px; }
.port.usb::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 5px; background: #3d434b; }
.port.hdmi { width: 50px; height: 20px; clip-path: polygon(0 0, 100% 0, 100% 55%, 86% 100%, 14% 100%, 0 55%); }
.port.pwr { width: 34px; height: 34px; border-radius: 50%; }
.port.pwr::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #3d434b; }
@media (prefers-reduced-motion: reduce) { .port.rj i:last-child { animation: none; } }

/* ---------- quick start ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; max-width: 860px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; background: #f1ece0; color: #1d1f22; border-radius: 4px; padding: 22px 24px; box-shadow: 0 2px 0 #b7ad97, 0 18px 40px rgba(0, 0, 0, 0.35); }
.steps li:nth-child(2) { transform: rotate(-0.4deg); }
.steps li:nth-child(3) { transform: rotate(0.3deg); }
.steps .num { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #1d1f22; display: grid; place-items: center; font: 700 1.6rem/1 var(--label); }
.steps h3 { font: 700 1.35rem/1.1 var(--label); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 6px; }
.steps p { margin: 0; color: #3a3d42; }
.steps code { background: #e2dccd; padding: 1px 5px; border-radius: 3px; font-size: 0.88em; }
.steps .code { background: #1d1f22; color: #f1ece0; margin-top: 12px; }
.steps .code code { background: none; padding: 0; color: inherit; }
@media (max-width: 560px) { .steps li { grid-template-columns: minmax(0, 1fr); } }

.code { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #0b0d10; border: 1px solid #2a2e35; border-radius: 4px; padding: 10px 10px 10px 14px; margin: 12px 0 0; }
.code code { font-size: 0.88rem; overflow-x: auto; white-space: nowrap; }
.code .btn.sm { flex: none; }

/* ---------- spec sheet ---------- */
.spec { background: #121417; border: 1px solid #262a30; border-radius: 6px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px dashed #333840; }
.spec-head h2 { margin: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 32px; margin: 26px 0; }
.spec-grid div { min-width: 0; }
.spec-grid .wide { grid-column: 1 / -1; }
.spec-grid dt { margin-bottom: 4px; }
.spec-grid dd { margin: 0; font-weight: 500; }
.hash { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hash code { font-size: 0.86rem; color: var(--amber); word-break: break-all; }
.notice { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; background: rgba(255, 180, 58, 0.06); border: 1px solid rgba(255, 180, 58, 0.25); border-radius: 6px; padding: 18px 20px; margin-bottom: 20px; }
.notice .led { margin-top: 8px; }
.notice p { margin: 6px 0 0; color: #cfcbc2; }
