:root { --fg: #1f2937; --muted: #6b7280; --line: #e5e7eb; --bg: #f8fafc; --accent: #3366ff; --err: #b91c1c; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); }
.brand { margin: 0; font-weight: 700; letter-spacing: .02em; }
body.login { display: flex; align-items: center; justify-content: center; padding: 16px; }
.card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.logo { display: block; width: 180px; height: auto; margin: 0 0 4px -6px; }
h1 { margin: 4px 0 24px; font-size: 22px; font-weight: 600; }
label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
button { font: inherit; cursor: pointer; }
.card button { width: 100%; margin-top: 22px; padding: 11px; color: #fff; background: var(--accent); border: 0; border-radius: 8px; font-weight: 600; }
.error { margin: 0 0 8px; padding: 10px 12px; color: var(--err); background: #fef2f2; border-radius: 8px; font-size: 14px; }
body.dashboard { display: flex; flex-direction: column; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
header .brand span { font-weight: 400; color: var(--muted); margin-left: 6px; }
header form { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; }
.who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); }
iframe { flex: 1; width: 100%; border: 0; background: #fff; }
