:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-muted: #eceff3;
  --text: #111318;
  --text-soft: #5f6672;
  --text-faint: #8a919d;
  --line: rgba(17, 19, 24, 0.11);
  --line-strong: rgba(17, 19, 24, 0.18);
  --blue: #006edb;
  --blue-soft: #e5f1ff;
  --green: #1b8f55;
  --green-soft: #e8f7ee;
  --red: #c93c37;
  --red-soft: #feeceb;
  --orange: #aa640b;
  --orange-soft: #fff3df;
  --ink: #101214;
  --shadow: 0 18px 46px rgba(19, 24, 35, 0.12);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(0, 110, 219, 0.18);
  --control-height: 38px;
  --control-height-large: 42px;
  --control-padding-x: 14px;
  --control-padding-x-large: 16px;
  --control-gap: 8px;
  --card-padding: 12px;
  --panel-padding-x: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 245, 247, 0.92)), var(--bg);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 19, 24, 0.28) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.28);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 19, 24, 0.42);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

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

button {
  border: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 110, 219, 0.56);
  box-shadow: var(--focus);
  background: #fff;
}

textarea {
  resize: none;
}

pre {
  margin: 0;
}

::selection {
  color: #fff;
  background: var(--blue);
}
