/* «Pruébalo»: a simulated day in a store with Open2Agents (#pruebalo, dark like a stage, right before pricing).
   Shop scene, owner's phone, evidence file, chargeback and a live panel styled after the dashboard UI kit
   (brand/out/tinta/ui/ui-kit.css: square, 1 px frames, mono labels, green/red only for approved/denied), turned
   for the dark: surfaces tone-9/tone-8, dividers tone-7, frames tone-6, the bright green and red. The owner's
   phone and the evidence file are the two light objects on the stage. */
.pruebalo { padding: var(--space-9) 0; }
.pruebalo__head h2 { max-width: 15ch; }
.day [hidden] { display: none !important; }

.day { margin-top: 56px; border: 1px solid var(--tone-6); background: var(--tone-9); }

/* ── transport bar ── */
.day__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: var(--tone-8); color: var(--bg); border-bottom: 1px solid var(--tone-7); }
.day__transport { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day__play, .day__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 14px;
  border: 1px solid var(--tone-6); background: transparent; color: var(--bg); font: 500 14px/1 var(--font-text); cursor: pointer;
}
.day__play { min-width: 132px; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.day__play:hover { background: var(--tone-2); border-color: var(--tone-2); }
.day__btn { width: 40px; padding: 0; }
.day__btn--txt { width: auto; padding: 0 12px; font: 400 12px/1 var(--font-code); color: var(--tone-3); }
.day__btn:hover { border-color: var(--bg); }
.day__ico { display: block; flex: none; width: 10px; height: 12px; background: currentColor; }
.day__ico--play { clip-path: polygon(0 0, 20% 0, 20% 8%, 40% 8%, 40% 25%, 60% 25%, 60% 42%, 80% 42%, 80% 58%, 60% 58%, 60% 75%, 40% 75%, 40% 92%, 20% 92%, 20% 100%, 0 100%); }
.day__ico--pause { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.day__ico--prev, .day__ico--next { width: 8px; clip-path: polygon(50% 0, 75% 0, 75% 17%, 50% 17%, 50% 33%, 25% 33%, 25% 67%, 50% 67%, 50% 83%, 75% 83%, 75% 100%, 50% 100%, 50% 83%, 25% 83%, 25% 67%, 0 67%, 0 33%, 25% 33%, 25% 17%, 50% 17%); }
.day__ico--next { transform: scaleX(-1); }
.day__clock { display: flex; align-items: center; gap: 12px; }
.day__time { font: 500 22px/1 var(--font-code); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.day__tag { padding: 2px 8px; border: 1px dashed var(--tone-5); font: 500 11px/1.3 var(--font-code); color: var(--tone-3); }

/* ── chapters ── */
.day__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--tone-6); }
.day__steps li + li { border-left: 1px solid var(--tone-7); }
.day__steps button {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 14px 14px; border: 0; background: var(--tone-9); color: var(--tone-4); font: inherit; text-align: left; cursor: pointer;
}
.day__steps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.day__steps button:hover { background: var(--tone-8); }
.day__steps .is-done button { color: var(--bg); }
.day__steps .is-done button::after { background: var(--ok-bright); }
.day__steps button[aria-current="step"] { background: var(--tone-8); color: var(--bg); }
.day__steps button[aria-current="step"]::after { background: var(--bg); }
.day__n { font: 500 11px/1 var(--font-code); color: var(--ok-bright); }
.day__sn { font-size: 14px; font-weight: 500; line-height: 1.3; }

.day__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.day__stage { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; min-width: 0; }
.day__head { display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.day__ck { font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.day__h { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.day__p { font-size: 15px; line-height: 1.5; color: var(--tone-3); max-width: 60ch; }

/* ── the shop scene ── */
.street {
  position: relative; height: 230px; overflow: hidden; border: 1px solid var(--tone-6);
  background:
    linear-gradient(90deg, var(--tone-8) 0 36%, transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--tone-8) 39px 40px),
    var(--tone-9);
}
.street__k { position: absolute; top: 10px; font: 400 11px/1 var(--font-code); color: var(--tone-4); }
.street__k--out { left: 12px; } .street__k--door { left: 36%; transform: translateX(-50%); top: 10px; }
.street__k--in { left: 46%; } .street__k--till { right: 12px; }
.street__shelf { position: absolute; top: 44px; width: 18%; height: 8px; background: var(--tone-7); box-shadow: 0 30px 0 var(--tone-7); }
.street__shelf::before { content: ""; position: absolute; left: 8px; bottom: 8px; width: 60%; height: 14px; background: repeating-linear-gradient(90deg, var(--tone-5) 0 10px, transparent 10px 14px, var(--tone-3) 14px 22px, transparent 22px 28px); box-shadow: 0 30px 0 0 transparent; }
.street__shelf--a { left: 46%; } .street__shelf--b { left: 67%; width: 12%; }
.street__till { position: absolute; right: 18px; bottom: 18px; width: 64px; height: 40px; background: var(--tone-6); border-top: 6px solid var(--tone-4); }
.street__till::before { content: ""; position: absolute; left: 22px; top: -20px; width: 20px; height: 14px; background: var(--tone-4); }
.street__gate { position: absolute; left: calc(36% - 9px); top: 28px; bottom: 18px; width: 18px; background: var(--tone-4); border-left: 4px solid var(--tone-3); }
.street__beam { position: absolute; left: 3px; top: 8px; bottom: 8px; width: 4px; background: var(--tone-7); }
.street__beam.is-scan { animation: day-beam .5s steps(4); }
.street__beam[data-res="in"], .street__beam[data-res="buy"] { --beam: var(--ok-bright); }
.street__beam[data-res="out"] { --beam: var(--stop-bright); }
.street__beam[data-res="ask"] { --beam: var(--tone-9); }
@keyframes day-beam { 0%, 100% { background: var(--tone-7); } 25%, 75% { background: var(--beam, var(--tone-9)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--beam, var(--tone-9)) 35%, transparent); } }
.street__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, var(--tone-7) 0 8px, var(--tone-8) 8px 16px); border-top: 1px solid var(--tone-6); }
.street__crowd { position: absolute; inset: 0; }
.street__closed {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; background: var(--tone-9); border: 1px dashed var(--tone-5);
  font: 400 12px/1.4 var(--font-code); color: var(--tone-4); white-space: nowrap;
}

