:root {
  color-scheme: dark;
  --ink: #101625;
  --ink-soft: #171f32;
  --ink-raised: #202940;
  --paper: #f7f0df;
  --paper-soft: #d8d3c5;
  --muted: #929caf;
  --moon: #f1d27a;
  --moon-bright: #fff0b2;
  --leaf: #83baaa;
  --rose: #d5979e;
  --danger: #df7c76;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(241, 210, 122, 0.26);
  --shadow: 0 24px 70px rgba(3, 8, 17, 0.42);
  --radius: 24px;
  --radius-sm: 15px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #090e19;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 10%, rgba(73, 102, 134, 0.18), transparent 36%),
    radial-gradient(circle at 88% 80%, rgba(101, 73, 91, 0.16), transparent 38%),
    #090e19;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.ambient-orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}
.ambient-orb--one { top: -10vw; left: -8vw; background: #7ea6bc; }
.ambient-orb--two { right: -10vw; bottom: 5vw; background: #c1808a; }

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 22%),
    var(--ink);
}

.page {
  min-height: 100dvh;
  padding: 0 18px calc(102px + var(--safe-bottom));
  animation: page-enter .42s cubic-bezier(.22,.8,.25,1) both;
}

.page--plain { padding-bottom: calc(30px + var(--safe-bottom)); }

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 66px;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(16,22,37,.98) 60%, rgba(16,22,37,0));
  backdrop-filter: blur(12px);
}

.topbar__title {
  margin: 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .12em;
  text-align: center;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.icon-button:active { transform: scale(.96); }
.icon-button:focus-visible, .button:focus-visible, .nav-item:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--moon);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 9vw, 43px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .04em;
}

.hero {
  position: relative;
  min-height: 255px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 25px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(55,75,104,.32), rgba(16,22,37,.04) 58%),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .65;
  background-image:
    radial-gradient(circle at 12% 22%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 13%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 40%, #fff 0 1.4px, transparent 1.9px),
    radial-gradient(circle at 39% 60%, #fff 0 .8px, transparent 1.3px),
    radial-gradient(circle at 72% 78%, #fff 0 .7px, transparent 1.2px);
  background-size: 130px 120px, 170px 150px, 190px 160px, 140px 130px, 220px 190px;
  animation: stars 6s ease-in-out infinite alternate;
}

@keyframes stars { to { opacity: .35; transform: translateY(2px); } }

.hero__copy { position: relative; z-index: 2; max-width: 290px; }
.hero__copy p:not(.eyebrow) {
  max-width: 255px;
  margin: 13px 0 0;
  color: var(--paper-soft);
  font-size: 14px;
  line-height: 1.75;
}

.hero__moon {
  position: absolute;
  z-index: 1;
  right: -25px;
  bottom: -18px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(241,210,122,.33);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(241,210,122,.025), 0 0 70px rgba(241,210,122,.13);
  animation: breathe 4s ease-in-out infinite;
}

.hero__moon::before {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 32%, var(--moon-bright), var(--moon) 52%, #caa74f);
  box-shadow: inset -15px -8px 20px rgba(91,65,21,.22), 0 0 28px rgba(241,210,122,.2);
}

@keyframes breathe {
  50% { transform: translateY(-5px) scale(1.018); box-shadow: 0 0 0 30px rgba(241,210,122,.018), 0 0 88px rgba(241,210,122,.17); }
}

.hero__counter {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.hero__counter strong { color: var(--moon-bright); font-family: ui-serif, serif; font-size: 22px; }

.section { padding: 24px 0 0; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 0 2px 15px;
}
.section-heading h2 {
  margin: 0;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
}
.section-heading span { color: var(--muted); font-size: 12px; }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
  box-shadow: 0 14px 34px rgba(4,8,15,.18);
}

.vent-list { display: grid; gap: 14px; }
.vent-card {
  width: 100%;
  padding: 18px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vent-card::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--emotion, var(--moon));
  opacity: .7;
}
.vent-card__head, .profile-row { display: flex; align-items: center; gap: 11px; }
.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 15px;
  background: rgba(255,255,255,.065);
  font-size: 21px;
}
.avatar--large { width: 68px; height: 68px; border-radius: 22px; font-size: 32px; }
.avatar--teacher { border-color: rgba(241,210,122,.36); background: rgba(241,210,122,.11); }
.profile-row__copy { min-width: 0; flex: 1; }
.profile-row__name { margin: 0; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.profile-row__meta { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.mood-mark { margin-left: auto; color: var(--emotion, var(--moon)); font-size: 12px; white-space: nowrap; }
.vent-card__body {
  display: -webkit-box;
  margin: 15px 0 14px;
  overflow: hidden;
  color: #d8d9d6;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: .025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.vent-card__foot, .meta-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aeb6c4;
  background: rgba(255,255,255,.025);
  font-size: 10px;
}
.counts { display: flex; gap: 11px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: calc(74px + var(--safe-bottom));
  padding: 8px 12px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(14,20,34,.94);
  box-shadow: 0 -18px 40px rgba(3,8,17,.24);
  backdrop-filter: blur(22px);
}
.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 5px;
  border: 0;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.nav-item__icon { font-size: 20px; filter: grayscale(.35); }
.nav-item.is-active { color: var(--moon-bright); background: rgba(241,210,122,.07); }
.nav-item.is-active::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--moon);
}

