/* AwareGO Importer in the AI-Point design language (indicia-AI-lab/AI-Point, ADR 0005 "bento"): light grey canvas, white
   28px cards with a soft shadow, pill buttons, round icon buttons, sidebar navigation, Geist. Tokens = AI-Point's
   neutral (Indicia) theme from src/app/globals.css. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --brand: #1b1f2a; --brand-fg: #ffffff;
  --accent: #e4572e; --accent-fg: #ffffff; --accent-soft: #f6d9cf; --accent-ring: rgba(228, 87, 46, .4);
  --secondary: #7c93b8;
  --canvas: #e9ebee;
  --surface: #ffffff; --surface-2: #f3f4f6; --surface-3: #e5e7eb;
  --ink: #16181d; --ink-2: #4b5160; --ink-3: #8a909c; --line: #e3e5e9;
  --ok: #16a34a; --ok-soft: #dcfce7; --wait: #d97706; --wait-soft: #fef3c7; --err: #dc2626; --err-soft: #fee2e2;
  --info: #2563eb; --info-soft: #dbeafe;
  --radius-card: 28px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
  /* aliases used by older class names */
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --border: var(--line); --border-strong: var(--surface-3);
  --bg: var(--canvas); --danger: var(--err); --danger-soft: var(--err-soft); --warn: var(--wait); --warn-soft: var(--wait-soft);
  --ok-border: #bbf7d0; --danger-border: #fecaca; --warn-border: #fde68a;
  --r-sm: 12px; --r: 16px; --r-lg: var(--radius-card);
  --shadow: var(--shadow-card); --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .25);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- shell: one page, compact sticky topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(233, 235, 238, .85); backdrop-filter: blur(8px); }
.topbar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; flex: none; }
.logo b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.spacer { flex: 1; }
.topbar .btn[hidden] { display: none; }
main.wrap { padding: 8px 32px 64px; }
@media (max-width: 640px) { .topbar { padding: 10px 16px; gap: 8px; } .topbar .logo b, .pill-long { display: none; } .topbar .btn { padding: 0 14px; } .status-pill { padding: 0 12px; } main.wrap { padding: 4px 16px 48px; } }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 2.25rem; font-weight: 400; }
.page-head p { margin-top: 8px; max-width: 46rem; color: var(--ink-2); }
.wrap { max-width: 1400px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s, opacity .15s, box-shadow .15s, color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: var(--brand-fg); box-shadow: none; }
.btn.primary:hover { opacity: .9; background: var(--brand); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.copy.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }

/* ---------- status ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); }
.status-pill[hidden] { display: none; }
.status-pill { height: 42px; padding: 0 16px; font-size: 13px; background: var(--surface); box-shadow: var(--shadow-card); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status-pill.ok { color: var(--ok); } .status-pill.ok .dot { background: var(--ok); }
.status-pill.warn { color: var(--wait); } .status-pill.warn .dot { background: var(--wait); }

/* ---------- cards ---------- */
.panel { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px; margin-bottom: 24px; scroll-margin-top: 96px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.panel-head .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; }
.panel-head h2 { font-size: 1.25rem; font-weight: 500; line-height: 40px; }
.panel-head p { margin-top: 2px; font-size: 14px; color: var(--ink-2); max-width: 40rem; }
.panel-head > div:nth-child(2) { flex: 1; min-width: 0; }

/* ---------- fields ---------- */
.field { display: block; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint, .hint { font-size: 13px; color: var(--ink-3); }
.field .hint { margin-top: 6px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 0; border-radius: 16px; padding: 12px 16px;
  outline: none; transition: box-shadow .15s, background-color .15s;
}
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus, textarea:focus, select:focus { box-shadow: 0 0 0 2px var(--accent-ring); background: var(--surface); }
input[readonly] { color: var(--ink-2); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a909c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ---------- list items ---------- */
.item { border-radius: 20px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.item input[type=text], .item textarea, .item select { background: var(--surface); }
.empty { padding: 32px 20px; text-align: center; color: var(--ink-3); font-size: 14px; border-radius: 20px; background: var(--surface-2); }
.empty b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 1.05rem; }

/* ---------- feedback ---------- */
.errors { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 20px; border-radius: 20px; background: var(--err-soft); color: var(--err); font-size: 14px; }
.errors[hidden] { display: none; }
.errors svg { flex: none; margin-top: 2px; }
.errors b { display: block; margin-bottom: 4px; font-weight: 500; }
.errors ul { margin: 0; padding-left: 18px; color: #7f1d1d; }
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--brand); color: var(--brand-fg); box-shadow: var(--shadow-lg); font-size: 14px; animation: fadein .25s ease-out both; }
.toast svg { color: #86efac; }

