/* The one top bar and lower bar of the Living programs (Hiroshi, 05.11.2026, mockup 3). Written once.
   The values are the site's own header values (scene-controls.css, scenes.css, site-sound.css, panels.css),
   so a program looks like living-architecture.ai: Living Sans 11px, #b6c7d1, 44px buttons, 49px top bar.
   "Не правим ширини, не правим глупости": no new widths or decorations beyond mockup 3. */
.app-shell,.app-music{--shell-bg:#050a10;--shell-ink:#e0ebf1;--shell-muted:#8b9fae;--shell-border:#20323e;--shell-panel:#0c151f;--shell-accent:#a1d8e9;--shell-nav:#b6c7d1;--shell-lit:#e9f5fa;--shell-dim:#5f717f;--shell-tool:#ced9e2;--shell-teal:#83c9cf;--shell-quiet:#82939f}
.app-shell [hidden],.app-music[hidden],.app-music [hidden]{display:none!important}

/* The page: top bar, lower bar, the program's own field, the credit at the very bottom. */
.app-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;height:100svh}
.app-shell>.app-top{grid-row:1;grid-column:1}
.app-shell>.app-bar{grid-row:2;grid-column:1}
.app-shell>.app-main{grid-row:3;grid-column:1;min-width:0;min-height:0}
.app-shell>.app-window{grid-row:3;grid-column:1}
.app-shell>.app-credit{grid-row:4;grid-column:1}

/* 1. TOP BAR: the site's header (49px), its clouds, its words. „Living Architecture“ at the left (it opens the menu),
   the logos of the programs in the middle, the sections and ▶ ■ at the right (Hiroshi, 05.11.2026, 20:12). */
.app-top{position:relative;isolation:isolate;z-index:30;display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);grid-template-areas:'start family end';align-items:center;gap:0 10px;min-height:49px;padding:2px clamp(12px,1.2vw,24px);background:#030b10;border-bottom:1px solid var(--shell-border);color:var(--shell-nav);font:400 11px/1.4 "Living Sans",system-ui,sans-serif;white-space:nowrap}
.app-top::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/living-clouds-01.png') center 53%/100% auto no-repeat;opacity:.3;mask-image:linear-gradient(to right,transparent,#000 18%,#000 78%,transparent),linear-gradient(to bottom,transparent 0 38%,#000 65%);mask-composite:intersect}
.app-start{grid-area:start;justify-self:start;display:flex;align-items:center;gap:2px;min-width:0}

/* ≡ opens the menu (the site's dropdown box) and „Living Architecture“ goes to the site, as on the site's header
   (scene-controls.css .living-wordmark-art: the same picture, crop and size). No box around either: pointed at or
   open, they light up with the site's two fine lines, as the other words do. */
