/* Overview local development helpers — not shipped to Marked.app */

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: #ffffff;
}

body {
  padding: 0;
  padding-top: 2rem;
  background: var(--step-tint-light, #ffffff);
}

#devBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a4a4f;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#devBannerMessage {
  flex: 1;
  text-align: center;
}

#devThemeToggle {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #1d1d1f;
  cursor: pointer;
}

#devThemeToggle:hover {
  background: #eef4fb;
}

.app-container {
  width: 100%;
  max-width: 679px;
  height: 100%;
  min-height: calc(100vh - 2rem);
  margin: 0 auto;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      var(--step-tint-strong) 0%,
      var(--step-tint) 32%,
      var(--step-tint-light) 100%
    ),
    var(--step-tint-light, #ffffff);
}

:root {
  --button-bg: rgba(255, 255, 255, 0.92);
  --button-bg-hover: #ffffff;
}

/* Force light theme (overrides system dark mode in dev) */
html[data-dev-theme="light"] {
  color-scheme: light;
  --bg-window: #eef4fb;
  --bg-surface: #ffffff;
  --bg-elevated: #f4f8fc;
  --text-primary: #1d1d1f;
  --text-secondary: #4a4a4f;
  --text-tertiary: #6e6e73;
  --accent: #0b84d6;
  --accent-hover: #086db3;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --shadow: rgba(0, 0, 0, 0.08);
  --focus-ring: #0b84d6;
  --button-bg: rgba(255, 255, 255, 0.92);
  --button-bg-hover: #ffffff;
  --button-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --button-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  --callout-bg: rgba(46, 176, 220, 0.12);
  --callout-border: rgba(11, 132, 214, 0.35);
}

html[data-dev-theme="light"] body[data-accent="accent-1"] {
  --step-accent-text: #087089;
  --step-tint: rgba(46, 176, 220, 0.14);
  --step-tint-strong: rgba(46, 176, 220, 0.24);
  --step-tint-light: #dff4fb;
  --callout-bg: rgba(46, 176, 220, 0.12);
  --callout-border: rgba(46, 176, 220, 0.38);
}

html[data-dev-theme="light"] body[data-accent="accent-2"] {
  --step-accent-text: #2f7a22;
  --step-tint: rgba(95, 191, 74, 0.14);
  --step-tint-strong: rgba(95, 191, 74, 0.24);
  --step-tint-light: #e6f8e2;
  --callout-bg: rgba(95, 191, 74, 0.12);
  --callout-border: rgba(95, 191, 74, 0.38);
}

html[data-dev-theme="light"] body[data-accent="accent-3"] {
  --step-accent-text: #c03030;
  --step-tint: #fad4d4;
  --step-tint-strong: #f5bcbc;
  --step-tint-light: #fff0f0;
  --callout-bg: rgba(224, 72, 72, 0.12);
  --callout-border: rgba(224, 72, 72, 0.38);
}

html[data-dev-theme="light"] body[data-accent="accent-4"] {
  --step-accent-text: #9a5200;
  --step-tint: rgba(232, 138, 26, 0.14);
  --step-tint-strong: rgba(232, 138, 26, 0.24);
  --step-tint-light: #fdf0e0;
  --callout-bg: rgba(232, 138, 26, 0.12);
  --callout-border: rgba(232, 138, 26, 0.38);
}

/* Force dark theme (overrides system light mode in dev) */
html[data-dev-theme="dark"] {
  color-scheme: dark;
  --bg-window: #18222e;
  --bg-surface: #243040;
  --bg-elevated: #2c3a4d;
  --text-primary: #f3f6fa;
  --text-secondary: #b8c2d0;
  --text-tertiary: #95a1b0;
  --accent: #3da8f5;
  --accent-hover: #67bdf8;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.35);
  --focus-ring: #67bdf8;
  --button-bg: rgba(36, 48, 64, 0.65);
  --button-bg-hover: rgba(36, 48, 64, 0.85);
  --button-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.18);
  --button-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.34), 0 1px 3px rgba(0, 0, 0, 0.22);
  --nav-button-bg: rgba(255, 255, 255, 0.2);
  --nav-button-bg-hover: rgba(255, 255, 255, 0.3);
  --callout-bg: rgba(61, 168, 245, 0.16);
  --callout-border: rgba(103, 189, 248, 0.4);
}

html[data-dev-theme="dark"] #devBanner {
  color: #d8dee8;
  background: #243040;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-dev-theme="dark"] #devThemeToggle {
  background: #2c3a4d;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3f6fa;
}

html[data-dev-theme="dark"] body[data-accent="accent-1"] {
  --step-accent-text: #67bdf8;
  --step-tint-strong: #2a4f63;
  --step-tint: #234458;
  --step-tint-light: #1e3344;
  --callout-bg: rgba(61, 168, 245, 0.16);
  --callout-border: rgba(103, 189, 248, 0.4);
}

html[data-dev-theme="dark"] body[data-accent="accent-2"] {
  --step-accent-text: #8fe07a;
  --step-tint-strong: #304a36;
  --step-tint: #2a402f;
  --step-tint-light: #243328;
  --callout-bg: rgba(143, 224, 122, 0.14);
  --callout-border: rgba(143, 224, 122, 0.38);
}

html[data-dev-theme="dark"] body[data-accent="accent-3"] {
  --step-accent-text: #ff8a8a;
  --step-tint-strong: #6a3a3a;
  --step-tint: #5c3232;
  --step-tint-light: #442828;
  --callout-bg: rgba(255, 138, 138, 0.14);
  --callout-border: rgba(255, 138, 138, 0.38);
}

html[data-dev-theme="dark"] body[data-accent="accent-4"] {
  --current-accent: #3da8f5;
  --step-accent-text: #67bdf8;
  --step-tint-strong: #2a4f63;
  --step-tint: #234458;
  --step-tint-light: #1e3344;
  --callout-bg: rgba(61, 168, 245, 0.16);
  --callout-border: rgba(103, 189, 248, 0.4);
}
