:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#23253b;background:#f5f6fa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--email-accent);outline-offset:2px}[hidden]{display:none!important}.email-shell{display:flex;min-height:100dvh}.app-sidebar{position:sticky;top:0;display:flex;flex-direction:column;flex:none;width:222px;height:100dvh;padding:19px 12px 22px;background:#101013;color:#fafafc}.sidebar-brand{width:180px;height:64px;margin-left:2px;display:grid;place-items:center;border-radius:8px;background:white;overflow:hidden}.sidebar-brand img{display:block;width:168px;height:56px;object-fit:cover}.sidebar-section{margin:39px 11px 12px;color:#b9bac5;font-size:10px;font-weight:600}.app-nav{display:grid;gap:6px}.app-nav a{display:flex;align-items:center;gap:11px;height:42px;padding:0 12px;border-radius:9px;color:#fafafc;font-size:14px;text-decoration:none}.app-nav a:hover,.app-nav a.active{background:#323039}.app-nav img{display:block;width:18px;height:18px;flex:none}.sidebar-account{display:flex;align-items:center;gap:9px;margin-top:auto;padding:20px 6px 4px;border-top:1px solid #323238}.user-initials{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:12px;background:var(--email-accent-soft);color:var(--email-accent);font-size:14px;font-weight:600}.user-identity{display:grid;gap:2px;min-width:0;flex:1}.user-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:white;font-size:13px;font-weight:600}.user-identity small{color:#b9bac5;font-size:12px}.sidebar-account a{display:grid;place-items:center;width:18px;height:18px;flex:none}.email-main{width:calc(100% - 222px);min-width:0;padding:24px 26px 28px 24px}.mail-topbar{display:grid;grid-template-columns:190px minmax(250px,626px) 1fr;align-items:center;gap:22px;height:44px;margin-bottom:22px}.mail-topbar h1{margin:0 0 0 4px;font-size:28px;line-height:34px;font-weight:600;letter-spacing:-.015em}.mail-search{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px;border-radius:10px;background:white}.mail-search img{width:18px;height:18px;flex:none}.mail-search input{width:100%;height:100%;border:0;outline:none;background:transparent;color:#23253b;font-size:13px}.mail-search input::placeholder{color:#85889b}.mail-topbar #configure{justify-self:end;min-width:158px;height:36px;padding:0 13px;border:0;border-radius:8px;background:white;color:#595c70;font-size:12px;text-align:left}#notice{margin:0;color:#a44713;font-size:13px}#notice:not(:empty){margin:0 0 12px}.mail-layout{display:grid;grid-template-columns:206px 360px minmax(0,1fr);height:calc(100dvh - 118px);min-height:600px;overflow:hidden;border:1px solid #e2e4ed;border-radius:14px;background:white}.mail-folders{min-width:0;padding:18px 10px;background:#fafafc;border-right:1px solid #e5e6ee}.new-mail{width:174px;height:36px;margin-left:6px;padding:0 13px;border:0;border-radius:8px;background:var(--email-accent);color:white;font-size:12px;text-align:left}.new-mail:disabled{cursor:not-allowed;opacity:1}.folder-caption{margin:25px 8px 10px;color:#7d8093;font-size:10px;font-weight:600}.connected-title{display:block;margin:0 8px;color:#35364d;font-size:13px;font-weight:500}.sync-status{display:block;margin:6px 8px 30px;color:#38806a;font-size:11px}.sync-status.error{color:#ae4f38}.folder-nav{display:grid;gap:6px}.folder-nav button{display:flex;align-items:center;gap:11px;width:100%;height:36px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#55596d;font-size:13px;text-align:left}.folder-nav button.active{background:var(--email-accent-soft);color:var(--email-accent);font-weight:600}.folder-nav button:hover{background:var(--email-accent-soft)}.folder-nav button:disabled{cursor:not-allowed;opacity:1}.folder-nav img{display:block;width:18px;height:18px;flex:none}.folder-nav span{margin-left:auto;font-size:12px}.mail-list{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #e5e6ee}.list-head{display:flex;align-items:center;justify-content:space-between;height:59px;padding:0 18px}.list-head h2{margin:0;color:#25273b;font-size:20px;font-weight:600}.list-head button,.mail-list-filters #filter-toggle{display:grid;place-items:center;width:24px;height:26px;padding:0;border:0;background:transparent}.list-head img,.mail-list-filters img{display:block;width:18px;height:18px}.mail-list-filters{display:flex;align-items:center;gap:9px;height:46px;padding:0 18px 10px}.mail-list-filters button{height:36px;padding:0 13px;border:0;border-radius:8px;background:white;color:#74778b;font-size:12px}.mail-list-filters button.active{background:var(--email-accent-soft);color:var(--email-accent)}.mail-list-filters #filter-toggle{margin-left:auto}.message-items{flex:1;min-height:0;overflow:auto;padding:5px 8px}.mail-item{display:grid;align-content:start;gap:9px;position:relative;width:100%;min-height:100px;margin-bottom:5px;padding:14px 32px 12px 15px;border:0;border-radius:9px;background:white;text-align:left}.mail-item:hover{background:var(--email-accent-soft)}.mail-item.active{background:var(--email-accent-soft)}.mail-item.active:before{content:"";position:absolute;left:0;top:12px;width:3px;height:76px;border-radius:2px;background:var(--email-accent)}.mail-item .item-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.mail-item strong,.mail-item .subject,.mail-item .preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-item strong{color:#2c2c42;font-size:13px;font-weight:600}.mail-item time{color:#838499;font-size:10px;white-space:nowrap}.mail-item .subject{color:#38394f;font-size:13px;font-weight:600}.mail-item .preview{color:#7b7d90;font-size:12px}.mail-item.read strong,.mail-item.read .subject{font-weight:400}.mail-item .unread-dot{position:absolute;right:18px;top:43px;width:6px;height:6px;border-radius:3px;background:var(--email-accent)}.mail-detail{display:flex;flex-direction:column;min-width:0;min-height:0;background:white}.detail-toolbar{display:flex;align-items:center;gap:8px;height:67px;flex:none;padding:0 20px;border-bottom:1px solid #e6e7ee}.detail-toolbar button{height:36px;padding:0 13px;border:0;border-radius:8px;background:#f6f6f9;color:#5d6072;font-size:12px}.detail-toolbar button:disabled{cursor:not-allowed;opacity:1}.detail-toolbar #message-position{margin-left:auto;color:#7e8094;font-size:12px}.detail-content{flex:1;min-height:0;overflow:auto;padding:27px 28px}.detail-content>p:first-child{color:#7b7d90}.detail-content h2{margin:0 0 28px;color:#26273a;font-size:26px;font-weight:600;line-height:1.2}.sender-row{display:flex;align-items:start;gap:12px;min-width:0}.sender-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:13px;background:var(--email-accent-soft);color:var(--email-accent);font-size:13px;font-weight:600}.sender-info{min-width:0;display:grid;gap:7px;align-self:center}.sender-info .sender-name{color:#303147;font-size:14px;font-weight:600}.sender-info .sender-email{margin-left:8px;color:#787b8e;font-size:12px;font-weight:400}.sender-info .recipient{color:#787b8e;font-size:12px}.sender-row time{margin-left:auto;white-space:nowrap;color:#818496;font-size:11px}.mail-body{min-height:122px;margin:22px 0 0;padding:29px 0 0;border-top:1px solid #e6e7ee;color:#34364a;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.detail-actions{display:flex;align-items:center;gap:10px}.detail-actions button{height:36px;padding:0 16px;border:0;border-radius:8px;background:var(--email-accent-soft);color:var(--email-accent);font-size:12px}.detail-actions button:nth-child(2){background:white;color:#5d6072}.detail-actions button:disabled{cursor:not-allowed;opacity:1}.reply-form{max-width:600px;margin-top:18px;padding:18px;border:1px solid #e6e7ee;border-radius:10px}.reply-form label{display:block;color:#55596d;font-size:13px}.reply-form textarea{display:block;width:100%;min-height:110px;margin-top:8px;padding:10px;border:1px solid #d8d9e5;border-radius:8px;resize:vertical}.reply-form button{margin-top:10px;background:var(--email-accent);color:white;border:0;border-radius:8px;padding:9px 16px;font-size:12px}
#setup{padding:8px 0 40px}.steps{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:10px 0 24px;color:#657895;font-weight:600}.steps span:first-child{background:#d1f6e4;color:#007d5b;border-radius:25px;padding:8px 16px}.steps b{background:#101827;color:white;border-radius:25px;padding:8px 16px}.card{background:white;border:1px solid #dbe3ef;border-radius:24px;padding:32px;max-width:1150px}.card h2{font-size:24px;margin:0 0 10px}.card>p{color:#657895;line-height:1.45}.providers{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0}.providers button{padding:10px 14px;border:1px solid #dbe3ef;border-radius:9px;background:white;color:#15213a;font-size:17px;font-weight:600}.providers button.active{background:#101827;border-color:#101827;color:white}.card .provider-note{background:#fff9e7;color:#a3440c;padding:18px 20px;border-radius:13px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin:28px 0}.server-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,.7fr) minmax(145px,1fr);gap:22px;margin-top:18px}.card label{display:block;color:#4c5e78;font-size:15px;font-weight:600}.card input,.card select{display:block;width:100%;margin-top:7px;padding:12px 14px;border:1px solid #d8e2f0;border-radius:12px;background:white;color:#15213a;font-size:16px;font-weight:400}.actions{display:flex;gap:16px;margin-top:35px}.actions button{padding:12px 25px;border:1px solid #dbe3ef;border-radius:9px;background:white;color:#15213a;font-size:17px}.actions .primary{background:#101827;color:white}
@media(max-width:1150px){.mail-layout{grid-template-columns:180px 290px minmax(0,1fr)}.new-mail{width:100%;margin-left:0}.mail-topbar{grid-template-columns:140px minmax(220px,1fr) auto;gap:12px}}@media(max-width:850px){.app-sidebar{width:72px;padding:14px 10px}.sidebar-brand{width:52px;height:52px;margin:0}.sidebar-brand img{width:150px;max-width:none;object-position:left}.sidebar-section,.app-nav a,.user-identity{font-size:0}.app-nav a{justify-content:center;padding:0}.sidebar-account{justify-content:center;padding:14px 0}.sidebar-account a{display:none}.email-main{width:calc(100% - 72px);padding:16px}.mail-layout{grid-template-columns:150px 260px minmax(0,1fr)}}@media(max-width:650px){.email-shell{display:block}.app-sidebar{position:relative;width:100%;height:62px;flex-direction:row;align-items:center;gap:10px;padding:6px 12px}.sidebar-brand{width:100px;height:48px}.sidebar-brand img{width:100px;height:auto}.sidebar-section,.sidebar-account{display:none}.app-nav{display:flex;gap:3px;overflow:auto}.app-nav a{width:38px;min-width:38px;height:38px}.email-main{width:100%;padding:12px}.mail-topbar{grid-template-columns:auto 1fr auto;gap:8px;height:42px;margin-bottom:12px}.mail-topbar h1{font-size:21px}.mail-search{min-width:0;padding:0 8px}.mail-search input{font-size:11px}.mail-topbar #configure{min-width:0;width:35px;height:35px;padding:0;overflow:hidden;font-size:0}.mail-topbar #configure::after{content:'⚙';font-size:18px}.mail-layout{display:flex;flex-direction:column;height:calc(100dvh - 132px);min-height:0}.mail-folders{display:flex;align-items:center;gap:10px;min-height:52px;padding:7px;overflow:auto;border-right:0;border-bottom:1px solid #e5e6ee}.new-mail{width:90px;min-width:90px;height:34px}.folder-caption,.connected-title,.sync-status{display:none}.folder-nav{display:flex;gap:4px}.folder-nav button{width:auto;min-width:36px;padding:0 7px;font-size:11px;white-space:nowrap}.folder-nav button:disabled{display:none}.folder-nav img{width:16px;height:16px}.folder-nav span{display:none}.mail-list{height:35%;min-height:170px;border-right:0;border-bottom:1px solid #e5e6ee}.list-head{height:45px}.list-head h2{font-size:17px}.mail-list-filters{height:38px}.message-items{padding:3px 6px}.mail-item{min-height:82px;gap:5px;padding:9px 25px 9px 12px}.mail-detail{flex:1;min-height:0}.detail-toolbar{height:45px;padding:0 8px}.detail-toolbar button{padding:0 6px;font-size:10px}.detail-content{padding:15px}.detail-content h2{font-size:21px}.sender-row time{font-size:10px}.sender-info .sender-email{display:block;margin-left:0}.fields,.server-row{grid-template-columns:1fr}.card{padding:18px}}
.compose-form{max-width:680px}.compose-form h2{margin-bottom:26px}.compose-form label{display:block;margin:0 0 18px;color:#55596d;font-size:13px;font-weight:600}.compose-form input,.compose-form textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;border:1px solid #d8d9e5;border-radius:8px;background:#fff;color:#23253b;font-weight:400}.compose-form textarea{min-height:220px;resize:vertical;line-height:1.5}.compose-actions{display:flex;justify-content:flex-end;gap:10px}.compose-actions button{min-width:100px;height:36px;padding:0 15px;border:1px solid #e1e2ea;border-radius:8px;background:#fff;color:#55596d;font-size:12px}.compose-actions .primary{border-color:var(--email-accent);background:var(--email-accent);color:white}.compose-actions button:disabled{opacity:.6;cursor:wait}.empty-list{padding:12px;color:#7b7d90;font-size:13px}
.sidebar-brand{display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0}.sidebar-brand img{width:176px;height:auto;max-height:60px;object-fit:contain}@media(max-width:850px){.sidebar-brand{justify-content:flex-start}.sidebar-brand img{width:156px;max-width:none;max-height:none;flex:none}}@media(max-width:650px){.sidebar-brand img{width:96px;max-height:44px}}

.app-nav a[hidden],.app-nav .sidebar-group[hidden]{display:none!important}.app-nav .sidebar-group{display:block;margin:15px 12px 4px;color:#aeb0be;font-size:10px;letter-spacing:.07em}

#account-select{display:block;width:100%;max-width:100%;min-width:0;margin:8px 0;padding:9px;border:1px solid var(--email-accent-border);border-radius:8px;background:white;color:inherit}
#account-scope{display:block;color:#72758b;margin-bottom:8px}
#remove-account{font-size:12px;margin:4px 0 12px}
.providers{flex-wrap:wrap}
.mail-topbar{flex-wrap:wrap}
#add-account,#remove-account{border:1px solid var(--email-accent-border);border-radius:10px;background:#fff;color:var(--email-accent);padding:10px 14px;font:inherit;cursor:pointer}
#add-account:hover,#remove-account:hover{background:var(--email-accent-soft)}
#add-account:focus-visible,#remove-account:focus-visible,#account-select:focus-visible{outline:2px solid var(--email-accent);outline-offset:2px}

/* Account actions participate in layout; the header grows when they wrap. */
.mail-topbar{display:flex;flex-wrap:wrap;height:auto;min-height:44px;gap:12px;margin-bottom:16px}
.mail-topbar h1{flex:0 0 auto;margin-right:auto}
.mail-topbar .mail-search{flex:1 1 280px;min-width:0;max-width:626px}
.mail-topbar #add-account,.mail-topbar #configure{flex:0 0 auto;min-height:36px;height:auto;padding:10px 13px;text-align:center;white-space:nowrap}
#notice{overflow-wrap:anywhere}
@media(max-width:650px){
 .mail-topbar h1{flex-basis:100%}
 .mail-topbar .mail-search{flex-basis:100%;max-width:none}
 .mail-topbar #configure{width:auto;font-size:12px;overflow:visible}
 .mail-topbar #configure::after{content:none}
 .mail-topbar #add-account{font-size:12px}
 .mail-folders{flex-wrap:wrap;flex:none;max-height:220px;overflow:auto}
 #account-select{flex:1 1 180px;width:auto;margin:0}
 #account-scope{flex-basis:100%;font-size:12px;margin:0}
 #remove-account{font-size:12px;margin:0}
 .folder-nav{flex-basis:100%}
}
#share-account{border:1px solid var(--email-accent-border);border-radius:10px;background:#fff;color:var(--email-accent);padding:10px 12px;font-size:12px;margin:4px 0}
#sharing-dialog{width:min(520px,calc(100% - 24px));padding:24px;border:1px solid var(--email-accent-border);border-radius:16px;color:#23253b}
#sharing-dialog::backdrop{background:#10101380}
#sharing-dialog p{line-height:1.5}
#sharing-department{width:100%;padding:12px;margin-top:8px;border:1px solid var(--email-accent-border);border-radius:8px}
#sharing-error{color:#a44713}
#sharing-dialog .actions{flex-wrap:wrap}
.detail-actions{flex-wrap:wrap}
.recipient-details{font-size:12px;color:#72758b;overflow-wrap:anywhere;line-height:1.5}
.compose-form>p{font-size:13px;color:#72758b;line-height:1.5}

.message-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;padding:12px 20px;background:#fff;border-bottom:1px solid #e6e7ee}
.message-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid var(--email-accent-border);border-radius:8px;background:var(--email-accent-soft);color:var(--email-accent);font-size:12px;font-weight:600}
.message-actions button:hover{background:var(--email-accent-soft)}
@media(max-width:650px){.message-actions{gap:6px;padding:8px}.message-actions button{font-size:11px;padding:7px 9px}}

/* Email workspace — Figma 36:184, retaining FKAS brand colors. */
.mail-topbar{gap:12px;margin-bottom:23px;min-height:44px}
.mail-topbar h1{flex:1 0 170px;font-size:27px}
.mail-topbar .mail-search{flex:1 1 300px;max-width:559px}
.mail-topbar #add-account,.mail-topbar #configure{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;height:38px;min-height:38px;border:1px solid #e0e1e9;padding:0 11px;color:#55596d;font-size:12px}
.mail-topbar #add-account{width:159px}
.mail-topbar #configure{width:238px}
.mail-topbar img,.mail-folders button img{flex:none;display:block}
.mail-layout{grid-template-columns:240px 352px minmax(0,1fr);height:calc(100dvh - 119px)}
.mail-folders{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:18px 12px 22px;overflow:auto;background:#fafafc}
.new-mail{display:flex;align-items:center;gap:9px;width:calc(100% - 8px);height:38px;min-height:38px;margin:0 4px;padding:0 12px}
.account-card{position:relative;display:flex;flex-direction:column;justify-content:center;gap:9px;min-height:91px;margin:22px 4px 12px;padding:12px 30px 12px 11px;border:1px solid #e2e2eb;border-radius:9px;background:white}
.account-card strong{font-size:14px;font-weight:600;color:#35364d}
.account-card strong,#account-address{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#account-address{font-size:12px;color:#7b7d90}
.account-card #account-scope{flex:none;font-size:10px;margin:0;color:#85889b;line-height:1.3}
.account-card>img{position:absolute;right:12px;top:14px}
.account-card #account-select{position:absolute;inset:0;margin:0;opacity:0;width:100%;height:100%;cursor:pointer}
.account-card:focus-within{outline:2px solid var(--email-accent);outline-offset:2px}
#share-account,#remove-account{display:flex;align-items:center;justify-content:flex-start;gap:9px;height:38px;min-height:38px;margin:0 4px;padding:0 11px;background:white;color:#55596d;font-size:12px;border:1px solid #e0e1e9;border-radius:8px}
.sync-status{margin:14px 15px 24px;min-height:16px;font-size:11px}
.folder-nav{gap:6px}
.folder-nav button{height:38px;gap:12px;padding:0 13px}
#remove-account{margin-top:auto}
.folder-nav{margin-bottom:22px}
.list-head{height:60px;flex:none;padding:0 19px}
.mail-list-filters{height:44px;flex:none;padding:0 18px 10px}
.mail-list-filters button{height:30px;border-radius:7px}
.message-items{padding:5px 7px}
.mail-item{min-height:101px;padding:14px 13px 12px;gap:8px;margin-bottom:6px}
.mail-item .item-line{height:28px;gap:9px}
.list-avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:var(--email-accent-soft);color:var(--email-accent);font-size:10px;font-weight:600}
.mail-item:nth-child(3n+2) .list-avatar{background:#e6f1eb;color:#38806a}
.mail-item:nth-child(3n) .list-avatar{background:#e9edf4;color:#657895}
.mail-item strong{flex:1;font-size:12px}
.mail-item time{font-size:10px;color:#838499}
.mail-item .preview{font-size:11px}
.mail-item .unread-dot{right:16px;top:51px;width:5px;height:5px}
.mail-detail.is-empty .detail-toolbar{display:none}
.mail-detail.is-empty .detail-content{display:grid;place-items:center;padding:24px}
.reading-empty{text-align:center;transform:translateY(-48px)}
.reading-empty-icon{display:grid;place-items:center;width:80px;height:80px;margin:0 auto 26px;border-radius:24px;background:var(--email-accent-soft)}
.reading-empty h2{margin:0 0 14px;font-size:22px;font-weight:600;color:#484859}
.reading-empty p{margin:0;font-size:13px;color:#85889b;line-height:1.5}
@media(max-width:1250px){.mail-topbar #configure{width:auto}.mail-topbar h1{flex-basis:100px}.mail-layout{grid-template-columns:210px 300px minmax(0,1fr)}}
@media(max-width:950px){.mail-topbar h1{flex-basis:100%}.mail-topbar .mail-search{max-width:none}.mail-layout{grid-template-columns:190px 260px minmax(0,1fr)}}
@media(max-width:650px){
 .mail-topbar{gap:8px;margin-bottom:14px}.mail-topbar h1{font-size:22px}
 .mail-topbar .mail-search{flex-basis:100%}.mail-topbar #add-account,.mail-topbar #configure{width:auto;font-size:11px}
 .mail-layout{height:auto;min-height:calc(100dvh - 220px)}
 .mail-folders{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;max-height:none;overflow:visible;flex:none}
 .new-mail{width:100%;margin:0;grid-column:1}
 .account-card{grid-column:1/-1;grid-row:2;margin:0;min-height:91px}
 #share-account{grid-column:2;grid-row:1;margin:0;min-width:0;padding:0 8px;gap:5px;font-size:11px}
 #remove-account{grid-column:1/-1;grid-row:5;margin:0;width:max-content;font-size:11px}
 .sync-status{display:block;grid-column:1/-1;grid-row:3;margin:0}
 .folder-nav{grid-column:1/-1;grid-row:4;margin:0;flex-wrap:wrap}
 .folder-nav button{height:34px}
 .mail-list{height:280px;flex:none}
 .mail-detail{min-height:300px}
 .mail-detail.is-empty .detail-content{min-height:300px}
 .reading-empty{transform:none}
 .reading-empty h2{font-size:20px}
}
/* Figma 36:184 update: category strip and mailbox labels. */
.mail-layout{grid-template-rows:58px minmax(0,1fr)}
.mail-categories{grid-column:1/-1;display:flex;align-items:stretch;padding-left:240px;border-bottom:1px solid #e7e7ef;overflow:auto;min-width:0}
.mail-categories button{position:relative;display:flex;align-items:center;gap:14px;flex:0 0 212px;padding:0 17px;background:white;border:0;color:#7d7d8d;font-size:13px;text-align:left}
.mail-categories img{flex:none;width:18px;height:18px}
.mail-categories button.active{color:var(--email-accent)}.mail-categories button.active:after{content:'';position:absolute;bottom:0;left:7px;right:13px;height:3px;border-radius:2px;background:var(--email-accent)}
.mail-categories button:disabled{opacity:.45;cursor:default}
.mail-folders{min-height:0}.mail-labels{margin:22px 4px 0}.labels-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px;color:#9292a0;font-size:10px;height:25px}.labels-heading button{border:0;background:transparent;font-size:20px;color:#777482}
.label-filter{display:flex;align-items:center;gap:10px;width:100%;min-height:30px;margin-bottom:5px;padding:5px 10px;border:0;border-radius:6px;background:transparent;text-align:left;font-size:12px}.label-filter img{flex:none;width:15px;height:15px}.label-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.label-filter.active{background:var(--email-accent-soft)}
.tone-0{color:var(--email-accent)}.tone-1{color:#348062}.tone-2{color:#4a78ab}.tone-3{color:#9b7228}
.message-labels{display:flex;gap:4px;overflow:hidden}.label-badge{padding:4px 8px;border-radius:5px;font-size:10px;white-space:nowrap;background:var(--email-accent-soft)}.label-badge.tone-1{background:#e7f3eb}.label-badge.tone-2{background:#eaf1f9}.label-badge.tone-3{background:#faf1dc}
#remove-account{flex-shrink:0}.mail-item{border-bottom:0}.mail-item::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#cfd1db;pointer-events:none}
.classification-dialog{width:min(440px,calc(100% - 32px));border:1px solid #e2e2eb;border-radius:14px;padding:24px;color:#23253b}.classification-dialog::backdrop{background:#10101366}.classification-dialog label{display:block;margin:12px 0;font-size:13px}.classification-dialog select,.classification-dialog textarea{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #e2e2eb;border-radius:8px}.classification-dialog .label-choice{display:flex;gap:8px;align-items:center}.classification-dialog [role=alert]{color:#a44713}
@media(max-width:1250px){.mail-categories{padding-left:210px}.mail-categories button{flex-basis:170px}}
@media(max-width:950px){.mail-categories{padding-left:190px}}
@media(max-width:650px){.mail-categories{padding-left:0;flex:none;height:58px}.mail-categories button{flex-basis:145px}.mail-labels{grid-column:1/-1;grid-row:5;margin:0}#label-filters{display:flex;flex-wrap:wrap}.label-filter{width:auto}#remove-account{grid-row:6}.mail-detail{min-height:300px}}
.mail-folders>*{flex-shrink:0}.account-card{min-height:102px}.account-card strong,#account-address{flex:none}
.mail-body.has-template{white-space:normal;padding-top:20px}.email-template{display:block;border:0;width:100%;height:65vh;min-height:420px;background:white}

/* FKAS neutral theme: shared by mailbox, setup and message actions. */
:root{--email-accent:#101013;--email-accent-soft:#f0f0f2;--email-accent-border:#d9d9de}
.folder-nav button.active img,.mail-categories button.active img,.reading-empty-icon img,.label-filter.tone-0 img{filter:grayscale(1) brightness(.3)}
.remote-images-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:12px;border:1px solid var(--email-accent-border);border-radius:8px;background:var(--email-accent-soft);font-size:12px;line-height:1.5;white-space:normal}.remote-images-notice span{flex:1;min-width:180px}.remote-images-notice button{border:0;border-radius:7px;padding:9px 12px;background:var(--email-accent);color:white;font-size:12px}

/* Current Figma 36:184: compose in the category header, compact account sharing. */
:root{--email-accent-soft:#e5e5e8}
.mail-categories{padding-left:0;overflow:auto;border-bottom-color:#d6d9e0}
.compose-slot{display:flex;align-items:center;flex:0 0 240px;padding:10px 16px;background:#eceef1;border-right:1px solid #d6d9e0}
.compose-slot .new-mail{margin:0;width:100%;background:#323037}
.mail-categories>button{color:#323037}
.mail-categories>button+button:before{content:'';position:absolute;left:0;top:12px;height:34px;width:1px;background:#d6d9e0}
.mail-folders{background:#eceef1;padding-top:18px;padding-bottom:18px}
.account-card{min-height:91px;margin-top:0;margin-bottom:0;padding:11px;gap:8px;border-color:#e5e5e8}
.account-card strong{padding-right:62px;color:#323037}
#account-address{font-size:10px}
.account-card #account-scope{align-self:flex-start;max-width:100%;padding:5px 7px;border-radius:6px;background:#e5e5e8;color:#323037;font-size:11px;overflow-wrap:anywhere}
.account-card #share-account{position:absolute;right:35px;top:6px;z-index:2;display:grid;place-items:center;width:28px;height:28px;min-height:28px;margin:0;padding:5px;border:0;background:transparent}
.account-card #share-account:hover{background:#eceef1}
.account-card #share-account span{display:none}
.sync-status{margin:14px 15px 24px}
.folder-nav button,.label-filter{background:#fbfbfd}
.folder-nav button.active,.label-filter.active{background:#e5e5e8;color:#323037}
.mail-labels{margin-top:6px}
.labels-heading{color:#323037}
.mail-list-filters{height:40px;border-bottom:1px solid #cfd1db}
.mail-item time,.reading-empty h2,.reading-empty p{color:#323037}
.reading-empty{transform:translateY(-25px)}
@media(max-width:1250px){.compose-slot{flex-basis:210px}}
@media(max-width:950px){.compose-slot{flex-basis:190px}}
@media(max-width:650px){
 .compose-slot{flex-basis:145px;padding:10px 8px}.compose-slot .new-mail{width:129px;min-width:0;font-size:11px;padding:0 8px}
 .mail-folders{display:flex;flex-direction:column;gap:12px;padding:12px}
 .account-card{width:100%;margin:0;min-height:91px}
 .sync-status{margin:0}.folder-nav{margin:0}.mail-labels{margin:0;width:100%}
 .reading-empty{transform:none}
}
.mail-categories .compose-slot .new-mail{flex:none;position:static;justify-content:flex-start;color:white;font-size:12px;gap:9px;padding:0 12px}
.account-card #account-scope.shared{display:inline-flex;align-items:center;gap:6px}
.account-card #account-scope.shared:before{content:'';display:block;flex:none;width:14px;height:14px;background:url('/meetings/inbox/assets/figma/mail-design-scope.svg') center/14px 14px no-repeat}

/* Measured fidelity pass for Figma 36:184 (1600 × 960 reference). */
:root{background:#f5f6f9}
.app-sidebar{padding-top:16px}
.sidebar-brand{width:198px;height:82px;min-height:82px;margin:0;border:1px solid rgba(64,64,71,.65);border-radius:12px;background:#1f1f22;box-shadow:0 5px 12px rgba(0,0,0,.32);overflow:hidden;justify-content:center}
.sidebar-brand img{display:block;width:198px;height:66px;max-height:none;max-width:none;object-fit:cover;flex:none}
.sidebar-section{margin-top:23px;margin-bottom:22px;line-height:12px}
.sidebar-account{margin-bottom:58px}
.mail-topbar h1{flex:1 1 170px}
.mail-topbar .mail-search{flex:0 1 559px}
.mail-categories>button{flex-basis:212px}
.mail-item{height:101px;min-height:101px;gap:7px;padding:14px 13px 7px;line-height:normal}
.mail-item .subject{line-height:16px}
.message-labels{height:21px}
.label-badge{height:21px;line-height:13px}
.mail-item .preview{line-height:14px}
.mail-folders .sync-status{height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reading-empty{transform:translateY(-25px)}
.folder-nav button.active img,.mail-categories button.active img,.reading-empty-icon img,.label-filter.tone-0 img{filter:none}
@media(max-width:1250px){.mail-topbar .mail-search{flex:1 1 250px}.mail-categories>button{flex-basis:170px}}
@media(max-width:850px) and (min-width:651px){.sidebar-brand{width:52px;height:52px;min-height:52px;border-radius:9px;justify-content:flex-start}.sidebar-brand img{width:156px;height:52px;object-fit:contain}.sidebar-account{margin-bottom:0}}
@media(max-width:650px){.sidebar-brand{width:100px;height:48px;min-height:48px;flex:none;border-radius:8px}.sidebar-brand img{width:100px;height:auto}.mail-topbar .mail-search{flex-basis:100%;max-width:none}.mail-categories>button{flex-basis:145px}.reading-empty{transform:none}}
@media(min-width:851px){.sidebar-section{margin-bottom:15px}}
/* The Figma header has three categories. Social remains available in the side panel. */
.extra-categories{margin-top:10px}
.extra-categories [data-category="social"]{display:flex;align-items:center;gap:10px;width:100%;height:30px;padding:0 10px;border:0;border-radius:6px;background:#fbfbfd;color:#323037;font-size:12px;text-align:left}
.extra-categories [data-category="social"] img{width:15px;height:15px}
.extra-categories [data-category="social"].active{background:#e5e5e8;font-weight:600}
.mail-topbar{display:grid;grid-template-columns:minmax(0,326px) minmax(240px,559px) 159px 238px;gap:12px}
.mail-topbar h1{margin:0 0 0 4px}
.mail-topbar .mail-search{width:100%;max-width:559px}
.mail-topbar #add-account,.mail-topbar #configure{width:100%}
.app-sidebar .sidebar-section{margin-top:23px;margin-bottom:15px}
.mail-categories>button{flex:0 0 212px}
.mail-categories>button.active:after{left:7px;right:13px}
.list-head{height:60px}
.mail-list-filters{height:40px}
.message-items{padding-top:5px}
.mail-item{margin-bottom:6px}
@media(max-width:1400px){.mail-topbar{display:flex;flex-wrap:wrap}.mail-topbar h1{margin-right:auto}.mail-topbar .mail-search{flex:1 1 280px}}
@media(max-width:650px){.mail-topbar h1{flex-basis:100%}.mail-topbar #add-account,.mail-topbar #configure{width:auto}.mail-categories>button{flex-basis:145px}}
/* Updated message rows from Figma 36:184: sender, subject, snippet and labels. */
.mail-item{height:101px;min-height:101px;gap:5px;padding:12px 13px 5px}
.mail-item .item-line{height:16px;min-height:16px;gap:8px;padding-right:13px}
.mail-item strong{font-size:12px;line-height:16px}
.mail-item time{font-size:10px;line-height:16px}
.mail-item .subject{font-size:13px;line-height:16px}
.mail-item .preview{display:block;max-width:100%;font-size:11px;line-height:14px;color:#737580}
.mail-item .message-labels{height:21px;min-height:21px;margin-top:2px;padding-right:78px}
.mail-item .unread-dot{top:17px;right:12px;width:5px;height:5px}
.mail-item .urgent-marker{position:absolute;right:13px;bottom:9px;color:#c0443d;font-size:10px;font-weight:600;white-space:nowrap}
@media(max-width:650px){.mail-item{height:101px;min-height:101px;padding:12px 13px 5px}}
/* Open message panel, Figma 36:2. */
.detail-toolbar{height:72px;gap:9px;padding:0 18px}
.detail-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:38px;padding:0 11px;border:1px solid #cfd1d9;background:#fff;color:#4f5061;font-size:12px;font-weight:500;white-space:nowrap}
.detail-toolbar button img{display:block;width:18px;height:18px}
.detail-toolbar button:disabled{opacity:.55}
.detail-content{padding:27px;}
.detail-content h2{margin:0 0 25px;font-size:25px;color:#292a3c}
.sender-row{display:flex;align-items:start;gap:0}
.sender-row .sender-avatar{display:none}
.sender-info{gap:7px}
.sender-info .sender-name{font-size:14px;color:#323037}
.sender-info .sender-email{display:block;margin:7px 0 0;color:#323037;font-size:12px;font-weight:400}
.sender-info .recipient{font-size:11px;color:#323037}
.sender-row time{color:#323037}
.reading-labels{display:flex;gap:5px;margin-top:12px;min-height:21px}
.reading-labels:empty{display:none}
.mail-body{min-height:0;margin:18px 0 0;padding:18px 0 0;border-top:1px solid #ececf2;font-size:14px;line-height:1.5}
.reading-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.reading-actions button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:0 13px;border:1px solid #cfd1d9;border-radius:8px;background:#fff;color:#4f5061;font-size:12px;font-weight:500}
.reading-actions button:first-child{background:#323037;color:#fff}
.reading-actions button img{display:block;width:18px;height:18px}
.reading-actions button:first-child img{filter:brightness(0) invert(1)}
@media(max-width:850px){.detail-toolbar{gap:5px;padding:0 8px;overflow-x:auto}.detail-toolbar button{flex:none;padding:0 8px}.detail-content{padding:18px}}
/* Exact message card treatment in the no-selection frame 36:184. */
.message-items{padding:5px 6px}
.mail-item{border:1px solid #cfd1d9;border-radius:9px;margin-bottom:6px;padding:11px 12px 5px}
.mail-item::after{left:-1px;right:-1px;bottom:0;background:#cfd1db}
.mail-item .message-labels{margin-top:2px}
.mail-item .label-badge{border:1px solid #cfd1d9;padding:3px 7px;font-weight:500}
.mail-item .urgent-marker{display:flex;align-items:center;gap:4px;right:12px;bottom:9px;color:#b5473d;font-size:10px;font-weight:500}
.mail-item .urgent-marker img{display:block;width:16px;height:16px}
@media(max-width:650px){.message-items{padding:5px 6px}}
/* Figma 36:184 uses a single neutral 1px outline throughout this screen. */
.mail-layout,.mail-search,.mail-topbar #add-account,.mail-topbar #configure,.account-card,#remove-account{border:1px solid #cfd1d9}
.folder-nav button,.label-filter,.extra-categories [data-category="social"]{border:1px solid #cfd1d9;background:#fbfbfd}
.folder-nav button.active,.label-filter.active{background:#e5e5e8}
.account-card #account-scope{border:1px solid #cfd1d9}
.mail-list{border-right:1px solid #cfd1d9}
.mail-list-filters{border-bottom:1px solid #cfd1d9}
.message-items{padding-left:6px;padding-right:7px}
.mail-item::after{content:none}
/* Synchronization runs in the background; only failures need a visible status. */
.mail-folders .sync-status:not(.error){display:none}
.mail-folders .account-card{margin:0 0 16px;width:100%;min-height:91px}
.mail-folders .folder-nav{margin-top:0}
.mail-folders .sync-status.error{margin:0 0 16px;height:auto;white-space:normal}
@media(max-width:650px){.message-items{padding-left:6px;padding-right:7px}}
/* Border contract from the Figma guide 62:2. Adjacent panels share one edge. */
:root{--email-border:#CFD1D9}
.mail-layout,.mail-search,.mail-topbar #add-account,.mail-topbar #configure,
.compose-slot .new-mail,.account-card,#remove-account,.folder-nav button,
.label-filter,.extra-categories [data-category="social"],.account-card #account-scope,
.mail-item,.label-badge,.mail-list-filters #all-filter,.detail-toolbar button,
.reading-actions button{border:1px solid var(--email-border);box-sizing:border-box}
.mail-folders{border-top:0;border-right:1px solid var(--email-border)}
.mail-list{border-left:0;border-right:1px solid var(--email-border)}
.mail-detail{border-left:0}
.mail-list-filters,.detail-toolbar{border-bottom:1px solid var(--email-border)}
.mail-categories{border-bottom:0}
.mail-list,.mail-detail{border-top:1px solid var(--email-border)}
.mail-item::after{content:none}
.signature-settings{margin:16px 4px;padding:10px;border:1px solid var(--email-border);border-radius:8px;background:white;color:#323037;font-size:12px;text-align:left}
.signature-preview{display:flex;align-items:flex-start;gap:20px;margin:24px 0;font:13px/1.7 Arial,sans-serif;color:#323037}.signature-preview img{width:160px;height:auto;object-fit:contain}.signature-preview>div{border-left:1px solid var(--email-border);padding-left:20px}.signature-preview strong{display:block}.signature-dialog{width:min(800px,calc(100% - 32px));max-height:90vh;overflow:auto}.signature-dialog input:not([type=checkbox]){display:block;width:100%;padding:10px;margin-top:6px;border:1px solid var(--email-border);border-radius:7px}.signature-dialog input[type=checkbox]{margin-right:8px}@media(max-width:650px){.signature-preview{flex-wrap:wrap}.signature-preview img{max-width:120px}}
.signature-page>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 32px}.signature-page h1{margin:0;font-size:27px;font-weight:600;color:#323037}.signature-page button{height:38px;padding:0 14px;border:1px solid var(--email-border);border-radius:7px;background:white;color:#323037;font-size:12px}.signature-columns{display:grid;grid-template-columns:minmax(0,594px) minmax(0,1fr);gap:24px;align-items:start}.signature-card{padding:24px;border:1px solid var(--email-border);border-radius:8px;background:white}.signature-card h2{margin:0 0 24px;font-size:20px;font-weight:600}.signature-card form{margin:0}.signature-card label{display:block;margin-bottom:24px;font-size:12px;color:#323037}.signature-card input:not([type=checkbox]){display:block;width:100%;height:40px;padding:0 12px;margin-top:8px;border:1px solid var(--email-border);border-radius:7px;background:white;font:12px Inter,system-ui;color:#737580}.signature-card input[type=file]{height:auto;padding:10px 0;border:0}.signature-card input[type=checkbox]{accent-color:#737580;margin-right:8px}.signature-card .actions{margin-top:32px}.signature-card .actions button:first-child{background:#323037;color:white;min-width:178px}.signature-preview-card{min-height:420px}.signature-preview-card>p{font-size:13px;margin:18px 0;color:#323037}.signature-preview-card .signature-preview{margin-top:56px}.signature-card [role=alert]{color:#b5473d}.signature-field-name,.signature-field-role,.signature-field-phone,.signature-field-site{display:inline-block!important;width:calc(50% - 10px);vertical-align:top}.signature-field-name,.signature-field-phone{margin-right:20px}.signature-preview-card .signature-preview{font-size:12px}.signature-preview-card .signature-preview img{width:160px}.signature-preview-card .signature-preview>div{min-width:0;overflow-wrap:anywhere}@media(max-width:1000px){.signature-columns{grid-template-columns:1fr}.signature-preview-card{min-height:300px}}@media(max-width:650px){.signature-page>header{gap:12px}.signature-page h1{font-size:22px}.signature-card{padding:18px}.signature-field-name,.signature-field-role,.signature-field-phone,.signature-field-site{width:100%;margin-right:0}}
/* Signature settings, frame 65:2: form rhythm and upload controls. */
.signature-page>header{height:40px;margin-bottom:32px}.signature-page>header>button{width:200px;text-align:left}.signature-card{padding:24px}.signature-card h2{margin-bottom:24px}.signature-card label{margin-bottom:24px}.signature-card h3{font-size:15px;font-weight:500;margin:28px 0 16px}.signature-logo-field{margin:4px 0 0}.signature-logo-field>p{font-size:12px;margin:0 0 10px}.signature-upload-row{display:flex;align-items:center;gap:16px}.signature-upload-row button{width:140px;text-align:left}.signature-upload-row small{font-size:11px;color:#737580}.signature-upload-row input[hidden]{display:none!important}.signature-remove-logo{margin-top:8px;height:26px!important;font-size:11px!important;border:0!important;padding:0!important;background:transparent!important}.signature-card label:has(input[type=checkbox]){margin:0 0 16px;font-size:14px}.signature-card .actions{justify-content:flex-start;margin-top:42px}.signature-preview-card{position:relative;min-height:420px}.signature-preview-hint{display:block;margin-top:72px;font-size:12px;color:#7b7c8b}.signature-preview-card .signature-preview{margin-top:56px}.signature-preview-card .signature-preview>div{font-size:12px;line-height:1.9}.signature-preview-card .signature-preview strong{font-size:14px}.signature-preview-card>p{margin:16px 0}.signature-page h1{font-size:27px;font-weight:600}@media(max-width:650px){.signature-page>header>button{width:auto}.signature-page>header{height:auto}.signature-upload-row{flex-wrap:wrap}.signature-preview-hint{margin-top:40px}}
.signature-remove-logo{display:none}.signature-card .actions{margin-top:38px}.signature-card label:has(input[type=checkbox]){margin-bottom:14px}.signature-page>header{margin-bottom:30px}
/* Composer layout from Figma 65:290. */
.mail-detail:has(.compose-form) .detail-toolbar{display:none}.detail-content:has(.compose-form){padding:20px 24px}.compose-form{max-width:none;min-height:100%;display:flex;flex-direction:column}.compose-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.compose-header h2{margin:0;font-size:22px}.compose-header button{height:38px;min-width:128px;background:white;border:1px solid var(--email-border);border-radius:7px;text-align:left;padding:0 12px;font-size:12px}.compose-form label{font-size:12px;font-weight:400;color:#323037;margin-bottom:16px}.compose-form input{height:40px;margin-top:8px;padding:0 12px;font-size:12px;border:1px solid var(--email-border);border-radius:7px}.compose-field-body{margin-top:16px!important}.compose-field-body{font-size:0!important}.compose-form textarea{border:0;min-height:90px;margin:0;padding:8px 0;font:14px/1.6 Inter,system-ui;resize:vertical}.compose-form .signature-preview{margin-top:20px;margin-bottom:24px}.compose-actions{justify-content:flex-start;margin-top:auto;padding-top:32px}.compose-actions button{min-width:108px;height:38px;font-size:12px}.compose-field-cc,.compose-field-bcc{display:none!important}.compose-form:has(input[name=cc]:not(:placeholder-shown)) .compose-field-cc{display:block!important}.compose-files>div{display:flex;justify-content:space-between;align-items:center;padding:8px;border:1px solid var(--email-border);border-radius:7px;margin-bottom:6px;font-size:12px}.compose-files button{border:0;background:none;color:#b5473d}.compose-form input[hidden]{display:none!important}
.compose-field-cc,.compose-field-bcc{display:block!important}
.compose-form .compose-field-cc[hidden],.compose-form .compose-field-bcc[hidden]{display:none!important}.compose-copy-controls{display:flex;gap:12px;margin:-6px 0 14px}.compose-copy-controls button{padding:3px 0;border:0;background:transparent;color:#55596d;font-size:12px}.compose-copy-controls button:hover{color:#101013;text-decoration:underline}.compose-copy-controls:has(button:not([hidden])){min-height:22px}.compose-copy-controls:not(:has(button:not([hidden]))){display:none}
.detail-content>.reading-actions{position:sticky;bottom:0;z-index:2;padding:12px 0;margin-top:24px;background:#fff;flex-shrink:0}