.app-menu{position:relative;flex:none}
.app-menu>summary,.app-home{position:relative;display:flex;align-items:center;min-height:44px;padding:0 6px;color:var(--shell-nav);text-decoration:none;cursor:pointer;transition:color .18s}
.app-menu>summary{list-style:none}
.app-menu>summary::-webkit-details-marker{display:none}
:is(.app-menu>summary,.app-home)::before,:is(.app-menu>summary,.app-home)::after{content:'';position:absolute;left:9px;right:9px;height:1px;background:linear-gradient(90deg,transparent,#b9dae9 20%,#b9dae9 80%,transparent);opacity:0;transform:scaleX(.4);transition:transform .22s ease,opacity .22s ease;pointer-events:none}
:is(.app-menu>summary,.app-home)::before{top:2px}
:is(.app-menu>summary,.app-home)::after{bottom:2px}
:is(.app-menu>summary,.app-home):is(:hover,:focus-visible)::before,:is(.app-menu>summary,.app-home):is(:hover,:focus-visible)::after,.app-menu[open]>summary::before,.app-menu[open]>summary::after{opacity:1;transform:scaleX(1)}
:is(.app-menu>summary,.app-home):is(:hover,:focus-visible),.app-menu[open]>summary{color:var(--shell-lit)}
:is(.app-menu>summary,.app-home):focus-visible{outline:1px solid #b9dae9;outline-offset:2px}
.app-menu-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.app-wordmark{position:relative;display:block;width:clamp(240px,30vw,500px);aspect-ratio:3850/180;overflow:hidden;opacity:.55;transition:opacity .18s;pointer-events:none;user-select:none}
.app-wordmark>img{position:absolute;display:block;width:112.363636%;max-width:none;height:auto;left:-12.363636%;top:-53.333333%}
.app-home:is(:hover,:focus-visible) .app-wordmark{opacity:.95}
.app-unseen{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app-menu-list{position:absolute;left:0;top:calc(100% + 3px);z-index:1001;display:flex;flex-direction:column;min-width:186px;max-width:calc(100vw - 28px);padding:6px;background:rgb(8,14,18)}
.app-menu-list>:is(button,a){display:flex;align-items:center;gap:6px;width:100%;min-height:0;margin:0;padding:10px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--shell-nav);font:inherit;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer}
.app-menu-list>:is(button,a):is(:hover,:focus-visible){color:var(--shell-lit);background:#bad8e512;outline:none}
.app-menu-list>.app-menu-rule{height:1px;margin:6px 12px;background:#91b6c933}
.app-arrow,.app-count{color:#e6c795}
.app-count{font-variant-numeric:tabular-nums}

/* Words in the bars: the site's navigation buttons, with its two fine lines on hover. */
.app-word{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:8px 6px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--shell-nav);font:inherit;white-space:nowrap;cursor:pointer}
.app-word::before,.app-word::after{content:'';position:absolute;left:9px;right:9px;height:1px;background:linear-gradient(90deg,transparent,#b9dae9 20%,#b9dae9 80%,transparent);opacity:0;transform:scaleX(.4);transition:transform .22s ease,opacity .22s ease;pointer-events:none}
.app-word::before{top:2px}
.app-word::after{bottom:2px}
.app-word:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--shell-lit);background:transparent}
.app-word:is(:hover,:focus-visible,[aria-expanded=true])::before,.app-word:is(:hover,:focus-visible,[aria-expanded=true])::after{opacity:1;transform:scaleX(1)}
.app-word:focus-visible{outline:1px solid #b9dae9;outline-offset:2px}
.app-word:disabled{color:var(--shell-dim);cursor:default}
.app-word:disabled::before,.app-word:disabled::after{opacity:0}

/* In the middle: the logos of Dance and Sketch, the current one shown clearly and the other dimmed until pointed at;
   then Memory, still a word. */
.app-family{grid-area:family;justify-self:center;display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
.app-family>.app-word{color:var(--shell-dim)}
.app-family>.app-word[aria-current=page]{color:var(--shell-lit);cursor:default}
.app-family>.app-word[aria-current=page]::before,.app-family>.app-word[aria-current=page]::after{opacity:0}
.app-family>.app-word:is(:hover,:focus-visible){color:var(--shell-lit)}
.app-add{margin-left:0;color:#90a6b3;font-size:10px}
.app-family>.app-program{padding:4px 8px}
.app-program-logo{display:block;width:auto;height:32px;opacity:.42;transition:opacity .18s;pointer-events:none;user-select:none}
.app-family>.app-program[aria-current=page] .app-program-logo{opacity:1}
.app-family>.app-program:is(:hover,:focus-visible) .app-program-logo{opacity:.85}
.app-top-end{grid-area:end;justify-self:end;display:flex;align-items:center;gap:0 10px;min-width:0}
.app-sections{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;min-width:0}
.app-sections>.app-presence{color:#929ba3}

/* ▶ ■: the site's music buttons, last, with no line before them. */
.app-music-controls{display:flex;align-items:center;gap:0}
.app-music-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid transparent;border-radius:50%;background:transparent;box-shadow:none;color:#8e9ba3;cursor:pointer;transition:color .18s,background .18s,border-color .18s}
.app-music-button svg{display:block;width:24px;height:24px;flex:0 0 24px;fill:currentColor;stroke:none}
.app-music-button:hover{color:#bac6cc;background:#b0d7e414;border-color:#94bbcc3d}
.app-music-button[aria-expanded=true]{color:#a5b4bc}
.app-music-button:focus-visible{outline:2px solid #b6deec;outline-offset:3px}
.app-music-button:disabled{opacity:.35;cursor:default}

/* 2. LOWER BAR, always there: the main tools at the left, under „Living Architecture“, in a fixed order; a pressed
   tool turns teal and its sub-tools open in the middle of the bar, always in the same place; nothing else moves
   (Hiroshi, 05.11.2026, 20:12: „…главните… отляво… няма да се мърдат. Директно по средата ще излизат инструментите…“). */
.app-bar{position:relative;z-index:25;display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);grid-template-areas:'tools subs end';align-items:center;gap:0 14px;min-height:45px;padding:0 clamp(12px,1.2vw,24px);background:#030b10;border-bottom:1px solid var(--shell-border);color:var(--shell-nav);font:400 11px/1.4 "Living Sans",system-ui,sans-serif;white-space:nowrap}
.app-tools{grid-area:tools;justify-self:start;display:flex;align-items:center;gap:6px;min-width:0}
.app-tool{display:flex;align-items:center}
.app-subs{grid-area:subs;justify-self:center;display:flex;align-items:center;min-width:0}
.app-tool-main{display:inline-flex;align-items:center;gap:6px;height:36px;min-width:36px;margin:0;padding:0 9px 0 6px;border:1px solid transparent;border-radius:5px;background:transparent;box-shadow:none;color:var(--shell-tool);font:inherit;cursor:pointer;transition:color .18s,background .18s}
.app-tool-main svg{display:block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.app-tool-main:hover{color:#e8f3f1;background:#b0d7e414}
.app-tool-main[aria-expanded=true]{color:var(--shell-teal);background:#83c9cf1f;border-color:#83c9cf55}
.app-tool-main:focus-visible{outline:2px solid #b6deec;outline-offset:2px}
.app-tool-main:disabled{opacity:.5;cursor:default}
/* Icons only (Sketch's choice in mockup 3): the word stays for screen readers and as the title. */
.app-shell[data-tool-words=false] .app-tool-main{justify-content:center;width:36px;padding:0}
.app-shell[data-tool-words=false] .app-tool-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app-sub{display:flex;align-items:center;gap:2px}
.app-sub-items{display:flex;align-items:center;gap:2px}
.app-fold{display:grid;place-items:center;width:28px;height:30px;margin:0 0 0 4px;padding:0;border:1px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--shell-quiet);cursor:pointer}
.app-fold svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.app-fold:hover{color:#e8f3f1}
.app-fold:focus-visible{outline:2px solid #b6deec;outline-offset:2px}

/* Sub-tools the programs share: size dots, a range with its value, a short field, a quiet note. */
.app-sizes{display:flex;align-items:center;min-width:0;margin:0;padding:0;border:0}
.app-sizes>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app-size{position:relative;display:grid;place-items:center;width:28px;height:42px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--shell-tool);cursor:pointer}
.app-size>span{display:block;width:var(--dot,5px);height:var(--dot,5px);border-radius:50%;background:currentColor}
.app-size[aria-pressed=true]{color:var(--shell-teal)}
.app-size[aria-pressed=true]::after{content:'';position:absolute;bottom:0;width:3px;height:3px;border-radius:50%;background:var(--shell-teal)}
.app-size:focus-visible{outline:2px solid #b6deec;outline-offset:-2px}
.app-range{display:flex;align-items:center;gap:6px;padding:0 6px;color:var(--shell-tool)}
.app-range input{width:90px;height:14px;margin:0;accent-color:var(--shell-teal);cursor:pointer}
.app-range output{min-width:44px;color:var(--shell-quiet);font-variant-numeric:tabular-nums}
.app-field{display:flex;align-items:center;gap:8px;padding:0 6px;color:var(--shell-nav);cursor:text}
.app-field :is(input,select){height:28px;margin:0;padding:0 8px;background:var(--shell-bg);color:var(--shell-tool);border:1px solid var(--shell-border);border-radius:4px;font:inherit}
.app-field input{width:84px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.app-field select{padding:0 4px;cursor:pointer}
.app-field input::placeholder{color:#6f8593}
.app-field :is(input,select):focus-visible{outline:2px solid #b6deec;outline-offset:2px}
.app-field :is(input,select):disabled{opacity:.5;cursor:default}
.app-sub-note{padding:0 6px;color:var(--shell-quiet);white-space:normal}

/* The right end, the same in every program: Нова, Запази (with the save sign), Изпрати, ×. */
.app-end{grid-area:end;justify-self:end;display:flex;align-items:center;gap:0}
.app-save-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
/* 0.1.12: Нова and Изпрати carry an icon for the phone; on a wider screen they stay words, as before. */
.app-end-icon{display:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.app-menu-list>.app-menu-phone{display:none}
.app-end>.app-close{margin-left:6px;padding:1px 7px;font-size:22px;line-height:1}
.app-end>.app-close::before,.app-end>.app-close::after{display:none}
.app-ask{display:flex;align-items:center;gap:0}
.app-ask-question{padding:0 8px 0 6px;color:var(--shell-lit);white-space:normal}

/* The status line sits just under the lower bar, at the right, as the program's old one did. */
.app-status{position:absolute;top:100%;right:clamp(12px,1.2vw,24px);max-width:min(520px,60%);margin:6px 0 0;color:#9ca8b6;font:400 10px/1.6 "Living Sans",system-ui,sans-serif;text-align:right;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.app-status:empty{display:none}

/* 3. THE CREDIT, small, at the very bottom (it replaces the old longer caption). */
.app-credit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:40px;margin:0;padding:0;border:0;color:#9ca8b6;text-align:center;line-height:1.35;pointer-events:none;user-select:none}
.app-credit-mark{position:relative;display:block;width:180px;aspect-ratio:3850/180;overflow:hidden;opacity:.55;font-size:0}
.app-credit-mark>img{position:absolute;display:block;width:112.363636%;max-width:none;height:auto;left:-12.363636%;top:-53.333333%}
.app-credit>small{display:block;font:400 8px/1.35 "Living Sans",system-ui,sans-serif;letter-spacing:.05em;opacity:.8}

/* 4. THE SITE'S LEFT WINDOW (panels.css, scenes.css): Hiroshi Rinzai, Обратна връзка, Вход. */
.app-window{position:relative;z-index:12;align-self:stretch;justify-self:start;display:flex;flex-direction:column;width:calc((100vw - 78px)*.34 - 5px);min-width:0;min-height:0;margin:64px 0 12px 18px;background:color-mix(in srgb,var(--shell-panel) 91%,transparent);border:1px solid var(--shell-border);border-radius:9px;box-shadow:0 18px 60px #0002;backdrop-filter:blur(12px);color:var(--shell-ink);font:400 12px/1.65 "Living Sans",system-ui,sans-serif;animation:app-arrive .3s ease-out}
@keyframes app-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.app-window-head{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;padding:20px 18px 16px;border-bottom:1px solid var(--shell-border)}
.app-window-eyebrow{display:block;font-size:8px;letter-spacing:.18em;color:var(--shell-muted)}
.app-window h2{margin:9px 0 0;font:normal 21px/1.25 Georgia,serif;color:var(--shell-ink);overflow-wrap:anywhere}
.app-window-actions{display:flex;gap:3px;flex-shrink:0}
.app-window-actions>button{min-width:44px;min-height:44px;padding:1px 7px;border:0;border-radius:0;background:transparent;color:var(--shell-ink);font:400 22px/1 "Living Sans",system-ui,sans-serif;cursor:pointer}
.app-window-actions>button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}
/* A program not here yet (Memory) is one line: the window is only as tall as its content (hard check T18). */
.app-window[data-compact=true]{align-self:start}
.app-window-body{flex:1;min-height:0;padding:18px;overflow:auto;overscroll-behavior:contain}
.app-window-body p{margin:0 0 14px;color:var(--shell-muted)}
.app-window-body h3{margin:4px 0 12px;font:normal 21px/1.35 Georgia,serif;color:var(--shell-ink)}
.app-window .app-button{display:inline-flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:10px 14px;border:1px solid var(--shell-border);border-radius:5px;background:var(--shell-panel);color:var(--shell-ink);font:inherit;text-decoration:none;cursor:pointer}
.app-window .app-button:hover:not(:disabled){border-color:var(--shell-accent)}
.app-window .app-button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:4px}
.app-window .app-button:disabled{opacity:.5;cursor:not-allowed}
.app-window .app-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:16px}
.app-window .app-tabs>.app-button{padding:7px 9px;font-size:10px}
.app-window .app-tabs>.app-button[aria-pressed=true]{border-color:var(--shell-accent);color:var(--shell-accent)}
.app-window .app-actions{display:flex;flex-wrap:wrap;gap:8px}
.app-window .app-form>label{display:block;margin:12px 0 5px;font-size:13px}
.app-window .app-form>.app-check{display:flex;align-items:center;gap:8px;font-size:12px}
.app-window textarea{display:block;width:100%;min-height:90px;max-height:220px;margin:8px 0 12px;padding:13px;resize:vertical;background:var(--shell-bg);color:var(--shell-ink);border:1px solid var(--shell-border);border-radius:6px;font:inherit;line-height:1.5}
.app-window textarea::placeholder{color:#6f8593}
.app-window textarea:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}
.app-window .app-form>.app-button{margin-top:10px}
.app-window .app-muted{margin-top:10px;font-size:12px;color:var(--shell-muted)}
.app-window .app-muted:empty{display:none}
.app-window .app-agent{margin-top:26px;padding-top:6px;border-top:1px solid var(--shell-border)}
.app-window .app-agent .app-actions{margin-top:14px}
.app-window .app-agent-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--shell-border)}
.app-window .app-agent-row>span:last-child{color:var(--shell-muted)}

/* 5. THE SITE'S MUSIC WINDOW (site-sound.css): one song; no forward, no back, no playlist. */
.app-music{position:fixed;top:98px;right:16px;z-index:2000;box-sizing:content-box;width:480px;max-height:calc(100dvh - 56px);overflow:auto;padding:12px;border:0;outline:1px solid #91b6c95c;border-radius:6px;background:#071219fa;box-shadow:0 18px 45px #0009;color:#d3e4ed;white-space:normal;font:400 12px/18px "Living Sans",system-ui,sans-serif}
.app-music-head{display:flex;align-items:center;gap:4px;height:44px;margin-bottom:8px;touch-action:none;cursor:grab;user-select:none}
.app-music-head>h2{flex:1;min-width:0;margin:0;font:500 13px/20px "Living Sans",system-ui,sans-serif;letter-spacing:.03em}
.app-music-drag{display:block;width:100%;height:44px;margin:0;padding:0 4px;border:0;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:transparent;box-shadow:none;color:inherit;font:inherit;letter-spacing:inherit;cursor:grab;touch-action:none}
.app-music-drag:hover{background:#a7cfdf0a;color:#fff}
.app-music[data-dragging=true] :is(.app-music-head,.app-music-drag){cursor:grabbing}
.app-music :is(.app-music-close,.app-music-size){display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;box-shadow:none;color:#c9e0ec;font:24px/1 system-ui;cursor:pointer}
.app-music :is(.app-music-close,.app-music-size):hover{background:#a7cfdf15;color:#fff}
.app-music .app-music-size svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.app-music :is(button,a):focus-visible{outline:2px solid #b6deec;outline-offset:2px}
.app-music-player{width:480px;height:270px;background:#02080d}
.app-music-player iframe{display:block;width:100%;height:100%;min-width:200px;min-height:200px;border:0}
.app-music-status{margin:12px 0 0;line-height:18px;color:#b6cbd8}
.app-music-external{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:#c2e2f1;text-underline-offset:4px}
.app-music-external:hover{color:#fff}

/* Narrower windows. The top bar takes two rows, as the site's header does: „Living Architecture“, the logos and
   ▶ ■ in the first, the sections in the second. The open tool's sub-tools take a second row just under the lower
   bar, centred, over the top of the field: the main tools, the right end and the field never move when a tool opens. */
/* 09.11.2026: four logos in the middle (Dance · Sketch · Library · Memory), so they and the wordmark are smaller under
   1500 px, the sections take the second row from 1240 px (was 1100), and the logos their own row from 820 px. */
@media(max-width:1500px){
 .app-program-logo{height:26px}
 .app-wordmark{width:clamp(180px,18vw,300px)}
}
@media(max-width:1240px){
 .app-top{grid-template-areas:'start family music' 'sections sections sections'}
 .app-top-end{display:contents}
 .app-sections{grid-area:sections;justify-content:center}
 .app-music-controls{grid-area:music;justify-self:end}
 .app-wordmark{width:clamp(180px,24vw,260px)}
}
@media(max-width:820px){
 .app-top{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'start music' 'family family' 'sections sections'}
}
@media(max-width:1279px){
 .app-bar{grid-template-columns:minmax(max-content,1fr) minmax(max-content,1fr);grid-template-areas:'tools end'}
 .app-subs{position:absolute;left:0;right:0;top:calc(100% + 1px);z-index:2;justify-content:center;flex-wrap:wrap;min-height:45px;padding:2px clamp(12px,1.2vw,24px);background:#030b10;border-bottom:1px solid var(--shell-border)}
 .app-bar:not(.has-open-tool)>.app-subs{display:none}
 .app-sub{flex-wrap:wrap;justify-content:center}
}
@media(max-width:640px){
 .app-top{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'start music' 'family family' 'sections sections';gap:0 4px;padding:2px 8px}
 .app-wordmark{width:min(50vw,210px)}
 .app-program-logo{height:26px}
 /* The lower bar may take two rows on a phone: the right end goes under the tools when they do not fit side by side. */
 .app-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 6px}
 .app-end{margin-left:auto}
}
/* Phone (mockup 3): icons only in the lower bar, one row; the words stay for screen readers. */
@media(max-width:600px){
 .app-family>.app-word{padding:8px 5px}
 .app-family>.app-program{padding:4px 5px}
 .app-program-logo{height:22px}
 /* 09.11.2026: four logos fill a phone's row, so Memory's „Добави“ shows only in its short page (a press still opens it). */
 .app-add{display:none}
 .app-bar{gap:0 2px;padding:0 6px}
 .app-shell .app-tool-main{justify-content:center;width:36px;padding:0}
 .app-shell .app-tool-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .app-end>.app-word{padding:8px 5px}
 .app-end>.app-close{padding:1px 7px}
 /* 0.1.12 (hard checks B07, V11): the right end as icons in the one lower row; the three sections move into ≡. */
 .app-end>.app-word{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:44px}
 .app-end-icon{display:block}
 .app-end-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .app-bar{flex-wrap:nowrap}
 .app-top{grid-template-areas:'start music' 'family family'}
 .app-sections{display:none}
 .app-menu-list>.app-menu-phone{display:flex}
 .app-credit{height:34px}
 .app-credit-mark{width:140px}
 .app-window{justify-self:stretch;width:auto;margin:60px 36px 8px 8px}
 .app-music{max-height:calc(100dvh - 48px)}
}
@media(max-width:700px){.app-window{justify-self:stretch;width:auto;margin:60px 36px 8px 8px}}
@media(prefers-reduced-motion:reduce){.app-word::before,.app-word::after,.app-menu>summary,.app-menu>summary::before,.app-menu>summary::after,.app-home,.app-home::before,.app-home::after,.app-music-button,.app-wordmark,.app-program-logo{transition:none}.app-window{animation:none}}

/* 0.1.17 (Hiroshi, 10.11.2026). The question in the middle of the screen: „Искате ли да запишете картинката?“ and the
   other short questions and notes of the site's pages. Large words, three plain buttons, the page dimmed behind. */
.app-modal-layer{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px;background:#01060ab8;font:400 15px/1.45 "Living Sans",system-ui,sans-serif}
.app-modal{box-sizing:border-box;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:26px 26px 22px;border:1px solid #3d5a6b;border-radius:10px;background:#07121a;color:#e9f5fa;box-shadow:0 24px 80px #000c;text-align:center}
.app-modal-text{margin:0 0 20px;font-size:20px;line-height:1.35;color:#f2fafd;white-space:pre-line}
.app-modal-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.app-modal .app-button{display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:46px;margin:0;padding:10px 18px;border:1px solid #47687a;border-radius:6px;background:#0d1e29;color:#e9f5fa;font:inherit;font-size:16px;text-decoration:none;cursor:pointer}
.app-modal .app-button:hover{border-color:#b9dae9;background:#12293a}
.app-modal .app-button:focus-visible{outline:2px solid #b9dae9;outline-offset:3px}
.app-modal .app-modal-primary{border-color:#b9dae9;background:#16384c;color:#fff}
.app-modal-list{display:flex;flex-direction:column;gap:6px;max-height:min(46dvh,360px);overflow:auto;margin:0 0 18px;padding:0;text-align:left}
.app-modal-list>button{display:flex;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border:1px solid #2c4453;border-radius:6px;background:#0a1821;color:#e9f5fa;font:inherit;text-align:left;cursor:pointer}
.app-modal-list>button:is(:hover,:focus-visible){border-color:#b9dae9;outline:none}
.app-modal-list small{color:#93aab7;white-space:nowrap}
.app-modal-note{margin:0 0 18px;color:#b6c7d1;font-size:15px}
/* The site's pages: the program's actions under the logos, in the middle of the lower bar, while no tool is open. */
.app-web-actions{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.app-web-actions>.app-word{color:#dcebf2;text-decoration:none}
/* The action whose page this already is (Dance in its training mode: „Практикувай“): lit, with the thin line under it; not a link. */
.app-web-actions>.app-word[aria-current=page]{color:#fff;cursor:default}
.app-web-actions>.app-word[aria-current=page]::after{opacity:1;transform:scaleX(1)}
.app-bar.has-open-tool .app-web-actions{display:none}
/* The site's pages: the logos at 80%, as in the site's own top bar (0.1.17: the Windows programs too). */
.app-shell:is([data-platform=web],[data-platform=windows]) .app-program-logo{height:26px}
@media(max-width:1500px){.app-shell:is([data-platform=web],[data-platform=windows]) .app-program-logo{height:21px}}
/* Narrower windows: the actions keep a second row of the lower bar; an open tool's sub-tools take that same row, so
   the field below never moves. */
@media(max-width:1279px){
 .app-bar[data-web-actions]{grid-template-areas:'tools end' 'subs subs'}
 .app-bar[data-web-actions]>.app-subs,.app-bar[data-web-actions]:not(.has-open-tool)>.app-subs{display:flex;position:static;grid-area:subs;min-height:45px;padding:0;border-bottom:0;background:transparent}
}
@media(max-width:640px){
 .app-bar[data-web-actions],.app-bar[data-web-actions]{flex-wrap:wrap}
 .app-bar[data-web-actions]>.app-subs,.app-bar[data-web-actions]:not(.has-open-tool)>.app-subs{flex:1 0 100%;order:5;min-height:40px}
 .app-web-actions>.app-word{min-height:40px;padding:6px 6px}
 .app-modal{padding:20px 16px 16px}
 .app-modal-text{font-size:18px}
 .app-modal .app-button{flex:1 1 96px}
}
@media(max-width:600px){.app-shell:is([data-platform=web],[data-platform=windows]) .app-program-logo{height:18px}}

/* 0.1.17 (Hiroshi, 11.11.2026, points 58 and 59). The lower bar of the site's three pages (the main site, /sketch/, /dance/):
   LEFT the program's words (Назад, Напред, Отвори, Нова, Запази, Изпрати), then its icons; in the middle the open tool's
   sub-tools; RIGHT the other separate buttons („Изтегли за Windows“…) and, at the far right, „+“ · credits · plan.
   The class .site-bar-row is put on the bar by the shell (siteLowerBar) and written in scenes.html. The Windows programs
   do not have it and keep the bar above (tools · sub-tools · end). */
.app-bar.site-bar-row{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:0 14px}
.site-bar-row>.app-bar-left{display:flex;align-items:center;gap:0 12px;min-width:0;flex:0 1 auto}
.site-bar-row>.app-bar-left>.app-tools,.site-bar-row>.app-bar-left>.app-subs{justify-self:auto}
.site-bar-row>.app-bar-left>.app-end{justify-self:auto}
.site-bar-row>.app-subs{flex:1 1 auto;justify-content:center;min-width:0}
.site-bar-row>.app-bar-right{display:flex;align-items:center;gap:0 10px;flex:none;margin-left:auto;min-width:0}
.site-bar-row>.app-bar-right>.app-web-actions,.site-bar-row>.app-bar-right>.site-program-end{flex-wrap:nowrap;justify-content:flex-end;gap:4px}
.site-bar-row>.app-bar-right>.site-program-end{display:flex;align-items:center}
.site-bar-row>.app-bar-right .site-wallet{margin-left:0}
/* Narrow: the right group goes under the left one when they do not fit; the open tool's sub-tools keep their own row. */
@media(max-width:1279px){
 .app-bar.site-bar-row{flex-wrap:wrap}
 .site-bar-row>.app-bar-left{flex:1 1 auto}
 .site-bar-row>.app-bar-right{flex:0 0 auto}
}
@media(max-width:640px){
 .site-bar-row>.app-bar-left{flex-wrap:wrap}
 .site-bar-row>.app-bar-right{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-end;margin-left:0}
 .site-bar-row>.app-bar-right>.app-web-actions,.site-bar-row>.app-bar-right>.site-program-end{flex-wrap:wrap}
}
