*{box-sizing:border-box} :root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#22334a;background:#f5f7fa;font-size:14px;font-synthesis:none}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dce3ed;border-radius:9px;padding:9px 13px;color:inherit;background:white;transition:background .15s}button:hover{background:#edf3ff}button:disabled{opacity:.42;cursor:default}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #dce3ed;border-radius:9px;color:inherit;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#3c78eb;box-shadow:0 0 0 3px #3c78eb18}textarea{resize:vertical;line-height:1.5}a{color:#2365d8;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:18px}h2{font-size:17px}h3{font-size:15px}p{line-height:1.55}label{display:block;font-size:13px;font-weight:600;color:#53657c;margin:14px 0 8px}label input,label select,label textarea{display:block;margin-top:7px;font-weight:400}.primary{background:#2367e8;border-color:#2367e8;color:#fff;font-weight:600}.primary:hover{background:#1954c5}.secondary{background:#f6f9ff;color:#2357ae;border-color:#dbe5f5}.text-button{background:transparent;border-color:transparent;color:#526a89}.danger{color:#bc3146;border-color:#efccd2;background:#fff8f9}.wide{width:100%;margin-top:8px}.top{min-height:78px;display:flex;align-items:center;gap:28px;padding:14px 24px;background:white;border-bottom:1px solid #e4e9f1}.brand{display:flex;align-items:center;gap:10px;color:#1d2c42;font-size:19px;font-weight:750;white-space:nowrap}.brand:hover{text-decoration:none}.logo{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;color:white;background:linear-gradient(135deg,#2469ed,#5b7ae7);font-size:23px}.brand small,.portal small{display:block;font-size:11px;font-weight:400;color:#8190a5;margin-top:3px}.top nav{display:flex;gap:3px}.nav{border-color:transparent;color:#687b91;background:white}.nav.active{background:#edf3ff;color:#225bc3;font-weight:600}.portal{margin-left:auto;text-align:right;color:#6c7e93;font-size:12px}.workspace{display:grid;grid-template-columns:270px minmax(320px,1fr) 282px;height:calc(100vh - 78px);min-height:530px}.conversations{background:#fcfdff;border-right:1px solid #e0e6ef;display:flex;flex-direction:column;min-height:0}.account-picker{padding:18px;border-bottom:1px solid #e6ebf2}.account-picker label,.eyebrow{font-size:10px;letter-spacing:.1em;font-weight:700;color:#8997a9;margin:0 0 9px}.account-picker select{font-weight:600}.account-summary{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.badge{display:inline-flex;border-radius:20px;background:#eef1f5;padding:4px 8px;font-size:11px;color:#65768b}.badge.ready{background:#e6f6ee;color:#257348}.badge.error,.badge.paused{background:#fff0e6;color:#a56531}.badge.offline{background:#fde8ea;color:#bc3146;font-weight:600}option.offline{color:#bc3146}.account-tabs button.offline strong{color:#bc3146}.review-row .button-row{margin-top:9px}.dialog-toolbar{display:flex;justify-content:space-between;align-items:center;padding:17px 18px 10px}.dialog-toolbar h2 span{color:#99a5b5;font-size:12px;margin-left:6px}.dialog-toolbar button{border:0;font-size:20px;padding:2px 8px;color:#4270aa}#dialog-filter{margin:0 16px 13px;width:calc(100% - 32px);background:#f3f6fa;border-color:transparent;font-size:12px}.dialog-list{overflow:auto;padding:0 8px 16px}.dialog{display:flex;text-align:left;gap:10px;width:100%;border:0;border-radius:10px;padding:13px 10px;margin:3px 0;background:transparent}.dialog.active{background:#eaf1fe}.avatar{flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#e8effb;color:#4c75b8;display:grid;place-items:center;font-weight:700;font-size:15px}.avatar.telegram{background:#e6f5fb;color:#2788b2}.dialog-copy{min-width:0;flex:1}.dialog-copy strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.dialog-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8391a4;font-size:11px;margin-top:6px}.dialog-time{font-size:10px;color:#9ba6b5}.conversation{display:flex;flex-direction:column;background:#f5f7fb;min-height:0;min-width:0}.thread-head{min-height:82px;display:flex;align-items:center;gap:12px;padding:18px 24px;background:#fff;border-bottom:1px solid #e4e9f1}.thread-head h1{overflow-wrap:anywhere}.thread-head p{font-size:12px;color:#8b98ab;margin-top:4px}.thread-head>div{min-width:0}.messages{flex:1;overflow:auto;padding:25px;display:flex;flex-direction:column;gap:12px}.empty{margin:auto;text-align:center;color:#8695a8;padding:30px;line-height:1.65}.empty h2{color:#586b83;margin:20px 0 10px;font-size:20px}.empty-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:#e9effb;color:#5480cf;font-size:36px;margin:auto}.bubble{max-width:80%;padding:12px 15px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid #e7ebf2;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.55;box-shadow:0 1px 3px #20304505}.bubble.outgoing{align-self:flex-end;background:#e8f0ff;border-color:#dae7fc;border-radius:14px 14px 4px 14px}.bubble small{display:block;color:#8a9bb2;font-size:10px;margin-top:7px;white-space:normal}.bubble small.bad{color:#b55f4b}.history-note{text-align:center;color:#9aa6b7;font-size:11px;padding:8px}.compose{background:#fff;padding:16px 23px;border-top:1px solid #e4e9f1}.compose textarea{border:0;box-shadow:none;padding:4px;min-height:54px;max-height:160px;resize:vertical}.compose-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.compose-footer span{font-size:11px;color:#91a0b2}.crm-panel{padding:24px 20px;background:#fff;border-left:1px solid #e4e9f1;overflow:auto}.inspector-title{display:flex;align-items:center;justify-content:space-between}.muted{font-size:12px;color:#8b99ac;margin-top:7px}.crm-card{margin-top:23px;border:1px solid #e5eaf2;border-radius:12px;padding:17px 14px}.link-empty{font-size:13px;color:#8e9bad;margin:12px 0}.link-empty a{display:block;overflow-wrap:anywhere;font-weight:600}.line-card{margin:25px 0 18px}.line-card p{font-size:12px;color:#657992;margin-top:10px}.fine{font-size:11px!important;color:#98a4b5!important;line-height:1.6;margin-top:12px}.back,#show-crm,#close-crm{display:none}#notice{padding:11px 24px;background:#e8f6ed;color:#256b46;border-bottom:1px solid #d4eadc;font-size:13px}#notice.bad{background:#fff0f0;color:#a52f43}body:has(> #notice:not([hidden])) .workspace{height:calc(100vh - 119px)}dialog{border:0;border-radius:18px;padding:24px;width:min(560px,calc(100vw - 30px));max-height:90vh;overflow:auto;color:inherit;box-shadow:0 20px 90px #10264240}dialog::backdrop{background:#13274165;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.modal-head button{border:0;color:#8796aa;font-size:17px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;gap:9px;align-items:flex-start;font-weight:400;line-height:1.5;margin:15px 0}.check input{width:16px;flex:0 0 16px;margin:2px 0 0}.button-row{display:flex;gap:10px;flex-wrap:wrap}.qr-area{text-align:center;padding:18px;background:#f7f9fc;border-radius:12px;margin:18px 0}.qr-area img{width:220px;max-width:100%;display:block;margin:auto;background:#fff;padding:10px}.qr-area p{font-size:12px;color:#6d8097;margin-top:10px}.info{font-size:12px;color:#516d94;background:#edf4ff;padding:13px;border-radius:8px;margin-top:15px}.account-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.account-tabs button.active{background:#eaf1ff;color:#2265d5;border-color:#a3bff0}.create-form{padding:17px;border:1px dashed #d6e0ee;border-radius:12px;margin-bottom:22px}.create-form>button{margin-top:5px}#account-detail h3{font-size:19px}#account-detail-state{color:#8394aa;margin-top:8px}summary{font-size:12px;color:#7a8ea7;cursor:pointer;margin-top:20px}#crm-results{display:grid;gap:5px;margin-top:13px}#crm-results button{text-align:left}#crm-results button.active{background:#eaf1ff;border-color:#6699ec}#crm-form>.primary,#new-message-form>.primary,#password-form>.primary{margin-top:16px}.status-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f5;font-size:13px}.status-row span{color:#7890ac;text-align:right}.expired{max-width:500px;margin:90px auto;padding:30px;background:#fff;border-radius:16px;text-align:center}.expired p{margin-top:15px;color:#71849c}[hidden]{display:none!important}
@media(min-width:1600px){.workspace{grid-template-columns:310px minmax(400px,1fr) 320px}.messages{padding:30px 45px}.crm-panel{padding:27px}}
@media(max-width:1100px){.top{gap:14px;padding:13px 18px}.portal{display:none}.top>button{margin-left:auto}.workspace{grid-template-columns:245px minmax(0,1fr)}.crm-panel{display:none;position:fixed;z-index:4;right:0;top:78px;bottom:0;width:300px;box-shadow:-10px 0 40px #13274120}.crm-panel.open{display:block}#show-crm{display:block;margin-left:auto}#close-crm{display:block}.thread-head{padding:17px}.messages{padding:18px}.top nav{margin-left:auto}.brand{font-size:17px}}
@media(max-width:650px){.top{gap:8px;padding:10px 12px;flex-wrap:wrap}.brand small{display:none}.brand{font-size:16px}.logo{width:32px;height:32px;font-size:19px}.top nav{order:3;width:100%;justify-content:center}.top>.primary{font-size:12px;padding:8px 11px}.nav{padding:6px 13px;font-size:12px}.workspace,body:has(> #notice:not([hidden])) .workspace{height:calc(100dvh - 106px);min-height:430px;display:block}.conversations{height:100%;border:0}.conversation{display:none;height:100%}.has-chat .conversations{display:none}.has-chat .conversation{display:flex}.back{display:block;border:0;padding:4px;background:transparent;font-size:22px;color:#6b86a9}.thread-head{min-height:72px;gap:8px;padding:12px}.thread-head h1{font-size:15px}.thread-head p{font-size:10px}.thread-head .avatar{flex-basis:32px;width:32px;height:32px}.messages{padding:15px}.bubble{max-width:90%;font-size:13px}.compose{padding:13px}.compose-footer span{font-size:10px;max-width:170px}.crm-panel{top:105px;width:min(320px,95vw)}.field-row{grid-template-columns:1fr;gap:0}#notice{font-size:12px;padding:10px 14px}.account-picker{padding:14px}.dialog-list{padding-bottom:30px}.portal{display:none}}

.operations-title{margin:24px 0 12px}.operation{border:1px solid #e4eaf3;padding:13px;border-radius:10px;margin:9px 0;overflow-wrap:anywhere}.operation>.badge{float:right}.operation>p{margin:8px 0;color:#61748d;font-size:12px}.operation>small{font-size:10px;color:#8b9bb0}

.settings-section{padding:18px 0;border-top:1px solid #e4e9f1}.settings-section h3{margin:8px 0}.settings-section button{margin-top:14px}#web-setup-result{padding:14px;background:#edf4ff;border-radius:10px;margin-top:12px}#web-setup-result .fine{display:block}@media(max-width:650px){.top nav{gap:0}.nav{padding:6px 9px;font-size:11px}#web-logout{font-size:11px;padding:6px}.top{min-height:105px}}

dialog #notice{position:sticky;top:0;z-index:2;margin:0 0 16px;padding:12px 14px;border:1px solid #d4eadc;border-radius:9px;overflow-wrap:anywhere;box-shadow:0 3px 10px #10264210}dialog #notice.bad{border-color:#f0c4ca}

.provider-tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid #e4eaf3;padding-bottom:12px}.provider-tabs button{flex:1}.provider-tabs button.active{background:#2465ed;color:white;border-color:#2465ed}.rename-account{margin:16px 0;display:flex;align-items:end;gap:10px}.rename-account label{flex:1;min-width:0}.rename-account button{margin-bottom:14px}.new-phone-form{margin:0 14px 16px;padding:12px;border-radius:10px;background:#edf4ff}.new-phone-form button{font-size:12px;margin-top:6px}.new-phone-form label{margin-bottom:8px}#account-method{line-height:1.5}@media(max-width:480px){.rename-account{display:block}.rename-account button{margin-bottom:0}}

.deal-banner{padding:12px 20px;border-bottom:1px solid #dbe5f4;background:#f3f7ff;font-size:12px}.deal-banner strong{display:block;font-size:15px;overflow-wrap:anywhere}.deal-banner a{display:inline-block;margin:7px 15px 0 0}.deal-banner p{margin:7px 0 0;color:#6f8098}.deal-view .workspace{height:calc(100dvh - 185px)}.deal-view .thread-head h1{overflow-wrap:anywhere}.deal-view #deal-recipient{font-size:11px;max-width:100%}@media(max-width:650px){.deal-view .workspace{height:calc(100dvh - 230px)}.deal-view .deal-banner{padding:10px 14px}}

.top nav{flex-wrap:wrap;min-width:0;max-width:100%}.organization-candidates{min-width:0}

.page-section{width:100%;max-width:1680px;min-height:calc(100dvh - 78px);padding:28px 32px 60px;margin:0 auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.page-heading h1{font-size:28px;line-height:1.25}.page-heading .eyebrow{display:block;margin-bottom:8px}.page-heading .muted{font-size:13px;max-width:700px}
.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;border-bottom:1px solid #dfe6ef;padding-bottom:14px}.settings-tabs button{background:transparent;border-color:transparent;padding:11px 18px;font-weight:600}.settings-tabs button.active{background:#e8efff;border-color:#d4e0fa;color:#215ec5}
.settings-panel{min-width:0}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}.page-card,.settings-grid>.settings-section{padding:24px;border:1px solid #e1e7f0;border-radius:15px;background:#fff;min-width:0}.page-card .settings-section:first-child{border-top:0;padding-top:0}.page-card h2{font-size:20px;margin-bottom:12px}
.staff-layout{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(320px,1.15fr);gap:24px;align-items:start}.full-width{grid-column:1/-1}.accounts-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}.accounts-sidebar{padding:20px;border:1px solid #e1e7f0;border-radius:15px;background:white;min-width:0}.accounts-sidebar .account-tabs{display:grid;gap:8px}.accounts-sidebar .account-tabs button{text-align:left;overflow-wrap:anywhere}.accounts-sidebar .create-form{margin:16px 0 0;padding:14px}.accounts-sidebar summary{margin:0;padding:10px;color:#2367e8;font-weight:600}.accounts-sidebar select{font-size:12px}
#account-detail{min-width:0;background:white;border:1px solid #e1e7f0;border-radius:15px;padding:26px}#account-detail>form,#account-detail>.button-row,#account-detail>.check,#account-detail>.info{max-width:720px}#account-detail .qr-area{max-width:480px}.journal-picker{max-width:460px;margin-bottom:24px}.journal-picker select{font-weight:600}#status-content{max-width:1100px}#status-content .operation{background:white;padding:18px}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.integration-card{padding:20px;border:1px solid #e2e8f1;border-radius:12px;min-width:0}.integration-card p{margin:12px 0;font-size:13px;color:#697e98}.integration-card h3{overflow-wrap:anywhere}
.page-section #notice{position:sticky;top:8px;z-index:5;border:1px solid #d4eadc;border-radius:10px;padding:13px 16px;margin:0 0 20px;box-shadow:0 3px 15px #1f385012}.page-section #notice.bad{border-color:#edc6ce}.staff-layout>#notice{grid-column:1/-1}
@media(max-width:950px){.page-section{padding:22px 20px 50px}.accounts-layout{grid-template-columns:245px minmax(0,1fr);gap:16px}.staff-layout{grid-template-columns:1fr}.settings-grid{gap:16px}.page-card,.settings-grid>.settings-section{padding:20px}}
@media(max-width:650px){.page-section{padding:20px 12px 40px;min-height:calc(100dvh - 105px)}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.page-heading>button{font-size:11px;max-width:115px}.settings-tabs{gap:3px;margin-bottom:18px}.settings-tabs button{font-size:12px;padding:9px 10px;flex:1 1 40%}.settings-grid,.accounts-layout,.integration-grid{grid-template-columns:1fr}.accounts-sidebar .account-tabs{display:flex;flex-wrap:wrap}.accounts-sidebar .account-tabs button{font-size:12px}#account-detail{padding:20px}.page-card,.settings-grid>.settings-section{padding:18px}.status-row{gap:10px;font-size:12px}}

#role-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}#role-settings form{display:flex;flex-direction:column;gap:10px}.staff-account button{margin:4px}.staff-card{margin-bottom:12px}#staff-detail input:not([type=checkbox]),#staff-detail select{width:100%}#staff-detail form{display:grid;gap:12px}#staff-detail .check{display:flex;gap:8px}#staff-detail{margin-bottom:20px}.invite-output{overflow-wrap:anywhere}.staff-accounts{margin:12px 0}

#staff-detail h2,#staff-detail h3,#staff-detail p,#staff-detail label{overflow-wrap:anywhere}#staff-detail .page-card{min-width:0}

#account-tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:5px}#account-tabs button strong,#account-tabs button small,.account-employee{overflow-wrap:anywhere}#account-tabs button small{font-size:12px;opacity:.8}

.rate-warning{color:#885b00!important;background:#fff7d6;padding:8px 10px;border-radius:8px}

.message-author{display:block;font-size:12px;margin-bottom:6px;color:#52677b;overflow-wrap:anywhere}.delivery-receipt{display:inline-block;margin-left:8px;font-weight:700}.delivery-receipt.read{color:#1674c9}

#account-name-title{overflow-wrap:anywhere}

#organization-members{display:block;width:100%;min-width:0}.staff-table-wrap{overflow-x:auto;width:100%}.staff-table{width:100%;border-collapse:collapse;min-width:1080px;table-layout:fixed}.staff-table th,.staff-table td{text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid var(--line,#e4e8ef);overflow-wrap:anywhere}.staff-table th:first-child{width:20%}.staff-table th:nth-child(2){width:13%}.staff-table th:nth-child(3){width:16%}.staff-table small{display:block;margin-top:5px;color:var(--muted,#667085);font-size:12px}.staff-id{font-size:10px!important}.staff-account-cell+.staff-account-cell{margin-top:12px}.staff-table button{white-space:normal}#staff-create-modal{width:min(540px,calc(100vw - 32px));max-height:90vh;overflow-y:auto}#staff-create-modal #staff-create{display:grid;gap:12px}#staff-create-modal input,#staff-create-modal select{width:100%}#staff-create-notice{color:#b42318}#role-settings input:not([type=checkbox]),#role-settings select{width:100%;min-width:0}.role-owner-roles{border:1px solid #dbe2ed;border-radius:8px}.role-create>summary{cursor:pointer;font-weight:700}.role-create form{padding:12px 0;border:0;box-shadow:none}

.staff-layout{grid-template-columns:minmax(0,1fr)}.staff-layout>.page-card{min-width:0}#staff-manual{padding:0;border:0;background:transparent;box-shadow:none}

.group-author{border-top:1px solid #e3e8ef;padding:10px 0;overflow-wrap:anywhere}.group-author summary{cursor:pointer;font-weight:600}.group-author p{margin:6px 0}.group-author a{font-size:12px}

.dialog-id{font-size:10px;opacity:.7;overflow-wrap:anywhere}.crm-relation{padding:8px 0;border-bottom:1px solid #e3e8ef;overflow-wrap:anywhere}.crm-relation small{display:block;font-size:11px;margin:5px 0}.relation-actions{display:flex;gap:8px;flex-wrap:wrap}#thread-identifiers{overflow-wrap:anywhere;font-size:11px;margin:4px 0}

.thread-head>div:not(.thread-actions){flex:1 1 0}.composer-resize{height:15px;margin:-16px -9px 5px;display:grid;place-items:center;cursor:ns-resize;touch-action:none;border-radius:8px;outline:none}.composer-resize span{display:block;width:52px;height:4px;border-radius:4px;background:#d4dce8;transition:background .15s,width .15s}.composer-resize:hover span,.composer-resize:focus-visible span,.composer-resize.dragging span{width:72px;background:#6d8fc3}.composer-resize:focus-visible{box-shadow:0 0 0 3px #3c78eb18}.composer-resizing{cursor:ns-resize;user-select:none}.compose textarea{max-height:none;resize:none;overflow:auto}

/* A single inspector owns CRM and Open Line associations. */
.crm-relation{position:relative;padding-right:28px}.crm-relation [data-unlink]{position:absolute;right:0;top:5px;min-width:28px;min-height:28px}.crm-relation small{color:#687990}#crm-origin{margin:8px 0 14px}#crm-origin a{overflow-wrap:anywhere}.deal-banner strong{font-size:12px}.deal-banner [hidden]{display:none!important}

#dialog-summary{padding:0 12px;margin:5px 0;font-size:11px}.dialog-group{margin:6px 0}.dialog-group>summary{cursor:pointer;padding:10px 12px;font-size:12px;font-weight:600;background:#edf2f9;overflow-wrap:anywhere}.dialog-group>.dialog{width:100%}

.legacy-chats{padding:8px 12px;border-top:1px solid #dbe5f4;border-bottom:1px solid #dbe5f4}.legacy-chats[hidden]{display:none}.legacy-chats>summary{font-weight:600;cursor:pointer;font-size:12px}.legacy-chat{display:block;padding:8px 4px;border-bottom:1px solid #e8edf4;color:#245ae8;text-decoration:none;overflow-wrap:anywhere}.legacy-chat strong{font-size:12px}.legacy-chat small{display:block;color:#687990;font-size:11px;margin-top:4px}

.legacy-chats{max-height:28vh;overflow:auto;flex-shrink:1;min-height:34px}.sender-choice{display:flex;flex-direction:column;gap:3px;font-size:11px;min-width:0;max-width:280px}.sender-choice select{max-width:100%;min-width:0;font-size:12px}.compose-footer{flex-wrap:wrap}

/* Compact account/recipient controls keep the sidebar dedicated to conversations. */
.top-controls{display:flex;align-items:center;gap:12px;flex:1;min-width:0;flex-wrap:wrap}.top-controls .account-picker{padding:0;border:0;flex:1 1 200px;min-width:180px;max-width:300px}.top-controls .account-picker>label{font-size:10px;margin-bottom:3px}.top-controls .account-summary{margin-top:3px}.top-controls select{width:100%;min-width:0;font-size:12px}.top-controls .new-phone-form{margin:0;padding:0;background:none;display:flex;align-items:end;gap:8px;flex:1 1 270px;max-width:420px}.top-controls .new-phone-form label{flex:1;min-width:0;font-size:11px}.top-controls .new-phone-form button{white-space:nowrap;font-size:11px;padding:9px}.top{flex-wrap:wrap}.workspace{min-height:0}body:has(#workspace[hidden]) .top-controls{display:none}@media(max-width:900px){.top-controls{order:4;flex-basis:100%}.top-controls .account-picker{max-width:none}.top-controls .new-phone-form{max-width:none}}@media(max-width:650px){.top-controls{gap:6px}.top-controls .account-summary{display:none}.top-controls .account-picker{flex-basis:130px;min-width:120px}.top-controls .new-phone-form{flex-basis:200px}.top-controls .new-phone-form button{padding:8px}.top-controls label{font-size:10px}.top nav{width:auto;order:0}.workspace{min-height:0}}

/* Shared baselines for header controls and a single compact composer footer. */
.top{padding-top:12px;padding-bottom:12px}.top-controls{align-items:start}.top-controls .account-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:14px 34px;gap:4px 6px}.top-controls .account-picker>label{grid-area:1/1;margin:0;font-size:9px;line-height:14px;white-space:nowrap}.top-controls .account-picker>select{grid-area:2/1/3/3;height:34px;margin:0}.top-controls .account-summary{grid-area:1/2;margin:0;display:flex;align-items:center;gap:4px}.top-controls .account-summary .badge{font-size:9px;padding:1px 5px;line-height:12px}.top-controls .account-summary button{font-size:9px;padding:0}.top-controls .new-phone-form{align-items:end;gap:8px}.top-controls .new-phone-form label{display:grid;grid-template-rows:14px 34px;gap:4px;margin:0;line-height:14px}.top-controls .new-phone-form select{height:34px;margin:0}.top-controls select,.sender-choice select{padding-top:0;padding-bottom:0;line-height:32px}/* Chrome clips select text to the content box: 34px minus the inherited 10px paddings left 12px for a 12px font. */.top-controls .new-phone-form button{height:34px;margin:0;align-self:end}.top>.brand,.top>nav{align-self:flex-end}.top nav .nav{height:34px}.compose{padding-top:10px;padding-bottom:10px}.compose-footer{display:grid;grid-template-columns:minmax(160px,250px) minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:6px}.sender-choice{max-width:none;gap:2px;font-size:10px;margin:0}.sender-choice select{height:34px;margin:0}.compose-status{min-width:0;align-self:center;text-align:right;font-size:10px;line-height:1.35}.compose-status #draft-state{margin:0;font-size:10px;color:#778ba6}.compose-status .draft-warning{color:#a52f43!important}.compose-footer #send-hint{max-width:none}.compose-footer #send{height:34px;padding-top:7px;padding-bottom:7px}.compose-tools{gap:8px}.compose-tools .fine{font-size:10px}@media(max-width:650px){.top-controls .account-picker>label{font-size:8px}.top-controls .account-summary{display:none}.top-controls .account-picker>label{grid-column:1/3}.compose-footer{grid-template-columns:minmax(0,1fr) auto}.compose-footer .sender-choice{grid-row:1;grid-column:1}.compose-footer #send{grid-row:1;grid-column:2}.compose-status{grid-column:1/3;text-align:left}.compose-status #draft-state{display:inline}.top>.brand,.top>nav{align-self:center}}
