.finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0}
.finance-stats article{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px 22px;background:#f2f8f7;border:1px solid #d3e4e4;border-radius:15px;min-width:0}
.finance-stats article>span{font-size:11px;line-height:1.6;color:#496f7c}.finance-stats strong{font:34px/1.2 Georgia,serif;letter-spacing:-.6px;color:#194e60;overflow-wrap:anywhere}.finance-stats small{font-size:10px;color:#6b858c;line-height:1.7}
.finance-notice{display:flex;align-items:flex-start;gap:10px;padding:15px 18px;border:1px solid #d2e1e5;border-radius:11px;background:#edf4f7;color:#526f7c;font-size:12px;line-height:1.75}.finance-notice svg{flex:none;margin-top:3px}
.finance-register>header,.tutor-overview>header{display:flex;justify-content:space-between;gap:15px;align-items:center}.finance-register>header h2,.tutor-overview h2{font:26px/1.3 Georgia,serif;color:#214e60;margin:0}.finance-register>header>span{font-size:11px;color:#6b858c}.tutor-overview>header .text-link{font-size:12px}.tutor-overview .finance-stats{margin-bottom:0}
.finance-table-wrap{overflow-x:auto;margin-top:25px}.finance-table-wrap table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:610px}.finance-table-wrap th{font-weight:600;color:#55717c;padding:12px 10px;background:#f2f7f7;border-bottom:1px solid #d4e3e5}.finance-table-wrap td{padding:18px 10px;color:#2e5363;border-bottom:1px solid #e1ebed;vertical-align:top}.finance-table-wrap td small{display:block;font-size:10px;color:#758b93;margin-top:7px}
.finance-badge{display:inline-block;padding:6px 8px;border-radius:6px;background:#f6eedc;color:#80652e;font-size:10px;white-space:nowrap}.finance-badge.is-recorded{color:#276877;background:#e5f2f3}
/* Tutor navigation stays inside one workspace on every screen. */
.tutor-workspace{padding-bottom:0;min-height:100dvh;background:#f4f8f8}
.tutor-workspace>.topbar{max-width:1180px;margin:auto;padding:20px 32px;background:transparent;border:0;min-height:82px}
.tutor-workspace .topbar-logo small{font-size:8px;letter-spacing:1.4px;margin-top:5px}
.tutor-profile-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid #cfdee2;border-radius:10px;background:#fff;color:#285d6d;text-decoration:none;font-size:12px}
.tutor-profile-link[aria-current]{border-color:#7bafb8;background:#e5f1f2}
.tutor-navigation{display:flex;align-items:center;gap:7px;max-width:1116px;margin:0 auto;padding:0 0 15px;border-bottom:1px solid #cfdee2;overflow-x:auto;scrollbar-width:thin}
.tutor-navigation>a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 20px;border:1px solid transparent;border-radius:11px;text-decoration:none;color:#5c7882;font-size:13px;font-weight:500;white-space:nowrap;flex-shrink:0}
.tutor-navigation>a:hover{background:#eaf2f3;color:#1b6376}.tutor-navigation>a[aria-current]{background:#176f7c;color:#fff;border-color:#176f7c}
.tutor-workspace .companion-content{max-width:1180px;padding:30px 32px 50px;min-width:0}
.tutor-workspace .tutor-heading{margin:0 0 25px}.tutor-workspace .companion-top-actions{flex-direction:row}
.tutor-workspace .tutor-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.tutor-section-title h1{font:36px/1.2 Georgia,serif;margin:0 0 10px;color:#214e60}.tutor-section-title p{font-size:14px;line-height:1.8;color:#64808a;margin:0}
.tutor-section-title>.button{flex-shrink:0;font-size:13px;border-radius:11px;min-height:45px}
.tutor-roster{padding:26px;background:#fff}.tutor-roster>label{font-size:12px;font-weight:600;color:#426a78}.tutor-roster>input{max-width:420px;margin:9px 0 20px;border-radius:10px}
.tutor-student-row{display:flex;align-items:center;gap:16px;padding:20px 0;border-top:1px solid #e0eaec}.tutor-student-info{flex:1;min-width:0}.tutor-student-info h2{font:600 15px/1.5 Arial,sans-serif;margin:0 0 5px}.tutor-student-info p{font-size:12px;line-height:1.6;color:#69838c;margin:0;overflow-wrap:anywhere}
.tutor-student-row>.text-link{min-height:44px;font-size:12px;flex-shrink:0}.tutor-student-row .status-pill{font-size:10px}.tutor-workspace [hidden]{display:none!important}
/* Embedded account forms keep the tutor header and the selected section. */
.tutor-workspace .account-page{max-width:780px;padding:0;margin:0 auto}.tutor-workspace .account-topbar,.tutor-workspace .account-story,.tutor-workspace .account-local{display:none}.tutor-workspace .account-card{grid-template-columns:1fr;border-radius:18px}.tutor-workspace .account-card-body{padding:32px 36px}.tutor-workspace .account-register .account-form{column-gap:22px}.tutor-workspace .account-links{justify-content:flex-start}.tutor-workspace .account-device-note{justify-content:flex-start}
/* A self-contained conversation layout; global form styles cannot narrow the composer. */
.conversation{margin:0 0 28px;background:#fff;border:1px solid #d1e1e5;border-radius:18px;overflow:hidden;min-width:0;box-shadow:0 8px 26px #173f5005}
.conversation-title{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid #e0eaec;color:#2c7a89}.conversation-title .account-eyebrow{font-size:9px;margin-bottom:9px}
.conversation-title h1{font:33px/1.2 Georgia,serif;margin:0;color:#214e60}.conversation-title p{font-size:13px;line-height:1.8;color:#69818c;margin:9px 0 0}
.chat-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);min-width:0}
.chat-contacts{min-width:0;background:#f9fbfb;border-right:1px solid #dce7e9}.chat-list-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 20px 15px;font-size:11px;font-weight:600;color:#617f89}.chat-list-heading>span{background:#e4eeef;border-radius:5px;padding:3px 7px;font-size:10px;color:#3d6d7b}
.chat-contact-list{display:flex;flex-direction:column;gap:5px;padding:0 10px 15px;max-height:530px;overflow:auto}
.chat-contact{display:flex;align-items:center;gap:11px;min-height:74px;width:100%;padding:13px 12px;margin:0;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;cursor:pointer;color:#527481;font:inherit}.chat-contact:hover{background:#eef4f4}.chat-contact[aria-pressed=true]{border-color:#bbd8dc;background:#e8f2f3}.chat-contact>svg{margin-left:auto;flex-shrink:0}
.chat-avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#deeeef;color:#247285;font:21px Georgia,serif;flex-shrink:0}.chat-contact-copy{min-width:0}.chat-contact-copy strong{display:block;font-size:12px;line-height:1.6;color:#2e5767;overflow-wrap:anywhere}.chat-contact-copy small{display:block;font-size:10px;color:#77909a;margin-top:3px}
.chat-room{display:grid;grid-template-rows:auto minmax(270px,400px) auto;min-width:0}
.chat-person{display:flex;align-items:center;gap:12px;padding:18px 24px;background:#fff;border-bottom:1px solid #e1ebed}.chat-person h2{font:600 14px/1.5 Arial,sans-serif;margin:0 0 4px;color:#244f61}.chat-person div>span{font-size:10px;color:#7b9098}
.chat-thread{display:flex;align-items:flex-start;flex-direction:column;gap:15px;padding:24px;overflow-y:auto;overflow-x:hidden;min-width:0;min-height:0;background:#f0f5f6;scrollbar-width:thin;scrollbar-color:#bed0d5 transparent}
.chat-start{margin:auto;text-align:center;max-width:290px;color:#90a9b1}.chat-start>svg{margin:auto}.chat-start h3{font:24px/1.4 Georgia,serif;margin:18px 0 10px;color:#426a7a}.chat-start p{font-size:12px;line-height:1.85;color:#758d97;margin:0}
.chat-bubble{max-width:85%;padding:12px 15px;border:1px solid #d8e5e7;border-radius:12px 12px 12px 3px;background:#fff;color:#365c6c;overflow-wrap:anywhere}.chat-bubble.is-mine{align-self:flex-end;border-color:#1b7180;background:#1b7180;color:#fff;border-radius:12px 12px 3px 12px}.chat-bubble>span{font-size:10px;opacity:.78}.chat-bubble p{margin:6px 0 8px;font:14px/1.75 Arial,sans-serif;white-space:pre-wrap;color:inherit!important}.chat-bubble time{display:block;text-align:right;font-size:9px;line-height:1.5;opacity:.72}
.conversation form[data-chat-compose]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:18px 22px;margin:0;background:#fff;border-top:1px solid #dce7e9}
.chat-input-field{min-width:0}.conversation .chat-input-field>label{display:block;font-size:11px;font-weight:600;color:#557786;margin:0 0 8px}
.conversation form[data-chat-compose] textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:68px;height:68px;max-height:130px;padding:12px 14px;margin:0;border:1px solid #c9dce2;border-radius:10px;resize:vertical;background:#fafcfc;color:#2f5869;font:14px/1.5 Arial,sans-serif}
.chat-keyboard-hint{display:block;margin-top:7px;color:#8a9da4;font-size:9px;line-height:1.6}
.conversation form[data-chat-compose]>.chat-send{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:auto;height:auto;padding:12px 15px;margin:23px 0 0;border:1px solid #176f7c;border-radius:10px;background:#176f7c;color:white;cursor:pointer;font:600 12px Arial,sans-serif}
[data-chat-status]{grid-column:1/-1;font-size:12px;line-height:1.7;color:#9a503e;margin:0}[data-chat-status]:empty{display:none}
.chat-connection-note{display:flex;align-items:flex-start;gap:8px;padding:13px 22px;margin:0;border-top:1px solid #e2ebed;background:#fff;font:10px/1.8 Arial,sans-serif;color:#8a9ca4}.chat-connection-note>svg{flex-shrink:0;margin-top:2px}
.chat-empty,.finance-empty{padding:48px 25px;text-align:center;color:#72909b}.chat-empty>svg,.finance-empty>svg{display:block;margin:0 auto 20px}.chat-empty h2,.finance-empty h3{font:27px/1.4 Georgia,serif;margin:0 0 13px;color:#345e70}.chat-empty p,.finance-empty p{font-size:13px;line-height:1.9;max-width:430px;margin:0 auto}.chat-empty>.button{margin-top:23px;font-size:12px;border-radius:10px}
.legacy-messages{margin:26px 0;border:1px solid #d5e4e6;border-radius:13px;padding:17px 22px;background:#f9fcfb}.legacy-messages>summary{font-size:12px;color:#68838e;cursor:pointer;line-height:1.8}.legacy-messages .tutor-heading{margin-top:24px}.legacy-messages .tutor-heading .photo-image{display:none}
.conversation button:focus-visible,.conversation textarea:focus-visible,.tutor-navigation a:focus-visible,.tutor-profile-link:focus-visible{outline:3px solid #32a9af75;outline-offset:3px}
@media(max-width:850px){.tutor-workspace>.topbar{padding-inline:22px}.tutor-navigation{margin-inline:22px;gap:4px}.tutor-navigation>a{padding-inline:14px;font-size:12px}.tutor-workspace .companion-content{padding:25px 22px 40px}.chat-workspace{grid-template-columns:205px minmax(0,1fr)}.chat-contact{padding-inline:8px;gap:8px}.chat-avatar{width:34px;height:34px;font-size:19px}.conversation form[data-chat-compose]>.chat-send span{display:none}.conversation-title{padding-inline:23px}}
@media(max-width:640px){.tutor-workspace>.topbar{padding:15px 18px;min-height:73px}.tutor-workspace .topbar-logo{gap:9px}.tutor-workspace .topbar-logo>span{font-size:11px}.tutor-workspace .topbar-logo small{font-size:7px;letter-spacing:.8px}.tutor-profile-link{padding:9px 10px;font-size:11px;gap:6px}.tutor-profile-link svg{width:16px}.tutor-navigation{margin-inline:0;padding:0 14px 12px;gap:4px;scrollbar-width:none}.tutor-navigation>a{min-height:42px;gap:6px;padding:10px 12px;font-size:11px;border-radius:9px}.tutor-navigation>a svg{width:16px;height:16px}.tutor-workspace .companion-content{padding:23px 16px 35px}.tutor-section-title{align-items:flex-start!important;flex-direction:column;gap:17px!important}.tutor-section-title h1{font-size:31px}.tutor-section-title p{font-size:12px}.tutor-roster{padding:20px}.tutor-student-row{flex-wrap:wrap;gap:10px}.tutor-student-info{flex-basis:calc(100% - 55px)}.tutor-student-row>.status-pill{margin-left:44px}.tutor-student-row>.text-link{margin-left:auto}.tutor-workspace .account-card-body{padding:26px 22px}.conversation-title{padding:22px 20px}.conversation-title h1{font-size:29px}.conversation-title p{font-size:12px}.chat-workspace{display:flex;flex-direction:column}.chat-contacts{border-right:0;border-bottom:1px solid #dce7e9}.chat-list-heading{padding:14px 18px 9px;font-size:10px}.chat-contact-list{flex-direction:row;padding:0 12px 12px;max-height:none;overflow-x:auto;scrollbar-width:thin}.chat-contact{flex:0 0 auto;width:auto;max-width:215px;min-height:60px;gap:9px;padding:9px 11px}.chat-contact>svg{display:none}.chat-contact-copy strong{font-size:11px}.chat-contact-copy small{font-size:9px}.chat-room{grid-template-rows:auto minmax(235px,330px) auto}.chat-person{padding:15px 18px}.chat-person h2{font-size:13px}.chat-thread{padding:18px}.chat-bubble{max-width:90%;padding:11px 13px}.chat-bubble p{font-size:13px}.conversation form[data-chat-compose]{padding:16px;gap:9px;grid-template-columns:minmax(0,1fr) 42px}.conversation form[data-chat-compose] textarea{font-size:16px;height:65px;min-height:65px}.conversation form[data-chat-compose]>.chat-send{padding:12px 0;width:42px}.chat-keyboard-hint{display:none}.chat-connection-note{padding:12px 17px;font-size:9px}.chat-empty{padding:35px 22px}.chat-empty h2{font-size:25px}.finance-stats{gap:8px}.finance-stats article{padding:17px 12px;gap:10px}.finance-stats strong{font-size:27px}.finance-stats article>span,.finance-stats small{font-size:9px}.finance-stats article:first-child strong{font-size:24px}.finance-notice{font-size:11px}.finance-register>header,.tutor-overview>header{align-items:flex-start;flex-direction:column}.tutor-overview .finance-stats{grid-template-columns:1fr}.tutor-overview .finance-stats article{display:grid;grid-template-columns:1fr auto}.tutor-overview .finance-stats small{grid-column:1/-1}}
.chat-online-dot{display:inline-block;width:6px;height:6px;vertical-align:middle;margin-right:5px;border-radius:50%;background:#9eaeb5}.chat-online-dot.is-online{background:#33996b}.chat-presence.is-online{color:#238557;font-weight:600}.chat-invite{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:13px 22px;border-top:1px solid #e0eaec;font-size:11px;line-height:1.8;color:#63818d}.chat-invite strong{font:600 12px monospace;letter-spacing:1px;background:#eef5f4;padding:4px 9px;border-radius:5px;user-select:all;color:#286574}.chat-link-tutor{padding:15px 22px;border-top:1px solid #e0eaec;font-size:12px;color:#527885}.chat-link-tutor summary{cursor:pointer}.chat-link-tutor form{max-width:370px;margin-top:18px}.chat-link-tutor input{width:100%;min-height:44px;margin:8px 0 15px;padding:10px;border:1px solid #c5dade;border-radius:9px}.chat-link-tutor button{font-size:12px}.chat-send:disabled{opacity:.6;cursor:wait}
.shared-mode-notice{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:17px max(22px,calc((100vw - 1080px)/2));border-bottom:1px solid #c3dce3;background:#e6f1f6;color:#28546a;font:12px/1.7 Arial,sans-serif}.shared-mode-notice strong{display:block;font-size:13px}.shared-mode-notice span{display:block;max-width:720px;color:#5c7889;margin-top:3px}.shared-mode-notice>a{display:flex;align-items:center;gap:9px;flex-shrink:0;min-height:43px;padding:10px 15px;border:1px solid #8ab5c4;border-radius:9px;background:white;text-decoration:none;color:#225d74;font-weight:600}.shared-mode-notice>a:focus-visible{outline:3px solid #3387a5;outline-offset:3px}@media(max-width:640px){.shared-mode-notice{align-items:flex-start;flex-direction:column;gap:13px;padding:16px 20px}.shared-mode-notice span{font-size:11px}.shared-mode-notice>a{font-size:12px}}

/* Keep the original navigation and allow all destinations to wrap on small screens. */
@media(max-width:640px){.tutor-workspace .tutor-navigation{flex-wrap:wrap}}
@media(min-width:641px){.tutor-workspace .tutor-section-title{flex-wrap:wrap}.tutor-workspace .tutor-section-title>div{flex:1 1 260px;min-width:0}.tutor-workspace .tutor-section-title>.button{width:auto;min-width:0;max-width:100%;flex:0 0 auto}}
