:root{--bg:#f4f7f7;--surface:#fff;--surface-2:#f8fafa;--text:#162321;--muted:#687673;--line:#dfe7e5;--brand:#0f766e;--brand-dark:#0a5b55;--brand-soft:#e8f5f3;--blue:#2563eb;--orange:#c65d17;--danger:#c23d4a;--shadow:0 10px 30px rgba(27,54,50,.08);--radius:14px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Yu Gothic UI","Noto Sans JP",system-ui,sans-serif;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr)}
.sidebar{height:100vh;position:sticky;top:0;background:#102a27;color:#d9e5e2;padding:18px 12px;display:flex;flex-direction:column;z-index:20}.mobile-menu-backdrop{display:none}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 25px}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#27c2ac;color:#072925;font-weight:800;font-size:14px}.brand-name{font-size:18px;font-weight:800;color:#fff;letter-spacing:.2px}.nav-list{display:grid;gap:5px}.nav-item{height:45px;border:0;border-radius:10px;padding:0 12px;display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;text-align:left;background:transparent;color:#b8cbc7;font-weight:600;font-size:14px}.nav-item:hover{background:#183b36;color:#fff}.nav-item.is-active{background:#245148;color:#fff}.nav-icon{font-size:18px;text-align:center}.nav-count{display:grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:#e55d6b;color:white;font-size:12px}.sidebar-foot{margin-top:auto;border-top:1px solid #29443f;padding-top:13px}.account-switch{width:100%;border:0;background:transparent;color:white;display:flex;align-items:center;gap:10px;text-align:left;padding:7px}.account-switch span:nth-child(2){display:grid;gap:2px}.account-switch b{font-size:13px}.account-switch small{color:#89aaa3}.account-avatar,.user-avatar,.avatar{display:grid;place-items:center;border-radius:50%;font-weight:700}.account-avatar{width:34px;height:34px;background:#d8b05f;color:#2d2618}.main{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:15;backdrop-filter:blur(8px)}.topbar h1{font-size:19px;margin:0}.topbar p{font-size:12px;margin:4px 0 0;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.icon-button,.user-button,.mobile-menu{border:1px solid var(--line);background:#fff;border-radius:10px;height:40px}.icon-button{width:40px;color:#80908c;position:relative}.notification-dot{position:absolute;right:8px;top:7px;width:7px;height:7px;background:#e4515d;border:2px solid white;border-radius:50%}.user-button{display:flex;align-items:center;gap:10px;padding:0 5px 0 13px;border:0}.user-avatar{width:32px;height:32px;background:#d9eeea;color:var(--brand)}.mobile-menu{display:none;width:40px}.view{display:none}.view.is-visible{display:block}#dashboardView{padding:27px 30px 40px;max-width:1480px;margin:auto}.dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}.dashboard-head h2{font-size:25px;margin:3px 0 6px}.dashboard-head p{margin:0;color:var(--muted)}.eyebrow{font-size:12px!important;text-transform:uppercase;color:var(--brand)!important;font-weight:700}.primary-button{border:0;background:var(--brand);color:#fff;border-radius:10px;padding:11px 17px;font-weight:700}.primary-button:hover{background:var(--brand-dark)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.stat-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(27,54,50,.025)}.stat-card{padding:18px}.stat-label{color:var(--muted);font-size:13px}.stat-card strong{display:block;font-size:26px;margin:8px 0 6px}.stat-card span{font-size:12px}.trend.up{color:var(--brand)}.trend.warn{color:var(--orange)}.muted{color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-bottom:14px}.panel{padding:18px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.panel-head h3{font-size:16px;margin:0 0 4px}.panel-head p{font-size:12px;color:var(--muted);margin:0}.text-button{border:0;background:transparent;color:var(--brand);font-size:13px;font-weight:700}.activity-item{display:grid;grid-template-columns:39px 1fr auto;gap:11px;align-items:center;padding:11px 0;border-top:1px solid #edf1f0}.activity-item:first-child{border-top:0}.activity-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:800}.activity-item b{display:block;font-size:13px}.activity-item small{color:var(--muted)}.activity-time{font-size:12px;color:var(--muted)}.badge{font-size:12px;border-radius:20px;padding:5px 9px}.badge.soft{background:var(--brand-soft);color:var(--brand);font-weight:700}.chart{height:150px;position:relative;margin-top:10px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 36px,#edf1f0 37px)}.chart-bars{position:absolute;inset:12px 8px 0;display:flex;align-items:flex-end;gap:7%}.chart-bars i{flex:1;background:linear-gradient(180deg,#31b7a4,#b7e6df);border-radius:6px 6px 0 0;opacity:.72}.chart-line{position:absolute;z-index:2;left:6%;right:3%;top:32%;height:3px;background:var(--brand);transform:rotate(-8deg);transform-origin:left;border-radius:2px}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:8px}.scenario-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-card{border:1px solid var(--line);border-radius:11px;padding:14px}.summary-card-top{display:flex;justify-content:space-between;gap:8px}.summary-card h4{font-size:14px;margin:0}.summary-card p{font-size:12px;color:var(--muted);margin:7px 0 12px}.progress{height:6px;background:#e7eceb;border-radius:3px;overflow:hidden}.progress i{display:block;height:100%;background:var(--brand);border-radius:3px}.summary-meta{display:flex;justify-content:space-between;margin-top:7px;color:var(--muted);font-size:11px}
.workspace-view.is-visible{height:calc(100vh - 76px);display:grid}.workspace-view{grid-template-columns:330px minmax(440px,1fr)}.list-pane,.detail-pane,.conversation-pane,.profile-pane,.step-pane,.editor-pane{min-width:0;background:#fff}.list-pane{border-right:1px solid var(--line);overflow:auto}.pane-header{height:68px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:3}.pane-header>div{display:flex;align-items:baseline;gap:8px}.pane-header h2{font-size:17px;margin:0}.count-label{font-size:12px;color:var(--muted)}.square-button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:18px}.search-wrap{margin:14px 15px 10px;background:#f2f6f5;border:1px solid transparent;border-radius:9px;padding:0 11px;height:40px;display:flex;align-items:center;gap:8px;color:var(--muted)}.search-wrap:focus-within{border-color:#80c9bf;background:#fff}.search-wrap input{width:100%;border:0;outline:0;background:transparent;font-size:13px}.filter-row{display:flex;gap:7px;padding:0 15px 12px;overflow:auto}.filter-chip{border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--muted);padding:6px 10px;font-size:12px;white-space:nowrap}.filter-chip.is-active{border-color:#9bd5cd;background:var(--brand-soft);color:var(--brand);font-weight:700}.person-list{border-top:1px solid #edf1f0}.person-row{width:100%;border:0;border-bottom:1px solid #edf1f0;background:#fff;padding:13px 15px;display:grid;grid-template-columns:43px 1fr auto;gap:10px;text-align:left;align-items:center}.person-row:hover{background:#f8fbfa}.person-row.is-active{background:#edf8f6;box-shadow:inset 3px 0 var(--brand)}.avatar{width:43px;height:43px;color:white;background:var(--avatar,#659c92)}.person-main{min-width:0}.person-line{display:flex;justify-content:space-between;gap:8px;align-items:center}.person-line b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-line time{font-size:10px;color:var(--muted)}.person-main p{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}.mini-tags{display:flex;gap:4px;margin-top:6px}.mini-tag,.tag{display:inline-flex;align-items:center;border-radius:5px;background:#eef2f1;color:#52635f;padding:3px 6px;font-size:10px}.unread{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#e04f5e;color:white;font-size:10px}.detail-pane{overflow:auto;padding:24px}.detail-inner{max-width:860px;margin:auto}.profile-head{display:flex;align-items:center;gap:15px;padding-bottom:20px;border-bottom:1px solid var(--line)}.profile-head .avatar{width:58px;height:58px;font-size:18px}.profile-head h2{margin:0 0 4px;font-size:19px}.profile-head p{margin:0;color:var(--muted);font-size:12px}.profile-actions{margin-left:auto;display:flex;gap:8px}.secondary-button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px;color:#354642;font-weight:600}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.info-card{border:1px solid var(--line);border-radius:12px;padding:16px}.info-card.full{grid-column:1/-1}.info-card h3{font-size:13px;margin:0 0 13px}.field{margin-bottom:13px}.field:last-child{margin-bottom:0}.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.field select,.field input,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fff;outline:0}.field textarea{min-height:85px;resize:vertical}.tag-cloud{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:12px;padding:5px 8px;background:var(--brand-soft);color:var(--brand)}.tag button{border:0;background:none;color:inherit;padding:0 0 0 5px}.add-tag{border:1px dashed #abc2bd;background:#fff;border-radius:7px;padding:5px 8px;color:var(--brand);font-size:12px}.timeline{display:grid;gap:12px}.timeline-item{display:grid;grid-template-columns:9px 1fr;gap:10px}.timeline-dot{width:8px;height:8px;background:#88bcb4;border-radius:50%;margin-top:5px}.timeline-item p{font-size:12px;margin:0}.timeline-item small{color:var(--muted)}
#chatView{grid-template-columns:310px minmax(430px,1fr) 280px}.conversation-pane{border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}.conversation-head{height:68px;padding:0 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.conversation-head .avatar{width:38px;height:38px}.conversation-head h3{font-size:14px;margin:0}.conversation-head p{font-size:11px;color:var(--muted);margin:3px 0 0}.message-area{flex:1;overflow:auto;padding:20px;background:#f6f9f8}.date-divider{text-align:center;font-size:11px;color:var(--muted);margin:4px 0 18px}.message{max-width:72%;margin-bottom:12px}.message p{display:inline-block;margin:0;padding:10px 13px;border-radius:12px;background:white;border:1px solid var(--line);font-size:13px;line-height:1.55}.message time{display:block;font-size:10px;color:var(--muted);margin-top:4px}.message.out{margin-left:auto;text-align:right}.message.out p{background:#dff4ef;border-color:#c4e8e0;text-align:left}.composer{padding:13px 15px;border-top:1px solid var(--line);background:#fff}.composer textarea{width:100%;height:70px;border:1px solid var(--line);border-radius:9px;padding:10px;resize:none;outline:0}.composer-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.profile-pane{overflow:auto;padding:18px}.side-profile{text-align:center;padding-bottom:16px;border-bottom:1px solid var(--line)}.side-profile .avatar{margin:auto;width:58px;height:58px}.side-profile h3{font-size:15px;margin:10px 0 2px}.side-profile p{font-size:11px;color:var(--muted);margin:0}.side-section{padding:15px 0;border-bottom:1px solid var(--line)}.side-section h4{font-size:12px;margin:0 0 10px}.memo{font-size:12px;line-height:1.65;color:#40514d;background:#f6f8f8;padding:10px;border-radius:8px}
.scenario-workspace.is-visible{grid-template-columns:290px 320px minmax(460px,1fr)}.scenario-list-pane{background:#f8fafa}.scenario-card{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;padding:14px 16px;text-align:left}.scenario-card.is-active{background:#fff;box-shadow:inset 3px 0 var(--brand)}.scenario-card b{font-size:13px}.scenario-card p{margin:5px 0 8px;color:var(--muted);font-size:11px}.scenario-card-foot{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.step-pane{border-right:1px solid var(--line);overflow:auto}.step-head,.editor-head{height:68px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.step-head h3,.editor-head h3{font-size:14px;margin:0}.step-list{padding:14px}.step-item{width:100%;display:grid;grid-template-columns:32px 1fr;gap:10px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px;margin-bottom:9px}.step-item.is-active{border-color:#79c4b9;box-shadow:0 0 0 2px #e1f3f0}.step-number{width:29px;height:29px;border-radius:8px;background:#edf3f2;display:grid;place-items:center;color:var(--brand);font-weight:800;font-size:12px}.step-item b{font-size:12px}.step-item p{font-size:10px;color:var(--muted);margin:4px 0 0}.add-step{width:100%;border:1px dashed #9dbab5;border-radius:9px;background:#f8fbfa;padding:10px;color:var(--brand);font-weight:700}.editor-pane{overflow:auto}.save-state{font-size:11px;color:var(--brand)}.editor-form{max-width:720px;padding:22px;margin:auto}.editor-form h4{margin:0 0 15px}.message-preview{background:#e5efea;border-radius:12px;padding:18px;margin-top:16px}.message-preview p{display:inline-block;max-width:80%;background:#fff;border-radius:12px;padding:12px;margin:0;font-size:13px;line-height:1.6;box-shadow:0 1px 3px rgba(0,0,0,.08)}.editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.simple-view{min-height:calc(100vh - 76px);padding:40px}.simple-view.is-visible{display:grid;place-items:center}.coming-card{max-width:520px;text-align:center;background:white;border:1px solid var(--line);border-radius:18px;padding:45px;box-shadow:var(--shadow)}.coming-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 16px;background:var(--brand-soft);color:var(--brand);border-radius:15px;font-size:25px}.coming-card h2{margin:0 0 8px}.coming-card p{color:var(--muted);margin:0 0 20px}.toast{position:fixed;right:22px;bottom:22px;background:#183c37;color:#fff;padding:12px 17px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;z-index:40;font-size:13px}.toast.is-visible{opacity:1;transform:none}
.mobile-pane-back,.mobile-editor-back{display:none}.mobile-pane-back{border:1px solid #8bcfc5;border-radius:8px;background:#e9f8f5;color:#08786c;padding:7px 9px;font-size:11px;font-weight:800;white-space:nowrap}
@media(max-width:1050px){.app-shell{grid-template-columns:74px minmax(0,1fr)}.brand{justify-content:center;padding-inline:0}.brand-name,.nav-item span:not(.nav-icon):not(.nav-count),.account-switch span:nth-child(2){display:none}.nav-item{grid-template-columns:1fr;padding:0;justify-items:center}.nav-count{position:absolute;margin-left:24px;margin-top:-25px}.account-switch{justify-content:center}.stat-grid{grid-template-columns:repeat(2,1fr)}#chatView{grid-template-columns:280px minmax(400px,1fr)}.profile-pane{display:none}.scenario-workspace.is-visible{grid-template-columns:270px 290px minmax(420px,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:-250px;width:238px;transition:.2s;box-shadow:var(--shadow)}.sidebar.is-open{left:0}.mobile-menu-backdrop.is-visible{display:block;position:fixed;inset:0;z-index:19;border:0;padding:0;background:rgba(10,24,40,.42);touch-action:manipulation}.brand-name,.nav-item span:not(.nav-icon):not(.nav-count),.account-switch span:nth-child(2){display:block}.nav-item{grid-template-columns:25px 1fr auto;padding:0 12px;justify-items:initial}.account-switch{justify-content:flex-start}.mobile-menu{display:block}.topbar{height:66px;padding:0 12px;justify-content:flex-start;gap:10px}.topbar>div:first-of-type{flex:1}.topbar p{display:none}.top-actions{margin-left:auto}.user-button>span:first-child{display:none}#dashboardView{padding:18px 14px 30px}.dashboard-head{align-items:flex-start;gap:15px}.dashboard-head h2{font-size:20px}.dashboard-head .primary-button{display:none}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:14px}.stat-card strong{font-size:21px}.dashboard-grid{grid-template-columns:1fr}.scenario-summary{grid-template-columns:1fr}.workspace-view.is-visible,#chatView.is-visible,.scenario-workspace.is-visible{height:calc(100vh - 66px);display:block}.workspace-view .list-pane{height:100%;border:0}.workspace-view .detail-pane,.workspace-view .conversation-pane,.workspace-view .profile-pane,.workspace-view .step-pane,.workspace-view .editor-pane{display:none}.workspace-view.mobile-detail .list-pane{display:none}.workspace-view.mobile-detail .detail-pane,.workspace-view.mobile-detail .conversation-pane{display:flex;height:100%}.detail-pane{padding:16px}.detail-grid{grid-template-columns:1fr}.profile-actions{display:none}.conversation-pane{border:0}.scenario-workspace.mobile-detail .step-pane{display:block}.scenario-workspace.mobile-editor .list-pane,.scenario-workspace.mobile-editor .step-pane{display:none}.scenario-workspace.mobile-editor .editor-pane{display:block;height:100%}.simple-view{min-height:calc(100vh - 66px);padding:20px}.coming-card{padding:30px 20px}.toast{left:14px;right:14px;bottom:14px;text-align:center}}
@media(max-width:760px){.main{min-height:100dvh;display:flex;flex-direction:column}.topbar{flex:none}.workspace-view.is-visible,#chatView.is-visible,.scenario-workspace.is-visible{height:auto;min-height:0;flex:1}.mobile-pane-back{display:inline-flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:10px 12px;font-size:14px}.step-head,.editor-head{height:auto;min-height:62px;padding:9px 12px;gap:8px;position:sticky;top:0;z-index:4;background:#fff;flex-wrap:wrap}.step-head h3,.editor-head h3{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.step-head-actions{margin-left:auto;display:flex;align-items:center;gap:5px}.scenario-header-delete{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-head .save-state{margin-left:auto;white-space:nowrap}.editor-form{padding:16px 14px 28px}.editor-actions{position:sticky;bottom:0;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 0;background:rgba(255,255,255,.96)}.editor-actions button{min-height:44px}.mobile-editor-back{display:inline-flex;align-items:center;justify-content:center;grid-column:1/-1}.scenario-step-delete{grid-column:1/-1}.step-list>#deleteSelectedScenarioStep{display:none}.scenario-list-pane .pane-header{height:auto;min-height:68px;padding:9px 12px;flex-wrap:wrap}.scenario-list-pane .pane-header>.table-actions{flex-wrap:wrap}.scenario-list-pane .search-wrap{margin-top:8px}}
.sidebar{background:#142238;padding:18px 0}.brand{padding-left:18px;padding-right:18px;flex:0 0 auto}.nav-list{gap:0;border-top:1px solid #071321;min-height:0;overflow-y:auto;overscroll-behavior:contain}.sidebar .nav-item{height:48px;min-height:48px;border-radius:0;border-bottom:1px solid #071321;padding:0 14px;color:#fff;font-size:15px;font-weight:800;letter-spacing:.02em}.sidebar .nav-item:hover{background:#1d304a}.sidebar .nav-item.is-active{background:#2b3b50;box-shadow:inset 4px 0 #f2b705;color:#fff}.sidebar .nav-icon{color:#fff;font-weight:800}.sidebar-foot{flex:0 0 auto;border-top:1px solid #071321;padding:13px 12px 0}
.avatar{overflow:hidden;flex:0 0 auto}.avatar img{width:100%;height:100%;display:block;object-fit:cover}

/* Header notification icon */
.icon-button{display:grid;place-items:center;padding:0}
.notification-bell-icon{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-button:hover{color:var(--brand);background:var(--brand-soft);border-color:#b9dcd6}
.icon-button:focus-visible{outline:3px solid rgba(15,118,110,.2);outline-offset:2px}
.manual-start{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin-bottom:18px;border-left:5px solid var(--brand)}.manual-start h3,.manual-card h3,.manual-note h3{margin:7px 0}.manual-start p,.manual-note p{margin:0;color:var(--muted);line-height:1.8}.manual-number{color:var(--brand);font-size:12px;font-weight:800}.manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.manual-card{position:relative;padding:22px}.manual-card>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--brand-soft);color:var(--brand);font-weight:800}.manual-card ol{margin:13px 0 17px;padding-left:21px;color:var(--muted);font-size:13px;line-height:2}.manual-card .text-button{padding:0}.manual-note{background:#f1f8f6;border-color:#cce5e0}@media(max-width:760px){.manual-start{display:block}.manual-start .primary-button{margin-top:16px}.manual-grid{grid-template-columns:1fr}}
.tag-picker{display:grid;gap:8px;max-height:320px;overflow:auto}.tag-picker-option{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #dce5e2;border-radius:10px;cursor:pointer}.tag-picker-option:hover{background:#f5faf8}.tag-picker-option input{width:18px;height:18px;accent-color:#0f766e}.tag-swatch{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:7px;vertical-align:-1px}
.scenario-current-status{display:grid;gap:6px;margin:12px 0;padding:12px;border:1px solid #b9ddd6;border-radius:10px;background:#f2faf8}.scenario-current-status>b{color:#08786c}.scenario-current-status span{display:block;font-size:12px;line-height:1.6;color:#52635f}.scenario-current-status strong{color:#183c36}
.friend-tag-create{margin-bottom:16px;padding:14px;border:1px solid #b9ded8;border-radius:12px;background:#f1faf8}.friend-tag-create>label{display:block;margin-bottom:8px;font-weight:800;color:#174b44}.friend-tag-create>div{display:grid;grid-template-columns:minmax(0,1fr) 46px auto;gap:8px}.friend-tag-create input[type="text"],.friend-tag-create input:not([type]){min-width:0}.friend-tag-create input[type="color"]{width:46px;height:44px;padding:4px;border:1px solid #ccd9d6;border-radius:8px;background:#fff}.friend-tag-create button{white-space:nowrap}@media(max-width:600px){.friend-tag-create>div{grid-template-columns:minmax(0,1fr) 46px}.friend-tag-create button{grid-column:1/-1}}
.archived-tag{opacity:.68;border-style:dashed}.archived-tag small{margin-left:5px;font-size:10px;font-weight:700;color:#687673}
.settings-grid{display:grid;gap:18px}.settings-grid .panel{min-width:0}
.wide-dialog{width:min(960px,calc(100vw - 32px));max-width:960px}.queue-error{display:block;max-width:240px;color:#b23a48;font-size:10px;white-space:normal}.status-pill.failed{background:#fde8ea;color:#a62f3d}.status-pill.sent{background:#e3f5ee;color:#137052}
.scenario-progress-tools{display:grid;grid-template-columns:minmax(240px,1fr) 190px 150px auto;gap:8px;align-items:center;margin-bottom:14px}.scenario-progress-tools .search-wrap{margin:0}.scenario-progress-tools select{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 10px;color:#354642}.scenario-progress-table{max-height:58vh}.scenario-progress-table td{vertical-align:middle}.scenario-progress-table td small{display:block;color:var(--muted);margin-top:4px}.scenario-friend-cell{display:flex;align-items:center;gap:9px;min-width:150px}.scenario-friend-cell img,.scenario-friend-cell>span{width:34px;height:34px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:11px}.scenario-mini-progress{height:5px;min-width:90px;margin-top:7px;border-radius:4px;background:#e7eceb;overflow:hidden}.scenario-mini-progress i{display:block;height:100%;background:var(--brand);border-radius:4px}.scenario-progress-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:14px;color:var(--muted);font-size:12px}.scenario-progress-pagination>div{display:flex;align-items:center;gap:10px}.scenario-progress-pagination button:disabled{opacity:.45;cursor:not-allowed}.status-pill.completed{background:#e3f5ee;color:#137052}.status-pill.cancelled,.status-pill.paused{background:#eef1f1;color:#687673}@media(max-width:760px){.scenario-progress-tools{grid-template-columns:1fr 1fr}.scenario-progress-tools .search-wrap{grid-column:1/-1}.scenario-progress-table{max-height:52vh}}
.scenario-trigger-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;margin:14px 0;background:#f5faf8;border:1px solid #dce9e5;border-radius:11px}.scenario-trigger-grid .field:last-child{grid-column:1/-1}@media(max-width:760px){.scenario-trigger-grid{grid-template-columns:1fr}.scenario-trigger-grid .field:last-child{grid-column:auto}}
.scenario-branch-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;margin:14px 0;background:#fff9ec;border:1px solid #eadfbe;border-radius:11px}@media(max-width:760px){.scenario-branch-grid{grid-template-columns:1fr}}
.sending-guard{padding:9px 14px;background:#fff3d6;color:#805b08;border-bottom:1px solid #ead8a8;font-size:11px;font-weight:700}.sending-guard.enabled{background:#e7f6f1;color:#126d53;border-color:#c9e8dd}.quota-meter{display:block;font-weight:400;margin-top:3px}
.alert-list{display:grid;gap:10px}.system-alert{display:flex;justify-content:space-between;gap:16px;padding:13px;border:1px solid var(--line);border-left:4px solid #678;border-radius:9px}.system-alert.warning{border-left-color:#d99a22}.system-alert.critical{border-left-color:#d14857;background:#fff8f8}.system-alert p{margin:5px 0;color:var(--muted);font-size:12px}.system-alert small{color:var(--muted)}
.export-actions{display:flex;gap:9px;flex-wrap:wrap}.template-snippet{display:block;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-picker{display:grid;gap:8px;max-height:420px;overflow:auto}.template-choice{display:grid;gap:5px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff}.template-choice:hover{background:#f5faf8}.template-choice span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step-item[draggable="true"]{cursor:grab}
.calendar-list{display:grid;gap:8px}.calendar-row{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px;border-bottom:1px solid var(--line)}.calendar-row time{color:var(--brand);font-weight:700;font-size:12px}.calendar-row span{display:grid}.calendar-row small{color:var(--muted)}
.brand{padding:0 6px 22px;gap:0}.brand-logo{display:block;width:190px;max-width:100%;height:auto;border-radius:7px}@media(max-width:1050px){.brand-logo{width:54px}}@media(max-width:760px){.brand-logo{width:190px}}
.global-project-switcher{display:grid;grid-template-columns:auto minmax(180px,280px) auto;align-items:center;gap:8px;padding:7px 10px;border:1px solid #b8ddd7;border-radius:11px;background:#edf9f7}.global-project-switcher label{color:#08786c;font-size:10px;font-weight:900;white-space:nowrap}.global-project-switcher select{min-width:0;border:0;background:#fff;color:#183c37;border-radius:7px;padding:8px 30px 8px 10px;font-size:13px;font-weight:800;outline:0}.global-project-switcher span{padding:5px 8px;border-radius:12px;background:#0f8f80;color:#fff;font-size:10px;font-weight:800;white-space:nowrap}@media(max-width:1100px){.global-project-switcher{grid-template-columns:minmax(150px,220px) auto}.global-project-switcher label{display:none}}@media(max-width:760px){.topbar{flex-wrap:wrap;height:auto;min-height:70px}.global-project-switcher{order:3;width:100%;grid-template-columns:1fr auto}.global-project-switcher select{width:100%}.topbar>div:not(.global-project-switcher):not(.top-actions){display:none}}
.billing-button{border-color:#ed9c3c!important;background:#fff3df!important;color:#a95212!important;font-weight:900!important}.billing-button:hover{background:#ffe3bd!important}
.quota-overview{margin-bottom:18px}.quota-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;padding:0 18px 18px}.quota-account-card{position:relative;display:grid;gap:7px;padding:16px;border:2px solid #cce5e1;border-radius:13px;background:#f8fcfb}.quota-account-card.warning{border-color:#efb45f;background:#fff9ee}.quota-account-card.critical{border-color:#e56d78;background:#fff4f5}.quota-account-head{display:flex;justify-content:space-between;gap:8px}.quota-account-head span{font-weight:900}.quota-account-head small{color:var(--muted)}.quota-account-card>strong{font-size:25px;color:#08786c}.quota-account-card.warning>strong{color:#b5600b}.quota-account-card.critical>strong{color:#bd3344}.quota-account-card p,.quota-account-card>small{margin:0;color:var(--muted);font-size:11px}.quota-progress{height:9px;overflow:hidden;border-radius:8px;background:#dfe9e7}.quota-progress i{display:block;height:100%;background:#16a394}.warning .quota-progress i{background:#e99a2d}.critical .quota-progress i{background:#d94b5c}.quota-billing-link{position:absolute;right:12px;bottom:12px;padding:6px 9px;border-radius:7px;background:#fff0d8;color:#a95212;text-decoration:none;font-size:10px;font-weight:900}.account-quota-inline{display:block;margin-top:7px;padding:4px 7px;border-radius:6px;background:#e9f7f4;color:#08786c;font-weight:800}.account-quota-inline.warning{background:#fff1d6;color:#a95a0c}.account-quota-inline.critical{background:#ffe5e8;color:#b52f40}@media(max-width:760px){.quota-overview-grid{grid-template-columns:1fr}.quota-account-card>strong{font-size:22px}}
.account-error-row{background:#fff4f5!important}.account-error-row td{border-color:#f1c4c9!important}.account-error-badge{display:block;width:max-content;margin-top:5px;padding:4px 7px;border-radius:6px;background:#d83b4e;color:#fff;font-size:10px;font-weight:900}
.chat-composer-tools{display:flex;gap:7px;align-items:center}.chat-attach-button{cursor:pointer}.chat-attachment-preview{margin-top:7px;padding:8px 10px;border:1px solid #cfe2de;border-radius:8px;background:#f3faf8;color:#52635f;font-size:11px;display:flex;justify-content:space-between;gap:8px}.chat-attachment-preview[hidden]{display:none}.chat-attachment-preview button{border:0;background:none;color:#6c7d79;font-size:17px}.chat-image{display:block;max-width:260px;max-height:260px;border-radius:11px;object-fit:cover}.chat-image-link{display:inline-block}.chat-file-link{display:inline-flex;align-items:center;gap:9px;max-width:300px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#24443e;text-decoration:none;text-align:left}.message.out .chat-file-link{background:#dff4ef;border-color:#c4e8e0}.chat-file-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#e4f4f0;color:var(--brand);font-size:18px}.chat-file-link span:last-child{min-width:0}.chat-file-link b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chat-file-link small{display:block;color:var(--muted);margin-top:3px;font-size:9px}
.button-template{border-color:#c4b5fd!important;background:#f3f0ff!important;color:#6d28d9!important;box-shadow:0 2px 7px rgba(109,40,217,.1)}.button-template:hover{background:#e9e2ff!important;border-color:#a78bfa!important}.button-attachment{border-color:#7dd3c7!important;background:#e9faf7!important;color:#087f72!important;box-shadow:0 2px 7px rgba(8,127,114,.1)}.button-attachment:hover{background:#d6f5ef!important;border-color:#45b8a8!important}.button-template span,.button-attachment span{font-weight:900}.button-template-create{width:100%;margin-bottom:12px;background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;box-shadow:0 5px 14px rgba(91,33,182,.2)}.colored-tag{--tag-color:#0f766e;color:var(--tag-color)!important;background:color-mix(in srgb,var(--tag-color) 12%,white)!important;border:1px solid color-mix(in srgb,var(--tag-color) 38%,white);font-weight:700}.colored-tag i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--tag-color)}.mini-tags .colored-tag{font-size:10px;padding:3px 6px}
.button-sticker{border-color:#7bd89a!important;background:#ecfff2!important;color:#07873a!important;box-shadow:0 2px 7px rgba(7,135,58,.1)}.button-sticker:hover{background:#d9fbe5!important;border-color:#36bc68!important}.sticker-picker{display:block;margin:8px -15px -13px;border-top:1px solid #d6dfdd;background:#fff;box-shadow:0 -7px 18px rgba(22,35,33,.06)}.sticker-picker[hidden]{display:none}.sticker-category-bar{height:48px;display:flex;align-items:center;gap:6px;padding:4px 12px;border-bottom:1px solid #dfe7e5;background:#f6f8f8}.sticker-category{display:grid;place-items:center;width:42px;height:40px;padding:3px;border:0;border-bottom:3px solid transparent;background:transparent;color:#94a29f;font-size:22px}.sticker-category:hover,.sticker-category.is-active{border-bottom-color:#08b64c;background:#eaf8ef;color:#08a847}.sticker-category img{width:31px;height:31px;object-fit:contain;filter:grayscale(.55);opacity:.75}.sticker-category.is-active img{filter:none;opacity:1}.sticker-category-bar>span{margin-left:8px;color:#667570;font-size:11px;font-weight:700}.sticker-close{margin-left:auto;width:32px;height:32px;border:0;border-radius:8px;background:#e9eeed;color:#64736f;font-size:20px}.sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:14px;max-height:300px;overflow:auto;padding:22px 26px}.sticker-choice{display:grid;place-items:center;min-height:94px;padding:5px;border:1px solid transparent;border-radius:12px;background:#fff;cursor:pointer;transition:.15s}.sticker-choice:hover{border-color:#8bdca7;background:#f0fff5;transform:translateY(-2px);box-shadow:0 5px 12px rgba(8,182,76,.12)}.sticker-choice:disabled{opacity:.55}.sticker-choice img{display:block;width:82px;height:82px;object-fit:contain}.chat-sticker{display:inline-grid;justify-items:center;gap:4px;max-width:150px}.chat-sticker img{display:block;width:120px;height:120px;object-fit:contain}.chat-sticker small{color:var(--muted);font-size:9px}.chat-sticker.received{min-width:170px;padding:13px;border:1px solid #cfe1dd;border-radius:12px;background:#f3faf8;text-align:center}.chat-sticker.received>span{font-size:32px;color:#0f8f80}.chat-sticker.received b{font-size:12px}.chat-sticker.received small{display:block}.message.out .chat-sticker small{color:#426a63}@media(max-width:760px){.sticker-grid{grid-template-columns:repeat(4,1fr);gap:7px;padding:12px}.sticker-choice{min-height:65px}.sticker-choice img{width:58px;height:58px}.sticker-category-bar>span{display:none}}
.sound-toggle{border:1px solid #9fd7ce;background:#e8f8f5;color:#08786c;border-radius:18px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.sound-toggle.is-off{border-color:var(--line);background:#f2f4f4;color:#71807d}
.instant-send-button{background:#e76f2e}.instant-send-button:hover{background:#c9561d}.instant-send-button:disabled{background:#b9c4c2;color:#f7f9f8}
.broadcast-image-button{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;border:1px solid #79c7bc;border-radius:9px;background:#eaf8f5;color:#08786c!important;padding:10px 14px;font-weight:800;cursor:pointer}.broadcast-image-selected{margin-top:8px;display:flex;align-items:center;justify-content:space-between;background:#f3f7f6;border-radius:8px;padding:8px 10px;font-size:12px}.broadcast-image-selected button{border:0;background:transparent;font-size:18px}.broadcast-preview-image{display:block;width:100%;max-height:230px;object-fit:cover;border-radius:12px;margin-bottom:9px}
.preview-variable-notice{display:flex;flex-direction:column;gap:2px;margin:10px 12px 0;padding:8px 10px;border:1px solid #f0c36b;border-radius:8px;background:#fff8e8;color:#79520b;font-size:11px;line-height:1.5}.preview-variable-notice b{font-size:12px}.message-preview>.preview-variable-notice{margin:0 0 10px}
.broadcast-card #previewAudience{border:0;background:linear-gradient(135deg,#0f8f80,#18ad98);color:#fff;box-shadow:0 5px 14px rgba(15,143,128,.22);font-weight:800}.broadcast-card #previewAudience:hover{background:linear-gradient(135deg,#0b776c,#0f9686);transform:translateY(-1px)}
.message-variable-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}.message-variable-tools>span{font-size:11px;color:var(--muted);font-weight:700}.message-variable-tools button{border:1px solid #8ccfc5;border-radius:16px;background:#eaf8f5;color:#08786c;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer}.message-variable-tools button:hover{background:#d6f4ef;border-color:#48b5a6}.scenario-delay-row{display:grid;grid-template-columns:minmax(110px,1fr) 150px;gap:9px}.scenario-delay-row select{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fff;outline:0}.scenario-delay-row input:disabled{background:#eef2f1;color:#899592}@media(max-width:760px){.scenario-delay-row{grid-template-columns:1fr 130px}}
.manual-view{display:none;align-content:start}.manual-view.is-visible{display:block}.manual-alert{padding:16px 18px;margin-bottom:14px;border-left:5px solid #f2b705;border-radius:10px;background:#fff8dc}.manual-alert p{margin:6px 0 0;color:#5d625f;line-height:1.75}.manual-toc{position:sticky;top:0;z-index:4;display:flex;gap:7px;flex-wrap:wrap;padding:10px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 5px 15px rgba(20,34,56,.06)}.manual-toc a{padding:7px 11px;border-radius:18px;background:#edf8f6;color:#08786c;text-decoration:none;font-size:12px;font-weight:800}.manual-chapter{scroll-margin-top:78px;padding:24px;margin-bottom:16px}.manual-chapter-head{display:flex;gap:14px;align-items:flex-start;padding-bottom:17px;margin-bottom:18px;border-bottom:1px solid var(--line)}.manual-chapter-head>span{flex:none;padding:7px 10px;border-radius:8px;background:var(--brand);color:#fff;font-size:11px;font-weight:900}.manual-chapter-head h3{margin:0 0 5px;font-size:19px}.manual-chapter-head p{margin:0;color:var(--muted);line-height:1.6}.manual-two-column{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:24px;align-items:start}.manual-steps{margin:0;padding:0;list-style:none;counter-reset:manual-step}.manual-steps li{position:relative;padding:0 0 18px 42px;counter-increment:manual-step}.manual-steps li:before{content:counter(manual-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e4f5f1;color:#08786c;font-weight:900}.manual-steps li:not(:last-child):after{content:"";position:absolute;left:13px;top:30px;bottom:2px;border-left:2px solid #d8e7e4}.manual-steps b{font-size:14px}.manual-steps p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.75}.manual-steps.compact{display:grid;grid-template-columns:1fr 1fr;gap:5px 22px}.manual-visual{padding:14px;border-radius:15px;background:linear-gradient(145deg,#0c1c1b,#123f39);box-shadow:0 12px 30px rgba(8,49,44,.15)}.manual-window{display:grid;gap:7px;padding:17px;border-radius:11px;background:#fff}.manual-window>b{margin-bottom:5px}.manual-window label{font-size:10px;color:var(--muted)}.manual-window i{padding:9px;border:1px solid #dce5e2;border-radius:7px;background:#f8faf9;font-style:normal;font-size:11px}.manual-window em{padding:10px;border-radius:8px;background:var(--brand);color:#fff;text-align:center;font-style:normal;font-weight:800}.manual-visual>p{margin:10px 0 0;color:#cde5e0;text-align:center;font-size:10px}.manual-check{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px;padding:12px;border-radius:9px;background:#f5faf8;font-size:12px}.manual-check b{width:100%;color:#08786c}.manual-flow,.manual-scenario-line{display:flex;align-items:center;justify-content:center;gap:15px;padding:22px;margin-bottom:20px;border-radius:14px;background:#f2f8f6}.manual-flow div,.manual-scenario-line div{min-width:150px;padding:14px;border:1px solid #cfe3df;border-radius:11px;background:#fff;text-align:center}.manual-flow div.accent{background:#0d8377;color:#fff}.manual-flow small,.manual-scenario-line small{display:block;margin-top:4px;color:inherit;opacity:.72}.manual-flow strong,.manual-scenario-line i{color:#0d8377;font-style:normal}.manual-grid.detail section{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcfc}.manual-grid.detail h4{margin:0 0 10px}.manual-grid.detail ol{padding-left:20px;line-height:2;color:#53635f}.manual-tip,.manual-warning{padding:11px 13px;border-radius:9px;background:#fff7dd;color:#725616;font-size:12px;line-height:1.65}.manual-actions{display:flex;gap:18px;margin-top:14px}.manual-visual.broadcast{display:grid;gap:8px;background:#f1f7f5;box-shadow:none}.manual-visual.broadcast div{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;background:#fff;color:#32433f}.manual-visual.broadcast span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dff3ef;color:#08786c;font-weight:900}.manual-visual.broadcast .send{background:#e47434;color:#fff;font-weight:900}.manual-warning{margin:17px 0;background:#fff2e8;color:#8a481f;border-left:4px solid #e47434}.manual-trouble{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.manual-trouble>div{padding:15px;border:1px solid var(--line);border-radius:10px;background:#fafcfc}.manual-trouble b{color:#183c37}.manual-trouble p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.manual-checklist{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.manual-checklist label{padding:10px;border-radius:8px;background:#fff;font-size:12px}@media(max-width:900px){.manual-two-column{grid-template-columns:1fr}.manual-steps.compact,.manual-trouble,.manual-checklist{grid-template-columns:1fr}.manual-flow,.manual-scenario-line{align-items:stretch;flex-direction:column}.manual-flow strong,.manual-scenario-line i{text-align:center;transform:rotate(90deg)}}@media(max-width:760px){.manual-chapter{padding:17px}.manual-toc{position:static}.manual-actions{display:grid}.manual-chapter-head h3{font-size:16px}}
.scenario-history-button{display:inline-flex;align-items:center;gap:6px;height:42px;border:1px solid #8bcfc5;border-radius:11px;background:#e9f8f5;color:#08786c;padding:0 12px;font-size:12px;font-weight:900;white-space:nowrap;cursor:pointer}.scenario-history-button span{font-size:17px}.scenario-history-button:hover{background:#d6f3ee;border-color:#51b7a8}@media(max-width:1180px){.scenario-history-button{width:42px;padding:0;justify-content:center;font-size:0}.scenario-history-button span{font-size:17px}}
.account-bulk-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#edf8f6;border-top:1px solid #d8ebe7;border-bottom:1px solid #d8ebe7;color:#28625b}.account-bulk-bar button{border:1px solid #83c8bd;border-radius:8px;background:#fff;color:#08786c;font-weight:800;padding:7px 11px;cursor:pointer}.account-bulk-bar:not(.has-selection){opacity:.58}.import-guide{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border-radius:12px;background:#edf8f6;color:#235d56}.import-preview{display:grid;gap:8px;padding:14px;border:1px solid #d9e4e2;border-radius:12px;min-height:70px}.import-preview-rows{display:grid;gap:5px;max-height:270px;overflow:auto}.import-preview-rows div{display:grid;grid-template-columns:70px 1fr 1fr;gap:10px;padding:8px;border-radius:7px;background:#f5faf9}.import-preview-rows div.invalid{background:#fff0f1;color:#a52b3b}.import-preview-rows small{overflow-wrap:anywhere}@media(max-width:760px){.account-bulk-bar{overflow:auto}.import-guide{align-items:flex-start;flex-direction:column}.import-preview-rows div{grid-template-columns:55px 1fr}.import-preview-rows small{grid-column:2}}
#chatView{grid-template-columns:310px minmax(430px,1fr) 290px;grid-template-rows:52px minmax(0,1fr)}.chat-quick-nav{grid-column:1/-1;display:flex;align-items:stretch;gap:4px;padding:0 18px;border-bottom:1px solid #d9e0df;background:#fff}.chat-quick-nav button{border:0;border-bottom:3px solid transparent;background:transparent;padding:0 20px;color:#4d5d59;font-size:14px}.chat-quick-nav button:hover,.chat-quick-nav button.is-active{border-bottom-color:#08b64c;color:#078b3a;font-weight:800}.chat-quick-account{margin-left:auto;display:flex;align-items:center;color:#6b7976;font-size:11px}.chat-quick-account b{margin-left:5px;padding:6px 10px;border-radius:15px;background:#e8f8ed;color:#078b3a}.conversation-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.conversation-head-actions span{color:#08a847;font-size:10px;font-weight:800}.conversation-head-actions button{height:34px;border:1px solid #d6dfdd;border-radius:6px;background:#fff;color:#34433f;font-weight:700}.message.out p{background:#c8f0ca;border-color:#a9e0ac}.composer textarea{border:0;border-radius:0}.composer-actions>.primary-button{background:#08b64c;border-radius:6px}.profile-pane{padding:0 18px 18px}.side-profile{padding:28px 0 18px}.side-profile .avatar{width:112px;height:112px;font-size:28px}.side-profile h3{font-size:20px;color:#08a847}.profile-manage-button{margin-top:13px;border:0;border-radius:5px;background:#08b64c;color:#fff;padding:9px 12px;font-size:11px;font-weight:800}.profile-tabs{display:flex;margin:0 -18px;padding:0 12px;border-bottom:1px solid #08b64c;background:#08b64c;color:#fff}.profile-tabs>*{flex:1;padding:11px 5px;text-align:center;font-size:11px}.profile-tabs b{background:#fff;color:#078b3a;border-radius:6px 6px 0 0}@media(max-width:760px){#chatView{grid-template-rows:auto 1fr}.chat-quick-nav{display:none}.conversation-head-actions span{display:none}.side-profile .avatar{width:76px;height:76px}}
.conversation-head-actions .chat-status-button{padding:0 10px;color:#53625e}.conversation-head-actions .chat-status-button.needs-action.is-active{border-color:#08b64c;background:#08b64c;color:#fff}.conversation-head-actions .chat-status-button.resolved.is-active{border-color:#087f38;background:#087f38;color:#fff}.support-badge{display:inline-flex;align-items:center;width:max-content;padding:2px 8px;border-radius:4px;color:#fff;font-size:12px;font-weight:700;line-height:1.5}.support-badge.needs-action{background:#45bd72}.support-badge.resolved{background:#667a74}.sticker-category-bar{overflow-x:auto;overflow-y:hidden}.sticker-category{flex:0 0 42px}.sticker-category-bar>span{white-space:nowrap}.sticker-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}@media(max-width:1000px){.conversation-head-actions .chat-status-button{font-size:0;width:36px;padding:0}.conversation-head-actions .chat-status-button:before{font-size:14px}.conversation-head-actions .needs-action:before{content:"●"}.conversation-head-actions .resolved:before{content:"✓"}}
.chat-list-actions{display:flex;flex:none;align-items:center;gap:5px}.bulk-reply-open{flex:none;min-width:76px;height:34px;border:1px solid #08a847;border-radius:7px;background:#08b64c;color:#fff;padding:0 8px;font-size:11px;font-weight:800;white-space:nowrap}.chat-list-actions .sound-toggle{flex:none;width:76px;padding:0 4px;font-size:9px;white-space:nowrap}.automated-toggle.is-active{border-color:#56ba70;background:#eaffef;color:#078b3a}.automated-message{opacity:.88}.automated-message-label{display:inline-block;margin:0 0 4px;padding:2px 7px;border-radius:9px;background:#e7f4ec;color:#39754b;font-size:9px;font-weight:800}.bulk-reply-toolbar{display:flex;gap:8px}.bulk-reply-toolbar input{flex:1}.bulk-reply-targets{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:280px;overflow:auto;margin:12px 0;padding:8px;border:1px solid var(--line);border-radius:10px}.bulk-reply-target{display:grid;grid-template-columns:auto 34px 1fr;align-items:center;gap:8px;padding:8px;border-radius:8px;background:#f6faf9}.bulk-reply-target .avatar{width:32px;height:32px}.bulk-reply-target span:last-child{display:grid}.bulk-reply-target small{color:var(--muted)}.bulk-reply-count{font-weight:900;color:#08786c}.bulk-reply-confirm{padding:12px;border-radius:9px;background:#fff6db;color:#795e18}@media(max-width:760px){.chat-list-actions{flex-direction:column;align-items:stretch}.bulk-reply-open,.sound-toggle{font-size:10px}.bulk-reply-targets{grid-template-columns:1fr}.conversation-head-actions .automated-toggle{font-size:0;width:36px;padding:0}.conversation-head-actions .automated-toggle:before{content:"自";font-size:13px;font-weight:900}}
.chat-add-tag-button{display:block;margin:12px auto 0;border:0;background:transparent;color:#08a847;font-weight:900;font-size:13px}.chat-add-tag-button:hover{text-decoration:underline}.side-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-section-title h4{margin:0}.side-section-title button{display:grid;place-items:center;width:28px;height:28px;border:1px solid #76d598;border-radius:50%;background:#ecfff2;color:#08a847;font-size:18px;font-weight:900}.side-section-title button:hover{background:#d8f9e3}
.profile-tabs button{flex:1;padding:11px 5px;border:0;background:transparent;color:#fff;text-align:center;font-size:11px;font-weight:800}.profile-tabs button.is-active{background:#fff;color:#078b3a;border-radius:6px 6px 0 0}.chat-scenario-panel[hidden],#chatNotesPanel[hidden]{display:none}.chat-scenario-panel{padding:16px 0}.chat-scenario-add{display:grid;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--line)}.chat-scenario-add h4,.chat-enrollment-list h4{margin:0 0 4px;font-size:12px}.chat-scenario-add select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px}.chat-scenario-add .primary-button{padding:9px}.chat-enrollment-list{display:grid;gap:9px;padding-top:16px}.chat-enrollment-card{display:grid;gap:7px;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fafcfc}.chat-enrollment-card>div{display:flex;align-items:center;justify-content:space-between;gap:7px}.chat-enrollment-card b{font-size:12px}.chat-enrollment-card p,.chat-enrollment-card small{margin:0;color:var(--muted);font-size:10px}.chat-enrollment-card .danger{color:#b23a48;border-color:#e6b4ba;background:#fff5f6}
.notification-provider .secondary-button{padding-left:8px!important;padding-right:8px!important;white-space:nowrap!important;font-size:clamp(12px,1.05vw,14px)!important}
.notification-provider{min-width:0;border:1px solid #d7e4e1!important;border-radius:14px!important;padding:18px!important;background:#fff;transition:.2s}.notification-provider legend{display:flex;align-items:center;gap:10px;max-width:100%;padding:0 6px}.notification-provider-status{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:#eef2f1;color:#64736f;font-size:11px;font-weight:800;white-space:nowrap}.notification-provider.is-configured{border:2px solid #159779!important;background:#effaf7;box-shadow:0 0 0 3px rgba(21,151,121,.08)}.notification-provider-status.is-configured{background:#159779;color:#fff}.notification-provider .field,.notification-provider input{min-width:0;width:100%;box-sizing:border-box}.notification-provider input::placeholder{font-size:13px}.notification-provider .secondary-button{width:100%;white-space:normal;line-height:1.35}@media(max-width:760px){.notification-provider{padding:14px!important}.notification-provider legend{flex-wrap:wrap}.notification-provider input::placeholder{font-size:12px}}
.manual-section{padding:20px 0;border-top:1px solid var(--line)}.manual-section:first-of-type{border-top:0}.manual-section>h3{margin:0 0 14px;color:#183c37}.manual-section>ol,.manual-section>ul{padding-left:22px;line-height:1.85;color:#53635f}.manual-section code{padding:2px 5px;border-radius:5px;background:#edf5f3;color:#075e55}.manual-caution{margin:14px 0;padding:11px 13px;border-left:4px solid #e47434;border-radius:9px;background:#fff2e8;color:#8a481f;font-size:12px;line-height:1.65}.manual-start-here{padding:18px;border:2px solid #9bd8cf;border-radius:14px;background:#f5fcfa}.manual-purpose-table td:first-child{font-weight:800;color:#183c37}.manual-expanded-guide .manual-grid.detail{margin:14px 0}.manual-expanded-guide .manual-grid.detail section ol,.manual-expanded-guide .manual-grid.detail section ul{padding-left:20px;line-height:1.8}.manual-expanded-guide .data-table td{vertical-align:top;line-height:1.6}@media(max-width:760px){.manual-start-here{padding:12px}.manual-expanded-guide .data-table{min-width:620px}}
.manual-connect-flow{display:flex;align-items:stretch;justify-content:center;gap:8px;padding:16px;border-radius:13px;background:#f2f8f6}.manual-connect-flow div{display:grid;place-items:center;gap:7px;min-width:120px;padding:13px 10px;border:1px solid #cfe3df;border-radius:10px;background:#fff;text-align:center}.manual-connect-flow div b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#0d8377;color:#fff}.manual-connect-flow div span{font-size:12px;font-weight:800;color:#294b46}.manual-connect-flow i{align-self:center;color:#0d8377;font-style:normal;font-weight:900}.manual-connection-guide a{color:#08786c;font-weight:800}@media(max-width:1100px){.manual-connect-flow{display:grid;grid-template-columns:1fr}.manual-connect-flow i{text-align:center;transform:rotate(90deg)}}
.nav-count[hidden]{display:none!important}
@media(max-width:760px){.manual-view,.manual-grid,.manual-grid.detail section{min-width:0;max-width:100%}.manual-expanded-guide .table-scroll{width:100%;max-width:100%;overflow-x:auto}}
.scenario-state-alert{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin:0 0 18px;padding:14px 16px;border-radius:12px;border:2px solid}.scenario-state-alert b{font-size:14px}.scenario-state-alert span{font-size:12px;line-height:1.6}.scenario-state-alert.is-inactive{color:#9f1239;background:#fff1f2;border-color:#fb7185}.scenario-state-alert.is-active{color:#06664f;background:#e8f7f1;border-color:#5bc6a8}.scenario-state-alert .primary-button{white-space:nowrap}@media(max-width:760px){.scenario-state-alert{grid-template-columns:1fr}.scenario-state-alert .primary-button{width:100%}}
.message p{white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-pane{container-type:inline-size}.conversation-head>.avatar{flex:none}.conversation-head>div:not(.conversation-head-actions){min-width:0;max-width:260px;flex:1}.conversation-head h3,.conversation-head p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-head-actions{flex:none;white-space:nowrap}.conversation-head-actions button{white-space:nowrap}@container (max-width:760px){.conversation-head>div:not(.conversation-head-actions){max-width:none}.conversation-head-actions{gap:4px}.conversation-head-actions button{width:36px;padding:0;font-size:0}.conversation-head-actions button:before{font-size:14px}.conversation-head-actions .automated-toggle:before{content:"自"}.conversation-head-actions .needs-action:before{content:"●"}.conversation-head-actions .resolved:before{content:"✓"}.conversation-head-actions #chatSearchButton:before{content:"⌕"}}

/* Mobile usability: make navigation distinct and keep chat actions understandable. */
@media(max-width:760px){
  .mobile-pane-back,.mobile-editor-back{border-color:#6f9fdf;background:#eaf3ff;color:#1557a6;box-shadow:0 1px 2px rgba(21,87,166,.12);font-weight:800}
  .mobile-pane-back:active,.mobile-editor-back:active{background:#d8e9ff}
  .conversation-head{height:auto;min-height:112px;padding:10px 12px;align-items:flex-start;flex-wrap:wrap;gap:8px}
  .conversation-head>div:not(.conversation-head-actions){max-width:none;flex:1;min-width:0}
  .conversation-head-actions{width:100%;margin-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .conversation-head-actions button,.conversation-head-actions .chat-status-button,.conversation-head-actions .automated-toggle{width:100%;min-width:0;height:40px;padding:0 8px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
  .conversation-head-actions button:before{content:none!important}
}
@media(min-width:761px){
  .conversation-head-actions{width:auto;margin-left:auto;display:flex;gap:6px}
  .conversation-head-actions button,.conversation-head-actions .chat-status-button,.conversation-head-actions .automated-toggle{width:auto;height:34px;padding:0 8px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
  .conversation-head-actions button:before{content:none!important}
}
.support-badge.blocked,.chat-blocked-badge{background:#fff0f1;color:#b4232f;border:1px solid #ef9da5}
.mini-tags{min-width:0;overflow:hidden;align-items:center;white-space:nowrap}.mini-tags>.support-badge,.mini-tags>.mini-tag,.mini-tags>.tag{flex:0 0 auto;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}.mini-tags>.support-badge{max-width:none}
.person-row.is-blocked{background:#fffafa}.person-row.is-blocked.is-active{background:#fff1f2;box-shadow:inset 3px 0 #d84a57}
.friend-list-tools{display:flex;align-items:center;gap:7px;padding:0 15px 10px;color:var(--muted);font-size:10px}.friend-list-tools>span{margin-right:auto;color:#a53842;font-weight:700}.friend-list-tools label{white-space:nowrap}.friend-list-tools select{min-width:130px;height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 8px;color:#354642;font-size:11px}.friend-added-at{display:grid;gap:1px;text-align:right;white-space:nowrap;font-size:10px!important}.friend-added-at span{font-size:9px;color:#8b9996}.person-row.is-blocked>.avatar{position:relative;overflow:visible}.person-row.is-blocked>.avatar img{border-radius:50%;filter:grayscale(.2);opacity:.82}.person-row.is-blocked>.avatar::after{content:"🚫";position:absolute;right:-7px;top:-9px;font-size:20px;line-height:1;text-shadow:0 1px 2px #fff}.person-row.is-blocked .person-line b{color:#9d2c37}
.blocked-filter{color:#a92e3a}.blocked-filter.is-active{border-color:#df7e88;background:#fff0f1;color:#a51f2d}
.chat-blocked-badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}
.chat-blocked-badge.profile{margin:5px auto}.chat-blocked-notice{margin-bottom:9px;border:1px solid #ef9da5;border-radius:8px;background:#fff0f1;color:#8f1d28;padding:9px 11px;font-size:12px;font-weight:700;text-align:center}
.composer.is-blocked textarea{background:#f2f4f4;color:#7d8986}.chat-attach-button.is-disabled{opacity:.5;pointer-events:none}.profile-tabs button:disabled{opacity:.45;cursor:not-allowed}

/* Chat composer: compact, consistent controls for desktop and mobile. */
.composer-actions{gap:10px}.chat-composer-tools{display:flex;align-items:center;gap:6px;min-width:0}.chat-tool-button,.chat-send-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;height:40px;min-height:40px;padding:0 13px!important;border-radius:9px!important;white-space:nowrap;font-size:12px!important;font-weight:700!important;line-height:1!important;box-sizing:border-box;box-shadow:none!important}.chat-tool-button{border:1px solid #d3dedb!important;background:#fff!important;color:#41524e!important;transition:background .15s,border-color .15s,color .15s,transform .15s}.chat-tool-button:hover{border-color:#82bdb4!important;background:#f1faf8!important;color:#08786c!important}.chat-tool-button.button-template{border-color:#baa9e8!important;background:#f5f1ff!important;color:#6543a5!important}.chat-tool-button.button-sticker{border-color:#e8c77a!important;background:#fff9e8!important;color:#876000!important}.chat-tool-button.button-attachment{border-color:#84bdd5!important;background:#eff9fd!important;color:#176782!important}.chat-tool-button.button-template:hover{background:#ece4ff!important;border-color:#967bd7!important}.chat-tool-button.button-sticker:hover{background:#fff2c8!important;border-color:#d5aa47!important}.chat-tool-button.button-attachment:hover{background:#dff3fb!important;border-color:#5aa4c4!important}.chat-tool-button:active,.chat-send-button:active{transform:translateY(1px)}.chat-tool-button svg,.chat-send-button svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-send-button{min-width:78px;border:1px solid #079844!important;background:#08a84a!important;color:#fff!important;box-shadow:0 2px 5px rgba(8,168,74,.2)!important}.chat-send-button:hover{background:#078c3e!important}.chat-send-button:disabled,.chat-tool-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.chat-attach-button{cursor:pointer}
@media(max-width:760px){.composer{padding:12px}.composer-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:9px}.chat-composer-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.chat-tool-button{width:100%;padding:0 6px!important;gap:5px;font-size:11px!important}.chat-send-button{min-width:66px;padding:0 10px!important;gap:5px}.chat-tool-button svg,.chat-send-button svg{width:16px;height:16px;flex-basis:16px}}

/* Per-project inbound notification settings. */
.notification-setting-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.notification-master-settings{grid-column:1/-1;display:flex;gap:24px;flex-wrap:wrap}.notification-setting-form fieldset{min-width:0;border:1px solid #d7e4e1;border-radius:14px;padding:16px}.notification-setting-form .field{margin-bottom:12px}.notification-setting-form textarea{width:100%;min-height:76px;resize:vertical}.notification-setting-form .notification-save-button{grid-column:1/-1;justify-self:end}.smtp-connection-row{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(130px,1fr);gap:10px}.notification-provider small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}@media(max-width:1050px){.notification-setting-form{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-setting-form fieldset:last-of-type{grid-column:1/-1}}@media(max-width:700px){.notification-setting-form{grid-template-columns:1fr}.notification-master-settings,.notification-setting-form fieldset:last-of-type,.notification-setting-form .notification-save-button{grid-column:1}.notification-master-settings{display:grid;gap:10px}.notification-setting-form .notification-save-button{width:100%;justify-self:stretch;min-height:44px}.smtp-connection-row{grid-template-columns:1fr 1fr}}
