:root {
  --bg: #eef5fb;
  --panel: #f8fbff;
  --card: #ffffff;
  --ink: #172033;
  --muted: #728098;
  --line: #dce7f3;
  --blue: #1578ff;
  --blue-2: #72b7ff;
  --mint: #28c78a;
  --orange: #ff9b45;
  --red: #ff6b6b;
  --shadow: 0 18px 48px rgba(47, 88, 134, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(76, 161, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #e8f3fa 48%, #f7faf7 100%);
  color: var(--ink);
  letter-spacing: 0;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.studio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(260px, 380px);
  gap: 42px;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.phone {
  position: relative;
  width: min(390px, 94vw);
  height: 820px;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 36px;
  background: var(--bg);
  box-shadow: 0 28px 80px rgba(19, 38, 68, 0.28);
}

.app-screen {
  display: none;
  height: calc(100% - 70px);
  overflow-y: auto;
  padding: 18px 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 120, 255, 0.25) transparent;
}

.app-screen.active {
  display: block;
}

.topbar,
.section-heading,
.diagnosis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #7c8ca3;
  font-size: 11px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
}

p,
span {
  font-size: 12px;
}

.icon-button,
.search-button,
.gear-button {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(53, 95, 140, 0.12);
  position: relative;
}

.icon-button span,
.search-button::before,
.gear-button::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.icon-button span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--blue);
  transform: rotate(45deg);
  right: 10px;
  bottom: 11px;
  border-radius: 2px;
}

.gear-button::before {
  border-radius: 8px;
}

.hero-card,
.setup-card,
.exploded-card,
.kb-lab-card,
.profile-card,
.health-card,
.overview-card,
.record-card,
.settings-list,
.diagnosis-card,
.section-block,
.guide-sheet {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 18px;
  min-height: 236px;
  padding: 20px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 242, 255, 0.92)),
    linear-gradient(135deg, #dff0ff, #ffffff);
}

.hero-copy {
  justify-self: start;
}

.hero-copy p {
  margin-top: 6px;
  color: var(--muted);
}

.power-button {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #8bd3ff, #116dff 62%, #0455cf 100%);
  box-shadow:
    0 22px 42px rgba(0, 112, 255, 0.34),
    0 0 0 14px rgba(88, 178, 255, 0.14),
    inset 0 10px 24px rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
}

.remote-assist-button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #17243a, #1578ff);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(21, 120, 255, 0.22);
}

.notification-button {
  position: relative;
}

.notification-button span {
  inset: auto;
  left: 10px;
  top: 9px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 10px 10px 7px 7px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.notification-button span::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -3px;
  height: 5px;
  border-bottom: 2px solid var(--blue);
  border-radius: 50%;
}

.notification-button span::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -5px;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.notification-button b {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  display: none;
  border-radius: 999px;
  background: #ef4458;
  border: 2px solid #fff;
  box-sizing: content-box;
}

.notification-button.has-unread b {
  display: block;
}

.power-symbol {
  width: 40px;
  height: 40px;
  border: 5px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}

.power-symbol::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 24px;
  background: #fff;
  border-radius: 5px;
  left: 12px;
  top: -14px;
}

.section-block {
  margin-top: 14px;
  padding: 14px;
}

.section-heading span {
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mode-card {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcff;
  text-align: left;
  transition: 0.2s ease;
}

.mode-card span {
  color: var(--muted);
}

.mode-card strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.mode-card.active {
  color: #fff;
  background: linear-gradient(135deg, #147aff, #54b8ff);
  border-color: transparent;
}

.mode-card.active span {
  color: rgba(255, 255, 255, 0.78);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.issue-grid button {
  min-height: 70px;
  padding: 10px 6px;
  border-radius: 8px;
  color: #314059;
  background: #f7fbff;
  border: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 6px;
  transition: 0.18s ease;
}

.issue-grid button.active,
.issue-grid button:focus-visible {
  color: var(--blue);
  border-color: rgba(21, 120, 255, 0.36);
  background: #edf7ff;
  box-shadow: inset 0 0 0 1px rgba(21, 120, 255, 0.14);
}

.issue-icon,
.nav-icon,
.action-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
  border-radius: 7px;
  background: #e7f2ff;
}

.issue-icon.power::before,
.nav-icon.repair::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--blue);
  border-top-color: transparent;
  border-radius: 50%;
}

.issue-icon.alert {
  background: #fff2df;
}

.issue-icon.alert::before {
  content: "!";
  position: absolute;
  inset: 0;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.issue-icon.speed::before,
.issue-icon.wifi::before,
.issue-icon.sound::before,
.issue-icon.usb::before,
.nav-icon.kb::before,
.nav-icon.mine::before,
.action-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  background: var(--blue);
}