.quick-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.quick-card {
  min-height: 105px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  text-align: left;
  background: linear-gradient(145deg, rgba(131,186,170,.12), rgba(255,255,255,.02));
  cursor: pointer;
}
.quick-card--warm { background: linear-gradient(145deg, rgba(213,151,158,.13), rgba(255,255,255,.02)); }
.quick-card__icon { display: block; margin-bottom: 12px; font-size: 24px; }
.quick-card strong { display: block; font-family: ui-serif, "Songti SC", serif; font-size: 16px; }
.quick-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.form-hero { padding: 28px 4px 22px; }
.form-hero p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-section { margin-top: 25px; }
.form-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 12px;
  font-size: 14px;
  font-weight: 650;
}
.form-label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.emotion-strip { display: flex; gap: 9px; margin: 0 -18px; padding: 2px 18px 8px; overflow-x: auto; scrollbar-width: none; }
.emotion-strip::-webkit-scrollbar { display: none; }
.emotion-option {
  flex: 0 0 92px;
  min-height: 98px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.emotion-option span { display: block; margin-bottom: 8px; font-size: 25px; }
.emotion-option small { font-size: 11px; }
.emotion-option.is-selected { border-color: var(--emotion); color: var(--paper); background: color-mix(in srgb, var(--emotion) 15%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--emotion) 8%, transparent); }
.textarea, .input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: none;
  color: var(--paper);
  background: rgba(255,255,255,.035);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 178px; padding: 17px; resize: vertical; line-height: 1.75; }
