/* start.deltalab.ru — фирменный стиль DELTALAB 1.3: Manrope, оранжевый #ef7f1a и графит #191b1d (Brand-Kit/deltalab-ru/tokens.css).
   Светлая и тёмная тема — по системе или по выбору (03.11.2026, html[data-theme]); обои стола — html[data-wallpaper]. Стартовая страница спокойная: бумага (или графит), плитки сайтов, как «Избранное» в Safari.
   Мобильная вёрстка — главная: 320–390 px, касания от 44 px, в сетках minmax(0, 1fr), подъём при наведении — только (hover: hover). */
@font-face{font-family:Manrope;src:url(/assets/manrope.woff2) format("woff2");font-weight:200 800;font-display:swap}
:root{
  --orange:#ef7f1a;--ink:#191b1d;--paper:#f5f5f2;
  --bg:#f5f5f2;--surface:#fff;--surface-2:#ebebe6;--text:#191b1d;--muted:#5c6066;--line:#d9dde1;--accent:#a74800;
  --tile:#fff;--tile-line:#0000000d;--shadow:0 1px 2px #0000000f,0 6px 18px #00000012;--shadow-lg:0 20px 48px #0000002e;
  --danger:#b3261e;--ok:#1f7a3a;--radius:14px;
  color-scheme:light dark
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){--bg:#191b1d;--surface:#232629;--surface-2:#2c3034;--text:#f2f2ef;--muted:#a6aaaf;--line:#3a3f44;--accent:#ff9d45;
    --tile:#2c3034;--tile-line:#ffffff12;--shadow:0 1px 2px #00000059,0 8px 22px #00000052;--shadow-lg:0 24px 56px #00000080;--danger:#ff8a80;--ok:#6fcf8a}
}
:root[data-theme=dark]{--bg:#191b1d;--surface:#232629;--surface-2:#2c3034;--text:#f2f2ef;--muted:#a6aaaf;--line:#3a3f44;--accent:#ff9d45;
    --tile:#2c3034;--tile-line:#ffffff12;--shadow:0 1px 2px #00000059,0 8px 22px #00000052;--shadow-lg:0 24px 56px #00000080;--danger:#ff8a80;--ok:#6fcf8a}
/* Тема по выбору (03.11.2026): data-theme у <html> — светлая или тёмная; нет атрибута — как в системе. */
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font-family:Manrope,Arial,sans-serif;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
main{flex:1 0 auto}
a{color:var(--accent)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
img{display:block;max-width:100%}
h1,h2,h3,p{margin-top:0}
button{font:inherit;color:inherit}
.wrap{max-width:1080px;margin:0 auto;padding-left:32px;padding-right:32px}
.muted{color:var(--muted)}
.small{font-size:13px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:16px;top:-100px;background:var(--surface);color:var(--text);padding:10px 14px;z-index:100;border-radius:8px}
.skip-link:focus{top:12px}
.metrika-pixel{position:absolute;left:-9999px}
[hidden]{display:none!important}

/* Кнопки */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border:0;border-radius:10px;background:var(--orange);color:var(--ink);font-weight:700;font-size:15px;text-decoration:none;cursor:pointer}
.button:hover{filter:brightness(1.06)}
.button-wide{width:100%}
.button-small{min-height:40px;padding:8px 16px}
.button-ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.button-ghost:hover{border-color:var(--orange);filter:none}
.danger{color:var(--danger)}
.danger-button{background:var(--danger);color:#fff}
.link-button{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;background:none;color:var(--accent);font-weight:600;font-size:15px;cursor:pointer;text-decoration:none}
.link-button:hover{text-decoration:underline;text-underline-offset:4px}
.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--text);cursor:pointer;flex:none}
.icon-button:hover{background:var(--surface-2)}
.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.icon-button svg .fill,.focus-play svg .fill{fill:currentColor;stroke:none}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;cursor:pointer}
.chip:hover{border-color:var(--orange)}

/* Шапка */
.site-header{position:relative;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);min-height:44px}
.brand img{width:140px;height:30px}
.logo-dark{display:none!important}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .logo-light{display:none!important}:root:not([data-theme=light]) .logo-dark{display:block!important}}:root[data-theme=dark] .logo-light{display:none!important}:root[data-theme=dark] .logo-dark{display:block!important}
.brand-service{font-size:15px;font-weight:700;letter-spacing:.2px;border-left:1px solid var(--line);padding-left:12px;line-height:1.2}
.header-actions{display:flex;align-items:center;gap:8px}
.account-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;color:var(--text);font-weight:700;font-size:14px;text-decoration:none;background:var(--surface)}
.account-link:hover{border-color:var(--orange)}
.account-link.is-signed-in{padding:0;width:44px;border-color:transparent;background:transparent}
.account-avatar{position:relative;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--orange);color:var(--ink);font-weight:800;font-size:15px;line-height:1}
.account-avatar::after{content:"";position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--bg)}
/* Стол вошедшего (решение владельца 02.11.2026): эмблема без слова DELTALAB, «Старт» и поиск в одной строке, справа Focus
   и аккаунт — стол начинается выше. До 600 px поиск — второй строкой шапки. 15.11.2026 (решение Павла) шапка Старта
   вернулась к этому виду после единой шапки сервисов; добавлен только шеврон переключателя у «Старт» (.brand-box). */
.brand .brand-emblem{width:42px;height:36px}
.is-compact .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand search actions";gap:8px 20px;padding-top:14px;padding-bottom:14px}
.is-compact .brand-box{grid-area:brand;justify-self:start}
.is-compact .search{grid-area:search;width:100%;max-width:760px;margin:0 auto}
.is-compact .header-actions{grid-area:actions}
.is-compact .search-input{height:48px;border-radius:14px}

/* Переключатель сервисов DELTALAB (15.11.2026): шеврон справа от «Старт», по нажатию — список «Сервисы DELTALAB» и «Избранное»
   (header.js, partials/switcher). Только тому, кого знает API шапки, или клиенту Кабинета; постороннему шеврона нет. */
.brand-box{position:relative;display:flex;align-items:center;gap:2px;min-width:0}
.switcher{display:flex;align-items:center;flex:none}
.switcher-toggle{display:inline-grid;place-items:center;width:32px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;flex:none}
.switcher-toggle:hover,.switcher.is-open .switcher-toggle{background:var(--surface-2);color:var(--text)}
.switcher-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.switcher.is-open .switcher-toggle svg{transform:rotate(180deg)}
.switcher-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:45;width:min(320px,calc(100vw - 32px));padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg)}
.switcher-search{width:100%;height:44px;margin:0 0 6px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:15px;-webkit-appearance:none;appearance:none}
.switcher-search:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px #ef7f1a33}
.switcher-scroll{max-height:70vh;overflow-y:auto;overscroll-behavior:contain}
.switcher-title{margin:0;padding:6px 12px 2px;font-size:12px;font-weight:700;line-height:1.4;color:var(--muted)}
.switcher-list{list-style:none;margin:0 0 4px;padding:0}
.switcher-item{display:grid;min-height:44px;align-content:center;padding:4px 12px;border-radius:10px;color:var(--text);line-height:1.25;text-decoration:none}
.switcher-item:hover,.switcher-item:focus-visible{background:var(--surface-2)}
.switcher-item:focus-visible{outline-offset:-3px}
.switcher-name{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:700}
.switcher-label,.switcher-host{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.switcher-host{font-size:12px;color:var(--muted)}
.switcher-out{margin-left:auto;color:var(--muted);font-weight:600}
.switcher-empty{margin:0;padding:8px 12px;color:var(--muted);font-size:14px}
.switcher-setup{display:flex;align-items:center;min-height:44px;margin-top:4px;padding:0 12px;border-top:1px solid var(--line);color:var(--text);font-size:14px;font-weight:600;text-decoration:none}
.switcher-setup:hover{text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:4px}
/* «открыт» — серый бейдж, как badge в Пульте: бумажный фон, рамка, приглушённый текст (третий круг, 14.11.2026). */
.badge{flex:none;padding:1px 8px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--muted);font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}

