:root{font-family:Inter,system-ui,sans-serif;color:#162238;background:#f2f5fa;--line:#e2e8f1;--muted:#53657d;--blue:#275bdb;--nav:#101c30}*{box-sizing:border-box}body{margin:0}button,select,input,textarea{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:white;color:inherit;padding:.55rem .75rem}button:hover{background:#edf3ff}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6087ff;outline-offset:2px}[hidden]{display:none!important}header{height:68px;background:var(--nav);color:white;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px}.brand{color:white;text-decoration:none;font-weight:800;white-space:nowrap;font-size:1.2rem;letter-spacing:-.04em}.brand>span:not(.logo){color:#a9c2ff}.logo{background:#376ff0;border-radius:9px;padding:4px 9px;margin-right:7px;color:white}header form{display:flex;gap:5px;width:min(48%,540px)}header input{background:#21314d;border:1px solid #3b4f71;color:white}header input::placeholder{color:#b5c3d9}header button{background:#21314d;border-color:#3b4f71;color:white}header button:hover{background:#34486b}input,select,textarea{width:100%;padding:.6rem .72rem;border:1px solid #cfd9e8;border-radius:8px;background:#fff;color:inherit}main{display:flex;height:calc(100dvh - 68px);min-height:320px}aside{width:220px;flex:none;padding:16px;background:#ecf1f9;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:auto}.switch{display:flex;gap:5px;margin-bottom:20px}.switch button{flex:1}.on{background:#e1eaff;color:#174ab8;border-color:#c9d8fe;font-weight:700}.primary{background:var(--blue);border-color:var(--blue);color:white;font-weight:700}.primary:hover{background:#1948bc}.switch+div>.primary{width:100%;margin-bottom:18px}label{display:block;margin:.55rem 0 .3rem;color:var(--muted);font-size:.875rem;font-weight:650}nav{margin-top:13px;display:grid;gap:4px}nav button{text-align:left;border-color:transparent;background:none;overflow-wrap:anywhere}footer{margin-top:auto;padding-top:20px;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}footer button{margin-top:8px}.workspace{display:grid;grid-template-columns:minmax(265px,345px) minmax(0,1fr);flex:1;min-width:0}.listing,#reader,#chat{overflow:auto;background:white}.listing{border-right:1px solid var(--line)}.listhead{padding:23px 20px 14px;border-bottom:1px solid var(--line)}.eyebrow{color:#385da7;font-weight:800;letter-spacing:.09em;font-size:.75rem}h1{margin:.3rem 0 .75rem;letter-spacing:-.04em;font-size:1.7rem}.filters{display:flex;gap:5px}.filters button{font-size:.875rem}.row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;border:0;border-radius:0;border-bottom:1px solid var(--line);text-align:left;width:100%;padding:15px 12px 15px 17px}.row.selected{background:#e9f0ff;box-shadow:inset 3px 0 #2d64e4}.row .name,.row .subject,.row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row .name{font-weight:700;display:flex;justify-content:space-between;gap:5px}.row .name span{overflow:hidden;text-overflow:ellipsis}.row .subject{margin:3px 0;color:#253450}.row.unread .subject{font-weight:800;color:#204eb7}.row small,.meta{color:var(--muted);font-size:.8rem}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#dce8ff;color:#224eaa;font-size:.83rem;font-weight:800}.row:nth-child(3n+2) .avatar{background:#deefe9;color:#176347}.row:nth-child(3n) .avatar{background:#f0e6fb;color:#694294}#older{margin:12px}#reader{padding:24px clamp(18px,4vw,52px)}.tools{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:16px;margin-bottom:23px;border-bottom:1px solid var(--line)}.byline{display:flex;gap:10px;margin:16px 0 20px}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.empty{color:var(--muted);padding:20px}#chat{display:flex;flex-direction:column;flex:1}#chatLog{flex:1;overflow:auto;padding:16px 24px}.bubble{background:#eef3ff;border-radius:10px;margin:10px 0;padding:10px 15px;width:fit-content;max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere}#chatForm{display:flex;gap:8px;padding:14px 20px;border-top:1px solid var(--line)}dialog{width:min(94vw,660px);max-height:90dvh;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 20px 70px #14254855;color:inherit}dialog::backdrop{background:#0c18336b}.modalHead,.actions,.entry{display:flex;align-items:center;justify-content:space-between;gap:8px}.modalHead h2{margin:0 0 10px}.entry{overflow-wrap:anywhere;padding:9px 0;border-bottom:1px solid var(--line)}.actions{justify-content:flex-end;margin-top:12px}.fields{display:grid;grid-template-columns:1fr 105px;gap:8px}textarea{resize:vertical;min-height:145px}#notice{position:fixed;bottom:14px;right:14px;max-width:min(92vw,430px);background:var(--nav);color:white;border-radius:9px;padding:12px;z-index:5}#notice:empty{display:none}.mobileBack{display:none}@media(max-width:790px){aside{width:155px;padding:10px}.workspace{grid-template-columns:minmax(205px,38%) 1fr}header{padding:0 10px}.filters button{padding:.4rem}}@media(max-width:620px){header{height:auto;min-height:62px;flex-wrap:wrap;gap:7px;padding:10px}header form{order:3;width:100%}main{height:calc(100dvh - 112px);flex-direction:column}aside{width:100%;padding:6px 10px;border-bottom:1px solid var(--line);flex-direction:row;flex-wrap:wrap;gap:5px;align-items:center}.switch{margin:0}#mailNav{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:1}#mailNav label,#chatNav label{display:none}#mailNav .primary,#mailNav select{width:auto;max-width:100%;margin:0}nav{margin:0;display:flex;max-width:96vw;overflow:auto}nav button{white-space:nowrap}footer{display:none}.workspace{display:block;overflow:auto}.listing,#reader{height:100%}#reader{display:none}.workspace.open #reader{display:block}.workspace.open .listing{display:none}.mobileBack{display:inline-block}}
.readerEmpty{min-height:65%;display:grid;align-content:center;justify-items:center;text-align:center;color:var(--muted)}.readerEmpty h2{margin-bottom:0;color:#243754}.readerEmpty p{margin-top:.45rem}.readerIcon{display:grid;place-items:center;width:62px;height:62px;border-radius:17px;background:#e5edff;color:#275bdb;font-size:1.8rem}.tools select{width:auto;max-width:100%}.attachment{margin:12px 8px 0 0}.modalHead button{align-self:flex-start}.row:first-child{border-top:0}
#adminLink{color:#dce7ff;font-weight:700}.adminPage{height:auto;display:block;max-width:1050px;margin:auto;padding:20px}.adminPage section{background:white;padding:18px;margin:12px 0;border:1px solid var(--line);border-radius:12px}.adminPage h2{margin-top:0}.adminPage form button{margin-top:10px}.adminPage table{border-collapse:collapse;width:100%}.adminPage td,.adminPage th{padding:8px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.adminPage .entry{flex-wrap:wrap}
