:root {
  color-scheme: dark;
  --bg: #1c1d22;
  --shell-bg: #1f2025;
  --window-bg: #202126;
  --window-bg-alt: #202126;
  --panel: #23242b;
  --panel-alt: #262831;
  --panel-soft: #30333b;
  --panel-strong: #3c4048;
  --text: #f4f4f5;
  --text-soft: #b0b3bb;
  --text-faint: #777b84;
  --accent: #53b5eb;
  --accent-strong: #4aacdf;
  --operator: #31343c;
  --danger: #ff6d7a;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-faint: rgba(255, 255, 255, 0.025);
  --button-default-bg: #353841;
  --button-default-hover-bg: #3b3e47;
  --button-function-bg: #353841;
  --button-digit-bg: #393c45;
  --button-operator-bg: #31343c;
  --button-equals-bg-start: #57b9ed;
  --button-equals-bg-end: #4fb2e7;
  --button-equals-text: #0b1a2c;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f3f3;
  --shell-bg: #ececec;
  --window-bg: #f7f7f7;
  --window-bg-alt: #efefef;
  --panel: #ffffff;
  --panel-alt: #f3f3f3;
  --panel-soft: #ececec;
  --panel-strong: #dedede;
  --text: #1e1e1e;
  --text-soft: #5f5f5f;
  --text-faint: #777777;
  --accent: #0f6cbd;
  --accent-strong: #115ea3;
  --operator: #e8e8e8;
  --danger: #c42b1c;
  --surface-hover: rgba(0, 0, 0, 0.06);
  --surface-active: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.1);
  --border-faint: rgba(0, 0, 0, 0.07);
  --button-default-bg: #f3f3f3;
  --button-default-hover-bg: #e6e6e6;
  --button-function-bg: #ececec;
  --button-digit-bg: #ffffff;
  --button-operator-bg: #efefef;
  --button-equals-bg-start: #9cd6ff;
  --button-equals-bg-end: #84c9fb;
  --button-equals-text: #0f1d2d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: var(--shell-bg);
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid rgba(88, 183, 237, 0.75);
  outline-offset: -2px;
}

select,
input[type="date"],
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(88, 183, 237, 0.7);
  box-shadow: 0 0 0 3px rgba(88, 183, 237, 0.18);
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.noscript-card {
  max-width: 460px;
  margin: 10vh auto;
  padding: 2rem;
  background: rgba(35, 36, 45, 0.98);
  border-radius: 24px;
  color: white;
}
