/* Approved matcha system: shared visual layer; no business behavior. */
:root{--bg:#f8f9f3;--paper:#fff;--ink:#283128;--muted:#697263;--line:#e4e9da;--brand:#61783f;--brand-soft:#edf2e5;--shadow:0 6px 22px #35451d08;--orange:#9b7944;--danger:#a34b43;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
body{background:var(--bg)}.shell{grid-template-columns:218px minmax(0,1fr)}.sidebar{width:218px;padding:24px 14px 18px;background:#fbfcf7}.brand{gap:8px;padding:0 8px}.brand img{width:43px;height:43px;object-fit:contain}.brand strong{font-size:23px;letter-spacing:1px}.brand small{font-size:10px;letter-spacing:1.6px}.workspace{margin:22px 3px 10px;padding:10px;border:0;background:#f0f3e9}.workspace .square{background:#e3ead7;color:#607448}.nav-label{font-size:12px;letter-spacing:0;color:#7b8473;margin:17px 0 7px;padding:0 10px}.nav{gap:3px}.nav button{padding:10px 11px;min-height:40px;font-size:13px;color:#46523f;position:relative}.nav button.active{background:linear-gradient(110deg,#f0f5e6,#e1ebcf);color:#344927;font-weight:600}.nav button.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:4px;background:linear-gradient(#a4be76,#617b3c)}.nav button .count{background:#e0e9d3;color:#586c40}.sidebar-bottom{padding-top:6px}.service-card{margin:15px 3px;padding:10px;background:#f1f4ea;font-size:11px;color:#6e7a61}.service-card b{color:#576d3e}.profile{padding:15px 3px 0}.profile small{line-height:1.5}.avatar{background:#eaf0df;color:#65794a}.topbar{height:62px;padding:0 26px;background:#fcfdf9;border-color:var(--line)}.top-meta{font-size:12px}.breadcrumb{font-size:13px}.content{padding:25px 26px 32px;max-width:1660px}.page-head{margin-bottom:22px}.page-head h1{font-size:27px;letter-spacing:0;color:#263322}.page-head p{font-size:13px}.btn{font-size:13px;min-height:37px;color:#526244;border-radius:8px;padding:9px 13px}.btn.small{font-size:12px;min-height:31px}.btn.primary{background:linear-gradient(115deg,#59733b,#71874c);border-color:#688046;box-shadow:0 3px 8px #59733b13;color:#fff}.btn.primary:hover{background:linear-gradient(115deg,#4f6833,#657b40);border-color:#59733b}.btn.text{color:#526b38}.btn:hover{background-color:#f4f7ee;border-color:#c6d2b7}.btn.primary:disabled{opacity:.55}.btn.danger{color:var(--danger);border-color:#e9d7cf}.btn:focus-visible,a:focus-visible{outline:3px solid #9eaf7c;outline-offset:3px}input,select,textarea{accent-color:#748c50}input:focus,select:focus,textarea:focus{outline-color:#879f62;border-color:#8ea66a!important;box-shadow:0 0 0 3px #a3b78015!important}.panel{border-color:#e5eadd;border-radius:12px;box-shadow:none}.panel-head{padding:17px 21px;border-color:#edf0e7}.panel-head h2{font-size:17px;color:#293623}.panel-body{padding:21px}.filters{background:#fff;border-color:var(--line);padding:19px 21px}.filters input,.filters select,.field input,.field select,.field textarea{font-size:14px;color:var(--ink);border-color:#dfe6d5}.tab-list{padding:0 14px;gap:5px}.tab{font-size:13px;padding:15px 12px;color:#707a64}.tab.active{color:#526b38;border-color:#829e58}.category-tabs{background:#fff}.category-tabs .pill,.pill{background:#edf2e5;color:#607347}.badge.green,.badge.teal{background:#eaf1df;color:#526e34}.badge.orange{background:#f6efdf;color:#92723c}.badge.red{background:#faeae4;color:#a14f42}.source-chip{background:#f3f6ec;border-color:#e0e8d4;color:#5e7441}.source-meta,.source-chip small,.muted{color:#727d68}.selection-bar{background:linear-gradient(110deg,#f3f7ec,#eaf1df);border-color:#e2e9d5;color:#526b38}th{font-size:12px;color:#718063;background:#f7f9f2}td{font-size:13px;color:#3b4833;border-color:#edf0e7;padding-top:15px;padding-bottom:15px}td small,.sub{font-size:12px}.table-wrap{border-color:var(--line)}.pagination{font-size:12px;padding:17px 21px}.pagination .actions{margin-left:auto}.desk-status-grid strong,.desk-summary strong{color:#34452c}.desk-receipt-summary,.sender-manual-overview,.summary{background:#f2f5eb;border-color:#e2e9d5;color:#6c795f}.q-icon,.empty-icon{background:linear-gradient(135deg,#f0f5e6,#e1ebce)!important;color:#7a9453!important}.quick:hover{background:#fafcf6;border-color:#c9d8b2}.quick strong{font-size:13px}.empty h3{font-size:16px}.empty p{font-size:13px}.footer{font-size:11px;margin-top:25px;color:#859078}.modal{border-radius:15px}.modal-head{border-color:var(--line)}.modal-head h2{font-size:20px}.modal-head p{font-size:13px}.modal-body{font-size:14px}.form .field label{font-size:13px;color:#5f6f50}.login-story{background:linear-gradient(145deg,#f6f9ee,#e4edce 70%,#d5e3bb);color:#3b5129}.login-story .brand strong,.login-copy h1{color:#314323}.login-copy p{color:#65744f}.login-form-wrap{background:#fcfdf9}.login-form h2{color:#2f4025}.login-form p,.login-note{color:#7b886d}.login-shell .brand img{width:47px;height:47px}.hero{background:linear-gradient(115deg,#edf4e2,#f8faf1);border-color:#e0e8d1}#toast{background:#4e6536}#toast.error{background:#8b5545}.report-head{position:relative;margin-bottom:18px}.report-head:after{content:"";position:absolute;width:52px;height:3px;left:0;bottom:-9px;border-radius:3px;background:linear-gradient(90deg,#567337,#b6cb89)}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#81916c;margin-bottom:6px}.report-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:9px;margin:23px 0 18px}.report-filters label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#78866a}.report-filters select,.report-filters input{border:1px solid #dfe6d5;background:white;border-radius:7px;padding:8px 10px;height:36px;color:#435437;font-size:13px}.report-filters select{max-width:215px}.report-filters small{margin-left:auto;font-size:11px;color:#879279;padding-bottom:8px}.report-to{padding-bottom:8px;color:#929d88}.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:20px 4px;background:white;border:1px solid #e6ebdf;border-radius:12px;margin-bottom:18px}.overview-metric{min-width:0;padding:0 24px;border-right:1px solid #e3e9d8;font-variant-numeric:tabular-nums}.overview-metric:last-child{border:0}.overview-metric>span{display:block;font-size:13px;color:#69795a;line-height:1.6}.overview-metric>strong{font-size:32px;font-weight:650;display:block;line-height:1.5;color:#293426;white-space:nowrap}.overview-metric>small{display:block;font-size:11px;color:#8a957e}.report-main-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:18px;margin-bottom:18px}.report-panel .panel-head{border:0;padding-bottom:12px}.report-inline-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 19px 12px;padding:12px 0;border-radius:8px;background:#f7f9f3}.report-inline-metrics .overview-metric{padding:0 12px}.report-inline-metrics .overview-metric>span{font-size:11px;white-space:nowrap}.report-inline-metrics .overview-metric>strong{font-size:23px}.report-chart{height:222px;position:relative;padding:0 20px}.report-collection-chart{height:224px}.report-caption{font-size:11px;line-height:1.7;color:#7b886d;margin:12px 21px 17px}.report-pool{display:flex;align-items:center;gap:19px;padding:8px 21px 10px;min-height:225px}.report-donut{width:190px;height:190px;position:relative;flex-shrink:0}.report-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.report-donut-center small{font-size:12px;color:#849171}.report-donut-center strong{font-size:38px;line-height:1.3;color:#293426}.report-legend{min-width:0;flex:1}.report-legend>div{display:flex;gap:7px;align-items:center;margin:12px 0;font-size:12px}.report-legend span{flex:1}.report-legend small{font-size:10px;color:#929e87;min-width:34px;text-align:right}.report-legend b{font-weight:600}.chart-swatch{width:9px;height:9px;border-radius:2px;display:inline-block;flex-shrink:0}.swatch-0{background:#8da86a}.swatch-1{background:#c1d2a8}.swatch-2{background:#d6bd93}.swatch-3{background:#a6af9e}.swatch-4{background:#8e9c84}.swatch-5{background:#e0e5d9}.report-pool-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 21px 0;border-top:1px solid #e7ecdf;padding-top:12px;text-align:center}.report-pool-totals .overview-metric{padding:0 10px}.report-pool-totals .overview-metric strong{font-size:27px}.report-sending{margin-bottom:18px}.report-sending .panel-head{border:0;padding-bottom:8px}.report-send-body{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;padding-bottom:14px}.report-send-body .report-chart{height:170px}.report-send-summary{align-self:center}.report-send-summary>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.report-send-summary .overview-metric{padding:0 16px}.report-send-summary .overview-metric strong{font-size:28px}.report-send-summary .report-caption{margin-bottom:0}.report-customers .panel-head{border:0}.report-customers input{width:230px;max-width:45%;height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:7px;font-size:12px}.report-sub{display:block;color:#8c987e;margin-top:4px}.report-footnote{font-size:11px;color:#8b967f;line-height:1.8}.report-warning{padding:10px 15px;background:#faf3e2;color:#95733d;border-radius:7px;margin:10px 0}.report-legacy{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}.report-legacy>summary{font-size:13px;color:#63774b}.report-legacy .hero,.report-legacy .stats,.report-legacy .page-head{display:none}.report-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;background:#f6f9f0;padding:16px;border-radius:10px;margin:15px 0}.report-detail-grid .overview-metric{padding:0 10px;border:0}.report-detail-grid .overview-metric strong{font-size:23px}.report-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-count{display:flex;justify-content:space-between;gap:15px;padding:10px 12px;background:#f7f9f2;border-radius:6px;font-size:13px}.report-count strong{font-variant-numeric:tabular-nums}
@media(min-width:1500px){.report-main-grid{grid-template-columns:1.2fr 1fr}.report-donut{width:210px;height:210px}.report-pool{gap:28px;min-height:248px}}
@media(max-width:1150px){.report-main-grid{grid-template-columns:1fr}.report-pool{justify-content:center;gap:40px}.report-legend{max-width:240px}.report-inline-metrics .overview-metric strong{font-size:24px}.report-send-body{grid-template-columns:1fr}.report-send-summary{padding:12px 8px}.overview-metric{padding:0 15px}.overview-metric>strong{font-size:27px}}
@media(max-width:800px){.shell{grid-template-columns:72px minmax(0,1fr)}.sidebar{width:72px;padding:20px 10px}.nav{margin-top:12px}.nav button{padding:11px;justify-content:center}.sidebar .brand img{width:38px;height:38px}.content{padding:20px 17px}.topbar{height:58px;padding:0 17px}.overview-metrics{grid-template-columns:1fr 1fr;row-gap:18px}.overview-metric:nth-child(2){border:0}.report-head{align-items:flex-start}.report-head .actions{max-width:145px}.report-head h1{font-size:23px}.report-filters small{width:100%;margin:0}.report-detail-grid{grid-template-columns:1fr 1fr}.report-filters select{max-width:175px}.report-pool{gap:18px}.report-donut{width:165px;height:165px}#toast{left:50%}.report-inline-metrics .overview-metric{padding:0 9px}.report-inline-metrics .overview-metric>strong{font-size:21px}}
@media(max-width:520px){.shell{grid-template-columns:60px minmax(0,1fr)}.sidebar{width:60px;padding:18px 6px}.content{padding:18px 12px}.nav button{padding:11px}.report-head .actions{max-width:none}.report-filters label{max-width:100%}.report-inline-metrics{grid-template-columns:1fr 1fr;gap:10px}.report-pool{flex-direction:column;gap:5px}.report-legend{width:100%;max-width:none}.report-legend>div{margin:9px 0}.overview-metric>strong{font-size:25px}.report-send-summary .overview-metric{padding:0 8px}.report-send-summary .overview-metric strong{font-size:23px}.report-detail-grid,.report-counts{grid-template-columns:1fr}.report-collection-chart{height:210px}.report-customers input{max-width:55%}.report-customers .panel-head{padding:15px 13px}.report-customers .panel-head h2{font-size:15px}.report-chart{padding:0 12px}.report-pool-totals .overview-metric{padding:0 5px}}

/* Keep the overview close to the approved compact desktop composition. */
.shell:has(.report-head) .topbar{display:none}.report-head .eyebrow,.report-head p{display:none}.report-head h1{margin:0}.report-head{min-height:43px;margin-bottom:14px}.report-head:after{bottom:-4px}.report-filters{margin:15px 0}.overview-metrics{padding:17px 4px}.overview-metric>strong{line-height:1.35}.report-customers td{padding-top:11px;padding-bottom:11px}.report-legacy{padding-top:11px;margin-top:12px}.report-footnote{margin:12px 0;font-size:11px}.report-head .actions{flex-wrap:wrap}

/* Optional image, link and text composer */
.message-composer{display:grid;gap:14px;border:1px solid #dce5d2;border-radius:14px;padding:20px;background:linear-gradient(135deg,#f8faf4,#fff)}
.message-composer .field{margin:0}.message-upload,.message-variables{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.message-upload input[type=file]{max-width:100%;flex:1;min-width:220px;font-size:13px}.message-variables{margin-top:8px;color:#7c8872;font-size:12px}.message-variables .btn{font-size:12px;padding:6px 10px}
.message-photo{display:block;max-width:min(100%,360px);max-height:250px;object-fit:contain;border-radius:10px;margin:10px 0;border:1px solid #e1e8da;background:#fff}.desk-message .message-photo{max-width:180px;max-height:120px}.message-preview{background:#fff;border:1px solid #e4eadd;border-radius:10px;padding:12px 14px}.message-preview p{white-space:pre-wrap;overflow-wrap:anywhere;min-height:20px;margin:8px 0}.message-preview small{color:#7c8872}.message-composer small{line-height:1.7}.message-composer>.muted{font-size:12px;margin:0}
