:root{--bg:#f6f5f0;--paper:#fffefb;--green:#154e45;--ink:#253c36;--muted:#7b857e;--line:#e3e6dd;--lime:#e9efce}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:9px 16px;color:var(--ink)}button:hover{background:#edf0e6;border-color:#b8c4b4}button:focus-visible,a:focus-visible{outline:3px solid #b9ca82;outline-offset:2px}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#246658}button.ghost{border:0;background:transparent;color:var(--green);padding:5px 8px}button.danger{color:#a84836}button:disabled{opacity:.45;cursor:not-allowed}aside{position:fixed;width:238px;inset:0 auto 0 0;background:#f0f1e8;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:700;letter-spacing:2px}.brand b{display:grid;place-items:center;background:var(--green);color:#f6f1db;width:43px;height:47px;border-radius:12px 12px 12px 0;font-size:26px}.brand small{display:block;font-size:8px;letter-spacing:2px;color:var(--muted)}.workspace{border-top:1px solid #dce1d2;border-bottom:1px solid #dce1d2;margin:30px 0 20px;padding:16px 0;font-size:12px;color:#718072}.workspace span{float:right;background:#e0e5d4;padding:1px 7px;border-radius:4px}nav button{width:100%;text-align:left;border:0;background:transparent;margin:3px 0;padding:12px 16px;color:#69776c}nav button em{font-style:normal;display:inline-block;width:30px;font-size:17px}nav button.active{background:var(--green);color:white;box-shadow:0 4px 9px #154e4512}.aside-bottom{margin-top:auto;font-size:12px;color:#536e5a}.aside-bottom p{font-size:11px;color:var(--muted);line-height:1.9;margin:8px 0 0 15px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8da26b}.shell{margin-left:238px}header{height:76px;background:#fffefa;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}header i{margin:0 14px;color:#c4cbbd;font-style:normal}header strong{font-weight:500;color:var(--ink)}.avatar{background:#e9ecdc;border-radius:50%;padding:7px 11px;color:var(--green)}main{max-width:1440px;margin:auto;padding:28px 42px 48px}.notice{border:1px solid #e5e7d4;background:#f1f3e5;border-radius:6px;padding:7px 14px;display:flex;align-items:center;justify-content:space-between;color:#7a815e;font-size:12px}.notice button{border:0;background:transparent;padding:3px;color:#5b6945;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:29px 0 24px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b967f;margin-bottom:8px}h1{font-size:28px;font-weight:600;letter-spacing:1px;line-height:1.3;margin:0 0 9px}h2{font-size:16px;font-weight:600;margin:0}h3{font-size:15px;margin:0 0 8px}p{color:var(--muted);margin:5px 0}small{color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:20px}.stat .icon{float:right;color:#99a48b;background:#f2f3e9;padding:4px 9px;border-radius:6px}.stat .value{font-size:34px;font-weight:500;letter-spacing:-1px;margin:11px 0 4px}.stat small{font-size:11px}.stat.feature{background:var(--green);color:white;border-color:var(--green)}.stat.feature small,.stat.feature p{color:#bed1bd}.stat.feature .icon{background:#35695e;color:#cfddc0}.grid{display:grid;grid-template-columns:1.7fr 1fr;gap:22px;margin-bottom:22px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:22px}.grid .panel{margin-bottom:0}.panelhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:10px}.badge{display:inline-block;font-size:11px;line-height:1.5;padding:4px 8px;border-radius:4px;background:#edf2e2;color:#658044}.badge.amber{background:#f6ecda;color:#997c48}.bars{height:180px;display:flex;gap:16px;align-items:end;padding:10px 6px 0;border-bottom:1px solid var(--line)}.barcol{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;font-size:10px;color:#84907d}.bar{background:#c9d5b3;width:65%;border-radius:4px 4px 0 0;min-height:3px}.barcol:nth-child(6) .bar{background:var(--green)}.legend{font-size:11px;color:var(--muted);margin-top:15px}.row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.row:last-child{border-bottom:0}.row .num{width:34px;height:34px;border-radius:7px;background:#f0f2e7;display:grid;place-items:center;color:#7e8e68}.row .grow{flex:1}.progress{height:5px;background:#f0f2e7;border-radius:4px;margin-top:8px;overflow:hidden}.progress span{display:block;height:100%;background:#93a77d}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px;text-align:left}th{font-size:11px;font-weight:400;color:#8a9488;background:#f7f8f2;padding:12px 14px}td{padding:16px 14px;border-bottom:1px solid #edf0e5}tbody tr:last-child td{border-bottom:0}.surveytitle{display:flex;gap:12px;align-items:center}.tile{background:#f0f1e2;padding:8px 12px;border-radius:8px;font-size:20px;color:#859369}.toolbar{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}input,textarea,select{border:1px solid #dce2d6;background:white;border-radius:6px;color:var(--ink);padding:10px 12px;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #c5d4ab;outline-offset:1px}label{display:block;font-size:12px;color:#6c7b6d;margin-bottom:15px}label input,label textarea,label select{display:block;width:100%;margin-top:6px}label.inline{display:flex;align-items:center;gap:8px}label.inline input{width:auto;margin:0}textarea{min-height:80px;resize:vertical}footer{padding:0 42px 24px;color:#a3aa9c;font-size:10px}footer span{float:right;letter-spacing:1px}.question{padding:20px;border:1px solid var(--line);border-radius:9px;margin:15px 0;background:#fffefb}.question .qtop{display:flex;align-items:center;justify-content:space-between;gap:10px}.question p{margin:10px 0;font-size:12px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips span{background:#f4f5ec;border:1px solid #e5e8dc;border-radius:5px;padding:5px 11px;font-size:12px}.empty{text-align:center;padding:60px 20px}.empty b{font-size:38px;display:block;color:#9da98e}.check{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.check>span{background:#eef1e5;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.check div{flex:1}.check p{font-size:12px}dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #142a3440;padding:28px;width:620px;max-width:calc(100vw - 24px);max-height:88vh;overflow:auto;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#1d342d60;backdrop-filter:blur(3px)}dialog h2{font-size:21px;margin-bottom:22px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modalactions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.optionedit{padding:15px;background:#f4f5ed;border-radius:8px;margin-bottom:12px}.optionhead{display:flex;gap:10px}.optionhead input{flex:1;min-width:0}.weights{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.weights label{font-size:10px;margin:0}.weights input{padding:5px;width:100%}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--green);color:white;border-radius:8px;box-shadow:0 8px 30px #154e4530;opacity:0;pointer-events:none;transition:.2s;z-index:10}#toast.show{opacity:1}.resultcard{border-left:3px solid #98aa77;padding:4px 0 4px 18px;margin-bottom:20px}.resultcard p{font-size:13px}.testoption{display:block;padding:10px;background:#f4f5ed;border-radius:5px;margin:6px 0}.testoption input{margin-right:8px}a{color:var(--green)}@media(min-width:1500px){main{padding-top:36px}}@media(max-width:1050px){aside{width:190px;padding:28px 14px}.shell{margin-left:190px}main{padding:24px}header{padding:0 24px}.stats{gap:10px}.grid{grid-template-columns:1fr}.stat{padding:15px}.stat .value{font-size:28px}}@media(max-width:680px){aside{position:static;width:100%;padding:16px;border-right:0}.brand{font-size:20px}.brand b{height:37px;width:36px;font-size:22px}.workspace,.aside-bottom{display:none}nav{display:flex;overflow:auto;margin-top:15px;gap:4px}nav button{width:auto;flex-shrink:0;font-size:12px;padding:8px 10px}nav button em{display:none}.shell{margin:0}header{height:45px;padding:0 18px}main{padding:16px}.notice{align-items:flex-start;font-size:10px;gap:8px}.notice button{font-size:10px;white-space:nowrap}.heading{align-items:flex-start;flex-direction:column;margin:24px 0 18px}h1{font-size:25px}.stats{grid-template-columns:repeat(2,1fr)}.stat .value{font-size:30px}.panel{padding:18px}.bars{gap:9px}.formrow{grid-template-columns:1fr}.weights{grid-template-columns:repeat(2,1fr)}footer{padding:0 16px 20px}footer span{display:none}.qtop{flex-wrap:wrap}.actions{gap:5px}button{padding:8px 12px}}

/* 专属推广数据页 */
.promoter-portal aside,.promoter-portal header,.promoter-portal footer {display:none!important}
.promoter-portal .shell {margin-left:0!important;margin:0 auto!important;max-width:680px}
.promoter-portal main {padding:24px 18px}
.promoter-portal .stats {grid-template-columns:1fr!important}
.promoter-portal .stat {padding:24px;border-radius:18px;background:white}
.promoter-portal .heading {align-items:flex-start;gap:12px}
.promoter-portal .heading h1 {font-size:28px}
.promoter-portal .notice {font-size:12px}

/* Questionnaire result QR setting */
.submission-qr-panel{margin-top:24px}.submission-qr-previews{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0}.submission-qr-image{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:100%;min-width:0}.submission-qr-thumbnail{display:block;width:160px;height:160px;max-width:100%;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px;box-sizing:border-box}.submission-qr-large{display:block;max-width:100%;max-height:65vh;margin:20px auto;object-fit:contain}.submission-qr-actions{margin:16px 0;flex-wrap:wrap}.submission-qr-filename{overflow-wrap:anywhere}.submission-qr-empty{padding:20px}.submission-qr-panel input[type=file]{max-width:100%;box-sizing:border-box}

/* Compact project-note controls; expand only the project being edited. */
.project-note-panel{margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.project-note-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px}
.project-note-heading h4{font-size:13px;font-weight:600;margin:0;color:var(--ink,#164c42)}
.project-note-actions{display:flex;align-items:center;gap:12px;flex:none}
.project-note-actions button,.project-note-bottom button{font-size:12px;padding:5px 10px;white-space:nowrap}
.project-note-toggle{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap;font-size:12px}
.project-note-toggle input[role=switch]{appearance:none;-webkit-appearance:none;position:relative;width:34px;height:20px;padding:0;margin:0;border:0;border-radius:20px;background:#b6bdb9;cursor:pointer;flex:none}
.project-note-toggle input[role=switch]:before{content:'';position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:white;transition:transform .15s}
.project-note-toggle input[role=switch]:checked{background:#166c52}
.project-note-toggle input[role=switch]:checked:before{transform:translateX(14px)}
.project-note-toggle input:focus-visible{outline:3px solid #80ad9c;outline-offset:3px}
.project-note-editor{margin-top:8px}
.project-note-label{font-size:12px;color:#65756d;margin-bottom:4px}
.project-note-panel textarea{display:block;width:100%;box-sizing:border-box;height:60px;min-height:60px;line-height:1.5;padding:7px 10px;font-size:13px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.project-note-panel textarea:disabled{background:#f2f3f0;color:#777}
.project-note-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
.project-note-bottom p{font-size:11px;line-height:1.5;margin:0;max-width:680px}
.project-note-bottom button{flex:none}
@media(max-width:600px){.project-note-heading{flex-wrap:wrap;gap:4px 10px}.project-note-actions{margin-left:auto;gap:6px}.project-note-bottom{align-items:center}.project-note-bottom p{max-width:170px}}

/* Visitor-only promotion summary, matching the approved visual. */
.promotion-visitor-card{background:linear-gradient(130deg,#e1f3e3 0%,#f3f8ee 50%,#fcfaf4 100%);border:1px solid #fff;border-radius:18px;padding:22px;box-shadow:0 7px 18px #183d3510;margin:20px 0 24px;color:#183d35}
.pv-head,.pv-countrow{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pv-label{font-size:14px;color:#6c7b73}
.pv-state{display:inline-flex;align-items:center;gap:6px;background:#ddf2df;color:#17523e;border-radius:30px;padding:5px 10px;font-size:12px;white-space:nowrap}
.pv-state:before{content:'';width:7px;height:7px;border-radius:50%;background:#13a13f;flex:none}
.pv-state.is-stopped{background:#eee8dc;color:#8b6d38}.pv-state.is-stopped:before{background:#a48b5b}
.pv-countrow{margin:20px 0}
.pv-count{min-width:0;overflow-wrap:anywhere;line-height:1.1}.pv-count strong{font-size:64px;font-weight:700;letter-spacing:-2px}.pv-unit{font-size:22px;margin-left:6px;color:#68776e}
.pv-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#dff1df;color:#164c40;flex:none}.pv-icon svg{width:40px;height:40px}
.pv-foot{border-top:1px solid #dce5d9;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:6px 14px;flex-wrap:wrap;color:#718076;font-size:12px;line-height:1.6}
@media(max-width:600px){.promotion-visitor-card{padding:20px 18px}.pv-head{gap:10px}.pv-count strong{font-size:62px}.pv-countrow{margin:18px 0}.pv-foot{font-size:11px}.pv-label{font-size:13px}}

/* Compact private project annotation, separate from the customer-facing QR note. */
.internal-project-note-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 0;min-width:0}
.internal-project-note-row label{display:block;margin:0;color:var(--muted);font-size:12px;white-space:nowrap}
.internal-project-note-row input{box-sizing:border-box;flex:0 1 200px;width:200px;max-width:100%;min-width:0;height:32px;margin:0;padding:5px 9px;font-size:12px}
.internal-project-note-row button{min-height:32px;margin:0;padding:5px 12px;font-size:12px;white-space:nowrap}
@media(max-width:520px){.internal-project-note-row input{flex-basis:160px;width:160px}}

/* Compact day switches. A new Beijing day changes the query, not stored answer data. */
.daily-statistics-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.daily-statistics-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid #dce4d7;border-radius:10px;background:#fff}
.daily-statistics-tabs button{border:0;border-radius:7px;padding:7px 16px;min-height:32px;background:transparent;color:#61746a;font-size:13px;cursor:pointer}
.daily-statistics-tabs button.active{background:#174e42;color:#fff}
.daily-statistics-bar small{font-size:11px;color:#78827b;line-height:1.7}
@media(max-width:600px){.daily-statistics-bar{align-items:flex-start;gap:8px}.daily-statistics-bar small{width:100%}}

.question.project-is-hidden{background:#fff1f0;border-color:#e6a6a1}.project-is-hidden .qtop h3{color:#8e302a}.project-is-hidden .qtop .badge{background:#f9d5d2;color:#a32f27;border:1px solid #eab0aa}.project-is-hidden .project-note-panel{border-color:#edc8c4}
