/* WordGPT topics catalog (/temy/). Scoped to .wgt. Tokens from theme.css (--wg-*), window style from the win-ui2 mockup.
   Shared with topic-page.css: .wgt, .wgt-ico, .wgt-crumbs, .wgt-head, .wgt-lead, .wgt-note, .wgt-tiles, .wgt-tile, .wgt-tile-name, .wgt-tile-n, --wgt-blue, --wgt-ink. */
.wg-service-content:has(.wgt){max-width:1160px}
.wg-service:has(.wgt){background:#fff}
.wgt{--wgt-blue:var(--wg-blue,#1a56db);--wgt-blue-d:var(--wg-blue-d,#1547b8);--wgt-ink:#15181e;--wgt-text:#262b33;--wgt-mute:#4a525e;--wgt-faint:#6b7480;--wgt-line:#e3e8f1;--wgt-soft:#edf3ff;--wgt-mist:#f6f8fc;--wgt-edge:#cfdbf2;--wgt-ease:var(--wg-ease-out,cubic-bezier(.22,1,.36,1));--wgt-shadow:0 14px 34px -26px #1a3b7a73;font-family:var(--wg-sans,Manrope,"Segoe UI",Arial,sans-serif);color:var(--wgt-text);font-size:16px;line-height:1.6;max-width:1160px;margin:0 auto;padding-bottom:48px;min-width:0}
.wgt *,.wgt *::before,.wgt *::after{box-sizing:border-box}
.wgt :where(h1,h2,h3,p,ol,ul){margin:0;padding:0}
.wgt .wgt-search input,.wgt .wgt-dlg-field input{box-sizing:border-box;max-width:100%;margin:0}
.wgt :where(h1,h2,h3){line-height:1.22;letter-spacing:-.022em;color:var(--wgt-ink)}
.wgt a{color:inherit;text-decoration:none}
.wgt button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wgt .wgt-ico{display:block;flex-shrink:0;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wgt :focus-visible{outline:2px solid var(--wgt-blue);outline-offset:3px;border-radius:8px}
.wgt .wgt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.wgt kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border:1px solid var(--wgt-line);border-bottom-width:2px;border-radius:6px;background:#fff;font:600 11px/1 var(--wg-sans,Manrope,sans-serif);color:var(--wgt-mute)}

/* breadcrumbs */
.wgt-crumbs ol{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;list-style:none;color:var(--wgt-mute);font-size:14px;margin-bottom:22px}
.wgt-crumbs li{display:flex;align-items:center;min-width:0}
.wgt-crumbs a{transition:color .2s}
.wgt-crumbs a:hover{color:var(--wgt-blue)}
.wgt-crumbs .wgt-ico{width:13px;height:13px;color:#9aa4b3}
.wgt-crumbs [aria-current]{color:var(--wgt-ink);font-weight:500}

/* page head: icon, title, facts, lead and the catalog search trigger */
.wgt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 40px;margin-bottom:8px}
.wgt-head>div{min-width:0}
.wgt-h1row{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.wgt-h1ico{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:16px;background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-h1ico .wgt-ico{width:28px;height:28px;stroke-width:1.6}
.wgt-head h1{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.15;max-width:820px;overflow-wrap:break-word;min-width:0}
.wgt-h1row h1{margin:0}
.wgt-head-txt>h1{margin-bottom:14px}
.wgt-facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px!important}
.wgt-fact{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;background:var(--wgt-mist);border:1px solid var(--wgt-line);font-size:14px;font-weight:600;color:var(--wgt-text)}
.wgt-badge{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 12px 4px 10px;border-radius:999px;background:var(--wgt-soft);color:var(--wgt-blue-d);font-size:14px;font-weight:600;white-space:nowrap}
.wgt-badge .wgt-ico{width:16px;height:16px}
.wgt-lead{font-size:18px;color:var(--wgt-mute);line-height:1.65;max-width:720px}
.wgt-lead a{color:var(--wgt-blue);text-decoration:underline;text-underline-offset:3px}
.wgt-qbtn{display:flex;align-items:center;gap:12px;flex-shrink:0;width:340px;max-width:100%;min-height:52px;margin:0;padding:0 12px 0 16px;border:1px solid var(--wgt-edge);border-radius:14px;background:#fff;color:var(--wgt-mute);font-size:15px;line-height:1.3;text-align:left;box-shadow:0 1px 0 #1a3b7a0a;transition:border-color .2s,box-shadow .25s,color .2s}
.wgt-qbtn[hidden]{display:none}
.wgt-qbtn .wgt-ico{width:19px;height:19px;color:var(--wgt-blue)}
.wgt-qbtn-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wgt-qbtn:hover{border-color:#a9c1f1;color:var(--wgt-ink);box-shadow:0 8px 22px -16px #1a56db80}

/* sections and compact tiles: several per row for a quick choice */
.wgt-sec{margin-top:48px}
.wgt-sec-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 20px;margin-bottom:18px}
.wgt-sec-head .wgt-h2{margin:0}
.wgt-sec-head p{font-size:15px;color:var(--wgt-mute)}
.wgt-h2{font-size:24px;font-weight:800;margin:0 0 18px}
.wgt-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;list-style:none}
.wgt-tiles>li{display:flex;min-width:0}
.wgt-tile{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;padding:10px 14px 10px 10px;border:1px solid var(--wgt-line);border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .3s,translate .3s var(--wgt-ease)}
.wgt-tile:hover{border-color:#b9cdf5;box-shadow:var(--wgt-shadow);translate:0 -2px}
.wgt-tile-ico{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:11px;background:var(--wgt-soft);color:var(--wgt-blue);transition:background .2s,color .2s}
.wgt-tile-ico .wgt-ico{width:21px;height:21px;stroke-width:1.6}
.wgt-tile:hover .wgt-tile-ico{background:var(--wgt-blue);color:#fff}
.wgt-tile-txt{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.wgt-tile-name{font-size:16px;font-weight:600;line-height:1.3;color:var(--wgt-ink);overflow-wrap:break-word;transition:color .2s}
.wgt-tile:hover .wgt-tile-name{color:var(--wgt-blue)}
.wgt-tile-n{flex-shrink:0;font-size:13.5px;color:var(--wgt-mute)}
.wgt-tile-go{flex-shrink:0;color:#9aa4b3;transition:color .2s,translate .25s var(--wgt-ease)}
.wgt-tile-go .wgt-ico{width:16px;height:16px}
.wgt-tile:hover .wgt-tile-go{color:var(--wgt-blue);translate:3px 0}
.wgt-tiles.is-types{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.wgt-tiles.is-types .wgt-tile{min-height:68px}
.wgt-tiles.is-grades{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}

/* recently added works */
.wgt-latest-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none}
.wgt-latest-list>li{display:flex;min-width:0}
.wgt-lt{display:flex;align-items:flex-start;gap:14px;width:100%;padding:14px 16px 14px 14px;border:1px solid var(--wgt-line);border-radius:16px;background:#fff;transition:border-color .2s,box-shadow .3s,translate .3s var(--wgt-ease)}
.wgt-lt:hover{border-color:#b9cdf5;box-shadow:var(--wgt-shadow);translate:0 -2px}
.wgt-lt-ico{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-lt-ico .wgt-ico{width:22px;height:22px;stroke-width:1.6}
.wgt-lt-txt{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.wgt-lt-title{font-size:16px;font-weight:700;line-height:1.4;color:var(--wgt-ink);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s}
.wgt-lt:hover .wgt-lt-title{color:var(--wgt-blue)}
.wgt-lt-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px;color:var(--wgt-mute)}
.wgt-lt-meta .wgt-badge{min-height:26px;padding:2px 10px 2px 8px;font-size:13px}
.wgt-lt-meta .wgt-badge .wgt-ico{width:15px;height:15px}
.wgt-lt-cat{font-weight:600;color:var(--wgt-text)}
.wgt-lt-date{color:var(--wgt-faint);font-size:13.5px}

/* grade switcher: one row of chips */
.wgt-filters{margin:28px 0 0}
.wgt-filters ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.wgt-filter{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 16px;border:1px solid var(--wgt-line);border-radius:999px;background:#fff;color:var(--wgt-text);font-size:15px;font-weight:600;white-space:nowrap;transition:color .2s,background .2s,border-color .2s}
.wgt-filter .wgt-ico{width:16px;height:16px}
.wgt-filter:hover{border-color:#b9cdf5;color:var(--wgt-blue)}
.wgt-filter.is-active{background:var(--wgt-blue);border-color:var(--wgt-blue);color:#fff}

/* topic list: one topic per row; the whole row opens the topic (stretched title link), copy and create stay on top */
.wgt-topics{margin-top:36px}
.wgt-topics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 28px;flex-wrap:wrap;margin-bottom:10px}
.wgt-caption{min-width:0}
.wgt-caption h2{font-size:24px;font-weight:800;margin-bottom:4px}
.wgt-caption p{font-size:15px;color:var(--wgt-mute)}
.wgt-search{position:relative;flex:0 1 380px;min-width:0}
.wgt-search>.wgt-ico{position:absolute;left:15px;top:50%;translate:0 -50%;width:18px;height:18px;color:var(--wgt-mute);pointer-events:none}
.wgt-search input{width:100%;height:48px;border:1px solid #cdd7e8;background:#fff;border-radius:12px;padding:0 44px;font:inherit;font-size:16px;color:var(--wgt-ink);outline:none;-webkit-appearance:none;appearance:none;transition:border-color .2s,box-shadow .25s}
.wgt-search input::-webkit-search-cancel-button{display:none}
.wgt-search input::placeholder{color:#6f7a8c}
.wgt-search input:hover{border-color:#91ade4}
.wgt-search input:focus{border-color:var(--wgt-blue);box-shadow:0 0 0 4px #1a56db14}
.wgt-search:focus-within>.wgt-ico{color:var(--wgt-blue)}
.wgt-clear{display:none;position:absolute;right:6px;top:50%;translate:0 -50%;width:36px;height:36px;margin:0;border:0;background:none;border-radius:9px;color:var(--wgt-mute);place-items:center;padding:0}
.wgt-clear.is-on{display:grid}
.wgt-clear:hover{background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-clear .wgt-ico{width:16px;height:16px}
.wgt-count{min-height:22px;margin:0 0 8px;font-size:14px;color:var(--wgt-mute)}
.wgt-count strong{font-weight:700;color:var(--wgt-ink)}
.wgt-list{display:grid;gap:6px;list-style:none}
.wgt-card{position:relative;display:flex;align-items:center;gap:14px;min-width:0;min-height:60px;padding:8px 10px 8px 14px;border:1px solid var(--wgt-line);border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .25s,background .2s}
.wgt-card:hover,.wgt-card:focus-within{border-color:#b9cdf5;background:#fbfcff;box-shadow:0 8px 22px -20px #1a3b7a80}
.wgt-card[hidden]{display:none}
.wgt-card-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.wgt-num{flex-shrink:0;min-width:26px;font-size:13px;font-weight:700;color:var(--wgt-faint);font-variant-numeric:tabular-nums}
.wgt-docico{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-docico .wgt-ico{width:19px;height:19px;stroke-width:1.6}
.wgt-copy{display:flex;align-items:center;gap:6px 14px;flex:1;min-width:0}
.wgt-title{flex:1;min-width:0;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.01em;color:var(--wgt-ink);text-wrap:pretty;overflow-wrap:anywhere;transition:color .2s}
.wgt-title a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.wgt-title a:focus-visible{outline:none}
.wgt-card.is-link:has(.wgt-title a:focus-visible){outline:2px solid var(--wgt-blue);outline-offset:2px}
.wgt-card:hover .wgt-title{color:var(--wgt-blue)}
.wgt-meta{flex-shrink:0;padding:3px 10px;border-radius:999px;background:var(--wgt-mist);font-size:13px;font-weight:600;color:var(--wgt-mute);white-space:nowrap}
.wgt-actions{position:relative;z-index:1;display:flex;align-items:center;gap:8px;flex-shrink:0}
.wgt-card:not(.is-link) .wgt-actions{position:static}
.wgt-card:not(.is-link) .wgt-gen::after{content:"";position:absolute;inset:0;border-radius:14px}
.wgt-card:not(.is-link) .wgt-copybtn{position:relative;z-index:1}
.wgt-copybtn{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;margin:0;padding:0;border:1px solid var(--wgt-line);border-radius:10px;background:#fff;color:var(--wgt-mute);transition:background .2s,border-color .2s,color .2s,scale .2s}
.wgt-copybtn .wgt-ico{width:17px;height:17px}
.wgt-copybtn:hover{background:var(--wgt-soft);border-color:#b9cdf5;color:var(--wgt-blue)}
.wgt-copybtn:active{scale:.94}
.wgt-copybtn.is-copied{background:var(--wgt-soft);border-color:#b9cdf5;color:var(--wgt-blue)}
.wgt-gen{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 15px;border:1px solid #c5d6f7;border-radius:10px;background:#fff;color:var(--wgt-blue)!important;font-size:14px;font-weight:700;white-space:nowrap;transition:background .2s,color .2s,border-color .2s,box-shadow .25s}
.wgt-gen .wgt-ico{width:16px;height:16px}
.wgt-gen:hover{background:var(--wgt-soft);border-color:var(--wgt-blue)}
.wgt-empty{display:flex;align-items:center;gap:14px;padding:22px;border:1px dashed var(--wgt-edge);border-radius:16px;background:var(--wgt-mist);color:var(--wgt-mute);font-size:15px}
.wgt-empty[hidden]{display:none}
.wgt-empty-ico{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#fff;color:var(--wgt-blue)}
.wgt-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:24px}
.wgt-foot>p{color:var(--wgt-mute);font-size:14px}
.wgt-pager ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none}
.wgt-pager a,.wgt-pager span[aria-current]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0 14px;border:1px solid var(--wgt-line);border-radius:11px;background:#fff;color:var(--wgt-ink);font-size:15px;transition:background .2s,border-color .2s,color .2s}
.wgt-pager a:hover{background:var(--wgt-soft);border-color:#b9cdf5;color:var(--wgt-blue)}
.wgt-pager span[aria-current]{background:var(--wgt-blue);border-color:var(--wgt-blue);color:#fff;font-weight:700}
.wgt-gap{align-self:center;color:var(--wgt-mute);padding:0 4px}
.wgt-note{display:flex;align-items:flex-start;gap:10px;margin-top:24px;font-size:14px;color:var(--wgt-mute);line-height:1.7;max-width:720px}
.wgt-note .wgt-ico{width:17px;height:17px;margin-top:3px;color:var(--wgt-blue)}

/* neighbouring grades */
.wgt-adj{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:28px}
.wgt-adj a{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;border:1px solid var(--wgt-line);border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .3s}
.wgt-adj a:hover{border-color:#b9cdf5;box-shadow:var(--wgt-shadow)}
.wgt-adj-next{grid-column:2;justify-content:flex-end;text-align:right}
.wgt-adj a>span:not(.wgt-adj-arr){display:flex;flex-direction:column;min-width:0}
.wgt-adj-k{font-size:13px;color:var(--wgt-mute)}
.wgt-adj-n{font-size:16px;font-weight:700;color:var(--wgt-ink);overflow-wrap:anywhere}
.wgt-adj a:hover .wgt-adj-n{color:var(--wgt-blue)}
.wgt-adj-arr{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-adj-arr .wgt-ico{width:17px;height:17px}
.wgt-adj-prev .wgt-adj-arr{transform:scaleX(-1)}

/* about, call to action, back links */
.wgt-about{margin-top:56px;padding-top:32px;border-top:1px solid var(--wgt-line);max-width:800px}
.wgt-about h2{font-size:24px;font-weight:800;margin-bottom:14px}
.wgt-about p{color:var(--wgt-text);font-size:16px;line-height:1.8;margin-bottom:12px}
.wgt-cta{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;margin-top:40px;padding:26px 28px;border-radius:20px;background:var(--wgt-soft)}
.wgt-cta-txt{min-width:0;max-width:620px}
.wgt-cta-h{font-size:20px;font-weight:800;color:var(--wgt-ink);letter-spacing:-.02em;margin-bottom:4px!important}
.wgt-cta-txt p:not(.wgt-cta-h){font-size:15px;color:var(--wgt-mute)}
.wgt-gen.wgt-gen-solid{flex-shrink:0;min-height:50px;padding:0 26px;border-color:var(--wgt-blue);background:var(--wgt-blue);color:#fff!important;font-size:16px;border-radius:12px}
.wgt-gen.wgt-gen-solid:hover{background:var(--wgt-blue-d);border-color:var(--wgt-blue-d);box-shadow:0 9px 21px -9px #1a56dbb3}
.wgt-back{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:28px;font-size:15px}
.wgt-back a{color:var(--wgt-mute);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c5ccd8}
.wgt-back a:hover{color:var(--wgt-blue)}
.wgt-toast{position:fixed;left:50%;bottom:24px;translate:-50% 0;z-index:90;max-width:calc(100vw - 32px);padding:12px 18px;background:var(--wg-ink,#14181f);border-radius:12px;color:#fff;font:500 14px/1.5 var(--wg-sans,Manrope,sans-serif);box-shadow:0 10px 25px #14181f33}
.wgt-toast[hidden]{display:none}

/* catalog search window (dialog#wgt-q): compact centred window on wide screens, bottom sheet on phones.
   Every box property is set explicitly so global button/input/dialog styles of the site cannot shift the layout. */
html.wgt-lock{overflow:hidden}
.wgt-dlg{position:fixed;inset:0;box-sizing:border-box;padding:0;border:1px solid #e3e9f5;border-radius:20px;background:#fff;color:var(--wgt-ink);box-shadow:0 24px 80px -24px #172f6566;width:520px;max-width:calc(100vw - 32px);height:-moz-fit-content;height:fit-content;max-height:min(560px,calc(88dvh - 32px));min-height:0;overflow:hidden;margin:12dvh auto auto;font-family:var(--wg-sans,Manrope,"Segoe UI",Arial,sans-serif);font-size:15px;line-height:1.5;text-align:left}
.wgt-dlg:not([open]){display:none}
.wgt-dlg[open]{display:flex;flex-direction:column;animation:wgt-dlg-in .32s var(--wgt-ease) both}
.wgt-dlg::backdrop{background:#1d2a4a59;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:wgt-fade .28s ease both}
.wgt-dlg.is-closing{animation:wgt-dlg-out .18s ease both}
.wgt-dlg.is-closing::backdrop{animation:wgt-fade .18s ease reverse both}
.wgt-dlg.is-fallback{z-index:1000}
.wgt-dlg *{box-sizing:border-box}
.wgt-dlg-frame{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%}
.wgt-dlg-frame>*{flex-shrink:0}
.wgt-dlg-grab{display:none}
.wgt-dlg-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:20px 20px 14px 22px}
.wgt-dlg-heading{flex:1;min-width:0}
.wgt-dlg-heading h2{margin:0 0 2px;padding:0;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-.02em;color:var(--wgt-ink)}
.wgt-dlg-heading p{margin:0;padding:0;font-size:14px;color:var(--wgt-mute);line-height:1.45}
.wgt-dlg-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--wgt-line);border-radius:50%;background:#fff;color:var(--wgt-mute);line-height:1;box-shadow:none;transition:background .2s,color .2s}
.wgt-dlg-close .wgt-ico{width:16px;height:16px}
.wgt-dlg-close:hover{background:var(--wgt-soft);color:var(--wgt-blue)}
.wgt-dlg-field{position:relative;margin:0 20px 8px}
.wgt-dlg-field>.wgt-ico{position:absolute;left:14px;top:50%;translate:0 -50%;width:18px;height:18px;color:var(--wgt-mute);pointer-events:none}
.wgt-dlg-field:focus-within>.wgt-ico{color:var(--wgt-blue)}
.wgt-dlg-field input{display:block;width:100%;height:48px;min-height:0;margin:0;padding:0 14px 0 42px;border:1px solid #cdd7e8;border-radius:12px;background:#fff;font:inherit;font-size:16px;line-height:normal;color:var(--wgt-ink);outline:none;box-shadow:none;-webkit-appearance:none;appearance:none;transition:border-color .2s,box-shadow .25s}
.wgt-dlg-field input::-webkit-search-cancel-button{display:none}
.wgt-dlg-field input::placeholder{color:#6f7a8c}
.wgt-dlg-field input:focus{border-color:var(--wgt-blue);box-shadow:0 0 0 4px #1a56db14}
.wgt-dlg-scroll{flex:1 1 auto!important;min-height:min(220px,30dvh);overflow-y:auto;overscroll-behavior:contain;padding:0 12px 12px;scrollbar-width:thin;scrollbar-color:#cbd7ec transparent}
.wgt-dlg-status{margin:0;padding:4px 10px 6px;font-size:13px;color:var(--wgt-mute)}
.wgt-dlg-res{list-style:none;display:grid;gap:2px;margin:0;padding:0}
.wgt-dlg-res li{margin:0;padding:0}
.wgt-dlg-res a{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;align-items:center;gap:12px;min-height:50px;padding:7px 10px;border-radius:11px;color:var(--wgt-ink);text-decoration:none;transition:background .15s}
.wgt-dlg-res a:hover,.wgt-dlg-res a:focus-visible{background:var(--wgt-soft);outline:none}
.wgt-dlg-res .wgt-r-ico{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--wgt-mist);color:var(--wgt-blue)}
.wgt-dlg-res .wgt-r-ico .wgt-ico{width:18px;height:18px}
.wgt-dlg-res a:hover .wgt-r-ico,.wgt-dlg-res a:focus-visible .wgt-r-ico{background:#fff}
.wgt-r-txt{display:flex;flex-direction:column;min-width:0}
.wgt-r-name{font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.wgt-r-name mark{background:none;color:var(--wgt-blue);padding:0}
.wgt-r-hint{font-size:13px;color:var(--wgt-mute);line-height:1.35}
.wgt-r-go{color:#9aa4b3}
.wgt-r-go .wgt-ico{width:16px;height:16px}
.wgt-dlg-foot{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;padding:10px 22px;border-top:1px solid var(--wgt-line);background:#fbfcfe;font-size:13px;color:var(--wgt-mute)}
.wgt-dlg-foot span{display:inline-flex;align-items:center;gap:7px}
@keyframes wgt-dlg-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes wgt-dlg-out{to{opacity:0;transform:translateY(6px) scale(.985)}}
@keyframes wgt-fade{from{opacity:0}to{opacity:1}}
@keyframes wgt-sheet-in{from{transform:translateY(100%)}to{transform:none}}
@keyframes wgt-sheet-out{to{transform:translateY(100%)}}

/* responsive */
@media(min-width:1450px){.wgt-head h1{font-size:44px}}
@media(max-width:1023px){.wgt-head h1{font-size:34px}.wgt-qbtn{width:300px}.wgt-h1ico{width:50px;height:50px}.wgt-h1ico .wgt-ico{width:25px;height:25px}}
@media(max-width:900px){.wgt-latest-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){
  .wg-service{padding-top:28px}
  .wgt{font-size:15px}
  .wgt-crumbs ol{font-size:13px;margin-bottom:18px}
  .wgt-head{flex-direction:column;align-items:stretch;gap:20px;margin-bottom:4px}
  .wgt-h1row{gap:12px;margin-bottom:12px;align-items:flex-start}
  .wgt-h1ico{width:44px;height:44px;border-radius:13px}
  .wgt-h1ico .wgt-ico{width:23px;height:23px}
  .wgt-head h1{font-size:28px;letter-spacing:-.025em}
  .wgt-lead{font-size:16px;line-height:1.6}
  .wgt-qbtn{width:100%;font-size:15px}
  .wgt-qbtn kbd{display:none}
  .wgt-sec{margin-top:40px}
  .wgt-h2,.wgt-caption h2,.wgt-about h2{font-size:21px}
  .wgt-sec-head p{font-size:14px}
  .wgt-tiles,.wgt-tiles.is-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .wgt-tiles.is-grades{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wgt-tile{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;padding:10px 12px 12px;min-height:0}
  .wgt-tile-ico{width:34px;height:34px;border-radius:10px}
  .wgt-tile-ico .wgt-ico{width:19px;height:19px}
  .wgt-tile-name{font-size:14.5px}
  .wgt-tile-n{font-size:12.5px}
  .wgt-tile-go{display:none}
  .wgt-lt{gap:12px;padding:12px}
  .wgt-lt-ico{width:40px;height:40px}
  .wgt-lt-title{font-size:15.5px}
  .wgt-filters{margin-top:22px}
  .wgt-filters ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 4px;scroll-padding:16px}
  .wgt-filters ul::-webkit-scrollbar{display:none}
  .wgt-filter{min-height:40px;padding:8px 14px;font-size:14px}
  .wgt-topics{margin-top:30px}
  .wgt-topics-head{flex-direction:column;align-items:stretch;gap:14px}
  .wgt-search{flex-basis:auto}
  .wgt-card{gap:10px;padding:8px 8px 8px 10px}
  .wgt-card-main{gap:10px}
  .wgt-num{min-width:22px;font-size:12px}
  .wgt-docico{display:none}
  .wgt-copy{flex-direction:column;align-items:flex-start;gap:4px}
  .wgt-title{font-size:15px;width:100%}
  .wgt-meta{font-size:12px;padding:2px 8px}
  .wgt-actions{gap:6px}
  .wgt-copybtn{width:38px;height:38px}
  .wgt-gen{min-height:38px;padding:0 13px;font-size:13px}
  .wgt-gen>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .wgt-card .wgt-gen{width:38px;padding:0;background:var(--wgt-soft)}
  .wgt-foot{flex-direction:column;align-items:flex-start}
  .wgt-adj{grid-template-columns:minmax(0,1fr)}
  .wgt-adj-next{grid-column:auto}
  .wgt-adj a{min-height:58px}
  .wgt-cta{flex-direction:column;align-items:stretch;padding:22px 20px}
  .wgt-gen.wgt-gen-solid{width:100%}
  .wgt-dlg{inset:auto 0 0 0;width:100%;max-width:100%;height:min(82dvh,calc(100dvh - 24px));max-height:calc(100dvh - 24px);margin:auto 0 0;border:0;border-radius:20px 20px 0 0;box-shadow:0 -12px 40px -16px #172f6559}
  .wgt-dlg[open]{animation:wgt-sheet-in .3s var(--wgt-ease) both}
  .wgt-dlg.is-closing{animation:wgt-sheet-out .18s ease both}
  .wgt-dlg-grab{display:block;width:40px;height:4px;margin:8px auto 0;border-radius:4px;background:#d5dce8}
  .wgt-dlg-top{padding:12px 14px 12px 18px;align-items:center}
  .wgt-dlg-heading h2{font-size:19px}
  .wgt-dlg-heading p{font-size:13px}
  .wgt-dlg-close{flex-basis:40px;width:40px;height:40px}
  .wgt-dlg-field{margin:0 14px 8px}
  .wgt-dlg-scroll{min-height:160px;padding:0 6px calc(12px + env(safe-area-inset-bottom))}
  .wgt-dlg-foot{display:none}
}
@media(max-width:359px){.wgt-head h1{font-size:25px}.wgt-h1ico{width:40px;height:40px}.wgt-tiles,.wgt-tiles.is-types{grid-template-columns:minmax(0,1fr)}.wgt-tiles.is-grades{grid-template-columns:repeat(2,minmax(0,1fr))}.wgt-tile{flex-direction:row;align-items:center}.wgt-actions{gap:6px}.wgt-filter{padding:7px 12px}}
@media(prefers-reduced-motion:reduce){.wgt *,.wgt *::before,.wgt *::after,.wgt-dlg,.wgt-dlg::backdrop{transition-duration:.01ms!important;animation-duration:.01ms!important}}
