body { margin:0; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.58; }
.icon { width:19px; height:19px; display:block; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
[data-icon]:not(button) { display:inline-flex; align-items:center; }
button, a, input, textarea, select { -webkit-tap-highlight-color:transparent; }
button, a { -webkit-user-select:none; user-select:none; }
.icon-button, .text-button, .nav-link, .summary-row, .folder-heading button, .action-link {
  background:transparent; border:0; color:inherit; font:inherit;
}
.icon-button,.text-button,.action-link,.secondary,.compose-button,.phone-compose,.compose-actions .primary {
  display:inline-flex; justify-content:center; align-items:center; gap:8px;
}
.icon-button { width:38px; height:38px; border-radius:7px; padding:0; color:#35606a; flex:none; }
.icon-button:hover,.text-button:hover,.action-link:hover { background:#e8f4f2; color:#005d61; }
.text-button,.action-link { font-size:14px; color:#05646a; font-weight:500; padding:7px 10px; border-radius:6px; min-height:36px; }
.secondary { text-decoration:none; border:1px solid #b9cfd2; background:#fff; color:#164f58; padding:9px 15px; border-radius:7px; font-size:14px; font-weight:500; min-height:42px; }
.secondary:hover { background:#f2f8f7; }
.skip { position:absolute; z-index:8; top:8px; left:8px; transform:translateY(-160%); background:white; padding:9px 14px; }
.skip:focus { transform:none; }
.shell { min-height:100vh; display:grid; grid-template-columns:clamp(213px,18.2vw,269px) minmax(0,1fr); background:white; }
.sidebar { position:sticky; top:0; max-height:100vh; height:100svh; overflow-y:auto; display:flex; flex-direction:column; padding:24px clamp(12px,1.4vw,23px) 16px; background:linear-gradient(140deg,#f2f9f8,#f7fbfa 68%,#f1f8f7); border-right:1px solid #d3e2e1; }
.side-mast { text-align:center; padding:1px 0 18px; }
.side-mast img { width:clamp(113px,9.4vw,152px); height:auto; display:block; margin:0 auto; }
.compose-button { width:100%; min-height:44px; margin:0 0 18px; justify-content:flex-start; padding-left:16px; font-size:15px; }
.sidebar nav { display:grid; gap:1px; }
.nav-link { position:relative; display:flex; align-items:center; gap:13px; width:100%; text-align:left; min-height:37px; font-size:14px; color:#2c4e5b; border-radius:6px; padding:6px 12px; }
.nav-link .icon { width:18px; height:18px; color:#39717a; }
.nav-link:hover { background:#e8f3f1; }
.nav-link[aria-current=page] { background:#e3f2ef; color:#063f45; font-weight:600; }
.nav-link[aria-current=page]::before { content:""; position:absolute; left:0; top:7px; bottom:7px; width:3px; background:#06a99f; border-radius:2px; }
.nav-count { margin-left:auto; font-size:12px; font-variant-numeric:tabular-nums; color:#286267; }
.nav-link>span:not(.nav-count) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.folder-heading { border-top:1px solid #d7e4e3; display:flex; justify-content:space-between; align-items:center; margin:17px 0 4px; padding:9px 3px 0 12px; color:#536e75; font-size:13px; }
.folder-heading .icon { width:16px; height:16px; }
.folder-heading .icon-button { width:30px; height:30px; }
.side-foot { border-top:1px solid #d7e4e3; padding-top:8px; margin-top:auto; }
#custom-nav { padding-bottom:18px; }
.main-pane,.mail-main { min-width:0; }
.mail-main { padding:clamp(20px,2.4vw,40px) clamp(19px,2.8vw,52px) 40px; max-width:1720px; margin:0 auto; }
.mail-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.heading-group { display:flex; align-items:baseline; gap:15px; min-width:0; flex-wrap:wrap; }
.heading-group h1 { font:700 clamp(50px,5.5vw,86px)/1.05 "Playfair Display",Georgia,serif; letter-spacing:-.055em; overflow-wrap:anywhere; }
.heading-group h1:focus:not(:focus-visible) { outline:0; }
#folder-count { font-size:15px; color:#46626c; white-space:nowrap; }
.head-right { display:flex; align-items:center; justify-content:flex-end; gap:18px; min-width:0; }
.search-box { display:flex; align-items:center; padding:0 12px; height:41px; gap:8px; border:1px solid #c7dadc; border-radius:7px; background:#fcfdfd; }
.search-box .icon { width:17px; height:17px; color:#52757f; }
.search-box:focus-within { outline:2px solid #26858a; outline-offset:1px; }
.search-box input { border:0; outline:0; background:none; min-width:0; width:clamp(105px,14vw,235px); font-size:14px; }
.identity { padding-left:17px; border-left:1px solid #d6e3e3; line-height:1.35; }
.identity span { display:block; font-size:11px; color:#566c76; margin-bottom:3px; }
.identity strong { font-size:13px; font-weight:600; }
.list-tools { height:37px; display:flex; justify-content:flex-end; align-items:center; gap:0; margin:9px 0 -8px; }
.list-tools .text-button { font-size:12px; min-height:31px; }
.list-tools .icon-button { width:32px; height:32px; }
.list-tools .icon { width:15px; height:15px; }
.group-label { display:flex; align-items:center; gap:12px; font:700 21px/1.35 "Playfair Display",Georgia,serif; letter-spacing:-.025em; color:#07666a; margin:7px 0 5px; }
.group-label::after { content:""; height:1px; flex:1; background:#ccdedf; }
.message { border-bottom:1px solid #e0e8e9; }
.summary-row { display:grid; align-items:center; grid-template-columns:35px minmax(105px,1fr) minmax(135px,1.3fr) minmax(55px,2fr) 61px 23px; column-gap:13px; width:100%; min-height:54px; padding:7px 11px; text-align:left; border-radius:6px; color:var(--ink); }
.summary-row:hover { background:#f3f9f8; }
.avatar { width:33px; height:33px; background:#e0f3ef; color:#08636b; border-radius:50%; display:inline-grid; place-items:center; font:600 12px/1 Inter,Arial,sans-serif; letter-spacing:-.03em; }
.sender-col,.subject-col,.snippet-col { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family:var(--mail-face,Inter,Arial,sans-serif); }
.sender-col { position:relative; padding-left:10px; font-size:14px; }
.subject-col { font-size:14px; }
.snippet-col { color:#546d76; font-size:13px; }
.unread .sender-col,.unread .subject-col { font-weight:600; }
.unread .sender-col::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:5px; height:5px; border-radius:50%; background:#009a91; }
.row-end { display:flex; align-items:center; justify-content:flex-end; color:#356370; min-width:18px; }
.row-end .icon { width:16px; height:16px; }
.row-time { text-align:right; color:#4a6874; font-size:12px; font-variant-numeric:tabular-nums; }
.expanded { border:1px solid #c9dedd; border-radius:9px; overflow:hidden; margin:1px -1px; }
.expanded .summary-row { background:#e6f6f3; border-radius:0; box-shadow:inset 3px 0 #00a99f; }
.reading { padding:15px clamp(16px,2.5vw,38px) 9px clamp(20px,4vw,65px); background:white; }
.details-head { display:flex; gap:14px; justify-content:space-between; align-items:flex-start; border-bottom:1px solid #dce7e8; padding-bottom:12px; }
.addresses { color:#3b5561; font-size:13px; overflow-wrap:anywhere; min-width:0; }
.address-key { display:inline-block; min-width:43px; color:#5e737c; }
.addresses strong { font-weight:550; color:#172e3b; }
.reading-tools { display:flex; flex:none; }
.reading-tools .icon-button { width:32px; height:32px; }
.reading-tools .icon { width:16px; height:16px; }
.on-star .icon { fill:#d6efea; color:#006f70; }
.letter { white-space:pre-wrap; overflow-wrap:anywhere; font:400 16px/1.62 var(--mail-face,Inter,Arial,sans-serif); padding:18px 0 16px; }
.files { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 13px; }
.file-tile { display:flex; max-width:100%; align-items:center; gap:0; border:1px solid #cbdcde; border-radius:7px; background:#fcfefd; }
.file-main { border:0; background:transparent; display:flex; align-items:center; gap:10px; min-height:46px; padding:5px 11px; min-width:0; text-align:left; color:#173d47; text-decoration:none; font-size:13px; }
.file-main .icon { color:#048e86; width:22px; height:22px; }
.file-main strong { display:block; font-weight:600; overflow-wrap:anywhere; }
.file-main small { display:block; color:#61777e; font-size:11px; }
.file-download { border-left:1px solid var(--line); border-radius:0; margin:0 3px; height:31px; }
.reply-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; border-top:1px solid #e0e9e9; padding-top:4px; }
.reply-actions .action-link:first-child { margin-left:-8px; }
.action-link .icon { width:16px; height:16px; }
.delivery { color:#48656a; font-size:12px; margin-bottom:10px; }
.bulk-bar { display:flex; align-items:center; flex-wrap:wrap; gap:5px; border:1px solid #c9dedd; background:#f2f9f7; padding:5px 9px; margin:14px 0 8px; border-radius:8px; }
.bulk-bar .text-button { font-size:12px; }
.bulk-bar label { display:flex; align-items:center; gap:6px; font-size:13px; }
.bulk-bar input,.select-check { accent-color:var(--teal); width:17px; height:17px; }
.row-wrap { display:flex; align-items:center; }
.row-wrap:has(.select-check) .summary-row { flex:1; min-width:0; }
.select-check { flex:none; margin:0 3px 0 10px; }
.empty { min-height:230px; display:grid; align-content:center; justify-items:center; text-align:center; gap:7px; color:#546d73; padding:25px; border-bottom:1px solid var(--line); }
.empty .icon { width:30px; height:30px; color:#4c9391; margin-bottom:2px; }
.empty strong { font-size:17px; color:var(--ink); font-weight:550; }
.empty p { font-size:14px; }
.modal { padding:0; border:1px solid #c6d9da; border-radius:15px; color:var(--ink); background:white; width:min(660px,calc(100vw - 36px)); max-height:90vh; max-height:90svh; box-shadow:0 18px 65px #143b432b; overflow:auto; }
.modal::backdrop { background:#17383653; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 24px; background:#f1f8f6; border-bottom:1px solid #d8e6e5; }
.modal-head h2 { margin:0; font:700 clamp(27px,3vw,36px)/1.15 "Playfair Display",Georgia,serif; letter-spacing:-.035em; overflow-wrap:anywhere; }
.modal-head .icon-button { margin-right:-5px; }
.dialog-footer,.compose-footer { border-top:1px solid #d8e6e5; padding:14px 24px; }
.dialog-footer { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.dialog-footer .primary,.compose-actions .primary { min-height:42px; padding:9px 20px; font-size:14px; }
.writer { padding:0 24px; }
.address-line,.subject-line { display:flex; align-items:center; gap:10px; border-bottom:1px solid #e0e9e8; min-height:45px; }
.address-line label,.address-line>span,.subject-line label { font-size:13px; color:#526c74; min-width:48px; }
.address-line strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.address-line input,.subject-line input { min-width:0; width:100%; border:0; background:transparent; outline-offset:0; height:36px; font-size:15px; padding:3px 5px; }
.address-line button { border:0; background:transparent; color:var(--teal); font:500 13px Inter,sans-serif; padding:6px 3px; }
#body-text { display:block; width:100%; min-height:165px; border:0; resize:vertical; font:400 16px/1.6 var(--mail-face,Inter,sans-serif); padding:16px 4px; }
.writer-files { display:flex; flex-wrap:wrap; gap:7px; }
.writer-chip { display:flex; align-items:center; gap:5px; padding-left:8px; max-width:100%; border:1px solid #ccdddc; background:#f5faf8; border-radius:6px; font-size:12px; overflow-wrap:anywhere; }
.writer-chip .icon { width:15px; height:15px; }.writer-chip .icon-button { width:30px; height:30px; }
.draft-state { min-height:20px; font-size:12px; color:#47646b; margin:8px 0; }.draft-state.error,.choice-error,.sign-in-note {color:#963d32;}
.compose-actions { display:flex; align-items:center; gap:10px; }.compose-actions .discard {margin-left:auto;}
.compose-footer small { display:block; color:#5c7279; font-size:11px; margin-top:6px; }
.settings-modal { width:min(790px,calc(100vw - 36px)); }
.settings-columns { display:grid; grid-template-columns:.9fr 1fr; gap:25px; padding:24px; }
.settings-columns .choices { gap:6px; }.settings-columns .sample-title,.settings-columns .subject { margin:0; }
.settings-columns .subject { margin:5px 0 10px; }.settings-columns .sample-content { padding:14px; }
.signature-label { display:block; font-size:14px; font-weight:600; margin:17px 0 5px; }
#signature,.choice-body input,.choice-body select { width:100%; padding:9px 11px; border:1px solid #afc8ca; border-radius:7px; font:inherit; background:white; }
.status { margin:0; }.small-modal { max-width:430px; }.choice-body { padding:20px 24px 10px; font-size:15px; }
.choice-body label { display:block; margin-bottom:6px; font-size:14px; font-weight:550; }
.choice-error { margin:0 24px 10px; font-size:13px; }
.danger { background:#973f33; border-color:#973f33; }.danger:hover {background:#7e3127;}
.attachment-modal { width:min(860px,calc(100vw - 30px)); }.attachment-modal .modal-head h2 { font:600 18px/1.4 Inter,Arial,sans-serif; letter-spacing:0; }
#preview-content { min-height:180px; background:#eaf0ef; display:grid; place-items:center; }
#preview-content iframe { width:100%; height:58vh; border:0; }
#preview-content img { display:block; max-width:100%; max-height:60vh; object-fit:contain; }
.toast { position:fixed; z-index:9; bottom:22px; left:50%; transform:translateX(-50%); max-width:min(540px,92vw); padding:11px 18px; color:white; background:#173e43; border-radius:9px; font-size:14px; box-shadow:0 4px 20px #10323d20; }
.phone-bar,.phone-compose,.drawer-close { display:none; }
@media(max-height:760px) and (min-width:761px){.sidebar{padding-top:13px}.side-mast img{width:104px}.side-mast{padding-bottom:10px}.sidebar .nav-link{min-height:33px}.folder-heading{margin-top:10px}.compose-button{margin-bottom:11px}}
@media(min-width:761px) and (max-width:1100px){.mail-head{flex-wrap:wrap}.head-right{margin-left:auto}.identity{padding-left:9px}.summary-row{grid-template-columns:32px minmax(96px,.85fr) minmax(120px,1.25fr) minmax(35px,1fr) 51px 18px;gap:7px}.reading{padding-left:25px}.mail-main{padding-inline:18px}}
@media(max-width:760px){
  .shell{display:block}.sidebar{display:none;position:fixed;z-index:5;left:0;top:0;width:min(285px,84vw);height:100dvh;max-height:100dvh;box-shadow:6px 0 30px #173c3e25;padding:12px 15px}
  .drawer-open .sidebar{display:flex}.drawer-scrim{position:fixed;inset:0;z-index:4;border:0;background:#183b3c55}.drawer-close{position:absolute;right:7px;top:6px;display:inline-flex}.side-mast img{width:102px}.side-mast{padding-bottom:12px}
  .sidebar .nav-link{min-height:39px}.drawer-open{overflow:hidden}.phone-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:67px;padding:8px 13px;border-bottom:1px solid #cfdfe0;background:#f8fcfb}
  .phone-bar .icon-button{width:43px;height:43px;color:#17616a}.phone-brand{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.phone-mark{width:38px;height:36px}.phone-brand>div{display:grid;gap:3px;min-width:0}.phone-word{width:115px;height:auto}.phone-brand span{font-size:11px;line-height:1.2;overflow-wrap:anywhere}
  .mail-main{padding:16px 13px 30px}.mail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
  .heading-group{gap:7px}.heading-group h1{font-size:clamp(42px,11.5vw,61px)}#folder-count{font-size:12px}.phone-compose{display:inline-flex;min-height:42px;font-size:14px;gap:6px;padding:8px 12px}.phone-compose .icon{width:17px;height:17px}
  .head-right{display:none;grid-column:1/-1;width:100%}.search-shown .head-right{display:block}.search-box{height:43px}.search-box input{flex:1;width:100%}.identity{display:none}
  .list-tools{margin:4px 0 -18px;height:30px;position:relative;z-index:1;pointer-events:none}.list-tools>*{pointer-events:auto;background:white}.group-label{font-size:17px;margin:2px 0 6px;min-height:28px}.group-label:first-of-type{padding-right:99px}
  .summary-row{position:relative;grid-template-columns:33px minmax(0,1fr) auto 16px;grid-template-rows:auto auto;column-gap:8px;row-gap:0;padding:10px 6px;min-height:64px}
  .summary-row .avatar{grid-row:1/3}.sender-col{grid-column:2;grid-row:1;font-size:14px;line-height:1.45;padding-left:9px}.subject-col{grid-column:2/4;grid-row:2;font-size:14px;line-height:1.45;padding-left:9px}.snippet-col{display:none}.row-time{grid-column:3;grid-row:1;font-size:11px}.row-end{grid-column:4;grid-row:1/3}.row-end .icon{width:15px}
  .reading{padding:11px 12px 7px}.details-head{display:block;padding:0 0 6px}.addresses{font-size:12px}.address-key{min-width:32px}.reading-tools{justify-content:flex-end;margin:3px -4px -1px}.reading-tools .icon-button{width:37px;height:33px}.letter{font-size:16px;line-height:1.53;padding:13px 0}
  .reply-actions{gap:3px;justify-content:space-between}.reply-actions .action-link,.reply-actions .action-link:first-child{min-height:41px;margin:0;padding:6px 4px;gap:5px;font-size:13px}.file-main{min-height:45px}.file-download{min-width:39px}
  .modal{width:calc(100vw - 20px);max-height:94dvh}.compose-modal{width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.modal-head{padding:15px 16px}.writer{padding:0 16px}.address-line,.subject-line{min-height:47px}.address-line input,.subject-line input{font-size:16px}
  #body-text{min-height:clamp(140px,30svh,300px)}.compose-footer,.dialog-footer{padding:12px 16px}.compose-actions .primary{min-height:44px}.settings-columns{grid-template-columns:1fr;padding:16px;gap:15px}
  .settings-columns .font-choice{min-height:44px}.choice-body{padding:18px 16px 8px}.small-modal{max-width:420px}.toast{bottom:15px;width:max-content}
}
@media(max-width:350px){.phone-bar{padding-inline:7px}.phone-mark{width:29px}.phone-word{width:100px}.phone-brand{gap:4px}.mail-main{padding-inline:9px}.heading-group{gap:5px}.heading-group h1{font-size:39px}.summary-row{column-gap:5px}.reading{padding-inline:9px}.phone-compose{padding:8px}.settings-columns .choice-name{font-size:15px}}
@media(min-width:351px) and (max-width:760px){.phone-mark{width:43px;height:41px}.phone-word{width:138px}.phone-brand span{font-size:12px}}
@media(max-width:760px){.reading-tools .icon-button,.drawer-close,.phone-bar .icon-button{width:44px;height:44px}.reply-actions .action-link,.reply-actions .action-link:first-child,.phone-compose,.sidebar .nav-link,.file-download{min-height:44px}.settings-modal .dialog-footer .primary,.compose-footer .text-button,.compose-footer .icon-button{min-height:44px}}
.page-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0;color:var(--muted);font-size:14px}
.page-nav button{min-height:44px}
