/* DigiTimber webmail portal (layout after cPanel's webmail landing page) */
/* DigiTimber's four colours: blue = webmail (this), green = mail filter, orange = control panel, purple. */
:root { --bg: #f5f7fa; --card: #fff; --ink: #1f2933; --muted: #5f6b76; --line: #dde3ea; --bar: #0d1b3e; --bar-2: #16295c; --bar-ink: #fff;
  --accent: #2b7eb2; --link: #2b7eb2; --btn: #2b7eb2; --btn-ink: #fff; --err: #a32020; --err-bg: #fbeaea; --warn-bg: #fff4d6; --ok-bg: #e4f1f9; --badge: #e4f1f9;
  --logo-bg: #eaf1f8; --logo-ink: #1f2933; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121417; --card: #1b1f24; --ink: #e6e9ed; --muted: #9aa5b1; --line: #2c333b; --bar: #0a1430; --bar-2: #15275a;
    --link: #6cb4e4; --btn: #2b7eb2; --btn-ink: #fff; --err: #ff9b9b; --err-bg: #3a1d1d; --warn-bg: #3a321a; --ok-bg: #16293a; --badge: #16293a;
    --logo-bg: #232a33; --logo-ink: #e6e9ed; }
  .app img.mono { filter: invert(1); }   /* SnappyMail's logo is black line art */
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--link); }
/* top bar */
header.top { display: flex; align-items: stretch; flex-wrap: wrap; background: var(--bar); color: var(--bar-ink); min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bar-ink); font-size: 19px; text-decoration: none; padding: 6px 16px; margin-right: auto; }
.brand img { height: 48px; width: auto; display: block; }
.brand span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); letter-spacing: .02em; }
header.top { border-bottom: 3px solid var(--accent); }
.signin-logo { display: block; width: 300px; max-width: 80%; margin: 8px 0 18px; }
.tools { display: flex; align-items: stretch; flex-wrap: wrap; }
.tools > * { display: flex; align-items: center; gap: 8px; padding: 0 18px; color: var(--bar-ink); text-decoration: none; border-left: 1px solid rgba(255,255,255,.12); min-height: 60px; }
.tools .ic { flex: none; }
details.acct { position: relative; padding: 0; }
details.acct summary { display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 60px; cursor: pointer; list-style: none; }
details.acct summary::-webkit-details-marker { display: none; }
details.acct summary::after { content: ""; border: 6px solid transparent; border-top-color: currentColor; margin: 6px 0 0 4px; }
details.acct[open] summary, .tools > a:hover, details.acct summary:hover { background: var(--bar-2); }
.dropdown { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 300px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px 0; }
.dropdown a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-size: 17px; }
.dropdown a:hover { background: var(--bg); }
.dropdown hr { border: 0; border-top: 2px solid var(--line); margin: 6px 0; }
@media (max-width: 700px) {
  .tools { width: 100%; }
  .tools > * { flex: 1 1 auto; justify-content: center; padding: 0 10px; min-height: 48px; border-top: 1px solid rgba(255,255,255,.12); }
  details.acct summary { min-height: 48px; justify-content: center; padding: 0 10px; }
  details.acct summary span { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dropdown { position: fixed; left: 0; right: 0; top: auto; min-width: 0; }
}
main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 56px; }
h1 { font-size: 30px; font-weight: 400; margin: 6px 0 16px; }
h2 { font-size: 19px; margin: 0 0 8px; }
h2.section { font-size: 26px; font-weight: 400; margin: 36px 0 14px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; }
/* app cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.app .logo { display: flex; align-items: center; justify-content: center; gap: 22px; height: 190px; text-decoration: none;
  font-size: 34px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--logo-bg); color: var(--logo-ink); }
.app .logo img { height: 110px; width: auto; }
.app .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 20px; background: var(--bg); }
.app .foot label { margin: 0; font-weight: 600; }
/* feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 32px; }
.feature { display: flex; gap: 16px; text-decoration: none; color: var(--ink); }
.feature .ic { color: var(--ink); flex: none; margin-top: 4px; }
.feature b { display: block; color: var(--link); font-size: 21px; font-weight: 400; }
.feature:hover b { text-decoration: underline; }
.feature small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.badge { display: inline-block; background: var(--badge); color: var(--link); font-size: 13px; border-radius: 10px; padding: 1px 9px; margin: 3px 0 0; }
/* forms and content */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px; margin: 0 0 16px; max-width: 860px; }
.narrow { max-width: 420px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row .grow, .row label { flex: 1 1 220px; }
label { display: block; margin: 0 0 12px; }
label.check { display: flex; gap: 8px; align-items: center; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 10px; width: 100%; max-width: 100%; margin-top: 4px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; }
input.short { width: 5em; display: inline-block; }
fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 14px; padding: 10px 14px; }
legend { padding: 0 6px; }
legend select { width: auto; display: inline-block; margin: 0 4px; }
.cond { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-bottom: 8px; }
.cond .hdr { display: none; }
.cond.with-hdr { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
.cond.with-hdr .hdr { display: block; }
@media (max-width: 600px) { .cond, .cond.with-hdr { grid-template-columns: 1fr; } }
button, .button { font: inherit; display: inline-block; background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 3px;
  padding: 9px 22px; cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.secondary { background: transparent; color: var(--link); border: 1px solid var(--link); box-shadow: none; }
.danger { background: var(--err); color: #fff; }
button.link { background: none; color: var(--link); padding: 0 4px; border: 0; box-shadow: none; }
button.link.danger { color: var(--err); }
form.inline { display: inline; }
.note { color: var(--muted); font-size: 14px; }
.error, .warn, .flash { padding: 10px 14px; border-radius: 4px; max-width: 860px; }
.error { background: var(--err-bg); color: var(--err); }
.warn { background: var(--warn-bg); }
.flash { background: var(--ok-bg); }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { border-top: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
table.list .num { text-align: right; white-space: nowrap; }
table.list tr.off { opacity: .6; }
td.barcell { width: 30%; }
meter { width: 100%; }
td.actions { white-space: nowrap; text-align: right; }
td.actions a { margin-right: 4px; }
@media (max-width: 600px) { td.actions { white-space: normal; } td.barcell { display: none; } }
.qr { background: #fff; padding: 10px; border-radius: 4px; width: 240px; height: 240px; display: block; }
pre.codes { font-size: 18px; background: var(--bg); padding: 12px; border-radius: 4px; }
code { overflow-wrap: anywhere; }