.diagnosis-card {
  display: none;
  margin-top: 14px;
  padding: 16px;
}

.diagnosis-card.visible {
  display: block;
}

.diagnosis-card.tree-flow #diagnosisTitle,
.diagnosis-card.tree-flow #stepCount {
  display: none;
}

.diagnosis-card.tree-flow .diagnosis-top {
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #e5f2ff;
  font-weight: 800;
}

.pill.green {
  color: #12845d;
  background: #def8ed;
}

.progress-track {
  height: 7px;
  margin: 14px 0;
  overflow: hidden;
  background: #e5edf6;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transition: width 0.2s ease;
}

.diagnosis-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.tip-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1f5d45;
  background: #e6f8ef;
  border: 1px solid rgba(40, 199, 138, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.diagnosis-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.diagnosis-options:empty {
  display: none;
}

.diagnosis-option {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 11px 34px 11px 12px;
  border: 1px solid #d8e5f3;
  border-radius: 8px;
  color: #263750;
  background: #fff;
  text-align: left;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 700;
}

.diagnosis-option::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #7b8ca3;
  border-right: 2px solid #7b8ca3;
  transform: translateY(-50%) rotate(45deg);
}

.diagnosis-option:hover,
.diagnosis-option:focus-visible {
  border-color: rgba(21, 120, 255, 0.48);
  background: #f2f8ff;
}

.diagnosis-input {
  margin-top: 12px;
}

.diagnosis-input.hidden {
  display: none;
}

.answer-row .hidden {
  display: none;
}

.diagnosis-input textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #d8e5f3;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.diagnosis-input textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 120, 255, 0.1);
}

.diagnosis-command-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.diagnosis-command {
  padding: 10px;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: #f7faff;
}

.diagnosis-command strong,
.diagnosis-command span {
  display: block;
}

.diagnosis-command span {
  margin-top: 4px;
  color: #61728a;
  font-size: 12px;
}

.diagnosis-command code {
  display: block;
  margin-top: 7px;
  padding: 8px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  color: #dfeaff;
  background: #172033;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.diagnosis-result {
  margin-top: 10px;
  padding: 12px;
  border-left: 3px solid var(--blue);
  border-radius: 4px 8px 8px 4px;
  background: #edf6ff;
}

.diagnosis-result strong {
  display: block;
  margin-bottom: 5px;
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 14px;
}

.ghost,
.primary {
  height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.ghost {
  color: var(--blue);
  background: #eaf4ff;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, #1174ff, #43b5ff);
}

.tabs {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tabs button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  color: #5c6b82;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tabs button.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.kb-lab-card {
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
}
/* Host exploded view — seamless dark background */
.exploded-host-stage ~ .part-detail,
.exploded-host-stage ~ .topic-grid,
.exploded-host-stage {
  border-radius: 10px;
}
/* Remove card chrome when host exploded view is active */
.model-stage.exploded-host-stage {
  border: none;
  border-radius: 10px;
}

.setup-card {
  height: 178px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f6fbff, #e6f2ff);
}

.monitor-illustration {
  position: absolute;
  left: 25px;
  top: 34px;
  width: 118px;
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d84ff, #082f67);
  box-shadow: 0 16px 24px rgba(28, 85, 142, 0.22);
}

.screen-glow {
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.45), transparent);
}

.screen-stand {
  position: absolute;
  width: 42px;
  height: 36px;
  left: 38px;
  bottom: -35px;
  border-bottom: 8px solid #546579;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
}

