:root{--green:#16835f;--deep:#10583f;--pale:#e9f6ef;--ink:#203b32;--muted:#73847c;--line:#e1eae5;--bg:#f5f8f6;--white:#fff;--danger:#a64731;font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:10px;padding:10px 16px;min-height:42px}button:hover{border-color:var(--green);background:var(--pale)}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:var(--deep)}button.ghost{background:transparent;border-color:transparent}button.small{padding:6px 10px;font-size:14px;min-height:34px}.shell{max-width:1440px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{padding:36px 22px;border-right:1px solid var(--line);background:white;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;margin-bottom:40px}.brandmark{display:block;width:44px;height:44px;flex-shrink:0;object-fit:contain;border-radius:12px;background:#12a875}.brand strong{font-size:26px;letter-spacing:3px}.brand small{display:block;color:var(--muted);font-size:12px;letter-spacing:1px}.nav{display:grid;gap:8px}.nav button{border:0;text-align:left;background:transparent;padding:14px 16px}.nav button.active{background:var(--pale);color:var(--deep);font-weight:600}.sidebar footer{margin-top:auto;font-size:14px;color:var(--muted);line-height:1.8}.workspace{padding:38px 42px}.topline,.row,.between{display:flex;align-items:center;gap:12px}.between{justify-content:space-between;flex-wrap:wrap}h1{font-size:28px;margin:0 0 8px;font-weight:650;letter-spacing:.02em}h2{font-size:19px;margin:0 0 18px;font-weight:600}h3{font-size:16px;margin:0 0 10px}p{line-height:1.8;margin:8px 0}small,.muted{color:var(--muted)}small{font-size:13px}.subtitle{color:var(--muted);margin:0}.topline{justify-content:space-between;margin-bottom:28px}.stats{display:flex;gap:32px;border-bottom:1px solid var(--line);padding:4px 0 26px;margin-bottom:24px}.stat strong{display:block;font-size:28px;font-weight:550;margin-top:5px}.stat span{font-size:14px;color:var(--muted)}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}input,select,textarea{border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:white;color:var(--ink);max-width:100%}input:focus,textarea:focus,select:focus{border-color:var(--green);outline-color:var(--pale)}.search{flex:1;min-width:180px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card,.panel{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:24px}.card{cursor:pointer;transition:box-shadow .15s,border-color .15s;text-align:left}.card:hover{border-color:#9ecfb8;box-shadow:0 6px 22px #183c2a09}.avatar{height:44px;width:44px;flex-shrink:0;background:var(--pale);color:var(--deep);display:grid;place-items:center;border-radius:50%;font-weight:600;font-size:18px}.name{font-size:18px;font-weight:600}.tag{display:inline-block;font-size:12px;padding:4px 8px;border-radius:5px;background:var(--bg);color:var(--muted);margin:4px 5px 2px 0}.tag.green{background:var(--pale);color:var(--deep)}.tag.orange{background:#fff3e5;color:#93601f}.tag.red{background:#fbece6;color:var(--danger)}.score{font-size:30px;color:var(--green);font-weight:600;font-variant-numeric:tabular-nums}.score small{font-size:13px;font-weight:400}.card .insight{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;font-size:14px;min-height:56px}.card .foot{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-top:16px;gap:12px}.empty{padding:65px 20px;text-align:center;background:white;border:1px dashed #bed6c8;border-radius:16px}.empty h2{margin-bottom:10px}.empty p{color:var(--muted);margin-bottom:22px}.back{margin-left:-12px;margin-bottom:16px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:22px 0}.tabs button{border:0;border-radius:0;background:none;padding:14px 0;color:var(--muted)}.tabs button.active{border-bottom:3px solid var(--green);color:var(--deep);font-weight:600}.detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:20px}.stack{display:grid;gap:18px;align-content:start}.highlight{background:var(--deep);color:white;border:0}.highlight small{color:#b7d8c7}.highlight h2{font-size:23px;line-height:1.7;margin:10px 0}.highlight p{color:#d4e9de}.number{font-size:48px;font-weight:500;color:var(--green)}.meter{height:6px;background:var(--bg);border-radius:9px;overflow:hidden;margin:7px 0 15px}.meter span{display:block;background:var(--green);height:100%;border-radius:9px}.dimension{font-size:14px;margin-top:12px}.dimension .reason{font-size:13px;color:var(--muted);margin:0 0 10px}.note{padding:12px 0;border-bottom:1px solid var(--line)}.note:last-child{border-bottom:0}.evidence{font-size:13px;background:var(--bg);border:0;padding:4px 8px;min-height:26px;margin:5px 5px 0 0;color:var(--green)}.profile-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.profile-row p{margin:0}.timeline{display:grid;gap:15px}.record{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.record.selected{border-color:var(--green)}.record pre,.transcript{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.9;background:var(--bg);padding:18px;border-radius:10px}.chart{width:100%;height:150px;display:block}.chart circle{cursor:pointer}.notice{padding:13px 16px;background:var(--pale);border-radius:10px;font-size:14px;line-height:1.7;margin-bottom:18px}.warning{background:#fff5e8;color:#885720}.form{display:grid;gap:16px}.form label{display:grid;gap:7px;font-size:14px}.form textarea{min-height:180px;resize:vertical;line-height:1.7}.form .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.error{color:var(--danger);font-size:14px}.login{max-width:420px;margin:10vh auto;padding:35px;background:white;border:1px solid var(--line);border-radius:20px}.login .brand{margin-bottom:26px}dialog{width:min(660px,calc(100% - 32px));border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#18362b60;backdrop-filter:blur(2px)}dialog .close{float:right;border:0;margin:-8px -8px 0 0}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--deep);color:white;padding:13px 22px;border-radius:12px;display:none;z-index:100;max-width:90vw}.loading{padding:15vh 30px;text-align:center;color:var(--green)}.blankline{margin:12px 0}.knowledge{display:grid;gap:16px}.danger{color:var(--danger)}a{color:var(--green)}details summary{cursor:pointer;color:var(--green);font-size:14px;padding:10px 0}.trendlab{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.soft{background:var(--bg);padding:16px;border-radius:10px}ul{padding-left:20px;line-height:1.9}.statusbar{font-size:13px;margin-top:10px;color:var(--muted)}
.detail-score{font-size:14px;color:var(--muted);margin-top:8px}.detail-score strong{color:var(--green);font-size:17px}
.workspace>.panel,.workspace>.report-grid,.workspace>.report-stats,.workspace>#report-result{margin-bottom:20px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.report-stats .panel{padding:18px}.report-stats strong{font-size:30px}.chart-wrap svg{display:block;width:100%;height:auto;min-height:130px}.bar-row{display:grid;grid-template-columns:90px minmax(40px,1fr) 44px;gap:10px;align-items:center;width:100%;text-align:left;border:0;padding:12px 0;background:transparent}.bar-row small{grid-column:2/4}.bar-row strong,.quality-row strong{font-size:13px}.bar-track{height:9px;display:block;border-radius:10px;background:var(--bg);overflow:hidden}.bar-track i{height:100%;display:block;background:var(--green);border-radius:10px}.quality-row{display:grid;grid-template-columns:70px minmax(40px,1fr) 40px;align-items:center;gap:12px;margin:18px 0;font-size:14px}.bar-track .quality-improve{background:#d8a360}.bar-track .quality-unknown{background:#acb8b1}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-weight:500}.reception-review{display:grid;gap:12px;margin:16px 0}.reception-review .soft{border-left:3px solid #b4d7c5}.panel li{line-height:1.9}.toolbar input[type=date]{width:158px}.panel,.record{overflow-wrap:anywhere}.report-grid>.panel{min-width:0}#report-result:empty{display:none}@media(max-width:800px){.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}}@media(max-width:650px){.nav button{padding:8px 6px}.report-stats .panel{padding:14px}.report-stats strong{font-size:26px}.form-columns{grid-template-columns:1fr}.toolbar input[type=date]{flex:1;min-width:125px}.sidebar .brand{gap:6px}.report-grid{gap:14px}}
@media(max-width:1050px){.workspace{padding:28px 25px}.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:28px 15px}.cards{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}}@media(max-width:650px){.shell{display:block}.sidebar{height:auto;position:static;padding:15px 18px;flex-direction:row;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);align-items:center}.brand{margin:0}.brand strong{font-size:22px}.brandmark{width:37px;height:37px;font-size:20px}.brand small,.sidebar footer{display:none}.nav{display:flex;gap:0}.nav button{padding:8px;font-size:14px}.workspace{padding:24px 18px 50px}.topline{align-items:flex-start;gap:10px;flex-wrap:wrap}.topline>.row:first-child{width:100%}.topline>.row:last-child{margin-left:auto}.topline button{white-space:nowrap}h1{font-size:24px}.topline .primary{padding:10px 12px}.stats{gap:28px}.toolbar select{flex:1;min-width:100px}.toolbar .search{flex-basis:100%}.card,.panel{padding:20px}.profile-row{grid-template-columns:80px minmax(0,1fr) auto;gap:8px}.profile-row button{padding:5px 7px}.tabs{gap:25px}.login{margin:8vh 18px}.score{font-size:27px}.card .foot{font-size:12px}.highlight h2{font-size:20px}.number{font-size:40px}}
@media(max-width:650px){#report-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#report-filter input[type=date]{width:100%;min-width:0;font-size:14px;padding:10px 8px}#report-filter select{min-width:0;width:100%}.chart-wrap svg text{font-size:22px}}
.profile-row>button{align-self:start}
.intention-overview .intention-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr)}.intention-portrait{border-left:1px solid var(--line);padding-left:24px;min-width:0}.portrait-item{border-bottom:1px solid var(--line);font-size:14px}.portrait-item:last-child{border-bottom:0}.portrait-item summary p{font-weight:500;font-size:14px;color:var(--ink);line-height:1.6}.portrait-item summary{padding:10px 0}.portrait-item p{font-size:14px}@media(max-width:900px){.intention-overview .intention-grid{grid-template-columns:1fr}.intention-portrait,.intention-overview .intention-trend{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}}
.knowledge-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.knowledge-topic{text-align:left;display:grid;gap:7px;padding:14px}.knowledge-topic small{line-height:1.6}.knowledge-topic .tag{justify-self:start}@media(max-width:650px){.knowledge-map{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-topic{padding:12px}}
.module-heading{margin:0 0 14px!important}.module-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:0;border:0;background:transparent;text-align:left;font-size:19px;font-weight:600;min-height:44px}.module-toggle:hover{background:transparent;color:var(--green)}.fold-indicator{font-size:13px;font-weight:400;white-space:nowrap;color:var(--muted)}.module-folded>.module-heading{margin-bottom:0!important}.module-content[hidden]{display:none!important}.highlight .module-toggle,.highlight .module-toggle:hover{color:white}.highlight .fold-indicator{color:#d4e9de}.item-rank{color:var(--green);font-weight:650;display:inline-block;margin-right:7px;font-variant-numeric:tabular-nums}.highlight .item-rank{color:#d4e9de}.profile-row.ranked-item{position:relative;padding-left:25px}.profile-row>.item-rank{position:absolute;left:0;top:18px}ol{padding-left:24px;line-height:1.9}.dimension>.item-rank{float:left}.module-content>.note:first-child{padding-top:4px}
.match-two-groups{display:grid;grid-template-columns:1fr 1fr;gap:24px}.match-labels{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.match-label{text-align:left;font-size:14px;border-radius:20px}.match-label.matched{background:var(--pale);color:var(--deep)}.match-label.unmatched{background:#fff5e8;color:#885720}@media(max-width:650px){.match-two-groups{grid-template-columns:1fr;gap:0}}
.correction-fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:30;background:var(--green);color:white;border:0;border-radius:30px;padding:14px 22px;box-shadow:0 6px 20px #10583f35}.correction-fab:hover{background:var(--deep);color:white}#correction-body audio{width:100%;margin:12px 0}#correction-body .form{margin-top:16px}.workspace{padding-bottom:100px}
.primary-obstacle{margin:20px 0;padding:18px;border:1px solid #ffffff40;border-radius:12px;background:#ffffff0a}.primary-obstacle h3{color:white;font-size:18px}.primary-obstacle p{font-size:15px}
.customer-stats{gap:14px}.stat-filter{text-align:left;min-width:100px;padding:12px 16px;background:transparent;border:1px solid transparent}.stat-filter.active{background:var(--pale);border-color:#b9dccc;color:var(--deep)}.stat-filter:hover{border-color:var(--green)}.stat-filter span{white-space:nowrap}@media(max-width:650px){.customer-stats{gap:8px}.stat-filter{flex:1;min-width:0;padding:10px 12px}}
.intention-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px;align-items:start}.intention-trend{border-left:1px solid var(--line);padding-left:28px;min-width:0}.intention-score{min-width:0}.intention-overview .chart{height:140px}.intention-overview h2{margin-bottom:12px}@media(max-width:650px){.intention-grid{grid-template-columns:1fr;gap:20px}.intention-trend{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.intention-overview .chart{height:120px}}
.focus-recognition{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.match-group{margin:22px 0}.match-group>h3{color:var(--deep);border-left:3px solid var(--green);padding-left:10px}.match-summary{display:flex;flex-wrap:wrap;gap:4px}
.capture-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:25px 0}.capture-choice{padding:28px 15px;display:grid;gap:12px;text-align:left;background:var(--pale)}.capture-choice strong{font-size:22px;color:var(--deep)}.capture-choice span{font-size:14px;line-height:1.6}.recorder-face{display:grid;justify-items:center;gap:14px;padding:25px 0}.recorder-face strong{font-size:36px;font-variant-numeric:tabular-nums}.record-light{width:16px;height:16px;background:#c5d2ca;border-radius:50%}.record-light.on{background:#b9463a;box-shadow:0 0 0 7px #b9463a18}#capture-body audio{width:100%;margin:14px 0}.form .check-label{display:flex;align-items:center;gap:10px}.check-label input{width:18px;height:18px;flex-shrink:0}#capture-body>.soft{margin-top:18px}@media(max-width:500px){.capture-choices{grid-template-columns:1fr}}
/* Top navigation and portrait-first workspace. */
.shell{display:block;max-width:none}.sidebar{position:sticky;top:0;z-index:20;height:auto;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:16px max(24px,calc((100% - 1000px)/2));border-right:0;border-bottom:1px solid var(--line);box-shadow:0 2px 12px #183c2a06}.sidebar .brand{margin:0}.sidebar .brand small{white-space:nowrap}.sidebar .nav{display:flex;justify-content:center;gap:8px}.sidebar .nav button{text-align:center;min-height:44px;padding:10px 20px;white-space:nowrap}.toolbar-account{font-size:12px;color:var(--muted);line-height:1.5;text-align:right}.toolbar-account br{display:none}.toolbar-account .tag{margin-left:8px}.toolbar-account a{display:block}.workspace{width:100%;max-width:1000px;margin:0 auto;padding:30px 24px 50px}.cards,.detail-grid{grid-template-columns:1fr}.record{scroll-margin-top:150px}
@media(max-width:700px){.sidebar{grid-template-columns:1fr auto;gap:12px;padding:12px 18px 10px;padding-top:max(12px,env(safe-area-inset-top))}.sidebar .brand{gap:8px}.sidebar .brand small{display:none}.sidebar .nav{grid-column:1/-1;grid-row:2;gap:6px}.sidebar .nav button{flex:1;min-width:0;padding:10px 8px;font-size:15px}.toolbar-account{grid-column:2;grid-row:1;max-width:170px;overflow-wrap:anywhere}.toolbar-account .tag{display:none}.workspace{padding:24px 18px 40px;padding-bottom:max(40px,env(safe-area-inset-bottom))}.customer-stats{gap:8px}.tabs{gap:24px}.sidebar .brandmark{width:36px;height:36px}.sidebar .brand strong{font-size:22px}}

.contact-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:8px}.contact-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:white;color:var(--deep);border-radius:10px;padding:6px 10px;min-height:34px;font-size:14px;text-decoration:none}.contact-button:hover{border-color:var(--green);background:var(--pale)}.contact-actions button:disabled{cursor:default}
/* Mobile layout: comfortable touch targets and local scrolling for dense content. */
@media(max-width:700px){
 .workspace{padding:20px 14px calc(90px + env(safe-area-inset-bottom));min-width:0}
 .sidebar{padding-left:14px;padding-right:14px;gap:8px}.sidebar .nav{gap:4px}
 .sidebar .nav button{min-height:44px}.toolbar-account{max-width:150px;font-size:11px}
 h1{font-size:24px;overflow-wrap:anywhere}h2{font-size:18px}.name{font-size:17px;overflow-wrap:anywhere}
 .topline{flex-wrap:wrap;align-items:flex-start;gap:14px;margin-bottom:20px}.topline>.row{min-width:0;width:100%;align-items:flex-start}.topline .row>div{min-width:0}.topline>.row .avatar{margin-top:4px}
 .card,.panel,.record{padding:16px;border-radius:14px;min-width:0}.cards,.stack,.timeline{gap:14px}
 .card .between{flex-wrap:nowrap;align-items:flex-start}.card .row{min-width:0;align-items:flex-start}.card .row>div{min-width:0}.card .score{font-size:26px;flex-shrink:0}.card .insight{line-height:1.75}.card .foot{flex-wrap:wrap;gap:6px}
 .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toolbar>*{min-width:0;width:100%}.toolbar .search{grid-column:1/-1;min-width:0}.toolbar select{font-size:14px;padding:10px 8px}
 .toolbar [hidden]{display:none!important}.toolbar input[type=date]{min-width:0}
 .customer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-bottom:16px;margin-bottom:16px}.stat-filter{padding:10px 8px;min-width:0}.stat-filter span{font-size:13px}.stat strong{font-size:26px}
 .report-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-stats .panel{padding:14px}.report-grid{grid-template-columns:1fr}
 button.small,.contact-button{min-height:44px;padding:9px 10px}.contact-actions{gap:6px}.contact-actions .contact-button{font-size:13px;padding:9px 8px}.contact-actions small{flex-basis:100%}
 .tabs{gap:20px;overflow-x:auto;white-space:nowrap}.tabs button{flex-shrink:0}.module-toggle{font-size:18px;gap:10px}.highlight h2{font-size:19px;line-height:1.7}.primary-obstacle,.soft{padding:13px}
 .profile-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.profile-row>div:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.profile-row span,.profile-row small{overflow-wrap:anywhere}
 input,textarea,.form select{font-size:16px}.form-columns{grid-template-columns:1fr}.form .actions{flex-wrap:wrap}.form .actions>*{flex:1}
 dialog{width:calc(100% - 20px);padding:20px 16px;max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:16px}dialog .close{min-height:44px;min-width:44px}.form textarea{min-height:160px}
 .login{width:calc(100% - 28px);margin:24px auto;padding:26px 22px}.login .brand{margin-bottom:20px}
 .transcript,.record pre{padding:12px;font-size:14px}.notice{overflow-wrap:anywhere}.evidence{min-height:36px}.table-scroll{max-width:100%}.chart-wrap{max-width:100%;min-width:0;overscroll-behavior-x:contain}
 .correction-fab{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));padding:12px 18px}#toast{bottom:calc(76px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 28px)}
}
/* Customer detail: separate each finding with a calm, consistent card. */
.customer-detail .module-content :is(.note,.dimension,.profile-row){background:#f0f7f3;border:1px solid #dfebe3;border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}
.customer-detail .module-content :is(.note,.dimension,.profile-row).ranked-item{padding-left:44px}
.customer-detail .module-content :is(.note,.dimension,.profile-row)>.item-rank{position:absolute;left:16px;top:16px;margin:0}
.customer-detail .module-content .note>strong,.customer-detail .module-content .note>p:first-of-type>strong,.customer-detail .module-content .note>h3{color:var(--green)}
.customer-detail .module-content>h3,.customer-detail .focus-recognition>h3{color:var(--deep);background:#e4f1e9;border-left:3px solid var(--green);border-radius:6px;padding:10px 14px;margin:24px 0 12px}
.customer-detail .module-content>h3:first-child{margin-top:0}
.customer-detail .module-content>ol{padding-left:24px}
.customer-detail .module-content>ol>li{background:#f0f7f3;border:1px solid #dfebe3;border-radius:10px;margin:10px 0;padding:12px 16px;line-height:1.8}
.customer-detail .module-content>ol>li::marker{color:var(--green);font-weight:600}
.customer-detail .module-content>.soft,.customer-detail .match-group{border:1px solid #dfebe3;border-radius:12px;background:#f0f7f3;padding:16px;margin-top:12px}
.customer-detail .match-label{background:#fff}.customer-detail .match-label.unmatched{background:#fff4e7}
.customer-detail .highlight .module-content .note{background:#ffffff12;border-color:#ffffff30;color:white}
.customer-detail .highlight .module-content .note strong{color:#d4e9de}
@media(max-width:700px){
 .customer-detail .module-content :is(.note,.dimension,.profile-row){padding:14px;margin:10px 0}
 .customer-detail .module-content :is(.note,.dimension,.profile-row).ranked-item{padding-left:36px}
 .customer-detail .module-content :is(.note,.dimension,.profile-row)>.item-rank{left:12px;top:14px}
 .customer-detail .module-content>h3,.customer-detail .focus-recognition>h3{padding:10px 12px;margin-top:20px}
 .customer-detail .match-group{padding:12px}
}

.fit-chart{display:grid;gap:12px;margin:18px 0}.fit-item{background:#f0f7f3;border:1px solid #dceae3;border-radius:12px;padding:14px}.fit-item summary{display:grid;grid-template-columns:80px minmax(0,1fr) 60px;gap:14px;align-items:center;cursor:pointer}.fit-track{height:16px;background:#deebe4;border-radius:8px;overflow:hidden}.fit-track>span{display:block;height:100%;background:#148568;border-radius:8px}.fit-unknown{background:repeating-linear-gradient(135deg,#edf1ef,#edf1ef 6px,#dce5e0 6px,#dce5e0 12px)}.fit-item summary strong{text-align:right;color:#148568;font-size:14px}.fit-explanation{padding-top:10px;overflow-wrap:anywhere}@media(max-width:520px){.fit-item{padding:12px}.fit-item summary{grid-template-columns:65px minmax(0,1fr) 48px;gap:8px}.fit-label{font-size:14px}}

/* Demand matching is temporarily hidden on the customer analysis page. */
.customer-detail #demand-match{display:none}

/* Responsive phone/tablet layout, including split-screen and landscape. */
html{-webkit-text-size-adjust:100%}.workspace,.stack,.panel,.topline>div,.profile-row>*{min-width:0}img,video,audio{max-width:100%}.chart{display:block;width:100%;max-width:100%}.intention-overview .chart{height:auto;max-height:210px;min-height:140px}.chart circle{cursor:pointer}.prediction-note{background:#fff5e8;padding:12px;border-radius:10px;font-size:14px;line-height:1.7}
.workspace{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.panel h2,.panel h3,.topline h1{overflow-wrap:anywhere}.form input,.form select,.form textarea{min-width:0;width:100%}.form input[type=checkbox]{width:auto}dialog{overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 32px)}.contact-actions small{overflow-wrap:anywhere}.module-toggle>span:first-child{min-width:0}.profile-row>div:last-child{flex-wrap:wrap}
@media (min-width:701px) and (max-width:1024px){
 .sidebar{grid-template-columns:minmax(0,1fr) auto;padding:14px 24px;gap:10px}.sidebar .nav{grid-column:1/-1;grid-row:2;justify-content:stretch}.sidebar .nav button{flex:1}.toolbar-account{grid-column:2;grid-row:1;max-width:240px}.workspace{padding:24px 24px 100px}.topline{flex-wrap:wrap}.profile-row{grid-template-columns:110px minmax(0,1fr)}.profile-row>div:last-child{grid-column:1/-1;display:flex;gap:8px}.intention-overview .intention-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.intention-overview .intention-trend{border-top:0;border-left:1px solid var(--line);padding:0 0 0 20px}.intention-portrait{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .sidebar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.workspace{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.topline>.row:last-child{margin-left:0}.contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.contact-actions>*{min-width:0}.contact-actions small{grid-column:1/-1}.topline>.row>div{flex:1}.toolbar>*{min-width:0;width:100%}.toolbar input:not([type=date]){grid-column:1/-1}.profile-row{grid-template-columns:minmax(0,1fr)}.profile-row>*{grid-column:1!important}.profile-row>div:last-child{justify-content:flex-start}.panel .between{gap:8px}.panel .between h2{flex-basis:100%;margin-bottom:4px}.intention-score .between h2{flex-basis:auto}.form .actions{display:flex;flex-wrap:wrap}.form .actions>*{min-height:44px}.transcript{white-space:pre-wrap;overflow-wrap:anywhere}.tabs{max-width:100%;gap:18px}.module-toggle{min-height:48px}dialog{width:calc(100% - 16px);margin:auto;padding:18px 14px;max-height:calc(100dvh - 16px)}
}
@media(max-width:360px){.workspace{padding-left:10px;padding-right:10px}.panel,.card{padding:12px}.topline .avatar{display:none}.toolbar-account{max-width:135px}.contact-actions .contact-button{font-size:12px;padding:8px 4px}.customer-stats{gap:3px}.stat-filter{padding:10px 5px}.sidebar .nav button{font-size:14px}}
@media(max-height:500px) and (orientation:landscape){.sidebar{position:static}dialog{max-height:calc(100dvh - 12px)}.workspace{padding-top:16px}}

/* Keep customer search compact beside the three filters. */
@media(min-width:701px){.customer-filter-toolbar{display:flex;flex-wrap:nowrap;gap:10px}.customer-filter-toolbar #search{flex:1 1 220px;min-width:120px;width:220px;max-width:300px}.customer-filter-toolbar select{flex:1 1 140px;min-width:0;width:auto}.customer-filter-toolbar button{flex:0 0 auto}}

.batch-customer-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:start}.batch-customer-row .card{width:100%;min-width:0}.batch-customer-select{padding-top:24px;cursor:pointer}.batch-customer-select input,.batch-assignment-toolbar input{width:18px;height:18px;accent-color:var(--green)}.batch-assignment-toolbar label{display:flex;align-items:center;gap:8px}.batch-assignment-toolbar{flex-wrap:wrap}

.assignment-toolbar{flex-wrap:wrap;align-items:center}.assignment-toolbar #assignment-owner{flex:0 1 220px;width:220px;min-width:0}.batch-assignment-toolbar{display:flex;align-items:center;gap:10px;margin-left:auto}.batch-assignment-toolbar label,.batch-assignment-toolbar span{white-space:nowrap}@media(max-width:700px){.batch-assignment-toolbar{margin-left:0;width:100%}.assignment-toolbar #assignment-owner{flex:1 1 160px}}


.reception-quality-row{display:grid;grid-template-columns:110px minmax(60px,1fr) 85px 130px;gap:12px;align-items:center;margin:20px 0}.reception-quality-row .bar-track{height:24px;border-radius:4px}@media(max-width:600px){.reception-quality-row{grid-template-columns:80px minmax(40px,1fr) 70px;gap:8px}.reception-quality-row small{grid-column:2 / 4}}

.customer-chart-legend{display:inline-flex;gap:16px;flex-wrap:wrap}.customer-chart-legend>span{display:inline-flex;align-items:center;gap:6px}.customer-chart-legend i{display:inline-block;width:12px;height:12px;border-radius:2px;flex-shrink:0}.legend-new{background:#bedfce}.legend-followup{background:#16835f}

.duplicate-customer-name,.duplicate-customer-hint{color:#b42318!important}.duplicate-customer-name{border-color:#d92d20!important}.duplicate-customer-hint{margin:0;font-size:14px}.merge-notice-unread{color:#b54708;border-color:#f4c58b;background:#fff4e6}

.report-stat-button{text-align:left;color:inherit;cursor:pointer}.report-stat-button:hover,.report-stat-button:focus-visible{border-color:var(--green);background:var(--pale)}
/* Compact single-row actions, including narrow phones. */
.topline>.row,.topline>.row>div{min-width:0;max-width:100%}
.contact-actions{display:flex;flex-wrap:nowrap;gap:4px;width:100%;max-width:100%;overflow:visible;padding:3px 0}
.contact-actions>*{flex:0 1 auto;min-width:0;white-space:nowrap}
.contact-actions small{flex:0 0 auto;overflow-wrap:normal;font-size:12px}
@media(max-width:700px){
 .contact-actions{gap:2px}
 .contact-actions .contact-button,.contact-actions button.small{flex:1 1 0;padding:8px 2px;font-size:clamp(10px,2.8vw,13px);min-height:38px;border-radius:7px;letter-spacing:-.2px}
 .contact-actions small{font-size:10px}
 .contact-action-phone{display:none}
}
.customer-detail .highlight .module-content>h2{font-size:18px;font-weight:500;line-height:1.8;margin-bottom:20px;overflow-wrap:anywhere}
.customer-detail .highlight .module-toggle{font-size:18px}
.customer-detail .highlight .primary-obstacle{padding:16px}
.customer-detail .highlight .primary-obstacle p{font-size:14px;line-height:1.85}
@media(min-width:701px) and (max-width:1024px){
 .customer-detail .highlight{padding:22px}
 .customer-detail .highlight .module-content>h2{font-size:17px}
}
@media(max-width:700px){
 .customer-detail .highlight{padding:16px;border-radius:14px}
 .customer-detail .highlight .module-content>h2{font-size:15px;line-height:1.85;margin-bottom:16px}
 .customer-detail .highlight .module-toggle{font-size:16px}
 .customer-detail .highlight .primary-obstacle{padding:12px}
 .customer-detail .highlight .primary-obstacle h3{font-size:15px}
 .customer-detail .highlight .primary-obstacle p{font-size:13px;line-height:1.85}
}
.nav button[aria-busy="true"]{opacity:.7;cursor:progress}
/* Customer list filters stay on one row without horizontal scrolling. */
.customer-stats[aria-label="客户快捷筛选"]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%}
.customer-stats[aria-label="客户快捷筛选"] .stat-filter{min-width:0;padding:12px 10px}
.customer-filter-toolbar{display:flex;flex-wrap:nowrap;gap:8px;width:100%;align-items:center}
.customer-filter-toolbar #search{flex:1 1 0;min-width:0;width:0;max-width:none}
.customer-filter-toolbar select{flex:0 1 180px;min-width:0;width:180px}
.customer-filter-toolbar button{flex:0 0 auto;min-width:0;width:auto;white-space:nowrap}
@media(max-width:700px){
 .customer-stats[aria-label="客户快捷筛选"]{gap:3px;padding-bottom:14px}
 .customer-stats[aria-label="客户快捷筛选"] .stat-filter{padding:10px 2px;text-align:center;border-radius:8px}
 .customer-stats[aria-label="客户快捷筛选"] .stat-filter span{font-size:clamp(10px,2.8vw,13px);letter-spacing:-.2px}
 .customer-stats[aria-label="客户快捷筛选"] .stat-filter strong{font-size:23px}
 .customer-filter-toolbar{gap:6px}
 .customer-filter-toolbar #search{padding:10px 8px;font-size:14px}
 .customer-filter-toolbar select{flex:0 0 108px;width:108px;padding:10px 5px;font-size:12px}
 .customer-filter-toolbar button{padding:8px 5px;font-size:12px;min-height:40px}
}
/* Knowledge filters share one responsive row on desktop, tablet and phone. */
#knowledge-filter{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;min-width:0}
#knowledge-filter>*{min-width:0;width:auto;max-width:100%;margin:0}
#knowledge-filter select{flex:0 1 140px;width:140px;text-overflow:ellipsis}
#knowledge-filter input[name="q"]{flex:1 1 0;width:0;min-width:0}
#knowledge-filter button{flex:0 0 auto;white-space:nowrap}
@media(max-width:700px){
 #knowledge-filter{gap:4px}
 #knowledge-filter select{flex:0 1 76px;width:76px;font-size:12px;padding:9px 2px;min-height:40px;border-radius:7px}
 #knowledge-filter input[name="q"]{font-size:14px;padding:9px 5px;min-height:40px;border-radius:7px}
 #knowledge-filter button{font-size:12px;padding:9px 5px;min-height:40px;border-radius:7px}
 #knowledge-filter:has(select[name="project_id"]) select{flex-basis:62px;width:62px;font-size:11px}
 #knowledge-filter:has(select[name="project_id"]) button{font-size:11px;padding-inline:3px}
}
.system-version{margin-top:20px;padding:0!important}.version-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px;text-align:left;border:0;background:transparent}.version-entry small{display:block;margin-top:6px}.version-status{font-size:12px;white-space:nowrap;color:var(--green)}
.timeline-viewport{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.timeline-viewport svg{display:block;max-width:none}
.timeline-viewport rect[role="button"],.timeline-viewport text[data-act]{cursor:pointer}
.timeline-viewport rect:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.timeline-viewport{touch-action:pan-x pan-y}.timeline-viewport svg{-webkit-user-select:none;user-select:none}
