:root {
  --gs-blue: #0d4cd3;
  --gs-text: #0b1f33;
  --gs-muted: #66727f;
  --gs-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--gs-bg);
  color: var(--gs-text);
  font-family: "Golos Text", "Golos UI", "PT Sans", "Noto Sans", system-ui,
    sans-serif;
  padding-top: 4px;
}

.stage {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

h1 {
  color: var(--gs-blue);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18em;
  line-height: 1.25;
  margin: 0 auto;
}

h1.hello {
  font-size: clamp(20px, 5.4vw, 32px);
  letter-spacing: -0.01em;
}

.hint {
  margin-top: 12px;
  color: var(--gs-muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.versions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: var(--gs-muted);
}

.stage.compact {
  min-height: auto;
  padding: 20px 16px 8px;
}

.tricolor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 4px;
  z-index: 10;
}

.tricolor span {
  flex: 1;
}

.tricolor__white {
  background: #ffffff;
  box-shadow: inset 0 -1px 0 #e6e8ee;
}

.tricolor__blue {
  background: var(--gs-blue);
}

.tricolor__red {
  background: #ef4058;
}

.title {
  color: var(--gs-blue);
}

.home-search {
  width: min(100%, 420px);
  margin: 16px auto 0;
}

.home-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.denied {
  text-align: center;
  color: var(--gs-muted);
  padding: 16px;
}

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px 88px;
}

.doc-head h2 {
  color: var(--gs-blue);
  font-size: 22px;
  line-height: 1.3;
}

.doc-head p {
  color: var(--gs-muted);
  margin: 6px 0 16px;
}

.group {
  margin: 10px 0;
  border-bottom: 1px solid #e6e8ee;
  padding-bottom: 8px;
}

.group > summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 0;
}

.group > summary::-webkit-details-marker {
  display: none;
}

.group > summary::before {
  content: "▸";
  color: var(--gs-muted);
  font-weight: 400;
  width: 1em;
  flex: none;
}

.group[open] > summary::before {
  content: "▾";
}

.group-title {
  min-width: 0;
  flex: 1;
}

.group-body {
  padding: 0 0 4px 1.4em;
}

.count {
  color: var(--gs-muted);
  font-weight: 400;
}

.doc .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e6e8ee;
  font-size: 14px;
  align-items: baseline;
}

.name {
  min-width: 0;
}

.num {
  color: var(--gs-muted);
}

.when {
  color: var(--gs-muted);
  white-space: nowrap;
  font-size: 12px;
}

.summary {
  background: #f2f3f7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}

.summary h3 {
  color: var(--gs-blue);
  margin-bottom: 8px;
}

.row.total {
  border-bottom: 0;
  font-size: 15px;
  padding-top: 10px;
}

.menu {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.menu button,
.panel .help-q,
.back,
.react button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  background: var(--gs-blue);
  color: #fff;
  cursor: pointer;
}

.back,
.react .secondary {
  background: #e6e8ee;
  color: var(--gs-text);
}

.react .danger {
  background: #ef4058;
}

.panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px 88px;
}

.panel h2 {
  color: var(--gs-blue);
  font-size: 22px;
  margin: 12px 0;
}

.panel .muted,
.panel .empty,
.panel .hint {
  color: var(--gs-muted);
  margin: 8px 0 16px;
}

#help-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 12px;
}

.help-cat {
  margin: 8px 0;
}

.help-cat > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}

.help-q {
  display: block;
  width: 100%;
  text-align: left;
  background: #f2f3f7;
  color: var(--gs-text);
  margin: 6px 0;
  font-weight: 500;
}

.article {
  font-size: 15px;
  line-height: 1.45;
  white-space: normal;
}

.react {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
