/* Daedalus — A's scenes re-skinned for paper; A's variable names mapped to B's tokens */
body.p-dd{--bg:var(--paper);--mute:var(--ink-2);--dim:var(--ink-3);--cold:#0637C8;--mono:var(--f-mono);--text:var(--f-body);--display:var(--f-display)}
.kicker { margin: 0 0 16px; }
.hero .d1 { font-size: clamp(54px, 8vw, 136px); }
.skills .txt { transition: opacity .3s; }
.card-open .skills .txt { opacity: 0; pointer-events: none; }
.hot.tag-only { pointer-events: none; color: var(--mute); }
.hot.tag-only::before { width: 6px; height: 6px; background: var(--dim); border-color: var(--dim); box-shadow: none; }

.shot { margin: 24px 0 0; transform-origin: 50% 50%; transition: transform .25s ease-out; max-width: 520px; }
.shot img { display: block; width: 100%; height: auto; }
.toolrow { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toolrow li { border: 1px solid var(--line); padding: 8px 10px; color: var(--ink); }

/* feature card */
.card { position: fixed; z-index: 45; left: var(--pad); top: 96px; max-height: calc(100vh - 170px); width: min(440px, calc(100vw - 2 * var(--pad))); overflow-y: auto;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--coral); padding: 22px 22px 18px;
  opacity: 0; transform: translateX(-14px); transition: opacity .28s, transform .28s cubic-bezier(.2,.7,.2,1); overscroll-behavior: contain; }
.card.open { opacity: 1; transform: none; }
.card-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; background: none; border: 0; color: var(--mute); font: 400 24px/1 var(--text); cursor: pointer; }
.card-x:hover { color: var(--coral); }
.card-kick { margin: 0 0 10px; color: var(--coral); }
.card-line { color: var(--ink); font-size: 15.5px; margin: 12px 0 0; }
.card-sim { margin-top: 16px; font: 400 12.5px/1.45 var(--mono); }
.card-sim:empty { display: none; }
.card-sim .note { margin: 0 0 8px; }
.card-shot { margin: 18px 0 0; border: 1px solid var(--line); background: #000; }
.card-shot img, .card-shot video { display: block; width: 100%; height: auto; }
.card-shot [hidden] { display: none; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; margin-top: 10px; }
.qs, .calls, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.qs li { padding: 7px 9px; border-left: 2px solid var(--cold); background: rgba(23,20,15,.04); animation: rise .3s ease-out; }
.qs li.ok, .steps li.ok { border-color: var(--cold); color: var(--cold); }
.calls li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-left: 2px solid var(--dim); background: rgba(23,20,15,.04); animation: rise .3s ease-out; }
.calls li b { font-weight: 400; text-align: right; }
.calls li.allow { border-color: var(--cold); } .calls li.allow b { color: var(--cold); }
.calls li.ask { border-color: #A86E00; } .calls li.ask b { color: #A86E00; }
.calls li.deny, .calls li.отклонено { border-color: var(--coral); } .calls li.deny b, .calls li.отклонено b { color: var(--coral); }
.steps li { padding: 5px 9px; border-left: 2px solid var(--dim); animation: rise .3s ease-out; }
.steps li.bad, .state.bad { color: var(--coral); border-color: var(--coral); }
.brk { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--mute); cursor: pointer; }
.brk input { accent-color: var(--coral); }
.bar { height: 8px; background: rgba(23,20,15,.1); margin: 10px 0; position: relative; }
.bar::after { content: ''; position: absolute; right: 0; top: -4px; bottom: -4px; width: 2px; background: var(--coral); }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.state { margin: 0; color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 760px) {
  .skills .txt { margin-top: 56svh; }
  .card { left: 10px; right: 10px; width: auto; top: auto; bottom: 64px; max-height: 70svh; transform: translateY(16px); }
  .shot { max-width: none; }
}

/* ===== feature scenes (update 09.11) ===== */
.scene .d2 { font-size: clamp(30px, 4.2vw, 70px); }
.hot.tag-only span { font-size: 12px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--ink); }
.lnk[aria-pressed="true"] { color: var(--coral); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-width: 560px; }
.presets button { font: 400 12px/1 var(--mono); color: var(--mute); background: var(--paper); border: 1px dashed var(--line); padding: 8px 9px; cursor: pointer; }
.presets button:hover { color: var(--ink); border-color: var(--ink); }
.cmdf, .pw { display: flex; gap: 10px; align-items: center; margin-top: 24px; max-width: 540px; flex-wrap: wrap; }
.cmdf input, .pw input { flex: 1; min-width: 160px; font: 400 15px/1 var(--mono); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--ink); padding: 12px 2px; outline: none; }
.cmdf input:focus, .pw input:focus { border-color: var(--coral); }
.pw label { color: var(--mute); width: 100%; font-size: 13px; }

