:root{--bg:#f7f8f5;--paper:#fff;--ink:#223932;--muted:#87918a;--sub:#63716a;--line:#e7ebe5;--mint:#d8f4de;--mint-strong:#b9e9c8;--green:#205e48;--green-dark:#173f32;--warn:#806329;--warn-bg:#faf5e9;--danger:#ae4f43;--shadow:0 8px 30px #183c2a08;--radius:15px;--font:Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:var(--font);font-size:14px;color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.52}
button,a,input,select{outline-offset:4px}
button:focus-visible,a:focus-visible{outline:2px solid var(--green)}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}
button{color:inherit}
svg{display:block;flex-shrink:0}
h1,h2,h3,p{margin:0}
button svg,a svg{width:17px;height:17px}
.icon{width:19px;height:19px;stroke-width:1.65}
button{border:0;background:none}
button:disabled:hover{transform:none}
.muted{color:var(--muted)}
.subtle{color:var(--sub)}
.mono{font-family:"SFMono-Regular",Consolas,monospace;font-variant-numeric:tabular-nums}
.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:var(--muted)}
.boot-screen{min-height:100svh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px}
.boot-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:var(--mint);font-size:32px;font-weight:750;color:var(--green)}
.boot-screen h1{font-size:24px}
.boot-screen h1 span{font-size:11px;letter-spacing:3px;margin-left:8px;font-weight:500}
.boot-screen p{color:var(--sub);display:flex;align-items:center;gap:9px}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid #ccdbd0;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.error-block{text-align:center;padding:64px 24px}
.error-block h2{font-size:19px;margin:16px 0 10px}
.error-block p{color:var(--sub);margin-bottom:22px;line-height:1.8}
.error-block>.icon{width:30px;height:30px;margin:auto;color:var(--warn)}
.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--bg);padding:32px}

