:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: #172033; background: #f3f5f9; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: linear-gradient(180deg, #eef1f7 0, #f8f9fb 240px); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 75% 10%, #6d60d9 0, transparent 30%), #141a28; }
.login-card { width: min(100%, 420px); padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.app-logo, .mini-logo { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff5d4b, #7158e2); font-weight: 850; }
.app-logo { width: 54px; height: 54px; margin-bottom: 24px; border-radius: 17px; font-size: 20px; }.mini-logo { width: 38px; height: 38px; border-radius: 12px; }
.eyebrow { margin: 0 0 7px; color: #6254d3; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }.login-card h1 { margin-bottom: 8px; font-size: 31px; letter-spacing: -.04em; }.subtle { margin-bottom: 24px; color: #7d8798; font-size: 13px; }
label { display: flex; justify-content: space-between; margin: 14px 0 6px; color: #505a6c; font-size: 11px; font-weight: 700; }label span { color: #9299a7; font-weight: 400; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #d5dbe5; border-radius: 11px; outline: 0; color: #20293a; background: #fff; }textarea { min-height: 180px; resize: vertical; line-height: 1.55; }input:focus, textarea:focus, select:focus { border-color: #6b5dd7; box-shadow: 0 0 0 3px #ece9ff; }
.primary, .secondary { width: 100%; min-height: 46px; border: 0; border-radius: 12px; font-weight: 750; }.primary { margin-top: 18px; color: #fff; background: #5d50d2; box-shadow: 0 8px 20px rgba(93,80,210,.2); }.primary:disabled { opacity: .55; cursor: wait; }.secondary { color: #5549c1; background: #eceaff; }
.form-error { min-height: 17px; margin: 9px 0 0; color: #c63d48; font-size: 11px; }
.app-shell { min-height: 100dvh; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; z-index: 20; top: 0; height: calc(64px + env(safe-area-inset-top)); display: flex; align-items: flex-end; justify-content: space-between; padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(220,224,233,.9); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; }.brand > div:last-child { display: flex; flex-direction: column; }.brand strong { font-size: 13px; }.brand span { color: #69758a; font-size: 9px; }.brand span.online { color: #14834e; }.brand span.offline { color: #c43d48; }
.ghost, .round-button, .small-button { border: 1px solid #d8dde6; color: #586276; background: #fff; }.ghost { padding: 7px 10px; border-radius: 9px; font-size: 10px; }.round-button { width: 37px; height: 37px; border-radius: 50%; font-size: 18px; }.small-button { padding: 6px 9px; border-radius: 8px; font-size: 10px; }
main { max-width: 760px; margin: 0 auto; padding: 26px 17px 40px; }.view { display: none; }.view.active { display: block; animation: reveal .18s ease-out; }@keyframes reveal { from { opacity: .4; transform: translateY(4px); } }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }.page-heading h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-bottom: 25px; border-radius: 16px; color: #fff; background: #151b2a; box-shadow: 0 10px 27px rgba(21,27,42,.14); }.stats article { min-width: 0; padding: 17px 14px; }.stats article + article { border-left: 1px solid #343a48; }.stats span { display: block; margin-bottom: 13px; overflow: hidden; color: #aeb6c7; font-size: 9px; white-space: nowrap; }.stats strong { font-size: 24px; letter-spacing: -.04em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }.section-heading h2 { margin: 0; font-size: 14px; }.section-heading span { color: #8c95a6; font-size: 9px; }
.message-list { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid #e0e4eb; border-radius: 15px; background: #fff; }.message-list li { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 11px; padding: 13px 14px; }.message-list li + li { border-top: 1px solid #edf0f4; }.status-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #a4acb9; box-shadow: 0 0 0 3px #edf0f4; }.status-dot.read { background: #25a66a; box-shadow: 0 0 0 3px #ddf4e8; }.message-main { min-width: 0; }.message-main strong, .message-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.message-main strong { font-size: 12px; }.message-main span { margin-top: 3px; color: #7e8899; font-size: 10px; }.empty { padding: 30px 15px; border: 1px dashed #d5dbe5; border-radius: 15px; color: #8992a2; background: #fff; text-align: center; font-size: 12px; }
.card-form, .install-card { padding: 19px; border: 1px solid #e0e4eb; border-radius: 17px; background: #fff; box-shadow: 0 4px 18px rgba(43,53,75,.04); }.field-hint { margin: 5px 0 0; color: #9299a7; font-size: 9px; }.send-button { min-height: 52px; font-size: 14px; }
.mail-help { padding: 13px 14px; border: 1px solid #dce1ea; border-radius: 12px; background: #f5f7fb; }
.mail-help strong { font-size: 12px; }.mail-help p { margin: 5px 0 9px; color: #737d90; font-size: 11px; line-height: 1.55; }
.mail-help a { color: #594bd1; font-size: 11px; font-weight: 800; text-decoration: none; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.preset-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 12px; }.setup-status { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; color: #986c1e; background: #fff1d6; font-size: 11px; }.setup-status.ready { color: #147548; background: #ddf4e7; }
.install-card { margin-top: 14px; }.install-card h2 { margin-bottom: 7px; font-size: 14px; }.install-card p { color: #707b8d; font-size: 11px; line-height: 1.55; }
.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; height: calc(67px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3,1fr); padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); border-top: 1px solid #dfe3ea; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; color: #7d8798; background: transparent; font-size: 9px; }.nav-item span { font-size: 19px; line-height: 1; }.nav-item.active { color: #594ccd; font-weight: 750; }.compose-nav span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #5d50d2; box-shadow: 0 5px 13px rgba(93,80,210,.25); }
.toast { position: fixed; z-index: 100; right: 18px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 18px; max-width: 500px; margin: auto; padding: 12px 14px; border-radius: 12px; color: #fff; background: #1b2434; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; }.toast.show { opacity: 1; transform: none; }
@media (min-width: 760px) { main { padding-top: 40px; }.bottom-nav { right: auto; top: 90px; bottom: auto; left: calc(50% - 500px); width: 145px; height: auto; display: flex; flex-direction: column; padding: 8px; border: 1px solid #e0e4eb; border-radius: 15px; }.nav-item { min-height: 54px; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 0 11px; border-radius: 10px; font-size: 11px; }.nav-item.active { background: #eceaff; }.nav-item span { font-size: 17px; }.compose-nav span { width: auto; height: auto; color: inherit; background: transparent; box-shadow: none; }.app-shell { padding-bottom: 0; } }
