/* 1.3.0 shared chrome. Explicit dark palette; no whole-page inversion. */
html[data-gep-theme]{margin:0!important;padding:0!important;min-height:100%;background:#fafaf8}
html[data-gep-theme=dark]{background:#101311;color-scheme:dark}
html[data-gep-theme=light]{color-scheme:light}
body.gep-site{display:flex;flex-direction:column;min-height:100svh;margin:0!important;padding:0!important}
body.gep-site .gep-main{width:100%;flex:1}
html[data-gep-theme=dark] body.gep-site{--gp-bg:#101311;--gp-card:#181d19;--gp-ink:#edf1eb;--gp-dim:#abb6ac;--gp-line:#323c33;--gp-green:#b0d5b6;background:var(--gp-bg);color:var(--gp-ink)}
body.gep-site .gep-shell-top{padding-block:19px;min-height:88px}
.gep-header-content{min-width:0;flex:1}.gep-header-content a{color:inherit}
body.gep-site .gep-shell-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}
body.gep-site .gep-icon-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:50px;height:50px;min-width:50px;min-height:50px;border:1px solid var(--gp-line);border-radius:14px;background:var(--gp-card);color:var(--gp-ink);padding:10px;cursor:pointer;margin:0;list-style:none;transition:background .18s,border-color .18s,transform .18s;line-height:1;font:inherit;text-decoration:none}
body.gep-site .gep-icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body.gep-site .gep-icon-button:hover{border-color:var(--gp-green);transform:translateY(-1px)}
body.gep-site .gep-icon-button:active{transform:translateY(0)}
body.gep-site .gep-icon-button::before,body.gep-site .gep-icon-button::after{display:none!important}
.gep-theme-toggle .gep-moon{display:block}.gep-theme-toggle .gep-sun{display:none!important}
html[data-gep-theme=light] .gep-theme-toggle .gep-moon{display:none!important}html[data-gep-theme=light] .gep-theme-toggle .gep-sun{display:block!important}
.gep-lang-picker{position:relative}.gep-lang-picker summary::-webkit-details-marker{display:none}
body.gep-site .gep-language-toggle{width:auto;min-width:82px}.gep-lang-code{font-size:11px;letter-spacing:.02em;font-weight:750;max-width:70px}
.gep-language-panel{position:absolute;z-index:100;inset-inline-end:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 32px);border:1px solid var(--gp-line);border-radius:17px;background:var(--gp-card);box-shadow:0 18px 55px #0003;padding:14px}
.gep-language-search{display:block;padding-bottom:12px;color:var(--gp-ink);font-size:13px;font-weight:650}
.gep-language-search input{display:block;width:100%;margin-top:8px;padding:11px 12px;border:1px solid var(--gp-line);border-radius:9px;background:var(--gp-bg);color:var(--gp-ink);font:inherit;font-weight:450;appearance:none;min-height:42px}
.gep-language-list{max-height:min(365px,56vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-inline-end:4px}
body.gep-site .gep-language-list a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 10px;border-radius:8px;font-size:13px;line-height:1.5;color:var(--gp-ink);min-height:42px}
.gep-language-list a small{font-size:10px;color:var(--gp-dim)}
.gep-language-list a[aria-current=true]{background:var(--gp-bg);font-weight:750}
.gep-language-list a:hover{background:var(--gp-bg)}
body.gep-site .gep-tool .gfc-header{justify-content:space-between;align-items:flex-end;direction:ltr;gap:20px}
body.gep-site .gep-tool .gfc-header .gfc-other-converter{margin-right:auto;text-align:center}
body.gep-site .gep-tool .gfc-output{margin-left:auto}
body.gep-site .gep-tool .gfc-label{text-align:left}
body.gep-site .gep-portal-tool .gfc-heading{display:none}
body.gep-site .gep-portal-tool{margin-bottom:30px}
.gep-site-footer{width:100%;border-top:1px solid var(--gp-line);margin-top:auto}
body.gep-site .gep-shell-bottom{border:0;max-width:1280px;padding:32px 48px;min-width:0;flex-wrap:wrap;justify-content:space-between;color:var(--gp-dim);gap:20px}
.gep-shell-bottom>small{font-size:11px}.gep-header-content img,.gep-shell-bottom img{max-width:100%;height:auto}
/* Converter surfaces and controls */
html[data-gep-theme=dark] body.gep-site .gfc-app{--gfc-ink:#edf1eb;--gfc-muted:#a6b4aa;--gfc-line:#354138;--gfc-soft:#202a23;--gfc-accent:#b4d7b8;--gfc-accent-hover:#c8e7cc;--gfc-error:#f3a397;background:#181d19;color:var(--gfc-ink);border-color:var(--gfc-line);color-scheme:dark;box-shadow:0 12px 40px #0002}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-drop{background:radial-gradient(ellipse at 50% 5%,#253429 0,transparent 65%),#191f1a;border-color:#425246}
html[data-gep-theme=dark] body.gep-site .gfc-app.gfc-dragging .gfc-drop{background:#293a2d;border-color:#b4d7b8}
html[data-gep-theme=dark] body.gep-site .gfc-upload-icon{background:#2b3c2c;color:#b0d1ac}
html[data-gep-theme=dark] body.gep-site .gfc-icon-spark{background:#202922;border-color:#29372b;color:#b6d9b6}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-drop>p,html[data-gep-theme=dark] body.gep-site .gfc-label,html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-eyebrow{color:#a9b5ac}
html[data-gep-theme=dark] body.gep-site .gfc-app select,html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-settings-grid input:not([type=range]){background:#232c25!important;border-color:#405044;color:#e5eee2}
html[data-gep-theme=dark] body.gep-site .gfc-app select:disabled{background:#1e2620!important;border-color:#344037;color:#9daa9f}
html[data-gep-theme=dark] body.gep-site .gfc-select-wrap{color:#b6ccb9}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-primary{color:#172a1b}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-primary:disabled{background:#28382b;border-color:#28382b;color:#9faf9f}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-secondary{background:#263128;color:#d2e5ce;border-color:#415345}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-secondary:hover:enabled{background:#304333;border-color:#799d7c}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-row{background:transparent}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-file-name,html[data-gep-theme=dark] body.gep-site .gfc-count strong{color:#e5eee2}
html[data-gep-theme=dark] body.gep-site .gfc-file-icon,html[data-gep-theme=dark] body.gep-site .gfc-format-chip{background:#27342a;color:#b7d5b5;border-color:#3d5040}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-text-button,html[data-gep-theme=dark] body.gep-site .gfc-state-label,html[data-gep-theme=dark] body.gep-site .gfc-row-message,html[data-gep-theme=dark] body.gep-site .gfc-file-meta,html[data-gep-theme=dark] body.gep-site .gfc-file-number{color:#a9b8ab}
html[data-gep-theme=dark] body.gep-site .gfc-row[data-state=done] .gfc-state-label{color:#b3dab2}
html[data-gep-theme=dark] body.gep-site .gfc-row:is([data-state=error],[data-state=unsupported]) :is(.gfc-state-label,.gfc-row-message){color:#f3a397}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-download[aria-disabled=true]{background:#202923;color:#8e9e92;border-color:#344138}
html[data-gep-theme=dark] body.gep-site .gfc-settings summary,html[data-gep-theme=dark] body.gep-site .gfc-settings-grid label{color:#ceddcd}
html[data-gep-theme=dark] body.gep-site .gfc-settings-grid small,html[data-gep-theme=dark] body.gep-site .gfc-setting-note,html[data-gep-theme=dark] body.gep-site .gfc-footer,html[data-gep-theme=dark] body.gep-site .gfc-support summary{color:#a3b3a5}
html[data-gep-theme=dark] body.gep-site .gfc-support>div{background:#222e24;border-color:#3c4d3e}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-support p{color:#b9c9b9}
html[data-gep-theme=dark] body.gep-site .gfc-types span{background:#222e25;color:#b2c7b4;border-color:#384c3c}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-notice{background:#322b1b;color:#e6ce9c;border-color:#635232}
html[data-gep-theme=dark] body.gep-site .gfc-app .gfc-other-converter{border-color:#58665b}
/* Editorial sections and related cards */
html[data-gep-theme=dark] .gep-format-line span:not(:nth-child(2)){background:#263329}
html[data-gep-theme=dark] .gep-alert,html[data-gep-theme=dark] .gep-related-preview-note{background:#2e291a;color:#dccb9d;border-color:#5c5031}
html[data-gep-theme=dark] .gep-tool-card .gep-card-badge{background:#322c1c;color:#e1cf9b;border-color:#5a5138}
html[data-gep-theme=dark] .gep-tool-card .gep-card-action{background:#28392c;color:#c5dfc4}
html[data-gep-theme=dark] .gep-tool-card:hover .gep-card-action,html[data-gep-theme=dark] .gep-browse:hover{background:#324a36}
html[data-gep-theme=dark] .gep-copy code{background:#243027;color:#dcf0d9}
body.gep-site [hidden]{display:none!important}
@media(max-width:900px){body.gep-site .gep-shell-top{padding-inline:28px}body.gep-site .gep-shell-bottom{padding:28px}}
@media(max-width:540px){body.gep-site .gep-shell-top{min-height:80px;padding:14px 17px;gap:14px}body.gep-site .gep-shell-controls{gap:8px}body.gep-site .gep-icon-button{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:12px}body.gep-site .gep-language-toggle{width:72px}.gep-lang-code{font-size:10px}.gep-language-panel{inset-inline-end:-54px;width:282px}body.gep-site .gep-tool .gfc-header{gap:12px;flex-direction:row;align-items:flex-end;flex-wrap:nowrap}body.gep-site .gep-tool .gfc-header .gfc-other-converter{max-width:58%}body.gep-site .gep-tool .gfc-output{width:42%;min-width:106px}body.gep-site .gep-portal-tool .gfc-output,body.gep-site .gep-portal-tool .gfc-source{width:calc(50% - 6px);min-width:0}body.gep-site .gep-shell-bottom{padding:27px 20px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}body.gep-site .gep-shell-bottom p{margin:0}.gep-lang-picker .gep-language-list{max-height:46vh}}
@media(max-width:350px){body.gep-site .gep-tool .gfc-header .gfc-other-converter{font-size:11px;padding:10px 8px;gap:6px}body.gep-site .gep-tool .gfc-other-converter svg{display:none}body.gep-site .gep-tool .gfc-output{min-width:98px}.gep-lang-code{display:none}body.gep-site .gep-language-toggle{width:46px}}
@media(prefers-reduced-motion:reduce){body.gep-site .gep-icon-button,body.gep-site .gfc-other-converter{transition:none;transform:none}}
/* Keep the requested top-right control order in every language, including RTL. */
body.gep-site .gep-shell-top,body.gep-site .gep-shell-controls{direction:ltr}
body.gep-site .gep-language-panel{inset-inline-end:auto;left:auto;right:0}
html[dir=rtl] body.gep-site .gep-language-panel{direction:rtl}
@media(max-width:540px){body.gep-site .gep-language-panel{right:-54px}}
