:root {
  color-scheme: dark;
  --mh-ui-scale: 1;
  --mh-scrollbar-thumb: #37343d;
  --mh-font: "Inter", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mh-bg: #0d0c10;
  --mh-surface: #151419;
  --mh-surface-raised: #1d1b22;
  --mh-select-surface: #ffffff08;
  --mh-control-surface: #252429;
  --mh-control-surface-muted: color-mix(in srgb, var(--mh-control-surface) 60%, var(--mh-surface-raised));
  --mh-control-surface-hover: color-mix(in srgb, var(--mh-accent) 11%, var(--mh-control-surface));
  --mh-text: #eeecf1;
  --mh-text-muted: #a5a2ad;
  --mh-text-subtle: #85818b;
  --mh-divider: #ffffff12;
  --mh-border: rgba(235, 221, 255, 0.095);
  --mh-border-hover: rgba(235, 221, 255, 0.2);
  --mh-accent: #c397ff;
  --mh-accent-bright: #e3ccff;
  --mh-accent-soft: rgba(166, 110, 240, 0.13);
  --mh-accent-fill: #503476;
  --mh-radius-sm: 7px;
  --mh-radius: 11px;
  --mh-radius-lg: 18px;
  --mh-radius-pill: 999px;
  --mh-control-height: calc(41px * var(--mh-ui-scale));
  --mh-control-size: calc(13px * var(--mh-ui-scale));
  --mh-focus-surface: rgba(195, 151, 255, 0.18);
  --mh-header-min-height: calc(56px * var(--mh-ui-scale));
  --mh-header-height: var(--mh-header-min-height);
  --mh-content-max: 1280px;
  --mh-content-narrow: 950px;
  --mh-content-gutter: 36px;
  --mh-content-top: 44px;
  --mh-side-panel-width: clamp(350px, 37.5vw, 510px);
  --mh-side-panel-padding: clamp(16px, 4vw, 24px);
}

@media (max-width: 960px) {
  :root { --mh-side-panel-width: 100%; }
}

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

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { border-radius: var(--mh-radius-pill); background: var(--mh-scrollbar-thumb); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--mh-scrollbar-thumb) transparent; }
}

.mh-scrollbar-hidden { scrollbar-width: none; }
.mh-scrollbar-hidden::-webkit-scrollbar { display: none; }

.mh-app { --mh-ui-scale: 1.15; }

html {
  min-width: 280px;
  scroll-padding-top: calc(var(--mh-header-height) + 16px);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--mh-bg);
  color: var(--mh-text);
  font: 400 calc(14px * var(--mh-ui-scale)) / 1.55 var(--mh-font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }

@media (forced-colors: active) {
  :focus-visible { outline: 1px solid Highlight; }
}

::selection {
  background: #5d3c88;
  color: #fff;
}

.mh-content {
  width: min(var(--mh-content-max), calc(100% - var(--mh-content-gutter) * 2));
  margin-inline: auto;
  padding-block: var(--mh-content-top) 48px;
}
.mh-content__narrow { width: min(var(--mh-content-narrow), 100%); margin-inline: auto; }

@media (max-width: 760px) {
  :root { --mh-header-min-height: calc(78px * var(--mh-ui-scale)); --mh-content-gutter: 16px; --mh-content-top: 28px; }
  .mh-content { padding-bottom: 28px; }
}

.mh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.mh-icon {
  display: block;
  flex: none;
  width: var(--mh-icon-size, 18px);
  height: var(--mh-icon-size, 18px);
  fill: currentColor;
}
