@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#233044;background:#f3f6fc;font-synthesis:none;font-size:16px;--blue:#2653e8;--muted:#748094;--line:#e9edf3}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8da5ff;outline-offset:3px}button{color:inherit}a{color:inherit;text-decoration:none}.app{min-height:100vh;display:grid;grid-template-columns:220px 1fr;grid-template-rows:88px 1fr}.topbar{grid-column:1/-1;display:flex;align-items:center;padding:0 30px;gap:24px}.brand{width:166px;flex-shrink:0;font-size:27px;font-weight:700;letter-spacing:-1px;display:flex;align-items:center;gap:9px}.brandmark{background:var(--blue);color:#fff;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;font-weight:500;font-size:29px;line-height:1}.brand-dot{color:var(--blue);margin-left:-10px}.search{max-width:660px;flex:1;display:flex;align-items:center;gap:12px;border:1px solid #e3e9f3;border-radius:12px;background:#eaf0f9;padding:0 17px;height:46px}.search>span{font-size:30px;line-height:1;color:#586985}.search input{border:0;background:none;outline:none;min-width:0;width:100%;font-size:14px;color:#34435d}.search kbd{border:1px solid #d4dce8;border-radius:4px;padding:0 5px;color:#8090a5}.demo-badge{margin-left:auto;font-size:11px;letter-spacing:1.2px;white-space:nowrap;color:#78859a}.profile{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#dfe6ff;color:#3653a5;font-size:13px;font-weight:600}.sidebar{padding:13px 19px 25px;display:flex;flex-direction:column}.compose{border:0;background:var(--blue);color:white;box-shadow:0 5px 13px #2653e821;border-radius:12px;text-align:left;padding:15px 22px;display:flex;gap:15px;align-items:center;font-size:15px;font-weight:600}.compose>span{font-size:25px;line-height:1}nav{margin-top:27px;display:grid;gap:7px}.nav-item{display:flex;gap:13px;align-items:center;border:0;background:none;padding:12px 15px;border-radius:8px;font-size:14px;color:#59677d}.nav-item.active{color:#254bc3;background:#e2eaff;font-weight:650}.nav-item:hover{background:#e7edf7}.count{margin-left:auto;font-size:12px}.icon{width:18px;height:18px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar-note{margin:65px 13px 35px}.little-flower{font-size:34px;color:#8199e2}.sidebar-note h3{font-size:14px;font-weight:600;margin:14px 0 9px}.sidebar-note p,.demo-info p{font-size:12px;line-height:1.8;color:#8490a2;margin:0}.demo-info{margin: auto 12px 0;font-size:12px;color:#626f84}.demo-info p{margin:8px 0 0 13px;line-height:1.6}.demo-dot{display:inline-block;width:6px;height:6px;background:#8c9bb4;border-radius:100%;margin-right:6px}.workspace{margin:6px 20px 20px 0;background:white;border:1px solid #e5eaf3;border-radius:16px;display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 114px);overflow:hidden;box-shadow:0 4px 20px #26376003}.mail-list{border-right:1px solid var(--line);display:flex;flex-direction:column}.list-heading{padding:28px 24px 23px;display:flex;justify-content:space-between;align-items:center}.list-heading h1{font-size:24px;letter-spacing:-.6px;margin:0 0 7px;font-weight:650}.list-heading p{font-size:12px;color:var(--muted);margin:0}.small-sun{font-size:32px;color:#a8b6ce}.list-tabs{padding:0 19px;display:flex;gap:19px;border-bottom:1px solid var(--line)}.list-tabs button{padding:0 0 14px;background:none;border:0;font-size:12px;color:#8190a6;border-bottom:2px solid transparent}.list-tabs button.selected{border-color:var(--blue);color:var(--blue);font-weight:600}.list-tabs span{background:#edf1fa;font-size:10px;padding:2px 5px;border-radius:4px;margin-left:2px}.mail-row{position:relative;border-bottom:1px solid var(--line);padding:22px 20px 20px 24px;cursor:pointer;outline-offset:-4px!important}.mail-row.selected{background:#f0f4ff;box-shadow:inset 3px 0 var(--blue)}.mail-row:hover{background:#f6f8fd}.row-top{display:flex;align-items:center;gap:7px;font-size:14px;margin-bottom:9px}.row-top strong{font-weight:600}.unread-dot{width:5px;height:5px;border-radius:50%;background:var(--blue)}.row-time{font-size:11px;color:#8b96a8;margin-left:auto}.mail-row h3{font-size:13px;font-weight:550;margin:0 0 7px;display:flex;justify-content:space-between;align-items:center;gap:10px}.mail-row p{font-size:12px;color:#8793a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;line-height:1.6}.mail-row .star{background:none;border:0;padding:0;line-height:1;color:#aeb8c9}.mail-row .star.is-starred{color:#e5ad43}.tag{display:inline-block;margin-top:12px;font-size:10px;color:#52766d;background:#e6f2ed;border-radius:4px;padding:3px 7px}.list-footer{margin-top:auto;padding:25px 24px;color:#a1abba;font-size:11px}.reader{min-width:0;display:flex;flex-direction:column}.reader-toolbar{display:flex;align-items:center;gap:8px;height:63px;border-bottom:1px solid var(--line);padding:0 29px}.icon-button{border:0;background:transparent;color:#8491a6;padding:8px;border-radius:6px}.icon-button:hover{background:#eef2fa;color:var(--blue)}.toolbar-label{font-size:12px;color:#9ba6b7;margin-left:auto}.back{display:none}.reading{padding:32px 38px;max-width:970px;width:100%;margin:auto;flex:1}.subject-line{display:flex;align-items:start;gap:15px}.subject-line h2{font-size:25px;line-height:1.4;letter-spacing:-.7px;font-weight:550;margin:0}.folder-chip{font-size:10px;letter-spacing:.4px;background:#eef1f6;color:#8b95a6;border-radius:4px;padding:4px 7px;margin-top:9px}.sender{display:flex;gap:12px;align-items:center;margin-top:25px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e9e6fa;color:#8774b6;font-size:12px;font-weight:600;flex-shrink:0}.sender-name{font-size:13px;font-weight:600}.sender-email{font-size:11px;color:#9aa4b4;font-weight:400;margin-left:6px}.recipient{font-size:11px;color:#98a3b4;margin-top:4px}.sender-time{margin-left:auto;font-size:11px;color:#99a4b5;text-align:right;line-height:1.7}.kind-bar{display:flex;align-items:center;background:#eff7f4;border:1px solid #e1eee8;border-radius:9px;padding:12px 14px;margin-top:28px;gap:10px}.kind-symbol{color:#43816b;font-size:23px}.kind-bar strong{font-size:12px;font-weight:600;color:#426e60;display:block}.kind-bar small{display:block;margin-top:3px;font-size:10px;color:#7c9b8f}.switch{margin-left:auto;display:flex;padding:3px;border:1px solid #dbe8e1;background:#e4ede8;border-radius:6px}.switch button{border:0;border-radius:4px;background:none;font-size:11px;padding:6px 10px;color:#7e978c}.switch button.active{background:white;color:#42715f;box-shadow:0 1px 4px #26473212}.email-body{font-size:15px;line-height:1.85;white-space:pre-wrap;margin:26px 1px 25px;color:#526076}.facts{font-size:11px;color:#8b98aa;display:flex;align-items:center;gap:7px;margin:8px 0 35px}.facts .icon{width:14px;height:14px;color:#8fa79e}.reply-card{border:1px solid #e2e7f0;border-radius:11px;overflow:hidden;box-shadow:0 3px 12px #27385603}.reply-header{display:flex;align-items:center;gap:9px;padding:14px 17px;border-bottom:1px solid #edf0f6;color:#7b8aa1;font-size:12px}.reply-header strong{font-weight:500;color:#52637d}.reply-header span:last-child{font-size:10px;margin-left:auto;color:#a2adbd}.draft-area{padding:0 17px}.draft-area textarea{display:block;border:0;outline:none;width:100%;min-height:106px;resize:vertical;font-size:14px;line-height:1.8;color:#59677e;padding:17px 0;background:white}.draft-area textarea:focus-visible{outline:0;box-shadow:0 2px #7393ed}.reply-actions{display:flex;align-items:center;gap:10px;padding:11px 16px 15px;flex-wrap:wrap}.primary{border:0;border-radius:7px;background:var(--blue);color:white;padding:10px 16px;font-size:12px;font-weight:550;display:inline-flex;gap:7px;align-items:center}.secondary{border:1px solid #e3e8f1;border-radius:7px;background:#fff;padding:9px 13px;color:#8390a5;font-size:12px}.reply-actions .hint{font-size:10px;color:#9aa6b8;margin-left:auto}.rewrite-result{margin:0 16px 15px;background:#f1f7f4;border:1px solid #dcece3;border-radius:8px;padding:15px}.rewrite-result h4{font-size:12px;color:#457963;margin:0 0 8px}.rewrite-result p{font-size:14px;color:#526d61;white-space:pre-wrap;line-height:1.8;margin:0 0 14px}.reader-footnote{font-size:10px;color:#a6aebe;text-align:center;margin:18px 0 0;line-height:1.6}.empty{padding:50px 25px;text-align:center;color:#8896aa;font-size:14px}.empty h2{font-size:22px;color:#53637c}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;max-width:90vw;border-radius:9px;background:#263958;color:white;font-size:13px;box-shadow:0 7px 30px #1b2a3c24;display:none;z-index:5}.toast.visible{display:block}.compose-field{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px;color:#8a98ac}.compose-field input{border:0;outline:0;flex:1;min-width:0}.compose-intro{color:#8795a9;font-size:13px;line-height:1.7}.compose-editor{width:100%;min-height:250px;border:1px solid var(--line);border-radius:10px;padding:20px;font-size:15px;line-height:1.8;margin-top:20px}.notice{font-size:12px;line-height:1.7;color:#7789a5;background:#f0f4fb;border-radius:8px;padding:13px 15px}.inline-error{margin:0 17px 16px;color:#94622b;font-size:12px;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1550px){.workspace{grid-template-columns:390px 1fr}.reading{padding:40px 55px}.mail-row{padding:24px 26px}.email-body{font-size:16px}.list-tabs{gap:25px}}
@media(max-width:1190px){.app{grid-template-columns:175px 1fr}.topbar{padding:0 20px;gap:16px}.brand{width:139px;font-size:24px}.sidebar{padding:13px 12px 22px}.workspace{grid-template-columns:290px 1fr;margin-right:14px}.reading{padding:27px 25px}.list-heading{padding:25px 20px}.list-tabs{gap:12px;padding:0 17px}.list-tabs button{font-size:11px}.sender-email{display:none}.demo-badge{font-size:10px}.reply-actions .hint{display:none}.subject-line h2{font-size:22px}.sidebar-note{margin-top:55px}}
@media(max-width:960px){.workspace{grid-template-columns:260px 1fr}.app{grid-template-columns:80px 1fr}.sidebar{padding:14px 10px}.compose{font-size:0;padding:13px;justify-content:center}.compose>span{font-size:25px}.nav-item{font-size:0;padding:14px;justify-content:center}.nav-item .count,.sidebar-note,.demo-info{display:none}.brand{width:auto;margin-right:8px}.list-tabs{gap:10px}.list-tabs button{font-size:10px}.reading{padding:25px 20px}.kind-bar{padding:10px;flex-wrap:wrap}.kind-bar small{display:none}.kind-bar .switch{margin-left:auto}.subject-line h2{font-size:21px}.folder-chip{display:none}.sender-time{font-size:10px}.demo-badge{display:none}.email-body{font-size:14px}.reply-actions{padding:12px}.topbar{gap:15px}.search{max-width:none}.mail-row{padding:21px 17px}}
@media(max-width:740px){.app{grid-template-columns:1fr;grid-template-rows:72px 1fr}.topbar{padding:0 16px;gap:10px}.brand{font-size:23px}.brandmark{width:28px;height:28px;font-size:25px;border-radius:8px}.profile{display:none}.search{height:40px;padding:0 10px}.search input{font-size:12px}.search kbd{display:none}.sidebar{grid-column:1;grid-row:2;flex-direction:row;gap:10px;padding:0 13px 12px;align-items:center}.compose{font-size:12px;gap:3px;padding:11px 12px}.compose>span{font-size:18px}nav{display:flex;margin:0;flex:1;justify-content:space-around;gap:2px}.nav-item{font-size:11px;display:grid;gap:4px;justify-items:center;padding:8px 11px}.nav-item .icon{width:16px;height:16px}.workspace{grid-column:1;grid-row:3;margin:0 10px 12px;display:block;min-height:calc(100vh - 149px)}.mail-list{border:0}.reader{display:none}.is-reading .mail-list{display:none}.is-reading .reader{display:flex}.back{display:inline-flex}.list-heading{padding:22px}.list-tabs{gap:25px;padding:0 22px}.list-tabs button{font-size:12px}.mail-row{padding:20px 22px}.mail-row h3{font-size:14px}.mail-row p{font-size:13px}.row-top{font-size:15px}.list-footer{font-size:12px}.reading{padding:25px 22px}.email-body{font-size:16px}.subject-line h2{font-size:25px}.reader-toolbar{padding:0 14px;height:53px}.kind-bar strong{font-size:12px}.sender-email{display:none}.reader-footnote{font-size:11px}.sidebar-note{display:none}.reply-actions .primary,.reply-actions .secondary{font-size:13px}.draft-area textarea{font-size:15px}.search>span{font-size:23px}.kind-bar{gap:7px}.kind-symbol{font-size:19px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}.rewrite-result{animation:appear .2s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
/* Keep routine controls readable; reserve smaller type for metadata. */
.list-tabs button,.nav-item,.reply-header,.primary,.secondary,.switch button,.kind-bar strong{font-size:.875rem}.mail-row h3,.row-top{font-size:.875rem}.mail-row p,.list-heading p,.tag,.row-time,.list-footer,.sender-email,.recipient,.sender-time,.kind-bar small,.facts,.reply-actions .hint,.reader-footnote,.toolbar-label,.folder-chip,.reply-header span:last-child{font-size:.75rem}.sender-name{font-size:.875rem}.kind-bar{flex-wrap:wrap}.list-tabs{gap:14px;align-items:end}.list-tabs button{text-align:left}.list-tabs button span{font-size:.75rem}.email-body{font-size:1rem}.demo-badge{font-size:.75rem}.list-heading p,.mail-row p,.row-time,.list-footer,.sender-email,.recipient,.sender-time,.facts,.reader-footnote,.toolbar-label,.reply-actions .hint{color:#6f7e93}.kind-bar small{color:#5e8172}.secondary{color:#63738c}.reply-actions{gap:8px}.sidebar-note p,.demo-info p{color:#718098}.reply-actions .hint{display:none}
@media(max-width:960px) and (min-width:741px){.nav-item{font-size:0}.list-tabs button{font-size:.75rem}.kind-bar .switch{margin-left:0}.kind-bar strong{font-size:.8125rem}}
@media(max-width:740px){.nav-item{font-size:.75rem}.kind-bar .switch{margin-left:auto}.list-tabs button{font-size:.875rem}.demo-badge{display:none}}
button[disabled]{opacity:.55;cursor:wait}button[hidden],[hidden]{display:none!important}.message-open{display:block;border:0;background:none;padding:0;text-align:left;width:100%;color:inherit}.mail-row .star{position:absolute;right:16px;top:58px}.mail-row h3{padding-right:26px}.mail-row.is-pending{background:#fafbfd}.reading .connection-title{font-size:27px;font-weight:550;letter-spacing:-.5px;line-height:1.35}.connection-copy{color:#66768e;line-height:1.8;font-size:15px;max-width:570px}.setup-list{list-style:none;padding:0;margin:25px 0}.setup-list li{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.setup-list span{margin-left:auto;color:#7b8a9f;font-size:12px}.ready{color:#347157!important}.pending-panel{border:1px solid #dce5f6;background:#f4f7fd;border-radius:12px;padding:25px;margin:24px 0}.pending-panel h3{font-size:18px;margin:0 0 10px}.pending-panel p{font-size:14px;color:#697b97;line-height:1.8}.pending-panel .reply-actions{padding:12px 0 0}.notice{font-size:13px}.reply-actions .primary,.reply-actions .secondary{font-size:14px}.sender-email{overflow-wrap:anywhere}.kind-bar small{font-size:12px}.kind-bar strong{font-size:14px}.email-body{white-space:pre-wrap;overflow-wrap:anywhere}.state-label{font-size:12px;color:#7b8ca5;display:block;margin-top:12px}.draft-area textarea{font-size:16px}.compose-editor{font-size:16px;min-height:210px}.review-result{padding:20px;margin:20px 0;background:#f0f7f3;border:1px solid #dbece1;border-radius:10px}.review-result h3{font-size:16px;margin:0 0 14px}.review-result pre{white-space:pre-wrap;font:inherit;font-size:15px;line-height:1.8}.draft-status{font-size:12px;color:#788ba3;line-height:1.7}.danger-note{color:#856332;background:#fbf6ed}.connection-actions{display:flex;gap:10px;flex-wrap:wrap}.form-label{display:block;font-size:14px;color:#73819a;margin-top:20px}.form-label input{width:100%;border:1px solid #dfe5ef;border-radius:7px;padding:12px;margin-top:8px;font-size:15px}dialog{width:min(620px,92vw);border:1px solid #dce3f0;border-radius:16px;padding:28px;color:#233044;box-shadow:0 20px 80px #16223c33}dialog::backdrop{background:#19283d77}dialog h2{font-size:22px}dialog .confirm-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;font-size:16px;line-height:1.7;border-block:1px solid #e5eaf3;padding:18px 0}dialog p{overflow-wrap:anywhere;font-size:14px;line-height:1.7}.status-error{color:#986130}.switch{flex-shrink:0}.reader-toolbar .toolbar-label{font-size:12px}.reader-footnote{font-size:12px;line-height:1.8}.list-footer{line-height:1.8}.account-address{overflow-wrap:anywhere}.setup-details{font-size:14px;line-height:1.8;color:#66768e}.setup-details code{display:block;overflow-wrap:anywhere;background:#f1f4fa;padding:10px;border-radius:6px}.setup-details a{text-decoration:underline;color:#2653e8}.reply-card{margin-top:24px}.mail-row h3,.row-top{font-size:14px}.mail-row p{font-size:13px}.demo-info{font-size:13px;overflow-wrap:anywhere}.mail-list #load-more{margin:16px}.small-message{font-size:13px;line-height:1.8;color:#7687a0}.field-note{font-size:12px;color:#8290a5}.connection-callout{margin-bottom:25px}.mail-list{min-width:0}.reply-header{flex-wrap:wrap}
@media(max-width:740px){.search{display:none}.topbar .brand{margin-right:auto}.nav-item{font-size:11px}.reading{padding:25px 20px}.setup-list li{flex-wrap:wrap}.connection-title{font-size:24px}.pending-panel{padding:20px}.switch{margin-left:0!important}}
/* Compact, Gmail-like message list: two lines per row (sender + time, subject — preview). */
.list-heading{padding:14px 16px 10px}.list-heading h1{font-size:20px;margin:0 0 2px}.list-tabs{padding:0 16px;gap:16px}.list-tabs button{padding:0 0 8px}.list-footer{padding:14px 16px}
.mail-row{padding:9px 16px 9px 18px}.row-top{display:flex;align-items:baseline;gap:6px;font-size:14px;line-height:1.4;margin-bottom:1px}.row-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-kind{margin-left:auto;color:#43816b;font-size:12px}.row-top .row-time{font-size:12px;flex-shrink:0}.row-kind+.row-time{margin-left:0}
.row-line{display:block;font-size:13px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6f7e93}.row-subject{color:#2f3b50;font-weight:550}.row-status.is-error{color:#986130}
@media(max-width:740px){.mail-row{padding:12px 16px}}
