/* DN Mail - late-90s webmail look. Original design; no third-party branding. */
:root {
  --navy: #0b2a6b;
  --navy-2: #1d4596;
  --sky: #6f93cf;
  --sky-pale: #dfe8f6;
  --gold: #ffcc33;
  --grey: #c0c0c0;
  --grey-pale: #ececec;
  --row-alt: #eef3fb;
  --text: #000000;
  --link: #0000cc;
  --visited: #551a8b;
  --page: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #8a9bb8; }
body {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px; color: var(--text);
}
a { color: var(--link); }
a:visited { color: var(--visited); }
b { font-weight: bold; }

.frame { width: 100%; max-width: 980px; margin: 0 auto; background: var(--page);
  border-collapse: collapse; border-left: 1px solid #000; border-right: 1px solid #000; }
.frame td { vertical-align: top; }

/* masthead */
.masthead { background: var(--navy); border-bottom: 3px solid var(--gold); }
.mast-inner { display: flex; align-items: center; gap: 14px; padding: 8px 12px; flex-wrap: wrap; }
.logo { text-decoration: none; display: inline-flex; align-items: stretch;
  border: 2px outset #fff; font-family: "Arial Black", Arial, sans-serif; }
.logo:visited { color: inherit; }
.logo-dn { background: var(--gold); color: var(--navy); padding: 2px 6px; font-size: 22px;
  font-weight: 900; letter-spacing: -1px; }
.logo-mail { background: #fff; color: var(--navy); padding: 2px 8px; font-size: 22px;
  font-style: italic; font-family: Georgia, "Times New Roman", serif; font-weight: bold; }
.tagline { color: #cfe0ff; font-size: 11px; font-style: italic; }
.whoami { margin-left: auto; color: #fff; font-size: 11px; display: flex; gap: 10px; align-items: center; }
.linkbtn { background: none; border: 0; color: var(--gold); text-decoration: underline;
  font: inherit; cursor: pointer; padding: 0; }

/* tab bar */
.tabbar { background: var(--sky); padding: 0 8px; border-bottom: 1px solid var(--navy); white-space: nowrap; }
.tab { display: inline-block; padding: 5px 14px; margin: 4px 2px 0 0; color: #fff; font-weight: bold;
  text-decoration: none; background: var(--navy-2); border: 1px solid var(--navy);
  border-bottom: 0; font-size: 11px; }
.tab:visited { color: #fff; }
.tab.on { background: var(--page); color: var(--navy); }
.tab:hover { text-decoration: underline; }
.clock { float: right; color: #fff; font-size: 10px; padding-top: 8px; }

/* sidebar */
.sidebar { width: 170px; background: var(--grey-pale); border-right: 1px solid #999; padding: 0; }
.side-head { background: var(--navy-2); color: #fff; font-weight: bold; font-size: 11px; padding: 4px 8px; }
.folderlist { width: 100%; border-collapse: collapse; font-size: 11px; }
.folderlist td { padding: 4px 4px; border-bottom: 1px dotted #bbb; }
.folderlist tr.cur td { background: var(--sky-pale); }
.folderlist a { text-decoration: none; }
.folderlist a:hover { text-decoration: underline; }
.ficon { width: 20px; text-align: center; }
.fcount { text-align: right; color: #555; white-space: nowrap; }
.side-note { font-size: 9px; color: #666; padding: 6px 8px; }

/* main */
.main { padding: 10px 12px 16px; }
.pagehead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--navy); padding-bottom: 3px; margin-bottom: 8px; }
.ptitle { font-size: 18px; font-weight: bold; color: var(--navy); font-family: Arial, sans-serif; }
.psub { font-size: 11px; }
.note { background: #ffffcc; border: 1px solid #cc9; padding: 4px 8px; margin: 6px 0; }
.note.small { font-size: 10px; }
.err { background: #ffe0e0; border: 1px solid #c00; color: #900; padding: 5px 8px; margin: 6px 0; font-weight: bold; }
.err.big { font-size: 13px; padding: 10px; }
.dim { color: #666; }
.inline { display: inline; }

/* toolbar + buttons */
.toolbar { background: var(--grey); border: 2px outset #eee; padding: 4px; display: flex;
  flex-wrap: wrap; gap: 3px; align-items: center; margin: 4px 0 6px; }
.toolbar.bottom { margin-top: 6px; }
.toolbar .inline { display: inline-flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.sep { width: 1px; height: 18px; background: #808080; border-right: 1px solid #fff; margin: 0 4px; }
.btn { font: 11px Verdana, Arial, sans-serif; color: #000; background: var(--grey);
  border: 2px outset #f4f4f4; padding: 2px 9px; cursor: pointer; text-decoration: none;
  display: inline-block; line-height: 16px; }
.btn:visited { color: #000; }
.btn:active { border-style: inset; }
.btn.primary { font-weight: bold; }
select, input, textarea { font: 12px Verdana, Arial, sans-serif; }
select { font-size: 11px; }
.pager { margin-left: auto; font-size: 11px; display: flex; gap: 10px; }

/* message list */
.tablewrap { overflow-x: auto; border: 1px solid var(--navy); }
.msglist { width: 100%; border-collapse: collapse; font-size: 11px; }
.msglist th { background: var(--navy-2); color: #fff; text-align: left; padding: 4px 5px; font-weight: bold; }
.msglist td { padding: 3px 5px; border-bottom: 1px solid #dde; white-space: nowrap; }
.msglist tr.even td { background: var(--row-alt); }
.msglist tr.unread td { font-weight: bold; }
.msglist tr:hover td { background: #fff7cc; }
.msglist a { text-decoration: none; color: #000; }
.msglist tr.unread a { color: var(--navy); }
.msglist a:hover { text-decoration: underline; }
.c-chk { width: 22px; } .c-ico { width: 34px; } .c-date { width: 70px; } .c-size { width: 50px; text-align: right; }
.c-who { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.c-subj { max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.env { color: #888; } .env-new { color: #c90; }
.empty { text-align: center; padding: 30px !important; color: #555; font-style: italic; }

/* reading */
.headers { width: 100%; background: var(--sky-pale); border: 1px solid var(--sky); border-collapse: collapse; margin-bottom: 6px; }
.headers th { text-align: right; width: 70px; padding: 3px 6px; vertical-align: top; color: var(--navy); font-size: 11px; }
.headers td { padding: 3px 6px; font-size: 12px; word-break: break-word; }
.viewswitch { font-size: 11px; margin: 4px 0; }
.textbody { white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New", Courier, monospace;
  font-size: 13px; border: 1px solid #aaa; padding: 10px; background: #fff; min-height: 200px; }
.htmlbody { width: 100%; height: 65vh; min-height: 360px; border: 1px solid #aaa; background: #fff; }

/* compose */
.cfields { width: 100%; border-collapse: collapse; background: var(--sky-pale); border: 1px solid var(--sky); }
.cfields th { width: 70px; text-align: right; padding: 4px 6px; color: var(--navy); font-size: 11px; }
.cfields td { padding: 3px 6px; }
.cfields input:not([type]), .cfields input[id=to], .cfields input[id=cc], .cfields input[id=bcc], .cfields input[id=subject] { width: 100%; }
.keep { margin-left: 10px; font-size: 11px; }
.hint { font-size: 10px; color: #555; margin: 3px 0; }
.compose textarea { width: 100%; font-family: "Courier New", Courier, monospace; font-size: 13px; padding: 6px; }

/* login */
.login-wrap { width: 100%; border-collapse: collapse; margin: 14px 0; }
.login-pitch { padding: 10px 20px 10px 6px; }
.login-pitch h1 { font: bold 20px Arial, sans-serif; color: var(--navy); margin: 0 0 8px; }
.login-pitch li { margin: 4px 0; }
.login-box { width: 280px; background: var(--sky-pale); border: 2px solid var(--navy); padding: 0 !important; }
.login-box form { padding: 10px 12px; }
.login-box label { display: block; font-weight: bold; font-size: 11px; margin: 8px 0 2px; }
.boxhead { background: var(--navy); color: #fff; font-weight: bold; padding: 4px 8px; }
.userrow { display: flex; align-items: center; gap: 2px; }
.userrow input { flex: 1; min-width: 0; }
.at { font-size: 11px; color: #333; }
.login-box input[type=password] { width: 100%; }
.btnrow { margin-top: 10px; }
.fine { font-size: 10px; color: #444; }

.footer { background: var(--grey-pale); border-top: 1px solid #999; text-align: center; font-size: 10px; color: #555; padding: 6px; }

/* phones */
@media (max-width: 640px) {
  .frame, .frame > tbody > tr, .frame > tbody > tr > td { display: block; width: 100%; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #999; }
  .login-wrap, .login-wrap tbody, .login-wrap tr, .login-wrap td { display: block; width: 100% !important; }
  .main { padding: 8px; }
  .c-size, .msglist th.c-size { display: none; }
  .pager { margin-left: 0; width: 100%; }
}