.flow, .turns, .belt { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 5px; max-width: 540px; font-size: 13.5px; }
.flow li, .belt li { padding: 7px 10px; border-left: 2px solid var(--dim); background: var(--paper); animation: rise .3s ease-out both; }
.flow li.ok, .belt li.ok { border-color: var(--cold); color: var(--cold); }
.flow li.wait { border-color: #A86E00; color: #A86E00; }
.flow li.bad, .belt li.stop { border-color: var(--coral); color: var(--coral); background: rgba(255,107,87,.08); }
.flow { min-height: 11em; }
.belt { min-height: 9.5em; }

.turns { min-height: 8em; }
.turns li { display: grid; grid-template-columns: minmax(0,1fr) 54px; gap: 3px 10px; padding: 7px 10px; border-left: 2px solid var(--dim); background: var(--paper); animation: rise .3s ease-out both; }
.turns code { font: inherit; color: var(--ink); overflow-wrap: anywhere; }
.turns b { font-weight: 400; text-align: right; }
.turns span { grid-column: 1 / -1; color: var(--dim); }
.turns li.allow { border-color: var(--cold); } .turns li.allow b { color: var(--cold); }
.turns li.ask { border-color: #A86E00; } .turns li.ask b { color: #A86E00; }
.turns li.deny { border-color: var(--coral); } .turns li.deny b { color: var(--coral); }
.turns li.total { display: block; border: 0; background: none; padding-left: 0; color: var(--ink); }
.turns li.total.deny { color: var(--coral); }
.myrule { margin-top: 10px; text-align: left; line-height: 1.4; }

.cap { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; margin-top: 26px; max-width: 460px; }
.cap label { grid-column: 1 / -1; color: var(--mute); font-size: 13px; }
.cap input { width: 100%; accent-color: var(--coral); height: 28px; }
.cap b { font-weight: 400; color: var(--ink); font-size: 18px; }
.reach-st, .pw-out, .lease-st, .br-st, .door-st { min-height: 1.6em; margin: 10px 0 0; color: var(--ink); max-width: 46ch; font-size: 13.5px; }
.reach-st.bad, .door-st.bad { color: var(--coral); animation: shake .35s; }
.pw-out b, .fake-br b { color: var(--coral); font-weight: 400; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.fake-desk { position: relative; margin-top: 26px; max-width: 460px; height: 170px; border: 1px solid var(--line); background: var(--paper); }
.fw { position: absolute; font: 400 12px/1 var(--mono); color: var(--mute); background: var(--paper-2); border: 1px solid var(--line); padding: 26px 10px 10px; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, color .2s; }
.fw:nth-child(1) { left: 4%; top: 10%; width: 40%; height: 55%; }
.fw:nth-child(2) { left: 50%; top: 14%; width: 44%; height: 62%; }
.fw:nth-child(3) { left: 18%; top: 56%; width: 38%; height: 36%; padding-top: 10px; }
.fw:hover { color: var(--ink); }
.fw.held { border: 2px solid var(--coral); color: var(--ink); box-shadow: 0 0 0 3px rgba(255,107,87,.18); z-index: 2; }
.ag { position: absolute; left: 0; top: 0; width: 12px; height: 15px; z-index: 3; pointer-events: none; opacity: 0; background: var(--coral); clip-path: polygon(0 0, 0 100%, 30% 75%, 50% 100%, 65% 92%, 48% 68%, 85% 68%); transition: opacity .2s; }
.ag.on { opacity: 1; }
.ag.paused { opacity: .45; }
.ag.paused::after { content: 'пауза'; position: absolute; left: 14px; top: 10px; font: 400 10px/1 var(--mono); color: var(--coral); }
.keycap { display: inline-flex; gap: 4px; align-items: center; font: 400 12px/1 var(--mono); color: var(--ink); background: none; border: 1px solid var(--coral); padding: 8px 10px; cursor: pointer; }
.keycap:disabled { opacity: .35; cursor: default; }
.keycap kbd { font: inherit; border: 1px solid var(--line); border-bottom-width: 3px; padding: 3px 6px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; max-width: 560px; font-size: 13px; }
.cols b { display: block; font-weight: 400; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.cols ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; min-height: 8.5em; align-content: start; }
.cols li { padding: 6px 7px; background: rgba(23,20,15,.05); border-left: 2px solid var(--line); animation: rise .3s ease-out; }
.cols li i { display: block; font-style: normal; color: var(--coral); font-size: 12px; margin-top: 2px; }
.cols div:nth-child(3) li { border-color: var(--cold); color: var(--cold); }
.envl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--ink); font-size: 13.5px; }
.envl .btn { margin-top: 0; }
.who { margin-top: 12px; font-size: 13px; }

.term { margin: 24px 0 0; max-width: 520px; min-height: 11em; padding: 14px 16px; background: #17140F; border: 1px solid var(--line); border-top: 2px solid var(--coral); color: #EEF1F6; font-size: 13px; white-space: pre-wrap; }

.answer { font: 400 clamp(17px, 1.5vw, 21px)/1.7 var(--text); color: var(--ink); max-width: 34ch; margin: 26px 0 0; }
.chip-ev { max-width: 100%; white-space: normal; text-align: left; font: 400 12px/1.3 var(--mono); color: var(--cold); background: rgba(6,55,200,.06); border: 1px solid rgba(6,55,200,.45); padding: 4px 7px; cursor: pointer; vertical-align: 2px; }
.chip-ev:hover, .chip-ev[aria-pressed="true"] { color: var(--bg); background: var(--cold); }
.ev-open { min-height: 7.5em; margin-top: 16px; max-width: 420px; padding: 0 12px; border-left: 2px solid var(--line); color: var(--mute); font-size: 13.5px; transition: border-color .2s; }
.ev-open.on { border-color: var(--cold); color: var(--ink); padding: 10px 12px; background: var(--paper); }
.ev-open b { color: var(--cold); font-weight: 400; }

.fake-br { margin-top: 26px; max-width: 440px; border: 1px solid var(--line); background: var(--paper); padding: 0 0 14px; font-size: 13.5px; transition: border-color .25s, box-shadow .25s; }
.fake-br.mine { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,87,.2); }
.bar-url { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--mute); }
.fld { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 12px 12px 0; align-items: center; }
.fld span { color: var(--dim); }
.fld i { font-style: normal; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 1.6em; padding-bottom: 3px; }

