:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #171d20;
  --muted: #687277;
  --line: #d8ddd9;
  --accent: #315ee7;
  --accent-rgb: 49, 94, 231;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; height: 100%; margin: 0; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb), 0.035), transparent 34rem),
    radial-gradient(rgba(28, 36, 39, 0.1) 0.6px, transparent 0.6px),
    var(--paper);
  background-size: auto, 24px 24px, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { color: inherit; font: inherit; }
button, select, a, .part { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.module { height: 100%; min-height: 320px; display: grid; place-items: center; padding: 56px 12px; overflow: clip; }
.model svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.model-camera { transform-box: view-box; transform-origin: 0 0; transition: transform 560ms cubic-bezier(0.22, 0.8, 0.2, 1); }
.robot-frame { pointer-events: none; }
.part { cursor: pointer; outline: none; touch-action: manipulation; }
.part-line, .part-surface, .detail-line {
  vector-effect: non-scaling-stroke;
  transition: stroke 160ms ease, fill 160ms ease;
}
.part-line, .part-surface { stroke: var(--ink); stroke-width: 3.1; }
.part-surface { fill: rgba(255, 255, 255, 0.65); }
.detail-line { stroke: #9aa4a7; stroke-width: 1.5; }
.hit-area { fill: transparent; stroke: none; pointer-events: all; }
.part:hover .part-line,
.part:hover .part-surface,
.part:focus-visible .part-line,
.part:focus-visible .part-surface,
.part.active .part-line,
.part.active .part-surface { stroke: var(--accent); }
.part:hover .part-surface,
.part:focus-visible .part-surface,
.part.active .part-surface { fill: rgba(var(--accent-rgb), 0.09); }
.part:focus-visible .part-line,
.part:focus-visible .part-surface { stroke-width: 4.5; }

.focus-report {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: 272px;
  height: 360px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform-origin: var(--card-origin, center);
  transition: top 560ms cubic-bezier(0.22, 0.8, 0.2, 1), left 560ms cubic-bezier(0.22, 0.8, 0.2, 1), width 560ms cubic-bezier(0.22, 0.8, 0.2, 1), height 560ms cubic-bezier(0.22, 0.8, 0.2, 1), padding 560ms cubic-bezier(0.22, 0.8, 0.2, 1);
  animation: focus-enter 240ms 120ms ease-out both;
}
.focus-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 29, 32, 0.12);
  border-radius: 16px;
  background: #fffffc;
  box-shadow: 0 12px 36px rgba(24, 32, 36, 0.08);
  transition: width 560ms cubic-bezier(0.22, 0.8, 0.2, 1), border-radius 560ms ease, box-shadow 560ms ease;
}
.focus-report[data-placement="left"] { --card-origin: right center; }
.focus-report[data-placement="right"] { --card-origin: left center; }
.focus-report[data-placement="above"] { --card-origin: center bottom; }
.focus-report[data-placement="below"] { --card-origin: center top; }
.focus-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 10px 0 20px; }
.focus-toolbar select { flex: 1; min-width: 0; min-height: 44px; padding: 4px 20px 4px 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; }
.focus-expand, .focus-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.focus-actions { flex: 0 0 auto; padding: 8px 14px; border-top: 1px solid var(--line); }
.focus-expand { justify-content: space-between; width: 100%; color: var(--accent); font-size: 13px; }
.focus-close { width: 44px; padding: 0; color: var(--muted); }
.focus-expand svg, .focus-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.focus-expand svg { transition: transform 300ms ease; }
.focus-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.focus-expand:hover, .focus-close:hover { background: #f0f2ec; }
.focus-content { flex: 1; min-height: 0; padding: 12px 22px 20px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b8c0bb transparent; }
.focus-brief h2 { font-size: 21px; line-height: 1.4; }
.focus-brief .summary { margin-top: 12px; font-size: 14px; line-height: 1.75; }
.focus-topics { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 12px; line-height: 1.5; }
.focus-topics li { display: flex; align-items: center; gap: 8px; }
.focus-topics li::before { content: ""; flex: 0 0 auto; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.focus-report.is-expanded .focus-topics { display: none; }
.focus-details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 360ms cubic-bezier(0.22, 0.8, 0.2, 1), opacity 240ms ease; }
.focus-details > div { min-height: 0; overflow: hidden; }
.focus-report.is-expanded .focus-details { grid-template-rows: 1fr; opacity: 1; }
.focus-details section { margin-top: 20px; padding-top: 18px; }
.focus-details .research-points li + li { margin-top: 18px; }
.focus-details .research-points p, .focus-details .verdict { font-size: 14px; }
.focus-details .tags li { font-size: 13px; }
.focus-toolbar, .focus-content, .focus-actions { transition: padding 560ms cubic-bezier(0.22, 0.8, 0.2, 1); }
.focus-report.is-expanded {
  align-items: flex-end;
  padding: clamp(72px, 9svh, 112px) clamp(12px, 1.8vw, 36px) clamp(20px, 8svh, 96px);
}
.focus-report.is-expanded[data-placement="right"] { align-items: flex-start; }
.focus-report.is-expanded .focus-window {
  width: min(100%, 960px, 52vw);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(24, 32, 36, 0.08);
}
.focus-report.is-expanded .focus-toolbar { padding: 16px clamp(14px, 2vw, 36px) 10px; }
.focus-report.is-expanded .focus-content { padding: 16px clamp(14px, 2vw, 36px) 30px; }
.focus-report.is-expanded .focus-actions { padding: 10px clamp(14px, 2vw, 36px); }
.focus-report.is-expanded .focus-brief, .focus-report.is-expanded .focus-details { max-width: 800px; margin-inline: auto; }
.focus-report.is-expanded .focus-brief h2 { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.3; }
.focus-report.is-expanded .summary, .focus-report.is-expanded .research-points p, .focus-report.is-expanded .verdict { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.8; }
.focus-report.is-expanded .focus-details { transition-delay: 140ms; }
.focus-report.is-expanded section { margin-top: 30px; padding-top: 24px; }
.focus-report.is-expanded .research-points strong { font-size: 16px; }
@keyframes focus-enter { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

h2 { margin: 0; font-size: 26px; letter-spacing: -0.035em; line-height: 1.3; }
.summary { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
h3 { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.research-points { padding: 0; margin: 0; list-style: none; }
.research-points li + li { margin-top: 18px; }
.research-points strong { font-size: 15px; font-weight: 600; }
.research-points p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.verdict { margin: 0; font-size: 16px; line-height: 1.75; }
.source-links { padding: 0; margin: 0; list-style: none; }
.source-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; color: var(--accent); font-size: 14px; line-height: 1.5; text-decoration: none; }
.source-links a:hover { text-decoration: underline; }
.source-links span { flex: 0 0 auto; }
.research-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px) {
  .focus-report.is-expanded { padding: 72px 8px 12px; }
  .focus-report.is-expanded .focus-window { width: 100%; border-radius: 16px; }
  .focus-toolbar { gap: 4px; padding: 6px 8px 0 16px; }
  .focus-content { padding: 10px 18px 18px; }
  h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
