@import './flow-toolbar.css';
@import './flow-canvas.css';
@import './flow-inspector.css';
@import './input-editor.css';
@import './message-editor.css';
@import './game-editor.css';
@import './kit-reward-editor.css';
@import './kit-checkin-editor.css';
@import './kit-pointcard-editor.css';
@import './kit-mgm-editor.css';
@import './survey-editor.css';
@import './survey-period-picker.css';
@import './survey-results.css';
@import './condition-editor.css';
@import './pages-layout.css';
@import './url-editor.css';
@import './menu-report.css';
@import './report-calendar.css';
@import './persona-editor.css';
@import './dashboard.css';
@import './reply-settings.css';
@import './growth.css';
@import './contact-list-tools.css';
@import './contact-conversation.css';
@import './contact-import.css';
@import './test-user.css';
@import './reports.css';
@import './broadcast.css';
@import './connections.css';
@import './design-system.css';

:root{font-family:"Spark Open Sans","Segoe UI","Noto Sans TC","PingFang TC",sans-serif;font-size:13px;color:#222e46;background:#f5f7fc;--ink:#1f2c48;--muted:#66758f;--line:#e1e6ef;--surface:#fff;--blue:#2d63e9;--blue-100:#e9effe;--shadow:0 5px 18px #1f31551a}
*,*::before,*::after{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer;color:var(--ink);background:white;border:1px solid #dce3ef;border-radius:6px;padding:7px 11px;line-height:1.25;white-space:nowrap}button:hover:not(:disabled){background:#f0f4fc;border-color:#bdcdec}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,section:focus-visible{outline:2px solid #5e85ff;outline-offset:2px}button:disabled{cursor:default;opacity:.45}a{color:#2359d5;text-decoration:none}a:hover{text-decoration:underline}p{line-height:1.55}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.02em}h2{font-size:17px;letter-spacing:-.01em}h3{font-size:14px}input:not([type=checkbox]),select,textarea{border:1px solid #d9e2ef;border-radius:6px;background:#fff;color:var(--ink);padding:8px 9px;min-width:0;width:100%;line-height:1.3}textarea{resize:vertical;min-height:45px}input[type=checkbox]{accent-color:var(--blue);margin:0;inline-size:15px;block-size:15px}input:read-only:not([type=search]){color:#60708b;background:#f7f8fc}input:invalid:not(:placeholder-shown){border-color:#c68987}pre,code{font-family:Consolas,monospace}code{word-break:break-word}pre{white-space:pre-wrap;overflow-wrap:anywhere}ul{padding-left:20px}[hidden]{display:none!important}.muted,.field small{color:var(--muted)}.text-success{color:#247052}.danger{color:#a43145}.danger.solid{background:#a43145;color:#fff;border:0}.primary{background:var(--blue);color:white;border:1px solid var(--blue);font-weight:650}.primary:hover:not(:disabled){background:#2153cc;border-color:#2153cc}.bare{background:transparent;border-color:transparent;padding-inline:8px}.color{color:#2559d1}.dashed{border-style:dashed;color:#285bcf}.icon-button{padding:4px 7px;min-width:25px;background:transparent;border:1px solid transparent}.inline-actions,.inline-fields{display:flex;align-items:center;gap:8px}.inline-actions{flex-wrap:wrap}.inline-fields>.field{flex:1}.field{display:grid;gap:6px;font-size:12px;font-weight:650;min-width:0}.field:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between}.check-line{display:flex;align-items:center;gap:8px;margin-block:9px}.field input,.field textarea,.field select{font-weight:400}.empty-inline{color:var(--muted);padding:20px;text-align:center}.empty{display:grid;gap:10px;justify-items:center;margin:10vh auto 0;text-align:center;padding:25px;max-width:480px}.empty p{color:var(--muted)}.empty-icon{display:grid;place-items:center;width:38px;height:38px;background:#f6eaf0;color:#a43145;border-radius:50%;font-weight:bold;font-size:20px}
.secondary{width:223px;flex:0 0 223px;background:#fff;border-right:1px solid var(--line);display:flex;gap:3px;flex-direction:column;padding:15px 13px;overflow:auto}.section-title{font-size:14px;font-weight:700;padding:6px 12px 12px}.secondary a{padding:10px 12px;border-radius:6px;color:#4f607b}.secondary a:hover{background:#f5f7fb;text-decoration:none}.secondary a.active{background:#edf3ff;color:#2559d1;font-weight:650}.page-view,.flow-view{flex:1;min-width:0}.page-view{overflow:auto;padding:26px clamp(16px,3.1vw,46px) 44px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:20px}.page-heading p{color:#52637e;margin-top:7px}.heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.loading{display:grid;gap:13px;padding:22px}.loading span{height:42px;background:linear-gradient(90deg,#e9edf6,#f5f7fa,#e9edf6);border-radius:6px}.loading span:first-child{width:45%;height:24px}.loading p{color:var(--muted)}
.flow-view{display:flex;flex-direction:column;background:white}.flow-navigation{height:auto;flex:0 0 auto;background:white;border-bottom:1px solid var(--line)}.flow-tabs{height:35px;display:flex;align-items:end;gap:5px;padding:0 15px;border-bottom:1px solid #edf0f6;overflow-x:auto;scrollbar-width:none}.flow-tab{display:flex;align-items:center;gap:6px;padding:6px 10px 5px;min-width:88px;white-space:nowrap;border-bottom:2px solid transparent;color:#62718c;font-size:12px}.flow-tab a{color:inherit}.flow-tab.active{color:#285bcf;border-bottom-color:var(--blue);font-weight:700}.flow-tab button{border:0;background:transparent;padding:0 1px;color:#60708b}.breadcrumbs{min-height:31px;display:flex;gap:9px;align-items:center;padding:4px 23px;color:#667993;font-size:11px;overflow:auto;white-space:nowrap}.breadcrumbs a{color:#516889}.breadcrumbs span:last-child{color:#334a70}.toolbar{height:60px;flex:0 0 60px;display:flex;align-items:center;gap:15px;padding:0 22px;border-bottom:1px solid #dce3ed;background:#fff;position:relative;z-index:2}.toolbar button{font-weight:650}.toolbar-end{display:flex;align-items:center;gap:13px;margin-left:auto}.save-status{color:#387158;font-size:11px;white-space:nowrap}.save-status[data-state=failed],.save-status[data-state=conflict]{color:#a43145}.save-status[data-state=saving],.save-status[data-state=offline]{color:#85581b}.flow-canvas{--grid:20px;touch-action:none;user-select:none;position:relative;flex:1;min-height:240px;overflow:hidden;background-color:#f2f3f5;background-image:radial-gradient(#cbd2de9c 1px,transparent 1px);background-size:var(--grid) var(--grid)}.flow-stage,.node-layer,.edge-layer{position:absolute;inset:0;transform-origin:top left;width:100%;height:100%;overflow:visible}.flow-stage,.edge-layer,.node-layer{pointer-events:none}.node{pointer-events:auto;position:absolute;width:165px;padding:0;display:block;overflow:hidden;text-align:left;border-radius:12px;background:#fff;border:2px solid #fff;white-space:normal;box-shadow:0 3px 9px #28364b24;color:#17284b}.node:hover:not(:disabled){background:white;border-color:#abbee7}.node.selected,.node.selected:hover:not(:disabled){border-color:#4276f5;box-shadow:0 3px 13px #2f64ea55}.node.dirty:not(.selected){border-color:#dcb05a}.node-title{display:block;height:32px;line-height:32px;padding:0 9px;background:#e8effe;font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.node-body{display:flex;align-items:center;gap:8px;padding:9px;min-height:51px}.node-body i{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;background:#edf3ff;color:#396bec;font-size:17px;font-style:normal;flex:none}.node-body b,.node-body small{display:block}.node-body b{font-size:12px;font-weight:650}.node-body small{font-size:11px;color:#61718e;margin-top:2px}.node.subflow,.node.kit{min-height:104px}.node.subflow .node-body i{background:#326be9;color:white}.node.kit .node-title{background:#eee9fb}.node.kit .node-body i{background:#efe8fc;color:#7554bd}.node.start{display:grid;place-content:center;text-align:center;gap:5px;width:80px;height:80px;color:#367461;box-shadow:none;background:#f7fffb;border-color:#bcd6ca;border-radius:50%}.start-icon{font-size:18px}.edge path{fill:none;stroke-width:1.8}.edge.focused path{stroke-dasharray:5;animation:dash .5s linear infinite}.edge .edge-shadow{stroke-width:11;opacity:.17}.edge.muted{opacity:.32}.edge-label rect{fill:#f9fbff;stroke:#d3dff4;stroke-width:1}.edge-label text{fill:#33537d;font-size:10px}@keyframes dash{from{stroke-dashoffset:10}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001s!important;transition:none!important}}.canvas-tools{position:absolute;top:13px;right:15px;display:flex;gap:6px}.canvas-tools button,.zoom button{box-shadow:0 2px 7px #2c3c5610}.canvas-end{position:absolute;bottom:12px;left:16px;right:15px;display:flex;align-items:center;gap:10px;justify-content:flex-end;pointer-events:none}.canvas-end>*{pointer-events:auto}.legend{display:flex;gap:8px;margin-right:auto;padding:5px;background:#f4f6faed;border-radius:5px}.legend button{background:transparent;border:0;padding:3px;color:#52627d;font-size:11px}.legend i{display:inline-block;width:14px;height:2px;background:var(--path-color);vertical-align:3px;margin-right:4px}.legend .legend-off{opacity:.38}.zoom{display:flex;gap:3px}.zoom button{padding:6px 9px}.module-count{padding:6px 8px;border:1px solid #dce3ed;border-radius:6px;background:#fff;font-size:11px;color:#516581;white-space:nowrap}
.inspector{position:absolute;z-index:1;top:16px;bottom:50px;left:16px;width:325px;background:#f4f6f9;border-radius:18px;box-shadow:0 5px 19px #28385134;display:flex;flex-direction:column;overflow:hidden;user-select:text}.inspector-head{display:flex;gap:7px;align-items:center;background:#fff;min-height:48px;padding:7px 10px}.inspector-head strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;flex:1}.inspector-head>span{padding:4px 5px;border-radius:5px;background:#ecf0f8;font-size:9px;color:#5e7090;flex:none}.inspector-tabs,.page-tabs{display:flex;gap:11px;background:#fff;padding:0 12px;border-bottom:1px solid #e3e9f2}.inspector-tabs button,.page-tabs button{border:none;border-bottom:2px solid transparent;border-radius:0;background:white;color:#566783;padding:9px 6px}.inspector-tabs button.active,.page-tabs button.active{color:#245bdc;border-bottom-color:#2c61e8;font-weight:650}.inspector-body{padding:14px 14px 20px;overflow:auto;display:grid;gap:12px;align-content:start;flex:1;overscroll-behavior:contain}.inspector-body details{border-top:1px solid #dfe5ee;padding-top:10px}.inspector-body summary{cursor:pointer;color:#47628c}.inspector-body details[open]>*:not(summary){margin-top:9px}.inspector-footer{background:#fff;border-top:1px solid #e5eaf2;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;min-height:47px;gap:5px;font-size:10px}.inspector-footer>div{min-width:0;color:#627590}.inspector-footer span,.inspector-footer small{display:block;max-width:164px;overflow:hidden;text-overflow:ellipsis}.inspector-footer small{color:#7385a0;margin-top:3px}.edit-block,.subfield{display:grid;gap:9px;background:white;border:1px solid #dfe6f0;border-radius:8px;padding:10px}.subfield{background:#f7f9fd}.block-head{display:flex;justify-content:space-between;gap:6px;align-items:center;color:#2c426c}.block-head>div{display:flex}.card-step{display:flex;justify-content:space-between;align-items:center;background:#eef3fb;border-radius:5px;padding:3px 5px}.card-step small{color:var(--muted)}.subflow-info{display:grid;gap:10px;padding:16px 10px;background:white;border:1px solid #dfe6f0;border-radius:8px}.subflow-info i{font-style:normal;color:#2d63e9;font-size:27px}
.panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:16px;min-width:0}.panel-head{min-height:49px;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e6ebf3;gap:10px}.panel-head small{color:var(--muted)}.panel-body{padding:16px;display:grid;gap:13px;align-content:start}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}thead{background:#f5f7fb;color:#566781}th,td{padding:12px 15px;text-align:left;border-bottom:1px solid #edf0f5}th{font-weight:650;font-size:11px}tr:last-child td{border-bottom:none}tbody tr:hover{background:#fafbfe}td a{font-weight:650}.filter-bar{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:14px}.filter-bar>input{max-width:320px}.range-form,.audience-filter{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.audience-filter{margin-bottom:15px;padding:13px;background:white;border:1px solid var(--line);border-radius:8px}.audience-filter .field{flex:1;min-width:120px}.range-form input{width:135px}.range-form button{margin-bottom:1px}.toggle-group{display:flex;gap:2px;padding:3px;background:#e9eef9;border:1px solid #e4eaf5;border-radius:7px}.toggle-group button{border-color:transparent;background:transparent;color:#4f627f}.toggle-group .active{background:white;color:#245bdb;box-shadow:0 1px 4px #31486c21}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}.metric{background:white;border:1px solid var(--line);border-radius:8px;padding:13px;display:grid;gap:7px;min-height:92px}.metric span{font-size:11px;color:#4c607c;font-weight:650}.metric strong{font-size:25px;line-height:1.1;letter-spacing:-.045em}.metric small{font-size:10px;line-height:1.35;color:#71829c}.chart{display:grid;place-items:center;padding:9px 12px}.chart svg{width:100%;max-height:242px}.chart line{stroke:#e4eaf3}.chart text{font-family:inherit;font-size:11px;fill:#607394}.chart .chart-series{fill:none;stroke:#2e67ed;stroke-width:2.5}.chart circle{fill:#2e67ed;stroke:white;stroke-width:1.4}.freshness{color:#647593;font-size:11px}.report-tab{padding:13px 0;display:grid;gap:9px}.pill{display:inline-flex;align-items:center;border-radius:20px;font-size:11px;line-height:1.15;padding:4px 7px;color:#4c628a;background:#edf2fb;white-space:nowrap}.pill.green{color:#237252;background:#e8f7ee}.pill.red{color:#a73546;background:#f9e9ed}.pill.gold{color:#835418;background:#fff1d8}.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}.detail-list{margin:0;display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);gap:12px 20px;padding:14px 16px;align-items:start}.detail-list dt{color:#627591}.detail-list dd{margin:0;overflow-wrap:anywhere}.panel-body>.detail-list{padding:4px 0}.pager{display:flex;justify-content:flex-end;align-items:center;gap:9px;color:#687b99}.contact-name{display:flex;gap:8px;align-items:center}.contact-name small{display:block;color:#7587a2;margin-top:2px}.contact-avatar{background:#eaf0ff;color:#2c58be;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:700}.history{list-style:none;padding:0;margin:0}.history li{padding:11px 15px;display:grid;gap:4px;border-bottom:1px solid #e9edf5}.history li:last-child{border:0}.history li>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.history time,.history small{color:#657997;font-size:11px}.menu-group-meta{display:flex;align-items:center;gap:10px;padding:10px 15px;color:#546984}.menu-artwork{position:relative;display:grid;place-items:center;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#eeeff7,#dbe7fb);color:#4f6789}.menu-artwork img{width:100%;height:100%;object-fit:cover}.hotspot{position:absolute;border:2px dashed #2c64ee;background:#dce7ff77;display:grid;place-items:center;color:#163caa}.hotspot-coords{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.wizard-steps{padding:0;list-style:none;display:flex;gap:6px;margin:0 0 14px}.wizard-steps li{flex:1;display:flex;gap:7px;align-items:center;color:#667893;background:#eaf0fa;padding:9px;border-radius:6px}.wizard-steps b{background:#fff;border-radius:50%;width:24px;height:24px;font-size:11px;display:grid;place-items:center}.wizard-steps .active{color:#1e53d0;background:#e2ebff;font-weight:700}.wizard-steps .done b{background:#277c57;color:white}.wizard-body{max-width:760px}.wizard-footer{display:flex;justify-content:flex-end;gap:7px}.estimate{color:#3d5c8a;background:#edf3ff;padding:10px;border-radius:5px}.rule-row{margin:6px 0}.rule-row input{min-width:65px}.rule-row select{max-width:140px}
#dialog{color:var(--ink);width:min(510px,calc(100% - 26px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce3ef;border-radius:14px;box-shadow:0 12px 52px #142b5a57}.wide{width:min(850px,calc(100% - 26px))!important}#dialog::backdrop{background:#17274062}.dialog-head,.dialog-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.dialog-head{position:sticky;top:0;z-index:2}.dialog-footer{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end}.dialog-body{padding:17px;display:grid;gap:12px}.dialog-body ul{margin:0}.error-list{color:#a43145}.options{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option{min-height:45px;display:flex;align-items:center;gap:8px;white-space:normal;text-align:left}.option span{color:#245bdc;font-size:16px;background:#edf2ff;border-radius:6px;padding:4px;min-width:25px;text-align:center}.result{display:grid;gap:4px;white-space:normal;text-align:left;width:100%;margin-top:5px;background:white;border:1px solid #dce4ef;border-radius:6px;padding:9px}.result span,.result small{font-size:11px;color:#657898;display:block}.trash-result{display:flex;justify-content:space-between;align-items:center}.fixture-fields,.simulation{display:grid;grid-template-columns:1fr 1fr;gap:12px}.simulation>div{min-width:0}.simulation pre{background:#f0f3fa;padding:7px;border-radius:5px;font-size:11px;max-height:280px;overflow:auto}.phone{background:#e1ebfa;border:1px solid #ccdbf1;border-radius:11px;padding:10px 12px 14px;margin:0 auto 12px;min-height:145px;width:min(280px,100%);display:grid;align-content:start;gap:7px}.phone-top{padding:6px 0;border-bottom:1px solid #cad8ee;font-size:11px;color:#456185;font-weight:700}.bubble{background:white;border-radius:1px 11px 11px 11px;padding:10px;color:#29405f;white-space:pre-wrap;overflow-wrap:anywhere}.bubble button,.chat-actions button,.chat-actions span{display:inline-block;border:1px solid #c8d6ef;border-radius:12px;color:#2859c3;background:white;font-size:10px;margin:5px 4px 0 0;padding:4px 7px}.preview-card+.preview-card{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}#toast{display:none;position:fixed;z-index:20;bottom:18px;right:17px;max-width:min(375px,calc(100% - 34px));background:#20324e;color:white;border:1px solid #405777;border-radius:8px;padding:10px 13px;box-shadow:var(--shadow);font-size:12px}#toast.visible{display:block}
.upload-picker{padding:8px;background:#eff4fc;border:1px dashed #c7d6eb;border-radius:6px}.upload-picker input[type=file]{font-size:11px;padding:6px;background:white;cursor:pointer}.upload-picker small{font-weight:400}.bubble-image{display:block;width:100%;max-height:200px;object-fit:contain;border-radius:5px}.qr-body{justify-items:center;text-align:center}.qr-body canvas{max-width:100%;height:auto}
@media(max-width:1050px){.secondary{width:174px;flex-basis:174px}.toolbar{gap:6px;padding:0 13px}.toolbar-end{gap:6px}.desktop-only{display:none}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}}
.insight-heading{font-size:17px;font-weight:700;padding:11px 23px 6px;background:white}
.insight-toolbar{height:auto;min-height:60px;flex:0 0 auto;gap:12px;flex-wrap:wrap;padding-block:8px}
.insight-toolbar .pill{color:#475d83}
.insight-toolbar .range-form{flex:1;min-width:0;font-size:11px}
.insight-toolbar .range-form label{display:grid;gap:3px;color:#4e6385}
.insight-toolbar .range-form input{width:126px;max-width:100%}
.insight-toolbar .range-form select{width:175px;max-width:100%}
.insight-freshness{background:#f9fbfe;color:#5d7192;padding:5px 23px;font-size:11px;border-bottom:1px solid var(--line)}
.insight-metrics{margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(30px,auto);gap:0 10px;background:white;border:1px solid #dfe6f0;border-radius:12px;padding:6px 12px;align-items:baseline}
.insight-metrics dt,.insight-metrics dd{margin:0;padding:9px 0;border-bottom:1px solid #eef1f7;font-size:12px}
.insight-metrics dt{color:#56708d}
.insight-metrics dd{text-align:right;font-variant-numeric:tabular-nums;font-weight:650;color:#233b64}
.insight-metrics dt:last-of-type,.insight-metrics dd:last-of-type{border:0}
.insight-inputs{margin:0;padding-left:22px;display:grid;gap:8px}
.insight-inputs small{display:block;color:var(--muted)}
.kit-pager{justify-content:center;margin:3px 0 12px}
.heading-actions input[type=search]{width:clamp(140px,22vw,260px)}
.menu-collection{margin-top:17px}
.collection-head{background:#eaf0fa;border:1px solid #dce6f6;border-radius:7px;display:flex;gap:8px;align-items:center;justify-content:space-between;min-height:46px;padding:9px 13px;margin-bottom:8px}
.collection-head h2{color:#2a456e;font-size:15px}
.menu-slot h3{padding:10px 15px;background:#fff;font-size:12px;color:#50678b}
.menu-slot+.menu-slot{border-top:1px solid #e3eaf5;margin-top:6px}
.menu-slot .empty-inline{text-align:left;padding:9px 0}
.sort-header{border:0;background:none;font:inherit;color:inherit;line-height:inherit;padding:0;text-align:left}
.sort-header:hover:not(:disabled){background:none;color:#2259d8;text-decoration:underline}
th[aria-sort=ascending],th[aria-sort=descending]{color:#285bcf}
.broadcast-tables table{table-layout:fixed;min-width:840px;white-space:normal}
.broadcast-tables th,.broadcast-tables td{padding-inline:11px;overflow-wrap:anywhere}
.broadcast-tables th:first-child{width:21%}
.broadcast-tables th:nth-child(2),.broadcast-tables th:nth-child(3){width:12%}
.broadcast-tables th:nth-child(4),.broadcast-tables th:nth-child(5){width:10%}
.broadcast-tables th:nth-child(6),.broadcast-tables th:nth-child(7){width:11%}
.broadcast-tables th:last-child{width:13%}
.broadcast-tables .pill,.broadcast-tables .sort-header{white-space:normal}
@media(max-width:950px){.insight-toolbar .range-form input{width:118px}.insight-toolbar .range-form select{width:140px}.insight-heading,.insight-freshness{padding-inline:12px}}
@media(max-width:750px){.toolbar.insight-toolbar{height:auto;flex-basis:auto;overflow:visible;min-height:48px}.insight-toolbar .range-form{flex-basis:100%;order:3;flex-wrap:wrap}.insight-toolbar .range-form label{flex:1;min-width:90px}.insight-toolbar .toolbar-end{margin-left:auto}.insight-toolbar .range-form input,.insight-toolbar .range-form select{width:100%}.heading-actions input[type=search]{width:135px}}
.review-rules{padding:9px 12px;border:1px solid #e0e8f4;border-radius:7px;color:#4e6282}
.review-rules summary{cursor:pointer;color:#214d9a}
.review-rules ul{margin:9px 0 0}
@media(max-width:520px){.flow-canvas .canvas-end{flex-wrap:wrap;row-gap:3px}.flow-canvas .legend{flex-basis:100%;order:3;justify-content:space-around}.flow-canvas .inspector{bottom:73px}}
@media(max-width:750px){.secondary{width:124px;flex-basis:124px;padding:10px 5px}.page-view{padding:15px 10px}.page-heading{align-items:flex-start}.two-columns{grid-template-columns:1fr}.toolbar{gap:3px;overflow:auto;height:49px;flex-basis:49px;padding:0 6px}.toolbar button{font-size:10px;padding:5px}.toolbar-end{gap:3px}.save-status{font-size:9px}.inspector{width:min(325px,calc(100% - 14px));left:7px;top:44px;bottom:47px}.canvas-tools{top:6px;right:6px}.canvas-end{left:6px;right:6px;bottom:6px;gap:3px}.legend{gap:1px;padding:3px}.legend button{font-size:9px}.legend i{width:6px}.page-heading h1{font-size:21px}.filter-bar{flex-wrap:wrap}.form-fields,.fixture-fields,.simulation{grid-template-columns:1fr}.wizard-steps li{padding:6px;font-size:10px;gap:3px}.wizard-steps b{height:19px;width:19px}}

@font-face {
  font-family: "Spark Open Sans";
  src: url("./open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
:root { --staff-header-height: 48px; --staff-font: "Spark Open Sans", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif; }
#app[data-canvas-route="editor"], .global, .rail { font-family: var(--staff-font); }
.global {
  height: var(--staff-header-height); border-top: 0; display: flex; align-items: center; gap: 16px;
  padding: 0 20px 0 13px; background: linear-gradient(90deg,#2a2f69,#313f81 50%,#2a2f69); color: #fff;
  position: relative; z-index: 5;
}
.brand { color: #fff; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 28px; height: 28px; flex: none; }
.staff-signin h1 { display: flex; align-items: center; gap: 12px; }
.staff-signin .brand-mark { width: 44px; height: 44px; }
.staff-account, .staff-account summary { display: flex; align-items: center; }
.staff-account { margin-left: auto; min-width: 0; gap: 14px; }
.staff-account details { position: relative; min-width: 0; }
.staff-account summary { color: #fff; min-width: 0; gap: 5px; font-size: 14px; font-weight: 400; cursor: pointer; list-style: none; }
.staff-account summary::-webkit-details-marker { display: none; }
.staff-account summary::after { content: ""; flex: none; border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor; }
.staff-account summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.staff-account svg { width: 21px; height: 21px; flex: none; }
.staff-channel span, .staff-profile span:last-child { max-width: 15em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.staff-account .staff-profile { gap: 4px; }
.staff-profile::after { margin-inline-start: 2px; }
.staff-profile { border-left: 1px solid #ffffff45; padding-left: 16px; }
.staff-profile .avatar { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #ffc9ea; color: #2a2f69; font-weight: 500; }
.staff-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 144px; padding: 5px; border: 1px solid #d9dae1; border-radius: 7px; background: white; box-shadow: 0 4px 16px #000a3a26; }
.staff-menu a, .staff-menu button { display: block; width: 100%; padding: 7px 9px; border: 0; border-radius: 4px; background: transparent; color: #263455; text-align: left; white-space: nowrap; }
.staff-menu a:hover, .staff-menu button:hover:not(:disabled), .staff-menu :focus-visible { background: #eaf1ff; text-decoration: none; }
.freshness i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #61cda0; margin-right: 6px; vertical-align: 1px; }
html:has(#app > .workspace), body:has(#app > .workspace) { height: 100%; overflow: clip; overscroll-behavior: none; }
#app:has(> .workspace) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: clip; }
.global { flex: none; }
.workspace { display: flex; position: relative; flex: 1; min-height: 0; }
/* Keep absolutely positioned helpers inside the pane that scrolls their content. */
#view.page-view { position: relative; }
.rail { width: 57px; flex: 0 0 57px; position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; background: #fff; border-right: 1px solid #e1e2e6; overflow-y: auto; scrollbar-width: none; }
.rail-link { flex: 0 0 36px; height: 36px; width: 36px; display: grid; place-items: center; margin-block: 10px; border-radius: 8px; border: 0; padding: 0; background: #fff; color: #464e66; }
.rail:not(.expanded) { padding-inline-end: 2px; padding-block-start: 1px; }
.rail [data-nav] { color: #a5a9b9; }
.rail-link svg { width: 24px; height: 24px; stroke-width: 1.9; }
.rail-link:hover { background: #edf3fb; text-decoration: none; }
.rail-link.active { background: #296aff; color: #fff; }
.rail.expanded { width: 180px; flex-basis: 180px; align-items: start; }
.rail.expanded .rail-link { margin-inline: 10px; }
.rail.expanded a { width: 160px; padding-inline: 8px; display: flex; gap: 10px; align-items: center; }
.rail.expanded a::after { content: attr(aria-label); font-weight: 500; font-size: 13px; }
@media(max-width:700px) {
  .rail { width: 43px; flex-basis: 43px; }
  .rail-link { margin-block: 5px; }
}
@media(max-width:600px) {
  .global { gap: 8px; padding-inline: 9px; }
  .brand { font-size: 16px; gap: 5px; }
  .staff-account { gap: 5px; }
  .staff-profile { padding-left: 5px; }
  .staff-profile span:last-child { display: none; }
  .staff-account .staff-channel { font-size: 11px; }
}

.dialog-head button[data-close] {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  line-height: 1;
}
.dialog-head button[data-close] svg { display: block; pointer-events: none; }



@media (max-width: 650px) {
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
  .page-heading > div { min-width: 0; max-width: 100%; }
  .heading-actions:empty { display: none; }
  .filter-bar .toggle-group { max-width: 100%; flex-wrap: wrap; }
  .filter-bar .toggle-group button { flex: 1 1 auto; }
}
/* Contact detail: catalog-unresolved tags and parameters stay visible but marked. */
.property-marker { color: #6b7c96; font-size: 10px; font-weight: 500; }
.pill .property-marker { margin-left: 5px; }
.pill.property-unresolved { background: #f3f4f7; color: #55647c; box-shadow: inset 0 0 0 1px #c9d0dc; }
[data-contact-tags] { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Broadcast audience rows: the original's day, month and tag-join labels stay readable and wrap on phones. */
.rule-row { flex-wrap: wrap; }
.rule-row select { width: auto; }
.rule-row select[name=field] { max-width: 240px; }
.rule-row[data-kind=lastPush] select[name=value], .rule-row[data-kind=tag] select[name=op] { max-width: 100%; }
.rule-row .rule-fixed { white-space: nowrap; }
.rule-row input { flex: 1 1 160px; width: auto; }
/* Broadcast 測試訊息 test message (broadcast-test-message.js). */
.broadcast-test { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafcff; }
.broadcast-test p { overflow-wrap: anywhere; }
.broadcast-test-note { color: #85581b; }
.broadcast-test-code code { display: inline-block; margin: 4px 0; padding: 6px 10px; font-size: 16px; letter-spacing: .06em; background: #eef3fe; border-radius: 6px; }
.broadcast-test-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 6px; background: #fff6e8; }
.broadcast-test-confirm p { flex-basis: 100%; font-weight: 650; }
.broadcast-test-send { justify-self: start; }
.broadcast-test-result:empty { display: none; }
/* Settings > Bridge failures: the reason and what to do wrap inside the scrolling table. */
.review-guidance { display: block; min-width: 16rem; max-width: 30rem; white-space: normal; line-height: 1.45; }
/* Round 16: Settings > Export Logs and per-button click figures. */
.export-log-note { margin: 0 16px 8px; font-size: 12px; }
.export-log-download { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.export-log-download input { width: 4.5rem; }
.export-log-rows { display: block; color: #5b6472; font-size: 12px; margin-top: 2px; }
.button-clicks-table td:last-child, .button-clicks-table th:last-child { text-align: right; }
.button-clicks-note { color: #5b6472; font-size: 12px; margin: 8px 0 0; }

[data-kit-activity] > .field { display:inline-grid; gap:4px; margin:12px 16px 4px; max-width:calc(100% - 32px); }
[data-kit-activity] > .muted { margin:8px 16px 12px; }
[data-kit-activity] > button { margin:8px 16px; }
[data-kit-activity] details { max-width:30rem; overflow-wrap:anywhere; }
[data-kit-activity] details summary { cursor:pointer; }
[data-kit-activity] details dd { margin-inline-start:0; white-space:pre-wrap; }
