/* 砂磨機平台主題色 — 工業紫（區隔黃手電鑽與綠鑽床）*/
.sander-theme {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #EDE9FE;
  --primary-glow: rgba(124,58,237,.3);
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
}
.sander-theme .brand .logo { filter: drop-shadow(0 2px 4px rgba(124,58,237,.4)); }
.sander-theme .hero h2 {
  background: linear-gradient(135deg, #1a1a1a 30%, #5B21B6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sander { width: 100%; max-width: 480px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.12)); animation: slow-float 6s ease-in-out infinite; }

.sander-canvas-wrap {
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  border: 1px solid #1e293b;
}
#sander-canvas {
  width: 100%; max-width: 760px; height: auto; display: block;
  background: #1e293b; border-radius: var(--radius);
}
.verdict {
  padding:14px; border-radius:10px; margin-top:10px; font-size:14px; font-weight:700;
}
.verdict.good { background:#dcfce7; color:#15803d; border-left:4px solid #22c55e; }
.verdict.warn { background:#fef9c3; color:#a16207; border-left:4px solid #eab308; }
.verdict.bad { background:#fee2e2; color:#991b1b; border-left:4px solid #dc2626; }

.grit-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; margin-top:8px; }
.grit-cell { padding:6px 2px; text-align:center; font-size:10px; border-radius:5px; background:#f1f5f9; cursor:pointer; }
.grit-cell.active { background:#7C3AED; color:#fff; font-weight:700; }
.grit-cell .lbl { font-size:8px; opacity:.7; display:block; }

/* 延伸補充區塊（2026-09-28 教師決定；主代理若統一移到 css/style.css 可刪除此段）*/
details.panel.supplement > summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--primary-dark, #334155); }
details.panel.supplement[open] > summary { margin-bottom: 8px; }
details.panel.supplement ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; font-size: 14px; color: #374151; }
details.panel.supplement li { margin-bottom: 6px; }
details.panel.supplement a { color: var(--primary-dark, #1d4ed8); overflow-wrap: anywhere; }
.tag-ext { display: inline-block; font-size: 11px; font-weight: 600; background: #e2e8f0; color: #475569; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