/* Подсказка «i» (components/hint, как в Пульте): значок 22 px, место касания — 44 px. */
.hint{display:inline-flex;vertical-align:middle;margin:-11px 0}
.hint-button{display:inline-grid;place-items:center;width:44px;height:44px;margin:0 -8px;padding:0;border:0;background:transparent;cursor:help}
.hint-button span{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);font:italic 700 13px/1 Georgia,serif}
.hint-button:hover span,.hint-button[aria-expanded="true"] span{border-color:var(--text);color:var(--text)}
.hint-button:focus-visible{outline:none}
.hint-button:focus-visible span{outline:3px solid var(--orange);outline-offset:2px}
.hint-tip{position:fixed;z-index:60;width:320px;max-width:calc(100vw - 32px);padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);font-size:13px;font-weight:500;line-height:1.5;letter-spacing:0;text-align:left;white-space:normal}
.guide-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.guide-list a{display:grid;gap:2px;padding:10px 12px;margin:0 -12px;border-radius:12px;color:var(--text);text-decoration:none}
.guide-list a:hover{background:var(--surface-2)}
.guide-list .muted{font-size:14px}

/* Инструкции (14.11.2026): статья из Markdown. */
.page-wide{max-width:760px}
.guide .page-back{margin-bottom:12px}
.guide-body{overflow-wrap:anywhere}
.guide-body h2{font-size:20px;margin:28px 0 8px}
.guide-body h3{font-size:17px;margin:20px 0 6px}
.guide-body ul,.guide-body ol{padding-left:22px;margin:0 0 14px}
.guide-body li{margin-bottom:6px}
.guide-body code{padding:1px 6px;border-radius:6px;background:var(--surface-2);font-size:.92em}
.guide-body table{width:100%;border-collapse:collapse;margin:0 0 14px;font-size:14px}
.guide-body th,.guide-body td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}


/* Кнопка Focus */
.focus-toggle{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:700;font-size:14px;cursor:pointer}
.focus-toggle:hover{border-color:var(--orange)}
.focus-note{font-size:17px;line-height:1;display:inline-block}
.focus-dot{display:none;position:absolute;top:6px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--orange)}
.focus-toggle.was-on .focus-dot{display:block}
/* Музыка продолжится при первом касании страницы (браузер запретил звук без нажатия) — точка пульсирует. */
.focus-toggle.is-waiting .focus-dot{display:block;animation:dot-pulse 1.2s ease-in-out infinite}
@keyframes dot-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.6);opacity:.55}}
.focus-toggle.is-playing{border-color:var(--orange);color:var(--accent)}
.focus-toggle.is-playing .focus-note{animation:sway 1.6s ease-in-out infinite}
@keyframes sway{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg) translateY(-1px)}}

/* Панель Focus: под кнопкой на компьютере, нижней шторкой на телефоне. Пока шторка открыта, страница под ней не листается
   (html.focus-open, только на телефоне): иначе палец, долистав список треков до края, двигал стол (03.11.2026). */
.focus-panel{position:absolute;top:calc(100% - 4px);right:max(16px,calc((100vw - 1080px)/2 + 32px));width:340px;max-width:calc(100vw - 32px);background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);padding:16px 18px 14px;z-index:40}
.focus-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin:-4px -6px 4px 0}
.focus-title{font-size:18px;font-weight:800;margin:0}
.focus-title span{color:var(--orange)}
.focus-sub{margin:0;color:var(--muted);font-size:13px}
.focus-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:6px 0 4px}
.focus-play{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;border:0;background:var(--orange);color:var(--ink);cursor:pointer}
.focus-play svg{width:26px;height:26px}
.focus-play .icon-pause{display:none}
.focus-play.is-playing .icon-play{display:none}
.focus-play.is-playing .icon-pause{display:block}
.focus-now{text-align:center;font-weight:700;margin:0 0 8px;min-height:1.5em}
.focus-error{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 10px;font-size:14px;color:var(--danger);text-align:center;margin-bottom:6px}
.focus-volume{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;font-size:13px;color:var(--muted);min-height:44px}
.focus-volume input{width:100%;accent-color:var(--orange);min-height:32px}
.focus-hint{font-size:13px;color:var(--muted);margin:4px 0}
.focus-list-title{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:8px 0 2px}
/* Таймер (03.11.2026): выбор 25 / 50 / 90, обратный отсчёт крупно, по окончании — перерыв или ещё раз. */
.focus-timer{margin:2px 0 6px}
.focus-timer-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:4px}
.focus-timer-pick .chip{justify-content:center;padding:8px 6px}
/* Порядок треков (12.11.2026): три варианта в ширину панели, касание не меньше 44 px. */
.focus-order{margin-top:4px}
.segmented.focus-order label{min-height:44px;padding:6px 4px;font-size:13px;line-height:1.2}
/* Фокус на <main> ставят «Перейти к содержимому» и переход стол ↔ аккаунт без перезагрузки (nav.js) — рамка вокруг всей
   страницы не нужна: Chrome рисует её после первой же клавиши. */
/* <main> получает фокус после перехода стол ↔ аккаунт (nav.js) — для читалки, рамка не нужна. [tabindex]:focus-visible весит больше
   main:focus, и Safari на iPhone рисовал оранжевую полосу под шапкой (баг 15.11.2026). */
