/* UzEnParC: consolidated public styles. No obsolete version stylesheets. */

/* v12.css */
/* UzEnParC GOLD v12 — polish, accessible theme, responsive research views. */
:root{--focus-ring:#148d8b}
:root[data-theme=light]{color-scheme:light}
body{transition:background-color .26s,color .26s}
.topbar{border-bottom:1.5px solid #d8e3dd;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.top-actions{gap:9px}
.theme-toggle{border:1.5px solid #ceddd5;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;background:#f0f7f2;color:#135b60;cursor:pointer;transition:transform .2s,border-color .2s,background-color .2s}
.theme-toggle:hover{transform:translateY(-2px);border-color:#70b2a4;background:#e1f2eb}
.theme-toggle svg{width:19px;height:19px}
.theme-toggle .sun-icon{display:none}
:root[data-theme=dark] .theme-toggle .moon-icon{display:none}
:root[data-theme=dark] .theme-toggle .sun-icon{display:block}
.ui-lang-switch{max-width:170px;min-width:110px;padding:0 11px!important;border:1.5px solid #cde3d9!important;cursor:pointer;transition:.18s}
.ui-lang-switch:hover{border-color:#83b3ab!important}
.alphabet-notice{margin:0 0 17px;padding:11px 15px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1.5px solid #d9c7a4;border-radius:13px;background:linear-gradient(120deg,#fbf7e8,#f5f9f2);box-shadow:0 5px 20px #8f7a4420;color:#5f644c;font-size:12px}
.alphabet-notice strong{letter-spacing:.09em;font-size:15px;color:#227570}
/* Solid frames and a clean full-width help band under both language columns. */
.result-card{border:1.6px solid #cbdcd2!important;border-radius:17px!important;box-shadow:0 8px 26px #1a525514!important}
.result-card .doc-head{border-bottom:1.5px solid #c9dcd1!important;padding:16px 20px!important}
.result-card .doc-head .doc-name{font-size:15px;font-weight:850;letter-spacing:-.12px}
.result-card .doc-head .doc-title-en{font-size:13px}
.result-card .result-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;position:relative}
.result-card .sentence{padding:21px 23px 19px;min-width:0;min-height:135px}
.result-card .sentence+.sentence{border-left:1.5px solid #d8e6dc}
.result-card .sentence-notes{margin-top:14px}
.result-card .card-help-band{display:flex;align-items:center;min-width:0;border-top:1.5px solid #dfebe3;background:linear-gradient(90deg,#f8fbf8,#fafcf9);padding:12px 20px}
.result-card .card-help-band .interaction-guide{display:inline-flex!important;max-width:100%!important;width:auto!important;min-height:0!important;margin:0!important;padding:8px 12px 8px 8px!important;border:1.5px solid #cce2d9!important;font-size:11px;border-radius:10px}
.result-card .result-actions{border-top:1.5px solid #dfebe3;background:#fcfdfb;padding:13px 19px}
.result-card .icon-button{border:1.4px solid #dae5dd;border-radius:9px;min-height:34px;padding:6px 10px}
.result-card .tag{border:1.2px solid #dae7dc}
.result-card .doc-info{align-items:flex-start}
.result-card .bilingual-doc-title{gap:7px}
/* Corpus sources discovery */
.catalog-page-panel{padding:0!important;border:1.6px solid #d5e6dc!important;overflow:hidden}
.catalog-heading{position:relative;background:radial-gradient(circle at 94% -20%,#d0ece0,transparent 42%),linear-gradient(114deg,#f3f8f2,#fffdf9);padding:34px clamp(22px,4vw,42px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1.5px solid #e0ebe3}
.catalog-heading h2{font:650 clamp(26px,3.2vw,37px)/1.18 Georgia,serif;color:#1d5052;margin:10px 0}
.catalog-heading .lead{max-width:730px;font-size:14px;margin:0}
.catalog-hero-mark{width:115px;height:115px;min-width:115px;display:grid;place-items:center;border-radius:32px;color:#247c74;border:1.5px solid #c8dfd1;background:#e7f3eb;box-shadow:0 12px 25px #1e68551a;transform:rotate(8deg)}
.catalog-hero-mark svg{width:76px;height:76px}
.catalog-toolbar{padding:17px clamp(20px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border-bottom:1.5px solid #e4eee7}
.catalog-total{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#526c65;white-space:nowrap}
.catalog-total strong{font-size:21px;font-weight:850;color:#186e68}
.catalog-total-icon{width:42px;height:42px;display:grid;place-items:center;color:#227669;background:#e9f5ef;border:1px solid #cfe5d8;border-radius:12px;font-size:20px}
.catalog-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.catalog-search{height:42px;width:clamp(225px,26vw,340px);position:relative;display:flex;align-items:center}
.catalog-search svg{position:absolute;left:13px;width:18px;height:18px;color:#71918a;pointer-events:none}
.catalog-search input,.catalog-controls select{border:1.5px solid #d5e3db;background:#fbfdfb;border-radius:11px;height:42px;color:#285659;outline:0;font-size:12px}
.catalog-search input{width:100%;padding:0 12px 0 40px}
.catalog-controls select{min-width:148px;padding:0 12px}
.catalog-search input:focus,.catalog-controls select:focus{border-color:#238782;box-shadow:0 0 0 3px #63bca537}
.catalog-list{padding:22px clamp(20px,3vw,34px) 29px;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.catalog-item{display:flex;flex-direction:column;gap:16px;border:1.5px solid #dbe7de;border-radius:16px;padding:20px;background:linear-gradient(155deg,#ffffff,#f9fcfa);box-shadow:0 7px 17px #184f480b;transition:transform .22s,border-color .22s,box-shadow .22s;min-height:254px;animation:catalogEnter .48s both;animation-delay:calc(var(--card-order) * 36ms)}
.catalog-item:hover{transform:translateY(-4px);border-color:#a7cbbb;box-shadow:0 15px 35px #144f4421}
.catalog-item-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.catalog-kind{font-size:10px;font-weight:850;letter-spacing:.05em;color:#267269;border-radius:99px;padding:6px 10px;background:#e9f5ef;border:1px solid #cee6d9}
.catalog-year{font-size:12px;font-weight:800;color:#8c795b}
.catalog-titles{display:grid;gap:10px;flex:1}
.catalog-title-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.catalog-locale{font-size:10px;color:#276a70;border:1px solid #d3e7da;background:#f1f7f2;border-radius:6px;padding:3px 5px;min-width:26px;text-align:center;font-weight:850}
.catalog-title-row h3{font-size:16px;line-height:1.35;font-weight:850;color:#204f51;overflow-wrap:anywhere;margin:0}
.catalog-title-row p{font-size:13px;line-height:1.5;font-weight:600;color:#637c77;overflow-wrap:anywhere;margin:0}
.catalog-details{display:flex;gap:8px 12px;flex-wrap:wrap;font-size:11px;color:#69817a}
.catalog-details span{overflow-wrap:anywhere}
.catalog-item-bottom{border-top:1px solid #e5eee7;display:flex;gap:12px;justify-content:space-between;align-items:center;padding-top:14px;flex-wrap:wrap}
.catalog-pair-count{font-size:11px;color:#637e75}.catalog-pair-count strong{font-size:18px;color:#155f5f}
.catalog-open{background:#e7f5ee;border:1px solid #c6dfd1;padding:8px 11px;font-size:11px}
.catalog-open:hover{background:#d6efe3}
.catalog-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:60px 20px;gap:10px;color:#718983}
.catalog-empty>span{font-size:38px}.catalog-empty strong{font-size:18px;color:#2d6865}.catalog-empty p{margin:0;font-size:12px}
@keyframes catalogEnter{from{opacity:.15;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
/* Animated, real-data analytics */
.analytics-page{padding:clamp(18px,3vw,34px)!important;border:1.5px solid #d5e6dc!important}
.analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:6px 2px 17px}
.analytics-heading h2{font:650 clamp(29px,3vw,40px)/1.15 Georgia,serif;color:#1c5255;margin:9px 0}
.analytics-heading .lead{font-size:13px;max-width:670px;margin:0}
.analytics-heading-icon{display:grid;place-items:center;flex:none;width:85px;height:85px;color:#b99864;font-size:50px;background:linear-gradient(135deg,#f0f8ee,#faf2dd);border:1px solid #dbebd9;border-radius:28px;animation:floatAnalytics 6s ease-in-out infinite}
.analytics-page .stats-cards{gap:15px;margin:14px 0 24px}
.analytics-page .stats-large{border:1.5px solid #cbded3!important;min-height:155px;border-radius:17px;padding:23px 19px;box-shadow:0 10px 24px #173f3b15}
.analytics-page .stats-large strong{font-size:clamp(29px,3vw,44px)!important;margin-top:21px;margin-bottom:8px}
.analytics-page .stats-large>span:last-child{font-size:12px!important}
.analytics-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}
.analytics-chart{border:1.5px solid #dce8df!important;border-radius:17px!important;background:linear-gradient(155deg,#fff,#fcfdfa);min-height:355px;padding:23px!important;min-width:0;overflow:hidden}
.analytics-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:22px}
.analytics-chart-head h3{font-size:20px!important;font-weight:800;color:#205459;margin:5px 0 0!important}
.chart-decor{font-size:25px;color:#b9a077}
.category-visual{display:grid;grid-template-columns:minmax(145px,210px) minmax(0,1fr);gap:23px;align-items:center}
.category-ring{border-radius:50%;width:min(100%,205px);aspect-ratio:1;display:grid;place-items:center;position:relative;box-shadow:0 11px 24px #173c3615;animation:ringReveal 1.4s cubic-bezier(.2,.9,.2,1) both}
.category-ring:before{content:"";position:absolute;inset:19%;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #ecf2ed}
.category-ring-center{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:1px}
.category-ring-center strong{font-size:clamp(18px,2vw,26px);font-weight:850;color:#245a5c}
.category-ring-center small{font-size:10px;color:#809088}
.analytics-chart .chart-horizontal{gap:16px}
.analytics-chart .barlabels{font-size:11px;gap:6px;flex-wrap:wrap}
.analytics-chart .barlabels>span{overflow-wrap:anywhere}
.analytics-chart .bartrack{height:9px;margin-top:7px;background:#eaf2ed}
.analytics-chart .barfill{background:linear-gradient(90deg,#117e78,#79bdad);animation:barReveal 1s cubic-bezier(.2,.65,.2,1) both}
.analytics-chart #statsYears{margin-top:20px}
.analytics-chart .histogram{height:237px;padding-top:20px;gap:clamp(5px,1.1vw,14px);overflow-x:auto;padding-bottom:3px;border-color:#cbded4}
.analytics-chart .hist-col{min-width:25px;justify-content:flex-end}
.analytics-chart .hist-bar{width:76%;max-width:45px;background:linear-gradient(#59bcb1,#167771);border-radius:7px 7px 2px 2px;box-shadow:0 3px 8px #155e5429;animation:histRise .85s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--bar-order) * 50ms)}
.hist-col .hist-year{font-size:10px;font-weight:700}.hist-col .hist-value{font-size:10px;font-weight:800}
.chart-subtitle{font-size:12px;color:#7a8e84;margin:0}
.analytics-footnote{font-size:11px;color:#84918b;margin:19px 4px 0}
.stats-no-years{padding:55px 15px;color:#83968a;font-size:12px;text-align:center}
@keyframes ringReveal{from{opacity:.15;transform:rotate(-95deg) scale(.8)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes floatAnalytics{50%{transform:translateY(-6px) rotate(8deg)}}
/* Complete night palette: every important panel remains readable. */
:root[data-theme=dark]{--ink:#e5f1ed;--ink2:#b7cdc6;--muted:#96b4ac;--teal:#7dcabd;--teal2:#1f7775;--dark:#061a23;--sand:#10272d;--cream:#122d31;--line:#32514f;--white:#17343a;--mint:#173f3d;--lav:#273f50;--gold:#e0b478;--shadow:0 17px 38px #0004;color-scheme:dark}
:root[data-theme=dark] body{background:#091c25;color:#e5f1ed}
:root[data-theme=dark] .sidebar{background:#061720;border-right-color:#20484c}
:root[data-theme=dark] .topbar{background:#102932e6;border-bottom-color:#315258}
:root[data-theme=dark] .breadcrumb,:root[data-theme=dark] .breadcrumb strong{color:#dae9e3}
:root[data-theme=dark] #topUpload,:root[data-theme=dark] .ui-lang-switch,:root[data-theme=dark] .theme-toggle{background:#193d43!important;color:#d2eeeb!important;border-color:#416768!important}
:root[data-theme=dark] .hero{background:radial-gradient(circle at 92% 42%,#1a4949,#123137 45%,transparent 77%),linear-gradient(105deg,#102c33,#142b32);border-color:#365858}
:root[data-theme=dark] .hero h1,:root[data-theme=dark] .hero h1 em{color:#f0e0bd}
:root[data-theme=dark] .hero p,:root[data-theme=dark] .hero .eyebrow{color:#bbd4cb}
:root[data-theme=dark] .alphabet-notice{background:linear-gradient(120deg,#2f3731,#23392f);border-color:#786a47;color:#e0d7b9}
:root[data-theme=dark] .alphabet-notice strong{color:#b0e0cc}
:root[data-theme=dark] :is(.search-panel,.large-panel,.result-card,.side-card,.mini-stat,.modal,.modal-body,.details,.field,.chart,.stats-large,.catalog-item,.corpus-process,.corpus-demo,.corpus-sources,.founder-card,.university-section,.type-card,.search-body,.panel-footer){color:#d6e9e2}
:root[data-theme=dark] :is(.search-panel,.large-panel,.result-card,.side-card,.mini-stat,.modal,.chart,.corpus-process,.corpus-demo,.corpus-sources,.founder-card,.university-section,.type-card){background:#152f36!important;border-color:#39595a!important;box-shadow:0 8px 25px #0003!important}
:root[data-theme=dark] .search-body,:root[data-theme=dark] .panel-footer,:root[data-theme=dark] .tabs{background:#152f36;border-color:#39565a}
:root[data-theme=dark] .tab{color:#b2c7c0}
:root[data-theme=dark] .tab.active{color:#9adfd1;border-bottom-color:#65c9b9}
:root[data-theme=dark] :is(.advanced,.special-panel,.lemma-help,.result-aside,.aside-art,.help-section){background:#142e33!important;border-color:#375657!important;color:#d6e8e1}
:root[data-theme=dark] .special-head h3,:root[data-theme=dark] .lemma-help strong{color:#b2e6d7}
:root[data-theme=dark] :is(.field label,.column-label,.muted,.lead,.section-title p,.doc-biblio,.sentence-notes,.catalog-details,.chart-subtitle,.analytics-footnote){color:#b1c5bf!important}
:root[data-theme=dark] :is(.field input,.field select,.field textarea,.search-grid input,.btn-outline,.pill,.semantic-category,.special-actions button,.selection-pill,.grammar-fields input,.catalog-search input,.catalog-controls select,#sortSelect,#perPage,#viewSelect){background:#1c3a42!important;color:#e0f0e9!important;border-color:#456464!important}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:#9cbab2}
:root[data-theme=dark] .btn-primary{background:#267d76!important;color:#fff!important}
:root[data-theme=dark] .btn-soft,:root[data-theme=dark] .btn-reset-all{background:#20473f!important;border-color:#3a7770!important;color:#bee9dc!important}
:root[data-theme=dark] .doc-head,:root[data-theme=dark] .result-card .doc-head{background:linear-gradient(115deg,#203f40,#20363c)!important;border-color:#3c6261!important}
:root[data-theme=dark] .doc-name,:root[data-theme=dark] .result-card .doc-name,:root[data-theme=dark] .doc-title-en,:root[data-theme=dark] .doc-biblio strong{color:#e5f0e9!important}
:root[data-theme=dark] .doc-lang-label,:root[data-theme=dark] .catalog-locale{background:#274d4d!important;color:#c2e7de!important;border-color:#4b7570!important}
:root[data-theme=dark] .sentence-text,:root[data-theme=dark] .sentence-text .token{color:#e0eee9}
:root[data-theme=dark] .sentence-text .token{border-bottom-color:#557c78}
:root[data-theme=dark] .result-card .sentence+.sentence{border-left-color:#3a605f}
:root[data-theme=dark] .result-card .card-help-band{background:#18383a;border-top-color:#3c5e5a}
:root[data-theme=dark] .result-card .card-help-band .interaction-guide{background:#244b45!important;border-color:#4d8073!important;color:#dbf1e9!important}
:root[data-theme=dark] .result-card .interaction-guide-symbol{background:#326057!important;color:#d4efe1!important}
:root[data-theme=dark] .result-card .result-actions{background:#163238;border-color:#39585a}
:root[data-theme=dark] .result-card .tag{background:#234740;color:#d1ebe2;border-color:#40645c}
:root[data-theme=dark] .result-card .icon-button{background:#214146;border-color:#48665e;color:#d0e9e3}
:root[data-theme=dark] .result-card .icon-button:hover{background:#2e5556}
:root[data-theme=dark] .sentence-text .token.is-query{color:#342610!important;background:#e3bd75!important}
:root[data-theme=dark] .sentence-text .token.is-query-partner{color:#12332c!important;background:#93dbc5!important}
:root[data-theme=dark] .sentence-text .token.is-hovered,:root[data-theme=dark] .sentence-text .token.is-hover-partner{color:#2c1d51!important;background:#c4aff0!important}
:root[data-theme=dark] .catalog-heading{background:radial-gradient(circle at 92% 0%,#2b5650,transparent 42%),linear-gradient(115deg,#1b3d3c,#172e34);border-color:#3d6261}
:root[data-theme=dark] .catalog-heading h2,:root[data-theme=dark] .analytics-heading h2,:root[data-theme=dark] .analytics-chart-head h3{color:#d9eee6}
:root[data-theme=dark] .catalog-hero-mark{background:#295047;border-color:#4d786b;color:#aad8c6}
:root[data-theme=dark] .catalog-toolbar{background:#19373c;border-color:#3c5e59}
:root[data-theme=dark] .catalog-total{color:#bfdbcf}
:root[data-theme=dark] .catalog-total strong{color:#9bdfcb}
:root[data-theme=dark] .catalog-total-icon{background:#2b5148;border-color:#477369;color:#b4ddcb}
:root[data-theme=dark] .catalog-item{background:linear-gradient(145deg,#19383c,#19343b)!important;border-color:#3c5b5c!important}
:root[data-theme=dark] .catalog-item:hover{border-color:#5c9d8e!important}
:root[data-theme=dark] .catalog-kind{background:#285246;border-color:#467566;color:#bde6d6}
:root[data-theme=dark] .catalog-year{color:#dac59f}
:root[data-theme=dark] .catalog-title-row h3{color:#e1eee8}
:root[data-theme=dark] .catalog-title-row p{color:#b6cfc7}
:root[data-theme=dark] .catalog-item-bottom{border-color:#3a6059}
:root[data-theme=dark] .catalog-pair-count{color:#bdd2c8}
:root[data-theme=dark] .catalog-pair-count strong{color:#91d9bf}
:root[data-theme=dark] .analytics-page{background:#152e36!important}
:root[data-theme=dark] .analytics-heading-icon{background:#254640;color:#e1bb79;border-color:#4d705d}
:root[data-theme=dark] .analytics-chart{background:linear-gradient(135deg,#1a3840,#182f37)!important}
:root[data-theme=dark] .category-ring:before{background:#18343c;box-shadow:inset 0 0 0 1px #33545a}
:root[data-theme=dark] .category-ring-center strong{color:#e3f2eb}
:root[data-theme=dark] .category-ring-center small{color:#b1c9c0}
:root[data-theme=dark] .barlabels,:root[data-theme=dark] .hist-col span{color:#d6e7df}
:root[data-theme=dark] .bartrack{background:#355459}
:root[data-theme=dark] .histogram{border-color:#44696a}
:root[data-theme=dark] .details,:root[data-theme=dark] .detail-box,:root[data-theme=dark] .token-table,:root[data-theme=dark] .token-comment-box{background:#1c3940!important;color:#e3eee8!important;border-color:#42645e!important}
:root[data-theme=dark] .detail-box span,:root[data-theme=dark] .token-comment-entry p{color:#b5cdc5!important}
:root[data-theme=dark] .token-detail-head{background:linear-gradient(115deg,#24524a,#344c46)!important;border-color:#528475}
:root[data-theme=dark] .token-detail-head strong{color:#e1f5e8}
:root[data-theme=dark] .context-prose p{color:#daeae2}
:root[data-theme=dark] .context-prose .context-focus{color:#133f30!important}
:root[data-theme=dark] .search-panel .field.filter-field-selected input,:root[data-theme=dark] .search-panel .field.filter-field-selected select{color:#473a1d!important}
:root[data-theme=dark] .modal-backdrop{background:#010d14ba}
:root[data-theme=dark] .modal-head,:root[data-theme=dark] .modal-footer{background:#18353b!important;color:#e8f2eb;border-color:#3a6060}
:root[data-theme=dark] .modal-head h3{color:#e6f1e9}
:root[data-theme=dark] .founder-card-copy h3,:root[data-theme=dark] .process-steps h3,:root[data-theme=dark] .type-card h4,:root[data-theme=dark] .uni-body h3,:root[data-theme=dark] .corpus-demo h3,:root[data-theme=dark] .corpus-sources h3{color:#d8ebe3}
:root[data-theme=dark] .process-steps article,:root[data-theme=dark] .corpus-demo-board{background:#224047!important;border-color:#3e6661!important}
:root[data-theme=dark] .founder-card-copy p,:root[data-theme=dark] .uni-body p,:root[data-theme=dark] .process-steps p,:root[data-theme=dark] .type-card p,:root[data-theme=dark] .corpus-demo p,:root[data-theme=dark] .corpus-sources p{color:#c0d0c9}
:root[data-theme=dark] .demo-sentence{color:#e9f1e8}
:root[data-theme=dark] .demo-annotation span{background:#244a48;color:#d3eade;border-color:#467367}
:root[data-theme=dark] .footer{color:#91b6ad;border-color:#375d59}
@media(max-width:1150px){.category-visual{grid-template-columns:1fr;justify-items:center}.category-visual .chart-horizontal{width:100%}.analytics-grid{grid-template-columns:1fr 1fr}}
@media(max-width:880px){.analytics-grid{grid-template-columns:1fr}.category-visual{grid-template-columns:minmax(130px,190px) 1fr}.catalog-list{grid-template-columns:1fr}}
@media(max-width:670px){.top-actions{gap:5px}.theme-toggle{width:34px;height:35px;border-radius:10px}.ui-lang-switch{min-width:84px;max-width:128px;font-size:11px!important;padding:0 5px!important}.catalog-heading{padding:26px 20px}.catalog-hero-mark{display:none}.catalog-toolbar{align-items:stretch}.catalog-controls{width:100%}.catalog-search{width:100%}.catalog-controls select{width:100%}.catalog-list{padding:15px}.catalog-item{min-height:auto}.category-visual{grid-template-columns:1fr}.analytics-page .stats-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-page .stats-large{min-height:125px;padding:17px 14px}.analytics-page .stats-large strong{font-size:28px!important}.analytics-heading-icon{display:none}.result-card .result-row{grid-template-columns:1fr}.result-card .sentence+.sentence{border-left:0;border-top:1.5px solid #d8e6dc}.result-card .sentence{min-height:0;padding:20px 17px}.result-card .card-help-band{padding:11px 13px}.result-card .doc-head{padding:13px!important}}
@media(prefers-reduced-motion:reduce){.catalog-item,.category-ring,.analytics-heading-icon,.analytics-chart .barfill,.analytics-chart .hist-bar{animation:none!important;transition:none!important}}
/* Dark theme finishing pass: metric backgrounds and contrast override older !important gradients. */
:root[data-theme=dark] .analytics-page .stats-large,
:root[data-theme=dark] .analytics-page .stats-large:nth-child(1),
:root[data-theme=dark] .analytics-page .stats-large:nth-child(2),
:root[data-theme=dark] .analytics-page .stats-large:nth-child(3),
:root[data-theme=dark] .analytics-page .stats-large:nth-child(4){background:#214047!important;background-image:linear-gradient(135deg,#254847,#193940)!important;border-color:#497171!important}
:root[data-theme=dark] .analytics-page .stats-large:nth-child(2){background-image:linear-gradient(135deg,#443f32,#283c3b)!important}
:root[data-theme=dark] .analytics-page .stats-large:nth-child(3){background-image:linear-gradient(135deg,#2a414c,#213b48)!important}
:root[data-theme=dark] .analytics-page .stats-large:nth-child(4){background-image:linear-gradient(135deg,#3e3c50,#2b3948)!important}
:root[data-theme=dark] .analytics-page .stats-large strong{color:#d9f3e6!important}
:root[data-theme=dark] .analytics-page .stats-large span:not(.stat-symbol){color:#c1d7cd!important}
:root[data-theme=dark] .analytics-page .stats-large .stat-symbol{background:#395b58;color:#c2e6d7}
:root[data-theme=dark] .analytics-chart .barlabels b{color:#d5efe3!important}
:root[data-theme=dark] .mini-stat .value,:root[data-theme=dark] .side-stat strong{color:#a6e6d4!important}
:root[data-theme=dark] .mini-stat .label,:root[data-theme=dark] .side-card p,:root[data-theme=dark] .side-stat span,:root[data-theme=dark] .side-card h3{color:#cee2da!important}
:root[data-theme=dark] .alignment-legend{background:linear-gradient(90deg,#294b49,#244544)!important;border:1px solid #456d62;color:#d2eadf}
:root[data-theme=dark] .alignment-legend .legend-intro,:root[data-theme=dark] .legend-help{color:#d9efe2}
:root[data-theme=dark] .swatch{border-color:#416058}


/* v13.css */
/* UzEnParC GOLD V13: one unified pill, 999px corners, content-sized language button. */
.top-actions{gap:12px;align-items:center}
.top-control-pill{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:2px;padding:4px 6px;background:linear-gradient(135deg,#f7faf9,#f0f4f8);border:1.4px solid #d8e2e8;border-radius:999px;box-shadow:0 2px 9px #1d47551a;flex-shrink:0;min-height:47px}
.top-control-pill .top-pill-icon{width:35px;height:35px;min-width:35px;display:grid;place-items:center;padding:0;border:0!important;background:transparent!important;color:#112638!important;border-radius:999px!important;box-shadow:none!important;transition:background .16s,transform .16s}
.top-control-pill .top-pill-icon:hover{background:#dae8ed!important;transform:none}
.top-control-pill .top-pill-icon svg{width:21px;height:21px;display:block}
.top-control-pill .pill-divider{width:1px;height:24px;background:#d5dfe5;margin:0 4px}
.language-control{position:relative;display:flex;align-items:center}
.language-button{appearance:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:none!important;background:transparent!important;color:#152b40!important;font-weight:850;border-radius:999px;padding:6px 7px 6px 4px;min-width:0;min-height:35px;max-width:none;letter-spacing:.02em;box-shadow:none;transition:background .16s}
.language-button:hover{background:#dae8ed!important}
.language-button .lang-globe{width:19px;height:19px;color:#168ad2;flex:none}
.language-button .lang-chevron{width:12px;height:12px;opacity:.7;flex:none}
.language-menu{position:absolute;right:0;top:calc(100% + 13px);z-index:160;display:grid;gap:4px;width:max-content;min-width:230px;max-width:min(320px,calc(100vw - 24px));padding:7px;background:#fff;border:1.5px solid #d6e5e0;border-radius:18px;box-shadow:0 19px 45px #142b3850}
.language-menu.hidden{display:none!important}
.language-menu button{display:flex;align-items:center;gap:12px;width:100%;border:none;border-radius:12px;background:transparent;padding:11px 10px;text-align:left;color:#234752;transition:background .15s;font-weight:620}
.language-menu button:hover,.language-menu button:focus-visible{background:#eff8f4}
.language-menu button[aria-checked=true]{background:#e3f5eb;color:#115c57}
.language-menu .language-code{display:grid;place-items:center;min-width:31px;border:1px solid #bedbd1;border-radius:8px;background:#fff;font-weight:900;font-size:12px;padding:4px 3px}
.language-menu .language-desc{font-size:12px;line-height:1.35}
:root[data-theme=dark] .top-control-pill{background:linear-gradient(125deg,#243842,#172d3a);border-color:#45616a;box-shadow:0 2px 15px #0004}
:root[data-theme=dark] .top-control-pill .top-pill-icon,:root[data-theme=dark] .language-button{color:#edf5f4!important;background:transparent!important;border:0!important}
:root[data-theme=dark] .top-control-pill .top-pill-icon:hover,:root[data-theme=dark] .language-button:hover{background:#38535a!important}
:root[data-theme=dark] .pill-divider{background:#49636d}
:root[data-theme=dark] .language-menu{background:#19333d;border-color:#456a6b}
:root[data-theme=dark] .language-menu button{color:#e2efe9}
:root[data-theme=dark] .language-menu button:hover{background:#304f50}
:root[data-theme=dark] .language-menu button[aria-checked=true]{background:#29594f;color:#d7efe7}
:root[data-theme=dark] .language-code{background:#22483f;border-color:#44695c;color:#d4f2e7}
@media(max-width:670px){.top-actions{gap:7px}.top-control-pill{padding:3px 4px;min-height:42px;border-radius:999px}.top-control-pill .top-pill-icon{width:31px;min-width:31px;height:32px}.top-control-pill .top-pill-icon svg{width:19px;height:19px}.top-control-pill .pill-divider{margin:0 2px;height:21px}.language-button{gap:4px;padding:5px 5px 5px 2px;font-size:12px}.language-button .lang-globe{width:17px;height:17px}.top-actions #topUpload{min-width:34px!important;width:34px;padding:6px!important;display:grid!important;place-items:center}.top-actions #topUpload #adminLabel{display:none}}
@media(max-width:410px){.topbar{padding:0 10px!important;gap:5px}.top-actions{gap:5px}.breadcrumb{font-size:11px}.breadcrumb strong{max-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-control-pill .top-pill-icon{width:28px;min-width:28px}.language-button .lang-chevron{display:none}.top-control-pill .pill-divider{margin:0 1px}}
.topbar{position:relative;z-index:80}

/* Ensure exactly one theme symbol is shown. */
.top-control-pill .theme-toggle .sun-icon{display:none}
:root[data-theme=dark] .top-control-pill .theme-toggle .moon-icon{display:none}
:root[data-theme=dark] .top-control-pill .theme-toggle .sun-icon{display:block}


/* v14.css */
/* UzEnParC GOLD V14 — quiet editorial cards, unified toolbar and motion. */
.brand-mark{width:51px!important;height:51px!important;overflow:hidden;border-radius:14px!important;background:#073f40!important;border:1px solid #bb9b5b!important;box-shadow:0 7px 17px #001e2157!important;flex-shrink:0}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}
.brand{gap:13px}
/* One compact toolbar: admin / theme / language. */
.top-control-pill{gap:4px;padding:5px 7px;border-radius:999px;box-shadow:0 4px 16px #1f4b5115;min-height:51px}
.top-control-pill #topUpload{border:0!important;box-shadow:none!important;background:transparent!important;color:#163842!important}
.top-control-pill .top-pill-icon:focus-visible,.language-button:focus-visible{outline-offset:-2px}
.top-control-pill .lang-globe{transform-origin:center;will-change:transform;transition:transform .32s cubic-bezier(.25,.9,.2,1)}
.language-button:hover .lang-globe{transform:rotate(-20deg) scale(1.12)}
.language-button.is-switching .lang-globe{animation:languageGlobeTurn .78s cubic-bezier(.25,.7,.28,1) both}
.language-button.is-switching #uiLangLabel{animation:languageCodeSwap .42s ease both}
@keyframes languageGlobeTurn{0%{transform:rotateY(0deg) rotateZ(0deg) scale(1)}36%{transform:rotateY(145deg) rotateZ(-12deg) scale(.89)}75%{transform:rotateY(325deg) rotateZ(7deg) scale(1.14)}100%{transform:rotateY(360deg) rotateZ(0deg) scale(1)}}
@keyframes languageCodeSwap{0%{opacity:.5;transform:translateY(4px)}100%{opacity:1;transform:translateY(0)}}
@keyframes refinedPageIn{0%{opacity:.15;transform:translate3d(0,15px,0) scale(.993)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes refinedPageOut{to{opacity:0;transform:translate3d(0,-7px,0) scale(.997)}}
.content>:is(.hero,#searchPage,#catalogPage,#statsPage,#foundersPage,#corpusinfoPage):not(.hidden){animation:refinedPageIn .44s cubic-bezier(.19,.8,.25,1) both}
::view-transition-old(root){animation:refinedPageOut .20s ease both}
::view-transition-new(root){animation:refinedPageIn .36s cubic-bezier(.15,.8,.24,1) both}
/* Result card: one elegant reading surface instead of stacked boxed bands. */
.result-card.v14-result{position:relative;background:#fff!important;border:1.4px solid #d6e4dc!important;border-radius:23px!important;box-shadow:0 8px 27px #154b3d0c,0 1px 3px #17493708!important;overflow:hidden;margin-bottom:20px;transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease}
.result-card.v14-result:hover{border-color:#bbd9cb!important;box-shadow:0 14px 34px #155b4718,0 1px 5px #124a3910!important;transform:translateY(-2px)}
.result-card.v14-result .doc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:#fbfcf9!important;border-bottom:1px solid #edf0eb!important;padding:21px 26px 17px!important}
.result-card.v14-result .doc-info{gap:15px;align-items:flex-start;min-width:0}
.result-card.v14-result .doc-info>svg{width:22px;height:22px;margin-top:5px;color:#b59657;flex:none}
.result-card.v14-result .bilingual-doc-title{gap:6px;min-width:0}
.result-card.v14-result .doc-name{font-size:17px;font-weight:820;letter-spacing:-.3px;line-height:1.4;color:#124b4c}
.result-card.v14-result .doc-title-en{font-size:13px;line-height:1.45;color:#426671}
.result-card.v14-result .doc-lang-label{display:inline-block;border:1px solid #d8e9de;background:#f0f7f2;color:#38766d;font-weight:800;border-radius:7px;padding:2px 5px;line-height:1.35;font-size:10px;vertical-align:baseline;margin-right:9px}
.result-card.v14-result .doc-biblio{font-size:11px;color:#83928c;display:flex;gap:5px 15px;margin-top:8px;flex-wrap:wrap;line-height:1.55}
.result-card.v14-result .doc-biblio strong{color:#315a58}
.result-top-tags{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:2px;flex-shrink:0}
.result-kicker{font-size:10px;letter-spacing:.03em;color:#5b8372;font-weight:780;background:#eff5ec;padding:5px 9px;border-radius:99px}
.result-kicker.quiet{background:transparent;color:#87958d;border:1px solid #e1e9e0}
.result-card.v14-result .result-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;background:transparent!important}
.result-card.v14-result .result-row:after{content:"";position:absolute;left:50%;width:1px;top:24px;bottom:24px;background:linear-gradient(to bottom,transparent,#dce7df 17%,#dce7df 83%,transparent);pointer-events:none}
.result-card.v14-result .sentence{padding:25px 28px 26px!important;min-height:145px;background:transparent}
.result-card.v14-result .sentence+.sentence{border:0!important}
.result-card.v14-result .column-label{font-size:10px!important;letter-spacing:.105em!important;font-weight:850!important;color:#749085!important;margin:0 0 13px}
.result-card.v14-result .lang-flag{margin-right:3px}
.result-card.v14-result .sentence-text{font-family:Georgia,'Times New Roman',serif;font-size:clamp(18px,1.55vw,21px);line-height:1.73;letter-spacing:.08px;color:#264b4b}
.result-card.v14-result .sentence-text .token{transition:background-color .12s,color .12s}
.result-card.v14-result .sentence-notes{font-family:inherit;font-size:11px;color:#a0aaa5!important;margin-top:13px}
.result-card.v14-result .token-warning{margin:0 25px 10px!important}
.result-card.v14-result .result-actions{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;padding:11px 24px 14px!important;border-top:1px solid #eef1eb!important;background:#fff!important;flex-wrap:wrap}
.result-inline-help{display:inline-flex;align-items:center;gap:9px;min-width:170px;flex:1;color:#7e928b;font-weight:590;font-size:10.5px;line-height:1.5}
.result-inline-help .footer-tip-icon{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;flex:0 0 23px;background:#edf7f2;color:#468b79}
.result-inline-help svg{width:14px;height:14px}
.result-card.v14-result .card-buttons{display:flex;gap:3px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.result-card.v14-result .icon-button{height:32px!important;min-height:32px!important;padding:6px 9px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:9px!important;color:#53736b!important;font-size:11px;font-weight:730;white-space:nowrap}
.result-card.v14-result .icon-button:hover{color:#096f68!important;background:#eef7f2!important}
.result-card.v14-result .details{border-top:1px solid #e8eee8}
/* Maintain clear contrast in night mode, without creating another stack of blocks. */
:root[data-theme=dark] .result-card.v14-result{background:#152e35!important;border-color:#38585a!important;box-shadow:0 10px 25px #0002!important}
:root[data-theme=dark] .result-card.v14-result:hover{border-color:#629688!important}
:root[data-theme=dark] .result-card.v14-result .doc-head{background:#19343a!important;border-bottom-color:#315052!important}
:root[data-theme=dark] .result-card.v14-result .doc-name{color:#e4f3eb}
:root[data-theme=dark] .result-card.v14-result .doc-title-en{color:#b9d8ce}
:root[data-theme=dark] .result-card.v14-result .doc-biblio strong{color:#d0e8df}
:root[data-theme=dark] .result-card.v14-result .doc-lang-label{background:#2a4b49;color:#bde6d7;border-color:#3f6a5e}
:root[data-theme=dark] .result-kicker{background:#285147;color:#c9e8d6}
:root[data-theme=dark] .result-kicker.quiet{background:transparent;border-color:#43605b;color:#b4c7bc}
:root[data-theme=dark] .result-card.v14-result .result-row:after{background:linear-gradient(to bottom,transparent,#3c5c57 17%,#3c5c57 83%,transparent)}
:root[data-theme=dark] .result-card.v14-result .sentence-text{color:#e0efe9}
:root[data-theme=dark] .result-card.v14-result .result-actions{background:#152e35!important;border-top-color:#305054!important}
:root[data-theme=dark] .result-inline-help{color:#a6c3b8}
:root[data-theme=dark] .result-inline-help .footer-tip-icon{background:#28534d;color:#c7eadb}
:root[data-theme=dark] .result-card.v14-result .icon-button{color:#a7d0c2!important;background:transparent!important;border:none!important}
:root[data-theme=dark] .result-card.v14-result .icon-button:hover{background:#28514c!important;color:#e7f4ed!important}
:root[data-theme=dark] .top-control-pill #topUpload{color:#edf5f4!important}
@media(max-width:1050px){.result-card.v14-result .doc-head{flex-wrap:wrap}.result-top-tags{margin-left:33px}.result-card.v14-result .result-actions{flex-wrap:wrap}.result-inline-help{flex-basis:100%}.result-card.v14-result .card-buttons{width:100%;justify-content:flex-end}}
@media(max-width:700px){.result-card.v14-result .result-row{grid-template-columns:1fr}.result-card.v14-result .result-row:after{display:none}.result-card.v14-result .sentence+.sentence{border-top:1px solid #ebf1ea!important}.result-card.v14-result .sentence{min-height:0;padding:20px 19px!important}.result-card.v14-result .doc-head{padding:19px 18px 16px!important}.result-top-tags{margin-left:0}.result-card.v14-result .result-actions{padding:11px 15px!important}.result-card.v14-result .card-buttons{justify-content:space-between;gap:3px}.result-card.v14-result .icon-button{padding:6px!important}.result-card.v14-result .sentence-text{font-size:18px}}
@media(max-width:420px){.top-control-pill{min-height:43px;padding:4px}.top-control-pill .top-pill-icon{width:30px;min-width:30px}.top-control-pill .pill-divider{height:20px}}
@media(prefers-reduced-motion:reduce){.content>:is(.hero,#searchPage,#catalogPage,#statsPage,#foundersPage,#corpusinfoPage):not(.hidden),.language-button.is-switching .lang-globe,.language-button.is-switching #uiLangLabel{animation:none!important}.result-card.v14-result{transition:none}.result-card.v14-result:hover{transform:none}::view-transition-old(root),::view-transition-new(root){animation-duration:.01ms!important}}
/* Same-origin admin ↔ corpus navigation also uses the browser transition API. */



/* v15.css */
/* UzEnParC GOLD V15 — supplied UZ/EN logo, calm data visuals, and a soft page dissolve. */
:root{--v15-teal:#117a76;--v15-blue:#3c819f;--v15-gold:#ba9a63}
/* Keep every page still until navigation, then dissolve the page body (not its position). */
.content{transition:opacity .22s cubic-bezier(.2,.65,.3,1)}
.content.v15-changing-page{opacity:.42}
.content>:is(.hero,#searchPage,#catalogPage,#statsPage,#foundersPage,#corpusinfoPage):not(.hidden){animation:none!important}
::view-transition-old(root),::view-transition-new(root){animation:none!important}
/* Brand image is wide; show the transparent original on a quiet navy surface rather than cropping its letters. */
.brand-mark{width:64px!important;height:61px!important;min-width:64px;background:linear-gradient(145deg,#063c4b,#092a3d)!important;border:1px solid #b5a27482!important;border-radius:17px!important;padding:2px!important;box-shadow:0 7px 22px #001c2870!important;overflow:hidden}
.brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 1px 3px #020f1a99)}
.brand{gap:11px!important;margin-left:2px!important;margin-right:0!important}
.brand-sub{color:#bdd8d7}
.nav-btn.active{background:linear-gradient(105deg,#176f74,#155b73);border-color:#66a2ad50}
.top-control-pill .lang-globe{color:#378cba}
@media(max-width:1080px){.brand-mark{width:52px!important;min-width:52px;height:52px!important}.brand{margin-left:auto!important;margin-right:auto!important}}
@media(max-width:780px){.sidebar.open .brand-mark{width:60px!important;min-width:60px;height:58px!important}}
/* STATISTICS: porcelain surfaces, ink-blue lettering, teal/steel-blue plus restrained champagne accents. */
#statsPage .analytics-page{position:relative;background:linear-gradient(155deg,#fcfdfb 0%,#f7faf9 60%,#f5f9f8 100%)!important;border:1px solid #dfeae6!important;box-shadow:0 15px 45px #163f4c0a!important;border-radius:26px!important;padding:clamp(23px,3.2vw,37px)!important}
#statsPage .analytics-heading{padding:1px 2px 27px!important;border-bottom:1px solid #e3ece9;align-items:start}
#statsPage .analytics-heading .eyebrow{color:#4f8981;font-size:10px;font-weight:800;letter-spacing:2px}
#statsPage .analytics-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(29px,3vw,41px);letter-spacing:-.9px;line-height:1.19;font-weight:650;color:#183e4b;margin:11px 0!important}
#statsPage .analytics-heading .lead{color:#708687;font-size:13px;max-width:720px;line-height:1.72}
#statsPage .analytics-heading-icon{display:none!important}
#statsPage .stats-cards{margin:25px 0 25px!important;gap:14px!important}
#statsPage .stats-large,#statsPage .stats-large:nth-child(1),#statsPage .stats-large:nth-child(2),#statsPage .stats-large:nth-child(3),#statsPage .stats-large:nth-child(4){--stat-accent:#137e79;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;position:relative;min-height:159px;padding:22px 20px 20px!important;background:#fff!important;background-image:none!important;border:1px solid #e1ebe8!important;border-radius:20px!important;box-shadow:0 6px 18px #153e4a09,0 1px 3px #153e4a03!important;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;overflow:hidden}
#statsPage .stats-large:nth-child(2){--stat-accent:#4b85a8}
#statsPage .stats-large:nth-child(3){--stat-accent:#629c8e}
#statsPage .stats-large:nth-child(4){--stat-accent:#b89b66}
#statsPage .stats-large:hover{transform:translateY(-2px);border-color:#bdcfcd!important;box-shadow:0 12px 25px #153e4a15!important}
#statsPage .stats-large:before{content:none!important;display:none!important}
#statsPage .stats-large:after{content:""!important;position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--stat-accent)!important;background-image:none!important;opacity:.8;animation:none!important}
#statsPage .stats-large strong{color:#153e4b!important;font-weight:780!important;font-size:clamp(33px,3vw,42px)!important;letter-spacing:-1.6px;line-height:1.08;margin:0 0 10px!important;font-variant-numeric:tabular-nums}
#statsPage .stats-large>span:last-child{color:#5c7576!important;font-size:11px!important;font-weight:680!important;line-height:1.5;max-width:95%}
#statsPage .stats-large .stat-symbol{width:39px;height:39px;right:16px;top:16px;border-radius:13px;background:color-mix(in srgb,var(--stat-accent) 11%,white)!important;color:var(--stat-accent)!important;border:1px solid color-mix(in srgb,var(--stat-accent) 18%,white);display:grid;place-items:center;transform:none!important}
#statsPage .stats-large .stat-symbol svg{width:21px;height:21px}
#statsPage .analytics-grid{grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:17px}
#statsPage .analytics-chart{background:#fff!important;background-image:none!important;border:1px solid #e1ebe8!important;box-shadow:0 6px 20px #1a40450b!important;border-radius:21px!important;padding:25px!important;min-height:340px}
#statsPage .analytics-chart-head{margin-bottom:21px;align-items:center}
#statsPage .analytics-chart-head .eyebrow{color:#87a29b!important;letter-spacing:1.4px;font-size:10px;font-weight:800}
#statsPage .analytics-chart-head h3{font-size:20px!important;font-weight:750!important;color:#254b56!important;letter-spacing:-.35px;margin-top:6px!important}
#statsPage .chart-decor{font-size:22px;color:#b1baac!important;opacity:.76}
#statsPage .category-visual{grid-template-columns:minmax(135px,175px) minmax(0,1fr);gap:25px;align-items:center;min-height:230px}
#statsPage .category-ring{width:min(100%,173px)!important;box-shadow:0 8px 21px #224a5120,0 0 0 8px #f6faf7!important}
#statsPage .category-ring:before{inset:20%;background:#fff!important;box-shadow:0 0 0 1px #e7f0ed!important}
#statsPage .category-ring-center strong{color:#254e56;font-size:25px;font-weight:800;letter-spacing:-.4px}
#statsPage .category-ring-center small{color:#849895;font-size:10px}
#statsPage .chart-horizontal{gap:15px;align-self:center}
#statsPage .barrow{min-width:0}
#statsPage .barlabels{gap:8px;font-size:11px;font-weight:630;color:#526f73}
#statsPage .barlabels>span{display:flex;align-items:center;gap:8px;min-width:0;line-height:1.35}
#statsPage .category-swatch{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:3px;background:var(--category-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--category-color) 12%,white)}
#statsPage .barlabels b{color:#2e5d65;font-weight:780;white-space:nowrap}
#statsPage .bartrack{height:8px;background:#eef3f1!important;margin-top:9px;border-radius:999px}
#statsPage .barfill{background:var(--category-color)!important;box-shadow:none;animation:barReveal .8s cubic-bezier(.25,.75,.2,1) both}
#statsPage .chart-subtitle{color:#809293!important;font-size:11.5px;line-height:1.7;max-width:315px}
#statsPage .histogram{height:233px;gap:clamp(5px,.9vw,12px);padding-top:15px;padding-bottom:2px;border-bottom:1px solid #d8e5e2!important;background:repeating-linear-gradient(to top,transparent,transparent 48px,#f1f6f4 49px,#f1f6f4 50px)}
#statsPage .hist-bar{background:linear-gradient(180deg,#6db9c4,#257d94)!important;box-shadow:0 3px 7px #2d839328;border-radius:8px 8px 0 0;max-width:44px}
#statsPage .hist-col:nth-child(3n+2) .hist-bar{background:linear-gradient(180deg,#90c5bc,#2e8d81)!important}
#statsPage .hist-year{font-size:10px;color:#6c8589;font-weight:700}
#statsPage .hist-value{font-size:10px;color:#416c74;font-weight:800}
#statsPage .analytics-footnote{margin-top:21px;color:#889995!important;font-size:11px;line-height:1.6}
#statsPage .stats-empty-state{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;color:#879b97;font-size:12px;line-height:1.7;text-align:center;max-width:320px;margin:auto}
#statsPage .stats-empty-state .empty-state-mark{display:grid;place-items:center;width:51px;height:51px;border-radius:50%;font-size:28px;font-family:Georgia,serif;color:#78a7a0;background:#eef7f3;border:1px solid #e0efe7}
#statsPage .stats-no-years{min-height:220px;max-width:none}
#statsPage.stats-animate .stats-large{animation:statRise .34s ease-out both}
/* Night: consistent deep teal/blue rather than separate brown, violet and slate blocks. */
:root[data-theme=dark] #statsPage .analytics-page{background:linear-gradient(150deg,#142e37,#112831)!important;border-color:#31535a!important;box-shadow:0 16px 40px #010e1560!important}
:root[data-theme=dark] #statsPage .analytics-heading{border-bottom-color:#35545a}
:root[data-theme=dark] #statsPage .analytics-heading .eyebrow{color:#92c0b6}
:root[data-theme=dark] #statsPage .analytics-heading h2{color:#e5f0ec!important}
:root[data-theme=dark] #statsPage .analytics-heading .lead{color:#b6ceca!important}
:root[data-theme=dark] #statsPage .stats-large,:root[data-theme=dark] #statsPage .stats-large:nth-child(1),:root[data-theme=dark] #statsPage .stats-large:nth-child(2),:root[data-theme=dark] #statsPage .stats-large:nth-child(3),:root[data-theme=dark] #statsPage .stats-large:nth-child(4){background:#1c3943!important;background-image:none!important;border-color:#35535d!important;box-shadow:0 5px 20px #08181e35!important}
:root[data-theme=dark] #statsPage .stats-large:hover{border-color:#5d8783!important}
:root[data-theme=dark] #statsPage .stats-large strong{color:#f3f8f5!important}
:root[data-theme=dark] #statsPage .stats-large>span:last-child{color:#b7ccc8!important}
:root[data-theme=dark] #statsPage .stats-large .stat-symbol{background:#294b53!important;border-color:#41656a;color:#91c9c4!important}
:root[data-theme=dark] #statsPage .analytics-chart{background:#1a3540!important;background-image:none!important;border-color:#35545e!important;box-shadow:0 8px 19px #06121930!important}
:root[data-theme=dark] #statsPage .analytics-chart-head h3{color:#e5f0eb!important}
:root[data-theme=dark] #statsPage .analytics-chart-head .eyebrow{color:#8dadae!important}
:root[data-theme=dark] #statsPage .chart-decor{color:#c4b083!important}
:root[data-theme=dark] #statsPage .category-ring{box-shadow:0 5px 22px #0005,0 0 0 8px #23424a!important}
:root[data-theme=dark] #statsPage .category-ring:before{background:#1a3540!important;box-shadow:0 0 0 1px #42616a!important}
:root[data-theme=dark] #statsPage .category-ring-center strong{color:#e9f4ef}
:root[data-theme=dark] #statsPage .category-ring-center small{color:#adc6c0}
:root[data-theme=dark] #statsPage .barlabels{color:#c6dad5!important}
:root[data-theme=dark] #statsPage .barlabels b{color:#e2f2eb!important}
:root[data-theme=dark] #statsPage .category-swatch{box-shadow:0 0 0 3px #ffffff15}
:root[data-theme=dark] #statsPage .bartrack{background:#2b4c55!important}
:root[data-theme=dark] #statsPage .chart-subtitle{color:#aac4c1!important}
:root[data-theme=dark] #statsPage .histogram{border-bottom-color:#52717a!important;background:repeating-linear-gradient(to top,transparent,transparent 48px,#23444e 49px,#23444e 50px)}
:root[data-theme=dark] #statsPage .hist-year,:root[data-theme=dark] #statsPage .hist-value{color:#bfdbd5}
:root[data-theme=dark] #statsPage .analytics-footnote{color:#a5bfba!important}
:root[data-theme=dark] #statsPage .stats-empty-state{color:#b1cbc4}
:root[data-theme=dark] #statsPage .empty-state-mark{background:#264b4d;border-color:#43645f;color:#b3d6ce}
@media(max-width:1180px){#statsPage .analytics-grid{grid-template-columns:1fr 1fr}#statsPage .category-visual{grid-template-columns:1fr;justify-items:center;gap:22px}#statsPage .category-visual .chart-horizontal{width:100%}}
@media(max-width:880px){#statsPage .analytics-grid{grid-template-columns:1fr}#statsPage .category-visual{grid-template-columns:minmax(145px,175px) minmax(0,1fr);justify-items:stretch}#statsPage .analytics-chart{min-height:315px}}
@media(max-width:700px){#statsPage .stats-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}#statsPage .stats-large,#statsPage .stats-large:nth-child(1),#statsPage .stats-large:nth-child(2),#statsPage .stats-large:nth-child(3),#statsPage .stats-large:nth-child(4){min-height:136px;padding:17px!important;border-radius:16px!important}#statsPage .stats-large strong{font-size:30px!important}#statsPage .stats-large .stat-symbol{width:34px;height:34px;top:12px;right:12px}#statsPage .analytics-page{padding:22px 16px!important}#statsPage .analytics-chart{padding:18px!important}#statsPage .category-visual{grid-template-columns:1fr;justify-items:center}#statsPage .category-visual .chart-horizontal{width:100%}}
@media(max-width:420px){#statsPage .stats-large strong{font-size:27px!important}#statsPage .stats-large>span:last-child{font-size:10px!important;line-height:1.4}#statsPage .analytics-chart-head h3{font-size:18px!important}}
@media(prefers-reduced-motion:reduce){.content{transition:none!important}#statsPage .stats-large{transition:none!important}#statsPage .stats-large:hover{transform:none!important}#statsPage .barfill,#statsPage .category-ring,#statsPage .hist-bar{animation:none!important}}


/* v16.css */
/* GOLD V16 — unframed animated brand, user-supplied founder photographs. */
.brand{overflow:visible!important}
.brand-mark{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;width:88px!important;min-width:88px!important;height:68px!important;display:grid!important;place-items:center;transform:none!important}
.brand-mark:before,.brand-mark:after{display:none!important}
.brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;max-width:none;filter:drop-shadow(0 6px 9px #001e345c) drop-shadow(0 0 6px #14ca9b29) brightness(1.10) saturate(1.08)!important;animation:v16Float 7.4s ease-in-out infinite;transform-origin:50% 50%;will-change:transform,filter;transition:filter .35s ease!important}
.brand:hover .brand-mark,.brand:focus-visible .brand-mark{background:transparent!important;border:0!important;transform:none!important;box-shadow:none!important}
.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img{animation:v16Hover 1.8s ease-in-out infinite;filter:drop-shadow(0 10px 16px #00162a92) drop-shadow(0 0 11px #27deb474) brightness(1.18) saturate(1.12)!important}
@keyframes v16Float{0%,100%{transform:translate3d(0,0,0) rotateY(-3deg) rotate(-.4deg)}50%{transform:translate3d(0,-4px,0) rotateY(3deg) rotate(.5deg)}}
@keyframes v16Hover{0%,100%{transform:perspective(460px) translate3d(0,-1px,0) rotateY(-8deg) rotate(-1deg) scale(1.035)}50%{transform:perspective(460px) translate3d(0,-5px,0) rotateY(9deg) rotate(1deg) scale(1.09)}}
.brand-title{letter-spacing:-.55px}
.founder-image-frame{overflow:hidden}
.founder-image-frame img{object-fit:cover!important;object-position:center 22%;transition:transform .6s cubic-bezier(.2,.7,.25,1),filter .4s ease}
.founder-card:hover .founder-image-frame img{transform:scale(1.025);filter:saturate(1.055)}
.founder-primary .founder-image-frame img{object-position:center 23%}
.founder-card:not(.founder-primary) .founder-image-frame img{object-position:center 16%}
.university-section .uni-photo img{object-fit:cover!important;object-position:center 48%;transition:transform .6s ease}
.university-section:hover .uni-photo img{transform:scale(1.012)}
@media(max-width:1080px){.brand-mark{width:73px!important;min-width:73px!important;height:59px!important}}
@media(max-width:780px){.sidebar.open .brand-mark{width:86px!important;min-width:86px!important;height:64px!important}}
@media(prefers-reduced-motion:reduce){.brand-mark img,.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img{animation:none!important;transform:none!important;will-change:auto}.founder-image-frame img,.university-section .uni-photo img{transition:none!important}.founder-card:hover .founder-image-frame img,.university-section:hover .uni-photo img{transform:none!important}}


/* v17.css */
/* UzEnParC GOLD V17: cohesive logo + accurate word modal. */
:root{--v17-navy:#113c4c;--v17-sea:#167b89;--v17-mint:#24ab99}
/* Keep the uploaded mark unframed in the sidebar and tint its motion with our palette. */
.brand-mark{overflow:visible!important}
.brand-mark img{filter:drop-shadow(0 6px 9px #061e2c8c) drop-shadow(0 0 8px #26b1a35a) brightness(1.035)!important}
.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img{filter:drop-shadow(0 10px 16px #001a2c9a) drop-shadow(0 0 13px #41c3b67d) brightness(1.1)!important}
/* Word details: a single coherent surface, grounded roles, prominent headword. */
.token-lexical-modal{border:1px solid #d9e8e6;box-shadow:0 25px 80px #0b343c38!important;overflow:hidden}
.token-lexical-modal .modal-head{background:#fff;border-bottom:1px solid #e9f0ed;padding:23px 28px!important}
.token-lexical-modal .modal-head h3{display:flex;align-items:center;gap:13px;color:#163e47;font-weight:830;letter-spacing:-.45px;line-height:1.35}
.token-lexical-modal .modal-head h3:before{content:'';display:block;width:54px;height:41px;flex:none;background:url('/api/branding/logo') center/contain no-repeat;filter:drop-shadow(0 3px 4px #19545b26)}
.token-lexical-modal .modal-body{padding:25px 28px 26px!important}
.token-lexical-modal .token-detail-head{border-radius:16px;border-color:#c8dfd7;background:linear-gradient(112deg,#e1f2ec 0%,#f1f7f2 55%,#eff6f4 100%);padding:21px 24px;box-shadow:0 6px 20px #174c4820;animation:none!important}
.token-lexical-modal .token-detail-head:before{display:none}
.token-lexical-modal .token-detail-head span{font-size:12px;font-weight:630;color:#597d79;line-height:1.65;margin-bottom:7px}
.token-lexical-modal .token-detail-head strong{font-size:clamp(27px,3vw,37px);color:#143c4b;font-weight:740;letter-spacing:-.5px;line-height:1.3}
.token-lexical-modal .modal-linked{margin-top:21px}
.token-lexical-modal .modal-linked>strong{color:#173c46;font-size:14px;font-weight:800}
.token-lexical-modal .morph-links{margin-top:10px}
.token-lexical-modal .morph-links .tag{background:#eaf5f0;border:1px solid #d6e8df;color:#215f5d;border-radius:10px;padding:8px 11px;font-weight:650}
.token-lexical-modal .modal-footer{padding:16px 26px!important;background:#fbfdfa;border-top:1px solid #e8efeb;display:flex;gap:10px;justify-content:flex-end}
.token-lexical-modal .modal-footer .btn-primary{background:linear-gradient(135deg,#117e82,#075564)!important;box-shadow:0 7px 18px #0b61732a}
.token-lexical-modal .modal-footer .btn-outline{background:#fff}
:root[data-theme=dark] .token-lexical-modal{background:#17333c;border-color:#3c6264}
:root[data-theme=dark] .token-lexical-modal .modal-head{background:#17333c;border-color:#31535c}
:root[data-theme=dark] .token-lexical-modal .modal-head h3{color:#e9f4ef}
:root[data-theme=dark] .token-lexical-modal .token-detail-head{background:linear-gradient(125deg,#254850,#24483f);border-color:#47746b;box-shadow:0 6px 18px #0003}
:root[data-theme=dark] .token-lexical-modal .token-detail-head span{color:#b6d4cf}
:root[data-theme=dark] .token-lexical-modal .token-detail-head strong{color:#e1f8f0}
:root[data-theme=dark] .token-lexical-modal .modal-linked>strong{color:#e1ede7}
:root[data-theme=dark] .token-lexical-modal .morph-links .tag{background:#2c4f4b;border-color:#416d63;color:#d8f3e8}
:root[data-theme=dark] .token-lexical-modal .modal-footer{background:#19343c;border-color:#35585d}
:root[data-theme=dark] .token-lexical-modal .modal-footer .btn-outline{background:#29474b;border-color:#4a6c6d;color:#f0f7f3}
@media(max-width:650px){.token-lexical-modal .modal-head{padding:17px 18px!important}.token-lexical-modal .modal-head h3{font-size:18px;gap:8px}.token-lexical-modal .modal-head h3:before{width:38px;height:32px}.token-lexical-modal .modal-body{padding:17px 17px 19px!important}.token-lexical-modal .token-detail-head{padding:16px 17px}.token-lexical-modal .modal-footer{padding:13px 15px!important;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.token-lexical-modal .token-detail-head,.token-lexical-modal .token-detail-head:before{animation:none!important}}


/* v18.css */
/* UzEnParC GOLD V18 — admin-selectable site logo, no hover tilt. */
/* Continuous, quiet translation only: no rotation, 3-D tilt, scale-up or hover glows. */
@keyframes brandFloatSoft {
  0%,100% {transform:translateY(0)}
  50% {transform:translateY(-2.6px)}
}
.brand-mark,.brand:hover .brand-mark,.brand:focus-visible .brand-mark {
  transform:none!important;
  transition:none!important;
  box-shadow:none!important;
  border:0!important;
  background:transparent!important;
}
.brand-mark img,.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img {
  animation:brandFloatSoft 8s ease-in-out infinite!important;
  filter:drop-shadow(0 6px 10px #001e345f)!important;
  transition:none!important;
  transform-origin:center!important;
}
.token-lexical-modal .modal-head h3:before {
  background-image:url('/api/branding/logo')!important;
}
@media (prefers-reduced-motion:reduce){
  .brand-mark img,.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img {
    animation:none!important; transform:none!important;
  }
}


/* v19.css */
/* GOLD V19: the globe and logo have the same cursor-responsive tilt.
   The brand graphic continues its calm float independently on its inner IMG. */
.brand-mark {
  transform:rotate(0) scale(1)!important;
  transform-origin:center!important;
  transition:transform .32s cubic-bezier(.25,.9,.2,1)!important;
  will-change:transform;
}
.brand:hover .brand-mark:not(:hover):not(:focus-visible) {
  transform:rotate(0) scale(1)!important;
}
.brand .brand-mark:hover,.brand:focus-visible .brand-mark {
  transform:rotate(-20deg) scale(1.12)!important;
  transition:transform .32s cubic-bezier(.25,.9,.2,1)!important;
}
.brand-mark img,.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img {
  animation:brandFloatSoft 8s ease-in-out infinite!important;
  transition:none!important;
  filter:drop-shadow(0 6px 10px #001e345f)!important;
}
@media (prefers-reduced-motion:reduce){
  .brand-mark,.brand:hover .brand-mark,.brand:focus-visible .brand-mark,.brand .brand-mark:hover {
    transform:none!important;transition:none!important;
  }
  .brand-mark img,.brand:hover .brand-mark img,.brand:focus-visible .brand-mark img {animation:none!important}
}


/* v20.css */
/* GOLD V20: user selected filters, accessible year range & CMS sections */
#advanced .filter-field-selected:not(.year-range-field){border-radius:11px}
#advanced .filter-selected, #advanced .filter-field-selected select, #advanced .filter-field-selected input:not([type=hidden]),
#grammarSearchPanel .filter-selected,#semanticSearchPanel .filter-field-selected{
 background:#e1f3e8!important;border-color:#95cdb5!important;color:#174e43!important;
 box-shadow:inset 0 0 0 1px #c1e8d1!important;
}
#advanced .filter-selected::placeholder{color:#397469}
:root[data-theme=dark] #advanced .filter-selected,:root[data-theme=dark] #advanced .filter-field-selected select,
:root[data-theme=dark] #grammarSearchPanel .filter-selected,:root[data-theme=dark] #semanticSearchPanel .filter-field-selected{
 background:#eff5f2!important;border-color:#eff5f2!important;color:#24434a!important;
 box-shadow:0 0 0 1px #c5d9d1!important;
}
.year-range-field{min-width:170px}.year-range-field input{font-variant-numeric:tabular-nums}
.year-range-hint{color:var(--muted,#73918a);font-size:10px;padding-top:5px;display:block}
.year-range-field input[aria-invalid=true]{border-color:#c25a53!important;outline-color:#c25a53}
.cms-extra{margin:16px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.cms-extra-card{border:1px solid #d6e7dd;background:linear-gradient(135deg,#fffefb,#f5faf6);border-radius:20px;padding:23px;box-shadow:0 10px 30px #16463b0e;min-width:0}
.cms-extra-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:14px;margin-bottom:16px}
.cms-extra-card h3{color:#174e4e;font:650 23px/1.25 Georgia,serif;margin:6px 0 11px}
.cms-extra-card p{color:#50736f;white-space:pre-line;line-height:1.7;font-size:13px}
.cms-extra-card .cms-kicker{color:#258a78;letter-spacing:1px;font-weight:800;font-size:10px}
.cms-extra-card a{color:#136c72;font-weight:750;font-size:12px;text-decoration:underline;text-underline-offset:4px}
:root[data-theme=dark] .cms-extra-card{background:linear-gradient(145deg,#173b41,#22464b);border-color:#35635d}
:root[data-theme=dark] .cms-extra-card h3{color:#d9eee7}
:root[data-theme=dark] .cms-extra-card p{color:#b9d7d0}

#foundersPage .cms-founder-card.cms-profile-no-image{grid-template-columns:1fr}
#foundersPage .cms-founder-card.cms-profile-no-image .founder-card-copy{min-height:245px}
.cms-extra-card.cms-banner{grid-column:1/-1}
#catalogPage .filter-selected{background:#e1f3e8!important;border-color:#95cdb5!important;color:#174e43!important}
:root[data-theme=dark] #catalogPage .filter-selected{background:#eff5f2!important;border-color:#eff5f2!important;color:#24434a!important}


/* v23.css */
/* GOLD V23: both query tokens and their aligned counterparts share the same gold. */
:root{--query-yellow:#f6d98a;--query-yellow-line:#c69539;--query-yellow-text:#3b2d13}
.sentence-text .token.is-query,.sentence-text .token.is-query-partner,
:root[data-theme=dark] .sentence-text .token.is-query,
:root[data-theme=dark] .sentence-text .token.is-query-partner{
 background:var(--query-yellow)!important;color:var(--query-yellow-text)!important;
 box-shadow:inset 0 -2px var(--query-yellow-line)!important;font-weight:750!important;
}
/* Keep an aligned pair the same color even when mouse focus changes. */
.sentence-text .token.is-hovered,.sentence-text .token.is-hover-partner,
:root[data-theme=dark] .sentence-text .token.is-hovered,
:root[data-theme=dark] .sentence-text .token.is-hover-partner{
 background:var(--query-yellow)!important;color:var(--query-yellow-text)!important;
 box-shadow:inset 0 -3px var(--query-yellow-line)!important;font-weight:750!important;
}
:root[data-theme=dark]{--query-yellow:#f6d98a;--query-yellow-line:#c69539;--query-yellow-text:#3b2d13}

/* The legend must agree with the real highlight colors. */
.alignment-legend .swatch.query,.alignment-legend .swatch.partner,.alignment-legend .swatch.hover,
:root[data-theme=dark] .alignment-legend .swatch.query,
:root[data-theme=dark] .alignment-legend .swatch.partner,
:root[data-theme=dark] .alignment-legend .swatch.hover{
 background:var(--query-yellow)!important;border-color:var(--query-yellow-line)!important;
}


/* v24.css */
/* GOLD V24 — search results remain yellow on BOTH sides.
   Pointer/keyboard interaction uses two distinct highlight colors, as before. */
:root {
  --token-hover-primary: #c4b0fa;
  --token-hover-primary-ink: #352261;
  --token-hover-primary-line: #6343b2;
  --token-hover-linked: #a3e4d3;
  --token-hover-linked-ink: #174c41;
  --token-hover-linked-line: #287a67;
}
/* This style intentionally appears after v23.css. Even if a searched token
   is currently hovered, the hover color takes priority only while active. */
.sentence-text .token.is-hovered,
:root[data-theme=dark] .sentence-text .token.is-hovered {
  background: var(--token-hover-primary) !important;
  color: var(--token-hover-primary-ink) !important;
  box-shadow: inset 0 -3px var(--token-hover-primary-line) !important;
  font-weight: 750 !important;
}
.sentence-text .token.is-hover-partner,
:root[data-theme=dark] .sentence-text .token.is-hover-partner {
  background: var(--token-hover-linked) !important;
  color: var(--token-hover-linked-ink) !important;
  box-shadow: inset 0 -3px var(--token-hover-linked-line) !important;
  font-weight: 750 !important;
}
/* Search legend: both query sides are yellow; hover is a two-tone pairing. */
.alignment-legend .swatch.query,
.alignment-legend .swatch.partner,
:root[data-theme=dark] .alignment-legend .swatch.query,
:root[data-theme=dark] .alignment-legend .swatch.partner {
  background: var(--query-yellow) !important;
  border-color: var(--query-yellow-line) !important;
}
.alignment-legend .swatch.hover,
:root[data-theme=dark] .alignment-legend .swatch.hover {
  background: linear-gradient(90deg, var(--token-hover-primary) 0 50%, var(--token-hover-linked) 50% 100%) !important;
  border-color: var(--token-hover-primary-line) !important;
}


/* v27-public.css */
/* V27: coordinated green for focus, selectable glow, icon animation, dark-mode visibility */
:root{--token-hover-primary:#a3e4d3;--token-hover-primary-ink:#174c41;--token-hover-primary-line:#287a67;--token-hover-linked:#a3e4d3;--token-hover-linked-ink:#174c41;--token-hover-linked-line:#287a67}
.alignment-legend .swatch.hover,:root[data-theme=dark] .alignment-legend .swatch.hover{background:#a3e4d3!important;border-color:#287a67!important}
:root[data-theme=dark] #topUpload{background:#205158!important;color:#e7fff4!important;border:1px solid #82c5b4!important;box-shadow:0 0 0 1px #76b9a53d inset,0 2px 10px #041b22a8}
:root[data-theme=dark] #topUpload svg{stroke:#e5fcf6!important;color:#e5fcf6!important}
#topUpload:hover svg,#topUpload:focus-visible svg{animation:v27Shield 1.3s ease-in-out!important;transform-origin:center}
#themeToggle:hover svg,#themeToggle:focus-visible svg{animation:v27Theme 1.2s ease-in-out!important;transform-origin:center}
@keyframes v27Shield{0%,100%{transform:rotate(0) scale(1)}30%{transform:rotate(-8deg) scale(1.08)}70%{transform:rotate(7deg) scale(1.04)}}
@keyframes v27Theme{0%,100%{transform:rotate(0) scale(1)}35%{transform:rotate(28deg) scale(1.13)}75%{transform:rotate(-12deg) scale(1.05)}}
/* refine book stroke and discreet embroidered orbit, preserve corpus theme */
.hero-art .book-side-label{font-family:Georgia,serif;font-weight:750;font-size:12px;letter-spacing:1px;paint-order:stroke;stroke:#fffdf8;stroke-width:1.8px}
.hero-art{filter:drop-shadow(0 8px 14px rgba(11,87,82,.07))}
@media(prefers-reduced-motion:reduce){#topUpload:hover svg,#themeToggle:hover svg{animation:none!important}}


/* v28-polish.css */
/* GOLD V28: remove only the INNER admin icon frame; retain the outer toolbar. */
.top-control-pill{border-radius:999px!important}
.top-control-pill #topUpload,
.top-control-pill #topUpload:hover,
.top-control-pill #topUpload:active,
.top-control-pill #topUpload:focus,
.top-control-pill #topUpload:focus-visible,
:root[data-theme=dark] .top-control-pill #topUpload,
:root[data-theme=dark] .top-control-pill #topUpload:hover,
:root[data-theme=dark] .top-control-pill #topUpload:focus-visible{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline-offset:-2px;
  border-radius:0!important;
  color:#195a63!important;
  padding:0!important;
  min-height:35px!important;
  height:35px!important;
  width:35px!important;
  min-width:35px!important;
  display:grid!important;
  place-items:center!important;
}
:root[data-theme=dark] .top-control-pill #topUpload,
:root[data-theme=dark] .top-control-pill #topUpload:hover,
:root[data-theme=dark] .top-control-pill #topUpload:focus-visible{color:#ddf6f0!important}
.top-control-pill #topUpload svg{width:21px;height:21px;stroke:currentColor!important;filter:none;transition:filter .25s ease}
.top-control-pill #topUpload:hover svg{filter:drop-shadow(0 0 3px rgba(42,149,143,.28))}
:root[data-theme=dark] .top-control-pill #topUpload svg{stroke:#ddf6f0!important;color:#ddf6f0!important}
#resetAllFilters svg{width:17px;height:17px;flex-shrink:0}
@media(max-width:670px){.top-control-pill #topUpload{width:31px!important;min-width:31px!important;height:32px!important;min-height:32px!important}}
@media(prefers-reduced-motion:reduce){.top-control-pill #topUpload svg{animation:none!important}}


/* v29-polish.css */
/* GOLD V29: modal usability, default logo polish, and hero refinement */
body.modal-open{overflow:hidden}
.modal-backdrop{padding:max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom))!important;align-items:center;overflow:hidden}
.modal{width:min(860px,calc(100vw - 24px))!important;max-height:min(92vh,calc(100dvh - 24px))!important;display:flex;flex-direction:column;overflow:hidden!important}
.modal-head,.modal-footer{flex:0 0 auto}
.modal-head{position:sticky;top:0;z-index:2;background:inherit}
.modal-body{flex:1 1 auto;min-height:0;overflow:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:28px!important}
.modal-footer{position:sticky;bottom:0;z-index:2;background:#fff}
.token-lexical-modal{width:min(940px,calc(100vw - 20px))!important;border-radius:24px!important}
.token-lexical-modal .modal-head{padding:22px 30px!important}
.token-lexical-modal .modal-body{padding:24px 28px 32px!important}
.token-lexical-modal .modal-footer{padding:16px 28px!important}
.token-lexical-modal .morph-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.token-lexical-modal .detail-box{min-width:0}
.token-lexical-modal .detail-box strong,.token-lexical-modal .morph-note,.token-lexical-modal .tag{overflow-wrap:anywhere;word-break:break-word}
#modalClose{flex:none}
:root[data-theme=dark] .modal-footer{background:#16333b}
.hero{background:
 linear-gradient(110deg,rgba(255,253,250,.98) 0%,rgba(244,247,238,.95) 48%,rgba(228,243,238,.92) 100%),
 radial-gradient(circle at 83% 18%,rgba(114,192,176,.26) 0,rgba(114,192,176,.14) 24%,transparent 45%),
 radial-gradient(circle at 96% 50%,rgba(203,166,97,.18) 0,rgba(203,166,97,.08) 16%,transparent 38%);
 border-color:#dce8dd!important;box-shadow:0 20px 40px rgba(17,78,82,.08), inset 0 1px 0 rgba(255,255,255,.65)!important;isolation:isolate}
.hero:after{content:'';position:absolute;inset:auto 18px 18px auto;width:min(42%,390px);height:76%;border-radius:26px;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.03));border:1px solid rgba(117,173,163,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15);pointer-events:none}
.hero-copy{position:relative;z-index:2}
.hero .eyebrow{color:#0d6f73;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.hero h1{letter-spacing:-1.9px;text-shadow:0 2px 0 rgba(255,255,255,.72),0 10px 22px rgba(27,74,72,.06)}
.hero h1 em{background:linear-gradient(180deg,#c08d52 0%,#a97535 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
.hero p{max-width:610px;color:#5a7274}
.hero-art{right:14px!important;top:-3px!important;width:min(37%,380px)!important;height:270px!important;opacity:1!important;filter:drop-shadow(0 18px 32px rgba(10,78,82,.12)) drop-shadow(0 4px 8px rgba(194,153,86,.16))}
.hero-art .float{transform-origin:center;animation:up 6s ease-in-out infinite}
.book-side-label{font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:700;letter-spacing:.9px;fill:#166f6d;paint-order:stroke;stroke:#fefdf9;stroke-width:1.4px}
.book-side-label.en{fill:#b18046}
.brand-mark{background:linear-gradient(145deg,#0f7a7b,#0a4b59)!important;border-color:#8fe2d1!important;box-shadow:0 10px 28px rgba(0,29,34,.34), inset 0 1px 0 rgba(255,255,255,.12)!important}
.brand-mark img{filter:drop-shadow(0 8px 16px rgba(0,31,39,.26)) saturate(1.04)!important}
.token-lexical-modal .modal-head h3:before{filter:drop-shadow(0 5px 10px rgba(7,88,96,.22))!important}
@media(max-width:860px){.hero-art{width:240px!important;height:220px!important;right:-4px!important}.hero:after{width:46%;height:68%}}
@media(max-width:700px){.token-lexical-modal{width:min(100%,calc(100vw - 12px))!important;max-height:min(94vh,calc(100dvh - 12px))!important}.token-lexical-modal .modal-head{padding:17px 18px!important}.token-lexical-modal .modal-body{padding:18px 18px 24px!important}.token-lexical-modal .modal-footer{padding:14px 18px!important}.token-lexical-modal .morph-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.modal-backdrop{padding:6px!important;align-items:flex-start}.modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:18px!important}.modal-head{padding:15px 16px!important}.modal-body{padding:16px!important}.modal-footer{padding:14px 16px!important}.token-lexical-modal .morph-grid{grid-template-columns:1fr}.hero{padding:28px 22px 30px!important}.hero h1{font-size:clamp(28px,8.7vw,40px)!important;max-width:87%}.hero-art{position:relative!important;right:auto!important;top:auto!important;width:100%!important;max-width:330px!important;height:210px!important;margin:18px auto 0;display:block}.hero:after{display:none}}
@media(max-height:760px){.modal-backdrop{align-items:flex-start}.modal{margin-top:4px}}
:root[data-theme=dark] .hero{background:
 linear-gradient(120deg,rgba(15,49,57,.96) 0%,rgba(18,60,66,.95) 55%,rgba(22,78,74,.93) 100%),
 radial-gradient(circle at 84% 20%,rgba(110,191,174,.2) 0,transparent 33%),
 radial-gradient(circle at 95% 50%,rgba(195,157,90,.12) 0,transparent 26%);border-color:#28595b!important;box-shadow:0 24px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04)!important}
:root[data-theme=dark] .hero:after{background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border-color:rgba(120,175,166,.12)}
:root[data-theme=dark] .hero h1{color:#eff8f3;text-shadow:0 1px 0 rgba(0,0,0,.25),0 10px 24px rgba(0,0,0,.2)}
:root[data-theme=dark] .hero h1 em{background:linear-gradient(180deg,#e0b97a 0%,#b8874d 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-theme=dark] .hero p{color:#bed6d2}
:root[data-theme=dark] .book-side-label{stroke:#15353f;fill:#cfece2}
:root[data-theme=dark] .book-side-label.en{fill:#efc587}


/* v30-design.css */
/* GOLD V30 — hero rebuilt as an integrated oriental composition, without inner framed card. */
.hero {
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) minmax(300px, 410px);
  align-items:center;
  column-gap:clamp(14px,3.4vw,58px);
  min-height:330px;
  padding:clamp(32px,3.9vw,52px) clamp(26px,4.1vw,64px) !important;
  background:
    radial-gradient(ellipse 38% 93% at 90% 43%,rgba(151,214,191,.23) 0,rgba(190,225,208,.12) 54%,transparent 100%),
    radial-gradient(ellipse 46% 74% at 73% 87%,rgba(226,200,146,.14) 0,transparent 100%),
    linear-gradient(111deg,#fffef9 3%,#f7f8f0 52%,#eaf5ee 100%) !important;
  border:1px solid #dce8dc !important;
  box-shadow:0 18px 36px rgba(24,85,77,.09),inset 0 1px 0 rgba(255,255,255,.9) !important;
  isolation:isolate;
}
/* Do not place any box, frosted rectangle, panel, or outline around the ornament. */
.hero::after {content:none !important; display:none !important; border:0 !important; box-shadow:none !important;}
.hero::before {background:repeating-linear-gradient(90deg,#0b666d 0 15px,#e1bd7a 15px 24px,#f5e8cb 24px 29px,#0b666d 29px 44px) !important; height:5px !important;}
.hero-copy {position:relative;z-index:2;max-width:700px !important;min-width:0;}
.hero .eyebrow {font-size:11px;letter-spacing:2px;font-weight:850;color:#087376 !important;text-shadow:none !important;}
.hero h1 {font-size:clamp(34px,3.3vw,53px) !important;line-height:1.13 !important;letter-spacing:-1.7px !important;margin:0 0 20px !important;color:#0c4249;text-shadow:0 2px 1px rgba(255,255,255,.62),0 9px 23px rgba(29,85,77,.055) !important;}
.hero h1 em {font-weight:500;background:linear-gradient(160deg,#d3ab69 0%,#a77836 60%,#c69c5a 100%) !important;-webkit-background-clip:text !important;background-clip:text !important;color:transparent !important;filter:drop-shadow(0 2px 1px rgba(250,236,208,.48));}
.hero p {font-size:clamp(13px,1.05vw,16px) !important;max-width:660px;line-height:1.83;color:#597378 !important;}
.hero-art {position:relative !important;right:auto !important;top:auto !important;left:auto !important;width:100% !important;height:auto !important;max-width:430px !important;max-height:none !important;margin:0 auto !important;display:block !important;opacity:1 !important;overflow:visible !important;filter:none !important;justify-self:center;align-self:center;z-index:1;}
.hero-art .hero-geometry {transform-origin:230px 141px;animation:heroMedallionFloat 12s ease-in-out infinite;}
.hero-art .hero-book-float {transform-origin:230px 220px;animation:heroBookFloat 6s ease-in-out infinite;}
.hero-art .hero-sparkles {animation:heroSparkle 5s ease-in-out infinite alternate;}
@keyframes heroMedallionFloat {0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -2px;rotate:1.2deg}}
@keyframes heroBookFloat {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes heroSparkle {0%,100%{opacity:.56}50%{opacity:1}}
/* The actual brand mark is borderless. The provided transparent logo is the only visual. */
.brand-mark {background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;}
.brand-mark img {object-fit:contain !important;filter:drop-shadow(0 5px 10px rgba(0,25,34,.22)) !important;}
:root[data-theme=dark] .hero {
  background:radial-gradient(ellipse 40% 90% at 87% 42%,rgba(31,124,117,.30),transparent 85%),linear-gradient(116deg,#103238 4%,#143d41 56%,#1a4a47 100%) !important;
  border-color:#2b6461 !important;
  box-shadow:0 20px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(244,253,246,.04) !important;
}
:root[data-theme=dark] .hero h1 {color:#e6f8f0 !important;text-shadow:0 3px 11px rgba(0,0,0,.23) !important;}
:root[data-theme=dark] .hero h1 em {background:linear-gradient(150deg,#efd19e,#d5a965 68%,#f0d6aa) !important;-webkit-background-clip:text !important;background-clip:text !important;color:transparent !important;}
:root[data-theme=dark] .hero p {color:#bfd8d2 !important;}
:root[data-theme=dark] .hero .eyebrow {color:#91d9c8 !important;}
@media(max-width:1220px){
 .hero{grid-template-columns:minmax(0,1fr) minmax(245px,325px);column-gap:clamp(8px,2.5vw,27px);padding:36px 35px !important;}
 .hero h1{font-size:clamp(32px,3.5vw,47px) !important;}
}
@media(max-width:890px){
 .hero{grid-template-columns:minmax(0,1fr) 235px;min-height:290px;padding:28px 28px !important;}
 .hero h1{font-size:clamp(29px,3.9vw,41px) !important;}
 .hero-art{width:100% !important;max-width:245px !important;}
 .hero .eyebrow{letter-spacing:1.3px;}
}
@media(max-width:680px){
 .hero{grid-template-columns:minmax(0,1fr);gap:10px;min-height:0;padding:30px 23px 19px !important;}
 .hero-copy{max-width:none !important;}
 .hero h1{font-size:clamp(31px,7.2vw,45px) !important;max-width:none !important;}
 .hero p{font-size:13.5px !important;}
 .hero-art{position:relative !important;margin:0 auto -5px !important;max-width:300px !important;width:77% !important;height:auto !important;opacity:1 !important;}
}
@media(max-width:450px){.hero-art{width:95% !important;max-width:290px !important}.hero h1{font-size:clamp(29px,8vw,38px) !important}.hero .eyebrow{font-size:9.5px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.hero-art .hero-geometry,.hero-art .hero-book-float,.hero-art .hero-sparkles{animation:none !important;}}


/* v31-polish.css */
/* GOLD V31 — refined hero scale, centered modal title, synced book labels */
.hero{
  grid-template-columns:minmax(0,1fr) minmax(240px,340px) !important;
  min-height:268px !important;
  padding:clamp(24px,3vw,38px) clamp(24px,3.8vw,48px) 30px !important;
  column-gap:clamp(14px,2.5vw,34px) !important;
  margin-bottom:18px !important;
}
.hero::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:12px !important;
  width:170px !important;
  height:14px !important;
  transform:translateX(-50%) !important;
  border-radius:999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(244,236,214,.9) 0 22%, transparent 24%),
    linear-gradient(90deg, transparent 0 8%, rgba(13,111,115,.12) 8% 18%, transparent 18% 24%, #d2ae73 24% 27%, #0e7a79 27% 47%, #f3e3bf 47% 53%, #0e7a79 53% 73%, #d2ae73 73% 76%, transparent 76% 82%, rgba(13,111,115,.12) 82% 92%, transparent 92%);
  box-shadow:0 2px 10px rgba(17,86,83,.08);
  opacity:.98 !important;
}
.hero-copy{max-width:640px !important;}
.hero h1{font-size:clamp(30px,3vw,46px) !important;margin:10px 0 14px !important;}
.hero p{max-width:590px !important;font-size:clamp(12.7px,.98vw,15px) !important;line-height:1.75 !important;}
.hero-art{
  max-width:330px !important;
  animation:heroWholeFloat 7s ease-in-out infinite;
  filter:drop-shadow(0 16px 26px rgba(10,88,88,.12)) drop-shadow(0 4px 8px rgba(193,153,87,.09));
}
.hero-art .hero-geometry,
.hero-art .hero-book-float{animation:none !important;}
.hero-art .hero-sparkles{animation:heroSparkle 4.6s ease-in-out infinite alternate !important;}
@keyframes heroWholeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.book-side-label{
  font-family:'Palatino Linotype','Book Antiqua',Georgia,'Times New Roman',serif !important;
  font-style:italic;
  font-weight:700;
  letter-spacing:1.2px;
  paint-order:stroke;
  stroke:#fffaf0;
  stroke-width:1.2px;
  text-rendering:geometricPrecision;
}
.book-side-label.uz{fill:#116f6e !important;}
.book-side-label.en{fill:#b88749 !important;}
.token-lexical-modal .modal-head{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) 42px;
  align-items:center !important;
  gap:10px !important;
}
.token-lexical-modal .modal-head h3{
  grid-column:2;
  margin:0 auto !important;
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  text-align:center;
}
.token-lexical-modal .modal-head .close{grid-column:3;justify-self:end;}
.token-lexical-modal .modal-body{overflow:auto;overscroll-behavior:contain;}
:root[data-theme=dark] .hero{
  background:
    radial-gradient(ellipse 36% 80% at 83% 40%, rgba(56,141,129,.22), transparent 76%),
    linear-gradient(118deg,#0f2d34 4%, #15383e 55%, #1a4447 100%) !important;
  border-color:#315f62 !important;
}
:root[data-theme=dark] .hero::before{
  background:
    radial-gradient(circle at 50% 50%, rgba(249,239,214,.22) 0 22%, transparent 24%),
    linear-gradient(90deg, transparent 0 8%, rgba(149,212,194,.08) 8% 18%, transparent 18% 24%, #bb9156 24% 27%, #5cb0a9 27% 47%, #d7bb89 47% 53%, #5cb0a9 53% 73%, #bb9156 73% 76%, transparent 76% 82%, rgba(149,212,194,.08) 82% 92%, transparent 92%) !important;
  box-shadow:0 2px 10px rgba(0,0,0,.22);
}
:root[data-theme=dark] .hero-art{
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.23)) brightness(.95) saturate(.92);
}
:root[data-theme=dark] .hero-art ellipse[fill="url(#hero-halo)"]{opacity:.28;}
:root[data-theme=dark] .book-side-label{stroke:#173941;stroke-width:1px;}
:root[data-theme=dark] .book-side-label.uz{fill:#d7f0e6 !important;}
:root[data-theme=dark] .book-side-label.en{fill:#ecc488 !important;}
@media(max-width:1040px){
  .hero{grid-template-columns:minmax(0,1fr) 250px !important; min-height:240px !important; padding:26px 28px 26px !important;}
  .hero-art{max-width:260px !important;}
  .hero h1{font-size:clamp(28px,3.6vw,40px) !important;}
}
@media(max-width:760px){
  .hero{grid-template-columns:minmax(0,1fr) !important; gap:10px !important; min-height:0 !important; padding:26px 22px 22px !important;}
  .hero::before{width:126px !important;height:12px !important;top:10px !important;}
  .hero-art{max-width:270px !important;width:82% !important;margin:2px auto 0 !important;}
}
@media(max-width:520px){
  .token-lexical-modal .modal-head{grid-template-columns:34px minmax(0,1fr) 34px !important;}
  .token-lexical-modal .modal-head h3{gap:10px;font-size:17px !important;}
  .hero h1{font-size:clamp(27px,8vw,37px) !important;}
}
@media(prefers-reduced-motion:reduce){.hero-art,.hero-art .hero-sparkles{animation:none !important;}}


/* v32-polish.css */
/* UzEnParC GOLD V32 — direct image emblem, restrained corpus motif, and true modal centering. */
/* No decorative strip or substitute shape above the search hero. */
.hero::before,.hero::after{content:none!important;display:none!important;}
.hero{
  grid-template-columns:minmax(0,1fr) minmax(275px,365px)!important;
  min-height:256px!important;
  padding:26px clamp(25px,3.6vw,48px) 27px!important;
  column-gap:clamp(12px,3vw,48px)!important;
  overflow:hidden!important;
  background:
    radial-gradient(ellipse 33% 90% at 85% 50%,rgba(122,192,173,.12),transparent 94%),
    linear-gradient(112deg,#fffdf9 0%,#f8f8f0 50%,#eaf5f0 100%)!important;
  box-shadow:0 14px 32px rgba(22,86,77,.09),inset 0 1px 0 rgba(255,255,255,.75)!important;
}
.hero-copy{max-width:675px!important;min-width:0;}
.hero h1{margin:0 0 13px!important;font-size:clamp(30px,3vw,47px)!important;}
.hero p{max-width:590px!important;font-size:clamp(13px,1vw,15px)!important;line-height:1.75!important;}
.hero-visual{
  position:relative;
  justify-self:center;
  align-self:center;
  width:100%;
  max-width:375px;
  aspect-ratio:1.56;
  min-width:0;
  perspective:950px;
  isolation:isolate;
  user-select:none;
  -webkit-user-select:none;
  overflow:visible;
  touch-action:pan-y;
}
.hero-corpus-traces{
  position:absolute;
  inset:-5% -6%;
  z-index:0;
  pointer-events:none;
  opacity:.40;
  transform:translateZ(-10px);
}
.hero-trace-lines{
  width:100%;height:100%;
  position:absolute;inset:0;
  overflow:visible;
  fill:none;
  stroke:#338d87;
  stroke-width:1.4;
  stroke-dasharray:3 8;
  opacity:.30;
}
.hero-trace-lines circle{stroke:none;fill:#c7a060;opacity:.80;}
.hero-word-pair{
  position:absolute;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#176d70;
  font:600 10px/1.35 Georgia,'Times New Roman',serif;
  white-space:nowrap;
  letter-spacing:.3px;
  opacity:.35;
  filter:blur(.1px);
}
.hero-word-pair b{font-weight:600;}
.hero-word-pair i{font-size:10px;color:#bb9562;font-style:normal;}
.hero-word-pair.pair-a{top:9%;left:3%;transform:rotate(-7deg);}
.hero-word-pair.pair-b{top:16%;right:0;transform:rotate(7deg);}
.hero-word-pair.pair-c{bottom:9%;left:14%;transform:rotate(5deg);}
.hero-logo-float{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  animation:heroLogoDrift 7.2s ease-in-out infinite;
  transform:translateZ(0);
}
.hero-logo-tilt{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  --hero-rx:0deg;
  --hero-ry:0deg;
  transform:rotateX(var(--hero-rx)) rotateY(var(--hero-ry)) scale(1);
  transform-style:preserve-3d;
  backface-visibility:hidden;
  transition:transform .32s cubic-bezier(.18,.7,.22,1),filter .32s ease;
  filter:drop-shadow(0 12px 16px rgba(12,88,82,.13)) drop-shadow(0 3px 7px rgba(169,123,56,.12));
  will-change:transform;
}
.hero-visual.is-tilting .hero-logo-tilt{
  transform:rotateX(var(--hero-rx)) rotateY(var(--hero-ry)) scale(1.025);
  filter:drop-shadow(0 18px 20px rgba(12,88,82,.17)) drop-shadow(0 4px 9px rgba(169,123,56,.13));
}
.hero-logo-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  -webkit-user-drag:none;
}
@keyframes heroLogoDrift{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-5px,0)}
}
/* Only the panel body scrolls; the modal shell is anchored at the visual center. */
#modalBackdrop.open{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  inset:0!important;
  padding:12px!important;
}
#modalBackdrop .modal{
  flex:0 1 auto;
  margin:0 auto!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
#modalBackdrop .modal.token-lexical-modal{
  width:min(940px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
}
#modalBackdrop .modal .modal-head,
#modalBackdrop .modal .modal-footer{flex:0 0 auto!important;}
#modalBackdrop .modal .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
/* Dark mode: no artificial pale halo or bright glow around the emblem. */
:root[data-theme=dark] .hero{
  background:
    radial-gradient(ellipse 29% 75% at 82% 48%,rgba(44,129,122,.12),transparent 86%),
    linear-gradient(112deg,#102e35 0%,#12363b 52%,#163f40 100%)!important;
  border-color:#315c58!important;
  box-shadow:0 15px 35px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.03)!important;
}
:root[data-theme=dark] .hero-word-pair{color:#b0d2c6;opacity:.28;}
:root[data-theme=dark] .hero-trace-lines{stroke:#89b5ac;opacity:.23;}
:root[data-theme=dark] .hero-logo-tilt{
  filter:drop-shadow(0 13px 17px rgba(0,0,0,.23)) saturate(.94) brightness(.96);
}
:root[data-theme=dark] .hero-visual.is-tilting .hero-logo-tilt{
  filter:drop-shadow(0 17px 20px rgba(0,0,0,.26)) saturate(.97) brightness(.98);
}
@media(max-width:1050px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(220px,290px)!important;column-gap:15px!important;padding:26px 30px!important;}
  .hero-visual{max-width:290px;}
  .hero h1{font-size:clamp(29px,3.5vw,42px)!important;}
}
@media(max-width:760px){
  .hero{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:27px 22px 19px!important;min-height:0!important;}
  .hero-visual{width:min(85%,335px)!important;max-width:335px;margin:0 auto!important;}
  .hero h1{font-size:clamp(30px,6vw,42px)!important;}
}
@media(max-width:520px){
  #modalBackdrop.open{padding:6px!important;align-items:center!important;justify-content:center!important;}
  #modalBackdrop .modal.token-lexical-modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;}
  .hero{padding:25px 19px 18px!important;}
  .hero-visual{width:min(96%,310px)!important;}
  .hero-word-pair{font-size:9px;}
}
@media(max-height:580px){
  #modalBackdrop.open{align-items:center!important;justify-content:center!important;padding:6px!important;}
  #modalBackdrop .modal{max-height:calc(100dvh - 12px)!important;}
  #modalBackdrop .modal.token-lexical-modal{max-height:calc(100dvh - 12px)!important;}
  #modalBackdrop .modal .modal-head{padding-top:10px!important;padding-bottom:10px!important;}
  #modalBackdrop .modal .modal-footer{padding-top:9px!important;padding-bottom:9px!important;}
}
@media(prefers-reduced-motion:reduce){
  .hero-logo-float{animation:none!important;}
  .hero-logo-tilt,.hero-visual.is-tilting .hero-logo-tilt{transform:none!important;transition:none!important;will-change:auto!important;}
}


/* v33-polish.css */
/* UzEnParC GOLD V33 — search-only hero, restrained typographic cloud,
   smaller lexical modal and result text, subtle oriental sidebar. */

/* V30 uses display:grid!important. Without this more specific rule the hidden
   hero remains visible above the catalog, statistics, founders and info pages. */
.content > section.hero.hidden,
.hero.hidden { display:none!important; visibility:hidden!important; }

/* A compact, readable search banner without extra decoration. */
.hero { min-height:235px!important; padding-top:23px!important; padding-bottom:23px!important; }
.hero-visual { max-width:365px!important; }
.hero-logo-float { width:70%!important; height:100%!important; margin-inline:auto!important; }
.hero-logo-tilt { width:100%!important; height:100%!important; }
.hero-logo-image { width:100%!important; height:100%!important; object-fit:contain!important; }

/* Word-cloud arrangement inspired by the attached typographic reference.
   Very pale so the UzEn emblem remains legible and the title remains primary. */
.hero-corpus-traces { inset:-12% -15%!important; opacity:1!important; transform:none!important; }
.hero-wordcloud { position:absolute; inset:0; pointer-events:none; isolation:isolate; overflow:visible; opacity:.83; }
.hero-wordcloud .wc {
  position:absolute; display:block; white-space:nowrap; line-height:1;
  font-family:Georgia,'Times New Roman',serif; font-weight:700; letter-spacing:-.5px;
  color:#278984; opacity:.15; user-select:none; text-shadow:0 1px 4px #f7fcf9;
}
.hero-wordcloud .w01{left:4%;top:11%;font-size:26px;transform:rotate(-7deg);opacity:.11;}
.hero-wordcloud .w02{left:65%;top:3%;font-size:20px;transform:rotate(12deg);opacity:.16;color:#a88b5d;}
.hero-wordcloud .w03{left:73%;top:29%;font-size:24px;transform:rotate(90deg);opacity:.12;}
.hero-wordcloud .w04{left:2%;top:39%;font-size:27px;transform:rotate(-90deg);opacity:.12;}
.hero-wordcloud .w05{left:29%;top:4%;font-size:19px;transform:rotate(8deg);opacity:.16;}
.hero-wordcloud .w06{left:42%;top:13%;font-size:21px;transform:rotate(-13deg);opacity:.11;}
.hero-wordcloud .w07{left:18%;top:77%;font-size:21px;transform:rotate(-8deg);opacity:.14;color:#9e885f;}
.hero-wordcloud .w08{left:53%;top:76%;font-size:29px;transform:rotate(7deg);opacity:.13;}
.hero-wordcloud .w09{left:5%;top:70%;font-size:16px;transform:rotate(90deg);opacity:.15;}
.hero-wordcloud .w10{left:63%;top:89%;font-size:14px;transform:rotate(-5deg);opacity:.17;color:#a58a5e;}
.hero-wordcloud .w11{left:87%;top:72%;font-size:20px;transform:rotate(90deg);opacity:.13;}
.hero-wordcloud .w12{left:29%;top:94%;font-size:16px;transform:rotate(-6deg);opacity:.17;}
.hero-wordcloud .w13{left:43%;top:94%;font-size:17px;transform:rotate(3deg);opacity:.13;}
.hero-wordcloud .w14{left:86%;top:11%;font-size:12px;transform:rotate(90deg);opacity:.17;}
.hero-wordcloud .w15{left:47%;top:45%;font-size:20px;transform:rotate(4deg);opacity:.07;}
.hero-wordcloud .w16{left:16%;top:22%;font-size:14px;transform:rotate(90deg);opacity:.12;}
.hero-wordcloud .w17{left:6%;top:91%;font-size:17px;transform:rotate(11deg);opacity:.13;}
.hero-wordcloud .w18{left:61%;top:62%;font-size:21px;transform:rotate(-8deg);opacity:.11;}
.hero-wordcloud .w19{left:2%;top:56%;font-size:15px;transform:rotate(8deg);opacity:.17;color:#a58a5e;}
.hero-wordcloud .w20{left:72%;top:44%;font-size:15px;transform:rotate(90deg);opacity:.12;}
.hero-wordcloud .w21{left:22%;top:51%;font-size:12px;transform:rotate(4deg);opacity:.12;}
.hero-wordcloud .w22{left:90%;top:49%;font-size:17px;transform:rotate(90deg);opacity:.16;}
.hero-wordcloud .w23{left:51%;top:2%;font-size:16px;transform:rotate(-10deg);opacity:.17;}
.hero-wordcloud .w24{left:35%;top:84%;font-size:12px;transform:rotate(-5deg);opacity:.16;}

/* About 20% below the V32 result sentence font (18–21px → 14.4–16.8px). */
.result-card.v14-result .sentence-text { font-size:clamp(14.4px,1.24vw,16.8px)!important; line-height:1.74!important; }

/* Lexical description modal: max desktop width 940px → 705px; keep it centered,
   but use available viewport width on small devices for accessibility. */
#modalBackdrop .modal.token-lexical-modal {
  width:min(705px,calc(100vw - 28px))!important;
  max-width:705px!important;
  max-height:min(90dvh,calc(100dvh - 28px))!important;
  margin-inline:auto!important;
}
#modalBackdrop .modal.token-lexical-modal .modal-head { padding:17px 22px!important; }
#modalBackdrop .modal.token-lexical-modal .modal-body { padding:19px 22px 25px!important; }
#modalBackdrop .modal.token-lexical-modal .modal-footer { padding:13px 22px!important; }
#modalBackdrop .modal.token-lexical-modal .morph-grid { gap:10px!important; }

/* Replace old square grid in the left rail with translucent Uzbek ornamental work. */
.sidebar::before {
  background-image:
    radial-gradient(circle at 16% 4%,rgba(101,198,171,.36),transparent 34%),
    url('/static/assets/oriental-sidebar-v33.svg')!important;
  background-size:100% 100%,160px 160px!important;
  background-position:center top,center 2px!important;
  background-repeat:no-repeat,repeat!important;
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.65) 26%,transparent 72%)!important;
  opacity:.14!important;
}
:root[data-theme=dark] .sidebar::before{opacity:.09!important;}
:root[data-theme=dark] .hero-wordcloud .wc{
  color:#b4dbcb; text-shadow:none; opacity:.16;
}
:root[data-theme=dark] .hero-wordcloud .w02,
:root[data-theme=dark] .hero-wordcloud .w07,
:root[data-theme=dark] .hero-wordcloud .w10,
:root[data-theme=dark] .hero-wordcloud .w19{color:#e5c68f;opacity:.14;}

@media(max-width:1050px){
  .hero-logo-float{width:70%!important;}
  .hero-wordcloud .wc{font-size:clamp(10px,2vw,19px);}
}
@media(max-width:760px){
  .hero-visual{width:min(92%,340px)!important;max-width:340px!important;}
  .hero-logo-float{width:70%!important;}
  .result-card.v14-result .sentence-text{font-size:14.4px!important;}
  #modalBackdrop .modal.token-lexical-modal{width:calc(100vw - 20px)!important;max-width:705px!important;}
  #modalBackdrop .modal.token-lexical-modal .morph-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:520px){
  .hero{padding-bottom:17px!important;}
  .hero-visual{width:min(95%,320px)!important;}
  .hero-wordcloud{opacity:.8;}
  .hero-logo-float{width:70%!important;}
  .hero-wordcloud .wc{font-size:clamp(10px,3vw,16px)!important;}
  #modalBackdrop .modal.token-lexical-modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;}
  #modalBackdrop .modal.token-lexical-modal .modal-head{padding:13px 15px!important;}
  #modalBackdrop .modal.token-lexical-modal .modal-body{padding:15px 16px 20px!important;}
  #modalBackdrop .modal.token-lexical-modal .modal-footer{padding:12px 15px!important;}
  #modalBackdrop .modal.token-lexical-modal .morph-grid{grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){.hero-wordcloud .wc{transition:none!important;}}


/* v35-branding.css */
/* V35 image presentation controls: preserve natural aspect ratios, modal/header layout and existing hero tilt. */
.brand-mark img,.mobile-menu-logo{scale:var(--brand-logo-scale,1);opacity:var(--brand-logo-opacity,1);transform-origin:center;transition:opacity .2s ease,scale .25s ease}
.hero-logo-image{scale:var(--brand-hero-scale,1);opacity:var(--brand-hero-opacity,1);transform-origin:center;transition:opacity .2s ease,scale .3s ease;}
/* Logo resize must not create new rounded boxes or reintroduce the old hero decoration. */

/* GOLD V36: independent transform properties keep existing float and mouse-based 3D tilt animations. */
.brand-mark img,.mobile-menu-logo{
 translate:var(--brand-logo-x,0px) var(--brand-logo-y,0px);
 rotate:var(--brand-logo-rotation,0deg);
 transition:opacity .2s ease,scale .25s ease,translate .25s ease,rotate .25s ease;
}
.hero-logo-image{
 translate:var(--brand-hero-x,0px) var(--brand-hero-y,0px);
 rotate:var(--brand-hero-rotation,0deg);
 transition:opacity .2s ease,scale .3s ease,translate .25s ease,rotate .25s ease;
}


/* v37-glow.css */
/* GOLD V37: a gentle, image-shaped sliding highlight every five seconds.
   Crucially: no rectangular sheen if a browser cannot mask to the image alpha. */
.hero-logo-tilt{position:relative;isolation:isolate;opacity:var(--brand-hero-opacity,1);}
.hero-logo-image{opacity:1!important;}
.hero-logo-tilt::after{content:none;}
@supports ((mask-image:url('/api/branding/hero')) or (-webkit-mask-image:url('/api/branding/hero'))){
 .hero-logo-tilt::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;
  background-image:linear-gradient(108deg,transparent 41%,rgba(251,253,232,.06) 45%,rgba(255,250,224,.30) 49%,rgba(238,255,246,.34) 52%,transparent 58%);
  background-size:270% 100%;
  background-position:155% 50%;
  -webkit-mask-image:url('/api/branding/hero');
  mask-image:url('/api/branding/hero');
  -webkit-mask-size:contain;
  mask-size:contain;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  transform-origin:center;
  scale:var(--brand-hero-scale,1);
  translate:var(--brand-hero-x,0px) var(--brand-hero-y,0px);
  rotate:var(--brand-hero-rotation,0deg);
  opacity:0;
  animation:heroGlintV37 5s ease-in-out infinite;
 }
}
@keyframes heroGlintV37{
 0%,11%{opacity:0;background-position:155% 50%;}
 20%{opacity:.30;}
 43%{opacity:.24;background-position:-95% 50%;}
 51%,100%{opacity:0;background-position:-95% 50%;}
}
:root[data-theme=dark] .hero-logo-tilt::after{
 background-image:linear-gradient(108deg,transparent 42%,rgba(167,229,216,.04) 46%,rgba(182,238,226,.18) 50%,rgba(255,226,173,.14) 53%,transparent 59%);
}
@media(prefers-reduced-motion:reduce){.hero-logo-tilt::after{animation:none!important;opacity:0!important;}}


/* v38-premium.css */
/* V38: independent, accessible subscription overlay and locked corpus documents. */
.premium-access-button{border:1px solid #bfd8cc;border-radius:999px;padding:8px 13px;background:#ebf5ef;color:#11635f;font-weight:800;display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;box-shadow:0 3px 11px rgba(16,89,89,.06)}
.premium-access-button:hover,.premium-access-button:focus-visible{background:#ddf0e7;transform:translateY(-1px)}
.premium-access-button.is-active{background:#f8f0db;border-color:#e4c486;color:#805929}
.premium-lock{color:#8b6a39;background:#faf0de;border:1px solid #ead2a7;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:850;display:inline-flex;align-items:center;gap:5px}
.catalog-item.is-locked{border-color:#e6dcc7;background:linear-gradient(145deg,#fffdf8,#f7f8f5)}
.catalog-item.is-locked .catalog-open{background:#fffaeb;color:#80602a;border-color:#e7cea6}
.premium-layer{position:fixed;inset:0;z-index:600;display:none;place-items:center;padding:14px;background:rgba(5,36,42,.68);backdrop-filter:blur(8px);overscroll-behavior:contain}
.premium-layer.is-open{display:grid}
.premium-dialog{position:relative;width:min(545px,100%);max-height:min(92dvh,810px);border:1px solid #d5e5d9;border-radius:24px;background:#fffefa;color:#153d42;box-shadow:0 30px 100px rgba(0,31,36,.35);overflow:hidden;display:flex;flex-direction:column}
.premium-dialog-header{padding:24px 26px 17px;border-bottom:1px solid #e5ede5;display:flex;align-items:center;justify-content:space-between;gap:15px}
.premium-dialog-header h2{margin:0;font:700 25px/1.2 Georgia,serif;letter-spacing:-.4px}
.premium-close{height:35px;width:35px;border:0;border-radius:10px;background:#edf4ef;color:#235b59;font-size:24px;line-height:1;flex:none}
.premium-dialog-body{padding:20px 26px 27px;overflow:auto;min-height:0;overscroll-behavior:contain}
.premium-price-card{border-radius:17px;padding:18px 19px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(115deg,#e5f2ea,#f7f0dc);border:1px solid #d2e6da;margin:0 0 16px}
.premium-price-card strong{display:block;font:750 27px Georgia,serif;color:#135758;line-height:1.2}
.premium-price-card small{color:#6c8179}
.premium-tiny-label{font-size:11px;color:#408074;font-weight:850;text-transform:uppercase;letter-spacing:1.2px}
.premium-form{display:grid;gap:12px}
.premium-form label{font-size:12px;font-weight:750;color:#40615e;display:grid;gap:6px}
.premium-form input{min-width:0;width:100%;border-radius:10px;background:white;color:#153e45;border:1px solid #c9ddd4;padding:11px 12px;font-size:14px}
.premium-form input:focus{outline:2px solid #67c4b0}
.premium-action{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border:0;border-radius:10px;background:#0e6c70;color:white;font-weight:780;padding:11px 16px;cursor:pointer}
.premium-action:hover:not(:disabled){background:#075358}
.premium-action:disabled{opacity:.48;cursor:not-allowed}
.premium-secondary{background:#edf5f0;color:#145d5e;border:1px solid #d5e6dc}
.premium-secondary:hover:not(:disabled){background:#e0efe6}
.premium-links{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}
.premium-links button{background:none;border:0;color:#0a686a;text-decoration:underline;font-weight:680;padding:7px 0;cursor:pointer}
.premium-account-status{padding:12px 14px;border:1px solid #dce9df;border-radius:12px;background:#f4f8f3;font-size:13px;line-height:1.6;margin-bottom:16px}
.premium-status{font-size:12px;line-height:1.6;color:#855d33;min-height:22px;margin-top:11px;white-space:pre-wrap}
.premium-disclaimer{font-size:11px;color:#6d8080;line-height:1.6;margin-top:14px}
.premium-quote-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #e5eee6;font-size:14px}
.premium-quote-row strong{font-size:23px;color:#115659}
.premium-pay-note{background:#fff6e6;border:1px solid #ecdbb8;border-radius:11px;padding:12px;font-size:12px;color:#77572a;margin-top:12px}
:root[data-theme=dark] .premium-access-button{background:#245259;color:#e1f4ec;border-color:#477b79}
:root[data-theme=dark] .premium-dialog{background:#19373c;color:#e4eee9;border-color:#416369}
:root[data-theme=dark] .premium-dialog-header{border-bottom-color:#345a5c}
:root[data-theme=dark] .premium-price-card{background:linear-gradient(120deg,#194b4f,#55452e);border-color:#41716d}
:root[data-theme=dark] .premium-price-card strong{color:#fff1cc}
:root[data-theme=dark] .premium-form label{color:#bedbd5}
:root[data-theme=dark] .premium-form input{background:#244449;border-color:#426c68;color:white}
:root[data-theme=dark] .premium-account-status{background:#214549;border-color:#426d68}
:root[data-theme=dark] .premium-secondary{background:#31575a;color:#e3f1eb;border-color:#527974}
:root[data-theme=dark] .premium-pay-note{background:#423829;border-color:#816942;color:#e9d1a8}
@media(max-width:640px){.premium-access-button{font-size:11px;padding:7px 9px}.premium-dialog{max-height:calc(100dvh - 18px);border-radius:17px}.premium-dialog-header{padding:17px 16px 13px}.premium-dialog-body{padding:16px}.premium-dialog-header h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.premium-access-button{transition:none}}
/* V39 no-registration checkout and one-time credential display */
.premium-provider-select{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid #c4d6cd;background:#fff;color:#183f45}
.prem-issued{background:linear-gradient(145deg,#effaf5,#fffaf0);padding:18px;border:1px solid #b7d9ca;border-radius:14px}
.prem-issued h3{margin:0 0 10px}.prem-issued label{display:block;color:#35665e;margin:12px 0;font-size:13px}
.prem-issued code{display:block;color:#154d51;background:#fff;padding:12px;border:1px solid #dae9e2;border-radius:9px;font-size:15px;overflow-wrap:anywhere;margin-top:4px;user-select:all}


/* v40-premium-glow.css */
/* V40: Premium concordance previews are synthetic, not hidden real corpus text. */
.premium-teaser-card{border:1px solid rgba(177,147,87,.49)!important;position:relative;overflow:hidden;background:linear-gradient(125deg,#fafdf9 0%,#f3f9f5 46%,#fdf6e8 100%)!important;box-shadow:0 10px 30px rgba(21,91,76,.09),0 0 20px rgba(195,166,105,.08)!important}
.premium-teaser-card::before{content:'';pointer-events:none;position:absolute;inset:-35%;background:linear-gradient(100deg,transparent 42%,rgba(225,202,145,.20) 50%,transparent 59%);transform:translateX(-115%);animation:premiumSweep 8s linear infinite;z-index:1}
@keyframes premiumSweep{0%,35%{transform:translateX(-115%)}75%,100%{transform:translateX(115%)}}
.premium-teaser-card .doc-head{background:rgba(246,251,245,.82)!important;position:relative;z-index:2}
.premium-teaser-stage{position:relative;min-height:204px;display:flex;align-items:center;justify-content:center;isolation:isolate;padding:22px}
.premium-blurred-columns{position:absolute;inset:14px;display:grid;grid-template-columns:1fr 1fr;gap:22px;opacity:.47;filter:blur(6px);pointer-events:none;z-index:-1}
.premium-blur-lines{display:flex;flex-direction:column;justify-content:center;gap:17px;opacity:.6}
.premium-blur-lines span{display:block;width:92%;height:12px;border-radius:999px;background:linear-gradient(90deg,#77aa9c,#e6c996,#c3ddcf);box-shadow:0 3px 12px rgba(34,98,86,.10)}
.premium-blur-lines span:nth-child(2){width:77%}.premium-blur-lines span:nth-child(3){width:86%}
.premium-teaser-content{text-align:center;max-width:460px;z-index:3;background:rgba(255,254,249,.83);border:1px solid rgba(208,190,149,.56);border-radius:20px;padding:17px 26px;box-shadow:0 12px 40px rgba(43,96,87,.10),inset 0 1px 0 rgba(255,255,255,.75);backdrop-filter:blur(10px)}
.premium-teaser-emblem{display:block;font-size:22px;color:#ae8449;margin:-2px 0 2px}
.premium-teaser-content strong{font-size:15px;color:#225a5c;font-weight:830}
.premium-teaser-content p{margin:7px auto 13px;line-height:1.6;color:#6c827c;font-size:12px}
.premium-teaser-cta{border:1px solid rgba(189,155,91,.46);color:#fff;padding:10px 21px;border-radius:999px;font-weight:800;cursor:pointer;background:linear-gradient(100deg,#0b6469,#1b8780);box-shadow:0 6px 20px rgba(15,105,105,.23);transition:transform .18s,box-shadow .18s}
.premium-teaser-cta:hover,.premium-teaser-cta:focus-visible{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,105,105,.32)}
.catalog-item.is-locked{position:relative;overflow:hidden}
.catalog-locked-frost{display:flex;gap:7px;align-items:center;opacity:.38;filter:blur(2.4px);height:17px}
.catalog-locked-frost span{height:8px;width:23%;border-radius:8px;background:linear-gradient(90deg,#d8c294,#91bdb0)}
.catalog-locked-frost span:nth-child(2){width:36%}.catalog-locked-frost span:nth-child(3){width:19%}
.catalog-item.is-locked:before{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 23px rgba(214,185,130,.10)}
:root[data-theme=dark] .premium-teaser-card{background:linear-gradient(115deg,#15383e,#1c4947,#293f3a)!important;border-color:rgba(205,179,117,.5)!important}
:root[data-theme=dark] .premium-teaser-content{background:rgba(25,54,56,.83);border-color:rgba(203,172,115,.4);box-shadow:0 14px 37px rgba(0,0,0,.18)}
:root[data-theme=dark] .premium-teaser-content strong{color:#e5f5ea}
:root[data-theme=dark] .premium-teaser-content p{color:#b4d1c7}
:root[data-theme=dark] .premium-blurred-columns{opacity:.38}
:root[data-theme=dark] .premium-blur-lines span{background:linear-gradient(90deg,#4d9287,#bc9356,#71b9ac)}
@media(max-width:600px){.premium-blurred-columns{grid-template-columns:1fr;gap:9px}.premium-blurred-columns .premium-blur-lines:nth-child(2){display:none}.premium-teaser-content{padding:16px 17px}.premium-teaser-stage{min-height:206px;padding:14px}}
@media(prefers-reduced-motion:reduce){.premium-teaser-card::before{animation:none}}


/* v41-premium.css */
/* V41 — calm premium glow for catalogue, responsive Demo state, reduced-motion support */
.catalog-item.is-locked{border-color:rgba(194,167,111,.55)!important;background:linear-gradient(140deg,rgba(249,253,247,.96),rgba(245,249,244,.94),rgba(254,246,228,.96))!important;box-shadow:0 9px 26px rgba(20,89,80,.08),0 0 18px rgba(214,179,119,.13)!important;isolation:isolate}
.catalog-item.is-locked::after{content:"";position:absolute;inset:-100%;z-index:0;pointer-events:none;background:linear-gradient(105deg,transparent 44%,rgba(220,191,128,.22) 50%,transparent 57%);transform:translateX(-105%);animation:catalogPremiumSweep 9s ease-in-out infinite}
@keyframes catalogPremiumSweep{0%,42%{transform:translateX(-95%)}68%,100%{transform:translateX(95%)}}
.catalog-item.is-locked > *{position:relative;z-index:1}
.catalog-item.is-locked .catalog-titles,.catalog-item.is-locked .catalog-details{filter:none}
.catalog-item.is-locked .catalog-locked-frost{filter:blur(5px);opacity:.52;height:25px}
.catalog-item.is-locked .catalog-open{background:linear-gradient(100deg,#0d6b6c,#249084);color:#fff!important;border:1px solid rgba(207,183,129,.38);box-shadow:0 5px 18px rgba(12,107,104,.16);font-weight:800}
.catalog-item.is-locked .catalog-open:hover{box-shadow:0 8px 22px rgba(12,107,104,.24)}
.premium-access-button{max-width:260px;white-space:nowrap}
:root[data-theme=dark] .catalog-item.is-locked{background:linear-gradient(140deg,#15393c,#184945,#243d37)!important;border-color:rgba(215,179,112,.4)!important;box-shadow:0 7px 30px rgba(4,16,19,.32),0 0 20px rgba(216,175,100,.10)!important}
:root[data-theme=dark] .catalog-item.is-locked::after{background:linear-gradient(105deg,transparent 44%,rgba(234,202,141,.12) 50%,transparent 57%)}
@media(max-width:780px){.premium-access-button{max-width:170px;font-size:11px;overflow:hidden;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){.catalog-item.is-locked::after{animation:none!important}}


/* v42-premium.css */
/* V42: editorial plan selector and compact bottom-left membership status. */
.sidebar{display:flex;flex-direction:column}
.premium-sidebar-dock{margin-top:auto;padding-top:18px;width:100%;position:relative;z-index:4;min-width:0}
.premium-status-dock.premium-access-button{position:relative;width:100%;max-width:100%;min-height:82px;display:flex;justify-content:flex-start;gap:11px;overflow:hidden;white-space:normal;text-align:left;border:1px solid rgba(165,224,206,.32);border-radius:17px;padding:13px 12px;background:linear-gradient(135deg,rgba(29,101,106,.72),rgba(10,59,65,.88));box-shadow:0 6px 26px rgba(0,22,25,.22),inset 0 1px rgba(255,255,255,.10);color:#ecfaf0;cursor:pointer;isolation:isolate;transition:transform .27s ease,border-color .27s ease,box-shadow .27s ease}
.premium-status-dock::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(111deg,transparent 31%,rgba(202,250,225,.05) 40%,rgba(232,250,217,.27) 48%,rgba(255,225,152,.14) 54%,transparent 65%);transform:translateX(-125%);animation:memberSweepV42 2s ease-in-out infinite}
@keyframes memberSweepV42{0%,18%{transform:translateX(-125%);opacity:0}30%{opacity:.55}64%{opacity:.45}85%,100%{transform:translateX(125%);opacity:0}}
.premium-status-dock::after{content:"";position:absolute;inset:1px;z-index:-2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 18px rgba(95,212,188,.06)}
.premium-status-dock.is-active{background:linear-gradient(130deg,#4b4c36,#574b30 52%,#244d47);border-color:rgba(231,193,120,.55);color:#fff5de;box-shadow:0 7px 24px rgba(2,18,22,.22),0 0 16px rgba(216,188,122,.11)}
.premium-status-dock.is-active::before{background:linear-gradient(112deg,transparent 32%,rgba(245,214,160,.04) 40%,rgba(255,232,182,.23) 48%,transparent 64%)}
.premium-status-dock:hover,.premium-status-dock:focus-visible{transform:translateY(-3px);border-color:rgba(212,236,184,.65);box-shadow:0 13px 32px rgba(1,24,26,.32),0 0 15px rgba(162,232,197,.16)}
.premium-status-icon{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:12px;font-size:20px;color:#dbb981;background:rgba(255,255,255,.09);border:1px solid rgba(235,215,161,.23);transition:transform .3s ease}
.premium-status-dock:hover .premium-status-icon{transform:rotate(-9deg) scale(1.08)}
.premium-status-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.premium-status-body strong{font-size:13px;font-weight:850;letter-spacing:.13em;line-height:1.2;color:inherit}
.premium-status-body small{font-size:11px;line-height:1.35;color:#d6e7da;font-weight:650}
.premium-status-dock.is-active .premium-status-body small{color:#fae8c9}
.premium-cta-arrow{display:inline-block;vertical-align:middle;color:#eac78c;margin-left:1px;font-weight:850;animation:memberArrowV42 2s ease-in-out infinite}
@keyframes memberArrowV42{0%,25%,100%{transform:translate(0,0);opacity:.75}50%{transform:translate(3px,-2px);opacity:1}}
.premium-plan-picker{display:grid;gap:8px}
.premium-plan-picker-title{font-size:12px;font-weight:850;color:#40615e}
.premium-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;max-height:260px;overflow-y:auto;padding:2px}
.premium-plan-option{position:relative;display:block;cursor:pointer;font-size:12px}
.premium-plan-option>input{position:absolute;opacity:0;width:1px;height:1px}
.premium-plan-inner{display:flex;flex-direction:column;gap:5px;min-height:106px;padding:13px;border:1px solid #cddfd3;background:#f8fbf6;border-radius:13px;transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
.premium-plan-inner strong{font-weight:820;color:#1c5a58;font-size:13px}
.premium-plan-price{color:#a0783b;font-size:18px;font-weight:900}
.premium-plan-inner small{color:#718680;font-size:11px;line-height:1.45}
.premium-plan-option>input:checked+.premium-plan-inner{background:linear-gradient(128deg,#e5f5ed,#f6f0df);border-color:#38a18e;box-shadow:0 0 0 1px rgba(34,135,112,.32),0 5px 15px rgba(25,90,78,.09)}
.premium-plan-option>input:focus-visible+.premium-plan-inner{outline:3px solid #42b7ab;outline-offset:2px}
.premium-plan-option:hover .premium-plan-inner{transform:translateY(-1px);border-color:#71a9a0}
:root[data-theme=dark] .premium-plan-inner{background:#25474a;border-color:#3d6b67}
:root[data-theme=dark] .premium-plan-inner strong{color:#d6f1e8}
:root[data-theme=dark] .premium-plan-inner small{color:#bad0c8}
:root[data-theme=dark] .premium-plan-option>input:checked+.premium-plan-inner{background:linear-gradient(145deg,#255e58,#4c4d37);border-color:#aece99}
:root[data-theme=dark] .premium-status-dock.premium-access-button{color:#ecfaf0}
@supports ((mask-image:url('/api/branding/hero')) or (-webkit-mask-image:url('/api/branding/hero'))){.hero-logo-tilt::after{animation-duration:2s!important}}
@media(max-width:1080px) and (min-width:781px){.premium-sidebar-dock{padding-top:9px}.premium-status-dock.premium-access-button{min-height:58px;padding:9px;justify-content:center}.premium-status-body{display:none}.premium-status-icon{min-width:34px;width:34px;height:34px}}
@media(max-width:780px){.sidebar .premium-sidebar-dock{display:block}.premium-status-dock.premium-access-button{min-height:70px}.premium-plan-grid{grid-template-columns:1fr 1fr;max-height:310px}}
@media(max-width:440px){.premium-plan-grid{grid-template-columns:1fr}.premium-plan-inner{min-height:auto}}
@media(prefers-reduced-motion:reduce){.premium-status-dock::before,.premium-cta-arrow,.hero-logo-tilt::after{animation:none!important}.premium-status-dock:hover,.premium-plan-option:hover .premium-plan-inner{transform:none}}

.premium-status-mobile{display:none!important}
@media(max-width:780px){
 .premium-status-mobile.premium-access-button{display:flex!important;position:fixed;bottom:12px;left:12px;z-index:53;width:min(214px,calc(100vw - 24px));min-height:64px;padding:10px}
 .sidebar.open~.premium-status-mobile{display:none!important}
}
.premium-teaser-card::before{animation-duration:2s!important}
.catalog-item.is-locked::after{animation-duration:2s!important}
@media(prefers-reduced-motion:reduce){.premium-teaser-card::before,.catalog-item.is-locked::after{animation:none!important}}


/* v43-premium.css */
/* V43: locked-card glow intentionally calm; DO NOT change V42 member status sweep. */
.premium-teaser-card::before{animation-duration:11s!important}
.catalog-item.is-locked::after{animation-duration:12s!important}
/* Consistent academic shield/book glyph on the left membership card. */
.premium-status-icon{color:#ccefe3;background:rgba(229,255,241,.08);border-color:rgba(171,230,208,.24);border-radius:11px}
.premium-status-icon .premium-status-glyph{display:block;width:23px;height:23px;flex-shrink:0}
.premium-status-dock.is-active .premium-status-icon{color:#efdab0;background:rgba(255,239,209,.09);border-color:rgba(239,213,160,.34)}
.premium-status-dock:hover .premium-status-icon{transform:scale(1.04)}
@media(max-width:1080px) and (min-width:781px){.premium-status-icon .premium-status-glyph{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.premium-teaser-card::before,.catalog-item.is-locked::after{animation:none!important}}


/* v44-premium.css */
/* V44 — tight, single-layer membership dock; preserve V42 sweep keyframes and 2s cadence. */
.premium-status-dock.premium-access-button{min-height:53px;padding:6px 11px;gap:9px;border-radius:13px}
.premium-status-icon{width:27px;height:27px;min-width:27px;flex:0 0 27px;display:grid;place-items:center;background:transparent!important;border:0!important;border-radius:0;padding:0;color:#d5f3e9}
.premium-status-icon .premium-status-glyph{width:25px;height:25px}
.premium-status-dock.is-demo .premium-status-icon{color:#aee3d5}
.premium-status-dock.is-active .premium-status-icon{color:#dcfff2}
.premium-status-dock:hover .premium-status-icon{transform:none}
.premium-status-body{gap:2px}
.premium-status-body strong{font-size:12px;line-height:1.17}
.premium-status-body small{font-size:10.5px;line-height:1.28}
/* Premium membership uses the website's ocean/teal palette, not gold/yellow. */
.premium-status-dock.is-active{background:linear-gradient(130deg,#0b5963,#0d6f70 54%,#184954);border-color:rgba(124,214,196,.61);color:#effff9;box-shadow:0 7px 24px rgba(2,29,35,.24),0 0 16px rgba(75,198,176,.13)}
.premium-status-dock.is-active .premium-status-body small{color:#c4f0e5}
.premium-status-dock.is-active::before{background:linear-gradient(112deg,transparent 32%,rgba(154,235,217,.04) 40%,rgba(189,249,233,.23) 48%,transparent 64%)}
.premium-status-dock.is-active:hover,.premium-status-dock.is-active:focus-visible{border-color:rgba(174,244,218,.75);box-shadow:0 13px 32px rgba(1,24,26,.32),0 0 15px rgba(90,215,187,.2)}
/* Lock mark alone in the corpus catalog: no unnecessary label capsule padding. */
.premium-lock-icon-only{min-width:30px;min-height:29px;justify-content:center;padding:4px 6px;font-size:16px;line-height:1}
/* Keep visible lock for search previews, and unlocked icon on their CTA. */
.premium-teaser-emblem{font-family:inherit}
@media (max-width:1080px) and (min-width:781px){
 .premium-status-dock.premium-access-button{min-height:38px;padding:5px 8px}
 .premium-status-icon{min-width:25px;width:25px;height:25px;flex-basis:25px}
 .premium-status-icon .premium-status-glyph{height:23px;width:23px}
}
@media (max-width:780px){
 .premium-status-dock.premium-access-button{min-height:46px;padding:6px 10px}
 .premium-status-mobile.premium-access-button{min-height:46px;width:min(205px,calc(100vw - 24px));padding:6px 10px}
}
/* Mobile indicator stays readable even with the smaller single-container card. */


/* Clean build: search examples sweep 35% sooner (11s × 0.65 = 7.15s).
   Catalog locked cards (12s) and membership status indicators (2s) unchanged. */
.premium-teaser-card::before{animation-duration:7.15s!important}
/* Refined page navigation: tactile but restrained. */
.pagination{gap:14px;flex-wrap:wrap;padding:24px 4px 22px}
.pagination-controls{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:6px;border:1px solid #dce9e5;background:linear-gradient(155deg,#f9fbf9,#edf6f2);border-radius:16px;box-shadow:0 5px 20px rgba(10,77,70,.07)}
.pagination .pagebtn{position:relative;isolation:isolate;display:inline-grid;place-items:center;min-width:43px;height:43px;padding:0 10px;border-radius:11px;border:1px solid #dbe8e3;background:rgba(255,255,255,.93);font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;color:#285e5b;box-shadow:0 1px 1px rgba(17,75,73,.05);transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,border-color .24s ease,background .24s ease,color .24s ease}
.pagination .pagebtn:not(:disabled):hover{transform:translateY(-3px);background:#e7f7f0;border-color:#65b9a7;box-shadow:0 8px 16px rgba(23,98,87,.17);color:#075c60}
.pagination .pagebtn:not(:disabled):active{transform:translateY(-1px) scale(.96);box-shadow:0 2px 6px rgba(18,77,79,.12)}
.pagination .pagebtn.active,.pagination .pagebtn[aria-current="page"]{color:#fff;background:linear-gradient(150deg,#16847f,#0a626b);border-color:#287f7b;box-shadow:0 5px 14px rgba(7,105,100,.25),inset 0 1px 0 rgba(255,255,255,.17)}
.pagination .pagebtn.active:not(:disabled):hover{color:#fff;background:linear-gradient(150deg,#20958d,#0b6870);transform:translateY(-2px)}
.pagination .pagebtn:focus-visible{outline:3px solid #71c7ba;outline-offset:3px}
.pagination .pagebtn:disabled{opacity:.33;cursor:not-allowed;box-shadow:none;background:#eff2f0;transform:none}
.pagination .page-nav{font-size:23px;font-weight:450;line-height:1}
.pagination .page-ellipsis{min-width:15px;text-align:center;color:#82a39b;font-weight:800;letter-spacing:1px}
.pagination .page-range{display:inline-flex;align-items:center;min-height:38px;padding:0 10px;color:#607e79;font-size:12px;font-weight:680;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.premium-entitlement-card{display:grid;gap:10px;padding:19px 21px;line-height:1.5}
.premium-access-kind{display:inline-flex;justify-self:start;padding:5px 11px;border:1px solid #b8dace;border-radius:999px;background:#e0f2e9;color:#145f5f;font-size:11px;letter-spacing:.06em;font-weight:840}
.premium-granted-note{padding:11px 14px;border:1px solid #d7e8dc;border-radius:12px;background:#f4faf4;color:#51776c;font-size:12px;line-height:1.5}
:root[data-theme="dark"] .pagination-controls{background:linear-gradient(155deg,#183b3f,#1a4848);border-color:#416467}
:root[data-theme="dark"] .pagination .pagebtn{background:#1c4347;border-color:#3b6564;color:#d8f1e8}
:root[data-theme="dark"] .pagination .pagebtn:not(:disabled):hover{background:#255d58;color:#fff;border-color:#82c6b4}
:root[data-theme="dark"] .pagination .pagebtn.active{background:linear-gradient(145deg,#13837e,#065e6a);color:#fff}
:root[data-theme="dark"] .pagination .page-range{color:#aecdc5}
:root[data-theme="dark"] .premium-access-kind{background:#245953;border-color:#3d8f84;color:#d4fff0}
:root[data-theme="dark"] .premium-granted-note{background:#214541;border-color:#426b5c;color:#d0e6dc}
@media(max-width:520px){.pagination{gap:7px}.pagination-controls{padding:4px;gap:5px}.pagination .pagebtn{min-width:35px;height:37px;font-size:12px;border-radius:9px;padding:0 7px}.pagination .page-nav{font-size:21px}.pagination .page-ellipsis{min-width:8px}}
@media(prefers-reduced-motion:reduce){.pagination .pagebtn{transition:none}.pagination .pagebtn:hover,.pagination .pagebtn:active{transform:none!important}}

/* Unified close controls: explicit selectors for both modal systems. */
#modalClose,#premiumClose{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #c5ded7;background:linear-gradient(145deg,#f9fffd,#e4f1ed);color:#185c60;box-shadow:0 3px 8px #143b4210,inset 0 1px 0 #ffffffb0;transition:background .22s,color .22s,border-color .22s,box-shadow .22s,transform .22s;}
#modalClose::before,#premiumClose::before{content:none;}
#modalClose svg,#premiumClose svg{width:20px;height:20px;transition:transform .24s cubic-bezier(.2,.8,.2,1);pointer-events:none;}
#modalClose:hover,#premiumClose:hover{background:linear-gradient(145deg,#0e777c,#095660);color:#fff;border-color:#14868b;box-shadow:0 5px 16px #0b697c33;transform:translateY(-1px);}
#modalClose:hover svg,#premiumClose:hover svg{transform:rotate(90deg);}
#modalClose:active,#premiumClose:active{transform:scale(.94);}
#modalClose:focus-visible,#premiumClose:focus-visible{outline:2px solid #53bcb5;outline-offset:3px;}
:root[data-theme=dark] #modalClose,:root[data-theme=dark] #premiumClose{background:linear-gradient(145deg,#294e53,#203b40);color:#c5eee6;border-color:#4a7778;box-shadow:0 3px 9px #071f2540,inset 0 1px 0 #ffffff12;}
:root[data-theme=dark] #modalClose:hover,:root[data-theme=dark] #premiumClose:hover{background:linear-gradient(145deg,#147f82,#0d6068);color:#fff;border-color:#6fc7bd;}
/* Actual V45 dimensions were 43px desktop and 35x37px mobile. */
.pagination .pagebtn{min-width:27.95px;height:27.95px;padding:0 6.5px;border-radius:8px;font-size:12px;}
.pagination .page-nav{font-size:17px;}
@media(max-width:520px){.pagination .pagebtn{min-width:24px;height:24.05px;padding:0 4px;border-radius:7px;font-size:11px;}.pagination .page-nav{font-size:15px;}}
@media(prefers-reduced-motion:reduce){#modalClose,#premiumClose,#modalClose svg,#premiumClose svg{transition:none;transform:none!important;}}


/* v46.2 mobile menu refinement + lighter headings */
@media(max-width:780px){
  .mobile-menu{
    display:grid!important;
    place-items:center;
    width:42px;
    height:42px;
    min-width:42px;
    padding:0;
    border:1px solid #d8e6e1;
    border-radius:14px;
    background:linear-gradient(145deg,#ffffff 0%,#edf5f1 100%);
    box-shadow:0 8px 22px rgba(12,79,82,.12), inset 0 1px 0 rgba(255,255,255,.7);
  }
  .mobile-menu-logo{display:none!important}
  .mobile-menu-bars{
    position:relative!important;
    right:auto!important;
    bottom:auto!important;
    display:grid;
    gap:4px;
    width:18px;
  }
  .mobile-menu-bars span{
    display:block;
    width:18px;
    height:2.5px;
    border-radius:999px;
    background:linear-gradient(90deg,#0b6d72,#16928d);
    transform-origin:center;
    box-shadow:0 1px 4px rgba(11,109,114,.15);
    animation:mobileStripePulse 1.8s ease-in-out infinite;
  }
  .mobile-menu-bars span:nth-child(2){animation-delay:.18s}
  .mobile-menu-bars span:nth-child(3){animation-delay:.36s}
  .mobile-menu:hover,.mobile-menu:focus-visible{background:linear-gradient(145deg,#ffffff 0%,#e5f2ee 100%);border-color:#a9d2c8;transform:translateY(-1px)}
  .mobile-menu.is-active .mobile-menu-bars span{animation:none}
  .mobile-menu.is-active .mobile-menu-bars span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .mobile-menu.is-active .mobile-menu-bars span:nth-child(2){opacity:0;transform:scaleX(.35)}
  .mobile-menu.is-active .mobile-menu-bars span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
}
@keyframes mobileStripePulse{
  0%,100%{transform:translateX(0);opacity:.92}
  50%{transform:translateX(1.6px);opacity:1}
}



/* V46.3 quality patch — mobile hamburger visibility and precise heading weight.
   Baseline is V46.1. No back-end, corpus, Premium, or glow changes. */
@media (max-width:780px){
  .topbar .breadcrumb > .mobile-menu{
    flex:0 0 42px;
    min-width:42px;
    display:grid!important;
    place-items:center;
    background:linear-gradient(145deg,#fff 0%,#eaf5f0 100%);
    border:1px solid #bedbd3;
  }
  /* Crucially, the old max-560px rule hides .breadcrumb span descendants.
     Keep the three lines explicitly visible on all small viewport widths. */
  .topbar .breadcrumb .mobile-menu-bars{
    display:grid!important;
    position:relative!important;
    inset:auto!important;
    width:19px!important;
    gap:4px!important;
    height:auto!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:3;
    pointer-events:none;
  }
  .topbar .breadcrumb .mobile-menu-bars > span{
    display:block!important;
    width:19px!important;
    height:2.5px!important;
    min-height:2.5px!important;
    border-radius:999px;
    background:#0b656c!important;
    visibility:visible!important;
    opacity:1;
    box-shadow:0 1px 3px rgba(10,89,92,.18);
    transform-origin:center;
  }
  .topbar .breadcrumb .mobile-menu-bars > span:nth-child(2){width:16px!important;margin-left:auto}
  .topbar .breadcrumb .mobile-menu-bars > span:nth-child(3){width:19px!important}
  .topbar .breadcrumb .mobile-menu:not(.is-active) .mobile-menu-bars > span{
    animation:mobileStripePulse 1.8s ease-in-out infinite;
  }
  .topbar .breadcrumb .mobile-menu:not(.is-active) .mobile-menu-bars > span:nth-child(2){animation-delay:.18s}
  .topbar .breadcrumb .mobile-menu:not(.is-active) .mobile-menu-bars > span:nth-child(3){animation-delay:.36s}
  .topbar .breadcrumb .mobile-menu.is-active .mobile-menu-bars > span{animation:none!important}
  .topbar .breadcrumb .mobile-menu.is-active .mobile-menu-bars > span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .topbar .breadcrumb .mobile-menu.is-active .mobile-menu-bars > span:nth-child(2){opacity:0!important;transform:scaleX(.1)}
  .topbar .breadcrumb .mobile-menu.is-active .mobile-menu-bars > span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
  :root[data-theme="dark"] .topbar .breadcrumb > .mobile-menu{
    background:linear-gradient(145deg,#183c46 0%,#234d54 100%);
    border-color:#47767a;
    box-shadow:0 8px 20px rgba(0,10,18,.2),inset 0 1px 0 rgba(255,255,255,.07);
  }
  :root[data-theme="dark"] .topbar .breadcrumb .mobile-menu-bars > span{
    background:#c9f4e7!important;
    box-shadow:0 1px 4px rgba(128,228,200,.19);
  }
}
/* Lighten all structural headings, not only Qidiruv natijalari.
   Original V46.1 computed weights:
   800 × .85 = 680; 700 × .85 = 595; 850 × .85 = 722.5.
   Keep buttons, normal labels and book/author names readable. */
.section-title h2, .special-head h3 { font-weight:680!important }
.large-panel > h2,.large-panel > h3,.large-panel .help-section h3,
.large-panel .chart h3, .side-card h3,.type-card h3,
.founder-card h3,.corpus-process h3,.corpus-demo h3,
#modalBackdrop .modal-head h3 {font-weight:595!important}
.search-panel .tabs .tab {font-weight:595!important}
.catalog-title-row h3, .result-card .doc-head .doc-name {font-weight:723!important}
#statsPage .analytics-heading h2 {font-weight:553!important}
#statsPage .analytics-chart-head h3 {font-weight:638!important}
/* The dedicated lexical modal uses 830 in V46.1, so 830 × .85 = 705.5. */
.token-lexical-modal .modal-head h3 {font-weight:706!important}
@media (prefers-reduced-motion:reduce){
  .topbar .breadcrumb .mobile-menu-bars > span{animation:none!important;transition:none!important}
}



/* V46.4: accessible, fully legible search-mode tabs at every screen width.
   The previous one-row flex strip shrank labels under mobile constraints. */
.search-panel > .tabs[role="tablist"]{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:center;
  gap:9px;
  padding:14px 15px 15px;
  overflow:visible;
  border-bottom:1px solid #e3eae5;
}
.search-panel > .tabs[role="tablist"] > .tab[role="tab"]{
  box-sizing:border-box;
  flex:0 0 calc((100% - 36px)/5);
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:52px;
  height:auto;
  padding:10px 9px;
  margin:0;
  border-radius:13px;
  border:1px solid #d8e7e1;
  border-bottom:1px solid #d8e7e1;
  line-height:1.3;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  text-wrap:balance;
  word-break:normal;
  hyphens:auto;
  letter-spacing:0;
  box-shadow:0 7px 17px rgba(10,80,80,.065), inset 0 1px 0 rgba(255,255,255,.4);
}
.search-panel > .tabs[role="tablist"] > .tab[role="tab"].active,
.search-panel > .tabs[role="tablist"] > .tab[role="tab"][aria-selected="true"]{
  background:linear-gradient(135deg,#0c777c,#0a535e);
  color:#fff;
  border-color:#0b6b71;
  box-shadow:0 10px 23px rgba(8,91,94,.19),inset 0 1px 0 rgba(255,255,255,.13);
}
.search-panel > .tabs[role="tablist"] > .tab[role="tab"]:focus-visible{
  outline:3px solid #57bdb4;
  outline-offset:2px;
}
@media(max-width:1199px){
  .search-panel > .tabs[role="tablist"] > .tab[role="tab"]{
    flex-basis:calc((100% - 18px)/3);
  }
}
@media(max-width:560px){
  .search-panel > .tabs[role="tablist"]{gap:8px;padding:12px 12px 13px}
  .search-panel > .tabs[role="tablist"] > .tab[role="tab"]{
    flex-basis:calc((100% - 8px)/2);
    min-height:51px;
    padding:8px 9px;
  }
}
@media(max-width:360px){
  .search-panel > .tabs[role="tablist"] > .tab[role="tab"]{
    font-size:12px;
    padding-inline:6px;
  }
}
:root[data-theme="dark"] .search-panel > .tabs[role="tablist"]{
  border-color:#395c60;
}
:root[data-theme="dark"] .search-panel > .tabs[role="tablist"] > .tab[role="tab"]{
  background:linear-gradient(145deg,#203f44,#19363b);
  border-color:#466a6b;
  color:#d4e5e2;
  box-shadow:0 7px 17px rgba(1,21,25,.18),inset 0 1px 0 rgba(255,255,255,.035);
}
:root[data-theme="dark"] .search-panel > .tabs[role="tablist"] > .tab[role="tab"].active,
:root[data-theme="dark"] .search-panel > .tabs[role="tablist"] > .tab[role="tab"][aria-selected="true"]{
  background:linear-gradient(135deg,#126e76,#0c5360);
  border-color:#58b8ad;
  color:#e9fffa;
}
@media(prefers-reduced-motion:reduce){
  .search-panel > .tabs[role="tablist"] > .tab[role="tab"]{transition:none!important}
}

/* V47 catalog pagination: only 15 cards enter the DOM per page. */
.catalog-pagination{margin-top:22px;padding-bottom:2px;scroll-margin-top:14px}
.catalog-pagination .pagination-controls{max-width:100%}
.catalog-pagination .pagebtn{min-width:32px;height:32px;font-size:12px;padding:0 8px}
.catalog-pagination .page-nav{font-size:17px}
.catalog-pagination .page-range{white-space:nowrap}
#catalogList{scroll-margin-top:20px}
@media(max-width:570px){
 .catalog-pagination{gap:8px;margin-top:14px}
 .catalog-pagination .pagination-controls{gap:4px;padding:4px;border-radius:12px}
 .catalog-pagination .pagebtn{min-width:28px;height:31px;padding:0 6px;font-size:11px;border-radius:8px}
 .catalog-pagination .page-nav{font-size:17px}
}


/* UzEnParC GOLD V47.1 — elegant, real-time, accessible search waiting window. */
.search-wait-layer{position:fixed;inset:0;z-index:580;display:grid;place-items:center;padding:22px;background:rgba(5,30,36,.50);backdrop-filter:blur(8px) saturate(90%);-webkit-backdrop-filter:blur(8px) saturate(90%);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.search-wait-layer.is-visible{opacity:1;visibility:visible;pointer-events:auto}
body.search-wait-open{overflow:hidden}
.search-wait-panel{position:relative;isolation:isolate;overflow:hidden;width:min(440px,100%);padding:32px 34px 26px;border-radius:27px;border:1px solid rgba(170,217,205,.8);background:radial-gradient(circle at 52% 18%,rgba(217,243,230,.9),transparent 54%),linear-gradient(155deg,#fffefa 0%,#f5faf6 58%,#ecf5ef 100%);color:#143e44;box-shadow:0 40px 120px rgba(0,26,34,.27),0 6px 27px rgba(12,82,81,.12),inset 0 1px 0 rgba(255,255,255,.85);transform:translateY(13px) scale(.982);transition:transform .32s cubic-bezier(.17,.81,.25,1);text-align:center}
.search-wait-layer.is-visible .search-wait-panel{transform:translateY(0) scale(1)}
.search-wait-panel:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.4;background:radial-gradient(circle at 0 100%,rgba(31,153,145,.12),transparent 45%)}
.search-wait-topline{position:absolute;left:24px;right:24px;top:0;height:3px;border-radius:0 0 99px 99px;background:linear-gradient(90deg,transparent,#6abdad,#0c8586,#c2a46d,transparent);opacity:.72}
.search-wait-kicker{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;color:#397a77;font-size:10px;font-weight:830;letter-spacing:.15em;text-transform:uppercase}
.search-wait-kicker-dot{height:7px;width:7px;border-radius:50%;background:#1d9d8f;box-shadow:0 0 0 4px rgba(36,163,144,.1)}
.search-wait-kicker-separator{color:#9db6af}
.search-wait-visual{position:relative;width:186px;height:152px;margin:17px auto 14px;display:flex;align-items:center;justify-content:center}
.search-wait-halo{position:absolute;inset:17px 34px;border-radius:50%;background:radial-gradient(circle,rgba(71,182,163,.22),transparent 70%);filter:blur(6px);animation:searchWaitHalo 3.4s ease-in-out infinite}
.search-wait-orbit{position:absolute;inset:7px 29px;border-radius:50%;border:1px solid rgba(20,121,120,.18);animation:searchWaitOrbit 7s linear infinite}
.search-wait-orbit:before{content:"";position:absolute;top:5px;left:17px;width:7px;height:7px;background:#2fafa0;border-radius:50%;box-shadow:0 0 13px rgba(36,161,142,.5)}
.search-wait-orbit-inner{inset:24px 45px;border-style:dashed;border-color:rgba(23,131,129,.23);animation-direction:reverse;animation-duration:11s}
.search-wait-orbit-inner:before{top:auto;left:auto;right:2px;bottom:10px;width:5px;height:5px;background:#ba9f6e}
.search-wait-token{z-index:1;position:relative;width:54px;height:54px;display:grid;place-items:center;font:760 16px/1 Georgia,serif;letter-spacing:.045em;border-radius:17px;box-shadow:0 15px 22px rgba(10,76,79,.16),inset 0 1px 0 rgba(255,255,255,.7);animation:searchWaitFloat 3.1s ease-in-out infinite}
.search-wait-token-uz{background:linear-gradient(145deg,#0e8683,#0a5967);border:1px solid #218d85;color:#effff8;transform:rotate(-8deg)}
.search-wait-token-en{background:linear-gradient(145deg,#fffdfa,#eaf7f0);border:1px solid #b2d8c7;color:#126564;animation-delay:-1.5s}
.search-wait-link{z-index:2;width:48px;opacity:.68;color:#288d82;margin:0 -3px}
.search-wait-link svg{width:100%;display:block}
.search-wait-spark{position:absolute;width:5px;height:5px;border-radius:50%;background:#34ae9f;box-shadow:0 0 14px rgba(30,165,151,.38);animation:searchWaitSpark 2.8s ease-in-out infinite}
.search-wait-spark-a{left:19px;top:42px}.search-wait-spark-b{right:15px;top:42px;animation-delay:.9s}.search-wait-spark-c{bottom:26px;left:91px;animation-delay:1.8s}
.search-wait-panel h2{font-family:Georgia,'Times New Roman',serif;font-weight:650;font-size:clamp(21px,3.8vw,25px);line-height:1.26;letter-spacing:-.025em;color:#143f43;margin:0 0 9px}
.search-wait-panel p{margin:0;color:#67817e;font-size:13px;line-height:1.7}
.search-wait-progress{height:4px;border-radius:99px;overflow:hidden;margin:24px 8px 16px;background:rgba(25,133,124,.12)}
.search-wait-progress span{display:block;height:100%;width:38%;border-radius:99px;background:linear-gradient(90deg,transparent,#48b6a5,#0d787b,#b7b074);box-shadow:0 0 12px rgba(31,139,132,.2);animation:searchWaitTrack 1.5s ease-in-out infinite}
.search-wait-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;text-align:left}
.search-wait-status{display:inline-flex;align-items:center;gap:8px;color:#64837c;font-weight:650}
.search-wait-pulse{height:6px;width:6px;border-radius:50%;background:#208e85;animation:searchWaitPulse 1.8s ease-in-out infinite}
.search-wait-cancel{flex:none;border-radius:999px;border:1px solid rgba(50,127,118,.18);background:linear-gradient(135deg,#fff,#eef6f1);box-shadow:0 5px 13px rgba(14,74,74,.06);padding:7px 12px;cursor:pointer;color:#246460;font-size:11px;font-weight:740;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.search-wait-cancel:hover,.search-wait-cancel:focus-visible{transform:translateY(-1px);border-color:#72bcae;background:#e8f6ee}
.search-wait-cancel:focus-visible{outline:3px solid #62c5b4;outline-offset:2px}
:root[data-theme=dark] .search-wait-layer{background:rgba(0,18,24,.68)}
:root[data-theme=dark] .search-wait-panel{background:radial-gradient(circle at 50% 18%,rgba(22,99,96,.33),transparent 53%),linear-gradient(155deg,#173c42,#122d35 70%,#10292e);border-color:#457e7e;color:#e4f6f0;box-shadow:0 40px 115px rgba(0,10,15,.55),inset 0 1px 0 rgba(255,255,255,.08)}
:root[data-theme=dark] .search-wait-kicker{color:#9dd4c7}
:root[data-theme=dark] .search-wait-panel h2{color:#edf9f4}
:root[data-theme=dark] .search-wait-panel p,:root[data-theme=dark] .search-wait-status{color:#a4c2bb}
:root[data-theme=dark] .search-wait-orbit{border-color:rgba(145,210,190,.23)}
:root[data-theme=dark] .search-wait-orbit-inner{border-color:rgba(145,210,190,.18)}
:root[data-theme=dark] .search-wait-token-en{background:linear-gradient(140deg,#ddf5e9,#a9d6c9);color:#185c5d;border-color:#b7e4d5}
:root[data-theme=dark] .search-wait-link{color:#8addca}
:root[data-theme=dark] .search-wait-progress{background:rgba(144,225,206,.13)}
:root[data-theme=dark] .search-wait-cancel{background:linear-gradient(135deg,#254d52,#1b3c42);border-color:#436f6d;color:#d9f1e8}
:root[data-theme=dark] .search-wait-cancel:hover{background:#2b5b5b}
@media(max-width:490px){.search-wait-layer{padding:16px}.search-wait-panel{border-radius:23px;padding:26px 22px 22px}.search-wait-visual{margin:12px auto 10px}.search-wait-panel h2{font-size:23px}.search-wait-bottom{gap:6px}.search-wait-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){.search-wait-layer,.search-wait-panel,.search-wait-token,.search-wait-halo,.search-wait-orbit,.search-wait-spark,.search-wait-progress span,.search-wait-pulse{animation:none!important;transition:none!important}.search-wait-progress span{width:100%;background:#2a8e84}}
@keyframes searchWaitOrbit{to{transform:rotate(360deg)}}
@keyframes searchWaitHalo{50%{opacity:.43;transform:scale(.89)}}
@keyframes searchWaitFloat{50%{translate:0 -6px}}
@keyframes searchWaitSpark{50%{opacity:.2;transform:scale(.6)}}
@keyframes searchWaitPulse{50%{opacity:.4;box-shadow:0 0 0 4px rgba(52,177,150,.1)}}
@keyframes searchWaitTrack{0%{transform:translateX(-120%)}100%{transform:translateX(370%)}}

/* V47.2: explicit search action beneath multi-select panels. */
.semantic-apply{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:17px;padding:16px 2px 2px;border-top:1px solid rgba(106,160,147,.20)}
.semantic-apply > span{font-size:12px;color:var(--muted,#64817d)}
.semantic-submit{min-width:138px;justify-content:center}
@media(max-width:480px){.semantic-apply{justify-content:space-between}.semantic-submit{flex:1;min-width:130px}}

/* V47.3: semantic explorer and illustrated help. No server-driven auto search. */
#semanticSearchPanel.special-panel{border:1px solid #c9e3dc;border-radius:20px;padding:clamp(14px,2.5vw,24px);background:radial-gradient(circle at 95% 0%,rgba(106,214,193,.11),transparent 35%),linear-gradient(148deg,#fcfffd,#f6faf7);box-shadow:0 14px 35px rgba(9,66,69,.07)}
.semantic-header{align-items:start;flex-wrap:wrap;gap:12px}.semantic-header h3{font-size:20px;letter-spacing:-.35px;font-weight:680}.semantic-kicker{font-size:10px;letter-spacing:.12em;color:#0e7373;font-weight:800;margin-bottom:5px}
.semantic-explainer{display:flex;gap:12px;align-items:start;background:linear-gradient(120deg,#e5f6f0,#f1faf6);border:1px solid #c5e4d8;border-radius:14px;padding:12px 15px;margin:12px 0;color:#426b63}.semantic-explainer>span{color:#14857d;font-size:22px;line-height:1.1}.semantic-explainer p{margin:0;font-size:12px;line-height:1.7}
.semantic-filter-row{display:flex;align-items:center;gap:10px;margin:17px 0 10px}.semantic-filter-label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:1px solid #c6ded7;border-radius:13px;background:white;padding:0 12px;color:#2b696a;transition:border-color .2s,box-shadow .2s}.semantic-filter-label:focus-within{border-color:#328e85;box-shadow:0 0 0 4px rgba(65,168,148,.11)}.semantic-filter-label svg{width:19px;height:19px;flex:none}.semantic-filter-label input{width:100%;height:44px;border:0;outline:0;background:none;color:#164d4f;min-width:0;font:inherit;font-size:13px}.semantic-filter-row .selection-pill{white-space:nowrap}
.semantic-preset-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:11px}.semantic-preset-row>span{font-size:11px;font-weight:750;color:#718984;margin-right:4px}.semantic-preset-row button,.semantic-tools button{border:1px solid #c7e2d8;border-radius:999px;padding:7px 12px;background:linear-gradient(135deg,#fff,#f0f9f4);color:#175f5d;font-size:11px;font-weight:730;transition:transform .18s,background .18s,box-shadow .18s}.semantic-preset-row button:hover,.semantic-tools button:hover{transform:translateY(-2px);background:#dff3e9;box-shadow:0 7px 17px rgba(21,100,88,.13)}.semantic-tools{display:flex;flex-wrap:wrap;justify-content:start;gap:7px;margin:9px 0 16px}
.semantic-selected-wrap{padding:11px 13px;border:1px solid #d7e9e1;background:#ffffffc9;border-radius:14px;margin-bottom:14px}.semantic-selected-wrap>strong{display:block;font-size:11px;font-weight:800;color:#3b7169;margin-bottom:7px}.semantic-selected-chips{display:flex;flex-wrap:wrap;gap:6px}.semantic-selected-none{font-size:11px;color:#78928d}.semantic-chip{display:inline-flex;align-items:center;gap:9px;border:1px solid #a2d5c7;background:#dff4ed;color:#155f5b;border-radius:999px;padding:6px 10px;font-weight:750;font-size:11px;transition:transform .2s,background .2s}.semantic-chip span{font-size:15px;line-height:.8}.semantic-chip:hover{background:#c8eadd;transform:translateY(-1px)}
#semanticSearchPanel .semantic-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.semantic-category{position:relative;display:flex;align-items:center;min-width:0;min-height:48px;gap:8px;border-radius:12px;border:1px solid #d9e8e1;background:#fff;padding:10px 12px;box-shadow:0 4px 12px rgba(10,72,70,.035);transition:transform .18s,border-color .18s,background .18s,box-shadow .18s}.semantic-category:hover{transform:translateY(-1px);border-color:#8cc9ba;box-shadow:0 7px 18px rgba(10,72,70,.1)}.semantic-category>span:nth-child(2){overflow-wrap:anywhere;flex:1}.semantic-category input{width:17px;height:17px;flex:0 0 17px}.semantic-check-mark{opacity:0;color:#0b7069;font-weight:900;font-size:15px}.semantic-category:has(input:checked) .semantic-check-mark{opacity:1}.semantic-category:has(input:checked){border-color:#65baa7;background:linear-gradient(135deg,#e0f5eb,#f2fcf6);box-shadow:inset 3px 0 #128079,0 7px 16px rgba(16,105,91,.08)}.semantic-no-categories{text-align:center;padding:20px;color:#7c9990}.semantic-apply{border-top:1px solid #d8e8e1;margin-top:17px;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.semantic-submit{min-width:160px;box-shadow:0 12px 22px rgba(13,101,101,.18)}
:root[data-theme=dark] #semanticSearchPanel.special-panel{background:linear-gradient(145deg,#16393d,#1b4545);border-color:#3a7770}:root[data-theme=dark] .semantic-explainer,:root[data-theme=dark] .semantic-selected-wrap{background:#1c4144;border-color:#396f68;color:#c3e9dd}:root[data-theme=dark] .semantic-header h3{color:#e8f7f0}:root[data-theme=dark] .semantic-filter-label,:root[data-theme=dark] .semantic-category{background:#244a4c;border-color:#416d68;color:#dcf2e9}:root[data-theme=dark] .semantic-filter-label input{color:#f2f9f6}:root[data-theme=dark] .semantic-category:has(input:checked){background:#245b56;border-color:#5cb4a7}:root[data-theme=dark] .semantic-selected-wrap>strong{color:#b1e5d7}:root[data-theme=dark] .semantic-chip{background:#245d58;border-color:#538e83;color:#e1faf1}
@media(max-width:1000px){#semanticSearchPanel .semantic-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:610px){#semanticSearchPanel .semantic-check-grid{grid-template-columns:1fr}.semantic-filter-row{flex-wrap:wrap}.semantic-filter-row .semantic-filter-label{flex-basis:100%}.semantic-category{min-height:44px}}
/* Public guide: restrained editorial animations, self-contained illustrations */
#guidePage{--guide-teal:#0b6c70;max-width:1200px;margin:auto;color:#193f44}#guidePage .guide-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:25px;padding:clamp(26px,4.7vw,56px);background:linear-gradient(132deg,#0d3941,#105a5d 64%,#1d746e);color:#effff8;border-radius:24px;overflow:hidden;box-shadow:0 22px 50px #063c4430;margin-bottom:21px}.guide-hero-lines span{position:absolute;width:400px;height:400px;border:1px solid #b5ecdb25;border-radius:50%;right:-180px;top:-180px;pointer-events:none}.guide-hero-lines span:nth-child(2){width:340px;height:340px;right:-150px;top:-145px}.guide-hero-lines span:nth-child(3){width:270px;height:270px;right:-114px;top:-108px}.guide-hero-copy{z-index:1}.guide-eyebrow,.guide-section-cap{font-size:11px;letter-spacing:.17em;font-weight:850;color:#88d9c8}.guide-hero h2{font:600 clamp(27px,3.7vw,44px)/1.14 Georgia,serif;letter-spacing:-1px;margin:15px 0}.guide-hero p{font-size:14px;line-height:1.8;color:#c5e5da;max-width:500px}.guide-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.guide-hero-actions .btn{border-color:#6db5aa;color:#fff}.guide-hero-actions .btn-outline{color:#e9faf3;background:#ffffff15}.guide-hero-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:238px;gap:8px;z-index:1}.guide-float-card{width:125px;height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;border:1px solid #b1f3dc80;border-radius:18px;background:#f4fffa18;box-shadow:0 16px 32px #032b3245, inset 0 1px #ffffff40;animation:guideFloat 4.4s ease-in-out infinite}.guide-float-en{animation-delay:-2s;background:#ffffffd9;color:#0a585d}.guide-float-card>span{font-size:11px;letter-spacing:.23em;font-weight:850}.guide-float-card strong{font:700 25px Georgia,serif}.guide-connection{display:flex;gap:3px;align-items:center}.guide-connection i{width:5px;height:5px;border-radius:50%;background:#a4e9d4;animation:guideDot 1.7s ease-in-out infinite}.guide-connection i:nth-child(2){animation-delay:.2s}.guide-connection i:nth-child(3){animation-delay:.4s}.guide-visual-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;letter-spacing:.14em;text-transform:uppercase;color:#d2f5e4;font-size:10px}
.guide-chooser,.guide-walkthrough,.guide-extra{border:1px solid #dceae2;background:linear-gradient(150deg,#fff,#f9fcfa);border-radius:21px;padding:clamp(17px,2.7vw,30px);margin:18px 0;box-shadow:0 10px 28px #144d4f0d}.guide-chooser{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:13px}.guide-chooser h3,.guide-walkthrough h3,.guide-extra h3{font-weight:670;margin:0 0 5px;font-size:clamp(18px,2.3vw,24px)}.guide-chooser p{margin:0;font-size:12px;color:#728b86}.guide-choice-buttons{display:flex;gap:9px;flex-wrap:wrap}.guide-choice{display:flex;align-items:center;gap:9px;min-height:44px;border:1px solid #c5ded5;border-radius:14px;padding:10px 16px;background:#f6fbf8;color:#2a6764;font-weight:780;transition:transform .2s,box-shadow .2s,border-color .2s}.guide-choice.active{background:linear-gradient(120deg,#0d7779,#0b5964);color:#fff;border-color:#0d787d;box-shadow:0 8px 20px #08636f28}.guide-choice:hover{transform:translateY(-2px)}.guide-choice span:first-child{font-size:20px}
.guide-walkthrough{scroll-margin-top:24px}.guide-walk-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}.guide-counter{border:1px solid #c9e5d8;background:#e6f6ed;color:#17645d;padding:7px 13px;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}.guide-step-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:25px}.guide-step-progress span{height:5px;border-radius:999px;background:#dfeae5;transition:background .3s}.guide-step-progress span.on{background:linear-gradient(90deg,#118a84,#80cdb6)}.guide-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(15px,3vw,34px);align-items:center;min-height:240px}.guide-illustration{display:grid;place-items:center;min-height:220px;border-radius:18px;background:radial-gradient(circle at 50% 35%,#c9eade,#e9f6ef 62%,#f5faf5);border:1px solid #cfe5d8;overflow:hidden}.guide-mock-scene{width:min(84%,320px);color:#144e52;animation:guideAppear .38s ease-out both}.guide-mock-top{height:31px;display:flex;align-items:center;justify-content:space-between;background:#0e5f68;color:#fff;border-radius:9px 9px 0 0;padding:0 13px;gap:10px;font-size:12px}.guide-mock-body{display:grid;grid-template-columns:75px 1fr;min-height:140px;background:white;border:1px solid #c7ded7;border-radius:0 0 10px 10px}.guide-mock-nav{background:#184d52;display:grid;align-content:center;gap:13px;padding:12px}.guide-mock-nav span{height:7px;border-radius:4px;background:#a9dcd2}.guide-mock-search{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:15px}.guide-mock-search span{font-size:10px;color:#0e8b78}.guide-mock-search strong{font-size:17px}.guide-mock-search i{display:grid;place-items:center;width:35px;height:30px;border-radius:8px;background:#d7ede4}.guide-mock-tabs{display:flex;gap:6px;justify-content:center}.guide-mock-tabs span{font-size:12px;padding:15px 10px;background:#fff;border:1px solid #b8d8cc;border-radius:12px;box-shadow:0 6px 12px #0b596318}.guide-mock-tabs span:nth-child(3){background:#0b7074;color:white;animation:guidePulse 3s ease-in-out infinite}.guide-mock-hint{display:flex;justify-content:center;gap:20px;margin-top:20px;color:#237b79}.guide-mock-field{background:#fff;border:1px solid #b2d8cc;padding:18px;border-radius:14px;display:grid;gap:8px;box-shadow:0 12px 25px #0c6c6c18}.guide-mock-field span{font-size:11px}.guide-mock-field strong{font:600 25px Georgia,serif}.guide-mock-field i{justify-self:end}.guide-mock-cta{background:#0b7276;color:#fff;border-radius:12px;text-align:center;margin-top:12px;padding:12px;font-weight:750}.guide-mock-signal{display:flex;justify-content:center;gap:6px;margin-top:10px}.guide-mock-signal i{width:6px;height:6px;border-radius:50%;background:#0c8781;animation:guideDot 1.5s infinite}.guide-mock-signal i:nth-child(2){animation-delay:.2s}.guide-mock-signal i:nth-child(3){animation-delay:.4s}.guide-mock-pair{display:flex;align-items:center;gap:9px}.guide-mock-pair>div{background:#fff;border:1px solid #b9d9cc;padding:16px 12px;border-radius:13px;display:grid;gap:8px;min-width:94px}.guide-mock-pair span{font-size:11px;color:#23817a;font-weight:850}.guide-mock-pair strong{font:600 23px Georgia,serif}.guide-mock-pair small{font-size:10px;color:#708c86}.guide-mock-pair i{color:#0c6f75;font-size:23px;animation:guidePulse 2.8s infinite}.guide-mock-docs{display:grid;gap:9px}.guide-mock-docs div{border:1px solid #c0ddd2;border-radius:9px;background:#fff;padding:13px;box-shadow:0 5px 12px #15545915}.guide-mock-docs span{margin-left:7px;font-size:12px}.guide-mock-pages{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:11px}.guide-mock-pages b,.guide-mock-pages i{font-style:normal;border-radius:8px;background:#fff;padding:6px 10px;border:1px solid #c0dace}.guide-mock-pages b{background:#096b70;color:#fff}.guide-mock-pages span{margin-left:auto}.guide-mock-status{margin:auto;display:flex;gap:15px;align-items:center;background:linear-gradient(125deg,#0c585f,#115b5c);padding:19px 23px;color:white;border-radius:16px;box-shadow:0 10px 30px #084b5030}.guide-mock-status>span{font-size:35px}.guide-mock-status div{display:grid;gap:6px}.guide-mock-status b{font-size:18px;letter-spacing:.08em}.guide-mock-status small{white-space:nowrap}.guide-mock-unlocked{background:linear-gradient(115deg,#12625c,#0a7972)}.guide-mock-login{background:#fff;border:1px solid #a9d3c6;border-radius:14px;display:grid;gap:8px;padding:18px}.guide-mock-login>span{font-size:11px;color:#14736f;font-weight:800;letter-spacing:.12em}.guide-mock-login strong{color:#115b5c}.guide-mock-login>div{border:1px solid #d2e6db;border-radius:8px;background:#f7fbf8;padding:9px;color:#607f7a;font-size:12px}
.guide-step-copy{animation:guideAppear .35s both}.guide-step-tag{font-size:11px;color:#16817e;font-weight:850;letter-spacing:.11em}.guide-step-copy h4{font:650 clamp(21px,2.7vw,29px)/1.3 Georgia,serif;margin:9px 0;color:#174c4d}.guide-step-copy p{color:#5b7c77;font-size:14px;line-height:1.8;margin:0 0 14px}.guide-tip{display:flex;gap:10px;border-left:3px solid #16a089;background:#edf8f1;padding:13px;border-radius:0 11px 11px 0;color:#456a65;font-size:12px;line-height:1.6}.guide-tip>span:first-child{color:#0b8a7f}.guide-step-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:24px}.guide-step-actions .btn:disabled{opacity:.4;cursor:not-allowed}.guide-step-dots{display:flex;gap:7px;align-items:center}.guide-step-dots button{width:9px;height:9px;border:0;border-radius:99px;background:#cadfd4;padding:0;transition:width .2s,background .2s}.guide-step-dots button.active{width:23px;background:#0d7976}
.guide-extra .guide-section-cap{color:#13827b;margin-bottom:10px}.guide-faq{display:grid;gap:10px;margin-top:20px}.guide-faq details{background:#f8fbf9;border:1px solid #dfeae3;border-radius:13px;padding:0 15px;transition:border-color .2s}.guide-faq details[open]{border-color:#9bcbc1;background:#f3fbf7}.guide-faq summary{cursor:pointer;padding:15px 7px;color:#1b5b5a;font-weight:760;list-style:none;display:flex;justify-content:space-between;gap:14px}.guide-faq summary::after{content:'+';font-weight:850;font-size:18px}.guide-faq details[open] summary::after{content:'−'}.guide-faq p{margin:0;padding:0 7px 15px;color:#5b7973;font-size:13px;line-height:1.8}.guide-security{font-size:12px;color:#627c76;line-height:1.7;text-align:center;padding:5px 20px 20px}
:root[data-theme=dark] #guidePage{color:#e1f4ed}:root[data-theme=dark] .guide-chooser,:root[data-theme=dark] .guide-walkthrough,:root[data-theme=dark] .guide-extra{background:linear-gradient(140deg,#173c40,#1a4446);border-color:#416863}:root[data-theme=dark] .guide-chooser p,:root[data-theme=dark] .guide-step-copy p,:root[data-theme=dark] .guide-faq p{color:#b1d0c6}:root[data-theme=dark] .guide-step-copy h4{color:#e2f3ec}:root[data-theme=dark] .guide-illustration{background:radial-gradient(circle,#2b605d,#244a4b);border-color:#3e6f63}:root[data-theme=dark] .guide-choice{background:#264b4d;color:#e4f4ee;border-color:#49746d}:root[data-theme=dark] .guide-choice.active{background:linear-gradient(115deg,#107c80,#105c68)}:root[data-theme=dark] .guide-faq details{background:#204548;border-color:#426a64}:root[data-theme=dark] .guide-faq summary{color:#e4f3ec}:root[data-theme=dark] .guide-tip{background:#23534e;color:#cce4d8}:root[data-theme=dark] .guide-security{color:#abcfc2}
@keyframes guideFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(1deg)}}@keyframes guideDot{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}@keyframes guideAppear{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes guidePulse{50%{filter:brightness(1.2);transform:translateY(-2px)}}
@media(max-width:780px){#guidePage .guide-hero{grid-template-columns:1fr}.guide-hero-visual{min-height:160px}.guide-float-card{height:120px}.guide-stage{grid-template-columns:1fr}.guide-illustration{min-height:195px}.guide-step-actions .btn{font-size:12px;padding:9px 11px}}@media(max-width:480px){#guidePage .guide-hero{padding:24px}.guide-hero h2{font-size:29px}.guide-hero-visual{min-height:146px}.guide-float-card{height:115px;width:100px}.guide-float-card strong{font-size:21px}.guide-step-dots{order:3;width:100%;justify-content:center}.guide-step-actions{justify-content:space-between}.guide-choice{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){#guidePage .guide-float-card,#guidePage .guide-connection i,#guidePage .guide-mock-scene,#guidePage .guide-mock-signal i,#guidePage .guide-mock-pair i,#guidePage .guide-mock-tabs span,#guidePage .guide-step-copy{animation:none!important}#guidePage *{scroll-behavior:auto!important}}

.guide-live-action{margin-top:14px;font-size:12px;padding:9px 14px}


/* V47.4 — truly compact, balanced guide header (desktop + mobile) */
#guidePage{max-width:1180px}
#guidePage .guide-hero{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:22px;min-height:0!important;height:auto!important;padding:22px clamp(19px,3vw,34px)!important;margin-bottom:14px;border-radius:19px}
#guidePage .guide-hero-copy{flex:1 1 0;min-width:0;max-width:700px}
#guidePage .guide-hero h2{font-size:clamp(24px,2.7vw,33px);line-height:1.16;margin:7px 0 9px;letter-spacing:-.6px}
#guidePage .guide-hero p{font-size:12.5px;line-height:1.6;margin:0;max-width:560px}
#guidePage .guide-hero-actions{margin-top:14px;gap:7px}
#guidePage .guide-hero-actions .btn{font-size:11.5px;padding:9px 12px;border-radius:11px;white-space:normal;text-align:center}
#guidePage .guide-hero-visual{flex:0 0 235px;width:235px;min-height:128px;height:128px;gap:6px;align-self:center}
#guidePage .guide-float-card{width:92px;height:101px;border-radius:13px;gap:7px}
#guidePage .guide-float-card strong{font-size:21px}
#guidePage .guide-float-card>span{font-size:9px}
#guidePage .guide-visual-caption{bottom:0;font-size:8px}
#guidePage .guide-chooser,#guidePage .guide-walkthrough,#guidePage .guide-extra{margin:12px 0}
#guidePage .guide-choice-buttons{gap:7px}
#guidePage .guide-choice{padding:9px 11px;font-size:12px;min-height:40px}
#guidePage .guide-choice span:first-child{font-size:15px}
@media(max-width:930px){
 #guidePage .guide-hero-visual{flex-basis:185px;width:185px}
 #guidePage .guide-float-card{width:74px;height:86px}
 #guidePage .guide-float-card strong{font-size:17px}
}
@media(max-width:710px){
 #guidePage .guide-hero{padding:19px!important;gap:10px;flex-direction:column;align-items:stretch}
 #guidePage .guide-hero-visual{flex:none;min-height:73px;height:73px;width:100%;justify-content:center}
 #guidePage .guide-float-card{width:96px;height:58px;gap:2px}
 #guidePage .guide-float-card strong{font-size:16px}
 #guidePage .guide-visual-caption{display:none}
 #guidePage .guide-hero h2{font-size:clamp(24px,6vw,29px)}
 #guidePage .guide-hero-actions .btn{flex:1 1 130px}
}
@media(max-width:390px){#guidePage .guide-hero-visual{height:62px;min-height:62px}#guidePage .guide-float-card{height:53px}}
/* Semantic highlights must be truthful: only matching tokens or verified alignments.
   Prefer calmer readable marks over a solid wall of yellow. */
#results .result-card .sentence-text .token.is-query{
 background:linear-gradient(180deg,transparent 44%,rgba(220,176,78,.24) 45%,rgba(225,184,94,.30) 95%);
 border-radius:3px;color:inherit;box-shadow:inset 0 -1px rgba(175,124,38,.23);
}
#results .result-card .sentence-text .token.is-query-partner{
 background:linear-gradient(180deg,transparent 46%,rgba(80,174,157,.19) 48%,rgba(80,174,157,.24));
 border-radius:3px;color:inherit;box-shadow:inset 0 -1px rgba(38,127,119,.23);
}
:root[data-theme=dark] #results .result-card .sentence-text .token.is-query{background:linear-gradient(180deg,transparent 40%,rgba(232,191,111,.22) 43%,rgba(232,191,111,.28))}
:root[data-theme=dark] #results .result-card .sentence-text .token.is-query-partner{background:linear-gradient(180deg,transparent 40%,rgba(83,199,174,.20) 43%,rgba(83,199,174,.28))}
