:root { color-scheme: dark; font-family: Inter, "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif; background: #050108; color: #f6edff; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 15% 0, #20083a 0, transparent 34rem), radial-gradient(circle at 90% 50%, #10051e 0, transparent 32rem), #050108; }
button, select, input { font: inherit; }
.app-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 66px; }
.app-header, .panel-heading, .camera-controls, .actions, .trace-layout, .calibration-layout { display: flex; }
.app-header { align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 5px; color: #d285ff; font-size: .72rem; font-weight: 850; letter-spacing: .18em; }
h1, h2 { margin: 0; letter-spacing: -.03em; } h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); } h2 { font-size: 1.14rem; }
.camera-controls { align-items: end; flex-wrap: wrap; justify-content: end; gap: 8px; } label { color: #d7c8e6; font-size: .82rem; } .camera-controls label { display: grid; gap: 4px; }
select { min-height: 36px; max-width: 270px; border: 1px solid #4d3868; border-radius: 8px; padding: 0 9px; background: #160d22; color: #fbf4ff; }
.button { min-height: 36px; border: 1px solid #d176ff; border-radius: 8px; padding: 0 14px; background: linear-gradient(135deg, #c655f3, #8736db); color: #fff; box-shadow: 0 0 18px rgba(196, 80, 255, .18); font-weight: 800; cursor: pointer; } .button:hover:not(:disabled) { background: linear-gradient(135deg, #e18aff, #a64fff); } .button:disabled { cursor: not-allowed; opacity: .45; }.button.secondary { border-color: #59466d; background: #21172e; color: #eee7f6; box-shadow: none; }
.app-message { min-height: 24px; margin: 18px 0; color: #c8bad8; font-size: .9rem; }.app-message.is-error { color: #ff9abd; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #352344; }.tab { border: 0; border-bottom: 2px solid transparent; padding: 12px 18px 10px; background: transparent; color: #aa9ab9; font-weight: 800; cursor: pointer; }.tab.is-active { border-bottom-color: #d16cff; color: #fff5ff; }.tab-panel { padding-top: 24px; }.is-hidden { display: none; }
.panel-heading { align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }.actions { flex-wrap: wrap; gap: 8px; }.trace-layout { align-items: stretch; gap: 20px; }.canvas-card { overflow: hidden; border: 1px solid #432758; border-radius: 14px; background: #08030e; box-shadow: 0 18px 56px rgba(0,0,0,.4), inset 0 0 40px rgba(163,49,255,.04); }.trace-card { position: relative; flex: 0 1 600px; width: min(100%, 600px); } canvas { display: block; width: 100%; height: auto; background: #030105; }
.live-dot { position: absolute; top: 13px; left: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #503165; border-radius: 999px; background: rgba(12, 4, 20, .7); color: #dfc7ef; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #cd6dff; box-shadow: 0 0 10px #cd6dff; }
.metrics { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(105px, 1fr)); align-content: start; gap: 8px; }.metrics div { min-height: 78px; border: 1px solid #3f2a52; border-radius: 10px; padding: 12px; background: rgba(26, 14, 38, .82); }.metrics span { display: block; margin-bottom: 7px; color: #b7a4c9; font-size: .74rem; }.metrics strong { color: #fbf4ff; font-size: 1.12rem; }.metrics strong.is-on { color: #88ffc1; text-shadow: 0 0 12px rgba(75,255,170,.5); }.metrics p { grid-column: 1 / -1; margin: 4px 0 0; color: #b9abc7; font-size: .79rem; line-height: 1.6; }
.help-text { margin: 0 0 18px; color: #c8bad7; font-size: .9rem; line-height: 1.7; }.calibration-layout { align-items: flex-start; gap: 24px; }.calibration-card { flex: 1 1 450px; max-width: 600px; }.canvas-caption { margin: 0; padding: 9px 12px; color: #bfaed0; font-size: .76rem; }.settings { display: grid; flex: 1 1 330px; gap: 12px; }fieldset { display: grid; gap: 12px; margin: 0; border: 1px solid #3f2a52; border-radius: 10px; padding: 14px; }legend { padding: 0 5px; color: #dc91ff; font-size: .82rem; font-weight: 800; }fieldset label { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }fieldset input { grid-column: 1 / -1; width: 100%; accent-color: #ca61ff; }fieldset label.toggle { display: flex; justify-content: space-between; }fieldset label.toggle input { width: auto; margin: 0; }output { color: #fff4ff; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .app-shell { width: min(100% - 22px, 680px); padding-top: 20px; }.app-header, .trace-layout, .calibration-layout { align-items: stretch; flex-direction: column; }.camera-controls { justify-content: start; }.trace-card, .calibration-card { width: 100%; max-width: none; }.metrics { grid-template-columns: repeat(4, minmax(65px, 1fr)); }.metrics div { min-height: 66px; padding: 9px; }.metrics strong { font-size: 1rem; } }
@media (max-width: 480px) { .panel-heading { align-items: start; flex-direction: column; }.metrics { grid-template-columns: repeat(2, 1fr); } }