.soon { color: var(--ink-2); border: 1px dashed var(--ink-3); display: inline-block; padding: 4px 8px; font-size: 13px; background: var(--paper); }

@media (max-width: 760px) {
  .selfdev .txt, .turn .txt, .keys .txt, .lease .txt, .team .txt, .dae .txt, .brw .txt, .auto .txt, .door .txt, .evid .txt { margin-top: 44svh; }
  .cols { grid-template-columns: 1fr 1fr 1fr; font-size: 12px; }
  .fake-desk { height: 150px; }
}
@media (max-width: 760px) { .scene .d2 { font-size: clamp(24px, 7.2vw, 34px); hyphens: manual; overflow-wrap: normal; } }

/* paper polish */
.card-kick{color:#C2381F}
.flow li.ok,.belt li.ok,.qs li.ok,.steps li.ok{color:#12936A;border-color:#12936A}
.turns li.allow b,.calls li.allow b{color:#12936A}.turns li.allow,.calls li.allow{border-color:#12936A}
.flow li.bad,.belt li.stop,.turns li.deny b,.turns li.total.deny,.calls li.deny b{color:#C2381F}
.chip-ev:hover,.chip-ev[aria-pressed="true"]{color:#fff}
.presets button{color:var(--ink);border-color:var(--ink-3)}
.cmdf input,.pw input{border:1.5px solid var(--ink);padding:12px}
.fake-desk,.fake-br{border:1.5px solid var(--ink)}
.fw{color:var(--ink)}
.hot.tag-only span{font-size:12px}
.vitrine .shot{border-color:#EEF1F6;box-shadow:8px 8px 0 var(--coral);max-width:560px}
.p-dd .hot:not(.tag-only) span{font-size:12px;padding:5px 7px}
.p-dd .hot:not(.tag-only) i{width:24px;height:24px}
.p-dd .hot:not(.tag-only) i::after{inset:6px}
.term{background:#17140F}
@media (max-width:760px){ .p-dd .hot:not(.tag-only):not([aria-pressed="true"]) span{display:none} .p-dd .hint::after{content:" Подписи — по нажатию."} html[lang="en"] .p-dd .hint::after{content:" Labels on tap."} }

/* ===== UX polish 10.11: legible small print on the feature slides (A1: ≥ 12.5 px mono, ≥ 4.5:1) ===== */
.flow li.ok,.belt li.ok,.qs li.ok,.steps li.ok{color:#0B7A55;border-color:#0B7A55}
.flow li.wait{color:#8A5A00;border-color:#8A5A00}
.turns li.allow b,.calls li.allow b{color:#0B7A55}.turns li.allow,.calls li.allow{border-color:#0B7A55}
.turns li.ask b,.calls li.ask b{color:#8A5A00}
.flow,.turns,.belt{font-size:14px}
.p-dd .turns code{font-size:1em;background:none;padding:0}
.turns span{color:var(--ink-2)}
.presets button{font-size:13.5px;padding:10px 11px;min-height:40px}
.brk{font-size:14px;color:var(--ink)}
.fw{font-size:14px}
.keycap{font-size:14px;padding:9px 11px;min-height:44px}
.keycap:disabled{opacity:1;border-style:dashed;border-color:var(--ink-3);color:var(--ink)}
.p-dd .btn:disabled{opacity:.7}
.p-dd .btn.sm{font-size:14px}
.cols{font-size:13.5px}
.cols li i{font-size:13px;color:#A82E17}
.cols b{color:var(--ink-2)}
.envl,.who{font-size:14px}
.reach-st,.pw-out,.lease-st,.br-st,.door-st{font-size:14px}
.chip-ev{font-size:13px}
.ev-open{font-size:14px}
.fake-br{font-size:14px}
.fld span{color:var(--ink-2)}
.term{font-size:14px}
.card-sim{font-size:13.5px}
.ag.paused::after{font-size:13px}
@media (max-width:760px){ .cols{font-size:12.5px} .cols li i{font-size:12px} }
.flow li.bad,.belt li.stop{color:#A82E17}
.hot.dd-cross{opacity:0!important;pointer-events:none!important}
.cap label{font-size:14px;color:var(--ink)}
/* demo containers keep their width inside the flex column .txt (they hold only absolute children or grow with content):
   without this the desk collapsed to a 22 px sliver (operator report 10.11) */
.fake-desk,.fake-br,.flow,.turns,.belt,.cols,.term,.cap,.ev-open,.cmdf,.pw,.presets,.answer{width:100%}
.fake-desk{min-width:260px}
/* entries slide in without fading: text is never half-transparent (contrast stays ≥ 4.5:1 at every moment) */
@keyframes rise { from { transform: translateY(4px); } }
/* the screenshot strip stays inside the content edges (it is a slide now; the rail lives in the gutter) */
.p-dd .strip-z .strip{margin-left:0;margin-right:0;padding-left:0;padding-right:8px}

/* P1 10.11: «Экраны» is an obvious horizontal gallery — arrows, counter, hint, an edge fade where more cards wait */
.strip-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;color:var(--ink-2)}
.strip-b{width:44px;height:44px;border:2px solid var(--ink);background:var(--paper);color:var(--ink);font:700 18px/1 var(--f-body);cursor:pointer;box-shadow:3px 3px 0 var(--ink)}
.strip-b:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--coral)}
.strip-b:disabled{color:#6B6357;border-color:#6B6357;border-style:dashed;cursor:default;box-shadow:none}
.strip-n{min-width:3.6em;text-align:center;color:var(--ink)}
.strip-n b{font-weight:700}
.strip-h{margin-left:6px}
.p-dd .strip-z .strip{cursor:grab}
.p-dd .strip-z .strip.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.p-dd .strip-z .strip.dragging img{pointer-events:none}
.p-dd .strip-z .strip.more-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 90px),rgba(0,0,0,.18));mask-image:linear-gradient(90deg,#000 calc(100% - 90px),rgba(0,0,0,.18))}
.p-dd .strip-z .strip.more-l.more-r{-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.18),#000 70px,#000 calc(100% - 90px),rgba(0,0,0,.18));mask-image:linear-gradient(90deg,rgba(0,0,0,.18),#000 70px,#000 calc(100% - 90px),rgba(0,0,0,.18))}
.p-dd .strip-z .strip.more-l:not(.more-r){-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.18),#000 70px);mask-image:linear-gradient(90deg,rgba(0,0,0,.18),#000 70px)}
@media (max-width:760px){ .strip-h{display:none} }

/* P1 10.11: lease windows look like windows — a title bar with the window name and three dots, content lines below */
.fw, .fw:nth-child(3) { padding: 0 8px 0 44px; height: auto; display: flex; align-items: flex-start; justify-content: flex-start; overflow: hidden; background: var(--paper);
  font: 500 13px/24px var(--mono); text-align: left; box-shadow: 3px 3px 0 var(--ink); }
.fw:nth-child(1) { height: 55%; } .fw:nth-child(2) { height: 62%; } .fw:nth-child(3) { height: 38%; }
.fw::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; border-bottom: 1.5px solid var(--ink); background:
  radial-gradient(circle at 10px 12px, var(--ink) 3px, transparent 3.5px), radial-gradient(circle at 21px 12px, var(--ink-3) 3px, transparent 3.5px),
  radial-gradient(circle at 32px 12px, var(--ink-3) 3px, transparent 3.5px), var(--paper-2); z-index: -1; }
.fw::after { content: ""; position: absolute; left: 10px; right: 12px; top: 34px; bottom: 8px;
  background: repeating-linear-gradient(180deg, rgba(23,20,15,.16) 0 4px, transparent 4px 13px); -webkit-mask-image: linear-gradient(90deg, #000 70%, rgba(0,0,0,.35)); mask-image: linear-gradient(90deg, #000 70%, rgba(0,0,0,.35)); }
.fw:nth-child(1)::after { background: repeating-linear-gradient(90deg, transparent 0 33%, rgba(23,20,15,.14) 33% calc(33% + 1px)), repeating-linear-gradient(180deg, rgba(23,20,15,.14) 0 1px, transparent 1px 12px); }
.fw:nth-child(3)::after { background: repeating-linear-gradient(180deg, rgba(14,122,87,.55) 0 3px, transparent 3px 11px); right: 40%; }
.fw { isolation: isolate; }
.fw.held { box-shadow: 4px 4px 0 var(--coral); }
.fw.held::before { background: radial-gradient(circle at 10px 12px, #C2381F 3px, transparent 3.5px), radial-gradient(circle at 21px 12px, var(--ink-3) 3px, transparent 3.5px),
  radial-gradient(circle at 32px 12px, var(--ink-3) 3px, transparent 3.5px), #FBE3DD; }
/* P1 10.11: the team board fills itself when the slide is shown — reserve its final height (no layout shift) */
.team .cols{min-height:320px}
@media (max-width:370px){.team .cols{min-height:358px}}

/* language switch RU / EN in the header (integration P2) */
.p-dd .nav .lang{display:inline-flex;gap:2px;margin-left:6px;font:500 13px/1 var(--f-mono)}
.p-dd .nav .lang a{min-height:40px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--ink-2)}
.p-dd .nav .lang a[aria-current]{color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--coral);text-underline-offset:5px}
html.hdr-night .p-dd .nav .lang a,.hdr-night .nav .lang a{color:inherit}
/* 320–380 px: the header keeps the download button; the language switch moves to the footer line */
@media (max-width:430px){ .p-dd .nav [data-dd-lang]{display:none} }
@media (max-width:360px){ .p-dd .nav .home b{display:none} }

/* «Экраны»: full-width carousel (operator 10.11) — the strip spans the whole viewport, one large screen
   centred, its neighbours peek in at the sides; no fade masks over the screenshots. */
.p-dd .strip-z{overflow-x:clip;padding-top:clamp(92px,10vh,112px);padding-bottom:clamp(40px,5vh,72px)}
.p-dd .strip-z .strip{--sw:min(1180px,74vw,calc((100svh - 440px) * 1.6));margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding:6px calc((100vw - var(--sw)) / 2) 26px;gap:clamp(18px,2.4vw,36px);scroll-snap-type:x mandatory;-webkit-mask-image:none!important;mask-image:none!important}
.p-dd .strip-z .strip figure{flex:0 0 var(--sw);scroll-snap-align:center}
html.js .p-dd .strip-z .strip figure img{transition:opacity .35s}
html.js .p-dd .strip-z .strip figure:not(.cur) img{opacity:.5}
.p-dd .strip-z .strip figcaption{font-size:clamp(15px,1.3vw,19px);padding:14px 18px}
.p-dd .strip-z .strip-bar{justify-content:center}
@media (max-width:760px){.p-dd .strip-z .strip{--sw:88vw}}
@media (prefers-reduced-motion:reduce){html.js .p-dd .strip-z .strip figure img{transition:none}}
