/* koddeit — Account page theme (Lane D, shared by ALL Account lanes).
 *
 * Shared shell/theme file for the consolidated Account page only.
 * Every selector below is scoped to #view-account-page (or to the
 * .dc-account-* classes that live inside it), so this file cannot
 * restyle the rest of the app. Other lanes keep their own small
 * CSS files; this one carries the page shell, cards, buttons,
 * forms, danger-zone treatment and the full dark mode.
 *
 * Stitch tokens: teal #0F766E primary, #F8FAFC canvas, white 16px
 * cards, 1px #E2E8F0 borders, ambient shadows, pill buttons,
 * Inter text, JetBrains Mono for code only, Twemoji in chrome,
 * outlined icons, 44px+ touch targets, no gradients, no purple,
 * no AI-coded look. Dark mode covers the WHOLE page — no view
 * left light, no white flash (the html[data-theme="dark"] rules
 * below set the page background itself, not just the cards).
 *
 * Dark role badges: the Stitch pass left dark feed role badges
 * as a light pill (the .dc-role-badge light rules in stitch.css
 * are not overridden in dark). Inside the Account page that is
 * fixed here: dark developer = teal tint, tester = amber tint,
 * investor = slate tint (slate, not the DESIGN.md violet, to
 * honour this page's no-purple rule).
 */

/* ---------- Shell + cards (light) ---------- */
#view-account-page {
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

#view-account-page .dc-account-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

#view-account-page .dc-account-card {
  scroll-margin-top: 84px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

#view-account-page .dc-account-card h3 {
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 8px;
}

#view-account-page .dc-account-card h4 {
  color: #0f172a;
  font-size: 15px;
  line-height: 22px;
  margin: 20px 0 8px;
}

#view-account-page .dc-account-card p,
#view-account-page .dc-account-card li {
  color: #334155;
  font-size: 15px;
  line-height: 22px;
}

#view-account-page .dc-account-card label {
  color: #0f172a;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin: 12px 0 6px;
}

/* ---------- Buttons, inputs (44px+ targets, pill buttons) ---------- */
#view-account-page .dc-account-btn,
#view-account-page .dc-account-card .btn {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  min-height: 44px;
  padding: 10px 20px;
  text-decoration: none;
}

#view-account-page .dc-account-btn-primary,
#view-account-page .dc-account-card .btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

#view-account-page .dc-account-btn-primary:hover,
#view-account-page .dc-account-card .btn-primary:hover {
  background: #115e59;
  border-color: #115e59;
}

#view-account-page .dc-account-btn-danger,
#view-account-page .dc-account-card .btn-danger {
  background: #ffffff;
  border-color: #b91c1c;
  color: #b91c1c;
}

#view-account-page .dc-account-btn-danger:hover,
#view-account-page .dc-account-card .btn-danger:hover {
  background: #fef2f2;
}

#view-account-page .dc-account-card input[type="text"],
#view-account-page .dc-account-card input[type="file"],
#view-account-page .dc-account-card textarea,
#view-account-page .dc-account-card select {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
  min-height: 44px;
  padding: 10px 14px;
  width: 100%;
}

#view-account-page .dc-account-card textarea {
  min-height: 120px;
  resize: vertical;
}

#view-account-page .dc-account-card pre,
#view-account-page .dc-account-card code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

#view-account-page .dc-account-card pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

#view-account-page .dc-account-note {
  color: #475569;
  font-size: 14px;
  line-height: 20px;
}

#view-account-page .dc-account-status {
  color: #0f172a;
  font-weight: 600;
}

/* ---------- Danger zone ---------- */
#view-account-page .dc-account-danger-zone {
  border-color: #fecaca;
}

#view-account-page .dc-account-danger-zone h3,
#view-account-page .dc-account-danger-zone h4 {
  color: #991b1b;
}

#view-account-page .dc-account-confirm-panel {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  margin-top: 12px;
  padding: 16px;
}

#view-account-page .dc-account-confirm-panel p,
#view-account-page .dc-account-confirm-panel li {
  color: #7f1d1d;
}

