/* Aiotic look, as in Aiotic Workspace: light only, forest sidebar, teal brand, system fonts. Shared by the
   app page and the sign-in page. Nothing here names a system behind the product. */
:root {
  --brand: #3a7d6c; --brand-dark: #2d6355; --brand-tint: #f0f9f6; --brand-soft: #e8f5f1; --flash: #c5e8db;
  --sidebar: #233a38; --page: #f9fafb; --chrome: #f3f4f6; --border: #e5e7eb; --divider: #f3f4f6; --input-border: #d1d5db;
  --text: #1f2937; --heading: #111827; --secondary: #4b5563; --muted: #6b7280; --meta: #9ca3af;
  --rec: #b91c1c; --rec-soft: #fef2f2; --rec-border: #fecaca;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
svg.i { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* brand block */
.brand { text-align: center; color: #fff; }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: .1em; line-height: 1.1; }
.wordmark-sub { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 4px; background: var(--brand); color: #fff; font-size: 14px; cursor: pointer; transition: background-color .15s; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.danger, .btn.on { background: var(--rec); }
.btn.danger:hover, .btn.on:hover { background: #991b1b; }
.btn-secondary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 4px; background: #e5e7eb; color: var(--text); font-size: 13px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-secondary:hover { background: #d1d5db; }
.btn-secondary:disabled { opacity: .5; cursor: default; }
.btn-secondary.on { background: var(--brand); color: #fff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--secondary); font-size: 13px; cursor: pointer; }
.btn-ghost:hover { background: var(--chrome); color: var(--heading); }

/* form */
.field { display: grid; gap: 4px; }
.label { font-size: 14px; font-weight: 500; color: #374151; }
.input { width: 100%; padding: 8px 12px; border: 1px solid var(--input-border); border-radius: 4px; font-size: 14px; color: var(--text); background: #fff; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.input.compact { padding: 5px 8px; font-size: 13px; }
.form-error { font-size: 12px; color: #ef4444; min-height: 18px; }
.small, .hint { font-size: 12px; }
.muted { color: var(--meta); }
.secondary { color: var(--secondary); }

/* status chips */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: #f3f4f6; color: #4b5563; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: #9ca3af; }
.badge.success { background: #ecfdf5; color: #047857; } .badge.success::before { background: #10b981; }
.badge.warn { background: #fffbeb; color: #b45309; } .badge.warn::before { background: #f59e0b; }
.badge.error { background: #fef2f2; color: #b91c1c; } .badge.error::before { background: #ef4444; }
.badge.info { background: #eff6ff; color: #1d4ed8; } .badge.info::before { background: #3b82f6; }
.badge.live::before { animation: ping 1.2s infinite; }
@keyframes ping { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* cards and banners */
.card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--heading); margin: 0 0 12px; }
.banner { padding: 10px 12px; border-radius: 6px; font-size: 13px; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.banner.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.banner.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* empty state */
.empty-state { text-align: center; padding: 56px 16px; }
.empty-state .circle { width: 56px; height: 56px; border-radius: 9999px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.empty-state .circle svg.i { width: 28px; height: 28px; }
.empty-state .t { font-size: 14px; font-weight: 500; color: var(--secondary); }
.empty-state .s { font-size: 12px; color: var(--meta); max-width: 300px; margin: 4px auto 0; }

/* toast */
.toast { position: fixed; right: 24px; bottom: 24px; background: #1f2937; color: #fff; font-size: 13px; padding: 10px 14px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); animation: toast-in .35s var(--ease); z-index: 10; max-width: 380px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .toast, .badge.live::before { animation: none; } }
