/* BitGuard Files - BitGuard Security brand (see CLAUDE.md, "Branding"). */
:root {
    --brand: #041c47;        /* primary: navy */
    --brand-dark: #020f27;   /* darker navy for hover/pressed */
    --accent: #14367c;       /* secondary: royal blue (the "BIT" in the logo) */
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #5f6b7a;
    --danger: #c92a2a;
    --ok: #2b8a3e;
    --border: #d9dee7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
          background: var(--brand); color: #fff; padding: .75rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
.brand span { font-size: 1.1rem; font-weight: 400; opacity: .85; padding-left: .75rem; border-left: 1px solid rgba(255,255,255,.35); }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.topbar a, .topbar .link { color: #fff; text-decoration: none; font: inherit; }
.topbar a:hover, .topbar .link:hover { text-decoration: underline; }
.who { opacity: .8; }
main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; }
h1 { font-size: 1.5rem; margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.narrow { max-width: 440px; margin: 0 auto; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input[type=text], input[type=email], input[type=password], select {
    width: 100%; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
button, .button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
    padding: .55rem 1rem; font: inherit; cursor: pointer; margin-top: 1rem; text-decoration: none; }
button:hover, .button:hover { background: var(--brand-dark); }
button.secondary { background: #e9ecf2; color: var(--text); }
button.danger { background: var(--danger); }
button.small { padding: .3rem .6rem; margin: .1rem; font-size: .85rem; }
button.link { background: none; padding: 0; margin: 0; }
form.inline { display: inline; }
.error, .validation-summary-errors { color: var(--danger); }
.field-validation-error { color: var(--danger); font-size: .9rem; }
.notice { background: #e7f5ff; border: 1px solid #a5d8ff; border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1rem; }
.notice.ok { background: #ebfbee; border-color: #b2f2bb; }
.notice.bad { background: #fff5f5; border-color: #ffc9c9; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; background: #f1f3f5;
          padding: .4rem .6rem; border-radius: 4px; user-select: all; word-break: break-all; }
.codes { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.qr { display: block; width: 220px; height: 220px; image-rendering: pixelated; margin: 1rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eef1f6; font-size: .9rem; }
.tag { display: inline-block; padding: .1rem .45rem; border-radius: 4px; font-size: .8rem; background: #e9ecf2; }
.tag.ok { background: #d3f9d8; } .tag.bad { background: #ffe3e3; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
textarea { width: 100%; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 6px;
           font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; }
label.check { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
label.check input { margin-top: .25rem; }
.small { font-size: .85rem; }
p.small { margin: .25rem 0 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.5rem; }
table.kv th { width: 140px; background: none; }
.danger-zone { border-color: #ffc9c9; }
.tree .folder::before { content: "\1F4C1  "; }
.tree .depth-2 { padding-left: 2rem; } .tree .depth-3 { padding-left: 3.5rem; } .tree .depth-4 { padding-left: 5rem; }
details summary { cursor: pointer; color: var(--accent); font-size: .85rem; }
.row-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.row-form input[type=text] { width: auto; flex: 1; min-width: 140px; }
.row-form button { margin-top: 0; }
a { color: var(--accent); }
.login-logo { display: block; width: 280px; max-width: 80%; height: auto; margin: 0 auto 1.5rem; }
.tree .mount::before { content: "\2601  "; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 1rem; }
.toolbar .button { margin-top: 0; }
.toolbar a.active { font-weight: 700; text-decoration: none; color: var(--text); }
a.button.secondary { background: #e9ecf2; color: var(--text); }
a.button.small { padding: .3rem .7rem; font-size: .9rem; }
.tag.role-admin { background: var(--brand); color: #fff; }
.tag.role-web { background: #dbe4ff; }
.tag.role-ftp { background: #fff3bf; }
