/* static/djustlive/app.css — page LAYOUT only. Colours, buttons, cards,
   badges etc. come from djust's theme tokens and components.css; this file
   must never redefine .btn/.card/.badge (djust owns those names). */
*, *::before, *::after { box-sizing: border-box; }
:root { --wrap: 1120px; --font-mono: "JetBrains Mono", ui-monospace, monospace; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: hsl(var(--background)); color: hsl(var(--foreground)); }
a { color: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.row { display: flex; align-items: center; justify-content: space-between; }
.gap { gap: 20px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.5px; }
.brand span { color: hsl(var(--primary)); margin-left: 2px; }
.site-header, .app-header { border-bottom: 1px solid hsl(var(--border)); padding: 14px 0; }
.site-header nav a, .app-header nav a { text-decoration: none; color: hsl(var(--muted-foreground)); }
.site-header nav a:hover, .app-header nav a:hover { color: hsl(var(--foreground)); }
.site-footer { border-top: 1px solid hsl(var(--border)); padding: 24px 0; margin-top: 64px; color: hsl(var(--muted-foreground)); font-size: 14px; }
.auth-shell { min-height: 100vh; display: grid; place-content: center; gap: 20px; padding: 24px; }
.auth-card { width: min(420px, calc(100vw - 48px)); }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 8px; min-width: 200px; z-index: 20; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid hsl(var(--border)); overflow-x: auto; overflow-y: hidden; }
.tab { padding: 10px 14px; text-decoration: none; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-active { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--primary)); }
.log { display: flex; flex-direction: column-reverse; max-height: 60vh; overflow: auto; background: hsl(var(--code, var(--card))); border: 1px solid hsl(var(--border)); border-radius: var(--radius-md, 8px); font: 12px/1.6 var(--font-mono); }
.log-line { display: flex; gap: 12px; padding: 1px 12px; }
.log-line time { color: hsl(var(--muted-foreground)); }
.log-line-error { color: hsl(var(--destructive)); }
.log-line-warning { color: hsl(var(--warning, var(--primary))); }
.log-empty { padding: 12px; color: hsl(var(--muted-foreground)); }
@media (max-width: 720px) { .site-header nav, .app-header nav { display: none; } }
.styleguide section { margin: 40px 0; }
.styleguide h2 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.wrap-row { flex-wrap: wrap; justify-content: flex-start; }
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.muted { color: hsl(var(--muted-foreground)); }
/* Status badge (ui/components/status.html), on the theme's tokens. */
.ui-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; border: 1px solid hsl(var(--tone) / .35); background: hsl(var(--tone) / .12); color: hsl(var(--tone)); --tone: var(--muted-foreground); }
.ui-badge--online { --tone: var(--success); }
.ui-badge--info { --tone: var(--info); }
.ui-badge--error { --tone: var(--destructive); }
.ui-badge--warning { --tone: var(--warning); }
.ui-badge--offline, .ui-badge--default { --tone: var(--muted-foreground); }
.ui-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ui-badge__dot--pulse { animation: ui-pulse 1.4s ease-in-out infinite; }
@keyframes ui-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ui-badge__dot--pulse { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

