.chat-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);border:1px solid #dbe3d8;border-radius:20px;overflow:hidden;background:white;min-height:65vh}.chat-list{padding:20px;background:#f5f7f2;border-right:1px solid #dbe3d8;min-width:0}.chat-list>input{width:100%;padding:12px;border:1px solid #d3ddd0;border-radius:10px;font-size:16px}.chat-filters{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}.chat-list-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;padding:16px 10px;width:100%;border:0;background:transparent;text-align:left;cursor:pointer;border-radius:12px;color:#173e36}.chat-list-row[aria-current=true]{background:#e4ecdc}.chat-avatar{width:42px;height:42px;display:grid;place-items:center;background:#e4ebdf;border-radius:50%;grid-row:span 2;font-size:21px}.chat-row-copy{font-size:14px;font-weight:700}.chat-snippet{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-room{min-width:0;padding:24px}.chat-room-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.chat-room-head h2{font-size:21px}.chat-hours{padding:14px;background:#f3f0df;border-radius:12px;line-height:1.7;font-size:13px}.chat-intro{padding:16px;border-left:3px solid #9db39b;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.chat-message-log{height:350px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px 0}.chat-bubble{background:#edf1e8;border-radius:16px;padding:12px 16px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.chat-bubble p{margin:0 0 8px}.chat-bubble small{font-size:10px;opacity:.7}.chat-bubble.mine{align-self:flex-end;background:#173e36;color:white}.chat-compose{display:flex;gap:12px;margin-top:18px}.chat-compose[hidden]{display:none}.chat-compose textarea{min-width:0;flex:1;padding:12px;border:1px solid #d2dfcc;border-radius:12px;font:inherit;resize:vertical}.chat-schedule{border:1px solid #dbe3d8;border-radius:16px;padding:24px;margin:24px 0;max-width:720px}.chat-hour-row{display:grid;grid-template-columns:110px 1fr 20px 1fr;align-items:center;gap:12px;margin:14px 0}.chat-hour-row input[type=time]{min-width:0;width:100%;font-size:16px;padding:10px;border:1px solid #dbe3d8;border-radius:8px}.chat-schedule textarea{font-size:16px;min-height:90px}.chat-schedule .crm-check{display:flex;align-items:center;gap:8px}.chat-schedule input[type=checkbox]{width:18px;height:18px}@media(max-width:700px){.chat-workspace{grid-template-columns:1fr}.chat-list{border-right:0;border-bottom:1px solid #dbe3d8}.chat-workspace:has(.chat-room.selected) .chat-list{display:none}.chat-room{padding:16px}.chat-compose{flex-direction:column}.chat-hour-row{grid-template-columns:76px 1fr 10px 1fr;gap:6px;font-size:13px}.chat-schedule{padding:14px}.chat-message-log{height:42vh}}

header .top-actions .activity-bell{position:relative;display:inline-grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border:1px solid #dce5db;border-radius:50%;background:white;color:#183f33;padding:0}
.activity-bell svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
nav [data-tab="chat"],nav [data-tab="edit"]{position:relative}
.activity-bell .activity-count,nav button .activity-count{position:absolute;z-index:2;top:1px;left:calc(50% + 3px);border:1.5px solid white;border-radius:999px;background:#bc3528;color:white;font:700 10px/16px system-ui;min-width:17px;height:18px;padding:0 3px;text-align:center;pointer-events:none}
.activity-bell .activity-count{top:-4px}
.activity-count[hidden],.activity-list~button[hidden]{display:none!important}
.activity-list{display:grid;gap:7px}.activity-row{position:relative;display:grid;gap:4px;width:100%;padding:13px 16px;border:1px solid #dfe7df;border-radius:12px;text-align:left;color:#213d33;background:white}.activity-row.unread{background:#f0f6ee}.activity-row small{color:#54695e}.activity-marker{position:absolute;right:12px;top:12px;color:#a82e23;font-size:10px}
@media(max-width:480px){header .top-actions .activity-bell{width:33px;height:33px;flex-basis:33px}}

.chat-list .chat-list-row{grid-template-columns:44px minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:3px}
.chat-list-row .chat-avatar{grid-area:1/1/3/2}.chat-list-row .chat-row-copy{grid-area:1/2/2/3}.chat-list-row .chat-snippet{grid-area:2/2/3/3}
.chat-unread{grid-area:1/3/3/4;justify-self:end;min-width:19px;height:19px;box-sizing:border-box;padding:0 5px;border-radius:999px;background:#bc3528;color:#fff;text-align:center;font:700 11px/19px system-ui;font-variant-numeric:tabular-nums}
.chat-unread[hidden]{display:none}

.chat-schedule-reminder{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;margin:12px 0;border:1px solid #d7e3ce;border-radius:12px;background:#f2f7ed;color:#193c33}
.chat-schedule-reminder[hidden]{display:none}.chat-schedule-reminder .note{margin:4px 0 0}.chat-schedule-reminder button{flex-shrink:0}

.chat-waiting-card{max-width:460px;margin:24px auto;padding:24px;border:1px solid #dbe3d8;border-radius:18px;background:#f5f7f2;text-align:center;box-shadow:0 8px 24px #173e3608}
.chat-waiting-mark{display:block;font-size:28px;color:#547d62;margin-bottom:10px}
.chat-waiting-card h3{font-size:17px;line-height:1.6;margin:0 0 8px;word-break:keep-all}
.chat-waiting-card p{font-size:13px;line-height:1.8;color:#566b60;margin:0 0 16px;word-break:keep-all}
.chat-waiting-card .action{margin:4px;min-height:44px}
.chat-room:has(.chat-waiting-card) .chat-message-log:empty{height:24px}
@media(max-width:700px){.chat-waiting-card{padding:20px 16px;margin:16px 0}.chat-room-head h2{font-size:18px}.chat-waiting-card h3{font-size:16px}}

.chat-items{margin-top:12px}.chat-list-row .chat-row-status{grid-area:2/2/3/3;font-size:11px;color:#64776d;font-weight:400}.chat-list-row .chat-snippet{grid-area:3/2/4/3}.chat-list-row .chat-avatar{grid-area:1/1/4/2}.chat-list-row .chat-unread{grid-area:1/3/4/4}