.tower-illustration {
  position: absolute;
  right: 42px;
  top: 28px;
  width: 92px;
  height: 124px;
  border-radius: 8px;
  background: linear-gradient(145deg, #172033, #303b4e);
  box-shadow: -14px 18px 28px rgba(29, 55, 84, 0.22);
}

.tower-illustration span {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 11px;
  border-radius: 5px;
  background: #6dd0ff;
}

.tower-illustration span:nth-child(1) { top: 18px; }
.tower-illustration span:nth-child(2) { top: 42px; background: #39d89a; }
.tower-illustration span:nth-child(3) { bottom: 20px; background: #f8a957; }

.keyboard-illustration {
  position: absolute;
  left: 68px;
  bottom: 22px;
  width: 92px;
  height: 20px;
  border-radius: 6px;
  background: #d7e3ef;
  transform: skewX(-18deg);
}

.mouse-illustration {
  position: absolute;
  right: 154px;
  bottom: 22px;
  width: 32px;
  height: 42px;
  border-radius: 18px;
  background: #e7eef6;
  box-shadow: inset 0 8px 0 #c8d7e6;
}

.exploded-card {
  margin-top: 14px;
  padding: 14px;
}

.hardware-stage {
  height: 236px;
  position: relative;
  margin-top: 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(235, 244, 255, 0.7), rgba(255,255,255,0.85));
  overflow: hidden;
}

.model-stage {
  height: 282px;
  display: grid;
  place-items: center;
  perspective: 900px;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(rgba(71, 118, 168, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 118, 168, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(21, 120, 255, 0.13), transparent 44%),
    linear-gradient(180deg, #f6fbff, #eaf3ff);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.model-stage.exploded-host-stage {
  height: 392px;
  display: block;
  padding: 10px;
  background:
    radial-gradient(circle at 70% 26%, rgba(22, 122, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #101823 0%, #172130 54%, #0b111a 100%);
  border: 1px solid rgba(67, 132, 220, 0.18);
}

.host-exploded-layout {
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.exploded-list {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.exploded-part-item {
  min-height: 38px;
  padding: 5px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 5px;
  text-align: left;
  color: #c9d8ec;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(150, 188, 245, 0.12);
}

.exploded-part-item b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #1578ff, #55bfff);
  font-size: 11px;
}

.exploded-part-item span {
  font-size: 11px;
  font-weight: 800;
}

.exploded-part-item.active {
  color: #fff;
  border-color: rgba(80, 171, 255, 0.56);
  background: rgba(21, 120, 255, 0.22);
}

.exploded-image-wrap {
  position: relative;
  width: min(100%, 344px);
  height: auto;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  transform-origin: 50% 58%;
  transition: transform 0.24s ease;
}

.exploded-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(53, 128, 234, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 128, 234, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.exploded-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}

.exploded-image-wrap.cover-mode {
  display: grid;
  place-items: center;
  background: transparent;
  width: min(100%, 100%);
  aspect-ratio: auto;
  max-height: none;
  height: 340px;
  border-radius: 0;
  overflow: visible;
}

.glb-model-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(21, 120, 255, 0.14), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.glb-viewer {
  width: 100%;
  height: 100%;
  min-height: 230px;
  background: transparent;
  outline: none;
}

.model-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #5c6b82;
  font-size: 13px;
  font-weight: 900;
}

.exploded-image-wrap.cover-mode::before {
  display: none;
}
.exploded-image-wrap.cover-mode .host-cover-button {
  background: transparent;
}
.exploded-image-wrap.cover-mode .host-cover-button img {
  background: transparent;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.host-cover-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.host-cover-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
  filter: none;
}

.host-cover-button span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  padding: 8px 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(21, 120, 255, 0.9);
  box-shadow: 0 12px 28px rgba(21, 120, 255, 0.24);
}

.exploded-hotspot {
  left: var(--hx);
  top: var(--hy);
  min-width: auto;
  width: auto;
  height: 26px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.exploded-hotspot::after {
  display: none;
}

.exploded-hotspot.active {
  background: linear-gradient(135deg, #20c98d, #1578ff);
  box-shadow: 0 0 0 5px rgba(32, 201, 141, 0.22), 0 0 22px rgba(72, 184, 255, 0.42);
}

.device-model {
  position: relative;
  width: 230px;
  height: 186px;
  transform: rotateX(58deg) rotateZ(-34deg);
  transform-style: preserve-3d;
  transition: transform 0.24s ease, width 0.24s ease, height 0.24s ease;
}

.true-3d-model {
  width: 250px;
  height: 196px;
  transform-origin: center center;
}

.part-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  background: transparent;
  transform-style: preserve-3d;
  transform: translateZ(var(--z));
  overflow: visible;
}

.part-node .face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(145deg, #263446, #111827);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.part-node .front {
  transform: translateZ(calc(var(--d) / 2));
}

.part-node .back {
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
  filter: brightness(0.72);
}

.part-node .right {
  width: var(--d);
  left: calc(var(--w) - (var(--d) / 2));
  transform: rotateY(90deg) translateZ(calc(var(--d) / 2));
  filter: brightness(0.82);
}

.part-node .left {
  width: var(--d);
  left: calc(0px - (var(--d) / 2));
  transform: rotateY(90deg) translateZ(calc(var(--d) / 2));
  filter: brightness(0.66);
}

.part-node .top {
  height: var(--d);
  top: calc(0px - (var(--d) / 2));
  transform: rotateX(90deg) translateZ(calc(var(--d) / 2));
  filter: brightness(1.18);
}

.part-node .bottom {
  height: var(--d);
  top: calc(var(--h) - (var(--d) / 2));
  transform: rotateX(90deg) translateZ(calc(var(--d) / 2));
  filter: brightness(0.58);
}

.part-node b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) translateZ(calc(var(--d) + 12px)) rotateZ(34deg) rotateX(-58deg);
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1578ff, #43c2ff);
  box-shadow: 0 0 0 4px rgba(21, 120, 255, 0.12), 0 10px 22px rgba(22, 108, 220, 0.2);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.part-node.active b {
  background: linear-gradient(135deg, #20c98d, #1578ff);
}

.part-node.active .face {
  border-color: rgba(75, 215, 164, 0.86);
  box-shadow: inset 0 0 18px rgba(92, 231, 179, 0.14), 0 0 18px rgba(32, 201, 141, 0.18);
}

.part-node[data-part="motherboard"] .face { background: linear-gradient(145deg, #243246, #101827); }
.part-node[data-part="cpu"] .face { background: linear-gradient(145deg, #d9e2ed, #75869b); }
.part-node[data-part="memory"] .face { background: linear-gradient(145deg, #38cf91, #127a61); }
.part-node[data-part="gpu"] .face { background: linear-gradient(145deg, #56687f, #182437); }
.part-node[data-part="storage"] .face { background: linear-gradient(145deg, #58c6ff, #176aa0); }
.part-node[data-part="power"] .face { background: linear-gradient(145deg, #e7eef6, #8798aa); }
.part-node[data-part="cooling"] .face { border-radius: 50%; background: radial-gradient(circle, #71d9ff 0 18%, #243449 19% 44%, #0d1421 45%); }
.part-node[data-part="case"] .face { background: rgba(78, 94, 116, 0.28); border-style: dashed; }

.part-node[data-part="case"] { z-index: 1; }
.part-node[data-part="motherboard"] { z-index: 2; }
.part-node[data-part="storage"] { z-index: 3; }
.part-node[data-part="gpu"] { z-index: 4; }
.part-node[data-part="cooling"] { z-index: 5; }
.part-node[data-part="power"] { z-index: 6; }
.part-node[data-part="cpu"] { z-index: 7; }
.part-node[data-part="memory"] { z-index: 8; }

.model-stage.rotated .device-model {
  transform: rotateX(58deg) rotateZ(-18deg) scale(1.05);
}

.model-stage.zoomed .device-model {
  transform: rotateX(54deg) rotateZ(-32deg) scale(1.18);
}

.model-stage.explode-view .model-layer {
  transform: translateZ(26px);
}

.model-stage.params-view .hotspot {
  box-shadow: 0 0 0 5px rgba(21, 120, 255, 0.13), 0 10px 22px rgba(22, 108, 220, 0.24);
}

.model-stage.faults-view .hotspot {
  background: linear-gradient(135deg, #ff6b6b, #ff9b45);
}

.model-layer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #263446, #101827);
  box-shadow: 0 28px 34px rgba(26, 54, 88, 0.24);
  transform-style: preserve-3d;
  transition: transform 0.22s ease;
}

.model-layer::before,
.model-layer::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.host-model {
  width: 246px;
  height: 188px;
}

.host-model .model-layer {
  background: linear-gradient(145deg, #273548, #101827);
}

.host-model .layer-a::before {
  left: 24px;
  top: 28px;
  width: 66px;
  height: 74px;
  background: linear-gradient(135deg, #323f53, #111827);
  box-shadow: inset 0 0 0 8px #d4dee9;
}

.host-model .layer-a::after {
  right: 24px;
  top: 28px;
  width: 30px;
  height: 124px;
  background: repeating-linear-gradient(90deg, #6bd8ff 0 5px, #243249 5px 9px);
}

.host-model .layer-b {
  inset: 54px 54px 58px 92px;
  background: linear-gradient(135deg, #2f4058, #182438);
  transform: translateZ(10px);
}

.host-model .layer-b::before {
  left: 12px;
  top: 12px;
  width: 94px;
  height: 18px;
  background: #59d59d;
}

.host-model .layer-b::after {
  left: 10px;
  bottom: 12px;
  width: 116px;
  height: 18px;
  background: #ffb15d;
}

.host-model .layer-c {
  inset: auto 18px 18px 18px;
  height: 20px;
  background: linear-gradient(90deg, #66778d, #d0d8e2);
  transform: translateZ(18px);
}

.layer-a::before {
  left: 26px;
  top: 24px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #cfd9e6, #8798ad);
  box-shadow: inset 0 0 0 8px #172236;
}

.layer-a::after {
  right: 24px;
  top: 22px;
  width: 28px;
  height: 118px;
  background: repeating-linear-gradient(90deg, #6bd8ff 0 5px, #243249 5px 9px);
}

.layer-b {
  inset: 30px 34px 28px 86px;
  background: linear-gradient(135deg, #33445b, #1b273a);
  transform: translateZ(8px);
}

.layer-b::before {
  left: 14px;
  top: 14px;
  width: 90px;
  height: 18px;
  background: #59d59d;
}

.layer-b::after {
  left: 12px;
  bottom: 18px;
  width: 98px;
  height: 18px;
  background: #ffb15d;
}

.layer-c {
  inset: auto 18px 18px 18px;
  height: 18px;
  background: linear-gradient(90deg, #5c6d82, #b3c1d1);
  transform: translateZ(16px);
}

.gpu-model {
  width: 246px;
  height: 126px;
}

.gpu-model .model-layer {
  background: linear-gradient(145deg, #222c3c, #0d1320);
}

.gpu-model .layer-a::before {
  left: 28px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #5fd2ff 0 18%, #253246 19% 44%, #0d1320 45%);
  box-shadow: 76px 0 0 #172236, 152px 0 0 #172236;
}

.gpu-model .layer-a::after {
  right: 16px;
  top: auto;
  bottom: 12px;
  width: 180px;
  height: 14px;
  background: linear-gradient(90deg, #f0a84e, #ff6060);
}

.monitor-model {
  width: 210px;
  height: 132px;
}

.monitor-model .model-layer {
  background: linear-gradient(135deg, #1c83ff, #0a244f);
  box-shadow: 0 28px 34px rgba(20, 96, 190, 0.22);
}

.monitor-model .layer-a::before {
  inset: 14px;
  width: auto;
  height: auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent);
}

.monitor-model .layer-b,
.monitor-model .layer-c {
  display: none;
}

.peripheral-model {
  width: 234px;
  height: 132px;
}

.peripheral-model .model-layer {
  background: linear-gradient(145deg, #eef4fb, #c8d6e5);
}

.peripheral-model .layer-a::before {
  left: 18px;
  top: 28px;
  width: 132px;
  height: 44px;
  background: repeating-linear-gradient(90deg, #fff 0 12px, #dce8f2 12px 15px);
}

.peripheral-model .layer-a::after {
  right: 28px;
  top: 28px;
  width: 44px;
  height: 68px;
  border-radius: 24px;
  background: #f9fbff;
  box-shadow: inset 0 18px 0 #d4e3f0;
}

.hotspot {
  position: absolute;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1578ff, #43c2ff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(21, 120, 255, 0.12), 0 10px 22px rgba(22, 108, 220, 0.18);
  font-size: 11px;
  font-weight: 900;
  transform: translateZ(52px) rotateZ(34deg) rotateX(-58deg);
  white-space: nowrap;
  z-index: 4;
}

.hotspot.active {
  background: linear-gradient(135deg, #20c98d, #1578ff);
}

.hotspot:nth-of-type(1) { left: 32px; top: 38px; }
.hotspot:nth-of-type(2) { right: 8px; top: 22px; }
.hotspot:nth-of-type(3) { left: 112px; top: 66px; }
.hotspot:nth-of-type(4) { left: 76px; bottom: 42px; }
.hotspot:nth-of-type(5) { left: 126px; bottom: 18px; }
.hotspot:nth-of-type(6) { right: 18px; bottom: 20px; }
.hotspot:nth-of-type(7) { left: 14px; top: 102px; }
.hotspot:nth-of-type(8) { left: 18px; bottom: 18px; }

.exploded-image-wrap .hotspot.exploded-hotspot {
  left: var(--hx);
  top: var(--hy);
  right: auto;
  bottom: auto;
  min-width: 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  font-size: 12px;
  line-height: 1;
}

.hardware-stage.category-view {
  height: auto;
  min-height: 212px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.part {
  position: absolute;
  border-radius: 8px;
  color: #27364f;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d7e5f1;
  box-shadow: 0 10px 22px rgba(45, 76, 112, 0.12);
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s ease;
}

.part.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #55bdff);
  transform: translateY(-2px);
}

.part.case { left: 18px; top: 26px; width: 86px; height: 176px; }
.part.board { left: 116px; top: 40px; width: 104px; height: 150px; }
.part.cpu { left: 148px; top: 76px; width: 42px; height: 42px; }
.part.ram { left: 228px; top: 58px; width: 26px; height: 116px; }
.part.gpu { left: 116px; top: 162px; width: 118px; height: 28px; }
.part.disk { right: 18px; top: 146px; width: 58px; height: 42px; }
.part.psu { right: 17px; top: 36px; width: 62px; height: 52px; }
.part.fan { right: 34px; top: 92px; width: 48px; height: 48px; border-radius: 50%; }

.category-view .part,
.category-view .part.case,
.category-view .part.board,
.category-view .part.cpu,
.category-view .part.ram,
.category-view .part.gpu,
.category-view .part.disk,
.category-view .part.psu,
.category-view .part.fan {
  position: static;
  width: auto;
  height: 54px;
  min-width: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.category-view .part.active {
  transform: none;
}

.part-detail {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid var(--line);
}

.part-detail.hidden {
  display: none;
}

.knowledge-part-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.knowledge-part-tabs.hidden {
  display: none;
}

.knowledge-part-tabs button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #5c6b82;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.knowledge-part-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #58bdff);
  box-shadow: 0 8px 18px rgba(21, 120, 255, 0.18);
}

.part-detail span {
  color: var(--blue);
  font-weight: 800;
}

.part-detail h3 {
  margin-top: 4px;
}

.part-detail p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.6;
}

.param-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 10px;
}

.param-grid span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #34445d;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.knowledge-deep {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.deep-section {
  padding-top: 10px;
  border-top: 1px solid rgba(96, 132, 176, 0.16);
}

.deep-section h4 {
  margin-bottom: 8px;
  color: #17243a;
  font-size: 14px;
}

.deep-table {
  display: grid;
  gap: 8px;
}

.deep-row {
  padding: 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.deep-row strong,
.deep-row span,
.deep-row p {
  display: block;
}

.deep-row strong {
  color: var(--blue);
  font-size: 12px;
}

.deep-row span {
  margin-top: 3px;
  color: #233650;
  font-weight: 900;
  line-height: 1.45;
}

.deep-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-card {
  margin-top: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-card {
  cursor: pointer;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1578ff, #31c78f);
  font-size: 22px;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.profile-card p,
.health-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.health-card {
  margin-top: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.health-card h2 {
  margin-top: 8px;
  font-size: 46px;
  color: var(--blue);
}

.health-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 52%, transparent 53%),
    conic-gradient(var(--mint) 0 82%, #e3edf6 82% 100%);
  display: grid;
  place-items: center;
}

.health-ring span {
  color: #12845d;
  font-size: 18px;
  font-weight: 900;
}

.overview-card {
  margin-top: 14px;
  padding: 16px;
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-head h2 {
  margin-top: 8px;
  color: var(--blue);
  font-size: 42px;
}

.overview-head p {
  margin-top: 2px;
  color: var(--muted);
}

.overview-status {
  max-width: 110px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #137757;
  background: #e8faf3;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.overview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.overview-grid div {
  padding: 10px;
  border-radius: 8px;
  background: #f6faff;
  border: 1px solid var(--line);
}

.overview-grid span,
.overview-grid strong {
  display: block;
}

.overview-grid span {
  color: var(--muted);
  font-size: 11px;
}

.overview-grid strong {
  margin-top: 4px;
  color: #263b58;
}

.mine-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mine-actions button {
  min-height: 78px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  color: #314059;
  box-shadow: 0 10px 24px rgba(49, 80, 120, 0.08);
}

.record-card {
  margin-top: 14px;
  padding: 15px;
}

.record-line {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.record-line + .record-line {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.record-title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.record-title-row time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.record-line small {
  display: block;
  margin-top: 5px;
  color: #718198;
  line-height: 1.45;
}

.empty-record {
  margin-top: 12px;
  padding: 18px;
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
  text-align: center;
  line-height: 1.6;
}

.record-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 155, 69, 0.15);
}

.record-line p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.settings-list {
  margin-top: 14px;
  overflow: hidden;
}

.settings-list button {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #26354f;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list b {
  width: 9px;
  height: 9px;
  border-top: 2px solid #a8b5c4;
  border-right: 2px solid #a8b5c4;
  transform: rotate(45deg);
}

.logout-button {
  width: 100%;
  height: 44px;
  margin: 14px 0 6px;
  border-radius: 8px;
  color: #d63d50;
  background: #fff;
  border: 1px solid rgba(214, 61, 80, 0.22);
  font-weight: 900;
}

.logout-button.hidden {
  display: none;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  color: #8290a6;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: var(--blue);
}

.bottom-nav button.active .nav-icon {
  background: #ddecff;
}

.guide-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: end;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  background: rgba(20, 31, 48, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.guide-modal.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(20, 31, 48, 0.42);
}

.guide-sheet {
  max-height: calc(100% - 34px);
  overflow-y: auto;
  padding: 10px 14px 14px;
  border-radius: 18px 18px 8px 8px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 -16px 52px rgba(16, 42, 76, 0.28);
  transform: translateY(26px);
  transition: transform 0.22s ease;
}

.guide-modal.visible .guide-sheet {
  transform: translateY(0);
}

.guide-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #c9d7e6;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-header h2 {
  font-size: 22px;
}

.close-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #edf5ff;
  position: relative;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 17px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #60728a;
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.guide-section {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid var(--line);
}

.guide-section.hidden,
.pill.hidden {
  display: none;
}

.part-viewer-modal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  background: rgba(7, 13, 22, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.part-viewer-modal.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 13, 22, 0.72);
}

.search-modal {
  position: absolute;
  inset: 0;
  z-index: 13;
  display: grid;
  align-items: start;
  padding: 58px 18px 18px;
  pointer-events: none;
  opacity: 0;
  background: rgba(7, 13, 22, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.search-modal.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 13, 22, 0.58);
}

.search-sheet {
  max-height: 100%;
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  color: #ecf6ff;
  background: linear-gradient(180deg, #111b29, #0b111c);
  border: 1px solid rgba(156, 193, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-header span {
  color: #67b7ff;
  font-size: 11px;
  font-weight: 900;
}

.search-header h2 {
  margin-top: 2px;
  font-size: 19px;
}

.search-header button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #19304d;
  background: #edf6ff;
  font-size: 24px;
  font-weight: 800;
}

#knowledgeSearchInput {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  padding: 0 13px;
  border-radius: 10px;
  color: #152238;
  background: #f8fbff;
  border: 1px solid rgba(156, 193, 255, 0.28);
  font-weight: 800;
}

.search-results {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.search-results button,
.empty-search {
  padding: 11px;
  text-align: left;
  border-radius: 10px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(156, 193, 255, 0.14);
}

.search-results strong,
.search-results span,
.search-results p {
  display: block;
}

.search-results strong {
  color: #fff;
  font-size: 14px;
}

.search-results span {
  margin-top: 3px;
  color: #67b7ff;
  font-size: 12px;
  font-weight: 900;
}

.search-results p {
  margin-top: 5px;
  color: #b9c9dc;
  font-size: 12px;
  line-height: 1.45;
}

.assist-modal {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  align-items: start;
  padding: 48px 18px 18px;
  pointer-events: none;
  opacity: 0;
  background: rgba(7, 13, 22, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.assist-modal.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 13, 22, 0.62);
}

.assist-sheet {
  max-height: 100%;
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  color: #ecf6ff;
  background: linear-gradient(180deg, #111b29, #0b111c);
  border: 1px solid rgba(156, 193, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.assist-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.assist-header span {
  color: #67b7ff;
  font-size: 11px;
  font-weight: 900;
}

.assist-header h2 {
  margin-top: 2px;
  font-size: 19px;
}

.assist-header button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #19304d;
  background: #edf6ff;
  font-size: 24px;
  font-weight: 800;
}

.assist-form,
.assist-chat {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.assist-form.hidden,
.assist-chat.hidden {
  display: none;
}

.assist-form input,
.assist-form select,
.assist-form textarea,
.assist-chat textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #152238;
  background: #f8fbff;
  border: 1px solid rgba(156, 193, 255, 0.28);
  font-weight: 800;
}

.assist-form textarea,
.assist-chat textarea {
  min-height: 92px;
  resize: vertical;
}

.assist-form button,
.assist-chat button {
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.assist-ticket {
  color: #8fd0ff;
  font-weight: 900;
}

.assist-messages {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.assist-msg {
  padding: 10px;
  border-radius: 10px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(156, 193, 255, 0.14);
}

.assist-msg.admin {
  color: #142033;
  background: #eaf4ff;
}

.assist-msg strong,
.assist-msg span {
  display: block;
}

.assist-msg strong {
  margin-bottom: 4px;
  color: #67b7ff;
  font-size: 12px;
}

.info-modal {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  background: rgba(7, 13, 22, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.info-modal.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 13, 22, 0.58);
}

.info-sheet {
  width: 100%;
  max-height: calc(100% - 40px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 14px;
  color: #17243a;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-header button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #263b58;
  background: #edf4fb;
  font-size: 22px;
}

#infoContent {
  margin-top: 14px;
}

.setting-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.switch input {
  display: none;
}

.switch i {
  position: relative;
  width: 46px;
  height: 26px;
  display: block;
  border-radius: 999px;
  background: #d4dfeb;
  transition: 0.2s ease;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: 0.2s ease;
}

.switch input:checked + i {
  background: var(--blue);
}

.switch input:checked + i::after {
  transform: translateX(20px);
}

.clear-records {
  width: 100%;
  height: 40px;
  margin-top: 14px;
  border-radius: 8px;
  color: #d63d50;
  background: #fff4f5;
  font-weight: 900;
}

.about-content strong,
.about-content span,
.about-content p {
  display: block;
}

.about-content strong {
  font-size: 20px;
}

.about-content span {
  margin-top: 5px;
  color: var(--blue);
  font-weight: 900;
}

.about-content p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.part-viewer-sheet {
  width: 100%;
  max-height: calc(100% - 26px);
  overflow-y: auto;
  border-radius: 16px;
  padding: 14px;
  color: #eef6ff;
  background: linear-gradient(160deg, rgba(20, 31, 46, 0.98), rgba(10, 16, 26, 0.98));
  border: 1px solid rgba(100, 165, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.part-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.part-viewer-stage {
  height: 276px;
  margin-top: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  perspective: 900px;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(68, 136, 222, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 136, 222, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 34%, rgba(22, 126, 255, 0.22), transparent 42%),
    #0d1420;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.part-viewer-model {
  position: relative;
  width: 170px;
  height: 118px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-32deg) scale(1);
  transition: transform 0.12s ease;
}

.part-viewer-model:has(.part-glb-viewer) {
  width: 100%;
  height: 100%;
  transform: none;
}

.part-glb-viewer {
  width: 100%;
  height: 100%;
  min-height: 292px;
  background: transparent;
  outline: none;
}

.viewer-cuboid {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  width: var(--w, 120px);
  height: var(--h, 80px);
  transform: translateZ(var(--z, 0px));
  transform-style: preserve-3d;
}

.viewer-cuboid .face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.34);
  background: var(--c, linear-gradient(145deg, #2d3e54, #101827));
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.viewer-cuboid .front { transform: translateZ(calc(var(--d, 20px) / 2)); }
.viewer-cuboid .back { transform: rotateY(180deg) translateZ(calc(var(--d, 20px) / 2)); filter: brightness(.7); }
.viewer-cuboid .right { width: var(--d, 20px); left: calc(var(--w, 120px) - (var(--d, 20px) / 2)); transform: rotateY(90deg) translateZ(calc(var(--d, 20px) / 2)); filter: brightness(.82); }
.viewer-cuboid .left { width: var(--d, 20px); left: calc(0px - (var(--d, 20px) / 2)); transform: rotateY(90deg) translateZ(calc(var(--d, 20px) / 2)); filter: brightness(.62); }
.viewer-cuboid .top { height: var(--d, 20px); top: calc(0px - (var(--d, 20px) / 2)); transform: rotateX(90deg) translateZ(calc(var(--d, 20px) / 2)); filter: brightness(1.18); }
.viewer-cuboid .bottom { height: var(--d, 20px); top: calc(var(--h, 80px) - (var(--d, 20px) / 2)); transform: rotateX(90deg) translateZ(calc(var(--d, 20px) / 2)); filter: brightness(.56); }

.viewer-cuboid.round .face {
  border-radius: 50%;
}

.viewer-label {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%) translateZ(50px) rotateZ(32deg) rotateX(-58deg);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1578ff, #42c2ff);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.part-viewer-info {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(156, 193, 255, 0.14);
}

.part-viewer-info span {
  color: #67b7ff;
  font-weight: 900;
}

.part-viewer-info h3 {
  margin-top: 5px;
  color: #fff;
}

.part-viewer-info p {
  margin-top: 8px;
  color: #c9d7e8;
  line-height: 1.6;
}

.part-viewer-info .param-grid span {
  color: #dcecff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(156, 193, 255, 0.16);
}

.preview-panel {
  max-width: 360px;
}

.preview-panel h2 {
  font-size: 40px;
  margin-bottom: 14px;
}

.preview-panel p {
  color: #5d6c82;
  font-size: 15px;
  line-height: 1.8;
}

.preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.preview-list span {
  padding: 9px 12px;
  border: 1px solid rgba(21, 120, 255, 0.2);
  border-radius: 999px;
  color: #1d5ea7;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

@media (max-width: 860px) {
  .studio {
    grid-template-columns: 1fr;
    padding: 0;
    align-items: stretch;
  }

  .preview-panel {
    display: none;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    min-height: 720px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-screen {
    padding-inline: 16px;
  }
}

@media (max-width: 380px) {
  .issue-grid,
  .mode-grid {
    gap: 7px;
  }

  .mode-card {
    padding-inline: 7px;
  }

  .mode-card strong,
  .issue-grid button span {
    font-size: 11px;
  }

  .hero-card {
    min-height: 220px;
  }
}
