:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK",
    "Microsoft JhengHei", sans-serif;
  color: #f2f1ed;
  background: #121314;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  --gold: #f2bd59;
  --gold-dim: #342d20;
  --panel: #1b1c1e;
  --line: #343538;
  --muted: #a5a6a8;
  --text: #f2f1ed;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
textarea,
select {
  border-radius: 0;
}
[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid #675640;
  border-radius: 9px;
  background: #28251f;
  color: #fff1d7;
  padding: 12px 18px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 32px #0005;
  max-width: calc(100% - 28px);
  width: max-content;
  pointer-events: none;
}
#toast.error {
  background: #462b2b;
  color: #ffe8e4;
  border-color: #96605a;
}
#sheet {
  padding: 0;
  width: min(440px, calc(100% - 32px));
  max-height: 85dvh;
  color: var(--text);
  background: #202123;
  border: 1px solid #414245;
  border-radius: 16px;
  box-shadow: 0 24px 90px #0007;
  color-scheme: dark;
}
#sheet::backdrop {
  background: #08090bc2;
}
.modal-inner {
  padding: 24px;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.modal-heading h2 {
  font-size: 22px;
}
.modal-close {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #c6c6c6;
}
.modal-inner p {
  color: #bcbcc0;
  font-size: 14px;
  line-height: 1.65;
}
.modal-inner label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #d1d0cc;
  margin: 16px 0;
}
.modal-inner input,
.modal-inner textarea,
.modal-inner select {
  background: #151617;
  border: 1px solid #454649;
  color: #fff;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 7px;
  width: 100%;
  font-size: 16px;
}
.modal-inner textarea {
  resize: vertical;
  min-height: 84px;
}
.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.action,
.outline-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 650;
}
.action {
  background: var(--gold);
  color: #211b10;
  border: 1px solid var(--gold);
}
.outline-action {
  border: 1px solid #414246;
  color: #e5e4e0;
  background: #232426;
}
.action:active,
.outline-action:active {
  transform: translateY(1px);
}
.boot-issue {
  margin: 12vh auto;
  padding: 24px;
  width: min(440px, 94vw);
  border-radius: 12px;
  background: #212225;
  color: #f3f2ee;
  line-height: 1.7;
}
.boot-issue p {
  margin: 8px 0 14px;
}
.boot-issue input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 16px;
}
@media (max-width: 700px) {
  #toast {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .prop-page #toast {
    bottom: calc(30px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
