/*! Webmail — shell, sign-in and apps · © 2026 Nerds 4 U Pty Ltd · MrNerds Brand Of Group44 */
body.wmx { background: var(--bg); }
.wmx-shell { display: flex; min-height: 100vh; }
.wmx-rail { width: 84px; flex: 0 0 84px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.028) 0 1px, transparent 1px 26px), linear-gradient(180deg, #140a20, color-mix(in srgb, var(--primary) 35%, #140a20) 60%, #170b26); z-index: 20; }
.wmx-rail-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; background: rgba(255,255,255,.06); }
.wmx-rail-logo img { max-width: 40px; max-height: 40px; object-fit: contain; }
.wmx-app { width: 70px; padding: 9px 4px 7px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #cfc3e4; font-size: 11px; font-weight: 600; border: 0; background: none; text-decoration: none; }
.wmx-app .ic { width: 22px; height: 22px; } .wmx-app:hover { background: rgba(255,255,255,.08); color: #fff; }
.wmx-app.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 #c9a6f0; }
.wmx-rail-sp { flex: 1; }
.wmx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wmx-top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
.wmx-brand img { height: 34px; max-width: 170px; object-fit: contain; }
.wmx-top-title { font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.wmx-user { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); padding: 4px 6px; border-radius: 12px; }
.wmx-user:hover { background: var(--soft); } .wmx-user b { display: block; font-size: 13.5px; line-height: 1.1; } .wmx-user small { color: var(--muted); font-size: 12px; }
.wmx-content { padding: 20px 22px; flex: 1; }
.wmx-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 22px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); }
.wmx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 46px 20px; color: var(--muted); text-align: center; }
.wmx-empty b { color: var(--ink); font-size: 15px; } .wmx-empty .ic { opacity: .5; margin-bottom: 6px; }
.wmx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.wmx-head h1 { font-size: 22px; font-weight: 800; margin: 0 8px 0 0; letter-spacing: -.3px; }
.wm { height: calc(100vh - 64px - 40px - 72px - 44px); }
.wm-top { margin-bottom: 12px; }
/* sign-in */
body.wmx-auth { background: #fff; }
.wa-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.wa-wrap.one { grid-template-columns: 1fr; }
.wa-side { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; padding: 50px; }
.wa-side::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px); }
.wa-side-in { position: relative; z-index: 1; max-width: 460px; }
.wa-side-logo { width: min(380px, 90%); filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); margin-bottom: 26px; }
.wa-side-logo.custom { width: auto; max-width: 300px; max-height: 120px; background: #fff; border-radius: 16px; padding: 14px 18px; }
.wa-side h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 22px; }
.wa-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wa-points li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; }
.wa-points .ic { color: #e3cff7; }
.wa-art { position: absolute; width: 760px; right: -260px; bottom: -260px; }
.wa-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 22px; background: radial-gradient(1100px 500px at 100% 0, var(--primary-50) 0, #fff 55%); }
.wa-mobile-logo { display: none; height: 44px; margin-bottom: 22px; }
.wa-card { width: 100%; max-width: 430px; background: #fff; border-radius: 18px; padding: 38px 38px 32px; box-shadow: 0 30px 70px -25px rgba(60,22,100,.25), 0 0 0 1px rgba(15,23,42,.04); }
.wa-dom-logo { max-height: 60px; max-width: 220px; object-fit: contain; display: block; margin: 0 auto 18px; }
.wa-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px; color: var(--ink); }
.wa-sub { color: var(--muted); margin: 0 0 22px; }
.wa-field { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 54px; margin-bottom: 14px; background: #fbf9fe; transition: .15s; }
.wa-field:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.wa-field .ic { color: var(--primary); } .wa-field input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 16px; min-width: 0; color: var(--ink); }
.wa-eye { border: 0; background: none; color: var(--muted); padding: 4px; }
.wa-btn { width: 100%; height: 52px; border-radius: 12px; font-size: 16px; justify-content: space-between; padding: 0 22px; margin-top: 4px; }
.wa-row { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; font-size: 14px; }
.wa-who { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; margin-bottom: 18px; color: var(--ink); font-weight: 600; width: fit-content; max-width: 100%; }
.wa-who:hover { border-color: var(--primary-100); background: var(--primary-50); color: var(--ink); } .wa-who span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.wa-copy { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--muted); max-width: 430px; line-height: 1.6; }
@media (max-width: 900px) { .wa-wrap { grid-template-columns: 1fr; } .wa-side { display: none; } .wa-mobile-logo { display: block; } .wa-card { padding: 30px 24px; } }
/* apps */
.wx-split { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.wx-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wx-list .it { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.wx-list .it:hover { background: var(--soft); color: var(--ink); } .wx-list .it.on { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary); }
.wx-list .it small { display: block; color: var(--muted); font-size: 12px; } .wx-list .it .meta { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-letter { padding: 6px 14px; font-size: 11px; font-weight: 800; color: var(--faint); background: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.wx-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.wx-kv { display: grid; grid-template-columns: 140px 1fr; gap: 0; margin: 0; } .wx-kv dt, .wx-kv dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); margin: 0; } .wx-kv dt { color: var(--muted); font-weight: 500; }
/* calendar */
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .cal-bar h2 { font-size: 20px; font-weight: 800; margin: 0 10px 0 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cal .dh { padding: 8px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; background: var(--soft); border-bottom: 1px solid var(--line); }
.cal .d { min-height: 112px; padding: 6px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); position: relative; }
.cal .d:nth-child(7n) { border-right: 0; } .cal .d.out { background: var(--soft); } .cal .d.out .n { color: var(--faint); }
.cal .d .n { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cal .d.today .n { background: var(--primary); color: #fff; }
.cal .ev { display: block; font-size: 12px; padding: 2px 7px; border-radius: 6px; margin-top: 3px; background: var(--primary-50); color: var(--primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--primary); }
.cal .ev:hover { background: var(--primary-100); } .cal .add { position: absolute; right: 6px; top: 6px; opacity: 0; } .cal .d:hover .add { opacity: 1; }
.agenda .day { font-weight: 800; margin: 14px 0 6px; } .agenda .ev { display: flex; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: var(--card); color: var(--ink); }
@media (max-width: 991px) { .cal { display: none; } .agenda.mobile-only { display: block !important; } }
/* tasks & notes */
.tk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.tk.done .t { text-decoration: line-through; color: var(--faint); } .tk .t { font-weight: 600; } .tk small { color: var(--muted); }
.tk .pr { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); } .tk .pr.high { background: #fdecec; color: #b91c1c; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.note { border-radius: 14px; padding: 16px 18px; min-height: 150px; border: 1px solid var(--line); background: #fffbe6; color: #3f3a1f; display: flex; flex-direction: column; gap: 6px; }
.note b { font-size: 15px; } .note p { font-size: 13.5px; white-space: pre-wrap; margin: 0; flex: 1; overflow: hidden; } .note small { color: #8a835e; }
.note.c-blue { background: #eaf3ff; color: #1e3a5f; } .note.c-green { background: #eafaf0; color: #1f4d2e; } .note.c-pink { background: #fdeef6; color: #5c1f3d; } .note.c-purple { background: #f3ecfb; color: #3b1f5c; }
[data-bs-theme=dark] .note { filter: brightness(.82) saturate(.9); }
/* settings */
.st-nav { display: flex; flex-direction: column; gap: 2px; } .st-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.st-nav a:hover { background: var(--soft); color: var(--ink); } .st-nav a.on { background: var(--primary-50); color: var(--primary); }
@media (max-width: 991px) {
  .wmx-shell { flex-direction: column; } .wmx-rail { width: 100%; height: auto; flex: 0 0 auto; flex-direction: row; position: fixed; bottom: 0; top: auto; padding: 4px; justify-content: space-around; }
  .wmx-rail-logo, .wmx-rail-sp, .wmx-rail [data-action=toggle-theme] { display: none; } .wmx-app { width: auto; flex: 1; padding: 6px 2px; font-size: 10px; } .wmx-app.on { box-shadow: inset 0 3px 0 #c9a6f0; }
  .wmx-main { padding-bottom: 64px; } .wmx-top { padding: 0 14px; } .wmx-top-title { display: none; } .wmx-content { padding: 14px; }
  .wx-split { grid-template-columns: 1fr; } .wm { height: auto; }
}
/* headings stay ink-coloured inside cards; brand-coloured pills */
.wx-card :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5), .wmx-head h1, .card-x b { color: var(--ink); }
.wa-side h2 { color: #fff; }
.nav-pills .nav-link { color: var(--ink-2); font-weight: 600; border-radius: 10px; }
.nav-pills .nav-link.active { background: var(--primary); color: #fff; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.progress-bar { background: var(--primary); }
.badge-soft { background: var(--primary-50); color: var(--primary); }
@media (min-width: 901px) { .wa-dom-logo { display: none; } }
