:root {
  --bg: #0b1120;
  --panel: #111b2f;
  --panel-soft: #182236;
  --text: #f7f7f7;
  --muted: #aab5c8;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.18);
  --line: rgba(255,255,255,0.08);
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --screen-bg: #000;
  --screen-border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(32, 55, 98, 0.45), transparent 40%),
    linear-gradient(180deg, #0a1020 0%, #09111d 100%);
  color: var(--text);
}
button { font: inherit; }

.page-shell {
  width: min(1400px, calc(100% - 40px));
  margin: 22px auto;
}
.page-shell-sim { width: min(1920px, calc(100% - 40px)); }

.dashboard-header,
.dashboard-note,
.sim-topbar,
.printer-frame,
.info-panel,
.sim-right {
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.96), rgba(12, 20, 35, 0.96));
  border: 0px solid var(--line);
  box-shadow: var(--shadow);
}

.sim-topbar {
  background: linear-gradient(180deg, #5d6367, #5d6367);
}

.dashboard-header,
.dashboard-note,
.sim-topbar {
  border-radius: 24px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #dbe4f5;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.lead {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.printer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
  margin-top: 24px;
}

.printer-card {
  background: #ececec;
  color: #0a0a0a;
  border: 3px solid transparent;
  border-radius: 26px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.printer-card:hover,
.printer-card.is-active {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.printer-image-wrap {
  aspect-ratio: 1 / 1;
  background: #e6e6e6;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.printer-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.printer-card-footer {
  padding: 18px 18px 22px;
  text-align: center;
}

.printer-card-footer h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.printer-card-footer p {
  margin: 8px 0 0;
  color: #505a6c;
  font-size: 15px;
}

.dashboard-note { margin-top: 24px; }
.dashboard-note h3 { margin: 0 0 10px; }
.dashboard-note p { margin: 0; color: var(--muted); }

.sim-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1050px;
  margin: 0 auto;
}

.mode-switch {
  display: inline-flex;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px;
}

.mode-chip,
.ghost-btn {
  border: 0;
  cursor: pointer;
}

.mode-chip {
  padding: 16px 32px;
  border-radius: 999px;
  background: transparent;
  color: #324867;
  font-weight: 700;
  font-size: 18px;
}

.mode-chip.is-active {
  background: linear-gradient(180deg, #ff8a2d, #ff6f14);
  color: #fff;
}

.top-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.ghost-btn {
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
}

.sim-layout {
  display: grid;
  grid-template-columns: auto 190px;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 22px;
}

.sim-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.printer-frame {
  border-radius: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: stretch;
  gap: 6px;
}

.printer-side-mark {
  border-radius: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 26px 10px;
}

.mk-label,
.brand-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.mk-label {
  color: #ff9f4a;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-label {
  color: #f1f2f6;
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
}

.display-wrap {
  display: flex;
  justify-content: center;
}

.display-screen {
  width: 640px;
  min-height: 500px;
  background: var(--screen-bg);
  border-radius: 18px;
  border: 1px solid var(--screen-border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.display-topline,
.display-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 15px;
  color: #fff8ec;
}

.display-topline { border-bottom: 1px solid rgba(255,255,255,0.08); }
.display-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #ff9d49;
}

.display-view {
  flex: 1;
  padding: 16px 18px 12px;
  overflow: hidden;
}

.home-grid {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 26px 18px 10px;
}

.home-tile {
  aspect-ratio: 1 / 1;
  border: 1px solid #585858;
  border-radius: 18px;
  background: #585858;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.home-tile.is-selected {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.tile-icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 2px;
}

.tile-label {
  font-size: 20px;
  margin-top: -12px;
  color: inherit;
}

.menu-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 2px 4px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
}

.menu-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #efefef;
  cursor: pointer;
}

.menu-items li.is-selected {
  background: #f0f0f0;
  color: #111;
  font-weight: 700;
}

.menu-caret {
  font-size: 13px;
  opacity: 0.9;
}

.menu-home-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.info-panel {
  border-radius: 24px;
  padding: 22px 24px;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.info-header h2 {
  margin: 0;
  font-size: 22px;
}

.info-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffccaa;
  font-weight: 700;
  font-size: 14px;
}

.info-panel p {
  margin: 0;
  color: #cfd8ea;
  line-height: 1.6;
}

.sim-right {
  border-radius: 28px;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 500px;
}

.usb-label {
  width: 100%;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.knob {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #505765 0, #2f3540 45%, #1c212a 70%, #10141a 100%);
  border: 2px solid #303744;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04), 0 12px 24px rgba(0,0,0,.32);
  position: relative;
}

.knob::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 24px;
  border-radius: 8px;
  background: #0d1015;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

@media (max-width: 1100px) {
  .sim-layout {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 6px;
  }
  .sim-right {
    width: 190px;
    min-height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .page-shell-sim {
    width: min(100%, calc(100% - 20px));
    margin: 10px auto;
  }

  .sim-topbar {
    padding: 18px;
    flex-wrap: wrap;
  }

  .printer-frame {
    grid-template-columns: 1fr;
  }

  .printer-side-mark {
    display: none;
  }

  .integrated-display {
    left: 22.7%;
    top: 16%;
    width: 51.5%;
  }

  .integrated-display .display-screen {
    width: 25%;
    height: 25%;
    min-height: 0;
    margin: auto;
  }

  .integrated-display .display-view {
    padding: 8px 8px 2px;
  }

  .home-grid {
    gap: 6px;
    padding: 6px 4px 0;
  }

  .home-tile {
    border-radius: 12px;
  }

  .tile-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
    margin-bottom: 0;
  }

  .menu-home-icon {
    width: 40px;
    height: 40px;
  }

  .tile-label {
    font-size: 10px;
    margin-top: -2px;
  }

  .display-topline,
  .display-footer {
    font-size: 10px;
    padding: 4px 6px;
  }
}

.integrated-display {
  position: absolute;
  left: 26.5%;
  top: 17.2%;
  width: 51.5%;
  aspect-ratio: 2 / 1;
  z-index: 2;
  overflow: hidden;
}