.vis { position: absolute; left: 0; bottom: 16px; width: 60px; margin-left: -30px; display: flex; flex-direction: column; align-items: center; gap: 3px; will-change: transform; }
.vis.is-gone { opacity: 0; transition: opacity .3s steps(3); }
.vis__fig { width: 60px; }
.vis__tag { padding: 1px 5px; background: var(--tone-9); border: 1px solid var(--tone-6); font: 500 10px/1.3 var(--font-code); color: var(--bg); white-space: nowrap; }
.vis--agent .vis__tag { background: var(--bg); border-color: var(--bg); color: var(--tone-9); }
.vis__res { display: none; padding: 1px 5px; font: 500 10px/1.3 var(--font-code); white-space: nowrap; color: var(--tone-9); }
.vis[data-res] .vis__res { display: block; }
.vis[data-res="in"] .vis__res, .vis[data-res="buy"] .vis__res { background: var(--ok-bright); }
.vis[data-res="out"] .vis__res { background: var(--stop-bright); }
.vis[data-res="ask"] .vis__res { background: var(--tone-9); color: var(--bg); border: 1px dashed var(--bg); }
.vis__float { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); padding: 1px 6px; background: var(--ok-bright); color: var(--tone-9); font: 500 11px/1.3 var(--font-code); white-space: nowrap; animation: day-float .8s steps(4) forwards; }
@keyframes day-float { from { transform: translate(-50%, 6px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -14px); } }

