:root { color-scheme: light; --ink:#172033; --muted:#667085; --line:#dfe4ec; --bg:#f3f6fb; --blue:#1769e0; --navy:#0d2344; --green:#0b9b6d; --red:#c43838; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
header { min-height:150px; padding:34px max(28px, calc((100vw - 1240px)/2)); color:white; background:linear-gradient(120deg,var(--navy),#174d91); display:flex; align-items:center; justify-content:space-between; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:0; font-size:32px; } h2 { margin-bottom:8px; font-size:21px; }
.eyebrow { display:block; margin-bottom:6px; color:#6891c6; font-size:11px; font-weight:800; letter-spacing:.13em; }
header .eyebrow { color:#9fc6f8; }
.layout { width:min(1240px,calc(100% - 36px)); margin:-30px auto 60px; }
.card,.access-card { background:white; border:1px solid var(--line); border-radius:14px; box-shadow:0 10px 30px rgb(20 42 75 / 7%); }
.connection { min-height:90px; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; }
.connection p { margin:2px 0 0 22px; color:var(--muted); }
.status-dot { display:inline-block; width:10px; height:10px; margin-right:8px; border-radius:50%; }.online{background:var(--green)}.offline{background:#9ca3af}
.workspace { display:grid; grid-template-columns:390px 1fr; gap:18px; margin-top:18px; min-height:560px; }.inbox,.reader,.composer{padding:22px}.section-title{display:flex;justify-content:space-between;align-items:start}
.message-list { margin:14px -10px 0; }.message { width:100%; padding:13px 10px; border:0; border-top:1px solid #edf0f5; background:transparent; color:inherit; text-align:left; display:grid; cursor:pointer; }.message:hover,.message.active{background:#edf5ff}.message span,.message time{color:var(--muted);font-size:13px}.message.unread strong{color:var(--blue)}
.reader iframe { width:100%; min-height:390px; border:1px solid var(--line); border-radius:8px; }.reader pre{white-space:pre-wrap;font:14px/1.6 inherit}.empty-state{height:100%;display:grid;place-items:center;color:var(--muted)}
dl { border-block:1px solid var(--line); padding:10px 0; } dl div{display:flex;gap:8px}dt{width:45px;color:var(--muted)}dd{margin:0}.attachment{padding:10px;background:#fff7df;border-radius:7px;color:#795b00;margin-bottom:15px}
.composer { margin-top:18px; }.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:grid;gap:6px;margin-bottom:14px;font-weight:650}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #cbd3df;border-radius:8px;background:white;color:inherit;font:inherit}textarea{resize:vertical}
button,.button { display:inline-block; border:0; border-radius:8px; padding:11px 16px; background:var(--blue); color:white; font:600 14px inherit; text-decoration:none; cursor:pointer; }.ghost{background:transparent;border:1px solid currentColor}.danger{background:var(--red)}button:disabled{opacity:.55;cursor:wait}
.alert{padding:12px 15px;border-radius:8px;margin:16px 0;background:#e5f7f0;color:#087452}.alert.error{background:#fdeaea;color:#a52b2b}.error-text{color:var(--red)}.muted{color:var(--muted)}.hidden{display:none!important}
.centered { min-height:100vh; display:grid; place-items:center; background:linear-gradient(145deg,#eef4fb,#dfe9f6); }.access-card{width:min(430px,calc(100% - 32px));padding:34px}.access-card .button{margin-top:8px}
@media(max-width:800px){header{padding:28px 20px}.layout{width:calc(100% - 20px)}.connection{align-items:flex-start;gap:16px}.workspace,.form-grid{grid-template-columns:1fr}.inbox{max-height:480px;overflow:auto}}
.provider-tabs { display:flex; gap:8px; margin-bottom:10px; }
.provider-tab { padding:10px 16px; border-radius:9px 9px 0 0; background:#dfe7f2; color:var(--navy); text-decoration:none; font-weight:700; }
.provider-tab.active { background:white; color:var(--blue); }
.provider-tab .status-dot { margin:0 0 0 7px; }
