/* OpenVibe.Actor /compare (11-16: one task, several ways, side by side). Every colour is a Shared theme token, so it
   follows dark and light. Phone: one column; a wide screen: the ways side by side. Motion follows html[data-ov-motion]. */
.cmp-head { max-width: 52rem; margin: .5rem 0 1rem; }
.cmp-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--text-secondary)); }
.cmp-kicker a { color: inherit; text-decoration: none; }
.cmp-head h1 { margin: .2rem 0 .35rem; font-size: 1.6rem; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.cmp-lede { margin: 0; color: var(--text-secondary); line-height: 1.5; max-width: 46rem; }
.cmp-problem { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 45%, var(--border-light)); color: var(--text-primary); }
.cmp-form { display: grid; gap: 1rem; max-width: 52rem; padding: 1rem; border: 1px solid var(--border-light); border-radius: 16px; background: var(--bg-card); }
.cmp-field { display: grid; gap: .3rem; min-width: 0; font-size: .82rem; color: var(--text-secondary); }
.cmp-field small { color: var(--text-muted); }
.cmp-field textarea, .cmp-field input, .cmp-field select { width: 100%; box-sizing: border-box; min-height: 44px; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: .95rem; }
.cmp-field textarea { resize: vertical; line-height: 1.45; }
.cmp-ways { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.cmp-ways legend { padding: 0; margin-bottom: .4rem; font-size: .82rem; color: var(--text-secondary); }
.cmp-way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.cmp-way[hidden] { display: none; }
.cmp-add-row { margin: 0; }
.cmp-add[hidden] { display: none; }
.cmp-kinds { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .84rem; color: var(--text-secondary); line-height: 1.45; }
.cmp-kinds b { color: var(--text-primary); }
.cmp-go { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.cmp-go small { color: var(--text-muted); font-size: .8rem; }
.cmp-sign { margin: 0 0 1rem; }
.cmp-sec { max-width: 52rem; margin: 1.6rem 0 0; }
.cmp-sec h2 { margin: 0 0 .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.cmp-fine, .cmp-empty { margin: 0 0 .6rem; color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.cmp-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cmp-mine li { display: grid; gap: 2px; padding: .6rem .75rem; border: 1px solid var(--border-light); border-radius: 12px; min-width: 0; }
.cmp-mine a { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-mine small { color: var(--text-muted); font-size: .78rem; }
.cmp-board-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border-light); border-radius: 12px; }
.cmp-board { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cmp-board th, .cmp-board td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.cmp-board thead th { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 750; }
.cmp-board tbody tr:last-child th, .cmp-board tbody tr:last-child td { border-bottom: 0; }
.cmp-score { display: inline-flex; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; }
.cmp-bar { position: relative; display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text-muted) 25%, transparent); overflow: hidden; }
.cmp-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 3px; background: var(--accent, #3b82f6); transform-origin: left; animation: cmp-grow .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cmp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cmp-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .8rem; align-items: start; }
.cmp-side { display: grid; gap: .6rem; min-width: 0; padding: .9rem; border: 1px solid var(--border-light); border-radius: 16px; background: var(--bg-card); transition: border-color .2s, box-shadow .2s; animation: cmp-in .35s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cmp-in { from { opacity: 0; transform: translateY(calc(8px * var(--ov-move, 1))); } to { opacity: 1; transform: none; } }
.cmp-side.is-best { border-color: color-mix(in srgb, var(--accent, #3b82f6) 65%, var(--border-light)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent, #3b82f6) 18%, transparent); }
.cmp-side header { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cmp-side header b { min-width: 0; overflow-wrap: anywhere; }
.cmp-best { padding: .1rem .5rem; border-radius: 999px; background: var(--accent, #3b82f6); color: #fff; font-size: .72rem; font-weight: 800; }
.cmp-state { margin-left: auto; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-secondary); font-size: .72rem; font-weight: 650; }
.cmp-side.is-running .cmp-state, .cmp-side.is-queued .cmp-state, .cmp-side.is-verifying .cmp-state { animation: cmp-pulse 1.4s ease-in-out infinite; }
@keyframes cmp-pulse { 50% { opacity: .45; } }
.cmp-score--big { margin: 0; font-size: 1.1rem; font-weight: 750; }
.cmp-score--big .cmp-bar { width: 100px; height: 8px; }
.cmp-score--big small { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.cmp-answer { min-width: 0; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; max-height: 28rem; overflow-y: auto; }
.cmp-answer > :first-child { margin-top: 0; }
.cmp-answer pre { overflow-x: auto; }
.cmp-err { margin: 0; color: var(--text-secondary); }
.cmp-wait { margin: 0; color: var(--text-muted); }
.cmp-side footer { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .78rem; color: var(--text-muted); }
.cmp-side footer a { margin-left: auto; }
@media (max-width: 560px) { .cmp-way { grid-template-columns: minmax(0, 1fr); } }
html[data-ov-motion=off] .cmp-side, html[data-ov-motion=off] .cmp-bar::after, html[data-ov-motion=off] .cmp-state { animation: none; }
