/* 眼睛与视力矫正特有样式（通用样式见 ../shared/base.css） */

#eye { position: absolute; inset: 0; touch-action: none; }
#eye.grab { cursor: grab; }
#eye.grabbing { cursor: grabbing; }
[hidden] { display: none !important; }

/* 眼中所见 */
#view { position: absolute; left: 12px; top: 12px; z-index: 3; width: 180px; padding: 6px 8px 8px;
  background: rgba(17,23,35,.85); border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
#view .vt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
#chart { display: block; width: 100%; height: 120px; border-radius: 4px; transition: filter .15s; }
#viewNote { margin-top: 4px; font-size: 12px; text-align: center; }

.ok { color: #7ee081; }
.bad { color: #ff7a59; }

.readout .big { font-size: 18px; }
.readout .tip { font-size: 12px; color: var(--accent); margin-top: 4px; min-height: 18px; }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.presets button { font: inherit; font-size: 12px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 0; cursor: pointer; }
.presets button:hover { border-color: var(--accent); }
.presets button.on { border-color: var(--accent); background: rgba(255,201,74,.14); }

.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; font-size: 13px; padding: 5px 0; }
#causeRow { grid-template-columns: 64px 1fr; margin-top: 10px; }
#causeRow .seg button { font-size: 12px; }
.switch.line { margin-bottom: 4px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.raykey { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.raykey li { margin: 3px 0; }
.raykey i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.raykey i.dash { background: repeating-linear-gradient(90deg, #ffd166 0 4px, transparent 4px 7px); }

@media (max-width: 760px) {
  #view { top: 84px; width: 128px; padding: 4px 6px 6px; }
  #chart { height: 84px; }
  #view .vt, #viewNote { font-size: 11px; }
}
