.coach-entry{width:100%;margin:16px 0 0;padding:16px 18px;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #47403a;border-radius:20px;background:linear-gradient(115deg,#242220,#17191b);color:#f5f0e9;cursor:pointer}.coach-entry-mark{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:14px;background:#bc6b31;color:#16191a;font-size:26px}.coach-entry span:nth-child(2){display:grid;gap:3px;flex:1}.coach-entry strong{font-size:16px}.coach-entry small{color:#bcb2a8;font-size:12px}.coach-entry>span:last-child{color:#f9a35a;font-size:22px}
.coach-screen{max-width:780px;margin:0 auto;padding:10px 16px 112px;color:#f5f0e9}.coach-head{display:flex;align-items:center;gap:12px;padding:8px 0 14px}.coach-head h1{margin:2px 0 0;font-size:27px}.coach-head>div{flex:1}.coach-back,.coach-icon-button{width:44px;height:44px;flex:none;border:1px solid #393d40;border-radius:14px;background:#202326;color:#f5f0e9;font-size:23px;cursor:pointer}.coach-status{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:0 0 14px;color:#b9bdbe;font-size:12px}.coach-status #coachQuota{color:#f4a36a}.coach-history{margin:0 0 15px;padding:13px;border:1px solid #3c4143;border-radius:16px;background:#1c2022}.coach-history-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.coach-history button,.coach-starters button{border:1px solid #434748;border-radius:12px;background:#25292b;color:#f4eee8;cursor:pointer}.coach-history-title button{min-height:36px;padding:0 10px;color:#ffa765}.coach-history #coachThreadList{display:grid;gap:5px;max-height:210px;overflow:auto}.coach-history #coachThreadList button{text-align:left;min-height:40px;padding:8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coach-history #coachThreadList button[aria-current=page]{border-color:#e3884d}
.coach-messages{display:grid;align-content:start;gap:16px;min-height:240px;padding:6px 0 22px}.coach-message{max-width:92%;padding:13px 15px;border:1px solid #373b3d;border-radius:17px;background:#202426;line-height:1.55;overflow-wrap:anywhere}.coach-message.user{justify-self:end;background:#463122;border-color:#805033}.coach-message.assistant{justify-self:start}.coach-message .coach-role{display:block;color:#f1a36d;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}.coach-message h2,.coach-message h3{margin:9px 0 5px;font-size:16px}.coach-message p{margin:4px 0 8px}.coach-message p:last-child{margin-bottom:0}.coach-message ul,.coach-message ol{margin:4px 0 9px;padding-left:22px}.coach-card{margin-top:10px;padding:10px;border-left:2px solid #e4894d;border-radius:8px;background:#282c2e}.coach-card strong{display:block}.coach-replay{display:inline-flex;margin:8px 6px 0 0;color:#ffad75;text-decoration:underline}.coach-feedback{display:flex;gap:8px;margin-top:12px}.coach-feedback button{min-width:44px;min-height:38px;border:1px solid #454a4c;border-radius:10px;background:#282c2e;color:#f5f0e9;cursor:pointer}.coach-feedback button[aria-pressed=true]{border-color:#e4894d;color:#ffad75}
.coach-starters{display:grid;gap:8px;margin:16px 0}.coach-starters[hidden]{display:none}.coach-starters p{margin:0 0 2px;color:#b8bdbe;font-size:13px}.coach-starters button{padding:10px 12px;text-align:left;min-height:44px}.coach-notice{min-height:20px;margin:5px 0 8px;color:#d4ad8c;font-size:13px}.coach-composer{position:sticky;bottom:70px;z-index:2;padding:10px;border:1px solid #4d5152;border-radius:17px;background:#25292b;box-shadow:0 8px 28px #0008}.coach-composer textarea{width:100%;min-height:50px;max-height:150px;resize:vertical;box-sizing:border-box;padding:7px;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:16px}.coach-composer>div{display:flex;justify-content:flex-end;gap:8px}.coach-composer button{min-height:44px;padding:0 15px;border:0;border-radius:11px;background:#e88a4b;color:#211912;font-weight:700;cursor:pointer}.coach-composer #coachStop{background:#393f42;color:#f4eee8}.coach-composer button:disabled{opacity:.45;cursor:default}
@media (min-width:800px){.coach-screen{padding-top:22px}.coach-composer{bottom:22px}.coach-message{max-width:78%}}
/* Keep the title and composer inside a true 390 px Telegram viewport. */
.coach-screen{width:100%;min-width:0}
.coach-head>div{min-width:0}
.coach-head .eyebrow{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.coach-messages{padding-bottom:150px;min-width:0;grid-template-columns:minmax(0,1fr)}
.coach-composer{position:fixed;left:15px;right:15px;bottom:calc(70px + env(safe-area-inset-bottom));width:auto;max-width:748px;margin:0 auto}
@media (min-width:800px){.coach-composer{bottom:90px}}
