/* Mouse Test — Interactive SVG Blueprint (Sky Blue Accent) */
.mt-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.mt-header h1 { margin: 8px 0 4px; font-size: clamp(1.55rem, 2.5vw, 2.1rem); letter-spacing: -0.03em; }
.mt-header p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.mt-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.mt-diagram-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    user-select: none;
    background-image: radial-gradient(color-mix(in srgb, var(--tool-accent) 14%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
}

.mt-zone-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.mt-mouse-svg {
    width: 100%;
    max-width: 245px;
    margin: 0 auto;
}

.mt-part {
    fill: var(--bg-elev);
    stroke: var(--border-strong);
    stroke-width: 2.5;
    transition: fill 0.08s ease, stroke 0.08s ease;
}
.mt-part.is-tested {
    fill: color-mix(in srgb, var(--tool-accent) 18%, var(--bg-elev));
    stroke: var(--tool-accent);
}
.mt-part.is-pressed {
    fill: var(--tool-accent);
    stroke: var(--tool-accent);
}

.mt-svg-lbl {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    fill: var(--text-muted);
    pointer-events: none;
}
.mt-svg-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    fill: var(--text-soft);
    pointer-events: none;
}

.mt-coords-bar {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.mt-details-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mt-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mt-counter {
    padding: 13px 12px;
    border-radius: 13px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.12s ease, transform 0.1s ease;
}
.mt-counter.is-flash {
    border-color: var(--tool-accent);
    background: color-mix(in srgb, var(--tool-accent) 10%, var(--bg-elev));
    transform: translateY(-1px);
}
.mt-counter span { display: block; font-size: 0.75rem; color: var(--text-soft); margin-bottom: 4px; }
.mt-counter strong { font-family: var(--font-mono); font-size: 1.3rem; color: var(--text); }

.mt-trail-card, .mt-log-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.mt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mt-trail-card h2, .mt-log-card h2 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}
.mt-log-card h2 { margin-bottom: 10px; }

#mt-trail-canvas {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    cursor: crosshair;
}

.mt-log-list {
    max-height: 155px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mt-log-empty { color: var(--text-soft); }
.mt-log-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--bg-subtle);
}

@media (max-width: 960px) {
    .mt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .mt-counters-grid { grid-template-columns: repeat(2, 1fr); }
}