.day__door { margin-top: -8px; padding: 8px 12px; background: var(--tone-8); border: 1px solid var(--tone-7); color: var(--tone-2); font: 400 12px/1.5 var(--font-code); min-height: 34px; overflow-wrap: anywhere; }

/* ── chapter card ── */
.day__card { min-height: 280px; border: 1px solid var(--tone-6); padding: 20px; }
.card__k { font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.card__p { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--tone-3); }
.card__p code, .doorlog code { padding: 0 5px; background: var(--tone-8); font-size: 12px; color: var(--bg); }
.card__hint[data-res="ok"] { border: 1px solid var(--ok-bright); color: var(--ok-bright); }
.card__hint[data-res="stop"] { border: 1px solid var(--stop-bright); color: var(--stop-bright); }
.card__hint { margin-top: 14px; display: inline-block; padding: 6px 10px; border: 1px dashed var(--bg); font: 500 12px/1.3 var(--font-code); color: var(--bg); }

/* install */
.inst__path { font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.inst__app { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--tone-7); background: var(--tone-8); }
.inst__fig { width: 40px; }
.inst__name { font-weight: 500; font-size: 16px; }
.inst__desc { font-size: 13px; line-height: 1.4; color: var(--tone-3); }
.inst__btn { height: 40px; padding: 0 18px; border: 1px solid var(--ok-bright); background: var(--ok-bright); color: var(--tone-9); font: 500 14px/1 var(--font-text); cursor: pointer; }
.inst__btn:disabled { background: var(--tone-9); color: var(--ok-bright); cursor: default; }
.inst__prog { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.inst__bar { flex: 1; height: 12px; border: 1px solid var(--bg); }
.inst__bar i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--bg) 0 6px, transparent 6px 8px); transition: width .14s steps(2); }
.inst__pt { font: 400 12px/1 var(--font-code); color: var(--tone-3); }
.inst__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.inst__list li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; line-height: 1.4; color: var(--tone-5); }
.inst__list li::before { content: "–"; flex: none; width: 16px; font-family: var(--font-code); }
.inst__list li.is-on { color: var(--bg); }
.inst__list li.is-on::before { content: "✓"; color: var(--ok-bright); }
.inst__done { margin-top: 14px; display: inline-block; padding: 4px 12px; background: var(--ok-bright); color: var(--tone-9); font: 500 13px/1.3 var(--font-code); text-transform: uppercase; letter-spacing: .12em; }

/* door log */
.doorlog { list-style: none; margin: 10px 0 0; padding: 0; }
.doorlog__i { display: grid; grid-template-columns: 44px 8px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--tone-7); font-size: 13px; line-height: 1.4; }
.doorlog__i:first-child { border-top: 0; animation: day-in .3s steps(3); }
.doorlog__i::before { content: ""; grid-column: 2; grid-row: 1; width: 8px; height: 8px; background: var(--tone-5); align-self: center; }
.doorlog__t { grid-column: 1; grid-row: 1; font: 400 11px/1 var(--font-code); color: var(--tone-4); }
.doorlog__l { color: var(--tone-2); }
.doorlog__i--in::before, .doorlog__i--buy::before { background: var(--ok-bright); }
.doorlog__i--out::before { background: var(--stop-bright); }
.doorlog__i--ask::before { background: var(--tone-9); outline: 1px dashed var(--bg); }
.doorlog__i--idle { display: block; color: var(--tone-4); font-family: var(--font-code); font-size: 12px; }
.doorlog__i--idle::before { display: none; }

/* owner: limit bars */
.limit { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.limit__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; gap: 12px; align-items: center; font: 400 12px/1.3 var(--font-code); color: var(--tone-3); }
.limit__bar { height: 16px; background: var(--tone-8); }
.limit__bar i { display: block; height: 100%; background: var(--bg); }
.limit__row--over .limit__bar i { background: repeating-linear-gradient(90deg, var(--stop-bright) 0 6px, transparent 6px 8px); }
.limit__row b { font-weight: 500; text-align: right; color: var(--bg); }
.limit__row--over b { color: var(--stop-bright); }

