/* Reuse the original interface and keep restored pages separate from course-editor chrome. */
body{--face:Poppins,Arial,sans-serif}h1{font-family:Poppins,Arial,sans-serif;font-weight:700}.p-header{height:auto;min-height:92px}.application-layout{min-height:calc(100svh - 92px)}.application-main>p{color:var(--muted);font-size:17px}.choice-card{text-align:left;color:var(--ink)}.choice-card[aria-pressed=true]{border-color:var(--darkPink);background:#fcecf4}.choice-card[aria-pressed=true] .selection-mark{background:var(--darkPink);color:white}.choice-card .selection-mark{display:grid;place-items:center;padding:0}.introduction-image video{width:100%;height:100%;object-fit:cover}.introduction-image:after{display:none}.application-main .questions{display:block}.application-main .questions fieldset{background:transparent;border:0;border-radius:0;padding:0}.application-main .questions legend{padding:0}.application-main .field{display:block;font-weight:600;margin:22px 0}.application-main .field input{width:100%;padding:14px;border:1px solid #c6abb9;border-radius:12px}.restored-application .lesson-layout{max-width:1250px;padding:36px;margin:auto}.lesson-menu{background:var(--pink);border:0;border-radius:24px;padding:24px}.lesson-menu button[aria-current=true]{background:var(--ink);color:white}.access-page{min-height:calc(100svh - 92px)}.access-card{width:min(580px,100%)}.access-card .actions{flex-wrap:wrap}.access-card h1{font-size:38px}.dashboard-layout{min-height:calc(100svh - 92px)}.dashboard .p-header{padding:18px 4vw}.dashboard-links a{font-size:14px}.dashboard .dash-title h1{font-family:Poppins,Arial,sans-serif}.dashboard .signature-label{max-width:560px;margin-bottom:26px}.dashboard td{white-space:normal;min-width:140px}.dashboard td small{display:block;color:var(--muted)}.dashboard .admin-conversation{color:var(--ink)}.dashboard #admin-form{display:grid;gap:10px}.dashboard #admin-form .p-button{justify-self:end}.dashboard .conversation-list{display:block}.chat-shell{height:calc(100dvh - 92px)}.chat-shell .chat-header{flex-wrap:wrap}.chat-main{min-width:0}.chat-composer{margin:0}.chat-composer .p-button{flex-shrink:0}.chat-shell.dark .chat-header strong,.chat-shell.dark .chat-header small{color:var(--chat-ink)}.typing-bubble{display:flex;gap:5px;align-items:center;align-self:flex-start;width:58px;min-height:34px;padding:11px 13px;background:var(--bubble,#fff);border-radius:18px 18px 18px 4px;box-shadow:0 2px 8px #0001}.typing-bubble i{display:block;width:7px;height:7px;border-radius:50%;background:#9c6d86;animation:typing-dot 1.1s infinite}.typing-bubble i:nth-of-type(2){animation-delay:.15s}.typing-bubble i:nth-of-type(3){animation-delay:.3s}@keyframes typing-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}#work-cover::backdrop{background:#201a20;backdrop-filter:blur(20px)}.dashboard-links .quiet,.dashboard-links .p-button{white-space:nowrap}.chat-warning{font-size:13px}#floating-chat .typing-bubble{background:#3a3b3c}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1000px){.dashboard .p-header{align-items:flex-start;flex-wrap:wrap}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-links{justify-content:flex-start}}@media(max-width:800px){.application-layout{display:block}.application-aside{padding:24px}.application-aside h2{font-size:28px;margin:12px 0 20px}.step-list{display:flex;gap:18px;overflow:auto}.step-list li{flex-shrink:0;font-size:13px}.aside-note{display:none}.application-main{padding:32px 22px}.restored-application .lesson-layout{padding:22px}.dashboard .demo-conversations{grid-template-columns:1fr}.dashboard .conversation-list{max-height:230px}.dashboard-links a:nth-child(2),.dashboard-links a:first-child{display:inline-flex}.chat-shell{grid-template-columns:1fr}.chat-sidebar{display:none}.chat-shell .chat-header{padding:14px}.chat-shell .chat-header .quiet{font-size:13px}.chat-composer{padding:12px}.messages{padding:20px}.header-note{display:none}}@media(max-width:480px){.choice-grid{grid-template-columns:1fr}.p-header{padding:16px 20px}.chat-shell{min-height:520px}.chat-composer{gap:8px}.chat-composer input{width:0}.chat-composer .p-button{padding:10px 16px}.stat-card strong{font-size:30px}.dashboard-links .quiet,.dashboard-links .p-button{font-size:13px}.step-list li{gap:8px}.access-card{padding:26px}.chat-header .chat-portrait{display:none}}@media(prefers-reduced-motion:reduce){.typing-bubble i{animation:none}.application-main{animation:none}}

.chat-view .chat-shell{height:100dvh}.chat-view .chat-composer{padding:18px 22px}.chat-view .chat-header strong{font-size:16px}.chat-view .chat-shell.dark .messages{background-image:none;background-color:var(--chat-background)}.chat-view .chat-shell.light .messages{background-image:none;background-color:var(--chat-background)}.chat-view .chat-shell.dark .chat-session-note{color:var(--chat-ink)}.typing-bubble[hidden]{display:none!important}

.agreement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agreement-option strong{font-size:30px}.agreement-options{border:0;padding:0;margin:28px 0}.agreement-options legend{font-size:20px;font-weight:700}.agreement-particulars p{font-size:14px}.terms-box{height:300px}.signature-label input:disabled{background:#f3edf0}.access-code-form{display:grid;gap:16px;margin:24px 0;padding-bottom:24px;border-bottom:1px solid var(--line)}#student-account-dialog .manage-options{display:grid;gap:12px}#close-account-dialog{float:right;min-width:42px}.dashboard .dash-title,.dashboard .stat-card,.dashboard .dash-card{animation:arrive .25s ease-out}.chat-view .account-options{z-index:20}.entry-payment-status{background:#f3e3eb!important;color:#7a2850!important}@media(max-width:560px){.agreement-grid{grid-template-columns:1fr}.participant-fields{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.dashboard .dash-title,.dashboard .stat-card,.dashboard .dash-card{animation:none}}

/* Match the preserved review/signature screenshot. */
#prototype-terms.terms-box{height:390px;max-height:60dvh}
#typed-preview.signature-visual{font:italic 28px/1.55 Georgia,serif;color:#a92360;border-bottom:1px solid var(--line);padding:15px 0;margin:0}
#review-signature{height:52px;background:#fff;border:1px solid #c6abb9;border-radius:12px;font-size:14px;padding:14px}
#signature-help,#scroll-hint{font-size:14px;line-height:1.55;color:#6c5b64}
#signature-help{margin:14px 0 12px}
#review-age{margin-top:3px;border-radius:0}
#learning-status:empty{display:none}
#enrol-now:disabled{background:#171316;border-color:#171316;opacity:.42}
.application-main .session-note{font-size:12px;line-height:1.55;margin:25px 0 0;color:#6c5b64}
@media(max-width:680px){#prototype-terms.terms-box{height:350px}.step-actions{flex-wrap:wrap}#enrol-now{margin-left:auto;max-width:100%}}
.entry-review-heading{display:flex!important;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.entry-review-heading h2{margin:0}.entry-review-heading .quiet{font-size:14px}.price-breakdown .entry-review-heading{border-bottom:0;padding:0 0 20px}#entry-lightbox{width:min(650px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border-radius:24px;box-shadow:0 24px 90px #30162540;animation:arrive .2s ease-out}#entry-lightbox::backdrop{background:#24132166;backdrop-filter:blur(5px)}.entry-lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.entry-lightbox-top .overline{margin-right:auto}.entry-lightbox-top .quiet{font-size:13px;padding:9px 12px;min-height:42px}.entry-lightbox-top .lightbox-close{padding:8px;min-width:40px;font-size:24px;border:0}#entry-lightbox h2{font-family:Poppins,Arial,sans-serif;font-size:28px;margin:24px 0 16px}.entry-payment-card{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;display:flex;flex-direction:column;gap:8px}.entry-payment-card strong{font-size:40px;line-height:1.2}.entry-payment-card small{font-size:14px;color:var(--muted)}.entry-lightbox-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}#entry-lightbox .entry-lightbox-actions .p-button{width:auto;margin:0}#entry-lightbox-status:empty{display:none}#entry-lightbox video,.verification-reply-form video{width:100%;max-height:360px;background:#21131c;border-radius:16px;margin:18px 0}.verification-state{display:inline-flex;border-radius:30px;padding:7px 12px;background:#f9e1ed;color:#81324f;font-size:14px}.verification-state.ready{background:#e4f1e9;color:#215d3d}.verification-response{white-space:pre-wrap}.verification-reply-form textarea{display:block;width:100%;min-height:100px;padding:12px;margin:8px 0 18px;border:1px solid var(--line);border-radius:12px;font:inherit}.verification-reply-form [role=status]{font-size:14px}.verification-request-grid{align-items:start}.verification-request-grid .dash-card{min-width:0}.verification-request-grid input{min-width:0}#verification-panel{margin:20px 0}#verification-back{margin-top:16px}@media(max-width:600px){#entry-lightbox{padding:20px}.entry-lightbox-top{flex-wrap:wrap}.entry-lightbox-top .overline{flex-basis:100%}.entry-lightbox-top .lightbox-close{position:absolute;right:12px;top:12px}.entry-lightbox-actions{flex-wrap:wrap}.entry-lightbox-actions .p-button{flex:1}}@media(prefers-reduced-motion:reduce){#entry-lightbox{animation:none}}
/* Shared student/admin conversation controls. */
.chat-view .chat-header{justify-content:flex-start;gap:12px}
.chat-view .chat-header>div:nth-child(2){margin-right:0;min-width:0}
.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-wrap:wrap}
.chat-view .chat-header-actions #mobile-theme{margin-left:0}
.chat-header-actions .account-dropdown{margin:0}
.chat-view .chat-header-actions .quiet{min-height:40px;padding:8px 12px;font-size:14px;white-space:nowrap}
.dashboard .admin-conversation{--chat-background:#fce7f0;--bubble:#fff;--chat-ink:#171316;background:linear-gradient(160deg,var(--chat-background),var(--bubble))}
.dashboard .admin-chat-heading{justify-content:flex-start;gap:12px;background:#fff;border-bottom:1px solid #b8869e22;padding:20px 28px}
.dashboard .admin-chat-heading .chat-header-person{margin-right:auto}
.dashboard .admin-chat-heading small{display:block;font-size:13px;margin-top:5px;color:var(--muted)}
.dashboard .admin-conversation #admin-thread{padding:20px clamp(18px,3vw,40px);gap:16px;min-height:280px;max-height:55dvh;overflow:auto}
.dashboard .admin-conversation .message{margin:0;max-width:min(78%,560px);font-size:16px;line-height:1.55;border-radius:22px 22px 22px 6px}
.dashboard .admin-conversation .message.outgoing{background:#211b20;color:#fff;border-radius:22px 22px 6px 22px}
.admin-chat-bottom{padding:16px 22px;background:#fff;border-top:1px solid var(--line)}
.admin-media-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.admin-media-actions .quiet{font-size:14px;min-height:40px;padding:8px 12px;gap:7px}
.dashboard #admin-form.chat-composer{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent}
.dashboard #admin-form.chat-composer input{flex:1;min-width:0;border-radius:24px;background:var(--chat-background);color:var(--chat-ink);border:1px solid transparent;padding:15px 20px;height:54px}
.dashboard #admin-form.chat-composer .p-button{border-radius:50%;width:52px;min-width:52px;height:52px;min-height:52px;padding:14px;gap:0;flex-shrink:0;font-size:0;background:#211b20;border-color:#211b20}
#media-request-status{font-size:12px;color:var(--muted);margin:10px 0 0}
#access-new-code{margin-top:14px}.saved-learning{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}.saved-learning summary{font-size:14px;cursor:pointer}.saved-learning .quiet{margin:8px 6px 0 0;font-size:14px}
@media(max-width:600px){.chat-view .chat-header-actions{gap:6px;justify-content:flex-start;margin-left:0;flex-basis:100%}.chat-view .chat-header-actions .quiet{font-size:13px}.dashboard .admin-chat-heading{padding:16px}.admin-chat-bottom{padding:14px}.admin-media-actions .quiet{font-size:12px;padding:8px;gap:5px}.dashboard .admin-conversation .message{max-width:90%}}
/* Connected accounts retain the established chat surfaces and typography. */
#student-code-dialog{width:min(540px,calc(100vw - 32px));border:1px solid #ead6e0;border-radius:24px;padding:28px;color:var(--ink,#211920);background:#fff9fc}
#student-code-dialog::backdrop{background:#21131c80;backdrop-filter:blur(4px)}
#student-code-dialog input{width:100%;font-size:14px;letter-spacing:.03em}
.student-chat-list .floating-conversation-row{width:100%;text-align:left;gap:10px}
.student-chat-list small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.conversation-list .student-chat-list button{display:flex;align-items:center}
.chat-header-actions{flex-wrap:wrap}
.chat-attachment-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 22px 0;flex-shrink:0;color:var(--chat-ink,var(--ink));font-size:14px}
.chat-attachment-controls .quiet,.chat-attachment-controls .p-button{min-height:36px;padding:7px 12px;font-size:13px}
.chat-attachment-controls .attachment-status{width:100%;font-size:12px;opacity:.8}
.chat-attachment-controls .attachment-status:empty{display:none}
.attachment-selection{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-attachment{display:grid;gap:8px;max-width:min(320px,65vw)}
.message-attachment img,.message-attachment video{width:100%;max-height:300px;object-fit:contain;border-radius:12px}
.message-attachment audio{width:min(300px,65vw)}
.message-attachment a{color:inherit;font-size:12px;overflow-wrap:anywhere}
.admin-chat-bottom .chat-attachment-controls{padding:6px 0}
.access-code-help{position:relative;align-self:flex-start;margin:8px 0 0 14px;flex-shrink:0}
.access-code-info{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #e6bdcf;border-radius:50%;background:#fcecf4;color:#9c2756;cursor:pointer}
.access-code-info:hover,.access-code-info:focus-visible{background:#f6c5db;outline:2px solid #9c2756;outline-offset:3px}
.access-code-tooltip{position:absolute;z-index:50;right:0;top:100%;width:min(350px,calc(100vw - 48px));padding:20px;background:#fff9fc;border:1px solid #e6bdcf;border-radius:18px;box-shadow:0 14px 40px #32182724;color:#291e25;font-size:14px;line-height:1.6;font-weight:400}
.access-code-tooltip[hidden]{display:none}
.access-code-tooltip strong{display:block;font-size:15px}
.access-code-tooltip ol{padding-left:20px;margin:12px 0}
.access-code-tooltip li+li{margin-top:7px}
.access-code-tooltip p{font-size:13px!important;color:#725260!important;margin:12px 0 0!important}
/* Dashboard layout uses the actual header height; clearance belongs to content, not the sidebar. */
body.restored-dashboard{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.restored-dashboard>.p-header{flex-shrink:0}
.restored-dashboard .dashboard-layout{flex:1;min-height:0;padding-bottom:0;align-items:stretch}
.restored-dashboard #dashboard-nav{align-self:stretch}
.restored-dashboard #dashboard-main{padding-bottom:100px}
.restored-dashboard .connections-card{margin-top:20px}
.restored-dashboard .dash-card>p:first-child{margin-top:0}
.restored-dashboard .dash-card>p:last-child{margin-bottom:0}
/* Shared field treatment for newly connected forms without changing switches or choice controls. */
.restored-dashboard :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;border:1px solid #dec5d1;border-radius:12px;background:#fffafd;color:#211920;padding:12px 14px;font:inherit;font-size:14px;line-height:1.5;transition:border-color .15s,box-shadow .15s}
.restored-dashboard :where(input,textarea)::placeholder{color:#796773;opacity:1}
.restored-dashboard :where(input,select,textarea):focus-visible{outline:2px solid #9c2756;outline-offset:2px;border-color:#9c2756}
.restored-dashboard :where(select),.restored-chat .chat-sidebar select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23725260' stroke-width='1.7'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:18px;background-position:right 14px center}
.restored-dashboard input[type=file]{width:100%;padding:8px;background:#fff9fc}
.restored-dashboard input[type=file]::file-selector-button{font:inherit;font-size:13px;font-weight:500;padding:9px 13px;margin-right:12px;border:0;border-radius:8px;background:#f6c5db;color:#211920;cursor:pointer}
.conversation-search{display:flex;align-items:center;gap:10px;min-height:46px;width:100%;box-sizing:border-box;padding:0 14px;border:1px solid #ead6e0;border-radius:24px;background:#f7f0f4;color:#806775;margin:0 0 18px}
.conversation-search svg{flex-shrink:0}
.restored-dashboard .conversation-search input{display:block;flex:1;width:100%;min-width:0;margin:0;padding:11px 0;border:0;border-radius:0;background:transparent;color:inherit;font-size:14px;box-shadow:none;outline:none}
.conversation-search:focus-within{outline:2px solid #9c2756;outline-offset:2px}
#student-picker{max-width:540px;margin:22px 0}
#student-picker h2,.conversation-list>h2{margin:0 0 16px}
.conversation-empty{padding:18px 8px;margin:0;color:#796773;font-size:14px;line-height:1.6}
#floating-chat .conversation-search{border-color:transparent;background:#3a3b3c;color:#e4e6eb;margin:0 0 8px;min-height:40px}
#floating-chat .conversation-search input{font-size:14px;padding:9px 0;color:#e4e6eb}
#floating-chat .conversation-search input::placeholder{color:#b0b3b8}
#floating-chat .conversation-search:focus-within{outline-color:#f2a8cc}
#floating-chat .conversation-empty{color:#b0b3b8;padding:22px 10px 28px;text-align:center}
#floating-chat #floating-students{padding:0 4px}
#floating-chat #floating-see-all{width:calc(100% + 24px);margin-left:-12px;padding:14px 16px;border-top:1px solid #393a3b}
@media(max-width:700px){.restored-dashboard #dashboard-main{padding:24px 18px 100px}.restored-dashboard .dash-columns{grid-template-columns:1fr;gap:18px}.restored-dashboard .connections-card{margin-top:18px}.restored-dashboard :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}}
@media(prefers-reduced-motion:reduce){.restored-dashboard :where(input,select,textarea){transition:none}}

/* A quiet, compact messenger. Shared bubble metadata also applies to the inbox. */
.chat-date{align-self:center;margin:14px 0 10px;padding:4px 11px;border-radius:20px;font-size:11px;font-weight:500;color:var(--chat-muted,#78636e);background:var(--date-bg,#ffffff9c);line-height:1.5}
.message .message-text{white-space:pre-wrap;overflow-wrap:anywhere}.message .message-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:3px 0 0;font-size:10px;line-height:1.3;opacity:.7;color:inherit}.message-receipt{font:12px Arial,sans-serif}.message-receipt.read{color:var(--receipt,#9c3459);opacity:1}.message.grouped{margin-top:-4px}.retry-message{display:block;background:none;border:0;color:inherit;font:inherit;font-size:11px;text-decoration:underline;padding:8px 0 0;cursor:pointer}.message-failed{outline:1px solid #d66675}.chat-empty{display:flex;flex-direction:column;align-items:center;gap:9px;line-height:1.6;padding:24px}.chat-empty strong{font-size:16px;font-weight:500}.chat-empty>span:last-child{font-size:13px;opacity:.7}.empty-chat-mark{display:grid;place-items:center;width:58px;height:58px;margin-bottom:10px;border:1px solid currentColor;border-radius:22px;font:26px Arial,sans-serif;opacity:.4}.composer-note:empty{display:none}
body.chat-view{background:#0e1218;padding:0;color:#e8eaf0}body.chat-view>.p-header{display:none}.chat-view #client-chat{height:100dvh;padding:0;max-width:none;margin:0}.chat-view .telegram-chat{--chat-background:#121820;--bubble:#202a35;--chat-ink:#e5e9ee;--chat-muted:#94a1ae;--date-bg:#242f3ba8;--receipt:#e8a3ba;--chat-panel:#19212b;--chat-input:#25303c;--chat-outgoing:#543345;--chat-accent:#a75572;--chat-border:#ffffff0d;height:100dvh;min-height:0;width:100%;max-width:980px;margin:auto;border:0;border-radius:0;display:block;overflow:hidden;box-shadow:0 0 80px #0002;background:var(--chat-background);color:var(--chat-ink)}
.chat-view .telegram-chat.light{--chat-background:#e8edf0;--bubble:#fff;--chat-ink:#26333e;--chat-muted:#788792;--date-bg:#ffffffba;--receipt:#9a3459;--chat-panel:#fff;--chat-input:#f0f3f5;--chat-outgoing:#f2dce5;--chat-accent:#983d5e;--chat-border:#1425340d}.chat-view .telegram-chat.pink{--chat-background:#f0e6eb;--bubble:#fffafb;--chat-ink:#382c34;--chat-muted:#947b88;--date-bg:#ffffff99;--receipt:#97365b;--chat-panel:#fff9fc;--chat-input:#f4e9ef;--chat-outgoing:#ecd1df;--chat-accent:#9b365d;--chat-border:#75445514}
.chat-view .telegram-chat .chat-main{height:100%;min-height:0;display:flex;flex-direction:column;background:none;overflow:hidden}.chat-view .telegram-chat .chat-header{position:relative;flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:12px;min-height:68px;padding:11px 20px;border-bottom:1px solid var(--chat-border);background:var(--chat-panel);color:var(--chat-ink);z-index:5}.chat-view .telegram-chat .chat-portrait{display:grid;position:relative;place-items:center;flex-shrink:0;width:42px;height:42px;background:#774158;color:#f5dce6;border-radius:50%;font:italic 23px Georgia,serif}.presence-dot{position:absolute;right:0;bottom:0;width:10px;height:10px;border:2px solid var(--chat-panel);border-radius:50%;background:#84909d}.presence-dot.is-online{background:#6abf9c}.chat-view .telegram-chat .chat-person{min-width:0;flex:1}.chat-view .telegram-chat .chat-header strong{display:block;font:600 15px/1.5 Poppins,Arial,sans-serif;color:var(--chat-ink)}.chat-view .telegram-chat .presence-status{display:block;font-size:12px;color:var(--chat-muted);line-height:1.5}.chat-view .telegram-chat .chat-header-actions{display:flex;gap:2px;flex-wrap:nowrap;margin:0;align-items:center}.chat-view .telegram-chat .chat-icon,.chat-view .telegram-chat #account-toggle{display:grid;place-items:center;width:40px;height:40px;min-height:40px;min-width:40px;padding:9px;border:0;background:none;box-shadow:none;border-radius:50%;color:var(--chat-muted);font-size:14px}.chat-view .telegram-chat svg{width:22px;height:22px;flex-shrink:0}.chat-view .telegram-chat button:hover{filter:brightness(1.12)}.chat-view .telegram-chat button:focus-visible,.chat-view .telegram-chat textarea:focus-visible{outline:2px solid var(--chat-accent);outline-offset:2px}.chat-view .telegram-chat .account-options{background:var(--chat-panel);color:var(--chat-ink);border-color:var(--chat-border);border-radius:12px}.chat-view .telegram-chat .account-options button:hover{background:var(--chat-input);color:var(--chat-ink)}
.chat-view .telegram-chat .code-request-notice{align-self:stretch;flex-shrink:0;max-width:none!important;margin:0!important;padding:8px 18px;border:0;border-bottom:1px solid var(--chat-border);border-radius:0;background:var(--chat-panel);color:var(--chat-muted);font-size:11px;line-height:1.5;min-height:0;text-align:center}.chat-thread-wrap{position:relative;flex:1;min-height:0;display:flex;overflow:hidden}.chat-view .telegram-chat .messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--chat-input) transparent;display:flex;flex-direction:column;gap:8px;padding:20px clamp(16px,5vw,54px);background-color:var(--chat-background);background-image:radial-gradient(var(--chat-border) 1px,transparent 1px);background-size:22px 22px}.chat-view .telegram-chat .message{flex-shrink:0;position:relative;width:fit-content;max-width:78%;padding:9px 12px 6px;border:0;border-radius:15px 15px 15px 4px;background:var(--bubble);box-shadow:0 1px 2px #0001;color:var(--chat-ink);font:400 14px/1.55 Poppins,Arial,sans-serif;animation:none}.chat-view .telegram-chat .message.outgoing{align-self:flex-end;border-radius:15px 15px 4px 15px;background:var(--chat-outgoing)}.chat-view .telegram-chat .message.incoming{align-self:flex-start}.chat-view .telegram-chat .message.grouped{border-radius:8px}.chat-view .telegram-chat .typing-bubble{background:var(--bubble);box-shadow:none;min-height:28px}.chat-view .telegram-chat .typing-bubble i{background:var(--chat-muted);width:5px;height:5px}.chat-view .telegram-chat .chat-empty{color:var(--chat-muted);margin:auto;max-width:100%}.chat-view .telegram-chat .load-warning{background:var(--chat-panel);color:var(--chat-muted);font-size:12px;text-align:center;border-radius:10px;padding:8px}.chat-view .telegram-chat #chat-jump-latest{position:absolute;right:20px;bottom:16px;background:var(--chat-panel);box-shadow:0 2px 12px #0002;color:var(--chat-ink)}.chat-view [hidden]{display:none!important}
.chat-compose-area{position:relative;flex-shrink:0;background:var(--chat-panel);padding:8px 14px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--chat-border)}.chat-view .telegram-chat .chat-composer{display:flex;align-items:flex-end;gap:8px;background:none;padding:0;border:0;margin:0}.chat-view .telegram-chat .chat-composer textarea{display:block;box-sizing:border-box;flex:1;min-width:0;width:100%;min-height:44px;max-height:130px;padding:12px 14px;resize:none;overflow-y:auto;border:0;border-radius:20px;background:var(--chat-input);color:var(--chat-ink);font:400 14px/20px Poppins,Arial,sans-serif;box-shadow:none}.chat-view .telegram-chat .chat-composer textarea::placeholder{color:var(--chat-muted)}.chat-view .telegram-chat .chat-composer>.p-button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:11px;border:0;border-radius:50%;background:var(--chat-accent);color:white}.chat-view .telegram-chat .chat-attachment-controls{display:flex;align-items:center;flex-wrap:wrap;gap:3px;background:none;border:0;padding:0 0 5px;min-height:0}.chat-view .telegram-chat .chat-attachment-controls [data-pick],.chat-view .telegram-chat .chat-attachment-controls [data-record]{display:grid;place-items:center;min-width:34px;min-height:32px;padding:5px 7px;background:none;border:0;color:var(--chat-muted);font-size:11px;border-radius:8px}.chat-view .telegram-chat .chat-attachment-controls svg{width:20px;height:20px}.chat-view .telegram-chat .attachment-selection{font-size:11px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--chat-muted)}.chat-view .telegram-chat .attachment-status{font-size:11px;color:var(--chat-muted);margin-left:8px}.chat-view .telegram-chat .chat-compose-hint{font-size:9px;line-height:1.4;color:var(--chat-muted);text-align:center;letter-spacing:.2px;margin:6px 0 0;opacity:.65}.chat-view .telegram-chat .composer-note{font-size:11px;color:var(--chat-muted);padding:4px;margin:0}.chat-view .telegram-chat .message-attachment{max-width:320px}.chat-view .telegram-chat .message-attachment img,.chat-view .telegram-chat .message-attachment video{max-height:350px;border-radius:9px}.chat-view .telegram-chat .message-attachment a{color:inherit;font-size:11px}.chat-view .telegram-chat .message-attachment audio{max-width:100%}
#work-cover.work-screen{background:#f3f4f5;color:#30353c;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;margin:0}#work-cover.work-screen::backdrop{background:#f3f4f5;backdrop-filter:none}#work-cover.work-screen small{max-width:330px;margin:28px auto;color:#8a8d93;font-size:11px}
@media(max-width:600px){.chat-view .telegram-chat .chat-header{min-height:60px;padding:8px 12px;gap:10px}.chat-view .telegram-chat .chat-portrait{width:36px;height:36px;font-size:20px}.chat-view .telegram-chat .chat-header-actions{gap:0}.chat-view .telegram-chat .chat-icon,.chat-view .telegram-chat #account-toggle{width:36px;min-width:36px;height:38px;min-height:38px;padding:8px}.chat-view .telegram-chat .messages{padding:12px}.chat-view .telegram-chat .message{max-width:86%;font-size:14px}.chat-compose-area{padding-left:10px;padding-right:10px}.chat-view .telegram-chat .chat-composer textarea{font-size:16px}.chat-view .telegram-chat .chat-header strong{font-size:14px}}

#chat-background-dialog{width:min(540px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #eadbe3;border-radius:22px;background:#fffafd;color:#30252d}#chat-background-dialog::backdrop{background:#10131db3;backdrop-filter:blur(5px)}.background-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.background-dialog-header h2{font-size:23px;margin:5px 0 0}.background-dialog-header .quiet{min-width:40px;padding:8px;font-size:22px}#chat-background-dialog>p{font-size:13px;line-height:1.7;color:#75616d}#background-preview{height:170px;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:15px;background:#121820;color:#d7dce3;margin:20px 0;overflow:hidden}.background-preview-date{align-self:center;padding:3px 10px;border-radius:20px;background:var(--date-bg,#ffffff20);color:var(--chat-muted,#c4cbd4);font-size:10px}.background-preview-bubble{align-self:flex-start;padding:10px 13px;background:#fff;color:#34303a;border-radius:13px 13px 13px 3px;font-size:12px;box-shadow:0 1px 3px #0002}.background-preview-bubble.outgoing{align-self:flex-end;background:#efd3e0;border-radius:13px 13px 3px 13px}.background-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.background-preset{background:white;color:#53414c;border:1px solid #e5d6de;border-radius:11px;padding:9px;font:12px Poppins,Arial,sans-serif;cursor:pointer;display:flex;align-items:center;gap:8px}.background-preset>span{width:23px;height:23px;border-radius:50%;border:1px solid #0001}.background-preset[aria-pressed=true]{border-color:#a34e72;box-shadow:0 0 0 1px #a34e72;background:#f9eaf1}.background-custom{display:flex;gap:20px;margin-top:20px}.background-custom label{display:flex;align-items:center;gap:10px;font-size:12px}.background-custom input{width:38px;height:34px;border:0;padding:0;background:none}.background-custom select{border:1px solid #ddcbd4;border-radius:8px;background:white;padding:8px;color:#53414c}.background-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.background-actions button{font-size:12px;min-height:42px}#background-status{min-height:40px}@media(max-width:480px){#chat-background-dialog{padding:18px}.background-custom{flex-wrap:wrap;gap:12px}.background-preset{font-size:11px;padding:8px}.background-actions{flex-wrap:wrap}}

[data-conversation-background]{background-color:var(--conversation-color)!important;background-image:var(--conversation-image)!important;background-size:var(--conversation-size)!important}

[data-conversation-background]{background-position:center!important;background-repeat:var(--conversation-repeat,repeat)!important}.background-photo{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.background-photo label{font-size:12px;display:flex;align-items:center;gap:8px}.background-photo select{padding:8px;border:1px solid #ddcbd4;border-radius:8px;background:white;color:#53414c}.background-photo small{flex-basis:100%;color:#75616d;font-size:11px}.background-photo button{font-size:12px}.background-photo [hidden]{display:none!important}

/* Mobile chat: fixed visible viewport, bounded header actions and account menu. */
body.chat-view{overflow:hidden}
.chat-view #client-chat{position:fixed;inset:auto 0 auto;top:var(--chat-viewport-top,0px);height:var(--chat-viewport-height,100dvh);overflow:hidden}
.chat-view #client-chat .telegram-chat{height:100%;min-height:0}
.chat-view .telegram-chat .chat-person{flex:1 1 0;min-width:0;margin:0;overflow:hidden}
.chat-view .telegram-chat .chat-person strong,.chat-view .telegram-chat .chat-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-view .telegram-chat .chat-header-actions{flex:0 0 auto;flex-basis:auto;margin-left:auto;justify-content:flex-end}
.chat-view .telegram-chat .chat-portrait{flex-shrink:0}
.chat-view .telegram-chat .account-options{box-sizing:border-box;width:240px;max-width:calc(100vw - 24px);max-height:calc(var(--chat-viewport-height,100dvh) - 90px);overflow:auto;right:0;left:auto}
.chat-view .telegram-chat .chat-attachment-controls [data-send-file]{width:auto;min-width:0;min-height:36px;padding:8px 12px;flex:0 0 auto;background:var(--chat-accent);color:white}
.chat-view .telegram-chat .attachment-status{overflow-wrap:anywhere}
.chat-view #client-chat.keyboard-open .chat-compose-hint{display:none}
@media(max-width:600px){.chat-view .telegram-chat .chat-header{gap:8px;padding:10px 12px}.chat-view .telegram-chat .chat-header-actions{gap:0}.chat-view .telegram-chat .chat-header-actions .chat-icon{width:36px;min-width:36px;height:38px;padding:8px}.chat-view .telegram-chat .chat-person strong{font-size:16px}.chat-view .telegram-chat .chat-person small{font-size:12px}.chat-view .telegram-chat .chat-composer textarea{font-size:16px}}

/* Compact conversation stream; brand palette and custom backgrounds are retained. */
.chat-view .telegram-chat .message,body.dashboard .admin-thread .message{font:400 13px/1.5 Poppins,Arial,sans-serif;position:relative;min-width:0;width:fit-content;max-width:min(80%,480px);padding:8px 11px 5px;border-radius:14px;overflow-wrap:anywhere;box-sizing:border-box;box-shadow:0 1px 2px #0001}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere}.message-meta{font-size:10px!important;gap:4px}.message-reply{float:right;background:transparent;color:inherit;border:0;min-width:32px;min-height:28px;font-size:17px;padding:3px;opacity:.75;cursor:pointer}.message-reply:hover,.message-reply:focus-visible{opacity:1}
.message-quote{margin:0 0 7px;border-left:3px solid #ad416e;padding:5px 8px;background:#8881;border-radius:5px;white-space:pre-wrap;font-size:12px}.message-quote strong,.message-quote span{display:block}.message-quote span{overflow-wrap:anywhere}.composer-reply{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 14px;border-left:3px solid #ad416e;background:var(--chat-panel,#fff6fa);color:var(--chat-ink,#301522);font-size:12px}.composer-reply[hidden]{display:none}.composer-reply small{display:block;max-height:45px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.voice-draft{max-width:100%;width:300px;height:38px;flex-basis:100%;margin:5px 0}.voice-draft[hidden]{display:none}.chat-attachment-controls{min-width:0;flex-wrap:wrap}.attachment-status{overflow-wrap:anywhere}.message-attachment img,.message-attachment video{max-width:100%;width:280px;max-height:300px;object-fit:contain}.message-attachment a{font-size:11px!important}
#student-account-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}.member-plan-list{display:grid;gap:8px}.member-plan-list article{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #d3a7bb;border-radius:12px}.member-plan-list button{font-size:12px}.sub-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sub-gallery article{min-width:0}.sub-gallery img,.sub-gallery video{max-width:100%;width:100%;max-height:260px;object-fit:contain}.sub-gallery .voice-note{max-width:100%;box-sizing:border-box}
@media(max-width:600px){.chat-view .telegram-chat .message,body.dashboard .admin-thread .message{max-width:88%;font-size:13px}.chat-composer textarea,#floating-reply,#admin-reply{font-size:16px!important}.sub-gallery{grid-template-columns:1fr}}

.self-presence-status{font-size:10px!important;opacity:.85}.profile-answer-card{padding:14px;border:1px solid var(--dash-border,#dec1d0);border-radius:12px;margin:10px 0;font-size:13px}.sub-profile-card header>div{min-width:0;flex:1}.sub-profile-card header small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* One compact bubble layout across Sub, full admin and floating conversations. */
body.chat-view .telegram-chat .messages .message,body.dashboard .admin-thread .message{display:flex;flex-direction:column;flex:0 0 auto;align-self:flex-start;width:max-content;min-width:0;min-height:0;max-width:min(82%,360px);margin:2px 0!important;padding:5px 8px 3px!important;font:400 12px/1.4 Poppins,Arial,sans-serif!important;border-radius:12px;gap:0}
body.chat-view .telegram-chat .messages .message.outgoing,body.dashboard .admin-thread .message.outgoing{align-self:flex-end}
body.chat-view .telegram-chat .message-text,body.dashboard .admin-thread .message-text{font:inherit;line-height:1.4;padding:0;margin:0}
body.chat-view .telegram-chat .message .message-meta,body.dashboard .admin-thread .message .message-meta{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:5px;margin:1px 0 0!important;padding:0;line-height:1;min-height:20px;font-size:9px!important;white-space:nowrap}
body.chat-view .telegram-chat .message .message-reply,body.dashboard .admin-thread .message .message-reply{display:inline-flex;align-items:center;justify-content:center;float:none;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0;border:1px solid currentColor;border-radius:50%;font:14px/1 Arial,sans-serif;opacity:.65;background:transparent;color:inherit;flex:0 0 20px}
body.chat-view .telegram-chat .messages,body.dashboard .admin-thread{gap:4px!important;padding:10px!important}
body.chat-view .telegram-chat .message .voice-note,body.dashboard .admin-thread .message .voice-note{width:220px;max-width:100%;gap:7px;padding:2px 0}
body.chat-view .telegram-chat .message .voice-note-play,body.dashboard .admin-thread .message .voice-note-play{width:30px;height:30px;min-width:30px;min-height:30px;flex-basis:30px;font-size:13px;padding:0}
.message .voice-note-wave{height:20px;gap:2px}.message .voice-note-seek{height:24px}.message .voice-note-details{font-size:9px;line-height:1;margin-top:2px}.message .voice-note-download{font-size:17px!important;min-width:20px}.message .voice-note-error{font-size:10px}
.message-attachment{position:relative;max-width:100%}.message-attachment img,.message-attachment video{display:block;width:auto;max-width:230px;max-height:210px;border-radius:8px}.message-attachment .media-download-icon{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#281923d9;color:white!important;text-decoration:none;font-size:18px!important}
.chat-list-row{display:flex;align-items:center;gap:4px;min-width:0;border-bottom:1px solid var(--dash-border,#dec1d0)}
body.dashboard .chat-list-row .floating-conversation-row{flex:1;min-width:0;border:0;display:flex;align-items:center;padding:12px 8px;background:transparent}
.chat-list-row .floating-conversation-row>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
body.dashboard .chat-list-row .chat-pin-button{width:34px;min-width:34px;min-height:34px;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--dash-muted);flex:0 0 34px}
.chat-pin-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}.chat-pin-button[aria-pressed=true]{color:#ad416e!important;background:#f4bfd633!important}
body.dashboard .admin-media-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:7px!important;padding:4px 10px!important}
body.dashboard .admin-media-actions [data-media-request]{display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:7px!important;border-radius:50%;color:#922e5a!important;background:#f8ddea!important;border-color:#dca7bf!important}
.mobile-chat-back{display:none!important}
/* Dense admin workspace with one tools row and a visible send action. */
body.dashboard .admin-composer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px!important;padding:3px 8px!important;margin:0;min-height:32px}
.composer-request-tools{display:inline-flex;align-items:center;gap:5px}
body.dashboard .admin-chat-heading .chat-header-person strong{display:block;line-height:1.3;margin:0}
body.dashboard .admin-chat-heading .chat-header-person small{font-size:10px;line-height:1.2;margin:0;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.dashboard .admin-thread .message-quote{font-size:10px;line-height:1.35;margin-bottom:4px;padding:4px 6px}
body.dashboard .admin-thread .message.grouped{margin-top:0!important}
body.dashboard .admin-composer-tools .quiet,body.dashboard .admin-composer-tools [data-media-request]{display:inline-flex!important;align-items:center;justify-content:center;gap:0;width:30px;min-width:30px;height:30px;min-height:30px;padding:6px!important;border-radius:50%;font-size:18px!important;flex:0 0 30px;background:var(--dash-surface)!important;color:var(--dash-ink)!important}
body.dashboard .admin-composer-tools [data-media-request]{background:#f8ddea!important;color:#922e5a!important;border:1px solid #dca7bf}
body.dashboard .admin-composer-tools svg{width:18px;height:18px;min-width:18px;flex-basis:auto;margin:0!important;fill:none;stroke:currentColor;stroke-width:1.7}
body.dashboard .admin-composer-tools .attachment-status:empty{display:none}.admin-composer-tools .attachment-status{font-size:10px;line-height:1.3}.admin-composer-tools .attachment-selection{font-size:10px}
body.dashboard .admin-composer-tools [data-clear-file],body.dashboard .admin-composer-tools [data-send-file]{width:auto;flex-basis:auto;font-size:11px!important}
body.dashboard .admin-composer-tools [hidden]{display:none!important}
body.dashboard #admin-form.chat-composer,body.dashboard #floating-form{display:flex;align-items:flex-end;gap:7px;padding:3px 8px!important;margin:0}
body.dashboard #admin-form.chat-composer>.p-button,body.dashboard #floating-form>.p-button{display:grid;place-items:center;width:38px;min-width:38px;height:38px;min-height:38px;margin:0;padding:9px;flex:0 0 38px;border:0;border-radius:50%;background:#9c3459!important;color:#fff!important;font-size:0}
body.dashboard #admin-form.chat-composer>.p-button svg,body.dashboard #floating-form>.p-button svg{width:20px;height:20px;margin:0;stroke:#fff!important;fill:none}
body.dashboard .composer-reply{padding:5px 8px;gap:8px;min-width:0;font-size:10px;line-height:1.3}.dashboard .composer-reply>span{min-width:0;flex:1}.dashboard .composer-reply small{max-height:27px;font-size:10px;line-height:1.3}
body.dashboard .composer-reply button[aria-label="Cancel reply"]{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px!important;margin:0;flex:0 0 28px;border-radius:50%}
.composer-reply button[aria-label="Cancel reply"] svg{width:16px;height:16px;margin:0!important;fill:none;stroke:currentColor;stroke-width:2}
body.dashboard .mobile-chat-back{width:30px;min-width:30px;height:30px;min-height:30px;flex:0 0 30px;padding:5px!important;justify-content:center}
body.dashboard .mobile-chat-back svg{width:18px;height:18px;margin:0;fill:none;stroke:currentColor;stroke-width:1.8}
body.dashboard #visitor-summary{padding:10px 12px;margin:0 0 10px;border-radius:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px}
body.dashboard #visitor-summary h2{font-size:13px;margin:0}.dashboard #visitor-summary>[role=status]{flex:1;min-width:0}.dashboard #visitor-summary .visitor-metrics{display:flex;flex-wrap:wrap;gap:8px}.dashboard #visitor-summary .visitor-metrics>div{display:inline-flex;align-items:baseline;gap:5px;padding:3px 8px;border-radius:20px}.dashboard #visitor-summary .visitor-metrics strong{font-size:15px;line-height:1}.dashboard #visitor-summary .visitor-metrics span{font-size:10px;margin:0}.dashboard #visitor-summary .live-dot{position:static;width:5px;height:5px}.dashboard #visitor-summary .visitor-people:empty{display:none}.dashboard #visitor-summary .visitor-people{margin:4px 0}.dashboard #visitor-summary small{display:none}
body.dashboard #overview-body{display:flex;flex-direction:column;gap:10px}.dashboard #overview-recent{padding:14px}.dashboard #overview-recent h2{font-size:18px;margin:0}.dashboard #overview-totals{gap:6px}.dashboard #overview-totals .stat-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:12px}.dashboard #overview-totals .stat-card strong{font-size:19px;margin:0;line-height:1}.dashboard #overview-totals .stat-card small{font-size:11px}.dashboard #overview-totals .stat-card>span{display:none}.overview-details{order:3;font-size:12px}.overview-details>summary{cursor:pointer;padding:10px}.overview-details .overview-columns{margin-top:8px}
body.dashboard .chat-admin-tools:empty{display:none!important}
body.dashboard[data-mobile-admin-tab=chats] #floating-chat-toggle{display:none!important}
body.dashboard[data-mobile-admin-tab=overview] #dashboard-main>.dash-title{margin-bottom:10px}.dashboard[data-mobile-admin-tab=overview] .dash-title h1{font-size:24px}.dashboard[data-mobile-admin-tab=overview] .dash-title p{font-size:11px;line-height:1.4;margin-top:4px}
body.dashboard .overview-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0 0 10px}.dashboard .overview-toolbar p{flex:1;font-size:10px;line-height:1.3;margin:0}.dashboard .overview-toolbar #overview-refresh{display:grid;place-items:center;min-width:32px;width:32px;height:32px;min-height:32px;font-size:0;padding:7px}.dashboard .overview-toolbar #overview-refresh svg{width:17px;height:17px;margin:0}
body.dashboard #overview-recent .overview-section-title{margin-bottom:8px}.dashboard #overview-recent .overview-section-title .quiet{min-height:32px;padding:6px 9px;font-size:11px}
@media(min-width:701px){
 body.dashboard[data-mobile-admin-tab=chats]{overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] .dashboard-layout{height:calc(100dvh - var(--mobile-chat-top,94px));min-height:0;padding-bottom:0}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main{height:100%;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;padding:12px 16px!important;overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main>.dash-title{flex:0 0 auto;margin:0 0 8px}.dashboard[data-mobile-admin-tab=chats] .dash-title h1{font-size:22px;line-height:1.3}.dashboard[data-mobile-admin-tab=chats] .dash-title p{display:none}
 body.dashboard[data-mobile-admin-tab=chats] .demo-conversations{flex:1;min-height:0;grid-template-columns:240px minmax(0,1fr)}
 body.dashboard[data-mobile-admin-tab=chats] .conversation-list{display:flex;flex-direction:column;min-height:0;padding:10px}.dashboard[data-mobile-admin-tab=chats] .conversation-list h2{font-size:17px;margin:0 0 8px}.dashboard[data-mobile-admin-tab=chats] .conversation-search{margin:0 0 8px;min-height:38px}.dashboard[data-mobile-admin-tab=chats] .student-chat-list{flex:1;min-height:0;overflow-y:auto}
 body.dashboard[data-mobile-admin-tab=chats] .admin-conversation{display:flex;flex-direction:column;min-height:0;padding:0!important}
 body.dashboard[data-mobile-admin-tab=chats] .admin-chat-heading{flex:0 0 auto;padding:8px 10px;margin:0!important;gap:8px}.dashboard[data-mobile-admin-tab=chats] .admin-chat-heading .chat-portrait{width:32px;height:32px;font-size:16px}.dashboard[data-mobile-admin-tab=chats] .admin-chat-heading strong{font-size:13px}.dashboard[data-mobile-admin-tab=chats] .admin-chat-heading small{font-size:10px}
 body.dashboard[data-mobile-admin-tab=chats] .chat-warning{display:none}.dashboard[data-mobile-admin-tab=chats] #admin-thread{height:auto;max-height:none;min-height:0;flex:1;overflow-y:auto;margin:0!important;border-radius:0}.dashboard[data-mobile-admin-tab=chats] .admin-chat-bottom{flex:0 0 auto;padding:4px 0}
}
@media(max-width:700px){
 body.dashboard[data-mobile-admin-tab=chats]{overflow:hidden;padding-bottom:0}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main{position:fixed;top:var(--mobile-chat-top,80px);left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom));padding:12px!important;display:flex;flex-direction:column;overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] .dash-title{margin-bottom:8px;flex:0 0 auto}.dashboard[data-mobile-admin-tab=chats] .dash-title h1{font-size:22px}.dashboard[data-mobile-admin-tab=chats] .dash-title p{display:none}
 body.dashboard[data-mobile-admin-tab=chats] .chat-admin-tools{margin-bottom:8px;flex:0 0 auto;justify-content:flex-end}
 body.dashboard[data-mobile-admin-tab=chats] .demo-conversations{display:flex;flex-direction:column;flex:1;min-height:0;border-radius:16px;overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] .conversation-list{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;border:0;overflow:hidden;padding:12px}
 body.dashboard[data-mobile-admin-tab=chats] .conversation-list h2{display:none}.dashboard[data-mobile-admin-tab=chats] .conversation-search{flex:0 0 auto;margin-bottom:8px;min-height:40px}
 body.dashboard[data-mobile-admin-tab=chats] .student-chat-list{flex:1;min-height:0;overflow-y:auto}.dashboard[data-mobile-admin-tab=chats] .conversation-list button{min-width:0}
 body.dashboard[data-chat-pane=list] .admin-conversation{display:none!important}
 body.dashboard[data-chat-pane=thread] .conversation-list,body.dashboard[data-chat-pane=thread] #dashboard-main>.dash-title,body.dashboard[data-chat-pane=thread] .chat-admin-tools{display:none!important}
 body.dashboard[data-mobile-admin-tab=chats][data-chat-pane=thread] .admin-conversation{display:flex;flex-direction:column;flex:1;min-height:0;padding:0!important;border:0;border-radius:0}
 body.dashboard[data-chat-pane=thread] .mobile-chat-back{display:inline-flex!important;align-items:center;gap:3px;font-size:11px;min-height:32px;padding:5px!important}
 body.dashboard[data-chat-pane=thread] .admin-chat-heading{flex:0 0 auto;flex-wrap:nowrap;gap:7px;margin:0!important;padding:9px!important}.dashboard[data-chat-pane=thread] .admin-chat-heading .chat-portrait{display:none}.dashboard[data-chat-pane=thread] .admin-chat-heading strong{font-size:13px}.dashboard[data-chat-pane=thread] .admin-chat-heading small{font-size:10px}
 body.dashboard[data-chat-pane=thread] .admin-chat-heading .chat-header-actions{margin-left:auto;flex:0 0 auto}.dashboard[data-chat-pane=thread] .conversation-actions-menu summary{font-size:11px;min-height:32px;padding:0 7px}
 body.dashboard[data-chat-pane=thread] .chat-warning{display:none}.dashboard[data-chat-pane=thread] #admin-thread{flex:1;min-height:0;height:auto!important;max-height:none;border-radius:0;margin:0!important;overflow-y:auto}
 body.dashboard[data-chat-pane=thread] .admin-chat-bottom{flex:0 0 auto;padding:4px 0!important}.dashboard[data-chat-pane=thread] .composer-note:empty,.dashboard[data-chat-pane=thread] #media-request-status{display:none}
 body.dashboard[data-chat-pane=thread] .chat-attachment-controls{padding:2px 10px}.dashboard[data-chat-pane=thread] .chat-attachment-controls .quiet{min-height:30px;font-size:11px;padding:4px 7px}
 body.dashboard[data-chat-pane=thread] .chat-composer{padding:4px 8px!important}.dashboard[data-chat-pane=thread] #admin-reply{min-height:38px;padding:8px 10px!important}
 body.dashboard[data-mobile-admin-tab=chats].admin-keyboard-open #dashboard-main{bottom:0;height:var(--mobile-chat-height);}
}

/* Keep the composer outside the scrolling message history, at every viewport size. */
@media(min-width:701px){
 body.dashboard[data-mobile-admin-tab=chats] .dashboard-layout{flex:0 0 auto;height:calc(var(--admin-viewport-height,100dvh) - var(--mobile-chat-top,94px));max-height:calc(var(--admin-viewport-height,100dvh) - var(--mobile-chat-top,94px));grid-template-rows:minmax(0,1fr);overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main{min-height:0;overflow:hidden}
 body.dashboard[data-mobile-admin-tab=chats] .demo-conversations{grid-template-rows:minmax(0,1fr);overflow:hidden}
}
@media(min-width:701px) and (max-width:900px){
 body.dashboard[data-mobile-admin-tab=chats] .dashboard-layout{display:flex;flex-direction:column}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-nav{flex:0 0 auto}
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main{flex:1;height:auto}
}
body.dashboard[data-mobile-admin-tab=chats] .admin-conversation{overflow:hidden}
body.dashboard[data-mobile-admin-tab=chats] #admin-thread{flex:1 1 0px!important;min-height:0!important;overscroll-behavior:contain}
body.dashboard[data-mobile-admin-tab=chats] #admin-thread>.message,body.dashboard[data-mobile-admin-tab=chats] #admin-thread>.chat-date,body.dashboard[data-mobile-admin-tab=chats] #admin-thread>.typing-bubble{flex-shrink:0}
@media(max-width:700px){
 body.dashboard[data-mobile-admin-tab=chats] #dashboard-main{top:var(--mobile-chat-top,80px);bottom:auto;height:var(--mobile-chat-height,calc(100dvh - 164px));box-sizing:border-box}
 body.dashboard[data-mobile-admin-tab=chats].admin-keyboard-open>.p-header,body.dashboard[data-mobile-admin-tab=chats].admin-keyboard-open #dashboard-nav{display:none!important}
 body.dashboard[data-chat-pane=thread].admin-keyboard-open #dashboard-main{padding:0!important}
}
.chat-view #client-chat.keyboard-open .telegram-chat .chat-compose-hint{display:none}
.chat-view #client-chat.keyboard-open .telegram-chat .chat-header{min-height:44px;padding-top:4px;padding-bottom:4px}
.chat-view #client-chat.keyboard-open .telegram-chat .chat-composer textarea{max-height:80px}

.chat-view .telegram-chat .goddess-chat-avatar{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 40%}

/* Frame the supplied portrait from halo to neck; keep the presence dot outside the crop. */
.chat-view .telegram-chat .goddess-avatar-frame{position:absolute;inset:0;display:block;overflow:hidden;border-radius:50%}.chat-view .telegram-chat .goddess-avatar-frame .goddess-chat-avatar{inset:auto;left:-71.052632%;top:-17.105263%;width:231.578947%;height:auto;max-width:none;border-radius:0;object-fit:contain}
