/* System fonts, native controls and CSS surfaces keep chat lightweight. */
.tk-chat-feature.tk-broadcast-mode{width:min(640px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important}.tk-broadcast-mode[open]{display:flex!important;flex-direction:column!important}.tk-broadcast-mode .chat-feature-content{overflow:auto;min-height:0;padding:18px!important;display:grid;gap:12px}.tk-broadcast-mode label{display:grid;gap:7px;font-weight:600}.tk-broadcast-mode textarea{resize:vertical;min-height:120px;max-height:30vh}.tk-broadcast-mode progress{width:100%;accent-color:var(--chat-button)}.tk-broadcast-mode .chat-broadcast-intro,.tk-broadcast-mode .chat-broadcast-detail{margin:0;color:var(--chat-muted);font-size:14px;line-height:1.5}.chat-broadcast-count{font-weight:600;overflow-wrap:anywhere}.chat-broadcast-actions{flex:none;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:var(--chat-panel);border-top:1px solid var(--chat-line)}.chat-broadcast-recent{display:grid;gap:8px}.chat-broadcast-history{padding:10px 0;border-top:1px solid var(--chat-line)}.chat-broadcast-history p{margin:0 0 6px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-broadcast-history small{display:block;color:var(--chat-muted);margin-bottom:6px}
.tk-chat .chat-restriction-notice{margin:20px;padding:16px;background:var(--chat-own);border:1px solid var(--chat-line);border-radius:12px;overflow-wrap:anywhere}.tk-chat .chat-moderation-tabs,.tk-chat .chat-story-controls{display:flex;flex-wrap:wrap;gap:8px}.tk-chat .chat-report-list{display:grid;gap:10px}.tk-chat .chat-report-row{display:grid;justify-content:stretch;text-align:left;width:100%;gap:6px}.tk-chat .chat-report-row span{font-size:12px}.tk-chat .chat-report-evidence,.tk-chat .chat-ban-row{border:1px solid var(--chat-line);border-radius:12px;padding:12px;display:grid;gap:10px;background:var(--chat-lift)}.tk-chat .chat-report-evidence p{white-space:pre-wrap}.tk-chat .chat-report-evidence img{display:block;width:100%;max-height:400px;object-fit:contain;border-radius:10px}.tk-chat .chat-ban-row p{white-space:pre-wrap}
.tk-myday-feed{--chat-bg:var(--sp-bg,#f4f7fc);--chat-panel:var(--sp-surface,#fff);--chat-lift:var(--sp-lift,#eff4fc);--chat-text:var(--sp-text,#15233b);--chat-muted:var(--sp-muted,#53637a);--chat-line:var(--sp-border,#c4d1e5);--chat-button:var(--sp-blue,#2469df);--chat-button-end:#1751d5;--chat-on-button:#fff;color:var(--chat-text);font:14px/1.5 system-ui,sans-serif;min-width:0}.tk-myday-feed *{box-sizing:border-box;min-width:0}.tk-myday-feed [hidden]{display:none!important}.tk-myday-feed>p{color:var(--chat-muted);margin:0 0 14px}.tk-myday-feed button{font:inherit;cursor:pointer;border:1px solid var(--chat-line);background:var(--chat-panel);color:var(--chat-text);border-radius:10px;padding:9px 12px;min-height:40px;white-space:normal}.tk-myday-feed button:focus-visible{outline:3px solid var(--chat-focus,#2469df);outline-offset:2px}.tk-myday-feed .chat-primary{background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));color:var(--chat-on-button)}.tk-myday-feed .chat-story-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.tk-myday-feed .chat-story-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px}.tk-myday-feed .chat-story{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-panel);overflow-wrap:anywhere;box-shadow:0 6px 20px #0001}.tk-myday-feed .chat-story-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tk-myday-feed .chat-story-heading strong{flex:1;font-size:13px}.tk-myday-feed .chat-story-heading small{flex-basis:100%;font-size:11px;color:var(--chat-muted)}.tk-myday-feed .chat-avatar{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:50%;border:2px solid var(--chat-focus,#2469df);background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));color:var(--chat-on-button);font-weight:750}.tk-myday-feed .chat-story img{display:block;width:100%;height:220px;object-fit:contain;background:var(--chat-lift);border-radius:12px}.tk-myday-feed .chat-story p{white-space:pre-wrap;margin:0}.tk-myday-feed .chat-story>button{margin-top:auto}.tk-myday-feed .chat-story>small,.tk-myday-feed .chat-feature-status{color:var(--chat-muted);font-size:12px}.tk-social-admin-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px;margin-bottom:20px;border:1px solid var(--sp-border,#aabbd1);border-radius:16px;background:var(--sp-surface,#fff);color:var(--sp-text,#15233b)}.tk-social-admin-entry p{font-size:13px;margin:4px 0}.tk-social-admin-entry button{background:var(--sp-blue,#2469df);color:#fff;border:0;padding:12px 16px;border-radius:12px;font:inherit;cursor:pointer}.tk-social-admin-entry [data-social-report-count]{display:inline-block;min-width:22px;border-radius:20px;padding:1px 5px;background:#fff2}
.tk-chat-feature{box-sizing:border-box;width:min(680px,94vw);max-width:94vw;max-height:86vh;max-height:86dvh;padding:0;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-panel);color:var(--chat-text);font:14px/1.5 system-ui,sans-serif;overflow:auto;box-shadow:0 20px 70px #0006}.tk-chat-feature::backdrop{background:#0009}.tk-chat .chat-feature-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--chat-line);background:var(--chat-lift)}.tk-chat .chat-feature-heading h2{font-size:20px}.tk-chat .chat-feature-content{padding:16px 18px;display:grid;gap:12px;overflow-wrap:anywhere}.tk-chat .chat-feature-content label{display:grid;gap:6px}.tk-chat .chat-feature-content p{margin:0}.tk-chat .chat-feature-content small{color:var(--chat-muted)}.tk-chat .chat-feature-status{color:var(--chat-muted);font-size:12px}.tk-chat .chat-action-buttons{display:grid;gap:8px}.tk-chat .chat-action-preview{white-space:pre-wrap;max-height:100px;overflow:auto;padding:10px;background:var(--chat-lift);border-radius:10px}.tk-chat .chat-emoji-picker{display:flex;flex-wrap:wrap;gap:7px}.tk-chat .chat-emoji-picker button{font-size:24px;min-width:44px}.tk-chat .chat-emoji-picker button[aria-pressed=true]{background:var(--chat-own);outline:2px solid var(--chat-focus)}.tk-chat .chat-member-choices{display:grid;gap:4px;max-height:240px;overflow:auto;border:1px solid var(--chat-line);border-radius:10px;padding:8px}.tk-chat label.chat-member-choice{display:flex;align-items:center;gap:10px;padding:8px}.tk-chat .chat-member-choice input{width:19px;height:19px;flex-shrink:0}.tk-chat .chat-member-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px;border-bottom:1px solid var(--chat-line)}.tk-chat .chat-story-feed{display:grid;gap:16px}.tk-chat .chat-story{display:grid;gap:12px;padding:14px;background:var(--chat-lift);border:1px solid var(--chat-line);border-radius:14px}.tk-chat .chat-story-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tk-chat .chat-story-heading small{margin-left:auto}.tk-chat .chat-story img{width:100%;max-height:520px;object-fit:contain;border-radius:10px;background:var(--chat-bg)}.tk-chat .chat-story p{white-space:pre-wrap}.tk-chat .chat-reply-banner{grid-column:1/-1;display:flex;align-items:center;gap:10px;border-left:3px solid var(--chat-focus);padding:6px 10px;background:var(--chat-own);font-size:12px}.tk-chat .chat-reply-banner>div{flex:1;display:grid;min-width:0}.tk-chat .chat-reply-banner span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tk-chat .chat-reply-banner button{font-size:11px;padding:5px;min-height:28px}.tk-chat .chat-quote{display:grid;justify-content:stretch;text-align:left;width:100%;font-size:12px;padding:6px 8px;margin-bottom:8px;border-left:3px solid var(--chat-focus);background:var(--chat-lift);white-space:pre-wrap}.tk-chat .chat-quote strong,.tk-chat .chat-quote span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tk-chat .chat-sender{display:block;font-size:11px;color:var(--chat-blue);margin-bottom:5px}.tk-chat .chat-message-more{position:absolute;right:3px;top:3px;padding:3px;min-height:25px;min-width:25px;border:0;background:transparent;font-size:12px}.tk-chat .chat-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;white-space:normal}.tk-chat .chat-reactions button{padding:2px 6px;min-height:28px;font-size:12px}.tk-chat .chat-reactions button[aria-pressed=true]{border-color:var(--chat-focus);background:var(--chat-own)}.tk-chat .chat-highlight{outline:3px solid var(--chat-focus)}
@media(max-width:650px){.tk-chat .chat-header-actions{gap:3px}.tk-chat .chat-header-actions button{padding:6px;min-width:29px}.tk-chat .chat-feature-content{padding:12px}.tk-chat .chat-feature-heading{padding:10px 12px}.tk-chat .chat-feature-heading h2{font-size:18px}.tk-chat .chat-emoji-picker{gap:5px}.tk-chat .chat-emoji-picker button{min-width:40px;font-size:22px}.tk-chat .chat-member-choice{font-size:12px}}
@media(max-width:380px){.tk-chat .chat-brand .chat-logo{display:none}.tk-chat .chat-brand h2{font-size:17px}}
.tk-chat{--chat-bg:#eef3fc;--chat-panel:#fff;--chat-lift:#f3f6fc;--chat-text:#15233b;--chat-muted:#52637c;--chat-line:#c4d1e5;--chat-own:#e0edff;--chat-blue:#2469df;--chat-button:#2469df;--chat-button-end:#1751d5;--chat-focus:#64acff;--chat-on-button:#fff;color-scheme:light;box-sizing:border-box;width:min(1260px,96vw);height:min(900px,94vh);height:min(900px,94dvh);max-width:none;max-height:96vh;padding:0;border:1px solid var(--chat-line);border-radius:22px;background:var(--chat-bg);color:var(--chat-text);font:14px/1.5 system-ui,sans-serif;box-shadow:0 22px 90px #0006;overflow:hidden}
html[data-theme=dark] .tk-chat{--chat-bg:#0d192b;--chat-panel:#15243c;--chat-lift:#1a2c47;--chat-text:#f1f5ff;--chat-muted:#b3c7e7;--chat-line:#3b5477;--chat-own:#1d4273;--chat-blue:#337ff3;color-scheme:dark}
.tk-chat::backdrop{background:#0009}.tk-chat *{box-sizing:border-box;min-width:0}.tk-chat [hidden],.tk-message-launch[hidden]{display:none!important}.tk-chat button,.tk-chat input,.tk-chat select,.tk-chat textarea{font:inherit;color:inherit}.tk-chat button{cursor:pointer;border:1px solid var(--chat-line);background:var(--chat-panel);padding:9px 13px;border-radius:10px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.tk-chat button:hover{border-color:var(--chat-blue);background:var(--chat-own)}.tk-chat button:disabled{opacity:.5;cursor:default}.tk-chat :is(button,input,textarea,select,summary):focus-visible{outline:3px solid var(--chat-focus);outline-offset:2px}.tk-chat .chat-primary,.tk-chat .chat-folders button[aria-pressed=true]{background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));border-color:var(--chat-focus);color:var(--chat-on-button);box-shadow:0 3px 12px #0002}.tk-chat .chat-shell{display:flex;flex-direction:column;height:100%;min-height:0}.tk-chat .chat-header{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,var(--chat-lift),var(--chat-bg));border-bottom:1px solid var(--chat-line);flex-shrink:0}.tk-chat .chat-brand{display:flex;align-items:center;gap:15px}.tk-chat .chat-logo{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;background:var(--chat-own);border:1px solid var(--chat-line);color:var(--chat-blue);font-size:30px;flex-shrink:0}.tk-chat h2{font-size:24px;line-height:1.2;letter-spacing:-.025em;margin:0}.tk-chat h3{font-size:15px;margin:0}.tk-chat .chat-brand p{margin:4px 0 0;color:var(--chat-muted)}.tk-chat .chat-header-actions{display:flex;gap:8px;flex-shrink:0}.tk-chat .chat-folders{display:flex;gap:8px;padding:14px 24px 10px;overflow:auto;flex-shrink:0}.tk-chat .chat-folders button{white-space:nowrap;padding:11px 22px;min-height:44px}.tk-chat .chat-contact-bar{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:8px 24px 12px;flex-shrink:0}.tk-chat .chat-contact-bar label{display:grid;gap:5px;font-size:13px}.tk-chat input,.tk-chat select,.tk-chat textarea{width:100%;border:1px solid var(--chat-line);border-radius:11px;background:var(--chat-panel);padding:11px 13px}.tk-chat .chat-directory,.tk-chat .chat-social-panel{position:absolute;top:calc(100% - 8px);left:24px;right:24px;z-index:8;background:var(--chat-panel);border:1px solid var(--chat-line);border-radius:14px;padding:8px;max-height:min(390px,48vh);max-height:min(390px,48dvh);overflow:auto;box-shadow:0 18px 40px #0005}.tk-chat .chat-social-panel{padding:15px}.tk-chat .chat-social-panel h3{padding:8px 0}.tk-chat .chat-contact-result{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;border-bottom:1px solid var(--chat-line)}.tk-chat .chat-contact-result:last-child{border-bottom:0}.tk-chat .chat-contact-copy{display:grid;flex:1;overflow-wrap:anywhere}.tk-chat .chat-contact-copy small{color:var(--chat-muted)}.tk-chat .chat-contact-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.tk-chat .chat-status{margin:0;padding:3px 24px 9px;color:var(--chat-muted);font-size:12px;min-height:22px;flex-shrink:0}.tk-chat .chat-main{display:grid;grid-template-columns:minmax(240px,32%) minmax(0,1fr);flex:1;min-height:0;border-top:1px solid var(--chat-line)}.tk-chat .chat-list-pane{overflow:auto;border-right:1px solid var(--chat-line);min-height:0;background:var(--chat-bg)}.tk-chat .chat-list-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:15px 18px;position:sticky;top:0;background:var(--chat-bg);z-index:1}.tk-chat .chat-list-heading>span{font-size:11px;color:var(--chat-muted)}.tk-chat .chat-list{display:flex;flex-direction:column}.tk-chat .chat-list-empty{padding:8px 16px;color:var(--chat-muted)}.tk-chat .chat-thread{width:100%;display:flex;text-align:left;justify-content:flex-start;gap:12px;padding:16px 14px;border:0;border-bottom:1px solid var(--chat-line);border-radius:0;background:transparent}.tk-chat .chat-thread[aria-current=true]{background:var(--chat-own);box-shadow:inset 4px 0 var(--chat-focus)}.tk-chat .chat-avatar{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:50%;font-size:16px;font-weight:750;background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));color:var(--chat-on-button);border:1px solid var(--chat-focus)}.tk-chat .chat-thread-content{display:grid;gap:3px;flex:1}.tk-chat .chat-thread-line{display:flex;align-items:center;justify-content:space-between;gap:6px}.tk-chat .chat-thread-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tk-chat .chat-thread time{font-size:10px;white-space:nowrap;color:var(--chat-muted)}.tk-chat .chat-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--chat-muted);font-size:12px}.tk-chat .chat-contact-kind{font-size:11px;color:var(--chat-muted)}.tk-chat .chat-unread{border-radius:20px;padding:2px 6px;background:var(--chat-button);color:var(--chat-on-button);font-size:11px}.tk-chat .chat-pane{display:flex;flex-direction:column;min-height:0}.tk-chat .chat-toolbar{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--chat-line);flex-shrink:0;background:linear-gradient(135deg,var(--chat-lift),var(--chat-bg))}.tk-chat .chat-peer-heading{display:grid;flex:1;overflow-wrap:anywhere}.tk-chat .chat-peer-kind{font-size:11px;color:var(--chat-muted)}.tk-chat .chat-conversation-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.tk-chat .chat-conversation-actions button{font-size:12px;padding:8px 10px}.tk-chat .chat-history{flex:1;min-height:40px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.tk-chat .chat-empty{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:15px;color:var(--chat-muted);gap:10px}.tk-chat .chat-empty-icon{font-size:48px;opacity:.6}.tk-chat .chat-empty strong{font-size:18px;color:var(--chat-text)}.tk-chat .chat-empty p{margin:0;max-width:360px}.tk-chat .chat-bubble{position:relative;align-self:flex-start;max-width:88%;padding:11px 34px 10px 13px;border:1px solid var(--chat-line);background:var(--chat-panel);border-radius:15px;white-space:pre-wrap;overflow-wrap:anywhere}.tk-chat .chat-bubble.outgoing{align-self:flex-end;background:var(--chat-own)}.tk-chat .chat-meta{display:block;font-size:11px;color:var(--chat-muted);margin-top:6px;white-space:normal}.tk-chat .chat-unsent>div{font-style:italic;color:var(--chat-muted)}.tk-chat .chat-message-menu{position:absolute;right:4px;top:5px;z-index:2;white-space:normal}.tk-chat .chat-message-menu[open]{z-index:4}.tk-chat .chat-message-menu summary{cursor:pointer;list-style:none;padding:1px 4px;border-radius:5px;font-size:12px}.tk-chat .chat-message-menu summary::-webkit-details-marker{display:none}.tk-chat .chat-message-actions{position:absolute;right:0;top:24px;display:grid;gap:4px;width:176px;padding:6px;background:var(--chat-panel);border:1px solid var(--chat-line);border-radius:10px;box-shadow:0 8px 20px #0004}.tk-chat .chat-message-actions button{font-size:12px;justify-content:flex-start;text-align:left}.tk-chat .chat-error{color:#ba2435}html[data-theme=dark] .tk-chat .chat-error{color:#ffabb4}.tk-chat .chat-compose{padding:14px 18px;border-top:1px solid var(--chat-line);background:var(--chat-lift);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;flex-shrink:0}.tk-chat .chat-compose label{display:grid;gap:5px}.tk-chat .chat-compose>button{align-self:end;min-height:78px;padding:12px 22px}.tk-chat textarea{resize:vertical;min-height:78px;max-height:150px}.tk-chat .chat-compose small{grid-column:1/-1;color:var(--chat-muted);font-size:11px}.tk-chat .chat-back{display:none}.tk-chat .chat-failed-item{padding:12px;border:1px solid var(--chat-line);border-radius:12px;margin:8px;overflow-wrap:anywhere}.tk-chat .chat-failed-item p{white-space:pre-wrap}.tk-chat .chat-failed-item button{margin:4px}
@media(max-width:850px){.tk-chat .chat-brand p{font-size:11px}.tk-chat .chat-header{padding:14px 16px}.tk-chat .chat-logo{width:40px;height:40px}.tk-chat .chat-toolbar{flex-wrap:wrap}.tk-chat .chat-conversation-actions{margin-left:auto}.tk-chat .chat-folders button{padding:8px 12px}.tk-chat .chat-contact-bar{padding-left:16px;padding-right:16px;gap:10px}.tk-chat .chat-directory,.tk-chat .chat-social-panel{left:16px;right:16px}.tk-chat .chat-contact-result{flex-wrap:wrap}.tk-chat .chat-contact-actions{margin-left:auto}.tk-chat .chat-thread-line{display:grid}}
@media(max-width:650px){.tk-chat{width:calc(100vw - 16px);height:96vh;height:96dvh;border-radius:16px}.tk-chat .chat-header{padding:10px 12px;gap:8px}.tk-chat .chat-logo{width:32px;height:32px;border-radius:10px;font-size:22px}.tk-chat .chat-brand{gap:8px}.tk-chat h2{font-size:20px}.tk-chat .chat-brand p,.tk-chat .chat-btn-label{display:none}.tk-chat .chat-header-actions{gap:5px}.tk-chat .chat-header-actions button{padding:8px;min-height:36px}.tk-chat .chat-folders{padding:9px 12px 5px;gap:5px}.tk-chat .chat-folders button{padding:7px 10px;min-height:37px;font-size:12px}.tk-chat .chat-contact-bar{padding:7px 12px;gap:8px}.tk-chat .chat-contact-bar label{font-size:11px}.tk-chat .chat-contact-bar input,.tk-chat .chat-contact-bar select{font-size:12px;padding:8px}.tk-chat .chat-directory,.tk-chat .chat-social-panel{left:8px;right:8px}.tk-chat .chat-status{padding:3px 12px 6px;font-size:11px}.tk-chat .chat-main{display:flex;flex-direction:column}.tk-chat .chat-list-pane{border-right:0;flex:1}.tk-chat .chat-pane{display:none;flex:1}.tk-chat.chat-mobile-thread .chat-list-pane{display:none}.tk-chat.chat-mobile-thread .chat-pane{display:flex}.tk-chat .chat-back{display:inline-flex;padding:6px 8px;min-height:32px;font-size:12px}.tk-chat .chat-toolbar{gap:7px;padding:8px 10px}.tk-chat .chat-toolbar .chat-avatar{width:29px;height:29px;font-size:11px}.tk-chat .chat-name{font-size:12px}.tk-chat .chat-conversation-actions button{padding:5px 8px;min-height:30px;font-size:10px}.tk-chat .chat-peer-kind{font-size:10px}.tk-chat .chat-history{padding:12px}.tk-chat .chat-bubble{max-width:94%}.tk-chat .chat-compose{padding:8px 10px;gap:6px}.tk-chat .chat-compose label{font-size:12px;gap:3px}.tk-chat textarea{min-height:58px;padding:9px;font-size:14px}.tk-chat .chat-compose>button{min-height:58px;padding:9px 12px;font-size:13px}.tk-chat .chat-compose small{font-size:10px}.tk-chat .chat-empty-icon{font-size:32px}.tk-chat .chat-empty strong{font-size:15px}.tk-chat .chat-empty p{font-size:12px}}
@media(max-height:600px){.tk-chat .chat-brand p{display:none}.tk-chat .chat-header{padding:8px 12px}.tk-chat .chat-logo{width:32px;height:32px}.tk-chat .chat-folders{padding-top:6px;padding-bottom:4px}.tk-chat .chat-status{max-height:32px;overflow:auto;padding-bottom:4px}.tk-chat .chat-compose small{display:none}.tk-chat .chat-toolbar{padding-top:6px;padding-bottom:6px}.tk-chat textarea,.tk-chat .chat-compose>button{min-height:48px}.tk-chat .chat-history{min-height:25px}}
@media(max-width:900px){body.tk-welcome.tk-messages-active{padding-bottom:150px}}
@media print{.tk-message-launch,.tk-chat{display:none!important}}
@media(max-height:500px){.tk-chat .chat-header{padding:5px 12px}.tk-chat .chat-logo{width:25px;height:25px;font-size:18px}.tk-chat h2{font-size:18px}.tk-chat .chat-header-actions button{min-height:30px;padding:5px 8px}.tk-chat .chat-folders{padding:4px 12px}.tk-chat .chat-folders button{min-height:30px;padding:5px 10px}.tk-chat .chat-contact-bar{padding-top:3px;padding-bottom:3px}.tk-chat .chat-contact-bar label{font-size:0;gap:0}.tk-chat .chat-contact-bar input,.tk-chat .chat-contact-bar select{font-size:12px;padding:7px}.tk-chat .chat-status{max-height:20px;min-height:16px;padding-top:1px;padding-bottom:1px}.tk-chat .chat-compose{padding:6px 10px}.tk-chat .chat-compose label{font-size:0;gap:0}.tk-chat .chat-compose textarea{font-size:13px;line-height:1.2;height:42px;min-height:42px;padding:6px}.tk-chat .chat-compose>button{min-height:42px;padding:6px 10px}.tk-chat .chat-history{min-height:0;padding:8px}.tk-chat .chat-toolbar{padding:5px 10px}}
.tk-chat .chat-icon{width:19px;height:19px;flex-shrink:0}.tk-chat .chat-logo .chat-icon{width:27px;height:27px}.tk-chat .chat-empty>.chat-icon{width:52px;height:52px;opacity:.6}@media(max-width:650px){.tk-chat .chat-folders .chat-icon{display:none}.tk-chat .chat-logo .chat-icon{width:21px;height:21px}.tk-chat .chat-empty>.chat-icon{width:34px;height:34px}}
.tk-chat .chat-primary:hover,.tk-chat .chat-folders button[aria-pressed=true]:hover{background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));color:var(--chat-on-button);filter:brightness(.96)}
.tk-chat .chat-status-row{display:flex;align-items:center;gap:8px;flex-shrink:0}.tk-chat .chat-status-row .chat-status{flex:1}.tk-chat .chat-privacy-link{margin:0 20px 4px 0;padding:2px 4px;min-height:26px;font-size:11px;background:transparent;border:0;text-decoration:underline;white-space:nowrap;color:var(--chat-blue)}.tk-chat-privacy{width:min(660px,94vw);max-width:94vw;max-height:84vh;max-height:84dvh;padding:0;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-panel);color:var(--chat-text);box-shadow:0 20px 70px #0006;font:14px/1.6 system-ui;overflow:auto}.tk-chat-privacy::backdrop{background:#0008}.tk-chat .chat-privacy-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--chat-line);background:var(--chat-lift)}.tk-chat .chat-privacy-heading h2{font-size:20px}.tk-chat .chat-privacy-content{padding:16px 22px;overflow-wrap:anywhere}.tk-chat .chat-privacy-content p{margin:0 0 14px}.tk-chat .chat-privacy-content ul{padding-left:20px}.tk-chat .chat-privacy-content li{margin:10px 0}.tk-chat .chat-privacy-content a{color:var(--chat-blue);text-decoration:underline}.tk-chat .chat-privacy-heading button{flex-shrink:0}@media(max-width:650px){.tk-chat .chat-privacy-link{margin-right:10px;font-size:10px}.tk-chat-privacy{font-size:13px}.tk-chat .chat-privacy-content{padding:14px 16px}.tk-chat .chat-privacy-heading{padding:12px 16px}}@media(max-height:500px){.tk-chat .chat-status-row{max-height:22px}.tk-chat .chat-privacy-link{min-height:20px;margin-bottom:0}}

@media(max-width:650px){.tk-chat .chat-header-actions{gap:3px}.tk-chat .chat-header-actions button{padding:6px;min-width:29px}.tk-chat .chat-feature-content{padding:12px}.tk-chat .chat-feature-heading{padding:10px 12px}.tk-chat .chat-feature-heading h2{font-size:18px}}
@media(max-width:380px){.tk-chat .chat-brand .chat-logo{display:none}.tk-chat .chat-brand h2{font-size:17px}}

@media(max-width:850px){.tk-chat .chat-peer-heading{flex:1 1 120px;min-width:90px}}
@media(max-width:650px){.tk-chat .chat-conversation-actions{flex-basis:100%;width:100%;margin-left:0}.tk-chat .chat-toolbar{row-gap:5px}}

/* Portal Day columns; messenger keeps its compact horizontal story strip. */
.tk-portal-stories .chat-day-layout{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.8fr);gap:18px;align-items:start;margin-top:16px}
.tk-portal-stories .chat-day-layout>section{min-width:0;padding:16px;border:1px solid var(--chat-line);border-radius:15px;background:var(--chat-panel)}
.tk-portal-stories .chat-day-layout h4{margin:0;color:var(--chat-text);font:700 15px/1.4 system-ui,sans-serif;letter-spacing:-.02em}
.tk-portal-stories .chat-day-subtitle{color:var(--chat-muted);font-size:11px;line-height:1.5;margin:5px 0 14px}
.tk-portal-stories .chat-day-ranked{display:grid;gap:10px}
.tk-portal-stories button.chat-day-rank-item{display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:11px;min-height:84px;text-align:left;border:1px solid var(--chat-line);border-radius:13px;background:var(--chat-lift);color:var(--chat-text);overflow-wrap:anywhere}
.tk-portal-stories .chat-day-rank-number{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;background:var(--chat-own);color:var(--chat-text);font-size:13px;font-weight:800;border:1px solid var(--chat-line);border-radius:50%}
.tk-portal-stories .chat-day-rank-image{width:45px;height:60px;object-fit:cover;border-radius:8px;flex:0 0 45px;background:var(--chat-bg)}
.tk-portal-stories .chat-day-rank-copy{display:grid;gap:4px;min-width:0;flex:1}.tk-portal-stories .chat-day-rank-copy strong{font-size:12px;line-height:1.4;color:var(--chat-text)}
.tk-portal-stories .chat-day-rank-caption{font-size:11px;line-height:1.5;color:var(--chat-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}.tk-portal-stories .chat-day-rank-copy small{font-size:11px;color:var(--chat-muted);font-weight:700}.tk-portal-stories .chat-day-empty{color:var(--chat-muted);font-size:12px;margin:10px 0}
.tk-myday-feed.tk-portal-stories .chat-day-latest .chat-story-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,136px),1fr));gap:10px;overflow:visible;scroll-snap-type:none;padding:0;background:transparent}
.tk-myday-feed.tk-portal-stories .chat-day-latest .chat-story{width:100%;height:226px;min-width:0;margin:0;flex:auto}.tk-portal-stories .chat-day-latest .chat-story-empty{padding:12px 0;grid-column:1/-1;min-width:0}
.tk-portal-stories .chat-day-latest>button{margin-top:14px}
.tk-portal-stories .chat-day-knowledge{margin-top:22px;padding-top:18px;border-top:1px solid var(--chat-line)}
.tk-portal-stories .chat-knowledge-preview{display:grid;gap:7px;padding:13px 0;border-bottom:1px solid var(--chat-line)}
.tk-portal-stories .chat-knowledge-preview:last-child{border-bottom:0}.tk-portal-stories .chat-knowledge-preview small{font-size:11px;color:var(--chat-muted)}
.tk-portal-stories .chat-knowledge-preview button{text-align:left;border:0;border-radius:0;padding:2px 0;min-height:36px;font-weight:750;color:var(--chat-text);background:transparent;line-height:1.5}
.tk-portal-stories .chat-knowledge-preview p{margin:0;color:var(--chat-muted);font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.tk-myday-feed.tk-portal-stories .chat-day-latest .chat-story-feed{max-height:680px;overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-gutter:stable}
.tk-chat .chat-avatar img,.tk-myday-feed .chat-avatar img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;border-radius:50%!important;background:transparent!important}
.tk-chat .chat-avatar,.tk-myday-feed .chat-avatar{overflow:hidden}.tk-chat .chat-message-avatar{width:28px;height:28px;min-width:28px;margin-bottom:5px;border-width:1px}
@media(max-width:760px){.tk-myday-feed.tk-portal-stories .chat-day-latest .chat-story-feed{max-height:530px}}
@media(max-width:760px){.tk-portal-stories .chat-day-layout{grid-template-columns:minmax(0,1fr);gap:13px}.tk-portal-stories .chat-day-layout>section{padding:13px}.tk-portal-stories button.chat-day-rank-item{min-height:75px}.tk-portal-stories .chat-day-rank-image{height:50px}}
/* Story strip and focused reader: local CSS only, with the shared account palette. */
.tk-myday-feed .chat-story-feed,.tk-chat .chat-story-feed{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 2px 14px;align-items:stretch;scrollbar-width:thin}
.tk-myday-feed .chat-story,.tk-chat .chat-story{position:relative;flex:0 0 142px;width:142px;height:226px;display:block;padding:0;border:0;border-radius:13px;overflow:hidden;background:linear-gradient(150deg,var(--chat-button),var(--chat-button-end));scroll-snap-align:start;box-shadow:0 3px 12px #0002;color:#fff}
.tk-myday-feed .chat-story-open,.tk-chat .chat-story-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:#fff;text-align:left;overflow:hidden;cursor:pointer}
.tk-myday-feed .chat-story-open:after,.tk-chat .chat-story-open:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,#000b);pointer-events:none}
.tk-myday-feed .chat-story img,.tk-chat .chat-story img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0;background:transparent;transition:transform .18s}
.tk-myday-feed .chat-story-open:hover img,.tk-chat .chat-story-open:hover img{transform:scale(1.04)}
.tk-myday-feed .chat-story-heading,.tk-chat .chat-story-heading{position:absolute;inset:12px 10px;z-index:2;display:block;margin:0}
.tk-myday-feed .chat-story-heading .chat-avatar,.tk-chat .chat-story-heading .chat-avatar{position:absolute;left:0;top:0;width:39px;height:39px;border:3px solid var(--chat-focus);box-shadow:0 0 0 2px var(--chat-panel);font-size:13px}
.tk-myday-feed .chat-story-seen .chat-avatar,.tk-chat .chat-story-seen .chat-avatar{border-color:#b5bbc6}
.tk-myday-feed .chat-story-heading strong,.tk-chat .chat-story-heading strong{position:absolute;left:0;right:0;bottom:0;display:block;color:#fff;font-size:13px;font-weight:650;line-height:1.3;text-shadow:0 1px 4px #0009;overflow-wrap:anywhere}
.tk-myday-feed .chat-story-heading small,.tk-chat .chat-story-heading small{display:none}
.tk-myday-feed .chat-story-open>p,.tk-chat .chat-story-open>p{position:absolute;z-index:1;top:36%;left:10px;right:10px;max-height:92px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;margin:0;padding:8px;border-radius:14px;background:#12151abf;color:#fff;text-align:center;font-size:12px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}
.tk-myday-feed .chat-story>button:not(.chat-story-open),.tk-chat .chat-story>button:not(.chat-story-open){position:absolute;z-index:3;top:8px;right:6px;max-width:56px;min-height:24px;padding:3px 5px;border:0;background:#0009;color:#fff;font-size:9px;border-radius:8px}
.tk-myday-feed .chat-story-create,.tk-chat .chat-story-create{flex:0 0 142px;width:142px;height:226px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:12px;padding:22px 10px;border:1px solid var(--chat-line);border-radius:13px;background:linear-gradient(160deg,var(--chat-own),var(--chat-panel));color:var(--chat-text);scroll-snap-align:start;font-size:13px}
.tk-myday-feed .chat-story-create>span,.tk-chat .chat-story-create>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:3px solid var(--chat-panel);background:var(--chat-button);color:#fff;font-size:28px}
.tk-myday-feed .chat-story-empty,.tk-chat .chat-story-empty{align-self:center;min-width:150px;color:var(--chat-muted);padding:15px}
.tk-chat .tk-story-mode{width:min(920px,96vw);max-height:94dvh;background:var(--chat-bg)}
.tk-chat .tk-story-mode .chat-feature-content{display:grid;gap:12px;max-width:740px;margin:auto}
.tk-chat .chat-story-view-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tk-chat .chat-story-view-heading small{color:var(--chat-muted);margin-left:auto}
.tk-chat .chat-story-navigation,.tk-chat .chat-story-stats{display:flex;gap:12px;align-items:center;justify-content:space-between}.tk-chat .chat-story-navigation button{min-width:100px}.tk-chat .chat-story-navigation span{font-size:12px;color:var(--chat-muted)}
.tk-chat .chat-story-stage{position:relative;width:100%;height:min(55dvh,520px);min-height:180px;display:grid;place-items:center;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end));color:#fff}.tk-chat .chat-story-stage img{display:block;width:100%;height:100%;object-fit:contain;background:#080b13}.tk-chat .chat-story-stage p{padding:25px;text-align:center;font-size:clamp(18px,3vw,30px);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100%;overflow:auto}.tk-chat .chat-story-stage.has-photo p{position:absolute;bottom:0;left:0;right:0;font-size:15px;text-align:left;margin:0;padding:16px;background:linear-gradient(transparent,#000d);max-height:45%}
.tk-chat .chat-story-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.tk-chat .chat-story-reply label{display:grid;gap:6px}.tk-chat .chat-story-reply textarea{min-height:65px;max-height:130px}.tk-chat .chat-story-reply small{grid-column:1/-1}.tk-chat .chat-story-reactions button{font-size:20px}.tk-chat .chat-story-stats{font-size:12px;color:var(--chat-muted)}
/* Compact conversation surfaces inspired by familiar messenger layouts. */
.tk-chat .chat-list-heading h3{font-size:19px;letter-spacing:-.03em}.tk-chat .chat-thread{margin:3px 7px;width:calc(100% - 14px);border:0;border-radius:13px;padding:12px 10px;gap:11px}.tk-chat .chat-thread[aria-current=true]{box-shadow:none;background:var(--chat-own)}.tk-chat .chat-thread .chat-avatar{width:45px;height:45px}.tk-chat .chat-bubble{border:0;border-radius:19px;padding:11px 34px 10px 14px;box-shadow:0 1px 2px #0001;max-width:80%}.tk-chat .chat-bubble.outgoing{background:var(--chat-button);color:var(--chat-on-button)}.tk-chat .chat-bubble.outgoing .chat-meta,.tk-chat .chat-bubble.outgoing .chat-sender{color:#ffffffd9}.tk-chat .chat-bubble.outgoing .chat-quote,.tk-chat .chat-bubble.outgoing .chat-reactions button{color:var(--chat-text)}.tk-chat .chat-bubble.outgoing .chat-message-more{color:#fff}.tk-chat .chat-bubble.chat-unsent{background:var(--chat-lift);color:var(--chat-muted)}.tk-chat .chat-bubble.chat-unsent .chat-meta,.tk-chat .chat-bubble.chat-unsent .chat-message-more{color:var(--chat-muted)}.tk-chat .chat-compose{border-top:0;background:var(--chat-bg)}.tk-chat .chat-compose textarea{border-radius:20px;resize:none;background:var(--chat-panel)}.tk-chat .chat-compose>button{border-radius:50%;width:54px;min-height:54px;height:54px;padding:0;font-size:0}.tk-chat .chat-compose>button .chat-icon{width:23px;height:23px}.tk-chat .chat-toolbar{background:var(--chat-panel)}.tk-chat .chat-history{gap:10px}.tk-chat .chat-folder button{border-radius:20px}
@media(max-width:650px){.tk-myday-feed .chat-story,.tk-chat .chat-story,.tk-myday-feed .chat-story-create,.tk-chat .chat-story-create{flex-basis:118px;width:118px;height:190px}.tk-chat .chat-bubble{max-width:94%}.tk-chat .chat-compose>button{width:43px;height:43px;min-height:43px}.tk-chat .chat-story-reply{grid-template-columns:minmax(0,1fr)}.tk-chat .chat-story-reply>button{width:100%}.tk-chat .chat-story-view-heading small{margin-left:0;flex-basis:100%}.tk-chat .chat-story-navigation button{min-width:85px}.tk-chat .chat-story-stage{height:45dvh}.tk-chat .chat-story-reactions{gap:5px}.tk-chat .chat-story-reactions button{font-size:18px;padding:6px;min-width:35px}}
@media(prefers-reduced-motion:reduce){.tk-chat .chat-story img,.tk-myday-feed .chat-story img{transition:none}}

.tk-myday-feed .chat-story-feed{background:var(--chat-bg);border-radius:14px}.tk-chat .chat-story-reactions{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:3px}.tk-chat .chat-story-reactions button{flex:0 0 37px;min-width:37px;padding:6px;font-size:18px}.tk-myday-feed .chat-story>button.chat-story-menu,.tk-chat .chat-story>button.chat-story-menu{font-size:16px;padding:0;width:26px;min-height:25px;border-radius:50%}

/* Chat home: discovery and stories belong to the sidebar; the thread gets the space. */
.tk-chat{width:min(1380px,97vw);height:min(940px,96dvh);border-radius:20px;background:var(--chat-panel)}
.tk-chat .chat-header{padding:14px 20px;background:var(--chat-panel);gap:12px}
.tk-chat .chat-brand{gap:10px}.tk-chat .chat-brand h2{font-size:27px;font-weight:760;letter-spacing:-.04em}.tk-chat .chat-brand p{font-size:12px}.tk-chat .chat-logo{width:38px;height:38px;border:0;border-radius:13px}.tk-chat .chat-logo .chat-icon{width:24px;height:24px}
.tk-chat .chat-header-actions button{border:0;border-radius:24px;background:var(--chat-lift);min-height:39px;padding:8px 13px;font-size:12px}
.tk-chat .chat-main{grid-template-columns:minmax(300px,340px) minmax(0,1fr);border-top:0}
.tk-chat .chat-list-pane{background:var(--chat-panel);padding:2px 10px 16px;scrollbar-width:thin;overscroll-behavior:contain}
.tk-chat .chat-contact-bar{padding:8px 4px;grid-template-columns:minmax(0,1fr);gap:9px}
.tk-chat .chat-contact-bar label{font-size:11px;color:var(--chat-muted)}
.tk-chat .chat-search-label{position:relative;font-size:0!important;gap:0!important}
.tk-chat .chat-search-label>.chat-icon{position:absolute;left:14px;bottom:13px;width:19px;height:19px;pointer-events:none;color:var(--chat-muted)}
.tk-chat .chat-search-label input{padding:12px 14px 12px 42px;font-size:13px;border:0;border-radius:28px;background:var(--chat-lift);color:var(--chat-text)}
.tk-chat .chat-contact-bar select{border:0;background:var(--chat-lift);font-size:12px;border-radius:10px;padding:9px 11px;min-height:37px;color:var(--chat-text)}
.tk-chat .chat-contact-bar .chat-directory,.tk-chat .chat-contact-bar .chat-social-panel{position:relative;inset:auto;width:100%;max-height:42dvh;box-shadow:0 4px 14px #0001;padding:6px}
.tk-chat .chat-contact-result{flex-wrap:wrap;padding:9px 5px;gap:7px}.tk-chat .chat-contact-result .chat-avatar{width:32px;height:32px;font-size:12px}.tk-chat .chat-contact-actions{margin-left:auto}.tk-chat .chat-contact-actions button{font-size:11px;padding:6px 10px;min-height:32px}
.tk-chat .chat-sidebar-tools{display:flex;gap:6px;padding:5px 4px 9px;flex-wrap:wrap}.tk-chat .chat-sidebar-tools button{border:0;border-radius:22px;background:var(--chat-lift);font-size:12px;padding:7px 10px;min-height:34px}.tk-chat .chat-sidebar-tools .chat-btn-label{display:inline}
.tk-chat .chat-folders{padding:5px 3px 12px;gap:5px;scrollbar-width:thin;overflow-x:auto}
.tk-chat .chat-folders button{border:0;border-radius:22px;padding:7px 12px;min-height:34px;font-size:12px;background:var(--chat-lift);flex-shrink:0;box-shadow:none}.tk-chat .chat-folders .chat-icon{display:none}
.tk-chat .chat-folders button[aria-pressed=true]{background:var(--chat-own);color:var(--chat-blue)}
.tk-chat .chat-list-heading{position:static;background:var(--chat-panel);padding:4px 8px 8px}.tk-chat .chat-list-heading h3{font-size:16px}.tk-chat .chat-list-heading>span{font-size:10px}
.tk-chat .chat-thread{margin:2px 0;width:100%;padding:11px 8px;border-radius:12px}.tk-chat .chat-thread .chat-avatar{width:48px;height:48px}.tk-chat .chat-thread-line{display:flex;align-items:center}.tk-chat .chat-thread-line strong{font-size:13px;flex:1}.tk-chat .chat-thread time{font-size:9px}.tk-chat .chat-contact-kind{font-size:10px}.tk-chat .chat-preview{font-size:12px}.tk-chat .chat-thread[aria-current=true]{background:var(--chat-own)}
.tk-chat .chat-pane{background:var(--chat-bg)}
.tk-chat .chat-toolbar{padding:14px 20px;min-height:74px;background:var(--chat-panel);border-bottom:1px solid var(--chat-line)}
.tk-chat .chat-peer-heading{flex:1 1 120px;min-width:0}.tk-chat .chat-name{font-size:15px}.tk-chat .chat-peer-kind{font-size:11px}.tk-chat .chat-conversation-actions{gap:5px;flex-basis:auto;width:auto}.tk-chat .chat-conversation-actions button{border:0;border-radius:20px;background:var(--chat-lift);padding:8px 11px;font-size:11px;min-height:34px}
.tk-chat .chat-history{padding:22px 25px;gap:9px}.tk-chat .chat-bubble{background:var(--chat-lift);border-radius:20px 20px 20px 6px;max-width:76%;box-shadow:none;font-size:14px}.tk-chat .chat-bubble.outgoing{border-radius:20px 20px 6px 20px;background:var(--chat-button)}
.tk-chat .chat-message-more{border-radius:50%;font-size:11px}.tk-chat .chat-meta{font-size:10px;opacity:.9}.tk-chat .chat-empty{gap:13px}.tk-chat .chat-empty>.chat-icon{background:var(--chat-own);border-radius:22px;padding:13px;width:72px;height:72px;color:var(--chat-blue);opacity:1}.tk-chat .chat-empty strong{font-size:21px;letter-spacing:-.03em}
.tk-chat .chat-compose{padding:12px 18px 10px;gap:10px;background:var(--chat-bg);align-items:center}.tk-chat .chat-compose>label{position:relative;font-size:0;gap:0}.tk-chat .chat-compose textarea{height:48px;min-height:48px;max-height:130px;border:0;border-radius:26px;background:var(--chat-lift);padding:13px 46px 12px 17px;font-size:14px;line-height:1.5}.tk-chat .chat-compose>button{width:44px;height:44px;min-height:44px;align-self:center;border:0;box-shadow:none;background:var(--chat-button)}
.tk-chat .chat-compose .chat-compose-emoji{position:absolute;right:6px;bottom:5px;width:38px;height:38px;min-height:38px;padding:0;border:0;border-radius:50%;font-size:26px;line-height:1;background:transparent;color:var(--chat-blue)}
.tk-chat .chat-compose small{font-size:10px;margin-left:8px}.tk-chat .chat-status-row{border-top:1px solid var(--chat-line);padding:5px 14px;min-height:31px;background:var(--chat-panel);gap:8px}.tk-chat .chat-status-row .chat-status{padding:0;min-height:0;font-size:10px;max-height:40px;overflow:auto}.tk-chat .chat-status-row .chat-privacy-link{margin:0;font-size:10px;min-height:22px;padding:0}
.tk-chat.chat-messaging-blocked .chat-main{grid-template-columns:minmax(0,1fr)}.tk-chat.chat-messaging-blocked .chat-list-pane{border:0;max-width:600px;width:100%;margin:auto}
.tk-myday-feed .chat-story-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:7px}.tk-myday-feed .chat-story-section-heading h3{margin:0;font-size:18px;font-weight:750}.tk-myday-feed .chat-story-section-heading>span{font-size:11px;color:var(--chat-muted)}
.tk-portal-stories{margin:0 0 22px;padding:16px;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-panel);scroll-margin-top:20px}.tk-portal-stories .chat-story-audience{font-size:12px;max-width:760px;margin:0 0 10px}.tk-portal-stories .chat-story-controls{margin-bottom:5px}.tk-myday-feed .chat-feature-status:empty{display:none}
/* Small circular stories are always present above chats, including the empty state. */
.tk-chat .chat-sidebar-stories{position:relative;margin:5px 0 8px;padding:5px 3px 0;background:var(--chat-panel)}
.tk-chat .chat-sidebar-stories .chat-story-section-heading{padding-right:35px;min-height:25px}.tk-chat .chat-sidebar-stories h3{font-size:15px}.tk-chat .chat-sidebar-stories .chat-story-section-heading>span{font-size:9px}
.tk-chat .chat-sidebar-stories .chat-story-audience{display:none}.tk-chat .chat-sidebar-stories .chat-story-controls{position:absolute;right:0;top:2px;margin:0}.tk-chat .chat-sidebar-stories .chat-story-controls .chat-primary{display:none}.tk-chat .chat-sidebar-stories .chat-story-controls button{font-size:0;border:0;background:transparent;padding:2px;width:30px;height:30px;min-height:30px}.tk-chat .chat-sidebar-stories .chat-story-controls button:after{content:'↻';font-size:22px}
.tk-chat .chat-sidebar-stories .chat-story-feed{gap:8px;background:transparent;padding:4px 1px 9px;border-radius:0;scrollbar-width:thin}
.tk-chat .chat-sidebar-stories .chat-story,.tk-chat .chat-sidebar-stories .chat-story-create{flex:0 0 73px;width:73px;height:103px;border:0;background:transparent;box-shadow:none;padding:0;overflow:visible;border-radius:0}
.tk-chat .chat-sidebar-stories .chat-story-open{height:100%;border-radius:0;overflow:visible;background:transparent}.tk-chat .chat-sidebar-stories .chat-story-open:after{display:none}.tk-chat .chat-sidebar-stories .chat-story img{inset:0 3px auto;width:67px;height:67px;object-fit:cover;border-radius:50%;border:3px solid var(--chat-focus);padding:2px;background:var(--chat-panel)}
.tk-chat .chat-sidebar-stories .chat-story-heading{inset:0;display:block}.tk-chat .chat-sidebar-stories .chat-story-heading .chat-avatar{left:3px;top:0;width:67px;height:67px;border:3px solid var(--chat-focus);font-size:21px;box-shadow:none;padding:2px;background:var(--chat-button)}
.tk-chat .chat-sidebar-stories .chat-story-seen img,.tk-chat .chat-sidebar-stories .chat-story-seen .chat-avatar{border-color:var(--chat-line)}
.tk-chat .chat-sidebar-stories .chat-story:has(img) .chat-avatar{visibility:hidden}.tk-chat .chat-sidebar-stories .chat-story-heading strong{bottom:0;height:31px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--chat-text);font-size:10px;font-weight:500;text-shadow:none;text-align:center;padding:0 2px;line-height:1.4}.tk-chat .chat-sidebar-stories .chat-story-open>p,.tk-chat .chat-sidebar-stories .chat-story-menu{display:none}
.tk-chat .chat-sidebar-stories .chat-story-create{justify-content:flex-start;gap:5px;text-align:center;color:var(--chat-text);font-size:10px}.tk-chat .chat-sidebar-stories .chat-story-create>span{width:67px;height:67px;border:0;background:var(--chat-lift);color:var(--chat-blue);font-size:32px}.tk-chat .chat-sidebar-stories .chat-story-create strong{font-weight:500;line-height:1.4}.tk-chat .chat-sidebar-stories .chat-story-empty{font-size:11px;min-width:115px;padding:5px}.tk-chat .chat-sidebar-stories>p,.tk-chat .chat-sidebar-stories>a{font-size:11px;color:var(--chat-muted)}.tk-chat .chat-sidebar-stories>a{color:var(--chat-blue);text-decoration:underline}.tk-chat .chat-sidebar-stories .chat-feature-status{font-size:10px}
@media(max-width:900px){.tk-chat .chat-main{grid-template-columns:minmax(280px,38%) minmax(0,1fr)}.tk-chat .chat-toolbar{flex-wrap:wrap;padding:12px}.tk-chat .chat-conversation-actions{margin-left:auto}.tk-chat .chat-bubble{max-width:90%}}
@media(max-width:650px){
 .tk-chat{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}
 .tk-chat .chat-header{padding:12px 14px;min-height:63px}.tk-chat .chat-brand h2{font-size:27px}.tk-chat .chat-brand .chat-logo{display:none}.tk-chat .chat-brand p{display:none}.tk-chat .chat-header-actions{gap:6px}.tk-chat .chat-header-actions button{padding:8px 10px;min-width:36px;min-height:36px}.tk-chat .chat-header-actions .chat-btn-label{display:none}
 .tk-chat .chat-main{display:flex;flex-direction:column}.tk-chat .chat-list-pane{padding:0 11px 12px;flex:1;border-right:0}.tk-chat .chat-contact-bar{padding:6px 3px 8px;gap:7px}.tk-chat .chat-search-label input{font-size:14px;padding-top:12px;padding-bottom:12px}.tk-chat .chat-contact-bar label{font-size:10px}.tk-chat .chat-contact-bar select{font-size:12px}.tk-chat .chat-sidebar-tools{padding-bottom:7px}.tk-chat .chat-sidebar-tools button{font-size:11px}.tk-chat .chat-folders{padding-bottom:8px}.tk-chat .chat-folders button{font-size:12px;min-height:34px}.tk-chat .chat-thread-line{display:flex}.tk-chat .chat-thread-line strong{font-size:14px}.tk-chat .chat-thread .chat-avatar{width:51px;height:51px}.tk-chat .chat-thread{padding:12px 8px}
 .tk-chat.chat-mobile-thread .chat-header .chat-brand{display:none}.tk-chat.chat-mobile-thread .chat-header{min-height:0;padding:5px 9px;justify-content:flex-end;border-bottom:0}.tk-chat.chat-mobile-thread .chat-header-actions button{min-height:29px;padding:4px 9px;font-size:11px}.tk-chat.chat-mobile-thread .chat-header-actions .chat-btn-label{display:inline}.tk-chat.chat-mobile-thread .chat-pane{display:flex;flex:1}.tk-chat.chat-mobile-thread .chat-list-pane{display:none}
 .tk-chat .chat-toolbar{padding:9px 12px;gap:8px;min-height:65px}.tk-chat .chat-back{font-size:12px;padding:5px 8px;border:0;background:transparent;color:var(--chat-blue);min-height:36px}.tk-chat .chat-toolbar .chat-avatar{width:38px;height:38px;font-size:13px}.tk-chat .chat-name{font-size:14px}.tk-chat .chat-peer-kind{font-size:10px}.tk-chat .chat-peer-heading{min-width:70px;flex:1}.tk-chat .chat-conversation-actions{flex-basis:100%;width:100%;justify-content:flex-end;margin:0;gap:6px}.tk-chat .chat-conversation-actions button{font-size:10px;padding:6px 10px;min-height:30px}
 .tk-chat .chat-history{padding:14px 13px;min-height:0;gap:9px}.tk-chat .chat-bubble{max-width:90%;font-size:14px}.tk-chat .chat-compose{padding:9px 10px 5px;gap:7px}.tk-chat .chat-compose textarea{font-size:14px;min-height:46px;height:46px;padding-top:12px}.tk-chat .chat-compose>button{width:41px;height:41px;min-height:41px}.tk-chat .chat-compose small{display:none}.tk-chat .chat-status-row{padding:4px 10px;min-height:28px}.tk-chat .chat-status-row .chat-status{font-size:9px;max-height:30px}.tk-chat .chat-status-row .chat-privacy-link{font-size:9px}.tk-chat .chat-empty strong{font-size:20px}
 .tk-portal-stories{padding:12px;margin-bottom:17px}.tk-portal-stories .chat-story-section-heading>span{font-size:10px}.tk-portal-stories .chat-story-audience{font-size:11px}.tk-chat.chat-messaging-blocked .chat-main{display:flex}
}
@media(max-height:500px){.tk-chat .chat-header{min-height:0;padding:5px 12px}.tk-chat .chat-header-actions button{min-height:29px;padding:4px 9px}.tk-chat .chat-toolbar{min-height:0;padding:5px 10px;row-gap:3px}.tk-chat .chat-toolbar .chat-avatar{width:30px;height:30px}.tk-chat .chat-conversation-actions button{min-height:26px;padding:4px 8px}.tk-chat .chat-compose{padding:5px 9px}.tk-chat .chat-compose textarea{min-height:42px;height:42px;padding-top:10px}.tk-chat .chat-compose small{display:none}.tk-chat .chat-status-row{min-height:23px;padding:2px 10px}.tk-chat .chat-status-row .chat-status{max-height:25px}.tk-chat .chat-compose .chat-compose-emoji{bottom:2px}}
.tk-chat .chat-compose>button{background:linear-gradient(135deg,var(--chat-button),var(--chat-button-end))}
/* An absolute photo cannot force an implicit grid row beyond the reader stage. */
.tk-chat .chat-story-stage.has-photo{display:block;isolation:isolate;height:min(62dvh,640px);min-height:180px;overflow:hidden;background:#080b13}
.tk-chat .chat-story-stage.has-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.tk-chat .chat-story-caption{padding:5px 2px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--chat-text);font-size:14px}
.tk-chat .chat-story-comments{border-top:1px solid var(--chat-line);padding-top:18px;display:grid;gap:12px}
.tk-chat .chat-story-comments h3{font-size:18px}.tk-chat .chat-comments-audience,.tk-chat .chat-comments-empty{font-size:12px;color:var(--chat-muted)}
.tk-chat .chat-story-comment-list{display:grid;gap:12px}.tk-chat .chat-story-comment{padding:12px;background:var(--chat-lift);border:1px solid var(--chat-line);border-radius:15px;overflow-wrap:anywhere}
.tk-chat .chat-comment-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tk-chat .chat-comment-heading strong{flex:1}.tk-chat .chat-comment-heading small{font-size:10px;color:var(--chat-muted)}.tk-chat .chat-comment-heading .chat-avatar{width:30px;height:30px;font-size:11px}.tk-chat .chat-comment-body{white-space:pre-wrap;margin:10px 0!important;font-size:14px}.tk-chat .chat-comment-actions{display:flex;flex-wrap:wrap;gap:6px}.tk-chat .chat-comment-actions button{font-size:11px;padding:5px 9px;min-height:30px;border-radius:18px}
.tk-chat .chat-story-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.tk-chat .chat-story-comment-form textarea{min-height:70px;max-height:150px;resize:vertical}.tk-chat .chat-story-comment-form>button{min-height:42px}
.tk-chat .chat-story-stats{flex-wrap:wrap;justify-content:flex-start;gap:8px}.tk-chat .chat-story-stats button{font-size:12px;min-height:34px;padding:7px 11px}.tk-chat .chat-story-view-count{margin-right:auto}
@media(max-width:650px){.tk-chat .chat-story-stage.has-photo{height:52dvh}.tk-chat .chat-story-comment-form{grid-template-columns:minmax(0,1fr)}.tk-chat .chat-comment-heading small{flex-basis:100%}.tk-chat .chat-story-comments{padding-top:14px}}
@media(max-width:650px){.tk-chat .chat-status-row{padding-bottom:max(4px,env(safe-area-inset-bottom))}.tk-chat:not(.chat-mobile-thread) .chat-header{padding-top:max(12px,env(safe-area-inset-top))}}

.tk-chat .chat-knowledge-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;min-height:40px;border-radius:22px;border:1px solid var(--chat-line);color:var(--chat-text);background:var(--chat-surface);font:600 12px/1.4 system-ui;text-decoration:none}.tk-chat .chat-knowledge-link:focus-visible{outline:3px solid var(--chat-accent);outline-offset:2px}

/* Verified school role; inline SVG only, no font or image downloads. */
.tk-moderator-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;color:#1164c7;vertical-align:-.15em;margin-left:4px;line-height:1}.tk-moderator-badge svg{display:block;width:100%;height:100%}.tk-role-name{display:inline-flex;align-items:center;max-width:100%;min-width:0;gap:2px;vertical-align:middle}.tk-role-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis}.tk-role-portrait{display:inline-flex;position:relative;flex:0 0 auto;align-items:center;justify-content:center;vertical-align:middle}.tk-role-portrait>.tk-moderator-badge,.chat-avatar[data-moderator=true]>.tk-moderator-badge{position:absolute;right:-2px;bottom:-2px;z-index:3;width:17px;height:17px;margin:0;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #fff}.chat-avatar[data-moderator=true]{position:relative;overflow:visible!important}.chat-avatar[data-moderator=true]>img{border-radius:inherit}.sp-student-hd .sp-avatar>.tk-role-portrait{width:100%;height:100%}.sp-student-hd .sp-avatar{overflow:visible}.tk-role-portrait>.ak-profile-photo+.tk-moderator-badge{width:24px;height:24px;right:0;bottom:0}[data-theme=dark] .tk-moderator-badge{color:#81bcff}[data-theme=dark] .tk-role-portrait>.tk-moderator-badge,[data-theme=dark] .chat-avatar[data-moderator=true]>.tk-moderator-badge{background:#152235;box-shadow:0 0 0 2px #152235}

.tk-moderator-badge svg path:last-child{stroke:var(--tk-badge-check,#fff)}[data-theme=dark] .tk-moderator-badge{--tk-badge-check:#122238}.tk-chat .chat-name{display:inline-flex;align-items:center;gap:4px;min-width:0}.tk-chat .chat-name>.tk-role-name-text{white-space:nowrap}

/* New Day actions live only in the three-dot options menu. */
.tk-chat .chat-sidebar-stories .chat-story-menu{display:block;top:1px;right:0;width:23px;min-height:23px;max-width:23px;border-radius:50%;font-size:15px;line-height:1;background:#000b;color:#fff;z-index:4}.tk-chat-feature.tk-story-options{width:min(340px,calc(100vw - 24px))}.tk-chat .tk-story-options .chat-action-buttons{grid-template-columns:minmax(0,1fr)}.tk-chat .tk-story-options .chat-action-buttons button{width:100%;min-height:44px;text-align:left;justify-content:flex-start}.tk-chat .chat-story-reader-menu{margin-left:auto;flex:0 0 36px;border-radius:50%;width:36px;min-height:36px;padding:4px;font-size:20px}.tk-chat .chat-day-delete-action{font-weight:700}
/* New Day reader only: shared theme tokens, bounded media and one native animation. */
@layer tk-components {
 .tk-chat .tk-chat-feature.tk-story-mode{width:min(1180px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:min(850px,calc(var(--tk-visual-height,100dvh) - 32px))!important;max-height:calc(var(--tk-visual-height,100dvh) - 32px)!important;background:var(--ui-surface,var(--chat-panel))!important;}
 .tk-chat .tk-chat-feature.tk-story-mode>.chat-feature-content{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:14px!important;overflow:hidden!important;width:100%;max-width:none!important;margin:0!important;box-sizing:border-box;min-width:0;padding:16px!important;}
 .tk-chat .tk-story-mode .chat-story-playback{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;min-width:0;}
 .tk-chat .tk-story-mode .chat-story-progress{display:flex;gap:5px;grid-column:1/-1;min-width:0;}
 .tk-chat .tk-story-mode .chat-story-progress-step{height:5px;flex:1;min-width:0;background:var(--ui-border,var(--chat-line));border-radius:8px;overflow:hidden;}
 .tk-chat .tk-story-mode .chat-story-progress-step>span{display:block;width:100%;height:100%;background:var(--ui-accent,var(--chat-focus));transform:scaleX(0);transform-origin:left center;}
 .tk-chat .tk-story-mode .chat-story-playback-state{font-size:12px;color:var(--ui-muted,var(--chat-muted));}
 .tk-chat .tk-story-mode .chat-story-playback>button{min-height:32px;padding:3px 10px;font-size:12px;border:0!important;background:transparent!important;}
 .tk-chat .tk-story-mode .chat-story-media-panel{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:12px;border:1px solid var(--ui-border,var(--chat-line));border-radius:16px;background:var(--ui-soft,var(--chat-lift));overflow:hidden;}
 .tk-chat .tk-story-mode .chat-story-media-panel>.chat-story-view-heading{flex:0 0 auto;min-width:0;}
 .tk-chat .tk-story-mode .chat-story-view-heading>strong{font-size:14px;overflow-wrap:anywhere;}
 .tk-chat .tk-story-mode .chat-story-view-heading>small{font-size:12px;}
 .tk-chat .tk-story-mode .chat-story-media-panel>.chat-story-stage:not(:fullscreen){flex:1 1 auto;height:auto!important;min-height:140px!important;max-height:none!important;width:100%;border-radius:12px;}
 .tk-chat .tk-story-mode .chat-story-stage>p{font-size:clamp(18px,2.5vw,30px);padding:30px 54px;margin:0;max-width:100%;box-sizing:border-box;}
 .tk-chat .tk-story-mode .chat-story-caption{flex:0 0 auto;max-height:70px;overflow:auto;font-size:13px;padding:0 2px;}
 .tk-chat .tk-story-mode .chat-story-stage .chat-story-counter{left:12px;transform:none;}
 .tk-chat .tk-story-mode .chat-story-side{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid var(--ui-border,var(--chat-line));border-radius:16px;padding:14px;background:var(--ui-surface,var(--chat-panel));}
 .tk-chat .tk-story-mode .chat-story-side>*{flex:0 0 auto;min-width:0;}
 .tk-chat .tk-story-mode .chat-story-interactions{position:sticky;top:-14px;bottom:auto;z-index:5;margin:-14px -14px 0;padding:12px 14px;gap:10px;background:var(--ui-surface,var(--chat-panel));border-bottom:1px solid var(--ui-border,var(--chat-line));}
 .tk-chat .tk-story-mode .chat-story-reactions{gap:0!important;flex-wrap:nowrap!important;justify-content:space-between;padding:5px 0;}
 .tk-chat .tk-story-mode .chat-story-reactions button{flex:1 1 0;min-width:28px!important;max-width:44px;min-height:42px;font-size:26px!important;padding:3px!important;}
 .tk-chat .tk-story-mode .chat-story-reactions button:hover{transform:translateY(-2px);}
 .tk-chat .tk-story-mode .chat-story-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px;}
 .tk-chat .tk-story-mode .chat-story-view-count{grid-column:1/-1;width:max-content;font-size:12px;color:var(--ui-muted,var(--chat-muted));}
 .tk-chat .tk-story-mode .chat-story-stats>button:not(.chat-story-view-count){min-height:42px;font-size:13px;}
 .tk-chat .tk-story-mode .chat-story-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
 .tk-chat .tk-story-mode :is(.chat-story-reply,.chat-story-comment-form) label{font-size:13px!important;min-width:0;}
 .tk-chat .tk-story-mode :is(.chat-story-reply,.chat-story-comment-form) textarea{font-size:14px!important;line-height:1.5;min-height:64px!important;max-height:130px;resize:vertical;padding:10px!important;}
 .tk-chat .tk-story-mode .chat-story-reply>button{min-height:40px;font-size:12px;}
 .tk-chat .tk-story-mode .chat-story-reply>small{font-size:11px;line-height:1.5;}
 .tk-chat .tk-story-mode .chat-story-comments{gap:10px;padding-top:14px;}
 .tk-chat .tk-story-mode .chat-story-comments h3{margin:0;font-size:16px;}
 .tk-chat .tk-story-mode .chat-comments-empty{padding:24px 12px;text-align:center;border:1px dashed var(--ui-border,var(--chat-line));border-radius:12px;background:var(--ui-soft,var(--chat-lift));}
 .tk-chat .tk-story-mode .chat-story-comment-form{grid-template-columns:minmax(0,1fr)!important;}
 .tk-chat .tk-story-mode .chat-story-comment-form>button{justify-self:end;min-height:40px;}
 .tk-chat .tk-story-mode .chat-feature-content>.chat-feature-status{grid-column:1/-1;grid-row:3;order:3;margin:0!important;max-height:55px;overflow:auto;}
 .tk-chat .tk-story-mode .chat-feature-content>.chat-story-stage:not(:fullscreen){grid-column:1/-1;grid-row:2;height:100%!important;min-height:140px!important;}
 .tk-chat .chat-editor-emojis{font-weight:400;font-size:13px;min-width:0;}
 .tk-chat .chat-editor-emojis>summary{cursor:pointer;width:max-content;min-height:36px;display:flex;align-items:center;gap:6px;padding:0 8px;border-radius:8px;color:var(--ui-text,var(--chat-text));list-style:none;}
 .tk-chat .chat-editor-emojis>summary::-webkit-details-marker{display:none;}
 .tk-chat .chat-editor-emojis>summary:focus-visible{outline:2px solid var(--ui-accent,var(--chat-focus));outline-offset:2px;}
 .tk-chat .chat-editor-emojis>.chat-emoji-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(38px,1fr));gap:2px;padding:6px;max-height:180px;overflow:auto;border:1px solid var(--ui-border,var(--chat-line));border-radius:12px;background:var(--ui-soft,var(--chat-lift));}
 .tk-chat .chat-editor-emojis .chat-emoji-picker button{min-width:36px;min-height:40px;padding:2px!important;font-size:24px!important;}
 .tk-chat .chat-editor-emojis .chat-emoji-picker button:hover{background:var(--ui-surface,var(--chat-panel))!important;}
 @media(max-width:800px),(max-height:500px){
  .tk-chat .tk-chat-feature.tk-story-mode{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;height:calc(var(--tk-visual-height,100dvh) - 16px)!important;max-height:calc(var(--tk-visual-height,100dvh) - 16px)!important;}
  .tk-chat .tk-chat-feature.tk-story-mode>.chat-feature-content{display:flex!important;flex-direction:column;gap:8px!important;padding:10px!important;}
  .tk-chat .tk-story-mode .chat-feature-heading{padding:8px 12px!important;}
  .tk-chat .tk-story-mode .chat-story-playback{flex:0 0 auto;gap:3px 8px;}
  .tk-chat .tk-story-mode .chat-story-media-panel{flex:0 0 auto;padding:8px;gap:6px;}
  .tk-chat .tk-story-mode .chat-story-media-panel>.chat-story-stage:not(:fullscreen){flex:none;height:clamp(140px,30dvh,320px)!important;min-height:140px!important;}
  .tk-chat .tk-story-mode .chat-story-view-heading>strong{font-size:13px;}
  .tk-chat .tk-story-mode .chat-story-caption{max-height:40px;font-size:12px;}
  .tk-chat .tk-story-mode .chat-story-side{flex:1 1 auto;padding:10px;gap:12px;}
  .tk-chat .tk-story-mode .chat-story-interactions{top:-10px;margin:-10px -10px 0;padding:6px 10px;gap:4px;}
  .tk-chat .tk-story-mode .chat-story-reactions button{font-size:23px!important;}
  .tk-chat .tk-story-mode .chat-story-playback-state{font-size:11px;}
  .tk-chat .tk-story-mode .chat-story-side:focus-within .chat-story-reply{scroll-margin-top:130px;}
 }
 @media(max-height:600px){
  .tk-chat .tk-story-mode .chat-story-media-panel>.chat-story-stage:not(:fullscreen){height:140px!important;min-height:100px!important;}
  .tk-chat .tk-story-mode .chat-story-media-panel{padding:6px;}
 }
 @media(max-height:500px) and (min-width:600px){
  .tk-chat .tk-chat-feature.tk-story-mode>.chat-feature-content{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);grid-template-rows:auto minmax(0,1fr) auto;}
  .tk-chat .tk-story-mode .chat-story-media-panel>.chat-story-stage:not(:fullscreen){height:auto!important;flex:1;}
 }
 @media(prefers-reduced-motion:reduce){.tk-chat .tk-story-mode .chat-story-reactions button:hover{transform:none;}}
}
/* Optional New Day photo tools stay inside the existing compact composer. */
@layer tk-components {
 .tk-chat .chat-photo-editor[hidden]{display:none!important;}
 .tk-chat .chat-story-compose-actions{flex:0 0 auto;display:grid;gap:8px;padding:12px 18px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--ui-border,var(--chat-line));background:var(--ui-surface,var(--chat-panel));}
 .tk-chat .chat-story-compose-actions>.chat-feature-status{margin:0;max-height:60px;overflow:auto;}
 .tk-chat .chat-story-compose-actions>.chat-feature-status:empty{display:none;}
 .tk-chat .chat-photo-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0;padding:14px;border:1px solid var(--ui-border,var(--chat-line));border-radius:14px;background:var(--ui-soft,var(--chat-lift));}
 .tk-chat .chat-photo-editor>h3{grid-column:1/-1;grid-row:1;margin:0;font-size:16px;line-height:1.4;}
 .tk-chat .chat-photo-editor>label{grid-column:1;grid-row:2;}
 .tk-chat .chat-photo-editor>.chat-editor-emojis{grid-column:1;grid-row:3;}
 .tk-chat .chat-photo-editor>.chat-photo-text-tools{grid-column:1;grid-row:4;}
 .tk-chat .chat-photo-editor>.chat-photo-preview{grid-column:2;grid-row:2/5;align-self:start;position:sticky;top:0;}
 .tk-chat .chat-photo-editor>small,.tk-chat .chat-photo-editor>.chat-photo-editor-note{grid-column:1/-1;}
 .tk-chat .chat-photo-text-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;}
 .tk-chat .chat-photo-text-tools label{min-width:0;font-size:13px!important;}
 .tk-chat .chat-photo-text-tools input[type=range]{width:100%;padding:0!important;min-height:36px;accent-color:var(--ui-accent,var(--chat-focus));}
 .tk-chat .chat-photo-text-tools input[type=color]{width:100%;height:40px;padding:3px!important;cursor:pointer;}
 .tk-chat .chat-photo-text-tools output{font-size:12px;font-variant-numeric:tabular-nums;}
 .tk-chat .chat-photo-preview{display:grid;place-items:center;min-width:0;min-height:80px;overflow:hidden;border-radius:10px;background:var(--ui-surface,var(--chat-panel));}
 .tk-chat .chat-photo-preview canvas{display:block;max-width:100%;max-height:320px;width:auto;height:auto;touch-action:none;cursor:move;}
 .tk-chat .chat-photo-editor-note{font-size:12px;color:var(--ui-muted,var(--chat-muted));}
 .tk-chat .chat-photo-editor-note:empty{display:none;}
 .tk-chat .chat-photo-editor>button{justify-self:start;min-height:40px;}
 @media(max-width:560px){
  .tk-chat .chat-photo-editor{grid-template-columns:minmax(0,1fr);padding:10px;}
  .tk-chat .chat-photo-editor>*{grid-column:1/-1!important;grid-row:auto!important;}
  .tk-chat .chat-photo-editor>h3{order:0;}.tk-chat .chat-photo-editor>.chat-photo-preview{order:1;z-index:2;}
  .tk-chat .chat-photo-editor>label{order:2;}.tk-chat .chat-photo-editor>.chat-editor-emojis{order:3;}
  .tk-chat .chat-photo-editor>.chat-photo-text-tools{order:4;}.tk-chat .chat-photo-editor>small{order:5;}
  .tk-chat .chat-photo-editor>button{order:6;}.tk-chat .chat-photo-editor>.chat-photo-editor-note{order:7;}
  .tk-chat .chat-photo-text-tools{gap:8px;}.tk-chat .chat-photo-preview canvas{max-height:180px;}
 }
}