main:focus,#main:focus-visible{outline:none}
.focus-timer-run{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.focus-timer-clock{display:flex;align-items:baseline;gap:8px;margin:0;font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.focus-timer-mode{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0}
.focus-timer-done p{margin:4px 0 6px;font-weight:700}
.focus-timer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.focus-clock{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.focus-toggle.has-timer .focus-label{display:none}
.focus-tracks{list-style:none;margin:0;padding:0}
.focus-tracks button{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;min-height:44px;padding:0 8px;border:0;border-radius:10px;background:none;text-align:left;cursor:pointer;font-size:15px}
.focus-tracks button:hover{background:var(--surface-2)}
.focus-check{color:var(--orange);font-weight:800;visibility:hidden}
.focus-tracks button[aria-pressed="true"]{font-weight:700}
.focus-tracks button[aria-pressed="true"] .focus-check{visibility:visible}
.focus-track-time{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.focus-credits{margin-top:6px;border-top:1px solid var(--line);padding-top:4px;font-size:13px}
.focus-credits summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:600;color:var(--accent)}
.focus-credits ul{margin:4px 0 6px;padding-left:18px;display:grid;gap:6px;color:var(--muted)}
.focus-credits b{color:var(--text)}
.focus-backdrop{display:none}

/* Стол */
.desk{max-width:1080px;width:100%;margin:0 auto;padding:4px 32px 24px}
.search{position:relative;max-width:680px;margin:6px auto 22px}
.search-icon{position:absolute;left:18px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:2.2;stroke-linecap:round;pointer-events:none}
.search-input{width:100%;height:54px;padding:0 18px 0 52px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);font:inherit;font-size:17px;box-shadow:var(--shadow);-webkit-appearance:none;appearance:none}
.search-input::placeholder{color:var(--muted)}
.search-input:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 4px #ef7f1a33}
.search-input::-webkit-search-cancel-button{-webkit-appearance:none}
/* Плитки стола под поиском (desk.js): значок, название, адрес и раздел, описание — если нашлось только в нём */
.search-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;max-height:min(70vh,560px);overflow-y:auto;overscroll-behavior:contain;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg)}
.search-hit{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:12px;min-height:52px;padding:7px 10px;border-radius:10px;color:var(--text);text-decoration:none}
.search-hit.is-active{background:var(--surface-2)}
.search-hit .tile-icon{width:36px;box-shadow:none}
.search-hit .tile-letter{font-size:16px}
.search-hit-text{display:grid;min-width:0;line-height:1.35}
.search-hit-title{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hit-meta{display:flex;gap:6px;min-width:0;font-size:13px;color:var(--muted)}
.search-hit-address,.search-hit-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hit-section{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-hit-section::before{content:"· ";}
/* Инструмент tools-сайта в поиске (задача №99, 18.11.2026): раздел не влез рядом с адресом — уходит на вторую строку, а не режется */
.search-hit[data-tool] .search-hit-meta{flex-wrap:wrap;row-gap:0}
.search-hit[data-tool] .search-hit-section{max-width:100%}
.search-hit-note{font-size:13px;color:var(--muted)}
.search-hit mark{background:#ef7f1a47;color:inherit;border-radius:3px}
.search-more{margin:0;padding:6px 10px 4px;font-size:13px;color:var(--muted)}
/* «Добавить на стол» — запрос это адрес, а такого сайта на столе нет */
.search-add{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}
.search-add .tile-icon{background:transparent;outline:2px dashed var(--line);outline-offset:-2px;color:var(--accent)}
.search-add .tile-icon svg{width:50%;height:50%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.search-add .search-hit-title{color:var(--accent)}
.notice{max-width:680px;margin:0 auto 18px;padding:12px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:14px}

.sections{display:grid;gap:30px}
.desk-section{min-width:0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-height:44px}
.section-title{flex:1 1 auto;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.4px;margin:0;min-width:0;overflow-wrap:anywhere}
/* Живые наборы (03.11.2026): «Набор» — раздел получателя, его сайты меняет автор; «Общий» — раздел, которым поделились. */
.section-badge{flex:none;padding:3px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.2px;line-height:1.4;cursor:default}
.is-live .section-title,.section-head:has(.section-badge) .section-title{flex:0 1 auto}
.section-head:has(.section-badge) .section-actions{margin-left:auto}
/* Ручка ⋮⋮ в правке: раздел перетаскивают за неё (мышь и палец сразу), с клавиатуры — стрелки вверх и вниз. Пока тянут,
   у всех разделов видны только заголовки. */
.section-grip{display:grid;place-items:center;flex:none;width:32px;height:44px;margin-left:-8px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:grab;touch-action:none}
.section-grip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round}
.section-grip:hover{color:var(--text);background:var(--surface-2)}
.sections.is-sorting-sections{gap:8px}
.sections.is-sorting-sections .tiles-wrap,.sections.is-sorting-sections .section-tools{display:none}
.sections.is-sorting-sections .desk-section{padding:0 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.sections.is-sorting-sections .section-head{margin:0}
.desk-section.is-dragging{position:relative;z-index:5;box-shadow:var(--shadow-lg);cursor:grabbing}
/* Ссылку тянут на раздел с другой вкладки — раздел в оранжевой рамке; добавленный по набору раздел — вспышкой */
.desk-section{border-radius:16px;transition:box-shadow .15s ease}
.desk-section.is-drop{box-shadow:0 0 0 2px var(--orange),0 0 0 8px #ef7f1a1f}
.desk-section.is-flash{animation:flash 1.6s ease}
.section-actions{display:flex;align-items:center;gap:6px;flex:none}
/* «Изменить» у раздела (просьба владельца 02.11.2026: «чтобы не мешала постоянно»): карандаш и слово, приглушённо.
   С мышью — видно, когда указатель над строкой заголовка или фокус в ней; на телефоне — только карандаш.
   «Готово» в правке видно всегда, цветом ссылки. */
.section-edit{gap:6px;color:var(--muted)}
.section-edit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.section-edit:hover,.section-edit[aria-pressed="true"]{color:var(--accent)}
@media (hover:hover){
  .section-edit{transition:opacity .15s ease}
  .section-head:not(:hover):not(:focus-within) .section-edit[aria-pressed="false"]{opacity:0}
}
@media (hover:none){
  .section-edit[aria-pressed="false"]{justify-content:center;width:44px;padding:0}
  .section-edit[aria-pressed="false"] .section-edit-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.section-name{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid var(--orange);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:18px;font-weight:700}
.section-tools{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:12px}
.section-tools .chip{font-size:13px}
.section-empty{color:var(--muted);font-size:14px;margin:0 0 10px}

.tiles{--cols:4;--rows:2;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:16px 10px;list-style:none;margin:0;padding:0}
@media (min-width:640px){.tiles{--cols:6;gap:20px 14px}}
@media (min-width:1024px){.tiles{--cols:8;gap:22px 18px}}
.tile{position:relative;min-width:0;touch-action:manipulation;transition:opacity .15s ease}
.tile-link{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;padding:0;border:0;background:none;color:var(--text);text-decoration:none;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border-radius:16px}
.tile-icon{position:relative;display:grid;place-items:center;width:min(100%,84px);aspect-ratio:1;border-radius:22%;background:var(--tile);box-shadow:var(--shadow);outline:1px solid var(--tile-line);outline-offset:-1px;transition:transform .15s ease}
.tile-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tile-icon.is-small img{inset:20%;width:60%;height:60%;object-fit:contain;border-radius:0}
/* Цифра клавиши 1–9 на углу значка (03.11.2026, просьба владельца) — только где есть клавиатура и мышь, как «Быстрые клавиши».
   Поэтому у значка нет overflow:hidden: углы рисунка скругляет сам рисунок. */
.tile-key{display:none}
@media (hover:hover) and (pointer:fine){
  .tile-key{position:absolute;z-index:1;top:-6px;right:-6px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--surface);color:var(--muted);box-shadow:0 0 0 1px var(--line),0 1px 2px #0000001f;font-size:11.5px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
  .view-compact .tile-key{top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;font-size:10.5px}
  .view-list .tile-key,.view-cards .tile-key,.view-chips .tile-key{position:static;flex:none;margin-left:auto;min-width:18px;height:18px;padding:0 4px;font-size:10.5px;box-shadow:0 0 0 1px var(--line)}
  .view-cards .tile-key{margin-top:2px}
}
/* «Скопировать адрес» (05.11.2026, просьба владельца). Общее для плитки и строки поиска: два листа, после нажатия — галочка
   на зелёном. На плитке — кружок на правом нижнем углу значка, пара цифре клавиши на верхнем; только с мышью, как и цифра.
   Кнопка лежит рядом со ссылкой, а не в ней, поэтому угол значка считаем от плитки: левый край и margin-top в процентах —
   от ширины плитки, а значок квадратный. */
.copy-button{display:grid;place-items:center;padding:0;border:0;background:var(--surface);color:var(--muted);box-shadow:0 0 0 1px var(--line),0 1px 3px #00000026;cursor:pointer}
.copy-button svg{grid-area:1/1;pointer-events:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.copy-button .copy-check{stroke-width:2.8;opacity:0;transform:scale(.4)}
.copy-button.is-done{background:var(--ok);color:var(--surface);box-shadow:0 1px 3px #00000026}
.copy-button.is-done .copy-sheets{opacity:0;transform:scale(.4)}
.copy-button.is-done .copy-check{opacity:1;transform:none}
/* При наведении фон прежний, а не оранжевый: плитка бывает оранжевой, кружок на ней не должен сливаться. */
@media (hover:hover){.copy-button:not(.is-done):hover{color:var(--accent);box-shadow:0 0 0 1.5px var(--orange),0 1px 3px #00000026}}
@media (prefers-reduced-motion:no-preference){
  .copy-button{transition:opacity .15s ease,transform .15s ease,background-color .12s ease,color .12s ease}
  .copy-button svg{transition:opacity .15s ease,transform .15s ease}
}
.tile-copy{display:none}
@media (hover:hover) and (pointer:fine){
  .tile-copy{--icon:min(100%,84px);position:absolute;z-index:2;top:0;left:calc(50% + var(--icon) / 2 - 20px);margin-top:calc(var(--icon) - 20px);display:grid;width:26px;height:26px;border-radius:50%;opacity:0;transform:scale(.8)}
  .tile-link:hover~.tile-copy,.tile-link:focus-visible~.tile-copy,.tile-copy:hover,.tile-copy:focus-visible,.tile-copy.is-done{opacity:1;transform:none}
  /* Значок при наведении приподнят на 2 px — кнопка едет вместе с ним, а значок не падает, когда указатель перешёл на кнопку. */
  .view-tiles .tile-link:hover~.tile-copy,.view-compact .tile-link:hover~.tile-copy,.view-tiles .tile-copy:hover,.view-compact .tile-copy:hover{transform:translateY(-2px)}
  .view-tiles .tile:has(.tile-copy:hover) .tile-icon,.view-compact .tile:has(.tile-copy:hover) .tile-icon{transform:translateY(-2px)}
  .view-compact .tile-copy{--icon:min(100%,56px);left:calc(50% + var(--icon) / 2 - 17px);margin-top:calc(var(--icon) - 17px);width:22px;height:22px}
  .view-compact .tile-copy svg,.view-chips .tile-copy svg{width:12px;height:12px}
  /* Список: в правом краю строки, левее цифры клавиши. Карточка: в правом нижнем углу. Ярлык: на углу плашки. */
  .view-list .tile-copy{top:50%;left:auto;right:8px;margin-top:-13px}
  .view-list .tile-link:has(.tile-key)~.tile-copy{right:34px}
  .view-list .tile:has(.tile-copy) .tile-text{padding-right:30px}
  .view-cards .tile-copy{top:auto;left:auto;right:10px;bottom:10px;margin:0}
  .view-cards .tile:has(.tile-copy) .tile-link:not(:has(.tile-key)) .tile-text{padding-right:26px}
  .view-chips .tile-copy{top:auto;left:auto;right:-5px;bottom:-5px;margin:0;width:22px;height:22px}
}
/* Строка поиска: ссылка и рядом кнопка «Скопировать адрес». Место под кнопку занято всегда: при наведении текст не прыгает.
   Без мыши наведения нет — кнопка видна всегда, поле нажатия 44 px; с мышью — при наведении и у выбранной строки. */
.search-row{position:relative}
.search-row .search-hit{padding-right:52px}
.search-copy{position:absolute;top:50%;right:4px;width:44px;height:44px;margin-top:-22px;border-radius:10px;background:transparent;box-shadow:none}
.search-copy svg{width:18px;height:18px}
.search-copy.is-done{background:transparent;color:var(--ok);box-shadow:none}
@media (hover:hover) and (pointer:fine){
  .search-row .search-hit{padding-right:56px}
  .search-copy{right:10px;width:34px;height:34px;margin-top:-17px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 1px 2px #0000001a;opacity:0;transform:scale(.85)}
  .search-copy svg{width:16px;height:16px}
  .search-row:hover .search-copy,.search-hit.is-active+.search-copy,.search-copy:focus-visible,.search-copy.is-done{opacity:1;transform:none}
  .search-copy.is-done{background:var(--ok);color:var(--surface);box-shadow:0 1px 2px #0000001a}
}
.tile-letter{font-size:clamp(26px,9vw,40px);font-weight:600;line-height:1;color:#fff}
.tile-icon.has-image .tile-letter{visibility:hidden}
.tile-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;font-size:12.5px;line-height:1.3;font-weight:600;text-align:center;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
@media (hover:hover){.tile-link:hover .tile-icon{transform:translateY(-2px)}}
.tile.is-flash .tile-icon{animation:flash 1.4s ease}
@keyframes flash{0%,100%{box-shadow:var(--shadow)}30%,70%{box-shadow:0 0 0 4px var(--orange)}}
/* Пока открыт список под поиском: найденные плитки — в оранжевой рамке, остальные приглушены */
.sections.is-filtering .tile:not(.is-match){opacity:.3}
.sections.is-filtering .tile.is-match .tile-icon{box-shadow:0 0 0 3px var(--orange),var(--shadow)}
/* Описание плитки при наведении (desk.js ставит место: под плиткой, у нижнего края — над ней, не за краем экрана) */
.tile-tip{position:fixed;left:0;top:0;z-index:45;max-width:min(320px,calc(100vw - 16px));padding:8px 12px;border-radius:10px;background:var(--ink);color:#fff;font-size:13px;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere;box-shadow:var(--shadow-lg);pointer-events:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tile-tip{background:#3a3f44;border:1px solid #ffffff1f}}:root[data-theme=dark] .tile-tip{background:#3a3f44;border:1px solid #ffffff1f}
@media (prefers-reduced-motion:no-preference){.tile-tip{animation:tip-in .12s ease-out}}
@keyframes tip-in{from{opacity:0}}

/* Цвета букв — одни и те же в обеих темах */
.tile-icon[data-color],.swatch[data-color] .swatch-dot{background:var(--c)}
[data-color="red"]{--c:#e5484d}
[data-color="orange"]{--c:#ef7f1a}
[data-color="yellow"]{--c:#f5b82e}
[data-color="green"]{--c:#2f9e44}
[data-color="cyan"]{--c:#0e9aa7}
[data-color="blue"]{--c:#3b5bdb}
[data-color="violet"]{--c:#7048e8}
[data-color="gray"]{--c:#8e9399}
.tile-icon[data-color="yellow"] .tile-letter{color:var(--ink)}
.tile-icon.has-image{background:var(--tile)}

.tile-add .tile-icon{background:transparent;box-shadow:none;outline:2px dashed var(--line);outline-offset:-2px;color:var(--muted)}
.tile-add .tile-icon svg{width:34%;height:34%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.tile-add .tile-title{color:var(--muted)}
.tile-set .tile-icon{outline-style:solid;outline-color:var(--surface-2)}
.tile-set .tile-icon svg{width:40%;height:40%;stroke-width:2}
@media (hover:hover){.tile-set .tile-link:hover .tile-icon{outline-color:var(--line);color:var(--text)}}
@media (hover:hover){.tile-add .tile-link:hover .tile-icon{outline-color:var(--orange);color:var(--orange)}}

/* Правка: × и карандаш, плитки чуть покачиваются (кроме «меньше движения»), перетаскивание */
.tile-remove,.tile-edit{position:absolute;top:-10px;display:none;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;z-index:2}
.tile-remove{left:-12px}
.tile-edit{right:-12px}
.tile-remove span,.tile-edit span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface);color:var(--text);box-shadow:0 1px 4px #00000040;border:1px solid var(--line)}
.tile-remove svg,.tile-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.is-editing .tile-remove,.is-editing .tile-edit{display:grid}
.is-editing .tile:not(.tile-add) .tile-icon{animation:jiggle .32s ease-in-out infinite alternate}
.is-editing .tile:nth-child(2n) .tile-icon{animation-delay:-.16s}
.is-editing .tile.is-locked .tile-icon{animation:none}
.is-editing .is-locked .tile-link{cursor:default;opacity:.72}
@keyframes jiggle{from{transform:rotate(-1.4deg)}to{transform:rotate(1.4deg)}}
.is-editing .tile-link{cursor:grab}
.tile.is-dragging{z-index:5;pointer-events:none}
.tile.is-dragging .tile-icon{animation:none;transform:scale(1.08);box-shadow:var(--shadow-lg)}
.tiles.is-sorting .tile:not(.is-dragging){transition:none}

/* Вид раздела (02.11.2026, варианты владельцу на пробу): плитки — по умолчанию; для разделов, где много ссылок, —
   мелкие плитки, список, карточки с описанием и ярлыки. Свёрнутый раздел — --rows рядов по --cols (ряды ярлыков считает
   desk.js по месту). Выбор — кнопка «Вид: …» в правке раздела, как соседние «Переименовать» и «↑ Выше» (просьба владельца
   02.11.2026: в заголовке мешала); родной select прозрачен и лежит поверх кнопки. */
.view-pick{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px 8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:13px;font-weight:600;cursor:pointer}
.view-pick svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.view-pick select{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;font-size:16px}
.view-pick:has(select:focus-visible){outline:3px solid var(--orange);outline-offset:2px}
.view-pick:hover{border-color:var(--orange)}
.tile-text{display:contents}
.tile-sub{display:none}
/* Мелкие плитки: значок 56 px, 12 в ряд на компьютере */
.tiles.view-compact{--cols:5;gap:14px 8px}
@media (min-width:640px){.tiles.view-compact{--cols:8;gap:16px 10px}}
@media (min-width:1024px){.tiles.view-compact{--cols:12;gap:18px 12px}}
.view-compact .tile-link{gap:5px}
.view-compact .tile-icon{width:min(100%,56px)}
.view-compact .tile-letter{font-size:22px}
.view-compact .tile-title{font-size:11.5px}
/* Список, карточки, ярлыки: значок слева, текст справа */
.view-list .tile-link,.view-cards .tile-link,.view-chips .tile-link{flex-direction:row;align-items:center;text-align:left}
.view-list .tile-icon,.view-cards .tile-icon,.view-chips .tile-icon{flex:none;box-shadow:none}
.view-list .tile-text,.view-cards .tile-text{display:grid;gap:1px;min-width:0}
.view-list .tile-title,.view-cards .tile-title,.view-chips .tile-title{-webkit-line-clamp:1;font-size:14px;text-align:left;hyphens:manual;-webkit-hyphens:manual}
@media (hover:hover){.view-list .tile-link:hover .tile-icon,.view-cards .tile-link:hover .tile-icon,.view-chips .tile-link:hover .tile-icon{transform:none}}
/* Список: строки — значок, название, адрес; 3 колонки на компьютере, 2 на планшете, 1 на телефоне */
.tiles.view-list{--cols:1;--rows:6;gap:2px 16px}
@media (min-width:640px){.tiles.view-list{--cols:2;--rows:5}}
@media (min-width:1024px){.tiles.view-list{--cols:3}}
.view-list .tile-link{gap:12px;min-height:52px;padding:6px 8px;border-radius:12px}
.view-list .tile-icon{width:34px;border-radius:9px}
.view-list .tile-letter{font-size:15px}
.view-list .tile-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.35;color:var(--muted)}
@media (hover:hover){.view-list .tile-link:hover{background:var(--surface)}}
/* Карточки: значок, название и две строки описания (нет описания — адрес); 4 в ряд на компьютере */
.tiles.view-cards{--cols:1;--rows:4;gap:10px}
@media (min-width:640px){.tiles.view-cards{--cols:2;--rows:3;gap:12px}}
@media (min-width:1024px){.tiles.view-cards{--cols:4}}
.view-cards .tile-link{align-items:flex-start;gap:12px;height:100%;min-height:76px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.view-cards .tile-icon{width:40px;border-radius:10px}
.view-cards .tile-letter{font-size:18px}
.view-cards .tile-sub{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12.5px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.view-cards .tile-add .tile-link{align-items:center;border-style:dashed;background:transparent}
@media (hover:hover){.view-cards .tile-link:hover{border-color:var(--orange)}}
/* Ярлыки: плашки «значок + название» в строку с переносом, как панель закладок; свёрнуто — 3 ряда */
.tiles.view-chips{--rows:3;display:flex;flex-wrap:wrap;gap:8px}
.view-chips .tile{max-width:100%}
.view-chips .tile-link{gap:8px;min-height:44px;padding:0 14px 0 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.view-chips .tile-icon{width:24px;border-radius:7px}
.view-chips .tile-letter{font-size:12px}
.view-chips .tile-title{max-width:220px;font-size:13.5px}
.view-chips .tile-add .tile-link{border-style:dashed;background:transparent}
@media (hover:hover){.view-chips .tile-link:hover{border-color:var(--orange)}}
.view-cards .tile-add .tile-icon,.view-chips .tile-add .tile-icon{outline:0}
.view-list .tile-add .tile-icon svg,.view-cards .tile-add .tile-icon svg,.view-chips .tile-add .tile-icon svg{width:60%;height:60%}
/* Правка: в списке и ярлыках карандаш и «×» — в правом краю строки, в карточках — в правом верхнем углу (значок не закрывают) */
.view-list .tile-remove,.view-list .tile-edit,.view-chips .tile-remove,.view-chips .tile-edit{top:50%;transform:translateY(-50%)}
.view-list .tile-remove,.view-chips .tile-remove{left:auto;right:0}
.view-list .tile-edit,.view-chips .tile-edit{right:40px}
.is-editing .view-list .tile:not(.tile-add) .tile-link,.is-editing .view-chips .tile:not(.tile-add) .tile-link{padding-right:84px}
.view-cards .tile-remove{left:auto;right:-12px}
.view-cards .tile-edit{right:32px}
.is-editing .view-cards .tile:not(.tile-add) .tile-text{padding-right:48px}
.section-tools-note{flex-basis:100%;font-size:13px;color:var(--muted)}

/* Много сайтов в разделе (02.11.2026, варианты владельцу на пробу) — кнопка «Много сайтов» в правке: два ряда
   и «Развернуть» (по умолчанию), одна строка с прокруткой, одна строка и «Ещё N» с окном всех сайтов, все сразу.
   В правке видно всё, как раньше. */
.tiles-wrap{position:relative}
/* Прокрутка: одна строка, видно --cols плиток и край следующей; палец и тачпад листают сами, мышью — перетаскиванием
   и стрелками. Полоса прокрутки скрыта; отступы сверху и снизу — чтобы тень и подъём плитки не обрезались. */
.tiles.is-scroll{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - var(--cols) * 12px) / (var(--cols) + .4));column-gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:2px;scrollbar-width:none;padding:6px 2px 12px;margin:-6px -2px -12px}
.tiles.is-scroll::-webkit-scrollbar{display:none}
.tiles.is-scroll>.tile{scroll-snap-align:start}
.tiles.view-chips.is-scroll{flex-wrap:nowrap}
.view-chips.is-scroll>.tile{flex:none}
.tiles.is-panning{scroll-snap-type:none;cursor:grabbing}
.scroll-arrow{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:40px;height:40px;margin-top:-20px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);box-shadow:var(--shadow);cursor:pointer}
.view-tiles~.scroll-arrow,.view-compact~.scroll-arrow{margin-top:-36px}
.scroll-arrow.is-prev{left:-14px}
.scroll-arrow.is-next{right:-14px}
.scroll-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.scroll-arrow:hover{border-color:var(--orange)}
@media (hover:none){.scroll-arrow{display:none}}
/* «Ещё N»: последняя в строке, «+N» на сером; у ярлыков — плашка без значка */
.tile-more .tile-icon{background:var(--surface-2);box-shadow:none;outline:1px solid var(--line);outline-offset:-1px;color:var(--text)}
.tile-more-count{font-size:clamp(18px,5.5vw,24px);font-weight:700;letter-spacing:-.3px;line-height:1}
.view-compact .tile-more-count{font-size:16px}
.view-list .tile-more-count,.view-cards .tile-more-count{font-size:13px}
.view-cards .tile-more .tile-link,.view-chips .tile-more .tile-link{background:var(--surface-2)}
.view-chips .tile-more .tile-icon{display:none}
.view-chips .tile-more .tile-link{padding-left:14px}
@media (hover:hover){.tile-more .tile-link:hover .tile-icon{outline-color:var(--orange)}.view-chips .tile-more .tile-link:hover{border-color:var(--orange)}}
/* Окно «Ещё N»: все сайты раздела в его виде, на телефоне — нижняя шторка. Цветом стола (бумага, в тёмной теме — графит
   с рамкой), фон за ним темнее, чем у других окон. Название — вкладкой над окном, крестик — кружком над правым краем:
   всё окно — сайтам (просьбы владельца 02.11.2026). Сам <dialog> прозрачный: нажатие мимо вкладки и окна — закрыть. */
.more-sheet{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.more-sheet[open]{display:flex;flex-direction:column}
.more-sheet::backdrop{background:#0000008f}
.more-sheet:focus{outline:none}
.more-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex:none}
.more-tab{position:relative;z-index:1;min-width:0;max-width:calc(100% - 64px);margin:0 0 -1px;padding:14px 24px 9px;border-radius:16px 16px 0 0;background:var(--bg);box-shadow:inset 0 4px 0 var(--orange);font-size:21px;line-height:1.3;font-weight:800;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.more-close{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-bottom:8px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#fff;cursor:pointer;transition:background-color .15s,color .15s,box-shadow .15s}
.more-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.more-close:hover,.more-close:focus-visible{background:var(--bg);color:var(--text);box-shadow:var(--shadow)}
.more-close:not(:hover):not(:focus-visible) svg{filter:drop-shadow(0 1px 2px #00000080)}
.more-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 24px;border-radius:0 18px 18px 18px;background:var(--bg);box-shadow:var(--shadow-lg)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .more-tab,:root:not([data-theme=light]) .more-panel{border:1px solid var(--line)}:root:not([data-theme=light]) .more-tab{border-bottom:0;padding-bottom:10px}:root:not([data-theme=light]) .more-close:hover,:root:not([data-theme=light]) .more-close:focus-visible{border-color:var(--line)}}:root[data-theme=dark] .more-tab,:root[data-theme=dark] .more-panel{border:1px solid var(--line)}:root[data-theme=dark] .more-tab{border-bottom:0;padding-bottom:10px}:root[data-theme=dark] .more-close:hover,:root[data-theme=dark] .more-close:focus-visible{border-color:var(--line)}
.sections.is-filtering .view-cards .tile.is-match .tile-link,.sections.is-filtering .view-chips .tile.is-match .tile-link{border-color:var(--orange)}

/* Под столом */
.desk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:34px;padding-top:18px;border-top:1px solid var(--line)}
.switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer}
.switch input{width:20px;height:20px;accent-color:var(--orange);margin:0}
.desk-note{font-size:13px;color:var(--muted);margin:8px 0 0}
/* Быстрые клавиши — свёрнуто, только с клавиатурой и мышью */
.desk-keys{display:none;font-size:12.5px;line-height:1.8;color:var(--muted);margin:4px 0 0}
@media (hover:hover) and (pointer:fine){.desk-keys{display:block}}
.desk-keys summary{display:inline-flex;align-items:center;min-height:32px;cursor:pointer;font-weight:600}
.desk-keys summary:hover{color:var(--text)}
.desk-keys p{margin:0 0 4px}
kbd{display:inline-block;min-width:20px;padding:0 5px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:var(--surface);color:var(--text);font:600 11.5px/18px Manrope,Arial,sans-serif;text-align:center}
/* Загрузить закладки: папки — галочками */
.import-lead{font-size:14px;margin:0 0 8px}
.import-groups{display:grid;gap:2px;max-height:min(46vh,360px);overflow-y:auto;margin:0 -4px 8px;padding:0 4px}
.import-group{margin-top:0;align-items:center;min-height:40px}
/* Поделиться разделом и ссылки в кабинете */
.share-lead{font-size:14px;margin:0 0 10px}
.share-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.share-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding-top:12px;border-top:1px solid var(--line)}
.share-item{display:grid;gap:2px;min-width:0}
.share-item a{overflow-wrap:anywhere;font-size:14px}
/* «Клиенты» (03.11.2026): список клиентов администратора и плашка над столом клиента */
.client-form .check{margin-top:14px}
.client-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.client-list li{display:grid;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.client-item{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.client-email{font-size:14px}
.client-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.client-actions form{margin:0}
.page-back{margin:0;font-size:14px}
.client-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 24px;padding:12px 16px;border:1px solid var(--orange);border-radius:14px;background:var(--surface)}
.client-bar p{margin:0;min-width:0;overflow-wrap:anywhere}
/* Страница набора /s/<код>: карточка и плитки как на столе */
.share-page{display:grid;gap:24px;align-content:start}
.share-card{max-width:720px}
.share-tiles .tile-link{cursor:pointer}

/* Окна: по центру на компьютере, нижней шторкой на телефоне */
.sheet{width:min(500px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:0;border-radius:18px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}
.sheet::backdrop{background:#0000006b}
.sheet-form,.sheet>.howto{padding:0 20px 20px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 8px 6px 20px;position:sticky;top:0;background:var(--surface);z-index:1}
.sheet-form .sheet-head{margin:0 -20px}
.sheet-head h2{font-size:19px;margin:0}
.field-label{display:block;font-weight:700;font-size:14px;margin:14px 0 6px}
.field{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:16px}
.field:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 4px #ef7f1a33}
.field[aria-invalid="true"]{border-color:var(--danger)}
.field-error{color:var(--danger);font-size:14px;margin:8px 0 0}
.field-note{display:block;min-height:76px;resize:vertical;line-height:1.45}
.colors{display:flex;flex-wrap:wrap;gap:2px}
.swatch{position:relative;display:inline-grid;place-items:center;min-width:44px;height:44px;cursor:pointer}
.swatch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.swatch-dot{width:28px;height:28px;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 1px #0000001a}
.swatch-auto{grid-auto-flow:column;gap:6px;padding:0 10px 0 6px}
.swatch-auto .swatch-dot{background:conic-gradient(#e5484d,#f5b82e,#2f9e44,#0e9aa7,#3b5bdb,#7048e8,#e5484d)}
.swatch-name{font-size:13px;font-weight:600}
.swatch input:checked+.swatch-dot{border-color:var(--surface);box-shadow:0 0 0 2px var(--orange)}
.swatch input:focus-visible+.swatch-dot{outline:3px solid var(--orange);outline-offset:2px}
.sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.sheet-actions .button{flex:1 1 auto}
/* «Как сделать стартовой страницей»: устройство и браузер — круглые переключатели, под ними карточка с шагами */
.howto p{font-size:14px;margin:0;color:var(--muted)}
.howto b{color:var(--text);overflow-wrap:anywhere}
.howto code{font-size:13px;padding:1px 5px;border-radius:5px;background:var(--surface-2);color:var(--text);overflow-wrap:anywhere}
.howto-url{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.howto-url .field{flex:1 1 230px;width:auto;min-width:0;min-height:44px;padding:8px 12px}
.howto-url .button{flex:none;min-height:44px}
.howto-pick{min-width:0;margin:0;padding:0;border:0}
.howto-pick legend{padding:0;margin:14px 0 6px;font-weight:700;font-size:14px}
.choices{display:flex;flex-wrap:wrap;gap:6px}
.choice{position:relative;display:inline-flex;min-width:0}
.choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.choice span{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:14px;font-weight:600;line-height:1.25}
.choice input:checked+span{border-color:var(--orange);background:#ef7f1a1f;box-shadow:inset 0 0 0 1px var(--orange)}
.choice input:focus-visible+span{outline:3px solid var(--orange);outline-offset:2px}
@media (hover:hover){.choice:hover span{border-color:var(--orange)}}
.howto-card{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.howto-card h3{font-size:16px;margin:0 0 6px}
.howto-card ol{margin:10px 0 0;padding-left:22px;font-size:14px}
.howto-card li{margin:0 0 8px;padding-left:2px}
.howto-card li::marker{font-weight:700;color:var(--accent)}
.howto-tip{margin-top:10px!important}
.howto-jump{display:inline;min-height:0;padding:0;font-size:inherit;text-decoration:underline;text-underline-offset:3px}

.undo{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:4px 8px 4px 16px;border-radius:12px;background:var(--ink);color:#fff;box-shadow:var(--shadow-lg);z-index:60;font-size:14px}
.undo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.undo .link-button{color:var(--orange);flex:none}

/* Страницы входа и кабинета */
.page{width:100%;max-width:600px;margin:0 auto;padding:16px 16px 40px;display:grid;gap:18px;align-content:start}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:var(--shadow);min-width:0}
.card h1{font-size:clamp(26px,6vw,34px);line-height:1.15;letter-spacing:-.8px;margin-bottom:12px}
.card h2{font-size:20px;margin-bottom:8px}
.lead{color:var(--muted);font-size:16px}
.form{margin-top:8px}
.form .button{margin-top:20px}
.check{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;margin-top:16px;font-size:14px;cursor:pointer}
.check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--orange)}
.otp{display:flex;align-items:center;gap:8px;max-width:400px}
.otp-digit{flex:1 1 0;min-width:0;width:100%;height:58px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:26px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.otp-digit:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 4px #ef7f1a33}
.otp-digit[aria-invalid="true"]{border-color:var(--danger)}
.otp-sep{flex:none;width:12px;height:2px;margin:0 2px;border-radius:1px;background:var(--muted)}
.otp-form.is-busy .otp-digit{opacity:.55}
.code-actions{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:12px}
.facts{margin:0 0 16px;display:grid;gap:8px}
.facts div{display:grid;grid-template-columns:minmax(0,120px) minmax(0,1fr);gap:12px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.card-danger{border-color:#b3261e55}
.card-danger .button{margin-top:16px}
.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;text-transform:uppercase;margin:0 0 14px;color:var(--muted)}
.dot{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;vertical-align:middle;margin-right:9px}
.legal h2{font-size:18px;margin:24px 0 8px}
.legal p,.legal li{font-size:15px}
.legal-summary{background:var(--bg);border-radius:12px;padding:4px 16px;margin:16px 0}
.legal-summary ul{padding-left:18px}

/* Подвал: кнопка «Проекты DELTALAB», строка © и плашка про cookie. */
.site-footer{padding:12px 0 calc(12px + env(safe-area-inset-bottom));font-size:13px;color:var(--muted)}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;justify-content:center}
.site-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--text);text-decoration:underline;text-underline-offset:4px}
.cookie-bar{position:fixed;left:16px;right:16px;bottom:16px;width:fit-content;max-width:560px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--ink);color:#fff;border:1px solid #ffffff26;border-radius:12px;padding:10px 12px 10px 16px;font-size:14px;z-index:50;box-shadow:var(--shadow-lg)}
.cookie-bar a{color:#fff;text-decoration:underline;text-underline-offset:3px}
@media (max-width:400px){.cookie-bar{left:8px;right:8px;gap:10px;padding:8px 10px 8px 14px;font-size:13px}.cookie-bar .button{padding-inline:12px}}

/* «Проекты DELTALAB» (09.10.2026; с 10.10.2026 — окном, решение владельца: блок на всю ширину мешал подвалу).
   Логотипа в подвале нет — кнопка-ссылка первой, по центру над строкой ©; она открывает <dialog id="site-projects">
   с шестью другими сайтами компании (config/site.php, окно открывает app.js). Окно по центру: светлое в светлой теме
   (бумага, карточки белые), в тёмной — графит с карточками светлее фона. Ссылки в две колонки, до 560 px — в одну;
   без горизонтальной прокрутки с 320 px. Прокрутка страницы под окном заблокирована (html.projects-open). */
.footer-top{display:flex;justify-content:center}
.footer-projects-open{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:0 4px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:15px;font-weight:600;line-height:1.4;cursor:pointer}
.footer-projects-open svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--orange);stroke-width:1.8}
.footer-projects-open:hover{color:var(--text);text-decoration:underline;text-underline-offset:4px}
.footer-projects-open:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
html.projects-open{overflow:hidden}
.projects-sheet{--projects-bg:var(--bg);--projects-card:var(--surface);box-sizing:border-box;width:min(760px,calc(100% - 32px));max-width:none;max-height:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:18px;background:var(--projects-bg);color:var(--text);overflow-y:auto;overscroll-behavior:contain;box-shadow:var(--shadow-lg)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .projects-sheet{--projects-bg:var(--surface);--projects-card:var(--surface-2);border:1px solid var(--line)}}:root[data-theme=dark] .projects-sheet{--projects-bg:var(--surface);--projects-card:var(--surface-2);border:1px solid var(--line)}
/* Фокус при открытии app.js ставит на само окно, а не на крестик (02.11.2026): иначе Safari рисует рамку вокруг крестика. */
.projects-sheet:focus{outline:none}
.projects-sheet::backdrop{background:#0000006b}
.projects-sheet-box{padding:24px 32px 32px}
.projects-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.projects-sheet-head h2{margin:0;min-width:0;font-size:26px;line-height:1.2;font-weight:800;letter-spacing:-.5px}
.projects-sheet-close{margin-right:-10px}
.projects-sheet ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.projects-sheet li{display:flex;min-width:0}
.projects-sheet .project-link{display:block;width:100%;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--projects-card);color:var(--text);text-decoration:none;line-height:1.45;overflow-wrap:anywhere}
.projects-sheet .project-link:hover{border-color:var(--orange)}
.projects-sheet .project-link:hover .project-name{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.projects-sheet .project-name{display:block;font-size:16px;font-weight:700}
.projects-sheet .project-caption{display:block;margin-top:4px;color:var(--muted);font-size:14px}
@media (max-width:560px){
  .projects-sheet-box{padding:16px 16px 20px}
  .projects-sheet-head{margin-bottom:16px}
  .projects-sheet-head h2{font-size:22px}
  .projects-sheet ul{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:360px){.projects-sheet-head h2{font-size:20px}}
@media (prefers-reduced-motion:no-preference){.projects-sheet[open]{animation:projects-sheet-in .22s cubic-bezier(.2,.8,.2,1)}}
@keyframes projects-sheet-in{from{opacity:0;transform:translateY(12px)}}
@media print{.footer-projects-open{display:none}}

@media (max-width:640px){
  .wrap{padding-left:16px;padding-right:16px}
  .header-inner{padding-top:10px;padding-bottom:6px}
  .brand{gap:10px}
  .brand img{width:112px;height:24px}
  .brand-service{font-size:14px;padding-left:10px}
  .focus-toggle{padding:0;width:44px;justify-content:center}
  .focus-toggle.has-timer{width:auto;padding:0 12px}
  .focus-label{display:none}
  .focus-dot{top:5px;right:5px}
  .desk{padding:0 16px 16px}
  .search{margin:6px 0 20px}
  .search-input{height:50px;border-radius:14px}
  .sections{gap:26px}
  .section-title{font-size:20px}
  .focus-panel{position:fixed;top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;max-height:78vh;overflow:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0;border-width:1px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
  .focus-backdrop{display:block;position:fixed;inset:0;background:#00000059;z-index:39;touch-action:none}
  html.focus-open{overflow:hidden}
  .sheet{width:100%;max-width:none;max-height:88vh;margin:auto 0 0;border-radius:20px 20px 0 0}
  .sheet-form,.sheet>.howto{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .more-sheet{width:100%;margin:auto 0 0;max-height:90vh;max-height:90dvh}
  .more-top{padding-right:12px}
  .more-tab{padding:12px 18px 8px;font-size:18px}
  .more-panel{padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-radius:0 20px 0 0}
  .card{padding:22px 18px;border-radius:16px}
  .otp{gap:6px}
  .otp-digit{height:54px;font-size:22px}
  .otp-sep{width:8px}
  .desk-bar{gap:4px 12px}
}
@media (max-width:599px){
  .is-compact .header-inner{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions" "search search";padding-top:10px;padding-bottom:14px}
  .brand .brand-emblem{width:35px;height:30px}
}
@media (max-width:360px){
  .brand img{width:100px;height:22px}
  .tiles{gap:14px 8px}
  .tile-title{font-size:11.5px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Обои (03.11.2026, просьба владельца; с того же дня — на всех страницах, не только на столе). Рисунки свои — мягкие пятна цвета на основе, в тёмной теме — глубокие тона;
   «Точки» — узор; «Своя картинка» — файл из браузера (desk.js кладёт его в --own-image), поверх — вуаль цвета стола, разделы
   на подложке, чтобы подписи читались на любой фотографии. Слой — неподвижный ::before у body (не background-attachment:
   fixed — он тормозит прокрутку на Android); фон html — цвет обоев, иначе на iPhone при оттягивании видна белая полоса. */
[data-wallpaper]{--wall:radial-gradient(60% 55% at 12% 6%,var(--w1),transparent 72%),radial-gradient(55% 50% at 94% 16%,var(--w2),transparent 72%),radial-gradient(80% 60% at 50% 106%,var(--w3),transparent 76%),var(--w0)}
[data-wallpaper=dawn]{--w0:#f8f1ea;--w1:#ffd3ab;--w2:#ffe8c4;--w3:#f7cbc3}[data-wallpaper=sand]{--w0:#f4efe4;--w1:#eadbbd;--w2:#f4e7cf;--w3:#e6d6bb}[data-wallpaper=mint]{--w0:#eef5f1;--w1:#cbe9da;--w2:#def1e7;--w3:#c8e3e3}[data-wallpaper=sea]{--w0:#edf3f7;--w1:#c8ddf0;--w2:#d7e9f3;--w3:#c2dfe6}[data-wallpaper=lavender]{--w0:#f2f0f8;--w1:#dbd2f2;--w2:#e9e2f7;--w3:#d5d9f3}[data-wallpaper=mist]{--w0:#eff1f3;--w1:#dbe2e9;--w2:#e7ebef;--w3:#d5dce3}
@media (prefers-color-scheme:dark){:root:not([data-theme=light])[data-wallpaper=dawn],:root:not([data-theme=light]) [data-wallpaper=dawn]{--w0:#1d1916;--w1:#4a2b17;--w2:#3d2b16;--w3:#3f2023}:root:not([data-theme=light])[data-wallpaper=sand],:root:not([data-theme=light]) [data-wallpaper=sand]{--w0:#1d1b17;--w1:#3b3222;--w2:#342c1f;--w3:#2e281d}:root:not([data-theme=light])[data-wallpaper=mint],:root:not([data-theme=light]) [data-wallpaper=mint]{--w0:#141c19;--w1:#1c3a2d;--w2:#1a2f29;--w3:#173233}:root:not([data-theme=light])[data-wallpaper=sea],:root:not([data-theme=light]) [data-wallpaper=sea]{--w0:#131a20;--w1:#1b3348;--w2:#18303d;--w3:#14343a}:root:not([data-theme=light])[data-wallpaper=lavender],:root:not([data-theme=light]) [data-wallpaper=lavender]{--w0:#18161f;--w1:#302749;--w2:#2a2340;--w3:#232842}:root:not([data-theme=light])[data-wallpaper=mist],:root:not([data-theme=light]) [data-wallpaper=mist]{--w0:#17191c;--w1:#272d34;--w2:#22272d;--w3:#1f252b}}
:root[data-theme=dark][data-wallpaper=dawn],:root[data-theme=dark] [data-wallpaper=dawn]{--w0:#1d1916;--w1:#4a2b17;--w2:#3d2b16;--w3:#3f2023}:root[data-theme=dark][data-wallpaper=sand],:root[data-theme=dark] [data-wallpaper=sand]{--w0:#1d1b17;--w1:#3b3222;--w2:#342c1f;--w3:#2e281d}:root[data-theme=dark][data-wallpaper=mint],:root[data-theme=dark] [data-wallpaper=mint]{--w0:#141c19;--w1:#1c3a2d;--w2:#1a2f29;--w3:#173233}:root[data-theme=dark][data-wallpaper=sea],:root[data-theme=dark] [data-wallpaper=sea]{--w0:#131a20;--w1:#1b3348;--w2:#18303d;--w3:#14343a}:root[data-theme=dark][data-wallpaper=lavender],:root[data-theme=dark] [data-wallpaper=lavender]{--w0:#18161f;--w1:#302749;--w2:#2a2340;--w3:#232842}:root[data-theme=dark][data-wallpaper=mist],:root[data-theme=dark] [data-wallpaper=mist]{--w0:#17191c;--w1:#272d34;--w2:#22272d;--w3:#1f252b}
[data-wallpaper=dots]{--dot:#00000024;--wall:radial-gradient(circle at 1px 1px,var(--dot) 1.1px,transparent 1.6px) 0 0/22px 22px,var(--bg)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light])[data-wallpaper=dots],:root:not([data-theme=light]) [data-wallpaper=dots]{--dot:#ffffff21}}
:root[data-theme=dark][data-wallpaper=dots],:root[data-theme=dark] [data-wallpaper=dots]{--dot:#ffffff21}
[data-wallpaper=own]{--veil:#f5f5f28c;--wall:linear-gradient(var(--veil),var(--veil)),var(--own-image,none) center/cover no-repeat,var(--bg)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light])[data-wallpaper=own],:root:not([data-theme=light]) [data-wallpaper=own]{--veil:#191b1d8c}}
:root[data-theme=dark][data-wallpaper=own],:root[data-theme=dark] [data-wallpaper=own]{--veil:#191b1d8c}
[data-wallpaper=none]{--wall:var(--bg)}
html[data-wallpaper]{background:var(--w0,var(--bg))}
html[data-wallpaper] body{background:transparent}
html[data-wallpaper] body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--wall)}
html[data-wallpaper=own] .desk-section,html[data-wallpaper=own] .desk-bar,html[data-wallpaper=own] .share-tiles{background:color-mix(in srgb,var(--bg) 86%,transparent);padding:12px 16px 16px}
html[data-wallpaper=own] .desk-bar{border-top-color:transparent;border-radius:16px;padding:10px 16px}
html[data-wallpaper=own] .share-tiles{border-radius:16px}

/* Окно «Оформление»: тема — три кнопки в ряд, обои — плитки-образцы. */
.segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:var(--surface-2)}
.segmented label{position:relative;display:grid;place-items:center;min-height:40px;padding:6px 8px;border-radius:9px;font-size:14px;font-weight:600;text-align:center;cursor:pointer}
.segmented input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.segmented label:has(input:checked){background:var(--surface);box-shadow:var(--shadow)}
.segmented label:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:1px}
.wallpapers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wallpaper{position:relative;display:grid;gap:6px;cursor:pointer;min-width:0}
.wallpaper input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.wallpaper-preview{display:block;aspect-ratio:16/10;border-radius:12px;background:var(--wall,var(--bg));border:1px solid var(--line)}
.wallpaper[data-wallpaper=dots] .wallpaper-preview{background:radial-gradient(circle at 1px 1px,var(--dot) 1.1px,transparent 1.6px) 0 0/12px 12px,var(--bg)}
.wallpaper-own .wallpaper-preview{display:grid;place-items:center;color:var(--muted);background:var(--own-thumb,none) center/cover no-repeat,var(--surface-2)}
.wallpaper-own .wallpaper-preview svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.wallpaper-own.has-picture .wallpaper-preview svg{display:none}
.wallpaper-name{font-size:13px;font-weight:600;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallpaper input:checked~.wallpaper-preview{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange)}
.wallpaper input:focus-visible~.wallpaper-preview{outline:3px solid var(--orange);outline-offset:2px}
.look-own{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:10px}
.look-own p{flex-basis:100%;margin:0}
@media (max-width:340px){.wallpapers{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* «Что нового» /changes (DD-0249, 20.11.2026): версии разделов из docs/changelog. */
.changes-layout{display:grid;gap:24px;margin-top:20px}
/* Карточка страницы узкая: разделы — над лентой, в две колонки на широком экране. */
@media (min-width:640px){.changes-modules ul{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}}
.changes-modules{padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2)}
.changes-modules h2{margin:0;font-size:15px}
.changes-modules ul{margin:8px 0 0;padding:0;list-style:none}
.changes-modules a{display:flex;justify-content:space-between;gap:12px;padding:4px 0;color:var(--text);text-decoration:none}
.changes-modules a:hover span:first-child{color:var(--accent);text-decoration:underline}
.changes-number{color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}
h1 .changes-number{margin-left:8px}
.changes-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.changes-bar h2{margin:0;font-size:19px}
.changes-periods{display:flex;flex-wrap:wrap;gap:6px}
.changes-periods a{padding:4px 12px;border:1px solid var(--line);border-radius:999px;color:var(--text);font-size:14px;text-decoration:none}
.changes-periods a[aria-current="true"]{border-color:var(--orange);background:var(--orange);color:#191b1d;font-weight:700}
.changes-date{margin:24px 0 10px;color:var(--muted);font-size:14px}
.changes-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.changes-history{gap:14px;margin-top:20px}
.changes-empty{margin-top:20px}
.changes-version{padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);scroll-margin-top:24px}
.changes-version-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;font-size:17px}
.changes-version-head a{color:var(--text)}
.changes-version-number{font-variant-numeric:tabular-nums}
.changes-kind{padding:2px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:700}
.changes-kind-accent{background:#ef7f1a26;color:var(--accent)}
.changes-meta{margin:4px 0 0;color:var(--muted);font-size:13px}
.changes-body{margin-top:10px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.changes-body ul,.changes-body ol{margin:0;padding-left:20px}
.changes-body li+li{margin-top:6px}
.changes-body p{margin:8px 0 0}
.changes-body a{color:var(--accent)}
.changes-body code{padding:0 4px;border-radius:5px;background:var(--surface-2);font-size:.92em}