/* the owner's phone, over the scene */
.phone {
  position: absolute; z-index: 3; right: 40px; top: 150px; width: 232px; padding: 8px; background: var(--bg); color: var(--tone-9);
  box-shadow: 0 -4px 0 -2px var(--bg), 0 4px 0 -2px var(--bg), -4px 0 0 -2px var(--bg), 4px 0 0 -2px var(--bg); /* pixel-rounded corners */
  transform: translateY(20px); opacity: 0; transition: transform .3s steps(4), opacity .2s steps(2);
}
.phone.is-on { transform: none; opacity: 1; }
.phone__bar { display: flex; justify-content: space-between; padding: 2px 6px 8px; font: 500 10px/1 var(--font-code); color: var(--tone-5); }
.phone__body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 12px; background: var(--tone-1); text-align: center; }
.phone__fig { width: 40px; }
.phone__q { font-family: var(--font-display); font-size: 18px; line-height: 1.25; color: var(--tone-9); }
.phone__q:focus-visible { outline-offset: 4px; }
.phone__why { font: 400 11px/1.4 var(--font-code); color: var(--tone-6); }
.phone__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin-top: 4px; }
.phone__btn { height: 40px; border: 1px solid var(--tone-4); background: transparent; color: var(--tone-9); font: 500 13px/1 var(--font-text); cursor: pointer; }
.phone__btn:hover { border-color: var(--tone-9); }
.phone__btn--ok { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.phone__btn--ok:hover { background: var(--tone-9); border-color: var(--tone-9); }
.phone__more { font: 400 10px/1.3 var(--font-code); color: var(--tone-5); }
.phone__more:empty { display: none; }

/* evidence file */
.exp2 { margin: 0; background: var(--bg); border: 1px solid var(--bg); font: 400 12.5px/1.4 var(--font-code); color: var(--tone-7); }
.exp2__top, .exp2__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 11px; color: var(--tone-5); }
.exp2__top { background: var(--tone-1); border-bottom: 1px solid var(--tone-2); }
.exp2__title { color: var(--ink); text-transform: uppercase; letter-spacing: .1em; }
.exp2__id { border: 1px solid var(--tone-3); padding: 0 6px; color: var(--tone-6); }
.exp2__rows { margin: 0; padding: 4px 0; }
.exp2__rows div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 16px; animation: day-print .25s steps(2) backwards; animation-delay: calc(var(--r) * 160ms); }
.day__card.is-printed .exp2__rows div { animation: none; }
.exp2__rows div + div { border-top: 1px dotted var(--tone-2); }
.exp2__rows dt { color: var(--tone-5); }
.exp2__rows dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.exp2__ok { color: var(--ok); }
.exp2__big { font-family: var(--font-display); font-size: 22px; line-height: 1.1; color: var(--ink); }
.exp2__stamp { display: inline-block; padding: 1px 8px; border: 1px solid var(--ok); color: var(--ok); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 500; }
.exp2__foot { border-top: 1px solid var(--tone-2); }
.exp2__hash { color: var(--tone-5); }
@keyframes day-print { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

/* chargeback */
.cb__bank { padding: 14px 16px; border: 1px solid var(--tone-6); border-left: 3px solid var(--bg); }
.cb__k { font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.cb__h { margin-top: 4px; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.cb__p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--tone-3); }
.cb__vs { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cb__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--tone-6); }
.cb__col--lose { border-style: dashed; }
.cb__col--win { border-color: var(--ok-bright); }
.cb__col .cb__p { margin: 0; flex: 1; }
.cb__res { font: 500 28px/1 var(--font-display); letter-spacing: -0.02em; color: var(--stop-bright); }
.cb__res small { font: 400 12px var(--font-code); color: var(--tone-4); letter-spacing: 0; }
.cb__res--ok { color: var(--ok-bright); }
.cb__tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid currentColor; font: 400 11px/1 var(--font-code); }
.cb__tag::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.cb__tag--stop { color: var(--stop-bright); } .cb__tag--ok { color: var(--ok-bright); }
.cb__btn { height: 40px; padding: 0 16px; border: 1px solid var(--bg); background: var(--bg); color: var(--tone-9); font: 500 14px/1 var(--font-text); cursor: pointer; }
.cb__btn:hover:not(:disabled) { background: var(--tone-2); }
.cb__btn:disabled { background: var(--tone-9); color: var(--tone-3); border-color: var(--tone-6); cursor: default; }

