:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#233533;background:#f5f7f7;font-size:16px;--green:#146e61;--dark:#183c35;--muted:#71807d;--line:#e4eae7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #81c5b5;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #87bfaf;outline-offset:1px}button{transition:background .16s}label{display:grid;gap:9px;font-size:.875rem;font-weight:600;margin:22px 0}input,textarea,select{width:100%;border:1px solid #dbe3df;border-radius:9px;padding:13px 14px;background:#fff;color:#233533;font-weight:400}input::placeholder,textarea::placeholder{color:#96a19e}textarea{resize:vertical;line-height:1.65}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23657470' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}[hidden]{display:none!important}.primary,.secondary{border-radius:9px;padding:13px 19px;font-weight:600;font-size:.9rem}.primary{background:var(--green);color:#fff}.primary:hover{background:#105a50}.secondary{background:white;border:1px solid #d8e2dd;color:#2b4b43}.secondary:hover{background:#eff5f1}.wide{width:100%}.muted{color:var(--muted);line-height:1.7}.small{font-size:.875rem;line-height:1.6}.eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:700;color:#75918a}.brand{display:flex;align-items:center;gap:7px;text-decoration:none;font-size:1.7rem;font-weight:750;letter-spacing:-.06em}.brand-light{font-weight:400;margin-left:-6px}.brand-icon{display:grid;place-items:center;width:37px;height:37px;background:#1c7766;color:white;border-radius:11px;font-size:2rem;margin-right:7px;line-height:1}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#133e35;color:white;padding:48px 8%;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story:before{content:"";position:absolute;width:580px;height:580px;border:1px solid #ffffff08;border-radius:50%;bottom:-340px;right:-230px;box-shadow:0 0 0 65px #ffffff03,0 0 0 130px #ffffff02}.auth-story .brand-icon{background:#d1eadb;color:#144e40}.story-copy{margin:auto 0;max-width:560px;padding:65px 0}.story-copy .eyebrow{color:#a6d4bd}.story-copy h1{font-size:clamp(2.5rem,3.5vw,3.75rem);font-weight:550;letter-spacing:-.055em;line-height:1.16;margin:24px 0}.story-copy>p{color:#b3cdc4;line-height:1.8;font-size:1.05rem;max-width:460px}.mail-illustration{background:#fff;color:#2b3c35;border-radius:14px;padding:0 23px;margin-top:36px;max-width:440px;box-shadow:0 18px 50px #082c3740;transform:rotate(-2deg)}.illus-header{padding:17px 0;display:flex;align-items:center;gap:8px;font-size:.8rem;border-bottom:1px solid #edf0eb}.illus-dot{width:7px;height:7px;border-radius:50%;background:#4caa78}.illus-badge{margin-left:auto;font-size:.7rem;background:#f0f5ef;padding:5px 7px;border-radius:5px;color:#72917f}.illus-row{display:flex;gap:13px;align-items:center;padding:19px 0;border-bottom:1px solid #eef1ee}.illus-row strong{font-size:.875rem}.illus-row small{display:block;margin-top:5px;font-size:.75rem;color:#8a938c}.illus-time{margin-left:auto;color:#8f9994;font-size:.75rem}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;font-size:.875rem;font-weight:600;flex-shrink:0}.teal{background:#e3efe7;color:#3c775d}.pink{background:#f4e8de;color:#ae866d}.illus-footer{display:flex;justify-content:space-between;font-size:.75rem;color:#67917a;padding:16px 0}.story-foot{display:flex;justify-content:space-between;gap:20px;font-size:.75rem;letter-spacing:.1em;color:#87afa0}.story-foot span{letter-spacing:0}.auth-panel{display:grid;place-items:center;background:#fafbf9;padding:40px}.auth-card{width:100%;max-width:380px}.auth-card h2{font-size:2.2rem;font-weight:550;letter-spacing:-.045em;margin:18px 0 12px}.auth-card>.muted{margin:0 0 35px;font-size:.95rem}.auth-note{display:flex;gap:12px;border-top:1px solid var(--line);margin-top:30px;padding-top:25px;color:#85918c;font-size:.825rem;line-height:1.65}.auth-note p{margin:0}.note-icon{display:grid;place-items:center;border:1px solid #b5c8bd;border-radius:50%;width:18px;height:18px;font-size:.75rem;flex-shrink:0;margin-top:3px}.auth-bottom{font-size:.75rem;color:#9aa69f;margin-top:40px}.form-error{color:#ad3c3c;font-size:.875rem;line-height:1.6;white-space:pre-line}.form-error:empty{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#1c3d34;color:white;border-radius:12px;max-width:90vw;padding:16px 24px;box-shadow:0 10px 40px #0002;font-size:.9rem}.workspace{height:100vh;display:flex}.sidebar{width:260px;background:#f4f7f3;border-right:1px solid var(--line);padding:30px 20px 0;display:flex;flex-direction:column;flex-shrink:0}.sidebar .brand{font-size:1.6rem;margin:0 6px 33px}.compose-button{display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 4px 8px #17483116}.compose-button>span{font-size:1.4rem;font-weight:400;line-height:1}.side-label{font-size:.7rem;letter-spacing:.12em;color:#87958d;font-weight:650;display:flex;justify-content:space-between;align-items:center;margin:30px 10px 12px}.icon-button{background:transparent;color:#73847c;min-width:32px;min-height:32px;padding:4px 8px;border-radius:6px;font-size:1.3rem;line-height:1}.icon-button:hover{background:#e7eee7}.account-list{max-height:32vh;overflow:auto}.account-button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent;padding:11px 10px;border-radius:9px;color:#53685d;margin-bottom:4px}.account-button.active{background:#e0ece2;color:#275b44}.account-button .avatar{width:32px;height:32px;border-radius:9px;background:white;font-size:.8rem}.account-label{overflow:hidden}.account-label strong{display:block;font-size:.875rem;font-weight:600;overflow:hidden;text-overflow:ellipsis}.account-label small{display:block;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;margin-top:3px;opacity:.7}.add-empty{padding:13px 8px;background:transparent;color:var(--green);font-size:.875rem;text-align:left}.folder-label{margin-top:22px}.nav-item{padding:12px 13px;display:flex;align-items:center;gap:12px;background:transparent;width:100%;text-align:left;color:#718277;font-size:.875rem;border-radius:8px;margin:3px 0}.nav-item.active{background:#e6ede3;color:#255b43;font-weight:600}.nav-item:hover{background:#e9eee6}#folders{overflow:auto}.side-bottom{margin-top:auto;padding-top:20px}.user-card{border-top:1px solid #dde5db;display:flex;align-items:center;gap:9px;padding:22px 0;margin-top:15px}.user-card>div{min-width:0;flex:1}.user-card strong{display:block;font-size:.75rem;font-weight:600}.user-card small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:.7rem;color:#8a988e;margin-top:5px}.user-card .avatar{width:32px;height:32px}.main{min-width:0;flex:1;background:#fff;display:flex;flex-direction:column}.topbar{height:109px;flex-shrink:0;padding:25px 34px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line)}.topbar .eyebrow{font-size:.65rem;letter-spacing:.1em}.topbar h1{font-size:1.6rem;font-weight:600;letter-spacing:-.04em;margin:7px 0 0}.search{margin-left:auto;display:flex;align-items:center;border:1px solid #e4eae5;border-radius:8px;background:#f8faf7;width:360px;padding-left:14px;gap:8px}.search>span{font-size:1.5rem;color:#8a998f}.search input{border:0;background:transparent;font-size:.875rem;padding:11px 2px}.search button{background:transparent;font-size:.8rem;color:#62766b;padding:12px}.refresh{border:1px solid var(--line)}.mail-view{display:flex;min-height:0;flex:1}.list-panel{width:390px;max-width:43%;border-right:1px solid var(--line);display:flex;flex-direction:column}.list-toolbar{height:57px;border-bottom:1px solid var(--line);padding:12px 20px;display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:#8a968f;flex-shrink:0}.list-toolbar>div{display:flex;align-items:center;gap:4px}.messages{overflow-y:auto;flex:1}.message-item{background:white;text-align:left;width:100%;padding:20px 24px;border-bottom:1px solid #eff2ed;border-left:3px solid transparent;display:block}.message-item:hover{background:#f9fbf8}.message-item.selected{background:#f0f6ef;border-left-color:#3c9274}.message-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.message-sender{font-size:.875rem;color:#5b6c61;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.message-item.unread .message-sender{font-weight:700;color:#233e2d}.message-date{font-size:.7rem;color:#95a096;white-space:nowrap}.message-subject{font-size:.875rem;color:#6d7b70;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-item.unread .message-subject{color:#3c4e40;font-weight:600}.message-dot{display:inline-block;width:6px;height:6px;background:#3d9772;border-radius:50%;margin-right:6px;vertical-align:middle}.reader{overflow:auto;flex:1;min-width:0;padding:36px 42px}.empty-state{height:100%;min-height:280px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-envelope{width:76px;height:76px;display:grid;place-items:center;border-radius:24px;background:#edf4ec;color:#749c7e;font-size:2.6rem;margin-bottom:20px}.empty-state h2{font-size:1.45rem;font-weight:500;letter-spacing:-.03em;margin:0 0 14px}.empty-state p{font-size:.9rem;line-height:1.8;color:#91a08f;margin:0 0 26px}.reader h2{font-size:1.65rem;line-height:1.4;font-weight:600;letter-spacing:-.03em;word-break:break-word}.reader-meta{padding:22px 0;display:flex;align-items:flex-start;gap:13px;border-bottom:1px solid var(--line);font-size:.875rem}.reader-meta strong{display:block;line-height:1.7}.reader-meta small{display:block;color:var(--muted);font-size:.8rem;line-height:1.8;word-break:break-word}.reader-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:.95rem;margin:30px 0}.reader-actions{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.attachment{display:inline-block;padding:10px 14px;border:1px solid var(--line);border-radius:7px;text-decoration:none;font-size:.875rem;margin:5px}.loading,.list-empty{color:#87998b;padding:35px 24px;font-size:.9rem;line-height:1.8}.error-empty{color:#a54545}.settings-view{padding:20px 42px 60px;overflow:auto;max-width:1000px}.section-heading{margin:30px 0 20px}.section-heading h2{font-weight:600;font-size:1.3rem;letter-spacing:-.03em;margin:0 0 8px}.section-heading p{font-size:.9rem;color:var(--muted);line-height:1.7;margin:0}.settings-list{margin:18px 0}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);font-size:.9rem}.settings-row small{display:block;font-size:.8rem;color:var(--muted);margin-top:5px}.danger-button{color:#a64c4c;background:#fbf2f1;padding:8px 12px;border-radius:7px;font-size:.8rem}.token-form{padding:22px;background:#f6f8f4;border:1px solid var(--line);border-radius:12px}.token-form>label:first-child{margin-top:0}.checks{display:flex;gap:22px;flex-wrap:wrap}.checks label{display:flex;align-items:center;gap:8px;font-weight:400;margin:0 0 22px;font-size:.875rem}.checks input{width:17px;height:17px;accent-color:var(--green)}.secret-box{padding:20px;border-radius:10px;background:#edf4e8;color:#365a3b;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem;line-height:1.8;margin:20px 0;user-select:all}.inline-form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}.inline-form label{flex:1;min-width:180px;margin:0}.audit-list{font-size:.8rem;line-height:1.8;color:var(--muted)}.audit-item{padding:10px 0;border-bottom:1px solid var(--line)}dialog{border:1px solid #d9e4d9;padding:30px;border-radius:16px;width:480px;max-width:calc(100vw - 32px);max-height:90vh;box-shadow:0 24px 100px #16322330;color:#233533}dialog::backdrop{background:#173b3255;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-header h2{font-size:1.5rem;letter-spacing:-.035em;font-weight:550;margin:10px 0}.dialog-header .eyebrow{font-size:.7rem}.dialog-header .icon-button{font-size:1.7rem}.compose-dialog{width:680px}.compose-dialog label{margin:16px 0}.compose-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.draft-card{padding:20px;border:1px solid var(--line);border-radius:10px;margin-bottom:15px}.draft-card h3{font-size:1rem;margin:0 0 8px}.draft-card p{font-size:.875rem;white-space:pre-wrap;line-height:1.7;color:var(--muted);max-height:180px;overflow:auto}.draft-card .secondary{font-size:.8rem;padding:8px 12px}.status-tag{display:inline-block;background:#eef4ea;padding:4px 9px;border-radius:5px;font-size:.75rem;color:#6a8067;margin:10px 0}.send-detail{font-size:.875rem;line-height:1.8;overflow-wrap:anywhere}.send-preview{white-space:pre-wrap;overflow:auto;max-height:250px;padding:18px;background:#f6f8f3;border-radius:8px;line-height:1.7;font-size:.875rem}
@media(min-width:1600px){.list-panel{width:450px}.reader{padding:40px 60px}}@media(max-width:1100px){.sidebar{width:220px;padding:25px 14px 0}.topbar{padding:20px 24px}.search{width:280px}.reader{padding:25px}.list-panel{width:330px}.auth-story{padding:40px 7%}.story-copy h1{font-size:2.7rem}.story-foot{display:block}.story-foot span{display:block;margin-top:10px}.message-item{padding:17px}.checks{gap:13px}}@media(max-width:760px){.auth{grid-template-columns:1fr}.auth-story{padding:25px}.story-copy{padding:35px 0}.story-copy h1{font-size:2.4rem}.story-copy>p{font-size:.95rem}.mail-illustration,.story-foot{display:none}.auth-panel{padding:40px 25px}.auth-card{max-width:460px}.sidebar{width:70px;padding:20px 8px}.sidebar .brand{font-size:0;margin:0 auto 25px;justify-content:center;gap:0}.sidebar .brand-icon{font-size:1.8rem;margin:0}.sidebar .brand-light{display:none}.compose-button{font-size:0;padding:10px}.compose-button>span{font-size:1.6rem}.side-label{font-size:0;margin:20px 0 8px;justify-content:center}.folder-label,#folders{display:none}.account-button{padding:7px;justify-content:center}.account-label{display:none}.sidebar .nav-item{justify-content:center;padding:12px 0}.sidebar .nav-item span{display:none}.user-card{justify-content:center}.user-card>div,.user-card>.avatar{display:none}.add-empty{font-size:0}.add-empty:before{content:'＋';font-size:1.5rem}.topbar{height:auto;min-height:100px;flex-wrap:wrap;gap:10px;padding:18px}.topbar h1{font-size:1.3rem}.topbar .eyebrow{font-size:.6rem}.search{order:3;width:100%;margin:0}.refresh{margin-left:auto}.mail-view{flex-direction:column;overflow:auto}.list-panel{width:100%;max-width:none;max-height:45vh;min-height:180px;border-right:0;border-bottom:1px solid var(--line);flex-shrink:0}.reader{min-height:320px;overflow:visible;padding:24px 20px}.message-item{padding:13px 18px}.message-subject{font-size:.825rem}.message-top{margin-bottom:4px}.settings-view{padding:10px 20px 40px}.checks{display:block}.checks label{margin:15px 0}.token-form{padding:17px}.compose-actions{flex-wrap:wrap}.compose-actions button{flex:1}dialog{padding:22px}.settings-row{align-items:flex-start;flex-wrap:wrap}.settings-row>div{max-width:100%;overflow-wrap:anywhere}.reader-actions{gap:8px}.reader-actions button,.reader-actions a{font-size:.8rem}.illus-header{font-size:.75rem}}
