:root { --bg:#f6f7f9; --card:#fff; --line:#e3e6ea; --text:#1f2328; --muted:#6b7280; --accent:#1a73e8;
  --free:#eeeeee; --new:#cfe2f3; --active:#d9ead3; --expired:#f4cccc; --warn:#fff2cc; --danger:#c5221f; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
main { padding:20px 24px 60px; max-width:1500px; margin:0 auto; }
h1 { font-size:22px; margin:4px 0 16px; } h2 { font-size:16px; margin:0 0 10px; }
.muted { color:var(--muted); } .ok { color:#188038; } .mono { font-family:ui-monospace,Consolas,monospace; font-size:13px; }
.top { display:flex; align-items:center; gap:20px; padding:10px 24px; background:#fff; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.brand { font-weight:600; }
.top nav { display:flex; gap:4px; flex-wrap:wrap; flex:1; }
.top nav a { padding:6px 10px; border-radius:6px; color:var(--text); }
.top nav a.on { background:#e8f0fe; color:var(--accent); }
.me { display:flex; gap:10px; align-items:center; }
.statusbar { display:flex; gap:24px; align-items:center; padding:8px 24px; background:#fafbfc; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.badge { font-size:11px; padding:2px 6px; border-radius:4px; } .badge.warn { background:#fde293; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin:16px 0; }
.flash { padding:10px 14px; border-radius:8px; margin:0 0 10px; background:#e6f4ea; border:1px solid #b7e1c1; }
.flash.error { background:#fce8e6; border-color:#f5c2bd; }
button, .button { font:inherit; padding:7px 14px; border-radius:6px; border:1px solid #c9ced6; background:#fff; cursor:pointer; color:var(--text); display:inline-block; }
button:hover, .button:hover { background:#f1f3f4; text-decoration:none; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button.danger { background:var(--danger); color:#fff; border-color:var(--danger); }
button.small { padding:3px 10px; font-size:13px; }
button.link { border:0; background:none; color:var(--accent); padding:0; }
button:disabled { opacity:.5; cursor:default; }
.danger-text { color:var(--danger) !important; }
form.inline { display:inline; }
input, select, textarea { font:inherit; padding:6px 8px; border:1px solid #c9ced6; border-radius:6px; background:#fff; }
textarea { width:100%; }
label { display:block; margin:8px 0; } label.chk { display:inline-flex; gap:6px; align-items:center; margin:0 10px 0 0; }
.login { max-width:360px; margin:80px auto; } .login input { width:100%; }
.settings label input, .settings label select { display:block; width:100%; max-width:420px; margin-top:4px; }
.settings label.chk { display:flex; margin:10px 0; }
.filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.filters input[name=q] { min-width:260px; }
.bulkbar { position:sticky; top:0; z-index:2; display:flex; gap:8px; align-items:center; padding:8px 0; background:var(--bg); flex-wrap:wrap; }
.tablewrap { overflow-x:auto; }
table.grid { border-collapse:collapse; width:100%; background:#fff; border:1px solid var(--line); }
table.grid.narrow { width:auto; min-width:400px; }
.grid th, .grid td { padding:6px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.grid thead th { background:#fafbfc; position:sticky; top:0; }
.grid tfoot th { background:#fafbfc; }
.grid td.details { white-space:normal; max-width:700px; word-break:break-word; }
.grid td.c { text-align:center; }
.c-free { background:var(--free); } .c-new { background:var(--new); } .c-active { background:var(--active); } .c-expired { background:var(--expired); }
tr.st-Free { background:var(--free); } tr.st-Free.is-new { background:var(--new); }
tr.st-Active { background:var(--active); } tr.st-Active.is-warn { background:var(--warn); }
tr.st-Expired { background:var(--expired); } tr.is-err { background:#fce8e6; }
.accounts input.note { width:180px; padding:3px 6px; background:transparent; }
.accounts input.note:focus { background:#fff; }
.accounts input.note.saved { outline:2px solid #34a853; }
.pw { cursor:copy; } .pw.copied { background:#34a853; color:#fff; border-radius:3px; }
textarea.export { height:340px; }
.names { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:16px; } .names > div { grid-column:1/-1; }
.mail .row { display:flex; gap:16px; align-items:center; flex-wrap:wrap; } .mail input[name^=subject], .mail input[name=new_subject] { width:100%; }
.demo { background:#fff8e1; }
@media (max-width:900px) { .names { grid-template-columns:1fr; } }
