/* Qevora Laptop Testing suite */
.qvt { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; font-family: var(--qv-font-body, "Inter", sans-serif); color: var(--qv-charcoal, #1F2321); }
.qvt-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.qvt-head h1 { font-family: var(--qv-font-display, "Fraunces", serif); color: var(--qv-forest, #102821); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.3em 0; }
.qvt-eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--qv-copper, #B9794D); font-weight: 600; }
.qvt-intro { color: #46504A; }

.qvt-progress { margin-top: 1.5rem; }
.qvt-progress-track { height: 10px; border-radius: 999px; background: var(--qv-stone, #D8D2C7); overflow: hidden; }
.qvt-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--qv-sage, #7C8A70), var(--qv-copper, #B9794D)); transition: width 0.4s ease; }
#qvt-progress-label { font-size: 0.85rem; color: #46504A; }

.qvt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; }
.qvt-card { background: #fff; border: 1px solid var(--qv-stone, #D8D2C7); border-radius: 14px; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.qvt-card-wide { grid-column: 1 / -1; }
.qvt-card h2 { font-family: var(--qv-font-display, serif); font-size: 1.15rem; color: var(--qv-forest, #102821); margin: 0; display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.qvt-num { font-family: var(--qv-font-body, sans-serif); font-size: 0.72rem; font-weight: 700; color: var(--qv-copper, #B9794D); letter-spacing: 0.08em; }
.qvt-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--qv-ivory, #F5F0E8); color: var(--qv-sage, #7C8A70); border: 1px solid var(--qv-stone, #D8D2C7); border-radius: 999px; padding: 0.25em 0.7em; }
.qvt-hint, .qvt-status { font-size: 0.83rem; color: #6B7069; margin: 0; }
.qvt-card p { margin: 0; font-size: 0.93rem; }
.qvt-card ul { margin: 0; padding-left: 1.2em; font-size: 0.9rem; }
.qvt-card details { font-size: 0.9rem; }
.qvt-card summary { cursor: pointer; color: var(--qv-copper-dark, #9A6039); font-weight: 600; }
.qvt-card code, .qvt-card kbd { background: var(--qv-ivory, #F5F0E8); border: 1px solid var(--qv-stone, #D8D2C7); border-radius: 4px; padding: 0.05em 0.4em; font-size: 0.85em; }

.qvt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.qvt-btn, .qvt-btn-sm { font: inherit; font-weight: 600; border: 2px solid var(--qv-forest, #102821); background: var(--qv-forest, #102821); color: #F5F0E8; border-radius: 8px; padding: 0.55em 1.1em; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.qvt-btn-sm { font-size: 0.83rem; }
.qvt-btn:hover, .qvt-btn-sm:hover { background: #0B1D18; transform: translateY(-1px); }
.qvt-btn:disabled, .qvt-btn-sm:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.qvt-btn:focus-visible, .qvt-btn-sm:focus-visible, .qvt-swatch:focus-visible { outline: 3px solid var(--qv-copper, #B9794D); outline-offset: 2px; }

/* Screen test */
.qvt-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.qvt-swatch { border: 2px solid var(--qv-stone, #D8D2C7); border-radius: 8px; padding: 0.8em 0.5em; font: inherit; font-weight: 600; cursor: pointer; }
.qvt-screenfill { position: fixed; inset: 0; z-index: 99999; cursor: pointer; }
.qvt-screenfill-hint { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: #fff; font-size: 0.8rem; padding: 0.4em 1em; border-radius: 999px; }

/* Keyboard */
.qvt-kb { display: flex; flex-direction: column; gap: 5px; background: var(--qv-forest, #102821); border-radius: 12px; padding: 12px; overflow-x: auto; }
.qvt-kb:focus-visible { outline: 3px solid var(--qv-copper, #B9794D); }
.qvt-kb-row { display: flex; gap: 5px; }
.qvt-key { flex: 1 0 auto; min-width: 34px; height: 40px; display: flex; align-items: center; justify-content: center; background: #1E3B31; color: #C9D3CC; border-radius: 6px; font-size: 0.68rem; font-weight: 600; user-select: none; transition: background 0.1s, color 0.1s; }
.qvt-key.is-down { background: #F5F0E8; color: #102821; }
.qvt-key.is-hit { background: var(--qv-copper, #B9794D); color: #fff; }
.qvt-key[data-w="1.5"] { flex-grow: 1.5; } .qvt-key[data-w="2"] { flex-grow: 2; }
.qvt-key[data-w="2.5"] { flex-grow: 2.5; } .qvt-key[data-w="6"] { flex-grow: 6; }
.qvt-kb-stats { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }

/* Pointer */
.qvt-pointer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.qvt-ptarget { border: 2px dashed var(--qv-stone, #D8D2C7); border-radius: 10px; min-height: 74px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.85rem; font-weight: 600; color: #6B7069; cursor: pointer; user-select: none; }
.qvt-ptarget.is-done { border-style: solid; border-color: var(--qv-sage, #7C8A70); background: #EEF1EB; color: var(--qv-forest, #102821); }
.qvt-dragwrap { display: flex; gap: 0.5rem; }
.qvt-dragbox, .qvt-dropzone { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 0.85rem; font-weight: 600; }
.qvt-dragbox { background: var(--qv-copper, #B9794D); color: #fff; cursor: grab; }
.qvt-dropzone { border: 2px dashed var(--qv-stone, #D8D2C7); color: #6B7069; }
.qvt-dropzone.is-done { border-style: solid; border-color: var(--qv-sage, #7C8A70); background: #EEF1EB; color: var(--qv-forest, #102821); }

/* Media */
#qvt-cam { width: 100%; aspect-ratio: 4/3; background: #0B1D18; border-radius: 10px; object-fit: cover; }
#qvt-cam-shot { width: 100%; border-radius: 10px; }
.qvt-meter { height: 18px; border-radius: 999px; background: var(--qv-stone, #D8D2C7); overflow: hidden; }
.qvt-meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--qv-sage, #7C8A70), var(--qv-copper, #B9794D)); transition: width 0.06s linear; }

/* Ports */
.qvt-portlist { list-style: none; padding: 0 !important; margin: 0; columns: 2; }
.qvt-portlist li { padding: 0.2em 0; break-inside: avoid; }
.qvt-portlist input { accent-color: var(--qv-copper, #B9794D); margin-right: 0.4em; }

/* Touch grid */
.qvt-touchgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; touch-action: none; background: var(--qv-stone, #D8D2C7); border-radius: 10px; overflow: hidden; }
.qvt-tcell { aspect-ratio: 1; background: #fff; }
.qvt-tcell.is-hit { background: var(--qv-copper, #B9794D); }

/* Info + summary */
.qvt-info { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.qvt-info td, .qvt-info th { text-align: left; padding: 0.45em 0.6em; border-bottom: 1px solid var(--qv-ivory, #F5F0E8); vertical-align: top; }
.qvt-info th { color: var(--qv-forest, #102821); white-space: nowrap; }

.qvt-verdict { margin-top: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; padding-top: 0.6rem; border-top: 1px solid var(--qv-ivory, #F5F0E8); }
.qvt-verdict button { font: inherit; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.35em 1em; cursor: pointer; border: 2px solid var(--qv-stone, #D8D2C7); background: #fff; color: #6B7069; }
.qvt-verdict button.is-active[data-v="pass"] { background: var(--qv-success, #4E6B4A); border-color: var(--qv-success, #4E6B4A); color: #fff; }
.qvt-verdict button.is-active[data-v="review"] { background: var(--qv-error, #A63D2F); border-color: var(--qv-error, #A63D2F); color: #fff; }

.qvt-summary { margin-top: 3rem; background: var(--qv-forest, #102821); color: var(--qv-stone, #D8D2C7); border-radius: 18px; padding: 2rem; }
.qvt-summary h2 { font-family: var(--qv-font-display, serif); color: #F5F0E8; margin-top: 0; }
.qvt-summary .qvt-info th, .qvt-summary .qvt-info td { border-color: rgba(245,240,232,0.15); color: #E8E2D6; }
.qvt-summary .qvt-btn { background: var(--qv-copper, #B9794D); border-color: var(--qv-copper, #B9794D); }
.qvt-summary textarea { width: 100%; border-radius: 8px; border: 1px solid rgba(245,240,232,0.3); background: rgba(245,240,232,0.08); color: #F5F0E8; padding: 0.7em; font: inherit; margin: 0.4rem 0 1rem; }
.qvt-noteslabel { font-size: 0.85rem; font-weight: 600; }
.qvt-disclaimer { font-size: 0.8rem; margin-top: 1.2rem; color: #B9C2BB; }
.qvt-pass { color: #8FBB8A; font-weight: 700; }
.qvt-review { color: #E09385; font-weight: 700; }
.qvt-pending { color: #9AA39C; }

@media (max-width: 640px) {
	.qvt-portlist { columns: 1; }
	.qvt-touchgrid { grid-template-columns: repeat(8, 1fr); }
	.qvt-key { min-width: 26px; height: 34px; font-size: 0.58rem; }
}
@media (prefers-reduced-motion: reduce) {
	.qvt * { transition: none !important; }
}
@media print {
	.qvt-grid, .qvt-screenfill, .qvt-btn, .qvt-btn-sm { display: none !important; }
	.qvt-summary { background: #fff; color: #000; border: 1px solid #ccc; }
	.qvt-summary .qvt-info th, .qvt-summary .qvt-info td { color: #000; }
}
