/* ============================================================
   ProvedUp design system — calm, dark, productive.
   ============================================================ */

:root {
  --bg: #130d08;
  --bg-soft: #18110b;
  --panel: #1f160e;
  --panel-2: #261b11;
  --panel-3: #2e2115;
  --border: rgba(214, 180, 140, 0.13);
  --border-strong: rgba(214, 180, 140, 0.22);
  --text: #f4ebdf;
  --text-2: #d2bfa8;
  --muted: #a68f76;
  --faint: #715d49;
  --accent: #E8923A;
  --accent-bright: #F2A85A;
  --accent-soft: rgba(232, 146, 58, 0.13);
  --accent-border: rgba(232, 146, 58, 0.35);
  --green: #3ecf8e;
  --green-soft: rgba(62, 207, 142, 0.13);
  --red: #f47272;
  --red-soft: rgba(244, 114, 114, 0.12);
  --amber: #f5b652;
  --amber-soft: rgba(245, 182, 82, 0.13);
  --blue: #6ea8ff;
  --blue-soft: rgba(110, 168, 255, 0.13);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "tnum";
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 460px at 50% -180px, rgba(232, 146, 58, 0.09), transparent 65%),
    radial-gradient(800px 380px at 85% 115%, rgba(110, 168, 255, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app, .toasts { position: relative; z-index: 1; }

::selection { background: rgba(232, 146, 58, 0.35); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 12, 18, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 28px;
  height: 58px; display: flex; align-items: center; gap: 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; flex: none; display: block;
  background: url("/icons/provedup-mark.svg") center / contain no-repeat;
  color: transparent; font-size: 0; overflow: hidden;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: rgba(214, 180, 140, 0.08); text-decoration: none; }
.nav-link.active { color: var(--text); background: rgba(214, 180, 140, 0.1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user { color: var(--muted); font-size: 13px; }
.role-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 7px; border-radius: 99px; margin-left: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 10px; border: 1px solid transparent;
  padding: 9px 16px; cursor: pointer; user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  color: var(--text); background: var(--panel-2);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #F0A050, #E8923A);
  color: #1a0f06; border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 20px rgba(232, 146, 58, 0.25);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #F6B468, #EC9A46); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); background: rgba(214, 180, 140, 0.06); }
.btn-danger { background: transparent; border-color: rgba(244, 114, 114, 0.35); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
}
.hint { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.hint a { color: var(--muted); text-decoration: underline; }
.input, .textarea, .select {
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(232, 146, 58, 0.15);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237f889f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.select option { background: var(--panel); color: var(--text); }

/* ---------- cards & panels ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card + .card { margin-top: 16px; }

/* ---------- status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--text-2); background: var(--panel-2);
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.chip-queued .dot { background: var(--muted); }
.chip-planning { color: var(--amber); background: var(--amber-soft); border-color: rgba(245, 182, 82, 0.3); }
.chip-planning .dot { background: var(--amber); }
.chip-running { color: var(--blue); background: var(--blue-soft); border-color: rgba(110, 168, 255, 0.3); }
.chip-running .dot { background: var(--blue); animation: pulse 1.2s ease-in-out infinite; }
.chip-completed { color: var(--green); background: var(--green-soft); border-color: rgba(62, 207, 142, 0.3); }
.chip-completed .dot { background: var(--green); }
.chip-failed { color: var(--red); background: var(--red-soft); border-color: rgba(244, 114, 114, 0.3); }
.chip-failed .dot { background: var(--red); }
.chip-cancelled { color: var(--muted); }
.chip-cancelled .dot { background: var(--faint); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- auth screens ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 40px; height: 40px; }
.auth-brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: -18px 0 22px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 11px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  border: none; background: transparent; color: var(--muted);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 8px 0; border-radius: 8px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-tab.active { background: var(--panel-3); color: var(--text); }
.auth-footnote { margin-top: 18px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- home / composer ---------- */
.page-head { padding: 44px 0 26px; }
.page-title { font-size: 27px; letter-spacing: -0.025em; margin-bottom: 6px; }
.page-sub { color: var(--muted); font-size: 14.5px; }

.composer {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.composer:focus-within { border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(232, 146, 58,0.1), var(--shadow); }
.composer textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 15.5px; line-height: 1.6;
}
.composer textarea::placeholder { color: var(--faint); }
.composer-row {
  display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap;
}
.composer-row .select { width: auto; min-width: 190px; flex: none; }
.composer-spacer { flex: 1; }
.char-note { color: var(--faint); font-size: 12px; }

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- task list ---------- */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  cursor: pointer; text-align: left; width: 100%;
  font-family: var(--font); color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.task-row:hover { border-color: var(--border-strong); background: var(--panel-2); }
.task-row-title { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.task-row-desc {
  color: var(--muted); font-size: 13px; margin-top: 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.task-row-main { flex: 1; min-width: 0; }
.task-row-meta { display: flex; align-items: center; gap: 12px; flex: none; }
.task-row-time { color: var(--faint); font-size: 12px; }
.artifact-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--green); font-size: 12px; font-weight: 600;
}
.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 44px 20px; text-align: center; color: var(--muted);
}
.empty strong { color: var(--text-2); display: block; font-size: 15px; margin-bottom: 4px; }

/* ---------- task detail ---------- */
.task-head { padding: 36px 0 22px; }
.task-head-top { display: flex; align-items: flex-start; gap: 16px; }
.task-head h1 { font-size: 24px; letter-spacing: -0.02em; flex: 1; line-height: 1.3; }
.task-meta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-top: 12px; color: var(--muted); font-size: 12.5px;
}
.task-meta .sep { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }

.progress {
  height: 5px; border-radius: 99px; background: var(--panel-3);
  overflow: hidden; margin: 18px 0 26px;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(232, 146, 58, 0.5);
}

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.step {
  position: relative;
  padding: 0 0 8px 44px;
}
.step::before {
  content: ""; position: absolute; left: 15px; top: 30px; bottom: -6px;
  width: 2px; background: var(--border);
}
.step:last-child::before { display: none; }
.step-bubble {
  position: absolute; left: 4px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--panel-3); color: var(--muted);
  border: 1px solid var(--border-strong);
}
.step.done .step-bubble { background: var(--green-soft); color: var(--green); border-color: rgba(62, 207, 142, 0.4); }
.step.running .step-bubble { background: var(--blue-soft); color: var(--blue); border-color: rgba(110, 168, 255, 0.45); }
.step.running .step-bubble::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--blue); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.step.failed .step-bubble { background: var(--red-soft); color: var(--red); border-color: rgba(244, 114, 114, 0.4); }
@keyframes spin { to { transform: rotate(360deg); } }

.step-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 6px;
}
.step.running .step-card { border-color: rgba(110, 168, 255, 0.35); }
.step-title-row { display: flex; align-items: center; gap: 10px; }
.step-title { font-weight: 600; font-size: 14px; flex: 1; }
.step-detail { color: var(--muted); font-size: 13px; margin-top: 3px; }
.step-toggle {
  border: none; background: transparent; color: var(--faint); cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 600; padding: 2px 6px;
}
.step-toggle:hover { color: var(--text-2); }
.step-output {
  margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px;
  font-size: 13.5px;
}
.step-output .markdown { color: var(--text-2); }
.step-error {
  margin-top: 10px; border-top: 1px solid rgba(244, 114, 114, 0.25); padding-top: 10px;
  color: var(--red); font-size: 13px;
}
.running-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Tool-Fit chips (v3a) ---------- */
.tool-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--teal, #5eead4);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
  cursor: default;
}
.tool-chip-fallback { color: var(--yellow, #f5d06f); background: rgba(245, 208, 111, 0.08); border-color: rgba(245, 208, 111, 0.25); }
.tool-chip-pinned { color: var(--violet, #F2A85A); background: rgba(242, 168, 90, 0.08); border-color: rgba(242, 168, 90, 0.25); }
.route-note { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.step-why {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 8px; font-size: 12.5px;
}
.step-why .why-reason { color: var(--muted); }
.step-why .why-notice { color: var(--yellow, #f5d06f); }
.artifact-image { padding: 18px; display: flex; justify-content: center; background: rgba(0,0,0,0.15); }
.artifact-image img { max-width: 100%; max-height: 560px; border-radius: 10px; }
.typing span {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted); margin-right: 3px;
  animation: bounce 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- artifact ---------- */
.artifact-panel { margin-top: 8px; }
.artifact-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.artifact-name { font-weight: 600; font-size: 14.5px; flex: 1; min-width: 200px; }
.artifact-body { padding: 26px 30px 30px; }

/* ---------- markdown rendering ---------- */
.markdown { line-height: 1.7; font-size: 14.5px; color: var(--text-2); word-break: break-word; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 {
  color: var(--text); margin: 1.4em 0 0.55em; line-height: 1.35; letter-spacing: -0.015em;
}
.markdown h1 { font-size: 23px; }
.markdown h2 { font-size: 19px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.markdown h3 { font-size: 16px; }
.markdown h4 { font-size: 14.5px; }
.markdown p { margin: 0.7em 0; }
.markdown ul, .markdown ol { margin: 0.7em 0; padding-left: 1.5em; }
.markdown li { margin: 0.3em 0; }
.markdown li::marker { color: var(--accent-bright); }
.markdown strong { color: var(--text); font-weight: 600; }
.markdown em { color: var(--text-2); }
.markdown blockquote {
  margin: 1em 0; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent-border);
  color: var(--muted);
}
.markdown code {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(232, 146, 58, 0.1); border: 1px solid rgba(232, 146, 58, 0.16);
  color: #c9c2ff; padding: 1.5px 6px; border-radius: 6px;
}
.markdown pre {
  margin: 1em 0; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; overflow-x: auto;
}
.markdown pre code { background: none; border: none; padding: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.markdown table { border-collapse: collapse; margin: 1em 0; width: 100%; font-size: 13.5px; }
.markdown th, .markdown td {
  border: 1px solid var(--border-strong); padding: 7px 12px; text-align: left;
}
.markdown th { background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 12.5px; }
.markdown hr { border: none; border-top: 1px solid var(--border); margin: 1.6em 0; }
.markdown a { color: var(--accent-bright); }

/* ---------- settings ---------- */
.settings-section { margin: 30px 0 14px; }
.provider-grid { display: flex; flex-direction: column; gap: 14px; }
.provider-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.provider-card.active-default { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-border); }
.provider-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.provider-name { font-weight: 600; font-size: 15px; }
.provider-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px;
}
.provider-status.on { color: var(--green); background: var(--green-soft); }
.provider-status.off { color: var(--muted); background: var(--panel-3); }
.provider-desc { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.provider-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.provider-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.test-result { font-size: 12.5px; }
.test-result.ok { color: var(--green); }
.test-result.err { color: var(--red); }
.readonly-note {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; color: var(--muted); font-size: 13px;
}
.default-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.default-row .field { margin-bottom: 0; min-width: 240px; flex: 1; max-width: 340px; }
.save-bar {
  position: sticky; bottom: 18px; margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(23, 27, 40, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); z-index: 10;
}
.save-bar .grow { flex: 1; }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  background: var(--panel-2); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--text);
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}
.toast.err { border-color: rgba(244, 114, 114, 0.4); }
.toast.ok { border-color: rgba(62, 207, 142, 0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- misc ---------- */
.page { padding-bottom: 80px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; vertical-align: -3px;
}
.center-page { text-align: center; padding: 90px 20px; color: var(--muted); }
.fade-in { animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 18px; }
  .nav-inner { padding: 0 18px; }
  .nav-user { display: none; }
  .task-row { flex-direction: column; align-items: flex-start; }
  .task-row-meta { width: 100%; justify-content: space-between; }
  .composer-row .select { flex: 1; }
  .markdown h1 { font-size: 20px; }
  .artifact-body { padding: 20px; }
}

/* ============================================================
   v2 — app shell, workspace tree, dashboard, folder explorer,
   files library, dialogs. Keyed to the classes the JS renders.
   ============================================================ */

/* ---------- app shell ---------- */
#app { min-height: 100vh; }

#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

main#main,
.main-col {
  margin-left: 272px;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 12px 12px;
  gap: 12px;
  overflow: hidden;
}

.sidebar-inner .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 2px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.new-task-btn { width: 100%; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* the menu scrolls inside the sidebar when it is taller than the window (2026-12-02: it was cut off and would not scroll) */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.8px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.side-link:hover { background: var(--panel-2); color: var(--text); }
.side-link.active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 600;
}

/* ---------- folding menu groups (v3.763) ---------- */
.side-sect { display: flex; flex-direction: column; gap: 2px; }
.side-sect + .side-sect { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border, rgba(127,127,127,.15)); }
.side-sect .side-group { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; margin: 6px 0 2px; padding: 4px 10px; border-radius: var(--radius-sm); }
.side-sect .side-group::after { content: '▾'; margin-left: auto; font-size: 11px; letter-spacing: 0; transition: transform .15s ease; }
.side-sect .side-group:hover, .side-sect .side-group:focus-visible { color: var(--text); background: var(--panel-2); outline: none; }
.side-sect.closed .side-group::after { transform: rotate(-90deg); }
.side-sect-body { display: flex; flex-direction: column; gap: 2px; }
.side-sect.closed .side-sect-body { display: none; }
.side-biz-list { display: flex; flex-direction: column; gap: 1px; margin: -1px 0 2px; }
.side-biz-list:empty { display: none; }
.side-biz-list .side-sub { padding: 4px 10px 4px 34px; font-size: 12.8px; }

/* ---------- shell search (the sidebar's ⌘K box) ---------- */
.side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.side-search:focus-within { border-color: var(--accent-border); }
.side-search span[aria-hidden] { font-size: 12px; }
.side-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
}
.side-search input::placeholder { color: var(--faint); }
.side-search input::-webkit-search-cancel-button { display: none; }
.side-search-kbd {
  flex: none;
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
.side-search-pop {
  position: fixed;
  z-index: 90;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.side-search-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 9px 3px;
}
.side-search-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 9px;
  cursor: pointer;
  font-family: var(--font);
}
.side-search-item:hover, .side-search-item.sel { background: var(--accent-soft); }
.side-search-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.side-search-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-search-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.side-search-err { color: var(--amber); }

.side-tree {
  flex: 0 1 auto;
  max-height: 30vh;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}

.side-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
}

.side-tree-title {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.side-foot {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.nav-user {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* ---------- workspace tree ---------- */
.tree-branch { display: flex; flex-direction: column; }

.tree-children {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  margin-left: 15px;
  border-left: 1px solid var(--panel-3);
  border-top-left-radius: 6px;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font: inherit;
  font-size: 13.3px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.tree-row:hover { background: var(--panel-2); color: var(--text); }
.tree-row.active { background: var(--accent-soft); color: var(--accent-bright); font-weight: 600; }
.tree-row.dragging { opacity: 0.45; }
.tree-row.drop-hover {
  background: var(--accent-soft);
  outline: 1.5px dashed var(--accent-border);
  outline-offset: -1.5px;
}

.tree-caret {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.14s ease;
}
.tree-caret:hover { color: var(--text); background: var(--panel-3); }
.tree-caret.open { transform: rotate(90deg); }
.tree-caret.leaf { visibility: hidden; }

.tree-row.has-children .tree-name { font-weight: 500; color: var(--text); }

.tree-icon { flex: none; font-size: 13px; }
.tree-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-count {
  flex: none;
  font-size: 10.5px;
  color: var(--faint);
  background: var(--panel-3);
  border-radius: 8px;
  padding: 1px 6px;
}

.tree-live {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: pulse 1.6s ease-in-out infinite;
}

.tree-more {
  flex: none;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.tree-row:hover .tree-more { opacity: 1; }
.tree-more:hover { color: var(--text); background: var(--panel-3); }

.tree-empty {
  color: var(--faint);
  font-size: 12.5px;
  padding: 6px 10px 8px;
  line-height: 1.5;
}

/* ---------- page scaffolding ---------- */
.page { padding: 28px 32px 60px; }

.page-head { margin-bottom: 20px; }
.page-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.grow { flex: 1; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
}

.crumb { color: var(--muted); text-decoration: none; }
a.crumb:hover { color: var(--text); }
.crumb.current { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--faint); }

.folder-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 18px;
}

.tab {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-3); color: var(--text); }

/* ---------- empty states ---------- */
.empty {
  text-align: center;
  padding: 44px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.008);
}

.empty-icon { font-size: 26px; opacity: 0.85; margin-bottom: 8px; }
.empty-title { color: var(--text); font-weight: 600; margin-bottom: 6px; }
.empty-body { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 460px; margin: 0 auto; }
.empty-actions { margin-top: 16px; }

.dash-empty {
  color: var(--faint);
  font-size: 13px;
  padding: 14px 4px;
}

/* ---------- dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.artifact-mini, .file-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.artifact-mini:hover, .file-mini:hover { background: var(--panel-2); color: var(--text); }
.artifact-mini-icon, .file-mini-icon { flex: none; }
.artifact-mini-name, .file-mini-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artifact-mini-time, .file-mini-meta { flex: none; color: var(--faint); font-size: 11.5px; }

/* ---------- folder explorer ---------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.folder-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.folder-card:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.folder-card.compact { padding: 12px 14px; }

.folder-card-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.folder-card-icon { flex: none; }
.folder-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.folder-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11.5px;
}

.folder-card.drop-hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- dropzone & files ---------- */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  transition: border-color 0.14s ease, background 0.14s ease;
  margin-bottom: 18px;
}
.dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.dropzone.busy { opacity: 0.75; pointer-events: none; }
.page-dropzone { padding: 26px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.1s ease;
}
.file-row:hover { background: var(--panel); border-color: var(--border); }

.file-row-icon { flex: none; font-size: 16px; }
.file-row-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
}
.file-row-folder {
  flex: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 7px;
  white-space: nowrap;
}
.file-row-folder:hover { background: var(--panel-3); color: var(--text); }
.file-row-size, .file-row-time { flex: none; color: var(--faint); font-size: 12px; }
.row-actions { flex: none; display: flex; align-items: center; gap: 6px; margin-left: auto; }

.file-search { max-width: 260px; }

/* ---------- task page extras ---------- */
.task-files-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  background: var(--panel-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  text-decoration: none;
}

.folder-tag { cursor: pointer; }
a.folder-tag:hover { color: var(--accent-bright); border-color: var(--accent-border); }

.task-row-project { margin-top: 5px; }

/* ---------- composer extras ---------- */
.composer-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px;
}
.composer-attach:not(:empty) { padding: 10px 14px 0; }

.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.attach-chip.static { cursor: default; }

.attach-x {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 1px;
  line-height: 1;
}
.attach-x:hover { color: var(--red); }

.select-slim {
  width: auto;
  padding: 7px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  max-width: 190px;
}

.composer-modal-body { padding: 4px 2px 2px; }

/* ---------- modals & dialogs ---------- */
.modal-overlay, .dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 20px 40px;
  z-index: 100;
  overflow-y: auto;
}

.modal {
  width: 640px;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise 0.18s ease;
}

.modal.dialog, .modal .dialog { width: 460px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-head h2 { margin: 0; font-size: 17px; }

.dialog-head h3 { margin: 0 0 4px; font-size: 16px; }
.dialog-body { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.pick-row:hover { background: var(--panel-2); color: var(--text); }
.pick-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-pick input[type='checkbox'] { accent-color: var(--accent); }
.attach-pick-list { max-height: 300px; }

/* ---------- icon button & context menu ---------- */
.icon-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 7px;
  line-height: 1.4;
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }

.ctx-menu {
  position: fixed;
  z-index: 200;
  min-width: 180px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: rise 0.12s ease;
}

.ctx-item {
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.ctx-item:hover { background: var(--panel-3); color: var(--text); }
.ctx-item.danger { color: var(--red); }
.ctx-item.danger:hover { background: var(--red-soft); }

/* ---------- toasts ---------- */
.toast.ok { border-color: rgba(62, 207, 142, 0.4); }
.toast.err { border-color: rgba(244, 114, 114, 0.45); color: var(--red); }

/* ---------- motion ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes rise {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- narrow screens: off-canvas sidebar ---------- */
.mobile-burger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  font-size: 17px;
  padding: 6px 12px;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.6);
  z-index: 35;
}

@media (max-width: 980px) {
  .mobile-burger { display: block; }
  #sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  body.sidebar-open #sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  main#main, .main-col { margin-left: 0; }
  .page { padding: 64px 18px 60px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- cloud folder linking ---------- */
.dialog-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-x:hover { color: var(--text); background: var(--panel-3); }
.modal { position: relative; }

.cloud-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cloud-provider-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}
.cloud-provider-card:hover { border-color: var(--accent-border); background: var(--panel-3); }
.cloud-provider-logo {
  font-size: 15px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  margin-bottom: 6px;
}
.cloud-provider-logo.google { background: rgba(110, 168, 255, 0.14); color: var(--blue); }
.cloud-provider-logo.microsoft { background: rgba(232, 146, 58, 0.14); color: var(--accent-bright); }
.cloud-provider-name { font-weight: 600; font-size: 14px; }
.cloud-provider-state { font-size: 12px; color: var(--muted); }

.cloud-connect-options { display: grid; gap: 10px; margin-top: 12px; }
.cloud-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
}
.cloud-choice.is-disabled { opacity: 0.55; cursor: not-allowed; }
.cloud-choice-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.cloud-choice-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.cloud-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px 0 8px; min-height: 22px; }
.cloud-crumbs .crumb { font-size: 12.5px; }
.cloud-browse {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  padding: 6px;
}
.cloud-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
}
.cloud-row:hover { background: var(--panel-2); }
.cloud-row.selected { background: var(--accent-soft); outline: 1px solid var(--accent-border); }
.cloud-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-row-open, .cloud-row-choose {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.cloud-row-open { color: var(--text-2); }
.cloud-row-open:hover { background: var(--panel-3); color: var(--text); }
.cloud-row-choose { opacity: 0; }
.cloud-row:hover .cloud-row-choose, .cloud-row.selected .cloud-row-choose { opacity: 1; }

.cloud-manage { padding: 14px; display: grid; gap: 10px; }
.cloud-manage-row { display: flex; gap: 10px; align-items: flex-start; }
.cloud-manage-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cloud-manage-result .field-error { margin-top: 0; }
.ok-hint { color: var(--green); }

.cloud-admin {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
  display: grid;
  gap: 8px;
}
.cloud-admin-fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.cloud-admin-actions { display: flex; gap: 8px; }

.field-error {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(244, 114, 114, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
}

.mini-tag.cloud { color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 1px 8px; }
.tree-cloud { color: var(--blue); font-size: 11px; margin-left: -3px; }

/* ---------- connection chips & overview ---------- */
.conn-chip {
  flex: none;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid var(--panel-3);
  color: var(--muted);
  background: var(--panel-2);
  white-space: nowrap;
}
.conn-chip.conn-drive { color: #9ab8ff; border-color: rgba(154, 184, 255, 0.35); }
.conn-chip.conn-onedrive { color: #7fd8d0; border-color: rgba(127, 216, 208, 0.35); }
.conn-chip.conn-github { color: #c9b8ff; border-color: rgba(201, 184, 255, 0.4); }
.conn-chips { display: inline-flex; gap: 5px; align-items: center; }

.conn-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.conn-pill {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--panel-3);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.conn-pill-name { font-weight: 600; font-size: 13px; color: var(--text); }
.conn-pill-status { font-size: 12px; color: var(--muted); }
.conn-pill.on .conn-pill-status { color: #7fd8a0; }

.conn-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.conn-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--panel-3);
}
.conn-table td { padding: 8px; border-bottom: 1px solid var(--panel-3); color: var(--text-2); }
.conn-table a { color: var(--accent-bright); text-decoration: none; }
.conn-table a:hover { text-decoration: underline; }

.pulse { animation: conn-pulse 1.5s ease; }
@keyframes conn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 93, 250, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(124, 93, 250, 0); }
}

/* ---------- build tag (sidebar footer) ---------- */
.build-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px dashed var(--border); padding: 2px 7px; border-radius: 99px; margin-right: 2px;
  cursor: help;
}


/* ---------- folder memory ---------- */
.memory-box { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--border, #2a2f45); border-radius: 12px; background: rgba(255,255,255,0.02); }
.memory-box > summary { cursor: pointer; font-weight: 600; }
.memory-state { font-weight: 400; color: var(--muted, #8a90a8); margin-left: 6px; }
.memory-help { color: var(--muted, #8a90a8); font-size: 13px; margin: 8px 0; }
.memory-inherited { font-size: 13px; margin-bottom: 8px; }
.memory-box textarea { width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; }
.memory-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* ============================================================
   Light theme. Same layout; only colors change. Chosen with the ☀/🌙
   button in the sidebar and remembered in this browser (theme.js).
   ============================================================ */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf5ec;
  --bg-soft: #f3e9db;
  --panel: #ffffff;
  --panel-2: #fdf8f1;
  --panel-3: #f4eadd;
  --border: rgba(74, 44, 20, 0.13);
  --border-strong: rgba(74, 44, 20, 0.24);
  --text: #2a1a0c;
  --text-2: #5a4129;
  --muted: #7a5f45;
  --faint: #a08a72;
  --accent: #A85F1E;
  --accent-bright: #8A4A14;
  --accent-soft: rgba(168, 95, 30, 0.1);
  --accent-border: rgba(168, 95, 30, 0.38);
  --green: #0d8556;
  --green-soft: rgba(13, 133, 86, 0.12);
  --red: #c23535;
  --red-soft: rgba(194, 53, 53, 0.1);
  --amber: #9a5f00;
  --amber-soft: rgba(154, 95, 0, 0.12);
  --blue: #1c5ac4;
  --blue-soft: rgba(28, 90, 196, 0.1);
  --teal: #0b7f76;
  --yellow: #8f6500;
  --violet: #A85F1E;
  --shadow: 0 1px 2px rgba(20, 28, 60, 0.08), 0 10px 30px rgba(20, 28, 60, 0.1);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(1100px 460px at 50% -180px, rgba(168, 95, 30, 0.06), transparent 65%),
    radial-gradient(800px 380px at 85% 115%, rgba(28, 90, 196, 0.04), transparent 60%);
}
:root[data-theme="light"] ::selection { background: rgba(168, 95, 30, 0.25); }
:root[data-theme="light"] .nav { background: rgba(251, 245, 236, 0.85); }
:root[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, #C0702A, #A85F1E);
  color: #fff; border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 14px rgba(168, 95, 30, 0.25);
}
:root[data-theme="light"] .btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #C9792F, #AE6322); }
:root[data-theme="light"] .nav-link:hover { background: rgba(74, 44, 20, 0.06); }
:root[data-theme="light"] .nav-link.active { background: rgba(74, 44, 20, 0.09); }
:root[data-theme="light"] .btn-ghost:hover:not(:disabled) { background: rgba(74, 44, 20, 0.05); }
:root[data-theme="light"] .markdown code { background: rgba(168, 95, 30, 0.08); border-color: rgba(168, 95, 30, 0.18); color: #8A4A14; }
:root[data-theme="light"] .save-bar { background: rgba(255, 255, 255, 0.94); }
:root[data-theme="light"] .dropzone { background: rgba(74, 44, 20, 0.02); }
:root[data-theme="light"] .modal-overlay,
:root[data-theme="light"] .dialog-overlay { background: rgba(30, 36, 60, 0.45); }
:root[data-theme="light"] .artifact-image { background: rgba(74, 44, 20, 0.04); }
:root[data-theme="light"] .conn-chip.conn-drive { color: #2a5bd0; border-color: rgba(42, 91, 208, 0.4); }
:root[data-theme="light"] .conn-chip.conn-onedrive { color: #0b7f76; border-color: rgba(11, 127, 118, 0.4); }
:root[data-theme="light"] .conn-chip.conn-github { color: #A85F1E; border-color: rgba(168, 95, 30, 0.4); }
:root[data-theme="light"] .conn-pill.on .conn-pill-status { color: #0d8556; }

/* the theme button */
.theme-toggle { min-width: 34px; padding-left: 8px; padding-right: 8px; font-size: 15px; line-height: 1; }

/* multiple cloud accounts */
.cloud-accounts { display: flex; flex-direction: column; gap: 8px; }
.cloud-account-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border, rgba(128,128,128,.25)); }
.cloud-account-name { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.provider-foot { flex-wrap: wrap; }

.conn-badge { color: #22c55e; font-size: 12px; font-weight: 600; }
:root[data-theme="light"] .conn-badge { color: #15803d; }
.conn-badge-foot { margin-right: auto; align-self: center; }

/* green round badge = this folder is linked to a connected cloud account */
.cloud-badge { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
  border-radius: 50%; background: #22c55e; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; flex: none; }
:root[data-theme="light"] .cloud-badge { background: #16a34a; }

/* ---------- release badge (server-stamped, first element of body; the version light lives on it) ---------- */
.release-badge.build-stale { color: #f59e0b; }
.release-badge { display: inline-flex; align-items: center; gap: 5px; }
.release-badge .build-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa0ad; flex: none; }
.release-badge[data-s="current"] .build-dot { background: #16a34a; box-shadow: 0 0 0 2px rgba(22, 163, 74, .2); }
.release-badge[data-s="stale"] .build-dot { background: #f59e0b; }
.release-badge[data-s="checking"] .build-dot { background: #60a5fa; }
.release-badge:focus-visible { outline: 2px solid var(--accent, #5b4ce0); outline-offset: 2px; }

.scope-choice { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.scope-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border, rgba(128,128,128,.3)); border-radius: 10px; cursor: pointer; }
.scope-opt:has(input:checked) { border-color: #22c55e; }
.scope-review { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.cloud-check { margin-right: 4px; }

/* ---- My land (sidebar + #/land) ---- */
.side-land { display: flex; flex-direction: column; gap: 1px; }
.side-sub { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 34px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: 13px; }
.side-sub:hover { background: var(--panel-2); color: var(--text); }
.side-sub.active { background: var(--accent-soft); color: var(--accent-bright); font-weight: 600; }
.side-count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn, #e0a03a); flex: none; }

/* ---------- phone barcode scanner (v3.54) ---------- */
.scn { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 16, .72); display: grid; place-items: center; padding: 10px; }
.scn-box { width: min(480px, 100%); max-height: 100%; overflow: auto; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.scn-head { display: flex; align-items: center; gap: 8px; }
.scn-cam { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scn-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scn-aim { position: absolute; left: 10%; right: 10%; top: 38%; height: 24%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.scn-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.scn-flash-ok { animation: scn-ok .5s; } .scn-flash-bad { animation: scn-bad .6s; }
@keyframes scn-ok { 0% { box-shadow: inset 0 0 0 6px #16a34a; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes scn-bad { 0% { box-shadow: inset 0 0 0 6px #dc2626; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.scn-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.scn-modes button { padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.scn-modes button.on { border-color: var(--accent); background: var(--accent-soft); }
.scn-ask { border: 1px solid var(--accent); border-radius: 10px; padding: 10px; display: grid; gap: 8px; background: var(--panel-2); }
.scn-fracs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.scn-fracs .btn { justify-content: center; padding: 10px 0; font-size: 16px; }
.scn-portions { display: flex; gap: 6px; align-items: end; flex-wrap: wrap; font-size: 12.5px; }
.scn-portions label { display: grid; gap: 2px; } .scn-portions .input { width: 92px; }
.scn-last { display: grid; gap: 3px; font-size: 13px; min-height: 22px; }
.scn-row { padding: 4px 8px; border-radius: 6px; }
.scn-ok { background: var(--green-soft); color: var(--green); } .scn-bad { background: var(--red-soft); color: var(--red); }
.scn-manual { display: flex; gap: 6px; } .scn-manual .input { flex: 1; min-width: 0; }
.scn-photo { cursor: pointer; justify-content: center; }
.scn-countrow { display: flex; align-items: center; gap: 6px; }
.scn-countrow .input { width: 80px; text-align: center; font-size: 18px; }
.scn-countrow .btn { min-width: 44px; justify-content: center; }
.scn-ask .muted-text { font-size: 12.5px; }
.scn-q { display: grid; gap: 8px; }

.side-legal { font-size: 11.5px; color: var(--muted); padding: 6px 12px 10px; }
.side-legal a { color: inherit; }
.side-legal a:hover { color: var(--text); }

/* Signed-out customer front door (provedup.ai). Phone first: 16px text, 44px targets, one column until the screen is wide. */
body.door-open { font-size: 16px; }
.door { color: var(--text); max-width: 1100px; margin: 0 auto; padding: 0 16px 80px; }
.door-skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: 10px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.door-skip:focus { top: 8px; }
.door-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 -16px; padding: 8px 88px 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.door-brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.door-brand:hover { text-decoration: none; }
.door .brand-mark { width: 40px; height: 40px; }
.door-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.door-icon, .door-menu, .door-jump, .door-nav a, .door-card a, .door-legal a {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--text);
  border-radius: 10px;
}
.door-icon, .door-menu {
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
  font-family: var(--font); cursor: pointer;
}
.door-jump { border: 1px solid var(--border-strong); background: transparent; }
.door a:focus-visible, .door button:focus-visible, .door input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.door-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding: 4px 0 8px; }
.door-nav.open { display: flex; }
.door-nav a { justify-content: flex-start; }
@media (min-width: 840px) {
  .door-menu { display: none; }
  .door-nav, .door-nav.open { display: flex; flex-direction: row; flex-basis: auto; align-items: center; padding: 0; gap: 2px; }
}
.door-hero {
  display: grid; gap: 20px; padding: 28px 0 8px;
}
.door-lead h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.12; letter-spacing: -0.03em; max-width: 16ch; }
.door-lead p { margin-top: 12px; font-size: 18px; line-height: 1.45; color: var(--text-2); max-width: 36ch; }
@media (min-width: 840px) {
  .door-hero { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px); align-items: start; padding-top: 48px; }
}
.door .auth-wrap { min-height: 0; padding: 0; align-items: stretch; }
.door .auth-card { max-width: none; padding: 22px 20px 18px; }
.door .auth-brand { display: none; }
.door .label { font-size: 13px; letter-spacing: 0.06em; }
.door .input { font-size: 16px; min-height: 44px; }
.door .auth-tab { min-height: 44px; font-size: 16px; }
.door .btn { min-height: 44px; font-size: 16px; }
.door .auth-consent { font-size: 16px !important; }
.door .auth-consent input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.door .auth-footnote { font-size: 14px; color: var(--text-2); }
.door .input::placeholder { color: var(--text-2); }
.door-tools { padding: 36px 0 8px; }
.door-tools h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 14px; }
.door-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .door-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .door-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.door-card h3 { font-size: 18px; line-height: 1.3; }
.door-card p { color: var(--text-2); font-size: 16px; line-height: 1.45; }
.door-card a { align-self: flex-start; padding-left: 0; padding-right: 0; color: var(--accent-bright); }
.door-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.door-foot p { color: var(--text-2); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.door-legal { display: flex; flex-wrap: wrap; gap: 4px 0; }
.door-legal a { color: var(--accent-bright); }
@media (prefers-reduced-motion: reduce) {
  .door, .door * { scroll-behavior: auto; }
}

/* ---------- Banks & loans (#/banks, v3.763) ---------- */
.bk .bk-loading { padding: 36px 0; color: var(--muted); }
.bk .bk-muted { color: var(--muted); font-size: 12.5px; }
.bk .bk-warn { color: var(--amber); font-weight: 600; }
.bk .bk-late { color: var(--red); }
.bk .bk-soon { color: var(--amber); }
.bk-sum { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.bk-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); min-width: 150px; }
.bk-chip b { font-size: 20px; letter-spacing: -.01em; }
.bk-chip span { color: var(--muted); font-size: 12.5px; }
.bk-chip.soon { border-color: var(--amber); }
.bk-sec { margin: 22px 0; }
.bk-sec h2 { font-size: 17px; margin: 0 0 10px; }
.bk-loans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bk-loan { padding: 14px 16px; }
.bk-loan.late { border-color: var(--red); }
.bk-loan.soon { border-color: var(--amber); }
.bk-loan-head { display: flex; align-items: flex-start; gap: 10px; }
.bk-loan-name { font-weight: 650; font-size: 15px; }
.bk-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 4px; }
.bk-figs dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.bk-figs dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.bk-figs dd small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.bk-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--amber); }
.bk-notes { margin: 8px 0 0; font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.bk-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.bk-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.bk-form input, .bk-form select, .bk-form textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; min-height: 36px; }
.bk-form .bk-wide { grid-column: 1 / -1; }
.bk-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-danger { color: var(--red); }
.bk-co { margin: 0 0 16px; }
.bk-co h3 { font-size: 14.5px; margin: 0 0 6px; }
.bk-co h3 a { color: var(--text); text-decoration: none; }
.bk-co h3 a:hover { text-decoration: underline; }
.bk-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.bk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bk-table th, .bk-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.bk-table tr:last-child td { border-bottom: 0; }
.bk-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.bk-table .num { text-align: right; white-space: nowrap; }
.bk-assign { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.bk-assign select { font: inherit; padding: 6px 8px; min-height: 34px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.bk-logins { margin: 0 0 6px; padding-left: 18px; font-size: 13.5px; }
.bk-error { padding: 16px; }
@media (max-width: 640px) { .bk-loans { grid-template-columns: minmax(0, 1fr); } .bk-table th:nth-child(2), .bk-table td:nth-child(2) { display: none; } }

/* ---------- Page not found ---------- */
.nf-page { display: flex; justify-content: center; padding-top: 40px; }
.nf-card { max-width: 560px; width: 100%; text-align: center; }
.nf-code { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--faint, var(--muted)); line-height: 1; margin-bottom: 8px; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.nf-suggest { text-align: left; color: var(--muted); }
.nf-h { font-size: 15px; margin: 18px 0 8px; color: var(--text); }
.nf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nf-list li { display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nf-list li span { font-size: 12.5px; color: var(--muted); }
