/* MWB Hub — one small stylesheet, no build step. */
:root {
  --ink: #16202e; --muted: #5b6676; --line: #e3e7ed; --bg: #f6f7f9; --card: #fff;
  --navy: #13294b; --navy-2: #1d3a66; --accent: #b8892b; --ok: #1f7a4d; --warn: #a15c00; --err: #b42318;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--navy-2); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.small { font-size: .85rem; } .muted { color: var(--muted); } .right { text-align: right; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: var(--navy); color: #fff; padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.sidebar a { color: #dbe4f3; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.sidebar a:hover, .sidebar a.active { background: var(--navy-2); color: #fff; }
.sidebar .brand { font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 12px; letter-spacing: .02em; }
.sidebar-foot { margin-top: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-foot .muted { color: #9fb0c9; }
.content { flex: 1; padding: 24px 28px; max-width: 1400px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.side { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .grid.two, .grid.three, .grid.side { grid-template-columns: 1fr; } .sidebar { width: 64px; } .sidebar a { font-size: .7rem; padding: 6px; overflow-wrap: anywhere; } .sidebar .brand { font-size: .7rem; overflow: hidden; } .content { padding: 16px; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
label.inline { flex-direction: row; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #cfd6df; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid #cfd6df; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; }
.btn:hover { background: #f0f3f7; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { color: var(--err); border-color: #f0c7c2; }
.btn.small { padding: 4px 9px; font-size: .85rem; }
button.link { background: none; border: 0; padding: 0; color: #dbe4f3; cursor: pointer; font: inherit; text-align: left; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tr:hover td { background: #fafbfc; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f5; color: var(--ink); }
.badge.ok { background: #e3f4ea; color: var(--ok); } .badge.warn { background: #fdf0dc; color: var(--warn); } .badge.err { background: #fde7e5; color: var(--err); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: #eaf0fa; color: var(--navy-2); font-size: .8rem; margin: 2px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: #e3f4ea; color: var(--ok); border: 1px solid #bfe3cf; }
.flash.err { background: #fde7e5; color: var(--err); border-color: #f5c2bc; }
.error { color: var(--err); margin: 0; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* Kanban */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.col { min-width: 250px; width: 250px; background: #eef1f5; border-radius: var(--radius); padding: 8px; }
.col-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; padding: 4px 4px 8px; border-top: 4px solid var(--stage-color, #5F667E); border-radius: 4px 4px 0 0; }
.col-body { min-height: 60px; display: flex; flex-direction: column; gap: 8px; }
.deal-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: grab; box-shadow: var(--shadow); }
.deal-card a { text-decoration: none; color: var(--ink); font-weight: 600; }
.sortable-ghost { opacity: .4; }
/* Auth */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); }
.auth-card { background: #fff; padding: 28px; border-radius: 12px; width: min(420px, 92vw); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.brand-lg { color: var(--navy); margin-bottom: 18px; }
.qr { width: 200px; height: 200px; align-self: center; }
.stat { font-size: 1.8rem; font-weight: 700; } .stat-label { color: var(--muted); font-size: .85rem; }