.brand{display:flex;align-items:center;gap:11px}
.brand-icon{width:35px;height:35px;display:grid;place-items:center;background:var(--green);border-radius:11px;color:#d9f4df;box-shadow:0 4px 8px #224c3210}
.brand-icon svg{width:24px;height:24px}
.brand-name{font-size:19px;letter-spacing:2px;font-weight:650}
.brand-en{display:block;font-size:8px;letter-spacing:2px;font-weight:500;margin-top:3px;color:var(--sub)}
.sidebar{width:210px;position:fixed;inset:0 auto 0 0;background:#fcfdfb;border-right:1px solid var(--line);padding:31px 20px 20px;display:flex;flex-direction:column;z-index:20}
.sidebar .brand{padding-left:8px}
.nav-label{font-size:10px;color:#9aa39c;letter-spacing:1.5px;margin:48px 15px 15px}
.nav{display:flex;flex-direction:column;gap:7px}
.nav-btn{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:9px;color:var(--sub);font-size:13px;text-align:left;transition:background .18s,color .18s}
.nav-btn:hover{background:#f0f4ef}
.nav-btn.active{background:#e8f2e9;color:var(--green);font-weight:600}
.nav-btn.active:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}
.sidebar-bottom{margin-top:auto}
.sidebar-note{border:1px solid var(--line);border-radius:12px;padding:15px 13px;margin-bottom:19px;background:#f6f8f3}
.sidebar-note .icon{color:#6b8873;margin-bottom:12px}
.sidebar-note strong{font-size:12px;font-weight:550}
.sidebar-note p{font-size:10px;color:var(--muted);line-height:1.8;margin-top:7px}
.account{display:flex;align-items:center;gap:9px;padding:14px 5px 0;border-top:1px solid var(--line)}
.avatar{width:31px;height:31px;background:#e8ede4;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:11px}
.account-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:89px;white-space:nowrap}
.account-role{color:var(--muted);font-size:9px;margin-top:4px}
.account .icon-btn{margin-left:auto}
.workspace{margin-left:210px;min-height:100svh}
.topbar{height:73px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fbfcf9cc;gap:16px}
.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}
.breadcrumb strong{font-weight:500;color:var(--sub)}
.topbar-right{display:flex;align-items:center;gap:20px}
.local-pill{display:flex;align-items:center;gap:7px;font-size:10px;color:#5b7865;background:#eff5ed;padding:6px 10px;border:1px solid #e4eddf;border-radius:6px}
.status-dot{width:5px;height:5px;background:#6a9b76;border-radius:50%}
.topbar-date{color:var(--muted);font-size:10px}
.mobile-menu{display:none}
.main{max-width:1570px;margin:0 auto;padding:36px 40px 22px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}
.page-heading h1{font-size:29px;font-weight:620;letter-spacing:-1px;line-height:1.4}
.page-heading .eyebrow{margin-bottom:9px}
.page-heading p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.8}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid var(--line);border-radius:8px;line-height:1.35;font-size:12px;font-weight:550;background:var(--paper);white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s;text-decoration:none}
.btn:hover{text-decoration:none;background:#f5f8f3;border-color:#cdd9cc}
.btn-primary{background:var(--green);color:white;border-color:var(--green);box-shadow:0 3px 7px #205e4810}
.btn-primary:hover{background:var(--green-dark);border-color:var(--green-dark)}
.btn-soft{background:#edf5ed;color:var(--green);border-color:#deebdf}
.btn-sm{padding:7px 11px;font-size:11px}
.btn-danger{color:var(--danger)}
.icon-btn{width:31px;height:31px;border-radius:7px;display:inline-grid;place-items:center;color:var(--sub)}
.icon-btn:hover{background:#eaf1e8;color:var(--green)}
.icon-btn svg{width:16px;height:16px}
.text-btn{font-size:11px;color:var(--green);padding:4px 0;display:inline-flex;align-items:center;gap:5px}
.text-btn:hover{text-decoration:underline}
.text-btn svg{width:13px;height:13px}
.notice{display:flex;align-items:flex-start;gap:9px;padding:12px 15px;border-radius:8px;background:#eff3eb;color:#64765d;font-size:11px;line-height:1.8;border:1px solid #e4eade}
.notice>.icon{width:15px;height:15px;margin-top:2px}
.notice strong{font-weight:600}
.notice a,.notice button{color:inherit;text-decoration:underline;white-space:nowrap;font-size:inherit;padding:0}
.notice-warn{background:var(--warn-bg);color:var(--warn);border-color:#eee5ce}
.local-notice{margin-bottom:23px}
.local-notice .notice-body{flex:1}
.local-notice .text-btn{margin-left:auto;align-self:center}
.section-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:16px}
.section-controls h2{font-size:13px;font-weight:600}
.section-controls h2 span{font-size:10px;color:var(--muted);font-weight:400;margin-left:9px}
.segmented{display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:7px;background:#edf0e9;gap:2px}
.segmented button{font-size:10px;color:var(--muted);padding:6px 13px;border-radius:5px}
.segmented button.active{color:var(--ink);background:white;box-shadow:0 1px 4px #18351c0a;font-weight:600}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}
.kpi{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow);overflow:hidden}
.kpi.featured{background:#edf6ed;border-color:#dceadb}
.kpi-label{font-size:11px;color:var(--sub);display:flex;justify-content:space-between;align-items:center;gap:8px}
.kpi-label>.icon{color:#829582;width:16px;height:16px}
.kpi-value{font-size:32px;font-weight:560;letter-spacing:-1.2px;line-height:1;margin-top:19px;font-variant-numeric:tabular-nums}
.kpi-foot{font-size:9px;color:var(--muted);margin-top:13px;line-height:1.5}
.kpi-foot b{font-weight:500;color:var(--green)}
.chart-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(245px,1fr);gap:20px;margin-bottom:25px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-head{padding:21px 24px 0;display:flex;justify-content:space-between;align-items:center;gap:10px}
.panel-head h2{font-size:13px;font-weight:600}
.panel-head p{font-size:10px;color:var(--muted);margin-top:6px}
.chart-legend{display:flex;gap:14px;font-size:9px;color:var(--sub);flex-wrap:wrap}
.legend-item{display:flex;align-items:center;gap:5px}
.legend-line{display:inline-block;width:13px;height:2px;border-radius:2px;background:var(--green)}
.legend-line.light{background:#a9c1ae}
.trend-wrap{padding:14px 16px 0;position:relative;min-height:203px}
.trend-svg{width:100%;height:210px;overflow:visible}
.trend-svg text{font-family:var(--font);fill:#9aa49b;font-size:10px;font-variant-numeric:tabular-nums}
.chart-footer{border-top:1px solid #f0f2ed;margin:0 24px;padding:11px 0;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9aa39b;gap:12px}
.chart-empty{position:absolute;inset:20px 40px 47px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.chart-empty span{padding:9px 13px;border:1px solid #e9eee6;border-radius:7px;background:#fffffff0;font-size:10px;color:var(--muted)}
.chart-tooltip{position:absolute;pointer-events:none;background:var(--green-dark);color:white;border-radius:8px;padding:11px 13px;font-size:10px;box-shadow:0 5px 15px #173f3220;z-index:3;min-width:130px;transform:translateX(-50%);top:45px}
.chart-tooltip[hidden]{display:none}
.chart-tooltip p{opacity:.65;margin-bottom:8px;font-size:9px}
.chart-tooltip div{display:flex;justify-content:space-between;gap:19px;margin-top:5px}
.chart-tooltip b{font-weight:500}
.chart-hit{fill:transparent;cursor:crosshair}
.chart-hit:focus{outline:none;fill:#d8eadc33}
.channel-content{padding:21px 24px 17px}
.donut-wrap{display:flex;justify-content:center;position:relative;height:140px;margin-bottom:19px}
.donut{width:142px;height:142px;transform:rotate(-90deg)}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.donut-center strong{font-size:26px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
.donut-center span{font-size:9px;color:var(--muted)}
.channel-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-top:13px;gap:9px}
.channel-name{display:flex;align-items:center;gap:8px;color:var(--sub)}
.channel-dot{height:6px;width:6px;border-radius:2px;background:var(--green)}
.channel-dot.light{background:#b9d1bf}
.channel-count{margin-left:auto;font-variant-numeric:tabular-nums}
.channel-percent{width:41px;text-align:right;font-size:10px;color:var(--muted)}
.table-panel{overflow:hidden}
.table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:21px 24px 18px}
.table-heading h2{font-size:14px;font-weight:600;display:flex;align-items:center;gap:9px}
.count-badge{padding:2px 6px;background:#eef3eb;border-radius:4px;font-size:9px;color:var(--sub);font-weight:500}
.table-tools{display:flex;gap:9px;align-items:center}
.search-box{display:flex;gap:8px;align-items:center;padding:8px 11px;background:#f9faf7;border:1px solid var(--line);border-radius:7px}
.search-box .icon{width:14px;height:14px;color:#9aa397}
.search-box input{font-size:10px;width:155px;border:0;outline:none;background:transparent;color:var(--ink)}
.search-box:focus-within{border-color:#8caf95;box-shadow:0 0 0 2px #d8eadb66}
.search-box input::placeholder{color:#a0a89f}
.filter-select{font-size:10px;padding:8px 9px;border:1px solid var(--line);background:white;border-radius:7px;color:var(--sub);max-width:120px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th{background:#f8faf6;padding:12px 16px;font-size:9px;font-weight:500;color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
th:first-child,td:first-child{padding-left:24px}
th:last-child,td:last-child{padding-right:24px}
td{padding:17px 16px;border-bottom:1px solid #edf0e9;font-size:11px}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fbfdf9}
.link-cell{display:flex;align-items:center;gap:11px;min-width:190px}
.link-symbol{width:32px;height:34px;display:grid;place-items:center;border:1px solid #e4ebe0;border-radius:8px;background:#f1f6ed;color:#6c8b6c;flex-shrink:0}
.link-symbol .icon{width:16px;height:16px}
.link-title{font-size:12px;text-align:left;font-weight:550;max-width:235px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;padding:0}
.link-title:hover{color:var(--green);text-decoration:underline}
.link-destination{color:#9aa298;font-size:9px;max-width:220px;overflow:hidden;text-overflow:ellipsis;margin-top:6px}
.tag{font-size:9px;padding:4px 7px;border-radius:4px;background:#f0f3eb;color:#7a8670;display:inline-block;max-width:100px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.table-short{display:flex;align-items:center;gap:4px}
.table-short code{font-size:10px;color:var(--sub)}
.table-number{font-size:12px;font-variant-numeric:tabular-nums;font-weight:550}
.table-status{display:inline-flex;gap:5px;align-items:center;font-size:9px;color:#66845c;padding:4px 7px;border-radius:4px;background:#f0f6ea}
.table-status .status-dot{width:4px;height:4px}
.table-status.paused{background:#f2f2ee;color:#95968d}
.table-status.paused .status-dot{background:#a6aaa0}
.table-actions{display:flex;align-items:center;gap:2px}
.table-date{font-size:9px;color:var(--muted)}
.table-footer{display:flex;justify-content:space-between;gap:15px;padding:13px 24px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);line-height:1.6}
.empty-state{padding:43px 20px 40px;display:flex;flex-direction:column;align-items:center;text-align:center}
.empty-illustration{width:76px;height:63px;position:relative;margin-bottom:16px}
.empty-card{position:absolute;left:9px;top:5px;width:45px;height:49px;border:1px solid #d9e5d6;border-radius:9px;background:#f6f9f2;transform:rotate(-10deg)}
.empty-card.front{left:24px;top:10px;transform:rotate(8deg);background:white;display:grid;place-items:center;box-shadow:0 4px 9px #22432a08}
.empty-card.front svg{width:22px;height:22px;color:#729773}
.empty-state h3{font-size:14px;font-weight:550}
.empty-state p{font-size:11px;color:var(--muted);line-height:1.9;max-width:420px;margin:10px 0 19px}
.empty-state .btn{font-size:11px}
.page-footer{display:flex;justify-content:space-between;gap:15px;color:#a0a69d;font-size:9px;line-height:1.8;padding:21px 0 0}
.footer-wordmark{letter-spacing:2px;font-size:8px;white-space:nowrap}
.overview-note{padding:22px 24px;margin-bottom:20px;display:flex;gap:13px;align-items:flex-start}
.overview-note>.icon{color:#83a487;margin-top:2px}
.overview-note h3{font-size:12px;font-weight:550;margin-bottom:8px}
.overview-note p{color:var(--muted);font-size:11px;line-height:1.9}
.skeleton{background:linear-gradient(90deg,#eaf0e7 25%,#f4f7f1 50%,#eaf0e7 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}
@keyframes shimmer{to{background-position:-200% 0}
}
.skeleton-kpi{height:128px}
.skeleton-chart{height:285px;margin-bottom:23px}
.skeleton-table{height:250px}

.auth-page{min-height:100svh;display:grid;grid-template-columns:minmax(430px,1.1fr) minmax(400px,.9fr);background:#fbfcf9}
.auth-story{padding:48px clamp(35px,5.5vw,94px) 30px;display:flex;flex-direction:column;border-right:1px solid #e0e7dc;background:radial-gradient(ellipse at 37% 66%,#e9f2e1 0%,transparent 58%),#f2f5ed;min-height:100svh;overflow:hidden}
.auth-story>.brand{margin-bottom:75px}
.auth-story h1{font-size:clamp(33px,3.3vw,49px);font-weight:570;line-height:1.5;letter-spacing:-1.8px}
.auth-story h1 span{color:#6d8e6c}
.auth-story>.story-intro{color:#83917e;font-size:12px;line-height:2.05;margin-top:18px;max-width:360px}
.flow-card{margin:44px 0 30px;padding:25px 20px 23px;border:1px solid #e0e9d8;background:#ffffffb8;border-radius:18px;box-shadow:0 12px 35px #33512e05}
.flow-label{font-size:9px;color:#8f9e87;letter-spacing:1.5px;margin-bottom:27px}
.flow{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.flow-step{display:flex;flex-direction:column;align-items:center;gap:11px;min-width:62px}
.flow-symbol{height:45px;width:45px;border-radius:13px;border:1px solid #e0e9d7;background:#f6f9f1;display:grid;place-items:center;color:#65865f}
.flow-step:last-child .flow-symbol{background:var(--green);color:#dbefcf;border-color:var(--green)}
.flow-symbol>.icon{height:21px;width:21px}
.flow-step span{font-size:10px;color:#829279}
.flow-arrow{flex:1;height:1px;background:#d3dfca;margin-top:22px;position:relative;min-width:10px}
.flow-arrow:after{content:"";position:absolute;right:0;top:-2px;width:4px;height:4px;border-right:1px solid #d3dfca;border-top:1px solid #d3dfca;transform:rotate(45deg)}
.feature-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:45px}
.feature-list .icon{width:17px;height:17px;color:#6f8664;margin-bottom:12px}
.feature-list h3{font-size:11px;font-weight:550}
.feature-list p{font-size:10px;color:#8a9882;line-height:1.8;margin-top:7px}
.story-footer{margin-top:auto;font-size:9px;color:#95a18c;display:flex;align-items:center;gap:8px;line-height:1.8}
.story-footer>.icon{width:13px;height:13px}
.auth-side{display:flex;align-items:center;justify-content:center;padding:45px 45px 80px;position:relative}
.auth-local{position:absolute;right:35px;top:35px}
.auth-card{width:100%;max-width:355px}
.auth-step{display:inline-flex;gap:8px;align-items:center;color:#6b8964;font-size:10px;margin-bottom:22px}
.step-dot{height:6px;width:6px;border-radius:50%;background:#b4c8a9}
.step-dot.current{background:#5a8152;width:21px;border-radius:3px}
.auth-card h2{font-size:27px;font-weight:570;letter-spacing:-.6px}
.auth-card>.auth-desc{font-size:11px;color:var(--muted);line-height:1.9;margin-top:11px;margin-bottom:30px}
.field{margin-bottom:20px}
.field label{display:block;font-size:11px;font-weight:550;margin-bottom:9px}
.field label span{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}
.input{width:100%;border:1px solid #dfe6da;border-radius:8px;background:#fff;padding:12px 13px;font-size:12px;line-height:1.5;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
.input:focus{border-color:#86a57d;box-shadow:0 0 0 3px #e6f0df}
.input::placeholder{color:#a6aea0}
.input:disabled{background:#f4f6f0;color:#8d9786}
.field-hint{font-size:10px;color:var(--muted);line-height:1.8;margin-top:8px}
.password-wrap{position:relative}
.password-wrap .input{padding-right:45px}
.password-wrap .icon-btn{position:absolute;right:8px;top:8px}
.full-width{width:100%}
.auth-submit{padding:13px;margin-top:4px}
.auth-privacy{font-size:9px;color:#96a08e;line-height:1.8;display:flex;gap:7px;align-items:flex-start;margin-top:17px}
.auth-privacy>.icon{width:13px;height:13px;flex-shrink:0;margin-top:2px}
.auth-notice{margin-top:25px;font-size:10px}
.inline-error{background:#fcf1ed;border:1px solid #f0dcd4;color:var(--danger);font-size:11px;line-height:1.8;border-radius:7px;padding:10px 12px;margin:0 0 19px}
.inline-error:empty{display:none}

.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}
.guide-card{padding:25px}
.guide-number{font-size:10px;letter-spacing:1px;color:#91a488;margin-bottom:20px}
.guide-card>.icon{color:#73936a;width:25px;height:25px;margin-bottom:20px}
.guide-card h2{font-size:15px;font-weight:550;margin-bottom:12px}
.guide-card p{font-size:12px;line-height:1.9;color:var(--sub)}
.guide-section{padding:26px 28px;margin-top:20px}
.guide-section h2{font-size:16px;font-weight:550;margin-bottom:20px}
.guide-section h3{font-size:12px;font-weight:600;margin-top:21px;margin-bottom:9px}
.guide-section p,.guide-section li{font-size:12px;color:var(--sub);line-height:2}
.guide-section ul{padding-left:19px;margin:8px 0 0}
.guide-section code{font-size:11px;background:#f1f5ed;padding:2px 5px;border-radius:4px;color:var(--green)}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:22px;align-items:start}
.settings-panel{padding:26px}
.settings-panel h2{font-size:15px;font-weight:550;margin-bottom:9px}
.settings-panel>.subtext{color:var(--muted);font-size:11px;line-height:1.9;margin-bottom:24px}
.settings-panel .notice{margin:0 0 23px}
.settings-meta{margin-top:25px;border-top:1px solid var(--line)}
.settings-row{display:flex;justify-content:space-between;gap:18px;font-size:11px;padding:14px 0;border-bottom:1px solid var(--line);color:var(--sub)}
.settings-row strong{font-weight:500;color:var(--ink)}
.settings-meta-note{font-size:10px;color:var(--muted);line-height:1.9;margin-top:16px}

dialog{border:1px solid var(--line);color:var(--ink);background:var(--paper);padding:0;box-shadow:0 25px 100px #172d242b}
dialog::backdrop{background:#1e302d30;backdrop-filter:blur(3px)}
dialog:not([open]){display:none}
.modal{width:min(480px,calc(100vw - 32px));border-radius:18px;max-height:calc(100svh - 40px)}
.modal-head{padding:23px 25px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.modal-head h2{font-size:18px;font-weight:580}
.modal-head p{font-size:10px;color:var(--muted);margin-top:7px;line-height:1.8}
.modal-body{padding:5px 25px 25px}
.modal-body>.notice{margin-bottom:22px}
.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:26px}
.modal-qr{text-align:center;padding:0 25px 26px}
.qr-image-wrap{width:238px;height:238px;margin:9px auto 19px;display:grid;place-items:center;border:1px solid var(--line);border-radius:15px;padding:15px;background:#fff}
.qr-image-wrap img{width:206px;height:206px;object-fit:contain}
.qr-error{font-size:11px;color:var(--danger);line-height:1.9}
.qr-caption{font-size:10px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere;margin-bottom:17px}
.qr-downloads{display:flex;gap:9px;justify-content:center;margin-bottom:19px}
.modal-qr .notice{text-align:left}
.drawer{width:min(510px,100vw);height:100svh;max-height:100svh;max-width:100vw;position:fixed;inset:0 0 0 auto;margin:0;border-radius:0;border-width:0 0 0 1px;overflow-y:auto}
.drawer-head{padding:26px;display:flex;justify-content:space-between;gap:15px;align-items:flex-start;border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:18px;font-weight:550;margin-top:8px;line-height:1.5;overflow-wrap:anywhere}
.drawer-head .eyebrow{font-size:9px}
.drawer-body{padding:24px 26px}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:26px 0 15px}
.drawer-heading h3{font-size:12px;font-weight:550}
.drawer-heading span{font-size:9px;color:var(--muted)}
.detail-destination{font-size:11px;color:var(--sub);line-height:1.9;word-break:break-all;background:#f7f9f3;padding:13px;border-radius:8px;margin:11px 0 13px}
.detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}
.detail-meta{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted)}
.detail-short{border:1px solid var(--line);border-radius:8px;display:flex;gap:8px;align-items:center;padding:9px 11px}
.detail-short code{font-size:11px;word-break:break-all;flex:1}
.drawer-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:25px}
.drawer-kpi{border:1px solid var(--line);border-radius:9px;padding:13px 11px}
.drawer-kpi span{font-size:9px;color:var(--muted)}
.drawer-kpi strong{font-size:23px;font-weight:550;display:block;margin-top:10px;font-variant-numeric:tabular-nums}
.drawer .trend-wrap{padding-left:0;padding-right:0;min-height:180px}
.drawer .trend-svg{height:185px}
.drawer .chart-tooltip{top:15px}
.device-row{display:grid;grid-template-columns:60px 1fr 32px;align-items:center;gap:13px;font-size:10px;margin-top:14px}
.device-row span{color:var(--sub)}
.device-bar{height:5px;background:#eff3ea;border-radius:5px;overflow:hidden}
.device-bar i{display:block;height:100%;background:#99b693;border-radius:5px}
.device-row strong{text-align:right;font-weight:500}
.recent-table{white-space:normal}
.recent-table th{padding:10px 8px;font-size:9px}
.recent-table td{padding:13px 8px;font-size:10px}
.recent-empty{text-align:center;padding:24px;font-size:11px;color:var(--muted);border:1px dashed var(--line);border-radius:8px}
.drawer-footnote{font-size:9px;color:var(--muted);line-height:1.9;margin-top:20px}
.toasts{position:fixed;bottom:25px;right:25px;z-index:1000;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
.toast{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid #dbe5d6;border-radius:10px;background:#fffffff7;box-shadow:0 8px 30px #183c2a18;color:var(--green);font-size:12px;line-height:1.7;pointer-events:auto;animation:toast-in .2s ease}
.toast>.icon{width:17px;height:17px;margin-top:2px}
.toast.error{color:var(--danger);border-color:#e9d7d0}
.toast .icon-btn{width:21px;height:21px;margin-left:5px;flex-shrink:0;color:inherit}
.toast-copy{width:100%;min-width:0}
.toast-copy .input{font-size:10px;padding:7px;margin-top:8px}
@keyframes toast-in{from{opacity:0;transform:translateY(8px)}
to{opacity:1;transform:translateY(0)}
}
.mobile-backdrop{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(min-width:1500px){.main{padding-top:42px}
.kpi{padding:24px 25px}
.kpi-value{font-size:36px}
.trend-svg{height:235px}
.channel-content{padding-top:29px}
.donut-wrap{margin-bottom:22px;height:152px}
.donut{width:152px;height:152px}
td{padding-top:19px;padding-bottom:19px}
}

@media(max-width:1200px){.main{padding:29px 26px 20px}
.topbar{padding:0 26px}
.chart-grid{gap:15px;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}
.panel-head{padding-left:19px;padding-right:19px}
.chart-legend{gap:8px}
.kpi{padding:19px 16px}
.table-heading{flex-wrap:wrap}
.table-tools{flex:1;justify-content:flex-end}
.search-box input{width:130px}
.settings-grid{grid-template-columns:1fr}
.auth-story{padding-left:40px;padding-right:40px}
.auth-side{padding-left:35px;padding-right:35px}
.guide-card{padding:20px}
}

@media(max-width:980px){.sidebar{width:183px;padding-left:14px;padding-right:14px}
.workspace{margin-left:183px}
.main{padding:26px 22px 18px}
.topbar{padding:0 22px}
.page-heading h1{font-size:25px}
.topbar-date{display:none}
.kpi-grid{gap:10px}
.kpi-value{font-size:28px}
.kpi-foot{font-size:8px}
.kpi{padding:17px 13px}
.chart-grid{grid-template-columns:1fr}
.channel-content{display:flex;gap:25px;align-items:center;justify-content:center;padding-top:12px}
.donut-wrap{width:130px;height:130px;margin:0}
.donut{width:130px;height:130px}
.channel-rows{flex:1;max-width:330px}
.channel-row{margin:20px 0}
.channel-panel .chart-footer{margin-top:7px}
.guide-grid{grid-template-columns:1fr}
.guide-card{display:grid;grid-template-columns:30px 1fr;column-gap:15px}
.guide-card .guide-number{grid-column:1/-1;margin-bottom:12px}
.guide-card>.icon{grid-row:2/4;margin-bottom:0}
.guide-card h2{margin-bottom:8px}
.guide-card p{grid-column:2}
.auth-page{grid-template-columns:1fr 1fr}
.auth-story{padding:37px 27px 27px}
.auth-story>.brand{margin-bottom:65px}
.auth-story h1{font-size:34px}
.auth-side{padding:80px 27px}
.feature-list{gap:12px;grid-template-columns:1fr}
.feature-list>div{display:grid;grid-template-columns:20px 1fr;column-gap:9px}
.feature-list .icon{grid-row:1/3;margin-top:2px}
.feature-list p{grid-column:2;margin-top:3px}
.flow-card{padding:20px 13px}
.flow-step{min-width:53px}
.flow-step span{font-size:9px}
.flow-arrow{min-width:5px}
.feature-list{margin-bottom:25px}
}

@media(max-width:720px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:210px;z-index:50}
.sidebar.mobile-open{transform:translateX(0)}
.mobile-backdrop.visible{display:block;position:fixed;inset:0;background:#18312638;z-index:40}
.workspace{margin-left:0}
.mobile-menu{display:inline-grid;margin-right:0}
.topbar{height:61px;padding:0 18px}
.breadcrumb{gap:8px}
.topbar-right{gap:8px}
.main{padding:26px 18px 18px}
.page-heading{gap:12px;margin-bottom:23px}
.page-heading h1{font-size:23px;letter-spacing:-.7px}
.page-heading .eyebrow{font-size:9px}
.page-heading p{font-size:10px;max-width:220px}
.page-heading .btn{font-size:11px;padding:10px 12px}
.local-notice{font-size:10px;padding:11px}
.local-notice .text-btn{display:none}
.kpi-grid{grid-template-columns:repeat(2,1fr);gap:11px}
.kpi{padding:18px}
.kpi-value{font-size:31px}
.kpi-foot{font-size:9px}
.section-controls h2{font-size:12px}
.section-controls h2 span{display:none}
.segmented button{padding:6px 10px}
.panel-head{padding:18px 17px 0}
.trend-wrap{padding-left:7px;padding-right:10px}
.chart-footer{margin-left:17px;margin-right:17px}
.table-heading{padding:19px 17px 14px;gap:15px}
.table-tools{flex-wrap:wrap;justify-content:flex-start;width:100%;flex-basis:100%;gap:8px}
.search-box{flex:1;min-width:135px}
.search-box input{width:100%;min-width:0}
.filter-select{max-width:105px}
.table-tools .btn{font-size:10px;padding:7px 9px}
.table-footer{padding:12px 17px;flex-direction:column;gap:5px}
.page-footer{font-size:8px}
.footer-wordmark{display:none}
.chart-legend{font-size:8px;gap:8px}
.chart-empty{left:30px;right:20px}
.guide-section{padding:22px 19px}
.settings-panel{padding:22px 19px}
.auth-page{display:flex;flex-direction:column}
.auth-story{min-height:auto;padding:28px 25px 25px;border-right:0;border-bottom:1px solid var(--line)}
.auth-story>.brand{margin-bottom:32px}
.auth-story h1{font-size:32px;line-height:1.4}
.auth-story h1 br{display:none}
.auth-story>.story-intro{margin-top:12px;font-size:11px;max-width:100%}
.flow-card{margin:25px 0 0;padding:18px 22px}
.flow-label{margin-bottom:18px}
.flow-symbol{height:38px;width:38px;border-radius:11px}
.flow-step{gap:8px;min-width:66px}
.flow-arrow{margin-top:19px}
.feature-list{display:none}
.story-footer{display:none}
.auth-side{padding:34px 25px 35px}
.auth-local{right:25px;top:28px}
.auth-story .brand{padding-right:90px}
.auth-card{max-width:420px}
.auth-step{margin-bottom:16px}
.auth-card h2{font-size:25px}
.auth-card>.auth-desc{margin-bottom:23px}
.auth-page .auth-local{position:fixed;top:31px;z-index:2}
.auth-notice{margin-top:21px}
.modal-head,.modal-body{padding-left:21px;padding-right:21px}
.drawer-head{padding:23px 21px}
.drawer-body{padding:20px 21px}
.toasts{bottom:16px;right:16px}
.empty-state{padding-top:32px;padding-bottom:30px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

