/* =========================================================
   Renova — Dashboard base
   Design tokens, reset, typography and shared utilities.
   ========================================================= */

:root {
  --ink: #181e1a;
  --ink-soft: #354238;
  --muted: #626d65;
  --muted-2: #667267;
  --placeholder: #6b766d;
  --line: #e4e9e3;
  --line-soft: #edf0e9;
  --line-strong: #d3dbd1;
  --green: #477c61;
  --green-deep: #183c2c;
  --green-dark: #243d2d;
  --green-button-1: #344a39;
  --green-button-2: #23372a;
  --sage: #f4f7ef;
  --sage-2: #eaf0e3;
  --sage-3: #e0e8d4;
  --surface: #fafbf9;
  --surface-2: #f1f5ec;
  --white: #fff;
  --on-green: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdf3f2;
  --danger-line: #f2d4d1;
  --success: #2f6b45;
  --success-soft: #e8f2e7;
  --success-line: #cfe3d0;
  --warning-ink: #7a5a1e;
  --warning-soft: #f7efdf;
  --warning-line: #eadfc4;
  --focus: #609777;
  --ring-soft: rgba(71, 124, 97, 0.14);
  --selection-bg: #cfe0c6;
  --selection-ink: #122117;
  --page-bg: #fbfcf9;
  --sidebar-bg: #f7f9f4;
  --header-bg: rgba(250, 251, 249, 0.92);
  --glow-sage: rgba(237, 243, 231, 0.78);
  --glow-cream: rgba(246, 241, 233, 0.9);
  --shadow-panel:
    0 1px 2px rgba(30, 46, 34, 0.04),
    0 24px 48px -40px rgba(48, 65, 46, 0.28);
  --shadow-float: 0 18px 44px -24px rgba(27, 46, 32, 0.38);
  --shadow-button:
    0 2px 3px rgba(27, 46, 32, 0.07), inset 0 1px rgba(255, 255, 255, 0.08);
  --shadow-button-hover: 0 10px 22px -14px rgba(27, 46, 32, 0.45);
  --shadow-tab: 0 1px 3px rgba(30, 46, 34, 0.1);
  --shadow-preview: 0 12px 30px -18px rgba(30, 46, 34, 0.35);
  --shadow-dialog: 0 40px 90px -30px rgba(20, 32, 24, 0.45);
  --toast-bg: rgba(24, 30, 26, 0.94);
  --toast-line: rgba(255, 255, 255, 0.18);
  --toast-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
  --backdrop: rgba(18, 28, 21, 0.42);
  --browser-dot-1: #e5a3a0;
  --browser-dot-2: #e5cba3;
  --browser-dot-3: #a9c7a6;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-card: 18px;
  --font-sans:
    "Geist", "Segoe UI Variable Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Geist Mono", "Cascadia Code", "SFMono-Regular", Consolas,
    monospace;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--page-bg);
  background-image:
    radial-gradient(
      ellipse 54% 36% at 8% -6%,
      var(--glow-sage),
      transparent 62%
    ),
    radial-gradient(
      ellipse 40% 30% at 96% 4%,
      var(--glow-cream),
      transparent 64%
    );
  background-repeat: no-repeat;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--green-deep);
  color: var(--on-green);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}