/* 滑鼠測試 */
.ms-mobile { display: none; }
@media (max-width: 700px), (pointer: coarse) { .ms-mobile { display: block; } }
.ms-pad, .ms-cps { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 16px; border: 2px dashed var(--brand); border-radius: 14px; background: #f5f8ff; text-align: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.ms-pad strong, .ms-cps strong { font-size: 1.3rem; color: var(--brand-dark); }
.ms-pad span, .ms-cps span { color: var(--muted); font-size: .95rem; }
.ms-pad:focus, .ms-cps:focus { outline: 3px solid #93b4ff; outline-offset: 2px; }
.ms-pad .ms-live { color: var(--fg); font-weight: 600; min-height: 1.4em; }
.ms-cps { cursor: pointer; min-height: 220px; }
.ms-cps.run { background: #eff4ff; border-style: solid; }
.ms-cps.done { background: #ecfdf5; border-color: var(--ok); border-style: solid; }
.ms-cps.run strong { font-size: 2.2rem; }
.ms-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.ms-tile { border: 1px solid #aeb4bd; border-bottom-width: 3px; border-radius: 10px; background: #fff; padding: 8px 10px; min-width: 0; transition: background .08s; }
.ms-tile span { display: block; font-size: .9rem; color: var(--muted); }
.ms-tile strong { display: block; font-size: 1.5rem; line-height: 1.3; color: var(--brand-dark); }
.ms-tile.seen { background: #d1fae5; border-color: #34a37a; }
.ms-tile.down { background: var(--brand); border-color: var(--brand-dark); }
.ms-tile.down span, .ms-tile.down strong { color: #fff; }
.ms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.ms-stat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; min-width: 0; }
.ms-stat span { display: block; font-size: .9rem; color: var(--muted); }
.ms-stat strong { display: block; font-size: 1.5rem; line-height: 1.3; color: var(--brand-dark); }
.ms-stat small { color: var(--muted); font-size: .85rem; }
.ms-th select { min-height: 44px; }
.ms-h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.ms-log { margin: 0; padding-left: 1.4rem; font-size: .95rem; max-height: 220px; overflow: auto; }
.ms-log li { margin: 2px 0; overflow-wrap: anywhere; }
.ms-log .ms-empty { color: var(--muted); list-style: none; margin-left: -1.4rem; }
.ms-log .ms-bad { color: var(--bad); font-weight: 600; }
.ms-tabs { display: flex; gap: 8px; margin: 8px 0; }
.ms-tabs .btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 480px) { .ms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
