:root{
  --cream:#FFF8EE;--paper:#FFFEFB;--sand:#F7D9AE;--gold:#FFD783;--peach:#F6A45F;--coral:#ED7B43;--blue:#86B9D8;--mist:#D6ECE8;--olive:#78845B;--ink:#2B2523;--soft:#715E52;--line:rgba(43,37,35,.10);--shadow:0 18px 50px rgba(112,72,35,.12);--shadow2:0 8px 24px rgba(112,72,35,.08);--radius:24px;--rail:248px;--top:74px;
  font-family:Inter,ui-rounded,"SF Pro Rounded","Segoe UI",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:linear-gradient(160deg,#fffaf2 0%,#fff3e2 55%,#f9ead7 100%);color:var(--ink)}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit}.eyebrow{font-size:.72rem;letter-spacing:.14em;font-weight:850;color:var(--soft)}[hidden]{display:none!important}
.auth-gate{min-height:100dvh;display:grid;place-content:center;justify-items:center;text-align:center;padding:32px 22px;background:radial-gradient(circle at 50% 12%,rgba(255,215,131,.55),transparent 34%),linear-gradient(160deg,#fffaf1,#fbe8cf)}.mail-mark{width:118px;height:92px;position:relative;margin-bottom:24px;border-radius:30px;background:var(--paper);box-shadow:var(--shadow);display:grid;place-items:center;overflow:hidden;border:1px solid rgba(237,123,67,.15)}.mail-mark:before,.mail-mark:after{content:"";position:absolute;bottom:-25px;width:80px;height:80px;background:var(--peach);transform:rotate(45deg)}.mail-mark:before{left:-34px}.mail-mark:after{right:-34px;background:var(--gold)}.mail-mark span{position:relative;z-index:2;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--coral);color:white;font-size:1.6rem;font-weight:900;box-shadow:0 8px 20px rgba(237,123,67,.27)}.auth-gate h1{font-size:clamp(2.3rem,9vw,4.8rem);line-height:.95;margin:10px 0 14px;letter-spacing:-.055em}.auth-gate>p{max-width:520px;color:var(--soft);font-size:1.05rem;margin:0 0 22px}.auth-form{width:min(440px,calc(100vw - 44px));background:rgba(255,254,251,.9);border:1px solid var(--line);padding:22px;border-radius:28px;box-shadow:var(--shadow2);display:grid;gap:12px;text-align:left}.auth-form label{font-weight:800}.auth-form input{width:100%;border:1px solid var(--line);border-radius:16px;background:white;padding:15px 16px;outline:none}.auth-form input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(134,185,216,.28)}.auth-form .otp{text-align:center;font-size:1.8rem;letter-spacing:.25em;font-weight:800}.auth-form small{text-align:center;color:var(--soft)}.auth-row{display:flex;gap:10px;justify-content:center}.home-link{margin-top:22px;color:var(--soft);text-decoration:none;font-weight:700}.primary,.soft,.text,.compose,.icon-btn,.avatar-btn,.load-more{min-height:44px;border:0;border-radius:14px;font-weight:800}.primary{background:var(--coral);color:#fff;padding:12px 18px;box-shadow:0 8px 20px rgba(237,123,67,.22)}.primary:hover{filter:brightness(.98)}.soft{background:var(--sand);padding:11px 16px}.text{background:transparent;color:var(--soft);padding:10px}.mail-app{min-height:100dvh;background:var(--cream)}.topbar{position:fixed;z-index:30;left:0;right:0;top:0;height:var(--top);display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--line);background:rgba(255,248,238,.90);backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:42px;height:42px;border-radius:15px;background:linear-gradient(145deg,var(--coral),var(--peach));color:white;display:grid;place-items:center;font-weight:900;box-shadow:0 6px 16px rgba(237,123,67,.25)}.brand small,.brand strong{display:block}.brand small{font-size:.64rem;letter-spacing:.12em;color:var(--soft);font-weight:800}.brand strong{font-size:1.12rem}.top-actions{display:flex;gap:8px;align-items:center}.icon-btn,.avatar-btn{width:44px;padding:0;background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 12px rgba(80,60,40,.05)}.avatar-btn{border-radius:50%;background:var(--ink);color:white}.side-rail{position:fixed;z-index:20;left:0;top:var(--top);bottom:0;width:var(--rail);padding:22px 14px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:rgba(255,254,251,.68)}.compose{display:flex;align-items:center;gap:10px;justify-content:center;background:linear-gradient(145deg,var(--gold),var(--peach));padding:12px 16px;box-shadow:var(--shadow2);margin:0 6px 20px}.compose span{font-size:1.35rem}.folder-nav{display:grid;gap:4px}.folder-link{border:0;background:transparent;display:grid;grid-template-columns:32px 1fr auto;align-items:center;text-align:left;gap:8px;min-height:46px;border-radius:14px;padding:0 12px;color:var(--soft);font-weight:750}.folder-link.active{background:var(--sand);color:var(--ink)}.folder-link .count{font-size:.78rem}.rail-footer{margin-top:auto;padding:16px 10px 6px;display:grid;gap:8px;border-top:1px solid var(--line)}.rail-footer a{text-decoration:none;font-weight:800}.rail-footer small{color:var(--soft)}.mail-main{margin-left:var(--rail);padding-top:var(--top);min-height:100dvh}.connect-view{min-height:calc(100dvh - var(--top));display:grid;place-items:center;padding:28px}.connect-card{width:min(620px,100%);background:var(--paper);border:1px solid var(--line);border-radius:32px;padding:38px;text-align:center;box-shadow:var(--shadow)}.connect-card h2{font-size:clamp(2rem,5vw,3.1rem);margin:10px 0 10px;letter-spacing:-.04em}.connect-card p{color:var(--soft);line-height:1.6}.postbox-illustration{height:150px;position:relative;width:220px;margin:0 auto 20px}.postbox-illustration .box{position:absolute;left:28px;bottom:20px;width:150px;height:95px;border-radius:48px 48px 18px 18px;background:linear-gradient(150deg,var(--peach),var(--coral));display:grid;place-items:center;box-shadow:0 15px 28px rgba(237,123,67,.22)}.postbox-illustration .box:after{content:"";position:absolute;left:12px;right:12px;top:43px;height:6px;background:#fff7eb;border-radius:8px}.postbox-illustration .box span{font-weight:900;color:white;font-size:2rem;margin-top:-25px}.postbox-illustration .flag{position:absolute;right:25px;top:28px;width:6px;height:72px;background:var(--ink);border-radius:3px}.postbox-illustration .flag:before{content:"";position:absolute;left:0;top:0;width:48px;height:30px;border-radius:4px 12px 12px 4px;background:var(--gold)}.mail-view{height:calc(100dvh - var(--top));display:grid;grid-template-columns:minmax(320px,42%) 1fr}.list-panel{border-right:1px solid var(--line);background:rgba(255,254,251,.48);overflow:auto}.list-head{position:sticky;top:0;z-index:8;background:rgba(255,248,238,.94);backdrop-filter:blur(16px);display:flex;justify-content:space-between;align-items:center;padding:22px 22px 12px}.list-head h2{font-size:2rem;margin:4px 0 0;letter-spacing:-.04em}.search-bar{display:grid;grid-template-columns:1fr auto auto;gap:7px;padding:0 18px 12px}.search-bar input{border:1px solid var(--line);border-radius:15px;padding:12px 14px;background:white}.search-bar button{border:0;border-radius:13px;background:var(--sand);font-weight:800;padding:0 13px}.message-list{padding:4px 10px 100px}.message-row{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;display:grid;grid-template-columns:48px 1fr auto;gap:12px;text-align:left;padding:16px 10px;border-radius:16px;transition:.15s ease}.message-row:hover,.message-row.active{background:rgba(247,217,174,.55)}.message-row.unread strong,.message-row.unread .subject{font-weight:900}.sender-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--mist);font-weight:900;color:#4b6768}.message-copy{min-width:0}.message-top{display:flex;align-items:center;gap:8px}.message-top strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-copy .subject{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-copy p{margin:3px 0 0;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem}.message-row time{font-size:.74rem;color:var(--soft);white-space:nowrap}.attach-dot{font-size:.75rem;color:var(--soft)}.load-more{display:block;margin:-78px auto 30px;padding:10px 18px;background:var(--paper);border:1px solid var(--line)}.message-panel{height:100%;overflow:auto;padding:28px 34px 110px;background:var(--paper)}.empty-message{display:grid;place-content:center;text-align:center;color:var(--soft)}.empty-envelope{font-size:3rem;margin-bottom:12px}.message-header{border-bottom:1px solid var(--line);padding-bottom:18px}.message-header h2{font-size:2rem;line-height:1.15;margin:8px 0 18px;letter-spacing:-.035em}.from-line{display:flex;gap:12px;align-items:center}.from-line .sender-avatar{flex:none}.from-meta{min-width:0}.from-meta strong,.from-meta small{display:block}.from-meta small{color:var(--soft);margin-top:2px;overflow:hidden;text-overflow:ellipsis}.message-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.message-actions button{border:1px solid var(--line);background:var(--cream);border-radius:12px;min-height:40px;padding:8px 12px;font-weight:800}.message-actions .danger{color:#9b4938}.message-content{font-family:Arial,Helvetica,sans-serif;line-height:1.55;overflow-wrap:anywhere}.message-content img{max-width:100%;height:auto}.message-content table{max-width:100%!important}.reply-box{margin-top:32px;border-top:1px solid var(--line);padding-top:22px}.reply-box textarea{width:100%;border:1px solid var(--line);border-radius:16px;padding:14px;background:white;resize:vertical}.reply-actions{display:flex;justify-content:flex-end;margin-top:10px}.skeleton-list{padding:5px}.skeleton-list i{display:block;height:74px;border-radius:15px;margin:8px;background:linear-gradient(90deg,#f4e8d8,#fff8ee,#f4e8d8);background-size:240% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-240% 0}}.compose-dialog{border:0;border-radius:28px;padding:0;width:min(620px,calc(100vw - 24px));box-shadow:0 30px 90px rgba(48,35,25,.28);background:var(--paper)}.compose-dialog::backdrop{background:rgba(43,37,35,.28);backdrop-filter:blur(4px)}.compose-dialog form{display:grid;gap:0}.compose-dialog header{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,rgba(255,215,131,.46),rgba(246,164,95,.18))}.compose-dialog header small,.compose-dialog header strong{display:block}.compose-dialog header small{font-size:.66rem;color:var(--soft);letter-spacing:.12em;font-weight:800}.compose-dialog label{display:grid;grid-template-columns:70px 1fr;align-items:center;border-bottom:1px solid var(--line);padding:0 18px;font-weight:750}.compose-dialog label input{border:0;background:transparent;padding:15px 0;outline:none}.compose-dialog .body-label{display:block;padding:14px 18px;border:0}.compose-dialog textarea{display:block;width:100%;border:0;outline:0;resize:vertical;background:transparent;padding:12px 0;line-height:1.5}.compose-dialog footer{display:flex;justify-content:space-between;padding:14px 18px;border-top:1px solid var(--line)}.cc-toggle{justify-self:end;margin:4px 18px}.cc-fields{background:rgba(247,217,174,.18)}.toast{position:fixed;z-index:100;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:white;border-radius:16px;padding:11px 16px;box-shadow:var(--shadow);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-nav{display:none}
@media(max-width:820px){:root{--top:66px}.topbar{padding:8px 13px}.brand small{display:none}.side-rail{display:none}.mail-main{margin-left:0;padding-bottom:74px}.mail-view{height:calc(100dvh - var(--top) - 70px);display:block}.list-panel{height:100%;border-right:0}.message-panel{position:fixed;z-index:50;inset:var(--top) 0 70px 0;transform:translateX(100%);transition:transform .24s ease;padding:20px 20px 80px}.message-panel.open{transform:translateX(0)}.message-panel.open:before{content:"‹ Inbox";display:block;font-weight:850;color:var(--coral);margin-bottom:10px;cursor:pointer}.list-head{padding:18px 16px 8px}.list-head h2{font-size:1.75rem}.message-list{padding:4px 8px 90px}.message-row{grid-template-columns:42px 1fr auto;padding:14px 8px}.sender-avatar{width:40px;height:40px}.mobile-nav{position:fixed;z-index:60;display:grid;grid-template-columns:repeat(4,1fr);left:0;right:0;bottom:0;height:70px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,254,251,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line)}.mobile-nav button{border:0;background:transparent;display:grid;place-items:center;align-content:center;gap:3px;font-size:1.1rem;color:var(--soft)}.mobile-nav button small{font-size:.65rem;font-weight:800}.mobile-nav button.active{color:var(--coral)}.mobile-nav .mobile-compose{width:48px;height:48px;border-radius:17px;background:var(--coral);color:white;place-self:center;box-shadow:0 8px 18px rgba(237,123,67,.25)}.mobile-nav .mobile-compose small{display:none}.compose-dialog{width:100%;max-width:none;border-radius:26px 26px 0 0;margin:auto 0 0;height:min(86dvh,720px)}.compose-dialog form{height:100%}.compose-dialog .body-label{flex:1}.compose-dialog textarea{height:calc(100% - 40px)}.connect-view{min-height:calc(100dvh - var(--top));padding:18px}.connect-card{padding:28px 20px}.toast{bottom:86px;max-width:calc(100vw - 28px);text-align:center}}
@media(min-width:821px) and (max-width:1180px){:root{--rail:210px}.mail-view{grid-template-columns:minmax(320px,48%) 1fr}.message-panel{padding:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}


/* Bobbi Mail V1.0.2 — playful responsive icon system */
.ui-icon{width:1.35em;height:1.35em;display:block;flex:none}
.icon-btn{display:grid;place-items:center;color:var(--ink);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.icon-btn .ui-icon{width:22px;height:22px}
.icon-btn:hover{transform:translateY(-1px);background:#fff8ef;box-shadow:0 8px 18px rgba(80,60,40,.09)}
.compose{justify-content:flex-start;min-height:54px;border-radius:18px;font-size:.96rem;padding:8px 12px;gap:10px}
.compose-orb{width:36px;height:36px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.72);color:var(--coral);box-shadow:inset 0 0 0 1px rgba(237,123,67,.09)}
.compose-orb .ui-icon{width:21px;height:21px}
.folder-nav{gap:6px}.folder-link{grid-template-columns:38px 1fr auto;gap:10px;min-height:50px;padding:5px 10px;border-radius:17px;font-size:.94rem}
.folder-icon,.mobile-icon,.rail-home-icon{display:grid;place-items:center;flex:none}
.folder-icon{width:36px;height:36px;border-radius:13px;background:rgba(214,236,232,.72);color:#54797a;transition:transform .16s ease,background .16s ease}
.folder-icon .ui-icon{width:20px;height:20px}
.folder-link:hover .folder-icon,.folder-link.active .folder-icon{transform:rotate(-3deg) scale(1.04)}
.folder-link.active .folder-icon{background:rgba(255,255,255,.75);color:var(--coral)}
.folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icon-drafts{background:rgba(134,185,216,.20)!important;color:#4f7894!important}.icon-sent{background:rgba(255,215,131,.40)!important;color:#9b6727!important}.icon-trash{background:rgba(237,123,67,.13)!important;color:#a2523c!important}.icon-spam{background:rgba(246,164,95,.18)!important;color:#a86534!important}.icon-archive{background:rgba(120,132,91,.16)!important;color:#65704c!important}.icon-snoozed{background:rgba(247,217,174,.55)!important;color:#896b43!important}.icon-outbox{background:rgba(134,185,216,.20)!important;color:#4f7894!important}
.rail-footer a{display:flex;align-items:center;gap:9px}.rail-home-icon{width:30px;height:30px;border-radius:11px;background:rgba(255,215,131,.34);color:#8b612b}.rail-home-icon .ui-icon{width:17px;height:17px}
.attach-dot{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:8px;background:rgba(134,185,216,.18);color:#547b95}.attach-dot .ui-icon{width:13px;height:13px}
.empty-envelope{width:72px;height:72px;margin:0 auto 14px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,215,131,.55),rgba(246,164,95,.34));color:var(--coral);box-shadow:0 12px 28px rgba(112,72,35,.10)}.empty-envelope .ui-icon{width:36px;height:36px}
.message-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 13px}.message-actions button .ui-icon{width:18px;height:18px}
.back-button{display:inline-flex;align-items:center;gap:5px;padding:8px 4px}.back-button .ui-icon{width:18px;height:18px}

@media(max-width:820px){
  .top-actions{gap:9px}.icon-btn,.avatar-btn{width:46px;height:46px;border-radius:16px}.avatar-btn{border-radius:50%}.icon-btn .ui-icon{width:23px;height:23px}
  .brand{gap:10px}.brand-icon{width:44px;height:44px;border-radius:15px}.brand strong{font-size:1.28rem;letter-spacing:-.025em}
  .mail-main{padding-bottom:82px}.mail-view{height:calc(100dvh - var(--top) - 78px)}
  .list-head{padding:20px 20px 10px}.list-head h2{font-size:2.05rem}.list-head .icon-btn{width:48px;height:48px;border-radius:17px}
  .message-list{padding:6px 12px 104px}.message-row{grid-template-columns:50px minmax(0,1fr) auto;gap:12px;padding:17px 10px;border-radius:20px}.sender-avatar{width:46px;height:46px;font-size:.95rem}.message-top strong{font-size:1rem}.message-copy .subject{font-size:.98rem}.message-copy p{font-size:.86rem}.message-row time{font-size:.72rem;padding-top:2px}
  .mobile-nav{height:78px;grid-template-columns:repeat(4,1fr);padding:5px 8px calc(5px + env(safe-area-inset-bottom));gap:2px;box-shadow:0 -8px 24px rgba(112,72,35,.06)}
  .mobile-nav button{min-width:0;gap:4px;font-size:inherit;border-radius:17px;padding:4px 2px;transition:transform .16s ease,background .16s ease}.mobile-nav button:active{transform:scale(.96)}
  .mobile-nav button small{font-size:.68rem;line-height:1;font-weight:850;letter-spacing:-.01em;white-space:nowrap;max-width:68px;overflow:hidden;text-overflow:ellipsis}
  .mobile-icon{width:38px;height:36px;border-radius:13px;background:rgba(214,236,232,.70);color:#54797a}.mobile-icon .ui-icon{width:22px;height:22px}.mobile-nav button.active .mobile-icon{background:rgba(246,164,95,.18)!important;color:var(--coral)!important;box-shadow:inset 0 0 0 1px rgba(237,123,67,.10)}
  .mobile-compose{width:auto!important;height:auto!important;border-radius:17px!important;background:transparent!important;color:var(--soft)!important;box-shadow:none!important;place-self:stretch!important}
  .mobile-compose .compose-orb{width:48px;height:48px;border-radius:17px;background:linear-gradient(145deg,var(--coral),var(--peach));color:white;box-shadow:0 9px 18px rgba(237,123,67,.24)}.mobile-compose .compose-orb .ui-icon{width:26px;height:26px}.mobile-compose small{display:block!important;color:var(--coral)}
  .message-panel{inset:var(--top) 0 78px 0;padding:18px 18px 90px}.message-panel.open:before{display:none}.message-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.message-actions button{padding:8px 5px;font-size:.78rem;gap:5px}.message-actions button .ui-icon{width:18px;height:18px}
  .empty-envelope{width:76px;height:76px;border-radius:25px}.empty-envelope .ui-icon{width:38px;height:38px}
}
@media(min-width:821px){
  .folder-link{font-size:.96rem}.folder-icon{width:38px;height:38px}.folder-icon .ui-icon{width:21px;height:21px}.compose{font-size:1rem}.compose-orb{width:38px;height:38px}.compose-orb .ui-icon{width:22px;height:22px}
  .message-actions button{font-size:.9rem}
}
