:root{color-scheme:dark;--bg:#0b1220;--panel:#121f32;--panel2:#172841;--text:#f4f8ff;--muted:#9caec7;--line:#293a52;--strong:#6079ff;--blue:#7590ff;--cyan:#43e4c9;--orange:#ffb579;--shadow:0 18px 44px rgba(0,0,0,.18);--glass:linear-gradient(137deg,rgba(38,56,87,.46),rgba(15,28,47,.63));font-family:Inter,Pretendard,"Apple SD Gothic Neo","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 750px 410px at 86% 0%,rgba(55,83,190,.16),transparent 78%),radial-gradient(ellipse 650px 440px at 0 300px,rgba(19,133,159,.08),transparent 70%),var(--bg);color:var(--text);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.site-header{border-bottom:1px solid var(--line);background:rgba(11,18,32,.77);backdrop-filter:blur(16px)}.header-inner{max-width:1360px;padding:17px 32px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{color:var(--text);text-decoration:none;display:flex;gap:12px;align-items:center}.brand-mark{height:44px;width:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#6f83ff,#294cdd);box-shadow:0 8px 22px rgba(69,92,235,.33);color:#fff}.brand-mark svg{width:26px;height:26px}.brand strong{display:block;font-size:22px;letter-spacing:-.6px}.brand small{display:block;letter-spacing:1.5px;font-size:9px;color:var(--muted);margin-top:2px}.header-actions{display:flex;align-items:center;gap:9px}.data-pill{font-size:11px;display:flex;align-items:center;gap:8px;background:var(--panel);padding:11px 12px;border:1px solid var(--line);border-radius:32px;color:var(--muted);max-width:240px}.signal-dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px rgba(67,228,201,.6)}.icon-button{width:39px;height:39px;border-radius:11px;border:1px solid var(--line);color:var(--muted);background:var(--panel);display:grid;place-items:center;transition:.2s}.icon-button:hover{color:var(--text);border-color:var(--strong)}.icon-button svg{width:18px;height:18px}.container{max-width:1360px;padding:34px 32px 20px;margin:auto}.top-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;padding-bottom:28px}.eyebrow,.mini-label{font-size:10px;font-weight:760;letter-spacing:1.7px;color:#8da8d4}.version{margin-left:8px;font-size:10px;background:#243858;border-radius:4px;color:#bfd2f5;padding:3px 6px;letter-spacing:0}.top-heading h1{font-size:clamp(27px,3.1vw,38px);line-height:1.3;letter-spacing:-1.3px;margin:11px 0 10px;font-weight:800}.top-heading h1 span{background:linear-gradient(110deg,#86a3ff,#48dacd);background-clip:text;-webkit-background-clip:text;color:transparent}.top-heading p,.section-header p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px 18px;font-weight:670;font-size:13px;transition:transform .15s,background .2s,border-color .2s;color:var(--text);background:var(--panel)}.button svg{width:16px;height:16px}.button:hover{transform:translateY(-1px)}.button.primary{background:linear-gradient(135deg,#6176f5,#4055d3);border-color:#6b80ff;box-shadow:0 8px 26px rgba(75,92,230,.22);color:#fff}.button.quiet{background:rgba(36,51,74,.5)}.button.slim{padding:9px 13px;font-size:12px}.plus{font-size:19px;line-height:12px}.primary-tabs{display:flex;gap:9px;border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:10px}.tab{padding:11px 18px;color:var(--muted);display:flex;gap:8px;align-items:center;border:1px solid transparent;border-radius:10px;background:transparent;font-weight:650;font-size:13px}.tab svg{width:17px;height:17px}.tab.active{color:var(--text);background:#233757;border-color:#3b5379}.tab:hover{color:var(--text)}.panel-section{animation:slideUp .25s ease}@keyframes slideUp{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:none}}.card{border:1px solid var(--line);background:var(--glass);border-radius:21px;box-shadow:var(--shadow)}.toolbar{padding:20px 23px;margin-bottom:21px}.toolbar-heading,.card-topline,.section-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.toolbar h2,.chart-card h2{font-size:17px;margin:5px 0 0;letter-spacing:-.4px}.toolbar-right{display:flex;align-items:center;gap:17px}.control-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:17px;flex-wrap:wrap}.segmented{background:#0c182a;padding:4px;border-radius:11px;display:inline-flex;gap:3px;border:1px solid #283a53;min-width:0;flex-wrap:wrap}.segmented button{background:none;border:none;color:var(--muted);padding:10px 15px;border-radius:8px;font-size:12px;font-weight:650;white-space:nowrap}.segmented button.selected{background:#2f446a;color:var(--text);box-shadow:0 2px 9px #0004}.segmented.compact button{padding:8px 12px}.small-control{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.toolbar-note{font-size:11px;color:#8fa4c3;margin:12px 0 0;line-height:1.55}.custom-dates{display:flex;flex-wrap:wrap;align-items:end;gap:12px;border-top:1px solid var(--line);padding-top:16px;margin-top:15px}.custom-dates label,.two-selects label,.export-controls label,.field-grid label,.modal label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:7px}.custom-dates input,.two-selects select,.modal input,.modal textarea,.modal select{background:#0e1a2d;border:1px solid #354762;color:var(--text);padding:11px 13px;border-radius:10px;min-width:0;outline:0;width:100%}.custom-dates input:focus,.two-selects select:focus,.modal input:focus,.modal textarea:focus,.modal select:focus{border-color:#8091fa;box-shadow:0 0 0 3px #627cff22}.custom-dates .toggle-line{flex-direction:row;align-items:center;gap:8px}.toggle-line input{width:16px}.focus-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.hero-card,.chart-card{min-height:365px;padding:24px}.tag{font-size:11px;color:#a4c2ef;border:1px solid #354c72;background:#213657;border-radius:16px;padding:6px 10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag.subtle{background:transparent;border-color:var(--line);color:var(--muted)}.two-selects{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-selects select{height:44px;max-width:100%;font-size:12px}.main-metric-label{margin-top:22px;color:#b9c9df;font-size:12px;font-weight:650}.help-button{background:transparent;border:0;color:var(--muted);font-size:15px}.hero-number{font-size:clamp(42px,4.8vw,62px);font-weight:790;letter-spacing:-2px;line-height:1.25;margin-top:7px;color:var(--text);font-variant-numeric:tabular-nums}.positive{color:var(--orange)!important}.negative{color:var(--cyan)!important}.neutral{color:var(--text)!important}.hero-subtitle{font-size:12px;color:var(--muted)}.hero-divider{height:1px;background:var(--line);margin:18px 0}.duo-metrics{display:grid;grid-template-columns:1fr 1fr;gap:13px}.duo-metrics>div{display:flex;flex-direction:column;gap:8px}.duo-metrics strong{font-size:24px;font-weight:740;font-variant-numeric:tabular-nums}.legend{font-size:11px;color:#b3c3da;display:inline-flex;align-items:center;gap:7px}.legend:before{content:"";height:7px;width:7px;background:var(--blue);border-radius:50%}.cyan-dot:before{background:var(--cyan)}.hero-footer{display:flex;justify-content:space-between;gap:7px;color:#8398b5;font-size:10px;margin-top:20px;flex-wrap:wrap}.chart-legend{display:flex;gap:18px;margin-top:25px}.chart-box{height:218px;display:grid;place-items:center;margin-top:8px}.chart-box svg{display:block;width:100%;height:100%;overflow:visible}.chart-box svg path{stroke-linecap:round;stroke-linejoin:round}.chart-placeholder,.chart-footnote{font-size:12px;color:#7e96b6;text-align:center}.chart-footnote{margin-top:9px;text-align:left}.section-header{margin:31px 2px 17px}.section-header h2{font-size:22px;margin:5px 0 6px}.count{font-size:12px;background:#34476c;color:#cce0ff;padding:3px 9px;border-radius:15px;vertical-align:middle;margin-left:7px}.comparison-table{overflow:hidden}.table-head,.result-row{display:grid;grid-template-columns:minmax(160px,2.4fr) minmax(88px,1fr) minmax(88px,1fr) minmax(100px,1fr) 30px;align-items:center;gap:15px}.table-head{padding:17px 22px;background:#1b2b44;font-size:11px;color:#a2b6d0;font-weight:710}.result-row{padding:16px 22px;border-top:1px solid var(--line);transition:background .2s}.result-row:hover{background:#26395355}.result-row .pair-name{font-size:12px;font-weight:710;white-space:normal;line-height:1.55}.result-row .base-name{color:#90a8c8;font-size:11px;margin-top:3px;line-height:1.5}.result-row .metric-cell{font-size:15px;font-weight:740;font-variant-numeric:tabular-nums}.result-row .metric-cell small{display:none}.result-row .gap-number{font-size:16px;font-weight:770}.result-row .row-nav{border:0;background:transparent;color:#95a9c6;padding:5px}.result-row .row-nav svg{width:17px;height:17px}.row-error{grid-column:1/-1;color:#ffbd98;font-size:12px}.table-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#8ea3bf;font-size:11px;margin:14px 2px 5px;line-height:1.6}.inline-link{border:0;background:transparent;color:#a4bcff;cursor:pointer;white-space:nowrap;font-size:11px;font-weight:670}.empty{text-align:center;padding:66px 20px}.empty-symbol{height:60px;width:60px;border-radius:17px;background:#273e66;color:#64d8da;display:grid;place-items:center;margin:0 auto;font-size:40px}.empty h2{margin:18px 0 6px}.empty p{color:var(--muted);font-size:13px;margin-bottom:22px}.watch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.watch-card{padding:20px 23px}.watch-card h3{font-size:17px;letter-spacing:-.4px;margin:9px 0 3px;line-height:1.4}.watch-card small{color:var(--muted)}.watch-item{margin-top:12px;padding:11px 12px;background:#1b2c45;border:1px solid #2f4059;border-radius:10px;color:#c9d7eb;font-size:12px;display:flex;gap:8px;align-items:center}.watch-item .compare-icon{color:var(--cyan)}.watch-actions{display:flex;gap:8px;margin-top:18px}.watch-actions .button{padding:9px 12px;font-size:12px}.formula-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.formula-card{padding:25px}.formula-index{font-size:11px;font-weight:760;letter-spacing:1.3px;color:#88a0cf}.formula-card h3,.methodology h3{font-size:20px;margin:14px 0 8px}.formula-card p,.methodology p{font-size:13px;color:var(--muted);line-height:1.8}.math-box{border-radius:12px;background:#edf3fc;color:#1c3555;min-height:90px;display:flex;justify-content:center;align-items:center;padding:15px;margin:21px 0 16px;overflow-x:auto;font-size:19px}.formula-notes{display:grid;gap:8px}.formula-notes>div{display:flex;gap:18px;font-size:12px;color:var(--muted)}.formula-notes b{color:#8dabf9;min-width:20px}.example{margin-top:17px;border-top:1px solid var(--line);padding-top:17px;font-size:12px;color:var(--muted)}.example strong{color:var(--text)}.methodology{padding:23px 26px;margin-top:18px}.methodology h3{font-size:16px;margin:0 0 10px}.methodology p{margin:10px 0}.doc-links{display:flex;gap:20px;margin-top:15px}.doc-links a{font-size:12px;text-decoration:none;color:#92b1ff}.footer{display:flex;justify-content:space-between;gap:10px;color:#798da9;font-size:11px;padding:34px 4px 15px;line-height:1.5}.footer strong{color:#a1b4db}.inline-error{color:#ffb889;border:1px solid #8d5639;background:#6f3c2429;border-radius:9px;padding:10px 12px;font-size:12px;margin-top:12px;line-height:1.65}.modal{padding:0;border:1px solid #38506f;border-radius:22px;background:#14233a;color:var(--text);box-shadow:0 24px 90px #0009;width:min(92vw,600px);max-height:min(90vh,920px);overflow:auto}.modal::backdrop{background:#060c18be;backdrop-filter:blur(5px)}.dialog-inner{padding:27px;display:grid;gap:17px}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start}.modal-heading h2{font-size:23px;margin:5px 0 0}.modal-heading .close{font-size:25px}.dialog-inner>p{font-size:12px;color:#a9bdd5;line-height:1.7;margin:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-help{display:block;font-size:11px;line-height:1.6}.modal textarea{resize:vertical;min-height:92px;line-height:1.6}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:5px}.export-modal{width:min(92vw,700px)}.export-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.export-preview{background:linear-gradient(140deg,#0c182d,#152b48);border:1px solid #334966;padding:18px;border-radius:16px;max-height:440px;overflow:auto;min-height:120px}.preview-heading{font-size:12px;font-weight:740;color:#fff;margin-bottom:13px}.preview-row{padding:11px 0;border-top:1px solid #405472}.preview-row:first-of-type{border-top:0}.preview-name{font-size:11px;color:#edf4ff;font-weight:730;line-height:1.5}.preview-base{font-size:10px;color:#a2bad9;margin:3px 0 9px}.preview-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.preview-metrics div{display:grid;gap:4px}.preview-metrics small{font-size:9px;color:#90a9c9}.preview-metrics strong{font-size:13px;font-variant-numeric:tabular-nums}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#253c5f;border:1px solid #6b83ac;color:#f8faff;padding:13px 22px;border-radius:12px;box-shadow:0 10px 38px #0007;font-size:12px;z-index:30;max-width:calc(100vw - 28px)}
:root[data-theme="light"]{color-scheme:light;--bg:#f2f5fb;--panel:#fff;--panel2:#f6f8fd;--text:#142438;--muted:#63758e;--line:#dce4ef;--glass:linear-gradient(140deg,#fff,#f8fbff);--shadow:0 15px 35px #223c6010}
:root[data-theme="light"] body{background:radial-gradient(ellipse 650px 350px at 90% 0,#dbe7ff,transparent),var(--bg)}
:root[data-theme="light"] .site-header{background:#ffffffda}
:root[data-theme="light"] .segmented{background:#e9eff9;border-color:#d5e1f2}
:root[data-theme="light"] .segmented button.selected{background:#fff;color:#203d63;box-shadow:0 2px 8px #335b9821}
:root[data-theme="light"] .tag{background:#eaf2ff;color:#3b5f93;border-color:#d3e1fa}
:root[data-theme="light"] .table-head{background:#eaf0f8;color:#506984}
:root[data-theme="light"] .watch-item{background:#edf3fb;border-color:#d7e3f0;color:#284467}
:root[data-theme="light"] .custom-dates input,:root[data-theme="light"] .two-selects select{background:#fff;color:#18304b;border-color:#cbd9e9}
:root[data-theme="light"] .hero-number,:root[data-theme="light"] .duo-metrics strong{color:var(--text)}
:root[data-theme="light"] .hero-subtitle,:root[data-theme="light"] .legend,:root[data-theme="light"] .main-metric-label{color:#506783}
:root[data-theme="light"] .hero-footer,:root[data-theme="light"] .chart-footnote,:root[data-theme="light"] .table-bottom{color:#72839d}
@media(max-width:1050px){.focus-grid{grid-template-columns:1fr}.chart-card,.hero-card{min-height:0}.chart-box{height:220px}.control-row{align-items:flex-start}.table-head,.result-row{grid-template-columns:minmax(150px,2fr) repeat(3,minmax(78px,1fr)) 25px;gap:8px}.result-row,.table-head{padding-left:15px;padding-right:15px}}
@media(max-width:700px){.container{padding:23px 14px 15px}.header-inner{padding:12px 15px}.brand strong{font-size:19px}.brand small{font-size:7.5px;letter-spacing:1px}.brand-mark{height:39px;width:39px}.data-pill{display:none}.top-heading{align-items:flex-start;flex-direction:column;gap:15px;padding-bottom:22px}.top-heading h1{font-size:29px}.top-heading p{font-size:12px}.heading-add{display:none}.primary-tabs{gap:2px}.tab{flex:1;justify-content:center;gap:5px;padding:10px 6px;font-size:12px}.tab svg{width:15px;height:15px}.toolbar{padding:16px}.toolbar-right{gap:9px}.toolbar-right #statusText{display:none}.control-row{flex-direction:column;align-items:stretch}.segmented{width:100%;flex-wrap:nowrap;justify-content:space-between}.segmented button{padding:10px 5px;font-size:10px;flex:1}.small-control{justify-content:space-between}.small-control .segmented{width:auto}.small-control .segmented button{padding:8px 13px}.hero-card,.chart-card{padding:18px}.two-selects{margin-top:16px}.hero-number{font-size:48px}.duo-metrics strong{font-size:21px}.section-header h2{font-size:19px}.section-header .button{padding:10px 11px;font-size:11px}.section-header p{font-size:11px}.table-head{display:none}.result-row{grid-template-columns:repeat(3,1fr) 20px;gap:10px;padding:15px}.result-row>.product-cell{grid-column:1/-1}.result-row .metric-cell small{display:block;color:var(--muted);font-size:10px;font-weight:500;margin-bottom:5px}.result-row .metric-cell{font-size:14px}.result-row .row-nav{grid-column:4;grid-row:2;align-self:center}.result-row .row-error{grid-row:3}.table-bottom{flex-direction:column;align-items:flex-start}.watch-grid,.formula-grid{grid-template-columns:1fr}.footer{flex-direction:column}.export-controls{grid-template-columns:1fr 1fr}.export-controls #exportPageLabel{grid-column:1/-1}.field-grid{grid-template-columns:1fr}.dialog-inner{padding:20px}.modal-actions .button{flex:1}.toolbar h2{font-size:16px}}
@media(max-width:390px){.two-selects{grid-template-columns:1fr}.tab{font-size:11px}.hero-card{padding:15px}.result-row .metric-cell{font-size:13px}.small-control .segmented{width:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.dividend-details{margin-top:17px;border-top:1px solid var(--line);padding-top:11px;color:var(--muted);font-size:11px}.dividend-details summary{cursor:pointer;font-size:11px;font-weight:650;color:#a8bbd8;list-style-position:inside}.dividend-details>div{margin:10px 0 0;line-height:1.8;color:var(--muted)}

/* Export selection: per benchmark comparison ON/OFF, 10 chosen pairs per image */
.export-selection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:3px}
.export-selection-head h3{font-size:15px;margin:5px 0 0;line-height:1.5}
.export-selection-head h3 small{font-size:11px;color:var(--muted);font-weight:500;margin-left:7px}
.export-selection-actions{display:flex;gap:7px;flex-shrink:0}
.export-selection-actions .button{padding:8px 10px;font-size:11px}
.export-select-list{border:1px solid var(--line);border-radius:13px;overflow-y:auto;max-height:248px;background:rgba(10,24,44,.35);display:grid;gap:0}
.export-select-row{display:flex;gap:12px;align-items:center;padding:11px 14px;cursor:pointer;min-width:0;border-bottom:1px solid var(--line);transition:background .15s}
.export-select-row:last-child{border-bottom:0}.export-select-row:hover{background:rgba(100,133,191,.1)}
.export-select-row:focus-within{outline:2px solid #8da1ff;outline-offset:-2px}
.export-select-row input{position:absolute;opacity:0;width:1px;height:1px}
.export-select-names{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.export-select-names strong{font-size:12px;color:var(--text);line-height:1.45;overflow-wrap:anywhere}
.export-select-names small{font-size:11px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.export-switch{flex-shrink:0;position:relative;width:37px;height:22px;border-radius:12px;border:1px solid #6a7890;background:#526079;transition:background .16s}
.export-switch:before{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .16s}
.export-select-row input:checked~.export-switch{background:#566cf4;border-color:#8997ff}
.export-select-row input:checked~.export-switch:before{transform:translateX(15px)}
.export-empty{padding:15px;font-size:12px;color:var(--muted)}
.export-modal .export-controls{grid-template-columns:1fr 1fr}
@media(max-width:700px){.export-selection-head{align-items:flex-start;flex-direction:column}.export-selection-actions{width:100%}.export-selection-actions .button{flex:1}.export-select-list{max-height:230px}}

/* Export-only ex-date group presets */
.export-group-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.export-group-presets .button{font-size:11px;padding:9px 10px;white-space:normal;min-width:0}
.export-group-presets .button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.export-group-heading{padding:10px 14px;background:#203450;color:#d5e5ff;display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:740}
.export-group-heading small{color:#9db6d6;font-size:10px;font-weight:500}
.export-select-names .export-select-meta{color:#91b4bd;font-size:10px}
.export-source-note{font-size:10px!important;line-height:1.65!important;color:var(--muted)!important}
@media(min-width:650px){.export-group-presets{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Compact share studio with live PNG preview and a persistent mobile save action. */
.export-modal{width:min(96vw,1120px);max-height:min(94vh,1000px)}
.export-inner{display:flex;flex-direction:column;gap:14px;padding:23px;max-height:calc(94vh - 2px);overflow:hidden}
.export-workspace{display:grid;grid-template-columns:minmax(300px,1.1fr) minmax(310px,.95fr);gap:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.export-selector,.export-output{min-width:0;display:flex;flex-direction:column;gap:12px}
.export-selector .export-select-list{align-content:start;grid-auto-rows:max-content;flex:0 1 auto;min-height:0;max-height:min(49vh,480px);overflow-y:auto}
.export-selector .export-select-row{padding:9px 12px;gap:10px;align-self:start;flex-direction:row;justify-content:flex-start;text-align:left}
.export-selector .export-select-names{flex:1;min-width:0}
.export-selector .export-select-names strong{font-size:11px;line-height:1.4}
.export-selector .export-select-names small{font-size:10px;line-height:1.3}
.export-selector .export-group-heading{position:sticky;top:0;z-index:1;background:#253954;min-height:34px}
.export-selector .export-group-presets{display:flex;flex-wrap:wrap;gap:6px}
.export-selector .export-group-presets .button{font-size:11px;padding:7px 9px}
.export-source-note{font-size:10px;line-height:1.6;margin:0;color:var(--muted)}
.export-output .export-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.export-output .export-controls select{background:#152842;border:1px solid #3a5070;color:#eef5ff;border-radius:9px;padding:11px;width:100%;min-width:0}
.export-image-frame{flex:1;min-height:220px;max-height:53vh;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #364c6b;border-radius:15px;background:radial-gradient(circle at 50% 20%,#233957,#0b172a)}
.export-image-frame img{display:block;max-width:100%;max-height:53vh;object-fit:contain;box-shadow:0 9px 25px #0004}
.export-image-frame img[hidden],.export-image-frame div[hidden]{display:none}
.export-preview-placeholder{text-align:center;padding:24px;color:#a9bcd6;font-size:12px}
.export-preview-summary{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.export-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-top:14px;flex-shrink:0}
.export-feedback{color:var(--muted);font-size:11px;line-height:1.5;min-width:0}
.export-modal-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.export-modal-actions a{text-decoration:none;white-space:nowrap}
.export-modal-actions a[aria-disabled=true]{opacity:.42;pointer-events:none}
.export-modal-actions button{white-space:nowrap}
.export-modal-actions button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:760px){
 .export-modal{width:min(97vw,680px);max-height:96vh}
 .export-inner{padding:15px;gap:11px;max-height:calc(96vh - 2px)}
 .export-workspace{grid-template-columns:1fr;gap:14px;min-height:0;overflow-y:auto}
 .export-selector .export-select-list{max-height:26vh;min-height:0}
 .export-image-frame{max-height:30vh;min-height:150px}
 .export-image-frame img{max-height:30vh}
 .export-modal-footer{align-items:stretch;flex-direction:column;background:var(--panel);box-shadow:0 -8px 20px rgba(3,10,20,.12)}
 .export-modal-actions{display:grid;grid-template-columns:1fr 1fr}
 .export-modal-actions .button{justify-content:center;padding:11px 8px;font-size:12px}
}

/* In-app PNG viewer: no data: URL navigation or new-tab popup. */
.export-viewer-modal{width:min(98vw,1250px);max-height:96vh;overflow:hidden;background:#101c30;}
.export-viewer-header{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid #344761;color:#f3f8ff;flex-wrap:wrap}
.export-viewer-header strong{font-size:14px}.export-viewer-header span{font-size:11px;color:#aebfd6;flex:1}
.export-viewer-header .close{margin-left:auto}
.export-viewer-body{display:flex;justify-content:center;align-items:start;overflow:auto;max-height:calc(96vh - 75px);background:#0a1322;padding:14px}
.export-viewer-body img{display:block;max-width:100%;height:auto;object-fit:contain}
.export-modal-actions button:disabled{opacity:.42;cursor:not-allowed}
