:root { --bg: #0f1419; --panel: #161c24; --line: #263040; --text: #e6edf3; --muted: #8b98a8; --acc: #4fb3a9; --bad: #e5534b; --ok: #3fb950; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.logo { background: var(--acc); color: #001; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.tag { font-size: 11px; color: var(--acc); border: 1px solid var(--acc); border-radius: 10px; padding: 1px 8px; font-weight: 500; }
.who { display: flex; gap: 12px; align-items: center; }
.pad { padding: 16px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .err { color: var(--bad); min-height: 1em; }
button { background: #222b38; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; font: inherit; }
button:hover { border-color: var(--acc); }
button.primary { background: var(--acc); color: #00110f; border-color: var(--acc); font-weight: 600; }
button.link { background: none; border: none; color: var(--acc); padding: 4px; }
button.wide { width: 100%; }
input, textarea { width: 100%; background: #0b1016; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; margin-top: 4px; }
label { display: block; margin: 10px 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.narrow { max-width: 420px; margin: 60px auto; }
.layout { display: grid; grid-template-columns: 220px 360px 1fr; height: calc(100vh - 49px); }
.side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.folders { list-style: none; padding: 0; margin: 0; }
.folder { width: 100%; text-align: left; background: none; border: none; display: flex; justify-content: space-between; }
.folder.active { background: #1d2733; }
.badge { background: var(--acc); color: #001; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.keys { margin-top: auto; font-size: 11px; } .fp code { font-size: 10px; color: var(--acc); }
.list { border-right: 1px solid var(--line); overflow-y: auto; }
.item { display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 10px 12px; }
.item.unseen .subj { font-weight: 700; } .item.bad { background: #2a1416; }
.row-between { display: flex; justify-content: space-between; gap: 8px; }
.subj { margin: 2px 0; } .lock { margin-right: 4px; }
.read { padding: 16px 22px; overflow-y: auto; }
.meta { margin: 8px 0 12px; display: grid; gap: 2px; }
.banner { border-radius: 8px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 4px; }
.banner.ok { background: #0f2a1d; border: 1px solid #1f6f43; } .banner.bad { background: #2a1416; border: 1px solid var(--bad); }
.banner code { color: var(--acc); }
pre.body { white-space: pre-wrap; font: inherit; background: #0b1016; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.row { display: flex; gap: 8px; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; width: min(640px, 94vw); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
table.sec { border-collapse: collapse; } table.sec th { text-align: left; vertical-align: top; padding: 6px 12px 6px 0; color: var(--muted); white-space: nowrap; } table.sec td { padding: 6px 0; }
.toast { position: fixed; bottom: 18px; right: 18px; background: #0f2a1d; border: 1px solid #1f6f43; border-radius: 8px; padding: 10px 14px; }