/* summary */
.sum__big { margin-top: 10px; font: 500 64px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ok-bright); }
.sum__cap { margin-top: 6px; font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.sum__list { list-style: none; margin: 14px 0 0; padding: 0; }
.sum__list li { padding: 6px 0; border-top: 1px dashed var(--tone-7); font-size: 14px; line-height: 1.45; }
.sum__list li::before { content: "› "; font-family: var(--font-code); color: var(--ok-bright); }
.sum__cta { margin-top: 16px; height: 44px; padding: 0 20px; border: 1px solid var(--bg); background: var(--bg); color: var(--tone-9); font: 500 15px/1 var(--font-text); cursor: pointer; }
.sum__cta:hover { background: var(--tone-2); }

/* inject events */
.day__inject { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--tone-6); }
.day__ik { font: 400 12px/1.3 var(--font-code); color: var(--tone-4); }
.day__ibtns { display: flex; flex-wrap: wrap; gap: 8px; }
.day__ibtn { height: 36px; padding: 0 14px; border: 1px solid var(--tone-6); background: var(--tone-9); color: var(--bg); font: 500 13px/1 var(--font-text); cursor: pointer; }
.day__ibtn::before { content: "+ "; font-family: var(--font-code); color: var(--ok-bright); }
.day__ibtn:hover:not(:disabled) { border-color: var(--bg); background: var(--tone-8); }
.day__ibtn:disabled { color: var(--tone-5); cursor: not-allowed; }
.day__ibtn:disabled::before { color: var(--tone-5); }