/* Conversation workspace: real inbox, thread and existing actions in three panes. */
@layer tk-components {
 .tk-chat[open]{width:min(1680px,calc(100vw - 24px))!important;height:calc(var(--tk-visual-height,100dvh) - 24px)!important;max-height:calc(var(--tk-visual-height,100dvh) - 24px)!important;border:0!important;border-radius:16px!important;}
 .tk-chat .chat-main{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:8px!important;background:var(--chat-bg);min-height:0;position:relative;}
 .tk-chat .chat-header{padding:10px 16px!important;min-height:60px!important;border:0!important;}
 .tk-chat .chat-header h2{font-size:20px!important;}
 .tk-chat .chat-list-pane{border:0!important;background:var(--chat-panel)!important;min-height:0;}
 .tk-chat .chat-pane{min-width:0!important;min-height:0;background:var(--chat-panel)!important;border-radius:12px;overflow:hidden;}
 .tk-chat .chat-toolbar{flex-wrap:nowrap!important;min-height:64px!important;padding:10px 16px!important;border:0!important;}
 .tk-chat .chat-history{padding:16px!important;overscroll-behavior:contain;}
 .tk-chat .chat-bubble{border:0!important;box-shadow:none!important;padding:10px 26px 9px 13px!important;max-width:78%!important;}
 .tk-chat .chat-info{overflow:auto;overscroll-behavior:contain;min-height:0;padding:20px 16px;background:var(--chat-panel);border-radius:12px;text-align:center;}
 .tk-chat .chat-info[hidden]{display:none!important;}
 .tk-chat .chat-info-avatar>.chat-avatar{width:80px!important;height:80px!important;font-size:24px!important;margin:0 auto 12px;}
 .tk-chat .chat-info h3{font-size:17px;margin:0 0 4px;overflow-wrap:anywhere;}
 .tk-chat .chat-info>p{font-size:13px;color:var(--chat-muted);margin:0 0 18px;}
 .tk-chat .chat-info-actions .chat-conversation-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;margin:18px 0!important;}
 .tk-chat .chat-info details{text-align:left;font-size:13px;line-height:1.6;margin-top:16px;}
 .tk-chat .chat-info summary{padding:12px 0;cursor:pointer;font-weight:650;}
 .tk-chat .chat-info details p{color:var(--chat-muted);font-size:12px;}
 .tk-chat .chat-info>button:first-child{margin:0 0 14px auto;display:block;}
 .tk-chat .chat-info-toggle{width:40px;min-height:40px;border:0!important;border-radius:50%!important;font-size:23px!important;background:var(--chat-lift)!important;color:var(--chat-blue)!important;}
 .tk-chat .chat-compose{background:var(--chat-panel)!important;padding:10px 16px!important;flex:0 0 auto;}
 .tk-chat .chat-compose textarea{font-size:16px!important;}
 @media(min-width:1180px){.tk-chat.chat-has-peer .chat-main{grid-template-columns:300px minmax(0,1fr) 260px!important;}.tk-chat .chat-info>button:first-child,.tk-chat .chat-info-toggle{display:none!important;}}
 @media(min-width:651px) and (max-width:1179px){.tk-chat .chat-main{grid-template-columns:270px minmax(0,1fr)!important;}.tk-chat .chat-info{display:none;position:absolute;right:0;inset-block:0;width:min(300px,100%);z-index:5;box-shadow:-8px 0 30px #0003;}.tk-chat.chat-info-open .chat-info:not([hidden]){display:block;}}
 @media(max-width:650px){
  .tk-chat[open]{width:100vw!important;height:var(--tk-visual-height,100dvh)!important;max-height:var(--tk-visual-height,100dvh)!important;margin:0!important;border-radius:0!important;}
  .tk-chat .chat-main{display:flex!important;flex-direction:column;}
  .tk-chat .chat-pane{display:none;flex:1;}
  .tk-chat.chat-mobile-thread .chat-pane{display:flex;}
  .tk-chat .chat-info{display:none;position:absolute;inset:0;z-index:6;border-radius:0;}
  .tk-chat.chat-mobile-thread.chat-info-open .chat-info:not([hidden]){display:block;}
  .tk-chat .chat-header-actions .chat-knowledge-link{display:none;}
  .tk-chat .chat-compose{padding:8px 10px max(8px,env(safe-area-inset-bottom))!important;}
 }
}

@layer tk-components {.tk-chat .chat-folders{flex-wrap:wrap!important;overflow:visible!important;}.tk-chat .chat-compose>label{font-size:0!important;}.tk-chat .chat-bubble{font-size:15px!important;}}

/* Compact, bounded reported-content removal confirmation. */
.tk-chat-feature.tk-removal-confirm{width:min(520px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important;border:0!important;border-radius:16px!important}.tk-chat-feature.tk-removal-confirm[open]{display:flex!important;flex-direction:column!important}.tk-removal-confirm .chat-feature-heading{flex:none}.tk-removal-confirm .chat-feature-content{min-height:0;overflow:auto;padding:18px!important}.chat-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:none;padding:12px 18px;background:var(--chat-panel);border-top:1px solid var(--chat-line)}.chat-confirm-actions button{min-height:38px;padding:8px 14px;border-radius:8px}.chat-confirm-actions .chat-destructive{background:color-mix(in srgb,#d92d20 12%,var(--chat-panel));color:var(--tk-score-danger,#d92d20)}

.chat-story-stage.has-video>video{width:100%;height:100%;max-height:65dvh;object-fit:contain;background:#000;border-radius:12px}.chat-story-stage.has-video{min-height:260px}.cs-review-image:is(video),video.cs-delete-thumbnail{width:100%;max-height:340px;object-fit:contain;background:#000}
.tk-chat .chat-story-stage.has-video{display:block;position:relative;isolation:isolate;overflow:hidden;background:#000}.tk-chat .chat-story-stage.has-video>video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-height:none;object-fit:contain;z-index:1}.tk-chat .chat-story-stage.has-video .chat-story-counter{bottom:55px}.chat-video-ui{position:absolute;inset:0;z-index:4;pointer-events:none;display:grid;place-items:center}.tk-chat .chat-video-ui button{pointer-events:auto;border:0!important;background:rgba(15,20,30,.78)!important;color:#fff!important}.tk-chat .chat-video-ui .chat-video-play{width:62px;min-width:62px;height:62px;padding:0;border-radius:50%;font-size:27px;line-height:1}.chat-video-play[hidden]{display:none!important}.tk-chat .chat-video-ui .chat-video-sound{position:absolute;right:10px;top:10px;border-radius:18px;padding:7px 12px;min-height:34px;font-size:12px}.chat-video-status{position:absolute;top:12px;left:12px;max-width:60%;padding:5px 9px;border-radius:8px;background:rgba(15,20,30,.78);color:white;font-size:12px;line-height:1.4}.chat-video-status:empty{display:none}.chat-story-video-poster{object-fit:cover}.chat-story-video-badge,.af-day-video-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:17px;pointer-events:none}.af-day-card img[data-thumbnail-failed=true]{display:none}.chat-story-open .chat-story-video-poster{position:absolute;inset:0;width:100%;height:100%}.chat-story-open:has(.chat-story-video-poster){position:relative}.chat-story-open:has(.chat-story-video-poster) .chat-story-heading,.chat-story-open:has(.chat-story-video-poster)>p{position:relative;z-index:1}

.tk-chat .chat-video-ui .chat-video-play{border-radius:50%!important;width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;padding:0!important}

.chat-day-background-picker{min-width:0;padding:12px;border:0;border-radius:12px;background:var(--chat-lift);margin:12px 0;display:grid;gap:8px}
.chat-day-background-picker label{display:grid;gap:6px}.chat-day-background-picker select{width:100%;min-width:0;font:16px system-ui;padding:9px;border:1px solid var(--chat-line);border-radius:9px;background:var(--chat-panel);color:var(--chat-text)}
.chat-day-background-picker small{font-size:12px;color:var(--chat-muted)}
.chat-day-background-preview{display:grid;place-items:center;min-height:130px;max-height:210px;overflow:auto;border-radius:10px;padding:20px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;font:650 20px/1.45 system-ui;background:var(--chat-panel);color:var(--chat-text)}
.chat-day-background-preview.has-colour{color:white}.chat-day-background-preview[hidden]{display:none}
.chat-story-open.has-background{position:relative;isolation:isolate}.chat-story-open.has-background>img.chat-story-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.chat-story-open.has-background :is(.chat-story-heading,p){position:relative;z-index:1;color:white}
.tk-chat .chat-story-stage.has-background{position:relative;isolation:isolate;overflow:hidden}
.tk-chat .chat-story-stage.has-background>img.chat-story-background{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;z-index:0}
.tk-chat .chat-story-stage.has-background>p{position:relative;z-index:1;color:white!important;background:transparent!important;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;padding:28px 60px;max-height:100%;overflow:auto}
