* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #f4f6f9; color: #1a1a1a; }
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card { background: #fff; padding: 2rem; border-radius: 12px; width: min(400px, 92vw); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.login-card h1 { margin: 0 0 .5rem; font-size: 1.25rem; }
label { display: block; margin: .75rem 0; font-size: .9rem; }
input, select, textarea { width: 100%; margin-top: .25rem; padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px; }
button { padding: .45rem .9rem; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
button.danger { color: #b91c1c; border-color: #fecaca; }
button.link { background: none; border: none; color: #2563eb; }
.muted { color: #64748b; font-size: .85rem; }
.error { color: #b91c1c; font-size: .85rem; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: #0f172a; color: #fff; }
.topbar .tabs { flex: 1; }
.tab { background: transparent; border: none; color: #94a3b8; margin-right: .5rem; }
.tab.active { color: #fff; font-weight: 600; }
main { max-width: 960px; margin: 1rem auto; padding: 0 1rem 2rem; }
.notice { background: #eff6ff; border: 1px solid #bfdbfe; padding: .75rem; border-radius: 8px; font-size: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; align-items: center; }
.toolbar input { flex: 1; min-width: 160px; }
.toolbar select { min-width: 140px; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.text-link { color: #2563eb; font-size: .9rem; text-decoration: none; align-self: center; }
.list { background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; }
.row { padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.row:last-child { border-bottom: none; }
.row-title { font-weight: 600; }
.row-meta { font-size: .85rem; color: #64748b; margin-top: .2rem; }
.tag { display: inline-block; font-size: .75rem; padding: .1rem .45rem; border-radius: 4px; background: #e2e8f0; margin-left: .35rem; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.warn { background: #fef3c7; color: #92400e; }
.tag.bad { background: #fee2e2; color: #991b1b; }
dialog { border: none; border-radius: 12px; padding: 1.25rem; max-width: min(520px, 92vw); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
pre { background: #f1f5f9; padding: .75rem; border-radius: 6px; overflow: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
code { font-size: .85em; }
