/* Раскладка 3 «Бесплатно и Plus» страницы виджета (выпуск «Виды», 12.11.2026, договор plans/2026-11-12-looks-contract.md §4, §5).
   Разметка — макросы l3_* в src/_includes/nwp.njk и блок .nwl3 страницы; логика — assets/js/nwp-looks.js, nwp-make.js, nwp.js.
   Компьютер (от 1024 px): сетка minmax(0,1fr) 380px, слева шапка, поля одной строкой, «Pick a look» (4 плитки в ряд, рамка 76 px и
   подпись 22 px), «Fine-tune»; справа липкая колонка из двух карточек, у каждой рамка примера по высоте своего виджета (--l3pv,
   nwp-looks.js); колонка выше окна поднимается при прокрутке так, чтобы её низ с кнопками был на экране (nwp-looks.js, fitCol).
   Телефон (до 760 px): одна колонка, одна карточка (Plain — бесплатная, вид Plus — карточка Plus), плитки 2 в ряд.
   Пределы — таблица §5.3, проверка — tests/widget-l3-layout.mjs. Подключается из страницы (<link> в теле): pageCss и pageCss2 заняты. */
.nwl3-page{--col:1100px}
.tp>.nwl3{max-width:1100px;margin:0 auto;padding:16px 24px 0;box-sizing:content-box}
.nwl3 [hidden]{display:none!important}
/* у .nwm-pane (nwp-make.css) — flex с gap 16 px: в сетке он стал бы промежутком строк, отступы здесь свои */
.nwl3-g{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:0}

/* шапка внутри сетки: крошки, h1, абзац; надписи над h1 нет (§5.1) */
.nwl3 .nwl3-hd{padding:0;margin:0 0 14px}
.nwl3-hd .crumbs{font-size:13px;line-height:18px;gap:6px}
/* контраст мелкого текста (правка раскладки 13.11, находка L9): подсказки, «optional», «Goal · Done · Total», крошки и строка даты 수능
   цветом --mute2 (#615C74) на тёмном фоне — 3,0–3,1:1 при 12–13 px, нужно 4,5:1; --mute (#8E8AA0) — 5,8–6,0:1. Только в блоке
   раскладки 3 (ds.css не трогаем). Метки Free и Plus плиток — 10 px (было 9). Кнопки карточек — градиент от #7C3AED: белый текст
   5,7:1 у верхнего края (был от #8B5CF6 — 4,23:1). Страж — tests/widget-l3-layout.mjs, раздел contrast */
