.tool { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.stage { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.drop {
  position: relative; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line); border-radius: 12px;
  background: var(--bg); display: grid; place-items: center; overflow: hidden; transition: border-color .15s, background .15s;
}
.drop:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.filled { border-style: solid; }
.drop img, .drop video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.drop-empty { text-align: center; padding: 16px; }
.drop-empty svg { width: 40px; height: 40px; color: var(--muted); }
.drop-empty p { margin: 6px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.result { padding: 22px; display: flex; flex-direction: column; min-width: 0; }
.status { color: var(--muted); font-size: 15px; }
.status.error { color: var(--dog); }
.progress { height: 4px; border-radius: 99px; background: var(--line); margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress.done { display: none; }

.answer { margin-top: 4px; }
.label { font-size: clamp(44px, 9vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.label.cat { color: var(--cat); }
.label.dog { color: var(--dog); }
.conf { margin-top: 8px; font-size: 15px; color: var(--muted); }
.meter { margin-top: 22px; }
.meter-track { position: relative; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--cat) 22%, transparent); }
.meter-fill { position: absolute; inset: 0 0 0 auto; width: 50%; border-radius: 0 99px 99px 0; background: color-mix(in srgb, var(--dog) 55%, transparent); transition: width .25s; }
.meter-pin { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--ink); left: 50%; transform: translateX(-2px); transition: left .25s; }
.meter-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.meter-legend b { color: var(--ink); font-weight: 600; }
.note { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: var(--accent-soft); }
.timing { margin: 14px 0 0; font-size: 12px; }

.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.block { padding: 20px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.steps li { margin: 0 0 8px; }
.steps b { color: var(--ink); }
.facts { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; }

@media (max-width: 860px) {
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tool { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .result { padding: 18px 14px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}
