@charset "UTF-8";

/* 回声 ECHO · shared visual foundation */

:root {
  color-scheme: light;
  --ink: #191a23;
  --ink-soft: #353746;
  --muted: #676a7b;
  --muted-soft: #858899;
  --glass: rgba(255, 255, 255, 0.38);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-solid: rgba(250, 250, 253, 0.9);
  --glass-line: rgba(255, 255, 255, 0.72);
  --line: rgba(31, 33, 48, 0.1);
  --line-strong: rgba(31, 33, 48, 0.17);
  --accent: #7968f0;
  --accent-deep: #5b4ad2;
  --accent-soft: rgba(121, 104, 240, 0.14);
  --peach: #e9a28b;
  --mint: #96cbb9;
  --sky: #91b8e9;
  --danger: #b7464d;
  --danger-soft: rgba(183, 70, 77, 0.11);
  --success: #35745a;
  --success-soft: rgba(53, 116, 90, 0.11);
  --warning: #a26c2d;
  --warning-soft: rgba(162, 108, 45, 0.12);
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Iowan Old Style",
    "Baskerville", serif;
  --font-sans: "Avenir Next", "General Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --container: 1240px;
  --page-x: clamp(20px, 4.2vw, 64px);
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --shadow-soft: 0 10px 32px rgba(46, 47, 69, 0.07);
  --shadow-card: 0 24px 70px rgba(46, 47, 69, 0.11);
  --shadow-float: 0 34px 100px rgba(46, 47, 69, 0.17);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #e7e7ee;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 10%, rgba(246, 190, 166, 0.62), transparent 29%),
    radial-gradient(circle at 87% 17%, rgba(157, 190, 241, 0.58), transparent 30%),
    radial-gradient(circle at 72% 88%, rgba(170, 220, 203, 0.5), transparent 33%),
    radial-gradient(circle at 18% 83%, rgba(195, 179, 240, 0.42), transparent 29%),
    linear-gradient(135deg, #efedf3 0%, #e1e7ee 48%, #eee5e3 100%);
}

body::after {
  position: fixed;
  z-index: 9998;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

body.is-locked {
  overflow: hidden;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(37, 39, 55, 0.23);
  background-clip: padding-box;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.08;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.icon {
  flex: 0 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10050;
  top: 14px;
  left: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.container--wide {
  width: min(100%, 1440px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 21px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.eyebrow--plain::before {
  display: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.display em {
  font-style: normal;
  color: var(--accent-deep);
}

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

.mono {
  font-family: var(--font-mono);
}

.glass {
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    var(--shadow-card);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
}

.glass--quiet {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 14px 44px rgba(46, 47, 69, 0.07);
}

.glass--strong {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-symbol {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), transparent 24%),
    conic-gradient(from 220deg, #7b6cf0, #e8a58e, #9abce6, #9bd1bd, #7b6cf0);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.5),
    0 8px 22px rgba(91, 74, 210, 0.24);
  place-items: center;
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
}

.brand-symbol::before {
  inset: 9px;
}

.brand-symbol::after {
  inset: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease-out),
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled {
  opacity: 0.48;
  transform: none;
}

.btn .icon {
  transition: transform 220ms var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn--primary {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 45%),
    #1e1f2a;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.19),
    0 14px 30px rgba(30, 31, 42, 0.18);
}

.btn--primary:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.17), transparent 45%),
    #292a37;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 17px 36px rgba(30, 31, 42, 0.24);
}

.btn--accent {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 30px rgba(46, 47, 69, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.btn--glass:hover {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.58);
}

.btn--ghost {
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.42);
}

.btn--danger {
  border-color: rgba(183, 70, 77, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.btn--danger:hover {
  border-color: rgba(183, 70, 77, 0.32);
  background: rgba(183, 70, 77, 0.15);
}

.btn--large {
  min-height: 56px;
  padding: 15px 26px;
  font-size: 15px;
}

.btn--small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}

.btn--icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.btn--icon:hover .icon {
  transform: none;
}

.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  place-items: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms var(--ease-out);
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
}

.icon-btn:active {
  transform: scale(0.94);
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge--quiet::before {
  display: none;
}

.badge--success {
  border-color: rgba(53, 116, 90, 0.16);
  background: var(--success-soft);
  color: var(--success);
}

.badge--warning {
  border-color: rgba(162, 108, 45, 0.16);
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--danger {
  border-color: rgba(183, 70, 77, 0.16);
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--accent {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-deep);
}

.badge--ink {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(53, 116, 90, 0.1);
}

.dot--warning {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(162, 108, 45, 0.11);
}

.dot--quiet {
  background: var(--muted-soft);
  box-shadow: 0 0 0 4px rgba(103, 106, 123, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.field__label small {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 500;
}

.field__hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid rgba(31, 33, 48, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(31, 33, 48, 0.02);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.input,
.select {
  height: 48px;
  padding: 0 14px;
}

.textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #9a9ca9;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(31, 33, 48, 0.19);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 11%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.select {
  padding-right: 36px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 21px,
    calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.input-group {
  position: relative;
}

.input-group .input {
  padding-left: 40px;
}

.input-group__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted-soft);
  pointer-events: none;
  transform: translateY(-50%);
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.65;
}

.check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  accent-color: var(--accent-deep);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 33, 48, 0.17);
  box-shadow: inset 0 1px 2px rgba(31, 33, 48, 0.1);
  transition: background-color 220ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 33, 48, 0.22);
  content: "";
  transition: transform 240ms var(--ease-out);
}

.switch[aria-checked="true"] {
  background: var(--accent-deep);
}

.switch[aria-checked="true"]::after {
  transform: translateX(19px);
}

.switch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.switch-row__copy {
  display: grid;
  gap: 3px;
}

.switch-row__copy strong {
  font-size: 13px;
  font-weight: 600;
}

.switch-row__copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.27);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.segmented button {
  min-height: 32px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 33, 48, 0.08);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  place-items: center;
}

.empty-state h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.empty-state p {
  max-width: 360px;
  font-size: 13px;
}

.avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 30%, #fff), #fff);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.28),
    0 8px 22px color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  place-items: center;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar--lg {
  width: 78px;
  height: 78px;
  font-size: 29px;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.site-footer {
  position: relative;
  padding: 28px 0 36px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer__note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer__links a {
  transition: color 180ms ease;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(27, 28, 40, 0.28);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  animation: scrim-in 220ms ease both;
}

.modal__panel {
  position: relative;
  display: flex;
  width: min(560px, 100%);
  max-height: min(84vh, 800px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 252, 0.76)),
    #f8f8fb;
  box-shadow:
    inset 0 1px 0 #fff,
    0 40px 120px rgba(28, 29, 45, 0.26);
  animation: modal-in 340ms var(--ease-out) both;
}

.modal__panel--wide {
  width: min(780px, 100%);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.modal__head-copy {
  display: grid;
  gap: 5px;
}

.modal__kicker {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal__head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.modal__body {
  padding: 24px 26px;
  overflow-y: auto;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.drawer {
  position: fixed;
  z-index: 10000;
  inset: 0;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(27, 28, 40, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: scrim-in 220ms ease both;
}

.drawer__panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  width: min(560px, calc(100vw - 28px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(253, 253, 255, 0.96), rgba(245, 246, 251, 0.9));
  box-shadow:
    inset 0 1px 0 #fff,
    -30px 20px 100px rgba(28, 29, 45, 0.24);
  animation: drawer-in 380ms var(--ease-out) both;
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
}

.drawer__body {
  flex: 1;
  padding: 24px 26px 40px;
  overflow-y: auto;
}

.toast-region {
  position: fixed;
  z-index: 10060;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent),
    rgba(26, 27, 38, 0.93);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 50px rgba(26, 27, 38, 0.22);
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: toast-in 320ms var(--ease-out) both;
  pointer-events: auto;
}

.toast.is-error {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(150, 47, 55, 0.96);
}

.toast.is-success .toast__icon {
  color: #b8e4cd;
}

.toast__icon {
  margin-top: 1px;
  color: #c9c6ff;
}

.toast__copy {
  display: grid;
  flex: 1;
  gap: 2px;
}

.toast__copy strong {
  font-size: 12px;
  font-weight: 600;
}

.toast.is-leaving {
  animation: toast-out 220ms ease both;
}

.skeleton {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}

.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  animation: shimmer 1.4s infinite;
  transform: translateX(-100%);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-spinning {
  animation: spin 900ms linear infinite;
}

@media (max-width: 720px) {
  :root {
    --page-x: 20px;
    --radius-lg: 24px;
    --radius-xl: 30px;
  }

  .glass {
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    backdrop-filter: blur(15px) saturate(120%);
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal__panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 26px 26px 0 0;
  }

  .modal__head,
  .modal__body,
  .drawer__head,
  .drawer__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .modal__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .drawer__panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