.nwl3 .nwm-hint,.nwl3 .nwm-l em,.nwl3 .nwm-gh,.nwl3-hd .crumbs span{color:var(--mute)}
.nwl3 .nwl3c .btn-p{background:linear-gradient(180deg,#7C3AED,#6D28D9)}
.nwl3 .nwl3-na{color:var(--mute)}
.nwl3-hd .kick{display:none}
.nwl3-hd .d2{margin-top:8px;font-size:30px;line-height:1.15;letter-spacing:-.035em}
.nwl3-hd .tp-lead{margin:8px 0 0;max-width:none;font-size:15px;line-height:1.45}

/* поля содержания одной строкой */
.nwl3 .nwl3-fields{grid-template-columns:minmax(0,1.55fr) minmax(0,1.1fr) minmax(0,.85fr) minmax(0,1fr);gap:12px;margin:0 0 18px}
.nwl3-fields .nwm-f{gap:6px}
/* подпись поля переносится, а не обрезается: на 320 px «Time optional» не помещалась в колонку и срезалась на 3 px
   (widget-page-overflow); поля выровнены по низу — строки ввода на одной высоте, когда одна подпись в две строки */
.nwl3 .nwl3-fields{align-items:end}
.nwl3 .nwl3-fields .nwm-l{white-space:normal;overflow:visible}
/* три поля содержания (страницы таймера и мирового времени, 12.11.2026): колонки по числу полей — иначе справа пустая четвёртая;
   на телефоне первое поле строкой (правило .nwl3-ft ниже), два других — пополам */
.nwl3 .nwl3-fields.nwl3-f3{grid-template-columns:minmax(0,1.45fr) minmax(0,1.15fr) minmax(0,1fr)}
@media (max-width:760px){.nwl3 .nwl3-fields.nwl3-f3{grid-template-columns:repeat(2,minmax(0,1fr))}}
#nwm.nwl3 .nwm-grid>.nwm-f{grid-column:auto}
#nwm.nwl3 .nwm-grid>.nwm-f.wide{grid-column:1/-1}

/* «Pick a look» */
.nwl3-looks{min-width:0;margin:0 0 18px}
.nwl3-lh{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0 0 10px}
.nwl3-lh h2,.nwl3-fine h2{margin:0;font-size:18px;line-height:24px;font-weight:650;letter-spacing:-.01em;color:var(--ink)}
.nwl3-cnt{font-size:13px;line-height:18px;color:var(--mute)}
.nwl3-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nwl3-more{margin-top:10px}
.nwl3t{position:relative;min-width:0}
.nwl3t-f{display:block;width:100%;height:76px;border:0;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--line2);pointer-events:none;color-scheme:light}
.nwl3-looks[data-nt="dark"] .nwl3t-f{background:#191919;color-scheme:dark}
.nwl3t-new{position:absolute;left:0;top:0;opacity:0}
.nwl3t-c{display:flex;align-items:center;gap:6px;height:22px;padding:0 2px;font-size:12.5px;line-height:22px;color:var(--ink2);white-space:nowrap;overflow:hidden}
.nwl3t-n{min-width:0;overflow:hidden;text-overflow:ellipsis}
.nwl3t-tag{flex:none;height:15px;padding:0 5px;border-radius:5px;font:600 10px/15px var(--mono);letter-spacing:.05em;text-transform:uppercase;background:rgba(139,92,246,.24);color:#DDD3FF}
.nwl3t[data-free] .nwl3t-tag{background:rgba(52,211,153,.12);color:#A7F3D0}
.nwg-plus .nwl3t-tag{display:none}
.nwl3t-b{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer}
.nwl3t-b:hover+*,.nwl3t:hover .nwl3t-f{box-shadow:0 0 0 1px rgba(167,139,250,.6)}
.nwl3t:has(.nwl3t-b[aria-pressed="true"]) .nwl3t-f{box-shadow:0 0 0 2px #A78BFA}
.nwl3t:has(.nwl3t-b[aria-pressed="true"]) .nwl3t-n{color:var(--ink)}
.nwl3t-b:focus-visible{outline:2px solid var(--v2);outline-offset:2px}
/* плитка уже рамки договора (§4.1: 165×64 до 760 px, иначе 180×76): виджет рисуется в рамке договора и уменьшается целиком — класс
   nwl3-tk и --l3tw, --l3tk ставит nwp-looks.js (fitTiles); поле снизу — минус уменьшение, подпись сразу под плиткой */
.nwl3-tk .nwl3t-f{width:var(--l3tw);transform:scale(var(--l3tk));transform-origin:0 0;margin-bottom:calc(76px * (var(--l3tk) - 1))}
.nwl3-mb{display:inline-flex;align-items:center;height:30px;margin-top:8px;padding:0 12px;border:0;border-radius:8px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink2);font:500 13px var(--font);cursor:pointer}
.nwl3-mb:hover{color:var(--ink)}
.nwl3-mb[aria-expanded="true"] .nwl3-mb-o,.nwl3-mb[aria-expanded="false"] .nwl3-mb-c{display:none}

/* «Fine-tune»: группа Free, потом Plus (метка у каждой строки — замок у подписи, nwp-make.js) */
.nwl3-fine{min-width:0;padding-bottom:8px}
.nwl3-fine h2{margin-bottom:10px}
.nwl3-grp{padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.02);box-shadow:inset 0 0 0 1px var(--line2)}
.nwl3 .nwl3-grp-plus{display:block;margin:12px 0 0;padding:14px 16px;border-radius:14px}
.nwl3-gh{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0 0 12px}
.nwl3-gs{font-size:13px;line-height:1.4;color:var(--mute)}
.nwg-plus .nwl3-grp-plus .nwv3-tag,.nwg-plus .nwl3-gs{display:none}
.nwl3 .nwm-grid{gap:12px 14px}
.nwl3 .nwm-tg{height:40px}
.nwl3 .nwv3-na .nwm-in,.nwl3 .nwv3-na .nwm-seg{opacity:.5;transition:opacity .15s}
.nwl3 .nwv3-na:hover .nwm-in,.nwl3 .nwv3-na:hover .nwm-seg{opacity:.8}
.nwl3 .nwm-l .nwp-lk{margin-left:6px}

/* карточки справа */
.nwl3-r{min-width:0}
/* отступы карточек плотнее (12.11, находка F1 независимой проверки): на 1280×800 колонка гостя с самым высоким видом (Minimal flip,
   рамка 200 px) — 711 px и помещается под шапкой целиком (место 719 px); прежние отступы давали на 26 px больше */
.nwl3-stk{display:flex;flex-direction:column;gap:8px;min-width:0}
.nwl3c{min-width:0;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px var(--line2)}
.nwl3 .nwl3c-plus{display:block;margin:0;padding:10px 12px;border-radius:16px}
.nwl3c-h{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px;margin:0 0 6px}
.nwl3c-t{min-width:0;font-size:14px;line-height:1.3;color:var(--mute)}
.nwl3c-k{color:var(--ink);font-weight:650}
.nwl3c-sw{display:flex;gap:4px;flex:none}
.nwl3c-sw .chip{height:26px;padding:0 9px;font-size:12px}
.nwl3-yw{display:none}
.nwg-plus .nwl3c-free .nwl3c-k,.nwg-plus .nwl3c-free .nwl3c-d,.nwg-plus .nwl3-fh{display:none}
.nwg-plus .nwl3-yw{display:inline;color:var(--ink);font-weight:650}
.nwl3c-ph .nwl3c-k,.nwl3c-ph .nwl3c-d{display:none}
/* рамка примера — по высоте своего виджета, не выше 200 px; бесплатная выше своего виджета не больше чем на 16 px — только чтобы
   карточка Plus была не выше бесплатной больше чем на 8 px (--l3pv у каждой рамки ставит nwp-looks.js, fitPv; до 12.11 рамка у обеих
   была одна — бо́льшая из двух высот, находка F1) */
.nwl3 .nwl3-pv{display:flex;align-items:center;justify-content:center;height:var(--l3pv,150px);margin:0;padding:2px 10px;border-radius:12px;overflow:hidden;box-sizing:content-box}
.nwl3-pv iframe{display:block;flex:none;width:100%;border:0;background:transparent}
.nwl3 .nwl3-pv .nwm-frame{height:150px}
.nwl3-pf{height:150px;color-scheme:light}
.nwl3-pv[data-theme="dark"] iframe{color-scheme:dark}
.nwl3 .nwl3-act{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:8px 0 0;padding:0;border:0;border-radius:0;background:none;scroll-margin:96px}
.nwl3-act .nwm-urlw.nwg-ph{display:none}
.nwl3-act .nwm-url-l{display:none}
.nwl3-in{margin:0;font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.nwl3-act .nwm-btns{flex-wrap:wrap;align-items:center;gap:8px}
.nwl3-act .nwm-btns>.sib{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
.nwl3-act .nwm-btns>.sib .btn{height:36px;padding:0 10px;font-size:13px;gap:7px}
/* строка согласия (сборка, signin-consent): мельче, флажок «No news or tips» — в той же строке, что и текст (место §5.3) */
.nwl3-act .signin-consent{margin:0;max-width:none;font-size:11.5px;line-height:1.38}
.nwl3-act .signin-consent .sc-t{display:inline}
.nwl3-act .signin-consent .sc-c{display:inline-flex;gap:6px;margin:0 0 0 6px;min-height:0;font-size:11.5px;vertical-align:middle}
.nwl3-act .signin-consent input{width:14px;height:14px}
/* на телефоне и сенсорном экране подпись флажка — цель для пальца не ниже 24 px (signin-consent.mjs; в ds.css — 30 px);
   на компьютере с мышью строка остаётся низкой — место §5.3 */
@media (max-width:760px),(pointer:coarse){.nwl3-act .signin-consent .sc-c{min-height:24px;align-items:center}}
.nwl3-act .nwm-note{font-size:12px}
.nwl3-act .nwg-get{flex:1 1 auto}
.nwl3-act .nwg-wait{font-size:13px}
.nwl3c-line{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--mute)}
.nwl3c-free:has(.nwg-quota:not([hidden])) .nwl3c-line,.nwg-plus .nwl3c-line{display:none}
.nwl3c-ben{margin:6px 0 0;font-size:12px;line-height:1.38;color:var(--ink2)}
.nwl3c-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.nwl3c-btns .btn{flex:1 1 auto;height:36px;padding:0 14px;font-size:13.5px}
.nwl3c-btns .nwl3-back{flex:0 1 auto}
.nwl3-fl{display:none;margin-top:8px;font-size:13px;color:var(--mute);text-decoration:underline;text-underline-offset:3px}
/* у Plus — одна карточка «Your widget», карточки Plus нет (§5.4) */
.nwl3[data-state="plus"] .nwl3c-plus{display:none}
/* нижняя полоса телефона на странице с раскладкой 3 — только когда кнопки карточки ушли с экрана (класс nwl3-go, nwp-looks.js) */
body:has(#nwm.nwl3) .scta:not(.nwl3-go){display:none!important}
.scta .scta-plain{height:38px;padding:0 12px;font-size:13.5px;border-radius:10px;flex:none}
.scta .scta-plain[hidden]{display:none}
/* полоса и шире телефона (12.11, находки F7 и F1 независимой проверки). Планшет (761–1023 px): карточки не липкие — после выбора вида
   внизу «Pick a look» кнопки «Keep» и «Back to Plain» оставались выше экрана, а полосы не было (ds.css показывает её до 760 px): здесь
   та же полоса, что на телефоне. Компьютер: только «Keep <вид> — $5/mo» и «Plain», когда кнопки карточки Plus ниже края экрана
   (колонка выше окна: низкое окно, высокий вид, у Free — карточка ссылки после сохранения), — под колонкой и её ширины (--l3bl,
   --l3bw ставит nwp-looks.js). На планшете кнопка «Feedback» над полосой, как на телефоне; на компьютере она правее колонки (ниже) */
@media (min-width:761px){
  body:has(#nwm.nwl3) .scta.nwl3-go{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:55;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:8px 8px 8px 10px;border-radius:14px;background:linear-gradient(180deg,var(--p2),var(--p1));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px var(--line2),0 16px 30px -12px rgba(0,0,0,.85);transform:translateY(140%);transition:transform .25s ease;visibility:hidden}
  body:has(#nwm.nwl3) .scta.nwl3-go.on{transform:none;visibility:visible}
  body:has(#nwm.nwl3) .scta-in .scta-n{display:none}
  body:has(#nwm.nwl3) .scta img{width:30px;height:30px;flex:none;border-radius:8px}
  body:has(#nwm.nwl3) .scta-t{flex:1;min-width:0;font-size:12px;line-height:1.3;color:var(--mute)}
  body:has(#nwm.nwl3) .scta-t b{display:block;color:var(--ink);font-size:13px}
  body:has(#nwm.nwl3) .scta .btn{height:38px;padding:0 13px;font-size:13.5px;border-radius:10px;flex:none}
}
@media (min-width:761px) and (max-width:1023px){
  body.has-scta:has(#nwm.nwl3){padding-bottom:max(84px, calc(var(--scta-h, 0px) + 24px))}
  body.scta-on:has(#nwm.nwl3) .fbw{bottom:calc(var(--scta-h,54px) + 20px)}
}
@media (min-width:1024px){
  body:has(#nwm.nwl3) .scta.nwl3-go{left:var(--l3bl,auto);right:auto;width:var(--l3bw,380px);bottom:12px;padding:8px}
  body:has(#nwm.nwl3) .scta.nwl3-go img,body:has(#nwm.nwl3) .scta.nwl3-go .scta-t{display:none}
  body:has(#nwm.nwl3) .scta.nwl3-go .scta-own{flex:1 1 auto;min-width:0}
}
/* кнопка «Feedback» (feedback-widget.njk, fixed: справа 20 px, снизу 20 px) с подписью — 117 px: на 1280–1373 px она закрывала правый
   край «Try», «Keep» и «Back to Plain» колонки (находка F5). До 1479 px она круглая, 42 px, как в статьях (article.css), — от 1224 px
   мимо колонки; на 1024–1223 px колонка заходила под неё и круглую: справа у раскладки поле 64 px вместо 24 — кнопка в нём, правее
   колонки. Шире 1479 px кнопка с подписью (на 8 языках 92–153 px) правее колонки и так. Проверка — tests/widget-l3-layout.mjs */
/* 13.11 (находка L7): и на планшете 761–960 px — круглая (с подписью она закрывала последнюю плитку первого экрана на 7 страницах);
   над плиткой, полем «Fine-tune» или строкой согласия она прячется (fbCheck, nwp-looks.js) */
@media (min-width:761px) and (max-width:1479px){
  body:has(#nwm.nwl3) .fbw-btn{width:42px;padding:0;justify-content:center}
  body:has(#nwm.nwl3) .fbw-lbl{display:none}
}
@media (min-width:1024px) and (max-width:1223px){
  .tp>.nwl3{padding-right:64px}
}
/* кнопка «Feedback» над кнопкой или ссылкой карточки (телефон, планшет: первый экран — «Continue with Google», общая сборка 12.11) —
   прячется, пока кнопка карточки под ней (класс nwl3-fbo у body ставит nwp-looks.js); открытое окно отзыва не прячется */
body:has(#nwm.nwl3) .fbw{transition:opacity .15s ease,visibility .15s}
body.nwl3-fbo .fbw{opacity:0;visibility:hidden;pointer-events:none}
/* «Show» отсчёта — строкой на всю ширину группы Free там, где две колонки ему тесны (561–1199 px), как у варианта 3 (nwp-make.css,
   «отсчёт, раздел 1»; правило #nwm.nwl3 … grid-column:auto выше его отменяло). Иначе на 1024 px самый длинный вариант «Days, hours,
   minutes, seconds» (он же по умолчанию) — 201 px в поле 195 px, обрезался: поле справа 64 px для «Feedback» (F5) сузило колонку.
   Страж — tests/widget-page-overflow.mjs (раскладка 3, группа Free; 12.11.2026, находка F8) */
@media (min-width:561px) and (max-width:1199px){
  #nwm.nwl3 .nwm-grid>.nwm-f:has(select[data-k="style"]){grid-column:1/-1}
}

/* компьютер: две колонки, справа липкие карточки */
@media (min-width:1024px){
  .nwl3-g{grid-template-columns:minmax(0,1fr) 380px;column-gap:28px;row-gap:0;grid-template-rows:auto auto auto auto 1fr}
  .nwl3-hd{grid-column:1;grid-row:1}
  .nwl3-fields{grid-column:1;grid-row:2}
  .nwl3-looks{grid-column:1;grid-row:3}
  .nwl3-fine{grid-column:1;grid-row:4}
  .nwl3-r{grid-column:2;grid-row:1/-1;align-self:start;position:sticky;top:81px}
}
@media (min-width:1024px) and (max-width:1119px){
  .nwl3-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* низкие окна компьютера (правка раскладки 13.11, находка L4): у ноутбука 1366×768 (окно Chrome 1366×657) кнопка «Try <вид>»
   карточки Plus стояла на 750–786 px — под краем окна у 11 страниц из 12. Ниже 800 px в бесплатной карточке нет строки «Sign in to
   get the free link» над кнопками входа и строки «Plain look… · up to 3 widgets» под ними (−47 px; кнопки входа и согласие на месте):
   при 768 и 789 px обе карточки целиком. Ниже 760 px в карточке Plus кнопки — сразу под заголовком, пример и строка про виды — под
   ними: «Try» целиком и при 657 px. 1280×800 и 1440×900 — как были. Страж — tests/widget-l3-layout.mjs, раздел fold */
@media (min-width:1024px) and (max-height:799px){
  .nwl3c-free .nwl3-in,.nwl3c-free .nwl3c-line{display:none}
}
@media (min-width:1024px) and (max-height:759px){
  .nwl3 .nwl3c-plus{display:flex;flex-direction:column}
  .nwl3c-plus .nwl3c-h{order:1}
  .nwl3c-plus .nwl3c-btns{order:2;margin:0 0 8px}
  .nwl3c-plus .nwl3-pv{order:3}
  .nwl3c-plus .nwl3c-ben{order:4}
  .nwl3c-plus .nwl3-fl{order:5}
}
/* планшет: одна колонка, карточки рядом */
@media (min-width:761px) and (max-width:1023px){
  .nwl3-stk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .nwl3-r{margin:0 0 18px}
}
@media (max-width:960px){
  .tp>.nwl3{padding:12px 16px 0}
}
/* вступление для телефона (правка раскладки 13.11, находки L10 и L8): на телефоне полное вступление обрезалось на третьей строке
   посреди фразы («…and it follow…», line-clamp), а на 375×667 кнопка входа 수능 и помодоро уходила за край экрана. До 760 px вместо
   него — короткое (.nwl3-lm в шапке страницы, 1–2 строки, кончается точкой), полное — на компьютере и планшете. Страж —
   tests/widget-l3-layout.mjs, раздел phone */
.nwl3-hd .nwl3-lm{display:none}
/* телефон: одна карточка — бесплатная при Plain, карточка Plus при виде Plus или своей настройке; после «Get the free link» —
   снова бесплатная (nwl3-showfree) */
@media (max-width:760px){
  .nwl3-hd .d2{font-size:26px}
  .nwl3-hd .tp-lead{font-size:14.5px}
  .nwl3-hd .tp-lead:not(.nwl3-lm){display:none}
  .nwl3-hd .nwl3-lm{display:block}
  .nwl3 .nwl3-fields{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.1fr);gap:10px}
  #nwm.nwl3 .nwl3-fields>.nwl3-ft{grid-column:1/-1}
  .nwl3-r{margin:0 0 18px}
  .nwl3-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nwl3t-f{height:64px}
  .nwl3-tk .nwl3t-f{margin-bottom:calc(64px * (var(--l3tk) - 1))}
  .nwl3:is([data-state="look"],[data-state="mix"]):not(.nwl3-showfree) .nwl3c-free{display:none}
  .nwl3:not([data-state="look"]):not([data-state="mix"]) .nwl3c-plus,.nwl3.nwl3-showfree .nwl3c-plus{display:none}
  .nwl3-fl{display:inline-block}
  .nwl3c-sw .chip{padding:0 8px}
}
@media (max-width:560px){
  .nwl3-act .nwm-btns>.sib{grid-template-columns:minmax(0,1fr)}
}
