:root{--white: #ffffff;--gray: #f5f5f5;--gray-line: #e8e8e8;--ink: #1a1a1a;--ink-soft: #666666;--ink-mute: #888888;--primary: #0f8a37;--primary-deep: #0c6f2c;--primary-soft: #e8f5ec;--danger: #b42318;--warn-bg: #fff8eb;--warn-line: #e8c48a;--sidebar: 200px;--list: 300px;--radius: 6px;--font-display: "Fraunces", Georgia, serif;--font-body: "Manrope", system-ui, sans-serif}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{font-family:var(--font-body);font-size:13px;color:var(--ink);background:var(--gray);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%}.boot,.login-shell{min-height:100%;display:grid;place-items:center;padding:1rem;background:var(--gray)}.login-panel{width:min(340px,100%);text-align:center;animation:rise .55s ease both}.login-logo{width:120px;margin:0 auto 1rem;display:block;pointer-events:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.login-panel h1{margin:0;font-family:var(--font-display);font-size:1.45rem;font-weight:700;letter-spacing:-.02em;color:var(--primary);line-height:1.1}.tagline{margin:.3rem 0 1.1rem;color:var(--ink-soft);font-size:.82rem}.login-form{display:grid;gap:.65rem;text-align:left;background:var(--white);border:1px solid var(--gray-line);border-radius:8px;padding:.9rem}label{display:grid;gap:.25rem;font-size:.72rem;font-weight:600;color:var(--ink-soft)}input,textarea,select{width:100%;border:1px solid var(--gray-line);background:var(--white);color:var(--ink);border-radius:5px;padding:.5rem .6rem;outline:none;font-size:.82rem}input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 2px #0f8a3726}.btn{border:0;border-radius:5px;padding:.5rem .75rem;font-size:.8rem;font-weight:650;background:var(--primary);color:var(--white);transition:background .12s}.btn:hover{background:var(--primary-deep)}.btn:disabled{opacity:.65}.btn.ghost{background:var(--white);color:var(--ink-soft);border:1px solid var(--gray-line)}.btn.ghost:hover{background:var(--gray);color:var(--ink)}.btn.soft{background:var(--primary-soft);color:var(--primary-deep)}.btn.soft:hover{background:#d8eedf}.btn.danger{background:var(--white);color:var(--danger);border:1px solid #f0c4c0}.btn.danger:hover{background:#fff5f4}.form-error{margin:0;color:var(--danger);font-size:.78rem}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes slide-in{0%{opacity:0;transform:translate(6px)}to{opacity:1;transform:none}}.mail-shell{height:100%;display:grid;grid-template-columns:var(--sidebar) var(--list) 1fr;background:var(--white)}.sidebar{display:flex;flex-direction:column;gap:.55rem;padding:.75rem .6rem;background:var(--white);border-right:1px solid var(--gray-line);color:var(--ink)}.sidebar-top{padding:.15rem .3rem .35rem;text-align:center}.sidebar-logo{width:96px;display:block;margin:0 auto;pointer-events:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.user-email{display:block;margin-top:.4rem;font-size:.68rem;color:var(--ink-mute);word-break:break-all;text-align:center}.compose-btn{width:100%;border:0;border-radius:6px;padding:.55rem .7rem;font-size:.8rem;font-weight:700;background:var(--primary);color:var(--white)}.compose-btn:hover{background:var(--primary-deep)}.nav-block{display:grid;gap:.1rem}.nav-label{margin:.5rem .35rem .2rem;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-mute)}.nav-block button{display:flex;align-items:center;justify-content:space-between;gap:.4rem;width:100%;border:0;background:transparent;color:var(--ink-soft);text-align:left;padding:.42rem .55rem;border-radius:5px;font-size:.8rem;font-weight:500}.nav-block button:hover{background:var(--gray);color:var(--ink)}.nav-block button.active{background:var(--primary-soft);color:var(--primary-deep);font-weight:700}.nav-block .count{min-width:1.1rem;height:1.1rem;padding:0 .28rem;border-radius:999px;display:inline-grid;place-items:center;background:var(--primary);color:var(--white);font-size:.62rem;font-weight:800}.sidebar-foot{margin-top:auto;display:grid;gap:.3rem}.sidebar-foot .btn{background:var(--white);border:1px solid var(--gray-line);color:var(--ink-soft)}.sidebar-foot .btn:hover{background:var(--gray);color:var(--ink)}.list-pane{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--gray-line);background:var(--gray)}.list-head{padding:.7rem .75rem .55rem;background:var(--white);border-bottom:1px solid var(--gray-line);display:flex;align-items:flex-start;justify-content:space-between;gap:.55rem}.list-head-main{min-width:0}.list-head h1{margin:0;font-family:var(--font-display);font-size:1.05rem;font-weight:650;color:var(--ink);letter-spacing:-.02em}.sync-btn{flex-shrink:0;white-space:nowrap;padding:.4rem .65rem;font-size:.74rem}.sync-btn:disabled{opacity:.55;cursor:default}.list-meta{margin:.15rem 0 0;font-size:.7rem;color:var(--ink-mute)}.search-row{display:flex;gap:.3rem;padding:.5rem .65rem;border-bottom:1px solid var(--gray-line);background:var(--white)}.search-row input{flex:1;padding:.42rem .55rem;background:var(--gray);border-color:transparent}.search-row input:focus{background:var(--white);border-color:var(--primary)}.search-row .btn{padding:.42rem .65rem}.action-row{display:flex;flex-wrap:wrap;gap:.25rem;padding:.35rem .65rem;border-bottom:1px solid var(--gray-line);background:var(--white)}.action-row .btn{padding:.3rem .5rem;font-size:.72rem;background:transparent;color:var(--ink-soft);border:1px solid transparent}.action-row .btn:hover{background:var(--gray);border-color:var(--gray-line)}.action-row .btn.danger{color:var(--danger)}.pager{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.45rem .55rem;border-top:1px solid var(--gray-line);background:var(--white)}.pager-info{font-size:.72rem;color:var(--ink-mute);font-weight:650}.pager .btn{padding:.35rem .55rem;font-size:.72rem}.pager .btn:disabled{opacity:.4;cursor:default}.msg-list{list-style:none;margin:0;padding:0;overflow:auto;flex:1}.msg-item{display:grid;grid-template-columns:auto 1fr;gap:.4rem;width:100%;padding:.5rem .65rem;border:0;border-bottom:1px solid var(--gray-line);background:var(--white);text-align:left;color:inherit}.msg-item:hover{background:#fafafa}.msg-item.selected{background:var(--primary-soft);box-shadow:inset 2px 0 0 var(--primary)}.msg-item.unseen .msg-subject,.msg-item.unseen .msg-from{font-weight:700;color:var(--ink)}.msg-check{margin-top:.2rem;transform:scale(.9)}.msg-main{min-width:0;display:grid;gap:.08rem}.msg-top{display:flex;align-items:center;gap:.3rem;min-width:0}.msg-from{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8rem}.msg-date{flex-shrink:0;font-size:.66rem;color:var(--ink-mute)}.msg-subject{font-size:.74rem;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-tags{display:flex;gap:.25rem;margin-top:.1rem}.pill{font-size:.58rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:.08rem .3rem;border-radius:999px}.pill.ext{background:#fff1d6;color:#8a4b00}.pill.att{background:var(--primary-soft);color:var(--primary-deep)}.inline-error,.empty-hint{padding:.75rem;margin:0;color:var(--ink-mute);font-size:.8rem}.inline-error{color:var(--danger)}.read-pane,.extra-pane{min-width:0;overflow:auto;background:var(--white)}.empty-read{height:100%;display:grid;place-items:center;color:var(--ink-mute);font-size:.85rem;background:var(--gray)}.message-view,.extra-inner{padding:.9rem 1rem 1.5rem;max-width:760px;animation:slide-in .22s ease both}.banner{display:flex;gap:.5rem;align-items:flex-start;padding:.5rem .65rem;border-radius:6px;margin-bottom:.75rem;font-size:.76rem;line-height:1.35}.banner strong{display:block;margin-bottom:.05rem;font-size:.78rem}.banner.warn{background:var(--warn-bg);border:1px solid var(--warn-line);color:#5c3a0a}.banner.ok{background:var(--primary-soft);border:1px solid #b7dfc3;color:var(--primary-deep)}.message-view h2{margin:0 0 .65rem;font-family:var(--font-display);font-size:1.15rem;line-height:1.25;letter-spacing:-.02em;color:var(--ink)}.meta-block{display:grid;gap:.25rem;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--gray-line)}.meta-from{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;font-size:.82rem}.meta-line{margin:0;font-size:.76rem;color:var(--ink-soft)}.meta-line span{color:var(--ink-mute)}.meta-date{font-size:.72rem;color:var(--ink-mute)}.read-actions{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.85rem}.read-actions .btn{padding:.38rem .6rem;font-size:.74rem}.attachments{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.85rem}.attachments a,.attachment-chip{text-decoration:none;color:var(--primary-deep);background:var(--gray);border:1px solid var(--gray-line);border-radius:5px;padding:.35rem .55rem;font-size:.74rem;font-weight:650;cursor:pointer;font-family:inherit}.attachment-chip:hover,.attachments a:hover{background:var(--primary-soft);border-color:#b7dfc3}.compose-page{grid-column:2 / -1;min-width:0;min-height:0;height:100%;overflow:auto;background:var(--gray)}.compose-form{width:min(920px,100%);margin:0 auto;padding:.85rem 1rem 1.5rem;display:grid;gap:.75rem;min-height:100%;box-sizing:border-box}.compose-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.65rem .75rem;border:1px solid var(--gray-line);border-radius:8px;background:var(--white);position:sticky;top:0;z-index:2}.compose-header h2{margin:.35rem 0 0;font-family:var(--font-display);font-size:1.15rem;letter-spacing:-.02em}.compose-header-actions,.compose-footer{display:flex;gap:.4rem;flex-wrap:wrap}.back-btn{padding:.2rem .4rem;font-size:.78rem}.compose-fields{display:grid;gap:.7rem;padding:.85rem .9rem 1rem;border:1px solid var(--gray-line);border-radius:8px;background:var(--white)}.compose-fields label{display:grid;gap:.28rem;font-size:.74rem;font-weight:650;color:var(--ink-soft)}.compose-fields input,.compose-fields select,.compose-fields textarea{width:100%;border:1px solid var(--gray-line);border-radius:6px;padding:.55rem .65rem;font:inherit;background:var(--white);color:var(--ink);box-sizing:border-box}.compose-fields textarea{resize:vertical;min-height:180px;max-height:42vh;line-height:1.45}.compose-message{margin-top:.1rem;display:grid;gap:.28rem}.compose-label{font-size:.74rem;font-weight:650;color:var(--ink-soft)}.compose-classify{display:grid;gap:.55rem;padding:.75rem;border:1px solid var(--gray-line);border-radius:8px;background:var(--gray)}.compose-classify.is-required{border-color:#b7dfc3;background:var(--primary-soft)}.compose-classify-head strong{display:block;font-size:.8rem;color:var(--ink)}.compose-classify-head .list-meta{display:block;margin-top:.1rem}.compose-classify-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.compose-classify fieldset{margin:0;padding:.55rem;border:1px solid var(--gray-line);border-radius:6px;background:var(--white);display:grid;gap:.3rem;min-width:0}.compose-classify legend{padding:0 .2rem;font-size:.7rem;font-weight:700;color:var(--ink-soft)}.classify-option{display:flex!important;align-items:center;gap:.4rem;font-size:.74rem!important;font-weight:550!important;color:var(--ink)!important;cursor:pointer}.classify-option input{width:auto!important;margin:0}@media(max-width:900px){.compose-classify-grid{grid-template-columns:1fr}}.rte{border:1px solid var(--gray-line);border-radius:6px;background:var(--white);overflow:hidden}.rte-toolbar{display:flex;flex-wrap:wrap;gap:.25rem;padding:.35rem .4rem;border-bottom:1px solid var(--gray-line);background:var(--gray)}.rte-toolbar button{border:1px solid transparent;background:transparent;color:var(--ink);border-radius:5px;min-width:1.85rem;height:1.85rem;padding:0 .45rem;font-size:.78rem;font-weight:700;cursor:pointer;line-height:1}.rte-toolbar button:hover{background:var(--white);border-color:var(--gray-line)}.rte-toolbar button i,.rte-toolbar button u,.rte-toolbar button s,.rte-toolbar button b{font-size:.86rem}.rte-sep{width:1px;align-self:stretch;background:var(--gray-line);margin:.15rem}.rte-editor{min-height:180px;max-height:42vh;overflow:auto;padding:.7rem .75rem;font-size:.9rem;line-height:1.5;color:var(--ink);outline:none}.rte-editor.is-empty:before{content:attr(data-placeholder);color:var(--ink-mute);pointer-events:none}.rte-editor ul,.rte-editor ol{margin:.35rem 0 .35rem 1.2rem;padding:0}.rte-editor a{color:var(--primary-deep)}.compose-footer{justify-content:flex-end;padding-top:.2rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.compose-attach{display:grid;gap:.45rem}.compose-attach-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.compose-attach-head strong{display:block;font-size:.74rem;color:var(--ink-soft)}.compose-attach-head .list-meta{display:block;margin-top:.1rem}.compose-dropzone{border:1px dashed #c8d0cb;border-radius:8px;background:var(--gray);min-height:88px;padding:.65rem;transition:border-color .15s ease,background .15s ease;cursor:pointer}.compose-dropzone.has-files{cursor:default;background:#fafafa}.compose-dropzone.is-over{border-color:var(--primary);background:var(--primary-soft)}.compose-drop-hint{margin:0;min-height:72px;display:grid;place-items:center;text-align:center;color:var(--ink-mute);font-size:.8rem;padding:.4rem}.compose-attach-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:.55rem}.compose-attach-card{display:grid;grid-template-rows:96px auto auto;gap:.35rem;padding:.4rem;border:1px solid var(--gray-line);border-radius:8px;background:var(--white);min-width:0}.compose-attach-thumb{width:100%;height:96px;border:0;border-radius:6px;padding:0;overflow:hidden;background:#ecefec;display:grid;place-items:center;cursor:default}.compose-attach-thumb:not(:disabled){cursor:zoom-in}.compose-attach-thumb img{width:100%;height:100%;object-fit:cover;display:block}.compose-attach-ext{font-size:.72rem;font-weight:800;letter-spacing:.04em;color:var(--primary-deep)}.compose-attach-meta{min-width:0;display:grid;gap:.08rem}.compose-attach-name{font-size:.72rem;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compose-attach-actions{display:flex;flex-wrap:wrap;gap:.25rem}.compose-attach-actions .btn{padding:.28rem .45rem;font-size:.68rem}.compose-attach-add{min-height:148px}.compose-attach-add button{width:100%;height:100%;min-height:148px;border:1px dashed #c8d0cb;border-radius:8px;background:transparent;color:var(--ink-soft);display:grid;place-content:center;gap:.2rem;font-size:.74rem;font-weight:650;cursor:pointer}.compose-attach-add button span{font-size:1.35rem;line-height:1;color:var(--primary)}.compose-attach-add button:hover{border-color:var(--primary);background:var(--primary-soft)}.compose-local-preview .preview-body{background:#0f1210}.preview-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:#141816b8;display:grid;place-items:center;padding:1rem}.preview-shell{width:min(960px,100%);height:min(90vh,860px);background:var(--white);border-radius:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 18px 50px #00000047}.preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.75rem .9rem;border-bottom:1px solid var(--gray-line)}.preview-header h2{margin:0;font-size:.95rem;word-break:break-word}.preview-actions{display:flex;gap:.35rem;flex-shrink:0}.preview-body{overflow:auto;background:#111;display:grid;place-items:center;padding:.75rem}.preview-body .empty,.preview-body .form-error{color:#eee}.preview-image{max-width:100%;max-height:100%;object-fit:contain}.preview-frame{width:100%;height:100%;border:0;background:var(--white)}.preview-text{width:100%;height:100%;margin:0;padding:1rem;overflow:auto;background:var(--white);color:var(--ink);white-space:pre-wrap;font-size:.82rem;line-height:1.45;text-align:left}.body-text{margin:0;white-space:pre-wrap;line-height:1.5;font-size:.84rem;font-family:var(--font-body)}.body-html{line-height:1.5;font-size:.84rem;overflow-wrap:anywhere}.body-html img{height:auto}.extra-inner{background:var(--white)}.extra-inner h2{margin:0 0 .25rem;font-family:var(--font-display);color:var(--ink);font-size:1.2rem}.extra-lead{margin:0 0 .9rem;color:var(--ink-mute);font-size:.8rem}.dept-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.55rem}.dept-card{padding:.7rem;border-radius:var(--radius);background:var(--gray);border:1px solid var(--gray-line)}.dept-card h3{margin:0 0 .35rem;font-size:.88rem;color:var(--ink)}.dept-card ul{margin:0 0 .55rem;padding-left:.9rem;color:var(--ink-soft);font-size:.76rem}.announce-list{display:grid;gap:.55rem}.announce-item{padding:.7rem .8rem;border-radius:0 6px 6px 0;background:var(--gray);border-left:3px solid var(--primary)}.announce-item h3{margin:0 0 .25rem;font-size:.88rem}.announce-item p{margin:0 0 .3rem;color:var(--ink-soft);line-height:1.4;font-size:.8rem}.settings-pane .extra-inner,.settings-inner{max-width:820px}.settings-header h2{margin:0 0 .2rem;font-family:var(--font-display);font-size:1.2rem;letter-spacing:-.02em}.settings-tabs{display:flex;flex-wrap:wrap;gap:.3rem;margin:.85rem 0 1rem;padding:.25rem;background:var(--gray);border:1px solid var(--gray-line);border-radius:8px}.settings-tabs button{border:0;background:transparent;color:var(--ink-soft);border-radius:6px;padding:.45rem .75rem;font-size:.78rem;font-weight:700;cursor:pointer}.settings-tabs button.active{background:var(--white);color:var(--primary-deep);box-shadow:0 1px 2px #0000000f}.settings-section{display:grid;gap:1rem}.settings-form{display:grid;gap:.65rem;padding:.85rem;border:1px solid var(--gray-line);border-radius:8px;background:var(--gray)}.settings-form h3{margin:0;font-size:.9rem}.settings-form label{display:grid;gap:.28rem;font-size:.74rem;font-weight:650;color:var(--ink-soft)}.settings-form input,.settings-form textarea{width:100%;border:1px solid var(--gray-line);border-radius:6px;padding:.55rem .65rem;font:inherit;background:var(--white);color:var(--ink);box-sizing:border-box}.settings-actions{display:flex;justify-content:flex-end}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#00000047;display:grid;place-items:end center}@media(min-width:760px){.modal-backdrop{place-items:center;padding:1rem}}.sheet{width:min(560px,100%);max-height:90vh;overflow:auto;background:var(--white);border-radius:10px 10px 0 0;padding:.85rem;border:1px solid var(--gray-line)}@media(min-width:760px){.sheet{border-radius:8px}}.sheet header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem}.sheet header h2{margin:0;font-family:var(--font-display);font-size:1.05rem;color:var(--ink)}.sheet-form{display:grid;gap:.6rem}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.sheet-actions{display:flex;justify-content:flex-end;gap:.4rem}.mobile-bar{display:none}@media(max-width:980px){.mail-shell{grid-template-columns:1fr;grid-template-rows:1fr auto}.sidebar{position:fixed;inset:0 auto 0 0;width:min(240px,82vw);z-index:60;transform:translate(-105%);transition:transform .2s ease}.mail-shell.sidebar-open .sidebar{transform:none}.mail-shell.sidebar-open:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background:#00000040;z-index:55}.list-pane{display:none}.mail-shell.mode-list .list-pane{display:flex}.mail-shell.mode-list .read-pane,.mail-shell.mode-list .extra-pane,.mail-shell.mode-list .compose-page{display:none}.compose-page{grid-column:auto;height:auto;min-height:100%}.compose-form{padding:.65rem .65rem 1.1rem}.compose-header{position:static;flex-direction:column}.compose-fields{padding:.7rem}.compose-fields textarea{min-height:140px;max-height:none}.compose-attach-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.compose-attach-head{flex-wrap:wrap}.preview-shell{width:100%;height:100%;border-radius:0}.preview-backdrop{padding:0}.mobile-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem;padding:.4rem .5rem calc(.4rem + env(safe-area-inset-bottom));border-top:1px solid var(--gray-line);background:var(--white)}.mobile-bar button{border:0;background:var(--gray);color:var(--ink-soft);border-radius:6px;padding:.55rem .2rem;font-size:.7rem;font-weight:700}.grid-2{grid-template-columns:1fr}.message-view,.extra-inner{padding:.75rem}}@media print{.sidebar,.list-pane,.mobile-bar,.read-actions,.action-row,.search-row,.banner{display:none!important}.mail-shell{display:block}.read-pane{overflow:visible!important}}