/* ── live panel (dashboard UI kit) ── */
.dp { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-left: 1px solid var(--tone-6); background: var(--tone-9); min-width: 0; transition: background .3s steps(3); }
.dp.is-focus { background: linear-gradient(90deg, var(--ok-bright) 3px, var(--tone-8) 3px); }
.dp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dp__h { font: 500 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.dp__sample { flex: none; padding: 2px 6px; border: 1px dashed var(--tone-5); font: 400 11px/1.3 var(--font-code); color: var(--tone-4); }
.dp__label { font: 400 11.5px/1.3 var(--font-code); letter-spacing: .02em; color: var(--tone-4); }
.dp__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--tone-6); border: 1px solid var(--tone-6); }
.dp__stat { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--tone-9); }
.dp__v { font: 500 30px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dp__v--stop { color: var(--stop-bright); }
/* the one light stat: what you no longer lose */
.dp__stat--dark { grid-column: 1 / -1; background: var(--bg); color: var(--ink); }
.dp__stat--dark .dp__label { color: var(--tone-5); }
.dp__stat--dark .dp__v { font-size: 40px; color: var(--ok); }
.dp__d { font: 400 11px/1.4 var(--font-code); color: var(--tone-5); }
.dp__block { display: flex; flex-direction: column; gap: 8px; }
.dp__bar { display: flex; height: 22px; border: 1px solid var(--tone-5); }
.dp__bar > span { display: block; height: 100%; transition: width .3s steps(3); }
.dp__bar-h { background: var(--tone-6); }
.dp__bar-s { background: repeating-linear-gradient(90deg, var(--bg) 0 2px, var(--tone-3) 2px 4px); }
.dp__bar-a { background: var(--bg); }
.dp__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 11.5px/1.3 var(--font-code); color: var(--tone-3); }
.dp__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.dp__legend b { font-weight: 500; color: var(--bg); }
.dp__rows, .dp__log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--tone-6); }
.dp__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "head name badge" "head how n"; gap: 2px 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--tone-7); }
.dp__row:first-child { border-top: 0; }
.dp__fig { grid-area: head; display: grid; place-items: center; width: 34px; height: 28px; background: var(--tone-8); border: 1px solid var(--tone-7); }
.dp__fig svg { width: 30px; height: auto; }
.dp__name { grid-area: name; font-size: 13px; line-height: 1.2; }
.dp__name b { font-weight: 500; }
.dp__name span { margin-left: 6px; font: 400 11px var(--font-code); color: var(--tone-4); }
.dp__how { grid-area: how; font: 400 11px/1.2 var(--font-code); color: var(--tone-3); }
.dp__n { grid-area: n; justify-self: end; font: 400 11px/1.2 var(--font-code); color: var(--tone-4); }
.dp__badge { grid-area: badge; justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border: 1px solid; font: 400 10.5px/1 var(--font-code); white-space: nowrap; }
.dp__badge::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.dp__badge--ok { color: var(--ok-bright); }
.dp__badge--ask { color: var(--tone-4); border-style: dashed; }
.dp__ev { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 7px 10px; border-top: 1px solid var(--tone-7); border-left: 3px solid var(--bg); font-size: 12.5px; line-height: 1.4; }
.dp__ev:first-child { border-top: 0; animation: day-in .3s steps(3); }
.dp__ev--ok { border-left-color: var(--ok-bright); }
.dp__ev--stop { border-left-color: var(--stop-bright); }
.dp__ev--ask { border-left-style: dashed; }
.dp__ev--agent { border-left-color: var(--tone-4); }
.dp__t { font: 400 11px/1.6 var(--font-code); color: var(--tone-4); }
.dp__empty { padding: 14px 12px; font: 400 12px/1.4 var(--font-code); color: var(--tone-4); border: 0; }

@keyframes day-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── responsive ── */
@media (max-width: 1180px) {
  .day__main { grid-template-columns: minmax(0, 1fr); }
  .dp { border-left: 0; border-top: 1px solid var(--tone-6); }
  .dp__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dp__stat--dark { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .day { margin-top: 40px; margin-inline: calc(var(--margin) * -1 + 8px); box-shadow: none; }
  .day__bar { flex-wrap: wrap; padding: 10px 12px; }
  .day__play { min-width: 0; flex: 1; }
  .day__clock { width: 100%; justify-content: space-between; }
  .day__steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .day__steps li { flex: none; scroll-snap-align: start; }
  .day__steps button { padding: 10px 14px 12px; }
  .day__sn { white-space: nowrap; font-size: 13px; }
  .day__stage { padding: 16px 12px; gap: 12px; }
  .day__head { min-height: 0; }
  .day__h { font-size: 22px; }
  .street { height: 200px; }
  .vis, .vis__fig { width: 44px; }
  .vis { margin-left: -22px; }
  .street__k--in { display: none; }
  .phone { right: 8px; left: 8px; width: auto; max-width: 300px; margin-inline: auto; }
  .day__card { padding: 14px; min-height: 0; }
  .inst__app { grid-template-columns: auto minmax(0, 1fr); }
  .inst__btn { grid-column: 1 / -1; }
  .inst__list { grid-template-columns: minmax(0, 1fr); }
  .doorlog__i { grid-template-columns: 40px 8px minmax(0, 1fr); }
  .doorlog__i code { grid-column: 3; justify-self: start; }
  .limit__row { grid-template-columns: 110px minmax(0, 1fr) 44px; }
  .cb__vs { grid-template-columns: minmax(0, 1fr); }
  .exp2__rows div { grid-template-columns: 92px minmax(0, 1fr); }
  .sum__big { font-size: 48px; }
  .dp { padding: 16px 12px; }
  .dp__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
