:root{--ink:#1e242b;--muted:#7a818a;--line:#e5e6e3;--paper:#fff;--bg:#f7f7f5;--blue:#435df5;--blue-soft:#eef0ff;--shadow:0 10px 30px rgba(30,36,43,.07);--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:var(--font-sans);color:var(--ink);background:var(--bg)}button,input,select{font:inherit}button{color:inherit}.topbar{height:68px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:18px;font-weight:700;letter-spacing:-.04em}.brand em{font:600 10px "DM Sans";letter-spacing:.02em;color:#64748b;background:#edf0f3;border-radius:20px;padding:3px 7px}.brand-mark{width:27px;height:27px;background:var(--ink);border-radius:7px;display:flex;align-items:flex-end;justify-content:center;gap:2.5px;padding:6px}.brand-mark i{width:3.5px;border-radius:2px;background:#fff}.brand-mark i:nth-child(1){height:7px}.brand-mark i:nth-child(2){height:14px;background:#9babff}.brand-mark i:nth-child(3){height:10px}.top-actions{display:flex;align-items:center;gap:10px}.save-state{font-size:12px;color:#7b838a;margin-right:8px;display:flex;align-items:center}.save-state>span:first-child{display:inline-block;width:6px;height:6px;background:#38b77c;border-radius:50%;margin-right:5px}.language-picker{height:34px;display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 8px;cursor:pointer;transition:.18s}.language-picker:hover{border-color:#c7c9c8}.language-picker svg{width:15px;height:15px;fill:none;stroke:#747b82;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.language-picker .chevron{width:13px}.language-picker select{appearance:none;border:0;outline:0;background:transparent;color:#535a61;font:600 11px "DM Sans",sans-serif;cursor:pointer;padding:0}.icon-button,.rail-toggle{border:1px solid var(--line);background:#fff;cursor:pointer}.icon-button{width:34px;height:34px;border-radius:50%;font-weight:700;color:#707780}.profile-button{display:flex;align-items:center;gap:9px;background:transparent;border:0;border-left:1px solid var(--line);padding-left:16px;cursor:pointer;text-align:left}.avatar{width:34px;height:34px;border-radius:50%;background:#e8e8e3;display:grid;place-items:center;font:700 13px "DM Sans"}.profile-copy{display:flex;flex-direction:column}.profile-copy b{font-size:12px}.profile-copy small{font-size:10px;color:#8a9097;margin-top:1px}
.workspace{min-height:calc(100vh - 68px);display:grid;grid-template-columns:184px minmax(310px,390px) minmax(510px,1fr) 110px;max-width:1580px;margin:auto}.chart-rail,.data-panel,.preview-panel{border-right:1px solid var(--line)}.chart-rail{padding:24px 14px;background:#fafaf8;transition:.25s}.rail-title{display:flex;align-items:center;justify-content:space-between;padding:0 6px 17px;font-size:12px;font-weight:700;color:#6c737b}.rail-toggle{width:27px;height:27px;border-radius:7px;display:grid;place-items:center}.rail-toggle svg{width:16px;fill:none;stroke:currentColor;stroke-width:2}.chart-list{display:flex;flex-direction:column;gap:7px}.chart-type{border:1px solid transparent;background:transparent;border-radius:10px;padding:11px 10px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer;transition:.18s}.chart-type:hover{background:#fff;border-color:var(--line)}.chart-type.active{background:#fff;border-color:#d9dce4;box-shadow:0 4px 12px rgba(30,36,43,.05)}.chart-icon{width:32px;height:30px;flex:0 0 auto;display:flex;align-items:flex-end;justify-content:center;gap:3px;color:#9ca2aa}.active .chart-icon{color:var(--blue)}.chart-icon.bars i{width:5px;background:currentColor;border-radius:2px 2px 0 0}.chart-icon.bars i:nth-child(1){height:11px}.chart-icon.bars i:nth-child(2){height:21px}.chart-icon.bars i:nth-child(3){height:16px}.chart-icon.line svg{width:29px;fill:none;stroke:currentColor;stroke-width:2}.chart-icon.line circle{fill:currentColor;stroke:none}.chart-icon.donut{width:25px;height:25px;border:6px solid currentColor;border-right-color:#d5d8dc;border-radius:50%;margin:2px 3px}.type-label{display:flex;flex-direction:column}.type-label b{font-size:12px}.type-label small{font-size:10px;color:#989da3;margin-top:3px}.rail-tip{margin:25px 4px 0;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:8px;align-items:flex-start}.rail-tip>span{font:600 10px "DM Sans";border:1px solid #d8dadb;border-radius:4px;padding:3px 5px;color:#7b8188}.rail-tip p{font-size:10px;color:#969ba0;line-height:1.6;margin:0}.rail-tip b{display:block;color:#686e74}
.data-panel{background:#fff;padding:26px 26px 40px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.section-heading>div{display:flex;align-items:center;gap:10px}.section-heading h1,.section-heading h2{font-size:16px;margin:0;letter-spacing:-.03em}.step{display:grid;place-items:center;width:23px;height:23px;background:var(--ink);color:#fff;border-radius:6px;font:600 11px "DM Sans"}.text-button{background:none;border:0;color:#8a9096;font-size:11px;cursor:pointer;padding:5px}.text-button:hover{color:var(--blue)}.field-label{display:block;font-size:11px;font-weight:600;color:#656c74;margin-bottom:8px}.title-input,.unit-row input{width:100%;border:1px solid #dcdeda;border-radius:8px;background:#fff;outline:none;transition:.18s}.title-input{height:42px;padding:0 12px;font-size:13px;font-weight:500;margin-bottom:21px}.title-input:focus,.unit-row input:focus,td input:focus{border-color:#8290f8;box-shadow:0 0 0 3px rgba(67,93,245,.09)}.table-wrap{border:1px solid #dedfdd;border-radius:8px 8px 0 0;overflow:hidden}table{width:100%;border-collapse:collapse;table-layout:fixed}th{height:34px;background:#f5f5f2;color:#7a8086;text-align:left;font-size:10px;font-weight:600;padding:0 11px;border-bottom:1px solid #e0e1de}th:nth-child(2){width:34%}th:last-child{width:34px}td{height:39px;border-bottom:1px solid #ebebe8;padding:0}tr:last-child td{border-bottom:0}td+td{border-left:1px solid #ebebe8}td input{border:1px solid transparent;width:100%;height:38px;padding:0 10px;outline:0;font-size:12px;background:transparent}td.value-cell{position:relative}td.value-cell input{padding-right:35px;text-align:right;font-family:"DM Sans"}td.value-cell span{position:absolute;right:9px;top:11px;font-size:10px;color:#aaa}.delete-row{display:grid;place-items:center;width:100%;height:38px;border:0;background:transparent;color:#b0b4b7;cursor:pointer;font-size:16px}.delete-row:hover{color:#e25757;background:#fff7f7}.add-row{width:100%;height:36px;border:1px solid #dedfdd;border-top:0;border-radius:0 0 8px 8px;background:#fafaf8;color:#777d84;font-size:11px;cursor:pointer}.add-row:hover{color:var(--blue);background:#f7f8ff}.add-row span{font-size:15px;vertical-align:-1px}.divider{height:1px;background:#eee;margin:26px 0 21px}.options-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.options-heading h2{font-size:13px;margin:0}.options-heading span{font-size:9px;color:#999fa4;background:#f2f2ef;border-radius:20px;padding:3px 7px}.unit-row{display:flex;align-items:center;gap:14px}.unit-row input{height:38px;padding:0 11px;font-size:12px;max-width:120px}.switch-label{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:11px;color:#6e747a;cursor:pointer}.switch-label input{display:none}.switch{width:32px;height:18px;border-radius:20px;background:#d5d7d8;position:relative;transition:.2s}.switch:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;left:2px;top:2px;box-shadow:0 1px 2px #aaa;transition:.2s}.switch-label input:checked+.switch{background:var(--blue)}.switch-label input:checked+.switch:after{transform:translateX(14px)}.palette-label{margin-top:18px}.palette-list{display:flex;gap:8px}.palette{width:39px;height:30px;border-radius:7px;border:1px solid transparent;background:#f5f5f2;display:flex;align-items:center;justify-content:center;gap:2px;cursor:pointer}.palette.active{border-color:#707ff6;background:#f5f6ff;box-shadow:0 0 0 2px #e1e4ff}.palette i{width:6px;height:15px;border-radius:3px}.palette i:nth-child(2){height:20px}.palette[data-palette=blue] i:nth-child(1){background:#435df5}.palette[data-palette=blue] i:nth-child(2){background:#7486f8}.palette[data-palette=blue] i:nth-child(3){background:#b4befc}.palette[data-palette=green] i:nth-child(1){background:#198f70}.palette[data-palette=green] i:nth-child(2){background:#50b495}.palette[data-palette=green] i:nth-child(3){background:#a6ddcb}.palette[data-palette=warm] i:nth-child(1){background:#ee7256}.palette[data-palette=warm] i:nth-child(2){background:#f5a451}.palette[data-palette=warm] i:nth-child(3){background:#f7d394}.palette[data-palette=mono] i:nth-child(1){background:#31363b}.palette[data-palette=mono] i:nth-child(2){background:#777e84}.palette[data-palette=mono] i:nth-child(3){background:#c3c6c8}
.preview-panel{padding:26px clamp(24px,3vw,46px) 38px;background:#f7f7f5;min-width:0}.preview-heading{margin-bottom:20px}.live-badge{font-size:9px;color:#677078;background:#fff;border:1px solid #e1e2df;border-radius:20px;padding:4px 8px}.live-badge i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#39b77c;margin-right:3px}.chart-card{background:#fff;border:1px solid #e1e2df;border-radius:12px;box-shadow:var(--shadow);padding:25px 27px 15px;aspect-ratio:1.45/1;min-height:390px;display:flex;flex-direction:column}.chart-meta{display:flex;justify-content:space-between}.chart-meta h2{margin:0 0 5px;font-size:17px;letter-spacing:-.035em}.chart-meta p{margin:0;color:#979da3;font-size:10px}.canvas-wrap{position:relative;flex:1;min-height:0;margin-top:15px}.canvas-wrap canvas{position:absolute;inset:0;width:100%;height:100%}.chart-footer{border-top:1px solid #efefed;padding-top:10px;display:flex;justify-content:space-between;font:500 8px "DM Sans";color:#b0b4b7;letter-spacing:.02em}.export-row{display:grid;grid-template-columns:1.7fr .8fr .8fr;gap:8px;margin-top:16px}.primary-button,.action-button{height:43px;border-radius:8px;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.primary-button{border:1px solid var(--blue);background:var(--blue);color:#fff;box-shadow:0 4px 12px rgba(67,93,245,.2)}.primary-button:hover{background:#344ce8}.action-button{border:1px solid #dfe0de;background:#fff;color:#5f666d}.action-button:hover{border-color:#bfc3c5;background:#fafafa}.primary-button svg,.action-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.privacy-note{text-align:center;color:#999ea3;font-size:9px;margin:13px 0 0}.privacy-note svg{width:11px;height:11px;vertical-align:-2px;fill:none;stroke:currentColor;stroke-width:2}.ad-space{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#bbb;background:#f9f9f7;padding:15px}.ad-space span{font:600 8px "DM Sans";border:1px solid #d4d5d3;border-radius:3px;padding:2px 5px}.ad-space p{font-size:10px;margin:9px 0 3px}.ad-space small{font-size:8px;line-height:1.5;color:#c3c4c1}
.workspace.rail-collapsed{grid-template-columns:58px minmax(310px,390px) minmax(510px,1fr) 110px}.workspace.rail-collapsed .chart-rail{padding-left:9px;padding-right:9px}.workspace.rail-collapsed .rail-title>span,.workspace.rail-collapsed .type-label,.workspace.rail-collapsed .rail-tip{display:none}.workspace.rail-collapsed .rail-title{justify-content:center}.workspace.rail-collapsed .rail-toggle svg{transform:rotate(180deg)}.workspace.rail-collapsed .chart-type{justify-content:center;padding:10px 2px}
.toast{position:fixed;z-index:50;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#242a30;color:#fff;border-radius:9px;padding:10px 15px;display:flex;align-items:center;gap:9px;box-shadow:0 8px 25px rgba(0,0,0,.2);transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast span{color:#77dfa9}.toast p{font-size:12px;margin:0}.modal-backdrop{position:fixed;inset:0;background:rgba(20,24,28,.38);z-index:60;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}.modal-backdrop[hidden]{display:none}.modal{position:relative;background:#fff;border-radius:14px;width:min(390px,100%);padding:34px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.2)}.modal-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:24px;color:#9da1a4;cursor:pointer}.modal-icon{width:40px;height:40px;background:var(--blue-soft);color:var(--blue);border-radius:10px;display:grid;place-items:center;margin:0 auto 15px;font-size:20px}.modal h2{font-size:18px;margin:0 0 10px}.modal p{font-size:12px;color:#777e84;line-height:1.7;margin:0 0 22px}.modal .primary-button{width:100%}
.import-backdrop{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:rgba(20,24,28,.42);backdrop-filter:blur(4px)}.import-backdrop[hidden]{display:none}.import-dialog{position:relative;width:min(680px,100%);max-height:min(820px,92vh);padding:24px;border-radius:16px;background:#fff;box-shadow:0 32px 90px rgba(0,0,0,.24);overflow:auto}.import-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#92989d;font-size:24px;cursor:pointer}.import-dialog>header{display:flex;align-items:center;gap:12px;padding-right:32px}.import-dialog>header>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-size:18px}.import-dialog h2{margin:0;font-size:18px}.import-dialog header p{margin:3px 0 0;color:#7b838a;font-size:11px}.import-tabs{margin-top:20px;padding:3px;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border:1px solid #e0e2df;border-radius:9px;background:#f0f1ef}.import-tabs button{height:34px;border:0;border-radius:6px;background:transparent;color:#727a81;font-size:11px;font-weight:650;cursor:pointer}.import-tabs button.active{background:#fff;color:#30373d;box-shadow:0 1px 4px rgba(30,36,43,.1)}.import-source{display:none;margin-top:14px}.import-source.active{display:block}.import-source textarea,.import-source input{width:100%;border:1px solid #d9dcd9;border-radius:9px;background:#fff;color:#30373d;font:12px/1.55 var(--font-sans);outline:0}.import-source textarea{min-height:150px;padding:12px;resize:vertical}.import-source input{height:42px;padding:0 12px}.import-source textarea:focus,.import-source input:focus{border-color:#8290f8;box-shadow:0 0 0 3px rgba(67,93,245,.09)}.import-load,.import-file-button{width:100%;height:40px;margin-top:9px;border:1px solid #d8dcf5;border-radius:8px;background:#f7f8ff;color:#4658ca;font-size:11px;font-weight:700;cursor:pointer}.import-load:hover,.import-file-button:hover{background:#eef0ff}.import-source>small{display:block;margin-top:8px;color:#858d93;font-size:10px;text-align:center}.import-error{margin-top:12px;padding:10px;border:1px solid #f0d3cf;border-radius:8px;background:#fff6f5;color:#b44a42;font-size:11px}.import-mapping{margin-top:18px;padding-top:18px;border-top:1px solid #e7e8e5}.import-mapping-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.import-mapping-title>div{display:flex;flex-direction:column}.import-mapping-title b{font-size:13px}.import-mapping-title small{margin-top:2px;color:#7d858c;font-size:10px}.import-mapping-title>span{padding:3px 7px;border-radius:12px;background:#eef0ed;color:#697178;font-size:9px;font-weight:700}#importMappings{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#importMappings label{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:8px;padding:8px;border:1px solid #e4e6e3;border-radius:8px}#importMappings label span{font-size:10px;font-weight:650;color:#596168}#importMappings select{min-width:0;height:32px;border:1px solid #d9dcda;border-radius:6px;background:#fff;color:#414a51;font-size:10px}.import-preview{margin-top:12px;max-height:180px;border:1px solid #dfe1de;border-radius:8px;overflow:auto}.import-preview table{min-width:100%;table-layout:auto}.import-preview th,.import-preview td{height:32px;padding:0 9px;border-right:1px solid #e8e9e7;border-bottom:1px solid #e8e9e7;white-space:nowrap;font-size:10px}.import-preview th{background:#f5f6f4;color:#596168}.import-preview td{color:#555d64}.import-mapping .primary-button{width:100%;margin-top:12px}
@media(max-width:1100px){.workspace,.workspace.rail-collapsed{grid-template-columns:64px minmax(280px,340px) minmax(430px,1fr)}.chart-rail{padding:22px 9px}.rail-title>span,.type-label,.rail-tip{display:none}.rail-title{justify-content:center}.chart-type{justify-content:center;padding:10px 3px}.ad-space{display:none}.chart-card{min-height:360px}.preview-panel{padding-left:24px;padding-right:24px}}
@media(max-width:760px){.topbar{height:58px;padding:0 15px}.brand{font-size:16px}.brand em,.save-state,.icon-button,.profile-copy{display:none}.language-picker{margin-left:auto}.profile-button{border:0;padding:0}.avatar{width:32px;height:32px}.workspace,.workspace.rail-collapsed{display:flex;flex-direction:column;min-height:0}.chart-rail{order:0;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}.rail-title{display:none}.chart-list{flex-direction:row;gap:6px}.chart-type{min-width:max-content;padding:8px 12px;gap:7px}.type-label{display:block!important}.type-label small{display:none}.chart-icon{width:25px;height:23px}.chart-icon.donut{width:20px;height:20px;border-width:5px}.data-panel{order:1;border-right:0;padding:21px 18px 26px}.preview-panel{order:2;border-right:0;border-top:1px solid var(--line);padding:22px 15px 30px}.chart-card{aspect-ratio:auto;min-height:365px;padding:20px 17px 13px}.export-row{grid-template-columns:1.4fr .7fr .7fr}.ad-space{order:3;display:flex;min-height:75px;border-top:1px solid var(--line)}.section-heading{margin-bottom:20px}.workspace.rail-collapsed .chart-rail{display:none}}
@media(max-width:390px){.export-row{grid-template-columns:1fr 1fr}.primary-button{grid-column:1/-1}.chart-card{min-height:340px}.chart-meta h2{font-size:15px}}

/* Tool library navigation */
.workspace{grid-template-columns:252px minmax(320px,390px) minmax(510px,1fr) 96px}
.chart-rail{height:calc(100vh - 68px);position:sticky;top:68px;display:flex;flex-direction:column;padding:20px 12px 14px;overflow:hidden}
.tool-search{height:38px;border:1px solid #dedfdd;border-radius:8px;background:#fff;display:flex;align-items:center;gap:7px;padding:0 10px;margin:0 3px 13px;flex:0 0 auto}
.tool-search svg{width:15px;fill:none;stroke:#969ca2;stroke-width:1.8}
.tool-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:11px;color:#4e555c}
.tool-search input::placeholder{color:#a5aaae}
.chart-list{overflow-y:auto;padding:0 2px 14px;scrollbar-width:thin;scrollbar-color:#d8dad8 transparent}
.tool-category{margin:2px 0 8px}
.category-toggle{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;padding:8px 7px 6px;color:#858b91;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;cursor:pointer}
.category-toggle span:last-child{font-size:11px;transition:.2s}
.tool-category.closed .category-toggle span:last-child{transform:rotate(-90deg)}
.tool-category.closed .category-items{display:none}
.category-items{display:flex;flex-direction:column;gap:2px}
.chart-tool{width:100%;text-decoration:none;color:inherit;min-height:38px;border:1px solid transparent;border-radius:8px;background:transparent;display:flex;align-items:center;gap:9px;padding:7px 8px;cursor:pointer;text-align:left;transition:.15s}
.chart-tool:hover{background:#fff;border-color:#e5e6e3}.chart-tool.active{background:#fff;border-color:#d7dae7;box-shadow:0 3px 10px rgba(30,36,43,.05);color:var(--blue)}
.tool-glyph{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#f0f1ef;color:#747b82;flex:0 0 auto;transition:background .15s,color .15s,transform .15s}.chart-tool:hover .tool-glyph{background:#e9eae7;color:#555d64;transform:translateY(-1px)}.chart-tool.active .tool-glyph{background:var(--blue-soft);color:var(--blue)}
.tool-icon-svg{display:block;width:21px;height:21px;overflow:visible}.tool-icon-svg *{vector-effect:non-scaling-stroke}.tool-icon-svg .main,.tool-icon-svg .axis,.tool-icon-svg .outline,.tool-icon-svg .soft-stroke{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.tool-icon-svg .main{stroke-width:1.55}.tool-icon-svg .axis{stroke-width:1;opacity:.38}.tool-icon-svg .outline{stroke-width:1.1;opacity:.72}.tool-icon-svg .soft-stroke{stroke-width:1.5;opacity:.25}.tool-icon-svg .wide{stroke-width:3}.tool-icon-svg .fill,.tool-icon-svg .point{fill:currentColor;stroke:none}.tool-icon-svg .soft{opacity:.45}.tool-icon-svg .faint{opacity:.2}.tool-icon-svg .secondary{opacity:.48}
.chart-tool-copy{display:flex;flex-direction:column;min-width:0}.chart-tool-copy b{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-tool-copy small{font-size:8px;color:#9da2a6;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-tool.active .chart-tool-copy small{color:#7f89c9}
.tool-badge{margin-left:auto;font:700 7px "DM Sans";color:#8d949a;background:#eeeeeb;border-radius:10px;padding:2px 5px}.chart-tool.active .tool-badge{color:#5366df;background:#e9ecff}
.rail-count{border-top:1px solid var(--line);padding:12px 6px 0;color:#9aa0a5;font-size:9px;flex:0 0 auto}.rail-count b{font:700 11px "DM Sans";color:#5e656b;margin-right:3px}
.mobile-tool-picker{display:none}
.selected-tool{display:flex;align-items:center;gap:10px;padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #ededeb}.selected-tool-icon{width:38px;height:38px;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:0 0 auto}.selected-tool-icon .tool-icon-svg{width:25px;height:25px}.selected-tool>div{display:flex;flex-direction:column;min-width:0}.selected-tool h1{font-size:14px;line-height:1.25;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-tool small{font-size:9px;color:#969ca1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.data-hint{font-size:9px;color:#989da2;line-height:1.5;margin:7px 2px 8px}
.data-status{display:flex;align-items:center;justify-content:space-between;gap:10px}.data-status .data-hint{margin-right:auto}.data-status>span{font:600 9px "DM Sans";color:#93999e;white-space:nowrap}.data-status>span.at-limit{color:#db6658}
.add-row:disabled{cursor:not-allowed;color:#b9bcbc;background:#f4f4f2}.add-row:disabled:hover{color:#b9bcbc;background:#f4f4f2}
.delete-row:disabled{cursor:not-allowed;color:#d2d4d4}.delete-row:disabled:hover{color:#d2d4d4;background:transparent}
.quick-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.setting-field{min-width:0}.setting-field.wide{grid-column:1/-1}.setting-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:600;color:#686f76;margin-bottom:7px}.setting-label output{font:600 9px "DM Sans";color:#92989d}.setting-input,.setting-select{width:100%;height:36px;border:1px solid #dcdeda;border-radius:7px;background:#fff;padding:0 10px;outline:0;font-size:11px;color:#555d64}.setting-input:focus,.setting-select:focus{border-color:#8290f8;box-shadow:0 0 0 3px rgba(67,93,245,.09)}.setting-range{width:100%;height:4px;accent-color:var(--blue);cursor:pointer}.setting-toggle{height:36px;border:1px solid #dedfdd;border-radius:7px;background:#fafaf8;display:flex;align-items:center;justify-content:space-between;padding:0 9px;font-size:10px;color:#686f76;cursor:pointer}.setting-toggle input{display:none}.setting-toggle .switch{flex:0 0 auto}.setting-toggle input:checked+.switch{background:var(--blue)}.setting-toggle input:checked+.switch:after{transform:translateX(14px)}.setting-palette{display:flex;flex-wrap:wrap;gap:6px}.setting-palette button{flex:1 1 64px;height:30px;border:1px solid transparent;border-radius:7px;background:#f5f5f2;cursor:pointer;display:flex;gap:2px;align-items:center;justify-content:center}.setting-palette button.active{border-color:#7180f5;box-shadow:0 0 0 2px #e2e5ff}.setting-palette i{width:6px;height:14px;border-radius:3px}.setting-palette i:nth-child(2){height:19px}.setting-palette i:nth-child(4){height:11px}.input-error{background:#fff7f6!important;box-shadow:inset 0 0 0 1px #ec8b7e!important}.table-wrap input[type=date]{font-size:10px;text-align:left;padding-right:4px}
.setting-palette [data-palette-setting=blue] i:nth-child(1){background:#435df5}.setting-palette [data-palette-setting=blue] i:nth-child(2){background:#6f80f7}.setting-palette [data-palette-setting=blue] i:nth-child(3){background:#98a5fa}.setting-palette [data-palette-setting=blue] i:nth-child(4){background:#bac3fc}.setting-palette [data-palette-setting=green] i:nth-child(1){background:#168a6b}.setting-palette [data-palette-setting=green] i:nth-child(2){background:#3aaa87}.setting-palette [data-palette-setting=green] i:nth-child(3){background:#68c4a5}.setting-palette [data-palette-setting=green] i:nth-child(4){background:#9ad9c5}.setting-palette [data-palette-setting=warm] i:nth-child(1){background:#e95f4a}.setting-palette [data-palette-setting=warm] i:nth-child(2){background:#ef8354}.setting-palette [data-palette-setting=warm] i:nth-child(3){background:#f3a45f}.setting-palette [data-palette-setting=warm] i:nth-child(4){background:#f6c47a}.setting-palette [data-palette-setting=mono] i:nth-child(1){background:#30363b}.setting-palette [data-palette-setting=mono] i:nth-child(2){background:#596067}.setting-palette [data-palette-setting=mono] i:nth-child(3){background:#7e858b}.setting-palette [data-palette-setting=mono] i:nth-child(4){background:#a2a7ab}.setting-palette [data-palette-setting=vivid] i:nth-child(1){background:#435df5}.setting-palette [data-palette-setting=vivid] i:nth-child(2){background:#e95f4a}.setting-palette [data-palette-setting=vivid] i:nth-child(3){background:#16a37a}.setting-palette [data-palette-setting=vivid] i:nth-child(4){background:#f2b84b}.setting-palette [data-palette-setting=pastel] i:nth-child(1){background:#8da2fb}.setting-palette [data-palette-setting=pastel] i:nth-child(2){background:#ff9d8a}.setting-palette [data-palette-setting=pastel] i:nth-child(3){background:#7bd8b8}.setting-palette [data-palette-setting=pastel] i:nth-child(4){background:#ffd783}.setting-palette [data-palette-setting=colorblind] i:nth-child(1){background:#0072b2}.setting-palette [data-palette-setting=colorblind] i:nth-child(2){background:#e69f00}.setting-palette [data-palette-setting=colorblind] i:nth-child(3){background:#009e73}.setting-palette [data-palette-setting=colorblind] i:nth-child(4){background:#cc79a7}.setting-palette [data-palette-setting=earth] i:nth-child(1){background:#2f6f67}.setting-palette [data-palette-setting=earth] i:nth-child(2){background:#b55d42}.setting-palette [data-palette-setting=earth] i:nth-child(3){background:#d3a44c}.setting-palette [data-palette-setting=earth] i:nth-child(4){background:#7b6d56}
.table-wrap{overflow:auto}.table-wrap table:has(th:nth-child(5)){min-width:470px}.table-wrap table:has(th:nth-child(4)){min-width:390px}.table-wrap th{white-space:nowrap}.table-wrap th:not(:first-child):not(:last-child){width:auto}.table-wrap td.value-cell{min-width:84px}
.data-panel{overflow-y:auto;max-height:calc(100vh - 68px)}
.workspace.rail-collapsed{grid-template-columns:58px minmax(320px,390px) minmax(510px,1fr) 96px}.workspace.rail-collapsed .tool-search,.workspace.rail-collapsed .rail-count,.workspace.rail-collapsed .category-toggle,.workspace.rail-collapsed .chart-tool-copy,.workspace.rail-collapsed .tool-badge{display:none}.workspace.rail-collapsed .chart-list{overflow:visible}.workspace.rail-collapsed .tool-category{margin:0}.workspace.rail-collapsed .category-items{display:flex}.workspace.rail-collapsed .chart-tool{justify-content:center;padding:6px 2px}.workspace.rail-collapsed .tool-glyph{width:28px;height:28px}
@media(max-width:1180px){.workspace,.workspace.rail-collapsed{grid-template-columns:64px minmax(290px,350px) minmax(430px,1fr)}.chart-rail{padding-left:8px;padding-right:8px}.chart-rail .tool-search,.chart-rail .rail-count,.chart-rail .category-toggle,.chart-rail .chart-tool-copy,.chart-rail .tool-badge{display:none}.chart-rail .chart-list{overflow-y:auto}.chart-rail .tool-category{margin:0}.chart-rail .category-items{display:flex}.chart-rail .chart-tool{justify-content:center;padding:6px 2px}.ad-space{display:none}}
@media(max-width:760px){.workspace,.workspace.rail-collapsed{display:flex}.chart-rail{position:sticky;top:58px;height:auto;max-height:52px;padding:7px 12px;overflow:visible;z-index:15}.chart-rail .rail-title,.chart-rail .tool-search,.chart-rail .rail-count{display:none}.mobile-tool-picker{display:flex;width:100%;height:38px;align-items:center;justify-content:space-between;border:1px solid #dcddda;background:#fff;border-radius:8px;padding:0 12px;font-size:11px;font-weight:600}.chart-rail .chart-list{display:none;position:absolute;left:10px;right:10px;top:48px;max-height:65vh;background:#fafaf8;border:1px solid #dcddda;border-radius:10px;padding:10px;box-shadow:0 16px 35px rgba(20,25,30,.16)}.chart-rail.mobile-open .chart-list{display:block}.chart-rail .category-toggle{display:flex}.chart-rail .chart-tool-copy,.chart-rail .tool-badge{display:flex}.chart-rail .chart-tool{justify-content:flex-start;padding:7px 8px}.data-panel{max-height:none}.selected-tool{margin-bottom:16px}.chart-card{min-height:390px}}

/* Readability and interaction polish */
body{font-size:13px}.chart-tool{min-height:44px;padding:8px}.tool-glyph{width:29px;height:29px;font-size:12px}.chart-tool-copy b{font-size:12px;line-height:1.25;letter-spacing:-.015em}.chart-tool-copy small{font-size:10px;line-height:1.3;color:#7d848b}.chart-tool.active .chart-tool-copy small{color:#6874b7}.category-toggle{font-size:10px;color:#6f767d}.field-label,.setting-label{font-size:12px;color:#596168}.title-input,td input{font-size:13px}.data-hint,.selected-tool small{font-size:10px;color:#747c83}.privacy-note{font-size:10px;color:#737b82}.options-heading h2{font-size:14px}.chart-meta p{font-size:11px;color:#747c83}.chart-footer{font-size:9px;color:#858c92}
.selected-tool{min-height:52px;padding-bottom:18px;margin-bottom:19px}.selected-tool-icon{width:38px;height:38px}.selected-tool h1{font-size:14px}.selected-tool>div{flex:1}.selected-tool>.text-button{flex:0 0 auto;margin-left:auto;border:1px solid #e1e2df;border-radius:7px;padding:7px 9px;background:#fafaf8;color:#747b82}.selected-tool>.text-button:hover{border-color:#cfd2d0;background:#fff;color:var(--blue)}
.preview-panel{position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;scrollbar-width:thin}.data-panel{scrollbar-width:thin}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(67,93,245,.24);outline-offset:2px}.chart-tool:focus-visible,.category-toggle:focus-visible{outline-offset:-1px}.text-button:focus-visible{outline-offset:1px}
.mobile-view-tabs{display:none}
@media(max-width:760px){.chart-tool{min-height:46px}.chart-tool-copy b{white-space:normal;overflow:visible;text-overflow:clip}.chart-tool-copy small{font-size:10px}.mobile-view-tabs{order:1;display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:9px 14px 4px;padding:3px;border:1px solid #e0e1de;border-radius:9px;background:#eeefec}.mobile-view-tabs button{height:34px;border:0;border-radius:6px;background:transparent;color:#787f85;font-size:11px;font-weight:600}.mobile-view-tabs button.active{background:#fff;color:#30363c;box-shadow:0 2px 6px rgba(30,36,43,.08)}.data-panel{order:2}.preview-panel{order:3;position:static;top:auto;height:auto;overflow:visible}.ad-space{order:4}.workspace:not(.mobile-preview) .preview-panel{display:none}.workspace.mobile-preview .data-panel{display:none}.workspace.mobile-preview .preview-panel{display:block}.workspace.mobile-preview .export-row{position:sticky;bottom:8px;z-index:12;padding:8px;background:rgba(247,247,245,.94);border:1px solid #e1e2df;border-radius:10px;backdrop-filter:blur(10px)}.selected-tool h1{font-size:13px}}

.legal-links{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 14px;margin-top:9px}.legal-links a{color:#8b9197;font-size:9px;text-decoration:none}.legal-links a:hover{color:var(--blue);text-decoration:underline}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.modal-actions .primary-button{width:100%}.secondary-danger{height:43px;border:1px solid #ead8d5;border-radius:8px;background:#fff;color:#b25349;font-size:11px;font-weight:600;cursor:pointer}.secondary-danger:hover{background:#fff7f6;border-color:#ddb9b4}.secondary-danger:focus-visible,.legal-links a:focus-visible{outline:3px solid rgba(67,93,245,.22);outline-offset:2px}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid rgba(67,93,245,.25);outline-offset:2px}.chart-tool-copy small,.data-hint,.data-status>span{color:#6f767d}.privacy-note{color:#70777e;font-size:10px}.legal-links a{color:#687078;font-size:10px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Spreadsheet-style data editor */
.table-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 1px 9px}.table-toolbar h2{margin:0;color:#343b42;font-size:12px;line-height:1.2}.table-toolbar p{margin:4px 0 0;color:#7b8289;font-size:9px;line-height:1.35}.paste-shortcut{display:flex;align-items:center;gap:3px;color:#7d848a;font-size:9px;white-space:nowrap}.paste-shortcut kbd{min-width:22px;height:21px;padding:0 5px;display:grid;place-items:center;border:1px solid #d9dbd8;border-bottom-color:#c8cbc7;border-radius:5px;background:#fff;box-shadow:0 1px 0 #d5d7d4;font:600 9px var(--font-sans)}
.table-wrap{border:1px solid #d9dcd8;border-radius:10px;overflow-x:auto;overflow-y:hidden;background:#fff;box-shadow:0 1px 2px rgba(30,36,43,.03);scrollbar-width:thin;scrollbar-color:#cfd3cf transparent}.table-wrap table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.table-wrap th{height:35px;padding:0 10px;border-bottom:1px solid #dfe2de;background:#f3f4f1;color:#60686f;font-size:9px;font-weight:700;letter-spacing:.015em}.table-wrap th:nth-child(2){width:auto}.table-wrap th+th{border-left:1px solid #e5e7e4}.table-wrap th.numeric-header{text-align:right}.row-index-header,.row-index{width:37px!important;text-align:center!important}.delete-header,.delete-cell{width:37px!important}.table-wrap td{height:43px;padding:0;border-bottom:1px solid #e8eae7;background:#fff;transition:background .12s,box-shadow .12s}.table-wrap tr:last-child td{border-bottom:0}.table-wrap td+td{border-left:1px solid #e8eae7}.table-wrap tbody tr:hover td{background:#fbfcfa}.table-wrap tbody tr:focus-within td{background:#f8f9ff}.table-wrap tbody tr:focus-within td.data-cell{box-shadow:inset 0 0 0 1px rgba(67,93,245,.18)}.row-index span{display:grid;place-items:center;width:22px;height:22px;margin:auto;border-radius:6px;background:#f0f1ee;color:#858c92;font:650 9px var(--font-sans);font-variant-numeric:tabular-nums}.data-cell{position:relative}.data-cell input{width:100%;height:42px;padding:0 10px;border:0!important;border-radius:0;background:transparent;color:#262d33;font-size:12px;outline:0!important;box-shadow:none!important}.data-cell input::placeholder{color:#b4b9b5}.data-cell input:focus{background:rgba(67,93,245,.025)}.value-cell input{text-align:right;padding-right:12px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.value-cell:has(.unit-suffix) input{padding-right:48px}.value-cell:has(.unit-prefix) input{padding-left:48px}.unit-suffix,.unit-prefix{position:absolute!important;top:14px!important;color:#92999f!important;font-size:9px!important;pointer-events:none}.unit-suffix{right:9px!important}.unit-prefix{left:9px!important}.data-cell input[type="number"]{-moz-appearance:textfield;appearance:textfield}.data-cell input[type="number"]::-webkit-outer-spin-button,.data-cell input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.delete-cell{background:#fbfbf9!important}.delete-row{height:42px;color:#a1a7ab;opacity:.55;transition:opacity .12s,color .12s,background .12s}.delete-row svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.table-wrap tr:hover .delete-row,.delete-row:focus-visible{opacity:1}.delete-row:hover{color:#c45149;background:#fff2f0}.delete-row:disabled{opacity:.2}.data-status{margin-top:7px}.add-row{height:39px;border-color:#d9dcd8;background:#f8f9f7;color:#626a71;font-weight:600}.add-row:hover{background:#f1f3ff;border-color:#cfd4f4;color:var(--blue)}
.value-cell input{font-size:14px;font-weight:600;letter-spacing:-.012em}
@media(max-width:760px){.table-toolbar{margin-top:2px}.table-toolbar p{font-size:9px}.table-wrap th{height:36px}.table-wrap td,.data-cell input,.delete-row{height:44px}.unit-suffix,.unit-prefix{top:15px!important}}

/* Navigation continuity and discovery */
.search-shortcut{margin-left:auto;padding:2px 5px;border:1px solid #dfe1de;border-radius:4px;background:#f7f8f6;color:#8b9298;font:600 8px var(--font-sans);white-space:nowrap}.category-name{display:flex;align-items:center;gap:6px}.category-name small,.category-label small{min-width:17px;height:17px;padding:0 5px;display:grid;place-items:center;border-radius:10px;background:#eceeeb;color:#7c8389;font:700 8px var(--font-sans);letter-spacing:0}.category-label{display:flex;align-items:center;justify-content:space-between;padding:8px 7px 6px;color:#667078;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.recent-category.empty{display:none}.recent-category{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #e4e6e3}.recent-category .chart-tool{background:#f7f8ff}.recent-category .tool-glyph{background:#e9ecff;color:var(--blue)}.no-tool-results{padding:18px 8px;text-align:center}.mobile-picker-close,.mobile-picker-backdrop{display:none}

@media(max-width:760px){body.picker-open{overflow:hidden}.chart-rail.mobile-open{z-index:70}.chart-rail.mobile-open .mobile-picker-backdrop{display:block;position:fixed;inset:58px 0 0;z-index:0;border:0;background:rgba(20,24,28,.38);backdrop-filter:blur(3px)}.chart-rail.mobile-open .tool-search{display:flex;position:fixed;z-index:73;top:78px;left:24px;right:66px;height:42px;margin:0;border-color:#d6d9d5;box-shadow:0 3px 10px rgba(30,36,43,.07)}.chart-rail.mobile-open .search-shortcut{display:none}.chart-rail.mobile-open .mobile-picker-close{display:grid;place-items:center;position:fixed;z-index:74;right:20px;top:78px;width:38px;height:42px;border:1px solid #d6d9d5;border-radius:9px;background:#fff;color:#70777e;font-size:24px;line-height:1}.chart-rail.mobile-open .chart-list{display:block;position:fixed;z-index:72;left:12px;right:12px;top:68px;bottom:12px;max-height:none;padding:64px 12px 20px;border:1px solid #d9dcd8;border-radius:16px;background:#fafaf8;box-shadow:0 24px 60px rgba(20,25,30,.24);overflow-y:auto}.chart-rail.mobile-open .tool-category{margin-bottom:12px}.chart-rail.mobile-open .category-toggle,.chart-rail.mobile-open .category-label{padding:9px 5px 7px}.chart-rail.mobile-open .category-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.chart-rail.mobile-open .tool-category.closed .category-items{display:none}.chart-rail.mobile-open .chart-tool{min-width:0;min-height:62px;padding:9px 8px;align-items:center;border-color:#e2e4e1;background:#fff}.chart-rail.mobile-open .chart-tool-copy{min-width:0}.chart-rail.mobile-open .chart-tool-copy b{font-size:11px;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.chart-rail.mobile-open .chart-tool-copy small{display:none}.chart-rail.mobile-open .tool-glyph{width:30px;height:30px}.chart-rail.mobile-open .recent-category .chart-tool{background:#f4f6ff;border-color:#dfe3fa}}

/* Contextual chart settings */
.workspace{grid-template-columns:252px minmax(320px,390px) minmax(510px,1fr) 96px;transition:grid-template-columns .24s ease}.workspace.inspector-open{grid-template-columns:252px minmax(320px,390px) minmax(510px,1fr) 300px}.workspace.rail-collapsed{grid-template-columns:58px minmax(320px,390px) minmax(510px,1fr) 96px}.workspace.rail-collapsed.inspector-open{grid-template-columns:58px minmax(320px,390px) minmax(510px,1fr) 300px}
.customize-callout{width:100%;min-height:58px;margin-top:24px;padding:9px 11px;border:1px solid #dcdedb;border-radius:10px;background:#fafbf9;display:flex;align-items:center;gap:10px;color:#31383e;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}.customize-callout:hover{border-color:#cbd0ee;background:#f8f9ff;box-shadow:0 5px 14px rgba(35,42,54,.05);transform:translateY(-1px)}.customize-callout-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#ecefff;color:var(--blue);flex:0 0 auto}.customize-callout-icon svg,.preview-customize-button svg,.customize-rail-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.customize-callout-copy{display:flex;flex-direction:column;min-width:0}.customize-callout-copy b{font-size:11px}.customize-callout-copy small{margin-top:3px;color:#858c92;font-size:9px}.customize-palette-preview{display:flex;margin-left:auto}.customize-palette-preview i{width:13px;height:13px;border:2px solid #fafbf9;border-radius:50%;margin-left:-4px;box-shadow:0 0 0 1px rgba(30,36,43,.06)}.customize-callout-arrow{margin-left:2px;color:#9aa0a5;font-size:20px;font-weight:300}
.preview-customize-button{height:32px;padding:0 10px;border:1px solid #d9dcda;border-radius:8px;background:#fff;display:flex;align-items:center;gap:6px;color:#626a71;font-size:10px;font-weight:650;cursor:pointer;transition:border-color .15s,color .15s,box-shadow .15s}.preview-customize-button:hover{border-color:#bec5ef;color:var(--blue);box-shadow:0 3px 10px rgba(35,42,54,.05)}
.customize-rail{position:sticky;top:68px;height:calc(100vh - 68px);z-index:20;border-left:1px solid var(--line);background:#f9f9f7;min-width:0;overflow:hidden}.customize-rail-trigger{width:100%;height:100%;padding:22px 0;display:flex;flex-direction:column;align-items:center;gap:9px;border:0;background:transparent;color:#70777e;cursor:pointer}.customize-rail-trigger:hover{background:#f3f4f1;color:var(--blue)}.customize-rail-trigger svg{width:20px;height:20px}.customize-rail-trigger span{font-size:9px;font-weight:700;letter-spacing:.025em;writing-mode:vertical-rl}.customize-panel{height:100%;padding:22px 20px 18px;display:none;flex-direction:column;background:#fbfbf9;overflow-y:auto;scrollbar-width:thin}.inspector-open .customize-rail-trigger{display:none}.inspector-open .customize-panel{display:flex}.customize-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:17px;border-bottom:1px solid #e2e4e0}.customize-panel-header>div{display:flex;flex-direction:column}.customize-panel-header span{font-size:14px;font-weight:750;color:#30373d}.customize-panel-header small{margin-top:4px;color:#858c92;font-size:9px}.customize-close{width:30px;height:30px;border:1px solid #dfe1de;border-radius:8px;background:#fff;color:#737a80;font-size:20px;line-height:1;cursor:pointer}.customize-close:hover{color:#333a40;border-color:#cdd0cd}.customize-panel-tool{display:flex;align-items:center;gap:10px;margin:16px 0 21px;padding:10px;border:1px solid #e0e2df;border-radius:10px;background:#fff}.customize-panel-tool>span{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:var(--blue-soft);color:var(--blue)}.customize-panel-tool .tool-icon-svg{width:23px;height:23px}.customize-panel-tool>div{display:flex;flex-direction:column;min-width:0}.customize-panel-tool b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customize-panel-tool small{margin-top:3px;color:#8a9095;font-size:8px}.customize-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.customize-section-heading h2{margin:0;font-size:12px}.customize-section-heading span{padding:3px 7px;border-radius:10px;background:#eeeeeb;color:#8a9095;font-size:8px}.customize-settings{grid-template-columns:1fr;gap:14px}.customize-settings .setting-field.wide{grid-column:auto}.customize-settings .setting-toggle{background:#fff}.customize-panel-ad{min-height:66px;margin-top:auto;padding-top:20px;display:flex;align-items:center;justify-content:center;gap:8px;color:#a7acb0}.customize-panel-ad span{padding:2px 4px;border:1px solid #d7d9d6;border-radius:3px;font:700 7px var(--font-sans)}.customize-panel-ad p{margin:0;font-size:8px}.customize-backdrop{display:none;position:fixed;inset:68px 0 0;z-index:79;border:0;background:rgba(22,27,31,.3);backdrop-filter:blur(2px)}
@media(max-width:1599px){.workspace,.workspace.inspector-open{grid-template-columns:252px minmax(320px,390px) minmax(430px,1fr) 96px}.workspace.rail-collapsed,.workspace.rail-collapsed.inspector-open{grid-template-columns:58px minmax(320px,390px) minmax(430px,1fr) 96px}.customize-rail{position:fixed;top:68px;right:0;width:300px;height:calc(100vh - 68px);z-index:80;box-shadow:-18px 0 45px rgba(24,29,34,.15);transform:translateX(105%);transition:transform .22s ease}.workspace.inspector-open .customize-rail{transform:translateX(0)}.customize-rail-trigger{display:none}.customize-panel,.inspector-open .customize-panel{display:flex}.workspace.inspector-open .customize-backdrop{display:block}}
@media(max-width:1180px){.workspace,.workspace.inspector-open{grid-template-columns:64px minmax(290px,350px) minmax(430px,1fr)}.workspace.rail-collapsed,.workspace.rail-collapsed.inspector-open{grid-template-columns:64px minmax(290px,350px) minmax(430px,1fr)}}
@media(max-width:760px){body.customize-open{overflow:hidden}.preview-customize-button span{display:none}.preview-customize-button{width:34px;padding:0;justify-content:center}.customize-rail{top:auto;bottom:0;width:100%;height:min(76vh,620px);border:0;border-radius:18px 18px 0 0;box-shadow:0 -20px 50px rgba(22,27,31,.2);transform:translateY(105%)}.workspace.inspector-open .customize-rail{transform:translateY(0)}.customize-panel{padding:18px 20px 22px;border-radius:18px 18px 0 0}.customize-panel-header{position:relative;padding-top:7px}.customize-panel-header:before{content:"";position:absolute;top:-7px;left:50%;width:36px;height:4px;border-radius:4px;background:#d6d9d5;transform:translateX(-50%)}.customize-panel-ad{display:none}.workspace.inspector-open .customize-backdrop{display:block;inset:58px 0 0}.customize-settings{grid-template-columns:1fr 1fr}.customize-settings .setting-field.wide{grid-column:1/-1}.customize-callout{margin-top:20px}}
@media(max-width:420px){.customize-settings{grid-template-columns:1fr}.customize-settings .setting-field.wide{grid-column:auto}.customize-panel-tool{margin-bottom:16px}}

/* Full-height tools sidebar and inline chart customization */
@media(min-width:761px){
  .topbar{margin-left:272px;height:68px;padding:0 24px 0 28px;transition:margin-left .24s ease}
  .topbar>.brand{visibility:hidden;pointer-events:none}
  .workspace,.workspace.inspector-open,.workspace.rail-collapsed,.workspace.rail-collapsed.inspector-open{max-width:none;margin:0;padding-left:272px;grid-template-columns:minmax(360px,430px) minmax(510px,1fr);transition:padding-left .24s ease,padding-right .24s ease}
  .chart-rail{position:fixed;inset:0 auto 0 0;width:272px;height:100vh;padding:0 12px 14px;z-index:40;display:flex;flex-direction:column;border-right:1px solid #dedfdd;background:#f3f3f1;box-shadow:1px 0 0 rgba(30,36,43,.02);transition:width .24s ease,padding .24s ease}
  .sidebar-brand-row{height:68px;display:flex;align-items:center;padding:0 9px;flex:0 0 auto}
  .sidebar-brand{font-size:17px}
  .rail-title{padding:8px 8px 12px;color:#575e65}
  .tool-search{height:40px;margin:0 4px 12px;border-color:#d9dbd8;background:#fff}
  .chart-list{flex:1;min-height:0;padding:0 3px 16px;gap:4px}
  .chart-rail .category-toggle{display:flex}
  .chart-rail .chart-tool-copy{display:flex}
  .chart-tool{min-height:42px;border-radius:8px;padding:6px 8px}
  .chart-tool:hover{background:#e9e9e6;border-color:transparent}
  .chart-tool.active{background:#fff;border-color:#d9dbd8;box-shadow:0 1px 3px rgba(30,36,43,.06)}
  .tool-glyph{width:28px;height:28px;background:transparent}
  .chart-tool:hover .tool-glyph{background:#dedfdb;transform:none}
  .rail-count{padding:12px 8px 2px;border-top:1px solid #dddfdb;flex:0 0 auto}
  .data-panel{max-height:calc(100vh - 68px);padding:26px 28px 48px}
  .preview-panel{height:calc(100vh - 68px)}
  body.sidebar-collapsed .topbar{margin-left:72px}
  body.sidebar-collapsed .workspace{padding-left:72px;padding-right:200px}
  body.sidebar-collapsed .chart-rail{width:72px;padding-left:8px;padding-right:8px}
  body.sidebar-collapsed .sidebar-brand>span:last-child,body.sidebar-collapsed .rail-title>span,body.sidebar-collapsed .tool-search,body.sidebar-collapsed .rail-count,body.sidebar-collapsed .category-toggle,body.sidebar-collapsed .category-label,body.sidebar-collapsed .chart-tool-copy{display:none}
  body.sidebar-collapsed .sidebar-brand-row{justify-content:center;padding:0}
  body.sidebar-collapsed .rail-title{justify-content:center;padding:8px 0 12px}
  body.sidebar-collapsed .rail-toggle svg{transform:rotate(180deg)}
  body.sidebar-collapsed .tool-category{margin:0}
  body.sidebar-collapsed .tool-category.closed .category-items{display:none}
  body.sidebar-collapsed .tool-category:not(.closed) .category-items{display:flex}
  body.sidebar-collapsed .workspace.rail-collapsed .chart-list{overflow-x:hidden;overflow-y:auto}
  body.sidebar-collapsed .chart-tool{justify-content:center;padding:6px}
}
.inline-customize{margin-top:28px;padding-top:24px;border-top:1px solid #e2e4e0}
.inline-customize .customize-panel-header{padding-bottom:14px}
.inline-customize .customize-panel-tool{margin:14px 0 18px;background:#fafbf9}
.inline-customize .customize-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.inline-customize .customize-settings .setting-field.wide{grid-column:1/-1}
.inline-customize .customize-settings .setting-toggle{background:#fafbf9}
@media(max-width:1180px) and (min-width:761px){
  .topbar{margin-left:240px}
  .workspace,.workspace.inspector-open,.workspace.rail-collapsed,.workspace.rail-collapsed.inspector-open{padding-left:240px;grid-template-columns:minmax(320px,390px) minmax(430px,1fr)}
  .chart-rail{width:240px;padding-left:10px;padding-right:10px}
  .chart-rail .tool-search{display:flex}
  .chart-rail .rail-count{display:block}
  .chart-rail .category-toggle{display:flex}
  .chart-rail .chart-tool-copy{display:flex}
  .chart-rail .chart-tool{justify-content:flex-start;padding:6px 8px}
  body.sidebar-collapsed .topbar{margin-left:72px}
  body.sidebar-collapsed .workspace{padding-left:72px;padding-right:168px}
  body.sidebar-collapsed .chart-rail{width:72px}
  body.sidebar-collapsed .tool-search,body.sidebar-collapsed .rail-count,body.sidebar-collapsed .category-toggle,body.sidebar-collapsed .chart-tool-copy{display:none}
  body.sidebar-collapsed .chart-tool{justify-content:center;padding:6px}
}
@media(max-width:760px){
  .topbar{margin-left:0}
  .topbar>.brand{visibility:visible;pointer-events:auto}
  .workspace,.workspace.inspector-open,.workspace.rail-collapsed,.workspace.rail-collapsed.inspector-open,body.sidebar-collapsed .workspace{padding-left:0;padding-right:0}
  .sidebar-brand-row{display:none}
  .inline-customize{margin-top:24px;padding-top:22px}
  .inline-customize .customize-panel-header:before{display:none}
  .inline-customize .customize-settings{grid-template-columns:1fr 1fr}
}

/* Visual palette picker and editable HEX colors */
.color-hex-input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#4f5962;font:650 11px var(--font-sans);letter-spacing:.035em;text-transform:uppercase}
.color-hex-input.invalid{color:#d44f46;text-decoration:underline wavy #e7a09a;text-underline-offset:3px}
.palette-field{position:relative;z-index:3}
.palette-trigger{width:100%;height:38px;display:flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #dcdeda;border-radius:8px;background:#fff;color:#424b53;font-size:12px;cursor:pointer;text-align:left}
.palette-trigger:hover,.palette-field.open .palette-trigger{border-color:#8290f8;box-shadow:0 0 0 3px rgba(67,93,245,.09)}
.palette-trigger>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.palette-trigger svg{width:16px;height:16px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .16s}
.palette-field.open .palette-trigger svg{transform:rotate(180deg)}
.palette-swatches{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.palette-swatches i{display:block;width:7px;height:22px;border-radius:2px}
.palette-trigger .palette-swatches i{width:5px;height:20px}
.palette-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;padding:6px;border:1px solid #dcdeda;border-radius:10px;background:#fff;box-shadow:0 14px 35px rgba(30,36,43,.16)}
.palette-field.open .palette-menu{display:grid;gap:3px}
.palette-option{width:100%;height:38px;display:flex;align-items:center;gap:9px;padding:5px 7px;border:0;border-radius:7px;background:transparent;color:#4b545c;font-size:12px;cursor:pointer;text-align:left}
.palette-option:hover{background:#f3f4f7}.palette-option.selected{background:#eef0ff;color:#3449cf;font-weight:650}
.palette-option b{margin-left:auto;visibility:hidden;color:#435df5}.palette-option.selected b{visibility:visible}
.setting-segments{height:34px;display:grid;grid-template-columns:repeat(3,1fr);padding:2px;border:1px solid #dfe1de;border-radius:7px;background:#f3f4f2}
.setting-segments button{min-width:0;padding:0 5px;border:0;border-radius:5px;background:transparent;color:#757d84;font-size:10px;font-weight:650;cursor:pointer;white-space:nowrap}
.setting-segments button:hover{color:#414a52}.setting-segments button.active{background:#fff;color:var(--blue);box-shadow:0 1px 3px rgba(31,38,46,.1)}
.palette-swatches.mode-single{gap:1px}.palette-swatches.mode-single i{opacity:.95}

/* Purpose-led settings layout */
.data-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:-7px 0 22px}
.data-settings:empty{display:none}.data-settings .setting-field.wide{grid-column:auto}.data-settings .setting-label{font-size:12px}
.data-settings .setting-field.unit-row{grid-column:1/-1}
.unit-row .setting-label{justify-content:flex-start;gap:7px;white-space:nowrap}.unit-row .setting-label small{font-weight:500;color:#9aa0a5}
.unit-row-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.unit-select{width:118px;flex:0 0 auto}
.unit-custom-input{width:126px;flex:0 0 auto}
.unit-position-toggle{display:inline-flex;border:1px solid #dcdeda;border-radius:7px;overflow:hidden;background:#fff}
.unit-position-toggle[hidden]{display:none}
.unit-position-toggle button{height:34px;padding:0 12px;border:0;background:transparent;color:#8a9095;font:600 10px var(--font-sans);cursor:pointer;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.unit-position-toggle button+button{border-left:1px solid #e3e5e2}
.unit-position-toggle button.active{background:var(--blue-soft);color:var(--blue)}
.inline-customize .quick-settings{display:block}
.settings-section{margin:0 0 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:visible;box-shadow:none}
.settings-section:last-child{margin-bottom:0}
.settings-section summary{min-height:52px;padding:9px 12px;display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;background:var(--surface);border-radius:9px;transition:background .15s}
.settings-section summary:hover{background:var(--surface-subtle)}
.settings-section summary::-webkit-details-marker{display:none}
.settings-section summary>span{display:flex;flex-direction:column;min-width:0}
.settings-section summary b{color:#30363c;font-size:13px;line-height:1.3}
.settings-section summary small{margin-top:2px;color:#858b91;font-size:10px;font-weight:500}
.settings-section summary em{margin-left:auto;color:#899097;font-size:10px;font-style:normal;font-weight:650}
.settings-chevron{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:#747b81;stroke-width:1.8;transition:transform .16s}
.settings-section[open]>.settings-chevron{transform:rotate(90deg)}
.settings-section[open] summary{border-bottom:1px solid var(--border);border-radius:9px 9px 0 0;background:var(--surface)}
.settings-section[open] summary .settings-chevron{transform:rotate(90deg)}
.settings-section-body{padding:6px 12px 10px;display:grid;grid-template-columns:1fr;gap:0}
.settings-section-body .setting-field.wide{grid-column:1/-1}
.settings-section-style .preset-field{padding-bottom:0;border-bottom:0}
.settings-section-display .settings-section-body{gap:0}
.settings-section-display .setting-toggle{min-height:44px;background:#fff;border:0;border-radius:6px;padding:0 8px}
.settings-section-display .setting-toggle:hover{background:var(--surface-subtle)}
.settings-section-output .ratio-field{padding-top:0;border-top:0}
.settings-section-body>.setting-field:not(.preset-field):not(.ratio-field){min-height:48px;padding:7px 8px;display:grid;grid-template-columns:minmax(92px,.8fr) minmax(120px,1.2fr);align-items:center;gap:12px;border-bottom:1px solid #f0f1ef}
.settings-section-body>.setting-field:last-child{border-bottom:0}
.settings-section-body>.setting-field:not(.preset-field):not(.ratio-field)>.setting-label{margin:0}
.settings-section .setting-label{font-size:11px;color:#555d64}
.settings-section .setting-input,.settings-section .setting-select{height:34px;border-radius:6px;font-size:12px}
.settings-section .color-control,.settings-section .palette-trigger{border-radius:6px}
.settings-section .setting-range{height:4px}
@media(max-width:420px){.data-settings,.settings-section-body{grid-template-columns:1fr}.settings-section-body .setting-field.wide{grid-column:auto}.settings-section-body>.setting-field:not(.preset-field):not(.ratio-field){grid-template-columns:1fr;gap:6px}}
@media(max-width:420px){.inline-customize .customize-settings{grid-template-columns:1fr}.inline-customize .customize-settings .setting-field.wide{grid-column:auto}}

/* Helpful tool-page content for search quality and AdSense review */
.tool-guide{padding:46px 24px 64px;background:#fff;border-top:1px solid #e3e4e1}.tool-guide-inner{max-width:980px;margin:0 auto;color:#30373d}.tool-guide-eyebrow{margin:0 0 9px;color:#7b838a;font-size:10px;font-weight:750;letter-spacing:.08em}.tool-guide h2{margin:0 0 12px;font-size:24px;line-height:1.2;letter-spacing:0}.tool-guide p{max-width:760px;margin:0;color:#596168;font-size:14px;line-height:1.75}.tool-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}.tool-guide article{min-width:0}.tool-guide h3{margin:0 0 9px;font-size:15px;line-height:1.3;letter-spacing:0}.tool-guide ul{margin:0;padding-left:18px;color:#596168;font-size:13px;line-height:1.75}.tool-guide-faq{margin-top:28px;padding-top:24px;border-top:1px solid #ecedea}.tool-guide details{max-width:760px;border-bottom:1px solid #ecedea}.tool-guide summary{cursor:pointer;padding:13px 0;font-size:13px;font-weight:700;color:#30373d}.tool-guide details p{padding:0 0 14px;font-size:13px}.tool-guide-privacy{margin-top:22px!important;padding:13px 14px;border:1px solid #e1e3df;border-radius:8px;background:#fafbf9;font-size:12px!important;color:#687078!important}.tool-guide-privacy b{color:#30373d}
@media(min-width:761px){.tool-guide{padding-left:296px}.tool-guide-inner{margin:0 auto 0 0}}
@media(max-width:760px){.tool-guide{padding:34px 18px 48px}.tool-guide-grid{grid-template-columns:1fr;gap:22px}.tool-guide h2{font-size:21px}.tool-guide p{font-size:13px}}

/* Readable typography system */
:root{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",Roboto,Arial,sans-serif;--text-secondary:#66707a;--text-tertiary:#747d86;--surface:#fff;--surface-subtle:#f7f8f6;--border:#e7e8e5;--accent:#435df5;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px}
html,body{font-family:var(--font-sans);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select{font-family:var(--font-sans)}
.language-picker select,.avatar,.step,.chart-footer,.rail-tip>span,.tool-badge,.rail-count b,.data-status>span,.setting-label output,.paste-shortcut kbd{font-family:var(--font-sans)}
.save-state,.language-picker select{font-size:12px}
.tool-search input{font-size:12px}
.category-toggle{font-size:11px;color:var(--text-secondary)}
.chart-tool-copy b{font-size:13px;line-height:1.3}
.chart-tool-copy small{font-size:11px;line-height:1.35;color:var(--text-secondary)}
.rail-count{font-size:11px;color:var(--text-tertiary)}
.rail-count b{font-size:12px}
.selected-tool h1{font-size:16px;line-height:1.3}
.selected-tool small{font-size:11px;line-height:1.4;color:var(--text-secondary)}
.text-button{font-size:12px}
.field-label{font-size:13px;color:#505a63}
.title-input{font-size:14px}
.table-toolbar h2{font-size:14px}
.table-toolbar p{font-size:11px;color:var(--text-secondary)}
.paste-shortcut{font-size:10px}
.table-wrap th{font-size:11px;color:#59636c}
.data-cell input{font-size:14px;color:#20272d}
td.value-cell input{font-family:var(--font-sans)}
td.value-cell span,.unit-suffix{font-size:11px;color:var(--text-tertiary)}
.data-hint,.data-status>span{font-size:11px;color:var(--text-secondary)}
.add-row{font-size:13px}
.customize-panel-header span{font-size:16px}
.customize-panel-header small{font-size:11px;color:var(--text-secondary)}
.customize-panel-tool b{font-size:13px}
.customize-panel-tool small{font-size:11px;color:var(--text-secondary)}
.customize-section-heading h2{font-size:14px}
.customize-section-heading span{font-size:10px}
.setting-label{font-size:13px;color:#505a63}
.setting-label output{font-size:11px;color:var(--text-secondary)}
.setting-input,.setting-select{font-size:13px;color:#343c43}
.setting-toggle{font-size:12px;color:#535d66}
.section-heading h1,.section-heading h2{font-size:17px}
.live-badge{font-size:10px}
.chart-meta h2{font-size:19px;line-height:1.3}
.chart-meta p{font-size:12px;color:var(--text-secondary)}
.chart-footer{font-size:10px;color:var(--text-tertiary)}
.primary-button,.action-button{font-size:13px}
.privacy-note{font-size:11px;color:var(--text-secondary)}
.legal-links a{font-size:11px;color:var(--text-secondary)}

@media(max-width:760px){
  .mobile-tool-picker,.mobile-view-tabs button{font-size:12px}
  .selected-tool h1{font-size:15px}
  .table-toolbar p{font-size:11px}
  .chart-meta h2{font-size:18px}
}

/* Chart style controls */
.preset-field{padding-bottom:16px;border-bottom:1px solid #e5e6e3}
.style-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.style-preset{min-width:0;padding:8px;border:1px solid #e0e2df;border-radius:10px;background:#fff;color:#596168;cursor:pointer;text-align:left;transition:border-color .16s,box-shadow .16s,transform .16s}
.style-preset:hover{transform:translateY(-1px);border-color:#bdc3ca;box-shadow:0 5px 14px rgba(31,38,46,.05)}
.style-preset.active{border-color:#6073ee;box-shadow:0 0 0 2px #e5e8ff;color:#3147d4}
.style-preset b{display:block;margin-top:7px;overflow:hidden;font-size:11px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.preset-swatch{height:52px;display:flex;align-items:flex-end;justify-content:center;gap:5px;padding:8px;border-radius:7px;background:var(--preset-bg);box-shadow:inset 0 0 0 1px rgba(40,48,56,.06)}
.preset-swatch i{width:9px;height:18px;border-radius:3px 3px 1px 1px;background:var(--preset-accent)}
.preset-swatch i:nth-child(2){height:32px;opacity:.78}.preset-swatch i:nth-child(3){height:24px;opacity:.55}
.preset-editorial .preset-swatch{border-radius:2px}.preset-editorial .preset-swatch i{border-radius:0}
.preset-minimal .preset-swatch{background:#fff}.preset-minimal .preset-swatch i{width:3px;border-radius:0}.preset-minimal .preset-swatch i:nth-child(3){opacity:.25}
.preset-creator .preset-swatch{background:linear-gradient(145deg,#fff7fb,#f1e8ff)}.preset-creator .preset-swatch i{width:7px;border-radius:5px 5px 2px 2px}.preset-creator .preset-swatch i:nth-child(2){background:#ec4899}.preset-creator .preset-swatch i:nth-child(3){background:#f59e0b;opacity:1}
.chart-card[data-style=product]{border-radius:14px;box-shadow:0 14px 35px rgba(32,38,50,.08)}
.chart-card[data-style=product] .chart-meta h2{font-weight:750;letter-spacing:-.04em}
.chart-card[data-style=editorial]{border-color:#ded6c9;border-radius:4px;box-shadow:0 8px 24px rgba(74,61,47,.07);padding:30px 32px 18px}
.chart-card[data-style=editorial] .chart-meta h2{font-family:Georgia,"Times New Roman","Batang",serif;font-size:22px;font-weight:600;letter-spacing:-.025em}
.chart-card[data-style=editorial] .chart-footer{font-family:Georgia,"Times New Roman","Batang",serif;border-color:#ded6c9}
.chart-card[data-style=minimal]{border-color:transparent;border-radius:0;box-shadow:none;padding-left:22px;padding-right:22px}
.chart-card[data-style=minimal] .chart-meta h2{font-size:18px;font-weight:600;letter-spacing:-.025em}
.chart-card[data-style=minimal] .chart-footer{border-color:#202632;color:#202632}
.chart-card[data-style=creator]{border:0;border-radius:24px;box-shadow:0 18px 44px rgba(124,58,237,.14);padding:28px 28px 18px}
.chart-card[data-style=creator] .chart-meta h2{font-size:22px;font-weight:800;letter-spacing:-.045em}
.chart-card[data-style=creator] .canvas-wrap{margin-top:20px}
.preview-panel{padding:24px clamp(28px,3.6vw,58px) 32px;background:#f5f6f4}
.preview-heading{margin-bottom:16px}
.preview-heading .live-badge{display:none}
.preview-customize-button{width:34px;padding:0;justify-content:center;border-color:transparent;background:transparent;color:#8a9197}
.preview-customize-button span{display:none}
.preview-customize-button:hover{border-color:#d9dce8;background:#fff;color:var(--blue)}
.chart-card{min-height:440px;border-color:#e3e5e2;box-shadow:0 18px 48px rgba(31,38,46,.08)}
.export-row{grid-template-columns:minmax(180px,1fr) 44px 44px;gap:8px;margin-top:14px}
.primary-button{height:48px;border-radius:9px;font-size:13px;box-shadow:0 7px 18px rgba(67,93,245,.2)}
.action-button{width:44px;height:44px;padding:0;border-radius:9px}
.action-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.privacy-note{margin-top:11px;color:#8a9197;font-size:10px}
.legal-links{margin-top:7px;opacity:.72}
.color-field{min-width:0}
.color-auto{border:0;border-radius:12px;background:#eef0ed;color:#777f86;padding:2px 7px;font-size:9px;cursor:pointer}
.color-auto.active{background:#e9ecff;color:#4c61db}
.color-control{height:38px;display:flex;align-items:center;gap:9px;padding:5px 8px;border:1px solid #dcdeda;border-radius:8px;background:#fff}
.color-control input[type=color]{width:30px;height:26px;flex:0 0 auto;padding:0;border:0;border-radius:6px;background:transparent;cursor:pointer}
.color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-control input[type=color]::-webkit-color-swatch{border:1px solid rgba(30,36,43,.12);border-radius:6px}
.color-control code{min-width:0;color:#626b73;font:600 10px var(--font-sans);letter-spacing:.03em;overflow:hidden;text-overflow:ellipsis}
.ratio-field{padding:16px 0;border-top:1px solid #e5e6e3;border-bottom:1px solid #e5e6e3}
.ratio-field>.setting-label{align-items:flex-end}.ratio-field>.setting-label small{color:#7b848c;font-size:9px;font-weight:500}
.ratio-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ratio-preset{min-width:0;min-height:88px;padding:9px 7px 8px;display:flex;flex-direction:column;align-items:center;border:1px solid #dfe1de;border-radius:10px;background:#fff;color:#58626b;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}
.ratio-preset:hover{transform:translateY(-1px);border-color:#bfc5c9}.ratio-preset.active{border-color:#6678f2;background:#f8f9ff;box-shadow:0 0 0 2px #e3e6ff;color:#3449cf}
.ratio-shape{height:34px;display:flex;align-items:flex-end;justify-content:center;gap:2px;padding:4px;border:1.5px solid currentColor;border-radius:4px;background:#fff}
.ratio-shape i{width:3px;height:9px;border-radius:1px 1px 0 0;background:currentColor;opacity:.55}.ratio-shape i:nth-child(2){height:16px;opacity:1}.ratio-shape i:nth-child(3){height:12px;opacity:.75}
.ratio-standard{width:46px}.ratio-square{width:34px}.ratio-portrait{width:27.2px}.ratio-story{width:19.125px}.ratio-wide{width:48px;height:27px}.ratio-custom{width:43px;border-style:dashed;position:relative}.ratio-custom:after{content:"↔";position:absolute;inset:0;display:grid;place-items:center;font-size:14px;font-weight:700}.ratio-custom i{display:none}
.ratio-preset b{margin-top:6px;font-size:11px;line-height:1.2}.ratio-preset>small{margin-top:2px;color:#68727a;font-size:9px;font-weight:700}
.custom-size-panel{margin-top:12px;padding:13px;border:1px solid #dfe2e8;border-radius:10px;background:#f8f9fc}.custom-size-fields{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);align-items:end;gap:7px}.custom-size-fields label{min-width:0;color:#626b74;font-size:10px;font-weight:650}.dimension-times{padding-bottom:10px;text-align:center;color:#949ba1}.dimension-input{height:36px;margin-top:6px;display:flex;align-items:center;border:1px solid #d9dcdf;border-radius:7px;background:#fff;overflow:hidden}.dimension-input:focus-within{border-color:#8290f8;box-shadow:0 0 0 3px rgba(67,93,245,.09)}.dimension-input input{width:100%;min-width:0;height:34px;padding:0 4px 0 9px;border:0;outline:0;background:transparent;color:#4f5962;font-size:11px}.dimension-input b{padding-right:8px;color:#939aa0;font-size:9px}.custom-ratio-lock{margin-top:11px;display:flex;align-items:center;gap:7px;color:#69727a;font-size:10px;cursor:pointer}.custom-ratio-lock input{display:none}.custom-ratio-lock .switch{flex:0 0 auto}.custom-ratio-lock input:checked+.switch{background:var(--blue)}.custom-ratio-lock input:checked+.switch:after{transform:translateX(14px)}.custom-size-status{margin:9px 0 0;color:#68727a;font-size:9px;line-height:1.4}.custom-size-status.invalid{color:#d04d45}
.chart-card[data-ratio=wide]{aspect-ratio:16/9;min-height:0}
.chart-card[data-ratio=square]{aspect-ratio:1/1;min-height:0;max-width:720px}
.chart-card[data-ratio=portrait]{aspect-ratio:4/5;min-height:0;max-width:560px;margin-inline:auto}
.chart-card[data-ratio=story]{aspect-ratio:9/16;min-height:0;max-width:390px;margin-inline:auto}
.chart-card[data-ratio=custom]{min-height:0}

@media(max-width:1180px) and (min-width:761px){
  .style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .style-preset{padding:8px 5px}
  .ratio-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ratio-preset{min-height:88px}
  .chart-card{min-height:370px}
  .preview-panel{padding:20px 15px 28px}
  .chart-card[data-ratio=wide]{aspect-ratio:16/9;min-height:0}
  .chart-card[data-ratio=square]{aspect-ratio:1/1;min-height:0}
  .chart-card[data-ratio=portrait]{aspect-ratio:4/5;min-height:0}
  .chart-card[data-ratio=story]{aspect-ratio:9/16;min-height:0}
}

.setting-label>small{margin-left:6px;color:#8a9299;font-size:9px;font-weight:500;white-space:nowrap}
.primary-button:disabled,.action-button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}
.data-import-actions{display:flex;align-items:center;gap:7px}.csv-import-button{height:29px;padding:0 10px;border:1px solid #d9dcda;border-radius:7px;background:#fff;color:#616a72;font-size:10px;font-weight:650;cursor:pointer}.csv-import-button:hover{border-color:#bfc5d8;background:#f8f9ff;color:var(--blue)}.row-index-header,.row-index{width:48px!important}.drag-handle{width:100%;height:42px;padding:0;border:0;background:transparent;color:#9aa1a6;display:flex;align-items:center;justify-content:center;gap:2px;cursor:grab}.drag-handle:active{cursor:grabbing}.drag-handle svg{width:10px;height:17px;fill:currentColor}.drag-handle small{font:650 8px var(--font-sans);font-variant-numeric:tabular-nums}.drag-handle:hover,.drag-handle:focus-visible{color:var(--blue);outline:0}.table-wrap tr.dragging td{opacity:.42}.table-wrap tr.drag-over td{box-shadow:inset 0 2px 0 var(--blue)}
@media(max-width:760px){.data-import-actions{gap:5px}.paste-shortcut{display:none}.csv-import-button{height:31px}.drag-handle{height:44px}}
@media(max-width:760px){.import-backdrop{padding:0;align-items:end}.import-dialog{width:100%;max-height:92vh;padding:20px 16px 24px;border-radius:18px 18px 0 0}.import-dialog>header{padding-right:28px}.import-dialog h2{font-size:16px}#importMappings{grid-template-columns:1fr}.import-mapping-title{align-items:flex-start}.import-preview{max-height:150px}}
.import-tabs{grid-template-columns:repeat(2,1fr)}

/* Large spreadsheet editor */
.data-editor-backdrop{position:fixed;inset:0;z-index:75;display:grid;place-items:center;padding:24px;background:rgba(20,24,28,.48);backdrop-filter:blur(5px)}
.data-editor-backdrop[hidden]{display:none}.data-editor-dialog{width:min(1040px,100%);height:min(760px,92vh);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border-radius:18px;background:#fff;box-shadow:0 32px 100px rgba(0,0,0,.28);overflow:hidden}
.data-editor-dialog>header{position:relative;padding:23px 64px 19px 26px;border-bottom:1px solid #e6e8e5}.data-editor-eyebrow{display:block;margin-bottom:5px;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.1em}.data-editor-dialog h2{margin:0;color:#282f35;font-size:19px;letter-spacing:-.02em}.data-editor-dialog header p{margin:4px 0 0;color:#778087;font-size:11px}.data-editor-close{position:absolute;right:20px;top:18px;width:34px;height:34px;border:0;border-radius:8px;background:#f3f4f2;color:#7e858b;font-size:23px;cursor:pointer}.data-editor-close:hover{background:#e9eaff;color:var(--blue)}
.data-editor-toolbar{min-height:58px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e6e8e5;background:#fafbf9}.data-editor-paste-tip{display:flex;align-items:center;gap:4px;color:#727b82;font-size:10px}.data-editor-paste-tip span{margin-left:5px}.data-editor-paste-tip kbd{min-width:22px;height:22px;display:grid;place-items:center;border:1px solid #d7dad7;border-radius:5px;background:#fff;color:#5f676e;font:650 10px var(--font-sans);box-shadow:0 1px 1px rgba(0,0,0,.05)}.data-editor-toolbar>div:last-child{display:flex;gap:7px}.data-editor-toolbar button{height:34px;padding:0 12px;border:1px solid #d9dcda;border-radius:7px;background:#fff;color:#59636b;font-size:10px;font-weight:700;cursor:pointer}.data-editor-toolbar button:hover{border-color:#aeb7ef;color:var(--blue);background:#f8f9ff}.data-editor-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.data-editor-sheet{overflow:auto;background:#f4f5f3}.data-editor-sheet table{min-width:720px;width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.data-editor-sheet th{position:sticky;top:0;z-index:2;height:38px;padding:0 10px;border-right:1px solid #e1e3e0;border-bottom:1px solid #d8dbd8;background:#eef0ed;color:#626b72;font-size:10px;font-weight:750;text-align:left;white-space:nowrap}.data-editor-sheet th:first-child{width:58px;text-align:center}.data-editor-sheet th:last-child{width:70px;text-align:center}.data-editor-sheet td{height:47px;padding:5px;border-right:1px solid #e7e9e6;border-bottom:1px solid #e7e9e6;background:#fff}.data-editor-sheet tr:hover td{background:#fbfcff}.data-editor-sheet td input[data-editor-index]{width:100%;min-width:115px;height:35px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:#252d33;font-size:12px;outline:0}.data-editor-sheet td input[data-editor-index]:hover{border-color:#e0e2df;background:#fff}.data-editor-sheet td input[data-editor-index]:focus{border-color:#7889f4;background:#fff;box-shadow:0 0 0 3px rgba(67,93,245,.1)}
.editor-drag{width:100%;height:34px;display:flex;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#a0a7ac;cursor:grab}.editor-drag:disabled{cursor:default}.editor-drag:hover{color:var(--blue)}.editor-grip{font-size:15px}.editor-drag small{font:650 9px var(--font-sans);font-variant-numeric:tabular-nums}.data-editor-sheet tr.dragging td{opacity:.4}.data-editor-sheet tr.drag-over td{box-shadow:inset 0 2px 0 var(--blue)}
.editor-color{display:flex;align-items:center;justify-content:center;gap:5px}.editor-color input{width:34px;height:30px;padding:2px;border:1px solid #dcdfdc;border-radius:7px;background:#fff;cursor:pointer}.editor-color button,.editor-delete{width:29px;height:29px;border:0;border-radius:6px;background:transparent;color:#adb3b7;cursor:pointer}.editor-color button.active{color:#727a81}.editor-color button:hover{background:#eef0ff;color:var(--blue)}.editor-delete{display:block;margin:auto;font-size:18px}.editor-delete:hover{background:#fff0ee;color:#d45146}.editor-delete:disabled{opacity:.25;cursor:not-allowed}
.data-editor-dialog>footer{min-height:70px;padding:11px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e3e5e2;background:#fff}.data-editor-dialog>footer>span{color:#7b8389;font-size:10px;font-weight:650}.data-editor-dialog>footer>div{display:flex;gap:8px}.data-editor-dialog footer button{height:40px;margin:0;padding:0 18px}.data-editor-cancel{border:1px solid #d9dcda;border-radius:8px;background:#fff;color:#626b72;font-size:11px;font-weight:700;cursor:pointer}
@media(max-width:760px){.data-expand-button{font-size:0}.data-expand-button span{font-size:13px}.data-editor-backdrop{padding:0;align-items:end}.data-editor-dialog{height:94vh;border-radius:18px 18px 0 0}.data-editor-dialog>header{padding:19px 52px 15px 17px}.data-editor-dialog h2{font-size:17px}.data-editor-toolbar{align-items:flex-start;padding:9px 12px;flex-direction:column}.data-editor-paste-tip{display:none}.data-editor-toolbar>div:last-child{width:100%}.data-editor-toolbar button{flex:1}.data-editor-dialog>footer{padding:10px 12px}.data-editor-dialog footer button{padding:0 13px}}
.data-editor-sheet td.cell-selected{position:relative;background:#eef1ff!important}.data-editor-sheet td.cell-selected:after{content:"";position:absolute;inset:-1px;z-index:1;border:1px solid #7182ef;pointer-events:none}.data-editor-sheet td.cell-selected input{position:relative;z-index:2;background:transparent!important;user-select:none}
.title-input{height:auto;min-height:58px;padding:10px 12px;line-height:1.45;resize:vertical}.chart-meta h2{white-space:pre-line}

/* Preview-first customization rail */
.preview-panel{position:sticky;padding-right:92px!important}
.preview-tool-rail{position:absolute;z-index:24;right:14px;top:78px;width:62px;padding:7px 5px;display:grid;gap:4px;border:1px solid #dfe2de;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(31,38,46,.1);backdrop-filter:blur(12px)}
.preview-tool-rail button{min-height:58px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:9px;background:transparent;color:#7b838a;font:650 9px var(--font-sans);cursor:pointer;transition:background .15s,color .15s,transform .15s}
.preview-tool-rail button:hover{background:#f3f4ff;color:var(--blue);transform:translateY(-1px)}.preview-tool-rail button.active{background:#e9ecff;color:#3f55dd}.preview-tool-rail svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.customize-drawer{position:absolute;z-index:23;right:86px;top:78px;width:min(324px,calc(100% - 120px));max-height:calc(100vh - 112px);display:flex;flex-direction:column;border:1px solid #dfe2de;border-radius:14px;background:#fff;box-shadow:0 24px 60px rgba(31,38,46,.18);opacity:0;visibility:hidden;transform:translateX(18px);transition:opacity .18s,transform .18s,visibility .18s;overflow:hidden}
.customize-drawer.open{opacity:1;visibility:visible;transform:translateX(0)}.customize-drawer .customize-panel-header{min-height:72px;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e8e5;background:#fafbf9}.customize-drawer .customize-panel-header>div{display:flex;flex-direction:column}.customize-drawer .customize-panel-header span{color:#30373d;font-size:15px;font-weight:750}.customize-drawer .customize-panel-header small{margin-top:3px;color:#858d93;font-size:9px}.customize-drawer .customize-panel-header button{width:31px;height:31px;border:0;border-radius:7px;background:#eef0ed;color:#7d858b;font-size:20px;cursor:pointer}.customize-drawer .customize-panel-header button:hover{background:#e8ebff;color:var(--blue)}
.customize-drawer .quick-settings{padding:12px;display:block;overflow-y:auto;overscroll-behavior:contain}.customize-drawer .settings-section{margin-bottom:10px}.customize-drawer .settings-section:last-child{margin-bottom:0}.customize-drawer .settings-section summary{cursor:default}.customize-drawer .settings-section summary>em,.customize-drawer .settings-chevron{display:none}.customize-drawer .settings-section-body{padding:5px 8px 9px}.customize-drawer .settings-section-body>.setting-field:not(.preset-field):not(.ratio-field){grid-template-columns:minmax(82px,.75fr) minmax(112px,1.25fr);padding-left:4px;padding-right:4px;gap:8px}.customize-drawer .style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.customize-drawer .ratio-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px) and (min-width:761px){.preview-panel{padding-right:82px!important}.preview-tool-rail{right:10px}.customize-drawer{right:78px}}
@media(max-width:760px){.preview-panel{padding-right:15px!important;padding-bottom:104px!important}.preview-tool-rail{position:fixed;z-index:42;left:50%;right:auto;top:auto;bottom:12px;width:min(354px,calc(100vw - 24px));padding:5px;grid-template-columns:repeat(4,1fr);border-radius:14px;transform:translateX(-50%);box-shadow:0 12px 35px rgba(31,38,46,.2)}.preview-tool-rail button{min-height:50px;gap:2px}.preview-tool-rail svg{width:18px;height:18px}.customize-drawer{position:fixed;z-index:43;left:0;right:0;top:auto;bottom:0;width:100%;max-height:78vh;border-radius:19px 19px 0 0;transform:translateY(24px)}.customize-drawer.open{transform:translateY(0)}.customize-drawer .quick-settings{padding-bottom:24px}.workspace.mobile-preview .export-row{bottom:80px}}