/* ---------- Role badges (light, scoped to the Account page) ---------- */
#view-account-page .dc-role-badge {
  align-items: center;
  border: 1px solid;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 500;
  height: 24px;
  letter-spacing: 0.02em;
  line-height: 14px;
  padding: 0 10px;
  white-space: nowrap;
}

#view-account-page .dc-role-badge[data-role="developer"] {
  background: #f0fdfa;
  border-color: #ccfbf1;
  color: #0f766e;
}

#view-account-page .dc-role-badge[data-role="tester"] {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

#view-account-page .dc-role-badge[data-role="investor"] {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* ---------- Dark mode: the WHOLE Account page ---------- */
html[data-theme="dark"] #view-account-page {
  background: #0b1220;
  color: #f1f5f9;
}

html[data-theme="dark"] #view-account-page .dc-account-card {
  background: #1c2536;
  border-color: #263244;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] #view-account-page .dc-account-card h3,
html[data-theme="dark"] #view-account-page .dc-account-card h4,
html[data-theme="dark"] #view-account-page .dc-account-card label,
html[data-theme="dark"] #view-account-page .dc-account-status {
  color: #f1f5f9;
}

html[data-theme="dark"] #view-account-page .dc-account-card p,
html[data-theme="dark"] #view-account-page .dc-account-card li,
html[data-theme="dark"] #view-account-page .dc-account-note {
  color: #cbd5e1;
}

html[data-theme="dark"] #view-account-page .dc-account-card a {
  color: #5eead4;
}

html[data-theme="dark"] #view-account-page .dc-account-btn,
html[data-theme="dark"] #view-account-page .dc-account-card .btn {
  background: #1c2536;
  border-color: #263244;
  color: #f1f5f9;
}

html[data-theme="dark"] #view-account-page .dc-account-btn-primary,
html[data-theme="dark"] #view-account-page .dc-account-card .btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

html[data-theme="dark"] #view-account-page .dc-account-btn-primary:hover,
html[data-theme="dark"] #view-account-page .dc-account-card .btn-primary:hover {
  background: #0d9488;
  border-color: #0d9488;
}

html[data-theme="dark"] #view-account-page .dc-account-btn-danger,
html[data-theme="dark"] #view-account-page .dc-account-card .btn-danger {
  background: #1c2536;
  border-color: #f87171;
  color: #fca5a5;
}

html[data-theme="dark"] #view-account-page .dc-account-btn-danger:hover,
html[data-theme="dark"] #view-account-page .dc-account-card .btn-danger:hover {
  background: #450a0a;
}

html[data-theme="dark"] #view-account-page .dc-account-card input[type="text"],
html[data-theme="dark"] #view-account-page .dc-account-card input[type="file"],
html[data-theme="dark"] #view-account-page .dc-account-card textarea,
html[data-theme="dark"] #view-account-page .dc-account-card select {
  background: #0b1220;
  border-color: #263244;
  color: #f1f5f9;
}

html[data-theme="dark"] #view-account-page .dc-account-card pre {
  background: #0b1220;
  border-color: #263244;
  color: #e2e8f0;
}

html[data-theme="dark"] #view-account-page .dc-account-danger-zone {
  border-color: #7f1d1d;
}

html[data-theme="dark"] #view-account-page .dc-account-danger-zone h3,
html[data-theme="dark"] #view-account-page .dc-account-danger-zone h4 {
  color: #fca5a5;
}

html[data-theme="dark"] #view-account-page .dc-account-confirm-panel {
  background: #450a0a;
  border-color: #7f1d1d;
}

html[data-theme="dark"] #view-account-page .dc-account-confirm-panel p,
html[data-theme="dark"] #view-account-page .dc-account-confirm-panel li {
  color: #fecaca;
}

/* Dark role badges inside the Account page: dark tints, light text,
   never the light pill the Stitch pass left behind. */
html[data-theme="dark"] #view-account-page .dc-role-badge[data-role="developer"] {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #5eead4;
}

html[data-theme="dark"] #view-account-page .dc-role-badge[data-role="tester"] {
  background: #422006;
  border-color: #f59e0b;
  color: #fde68a;
}

html[data-theme="dark"] #view-account-page .dc-role-badge[data-role="investor"] {
  background: #1e293b;
  border-color: #94a3b8;
  color: #e2e8f0;
}