.input { min-height: 51px; padding: 0 15px; }
.textarea:focus, .input:focus { border-color: rgba(241,210,122,.55); box-shadow: 0 0 0 3px rgba(241,210,122,.08); }
.counter { margin: 7px 3px 0; color: var(--muted); font-size: 10px; text-align: right; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 12px;
  cursor: pointer;
}
.chip.is-selected { border-color: rgba(241,210,122,.55); color: var(--moon-bright); background: rgba(241,210,122,.09); }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row:last-child { border-bottom: 0; }
.switch-copy strong { display: block; font-size: 13px; }
.switch-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.switch {
  position: relative;
  width: 47px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #343d50;
  cursor: pointer;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #aeb4bf; transition: .22s; }
.switch.is-on { background: var(--leaf); }
.switch.is-on::after { left: 23px; background: #fff; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.privacy-check input { margin-top: 2px; accent-color: var(--moon); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--moon), var(--moon-bright));
  box-shadow: 0 12px 28px rgba(241,210,122,.12);
  font-weight: 700;
  cursor: pointer;
}
.button--block { width: 100%; margin-top: 24px; }
.button--ghost { border: 1px solid var(--line); color: var(--paper); background: rgba(255,255,255,.035); box-shadow: none; }
.button--danger { color: #fff; background: var(--danger); box-shadow: none; }
.button:disabled { opacity: .45; cursor: wait; }

.profile-hero {
  position: relative;
  margin: 8px 0 18px;
  padding: 22px;
  overflow: hidden;
}
.profile-hero::after { content: ""; position: absolute; right: -46px; bottom: -65px; width: 170px; height: 170px; border: 1px solid rgba(241,210,122,.16); border-radius: 50%; box-shadow: 0 0 0 22px rgba(241,210,122,.018); }
.profile-hero__main { position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; }
.profile-hero h1 { margin: 0 0 5px; font-family: ui-serif, "Songti SC", serif; font-size: 22px; }
.profile-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.profile-edit { margin-left: auto; }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: ui-serif, serif; font-size: 20px; }
.stat span { color: var(--muted); font-size: 10px; }
.menu-list { overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; background: transparent; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item__icon { width: 30px; font-size: 19px; text-align: center; }
.menu-item strong { font-size: 13px; font-weight: 550; }
.menu-item small { margin-left: auto; color: var(--muted); }

.detail-letter { margin-top: 8px; padding: 23px 20px; }
.detail-letter__content { margin: 24px 0; color: #e3e0d7; font-family: ui-serif, "Songti SC", serif; font-size: 18px; line-height: 2; letter-spacing: .035em; white-space: pre-wrap; }
.illustration { display: flex; align-items: center; gap: 13px; margin: 20px 0 4px; padding: 15px; border: 1px solid rgba(131,186,170,.18); border-radius: 18px; background: rgba(131,186,170,.07); }
.illustration__emoji { font-size: 30px; }
.illustration strong { display: block; font-family: ui-serif, "Songti SC", serif; font-size: 14px; }
.illustration small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.action-button { min-height: 43px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; }
.action-button.is-active { border-color: rgba(213,151,158,.4); color: var(--rose); background: rgba(213,151,158,.08); }
.comment-list { display: grid; gap: 11px; }
.comment { padding: 16px; }
.comment.is-teacher { border-color: rgba(241,210,122,.22); background: linear-gradient(145deg, rgba(241,210,122,.075), rgba(255,255,255,.018)); }
.comment__body { margin: 12px 0 0 53px; color: #d1d4d5; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.composer { position: sticky; bottom: 0; z-index: 15; display: flex; gap: 9px; margin: 20px -18px calc(-30px - var(--safe-bottom)); padding: 12px 18px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: rgba(16,22,37,.96); backdrop-filter: blur(16px); }
.composer .input { min-width: 0; flex: 1; }
.composer .button { min-height: 49px; padding: 0 17px; }

.chat-list { display: grid; gap: 10px; }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 20px; color: inherit; text-align: left; background: rgba(255,255,255,.028); cursor: pointer; }
.chat-row__copy { min-width: 0; flex: 1; }
.chat-row__copy strong { font-size: 13px; }
.chat-row__copy p { margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--rose); font-size: 9px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(131,186,170,.1); }
.messages { display: grid; align-content: end; gap: 15px; min-height: calc(100dvh - 165px); padding: 16px 0; }
.message { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.message--user { justify-self: end; flex-direction: row-reverse; }
.message__bubble { padding: 11px 14px; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; color: #dfe1de; background: var(--ink-raised); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.message--user .message__bubble { border-radius: 18px 18px 4px 18px; border-color: rgba(241,210,122,.22); color: #f8edca; background: rgba(241,210,122,.12); }
.message__time { color: var(--muted); font-size: 8px; }

.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-option { min-height: 120px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; color: inherit; text-align: left; background: rgba(255,255,255,.025); cursor: pointer; }
.help-option span { display: block; margin-bottom: 12px; font-size: 24px; }
.help-option strong { display: block; font-size: 13px; }
.help-option small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.help-option.is-selected { border-color: rgba(213,151,158,.45); background: rgba(213,151,158,.08); }
.record { padding: 17px; }
.record + .record { margin-top: 11px; }
.record__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.record__status { padding: 5px 9px; border-radius: 999px; color: var(--leaf); background: rgba(131,186,170,.09); font-size: 9px; }
.record p { margin: 12px 0 0; color: var(--paper-soft); font-size: 12px; line-height: 1.7; }

.empty { padding: 55px 25px; color: var(--muted); text-align: center; }
.empty__icon { display: block; margin-bottom: 16px; font-size: 35px; opacity: .8; }
.empty strong { display: block; color: var(--paper-soft); font-family: ui-serif, "Songti SC", serif; font-size: 16px; }
.empty p { margin: 8px auto 0; max-width: 230px; font-size: 11px; line-height: 1.7; }
.loading { display: grid; place-items: center; min-height: 45vh; color: var(--muted); font-size: 12px; }
.loading::before { content: ""; width: 24px; height: 24px; margin-bottom: 14px; border: 2px solid var(--line); border-top-color: var(--moon); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { margin: 30px 0; padding: 24px; text-align: center; }
.error-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }

.toast-root { position: fixed; z-index: 200; top: calc(18px + env(safe-area-inset-top, 0px)); right: 0; left: 0; display: grid; place-items: center; pointer-events: none; }
.toast { max-width: min(84vw, 360px); padding: 11px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: var(--paper); background: rgba(31,40,60,.94); box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease both; backdrop-filter: blur(15px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.modal-mask { position: fixed; z-index: 150; inset: 0; display: grid; align-items: end; padding: 18px; background: rgba(3,7,14,.7); backdrop-filter: blur(8px); animation: fade .2s ease; }
.modal { width: min(100%, 448px); max-height: min(82vh, 720px); margin: 0 auto; padding: 21px; overflow: auto; border: 1px solid var(--line); border-radius: 28px; background: #192237; box-shadow: var(--shadow); animation: sheet .32s cubic-bezier(.22,.8,.25,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(22px); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.modal__head h2 { margin: 0; font-family: ui-serif, "Songti SC", serif; font-size: 20px; }
.modal__body { color: var(--paper-soft); font-size: 12px; line-height: 1.85; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.avatar-categories { display: flex; gap: 7px; margin-bottom: 15px; overflow-x: auto; }
.avatar-category { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.avatar-category.is-selected { color: var(--moon-bright); border-color: var(--line-strong); background: rgba(241,210,122,.07); }
.avatar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.avatar-choice { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.028); font-size: 23px; cursor: pointer; }
.avatar-choice.is-selected { border-color: var(--moon); box-shadow: 0 0 0 2px rgba(241,210,122,.11); }

@media (min-width: 680px) {
  .app-shell { max-width: 480px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 100px rgba(0,0,0,.42); }
  .bottom-nav { left: 50%; width: 480px; transform: translateX(-50%); }
  .modal-mask { align-items: center; }
  .hero { min-height: 275px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
