:root {
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --text: #f6f2fa;
  --text-muted: #c8bdd8;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.28);
  --elev: rgba(255, 255, 255, 0.08);
  --card: rgba(18, 14, 28, 0.44);
  --glow: rgba(130, 108, 210, 0.32);
  --page: #12101a;
  --pink: #e0b4c8;
  --blue: #7b9aef;
  --violet: #b49aef;
  --ok: #8fd4b0;
  --warn: #e8c49a;
  --bad: #e8a0ac;
  --dur: 0.36s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.45;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

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

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 640px at 8% 0%, rgba(60, 110, 230, 0.4) 0%, transparent 58%),
    radial-gradient(820px 600px at 100% 0%, rgba(140, 90, 230, 0.38) 0%, transparent 55%),
    radial-gradient(980px 620px at 88% 100%, rgba(220, 120, 170, 0.34) 0%, transparent 58%),
    radial-gradient(720px 480px at 8% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    #12101a;
}

.page-bg__wash {
  position: absolute;
  inset: -60%;
  pointer-events: none;
  will-change: transform;
  animation: wash 16s ease-in-out infinite alternate;
  background:
    radial-gradient(720px 520px at 12% 18%, rgba(60, 110, 230, 0.42) 0%, transparent 58%),
    radial-gradient(680px 500px at 92% 8%, rgba(140, 90, 230, 0.38) 0%, transparent 55%),
    radial-gradient(720px 540px at 78% 92%, rgba(220, 120, 170, 0.32) 0%, transparent 58%),
    radial-gradient(500px 380px at 8% 88%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-bg__aurora {
  position: absolute;
  inset: -25% -45%;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(70, 120, 235, 0.24) 22%,
    rgba(145, 95, 230, 0.26) 48%,
    rgba(220, 125, 175, 0.22) 72%,
    rgba(255, 255, 255, 0.1) 88%,
    transparent 100%
  );
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from { transform: translate3d(-6%, -4%, 0) scale(1.06) rotate(-4deg); }
  to { transform: translate3d(6%, 4%, 0) scale(1.14) rotate(5deg); }
}

@keyframes aurora {
  from { transform: translate3d(-10%, 0, 0) rotate(-8deg); }
  to { transform: translate3d(10%, 0, 0) rotate(8deg); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 0;
  background: radial-gradient(circle, rgba(55, 115, 235, 0.5) 0%, rgba(55, 115, 235, 0.12) 42%, transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 460px;
  height: 460px;
  right: -160px;
  top: -100px;
  background: radial-gradient(circle, rgba(145, 90, 230, 0.46) 0%, rgba(145, 90, 230, 0.12) 42%, transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

.orb-c {
  width: 440px;
  height: 440px;
  left: 16%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(220, 125, 175, 0.42) 0%, rgba(220, 125, 175, 0.1) 42%, transparent 70%);
  animation: drift-c 20s ease-in-out infinite alternate;
}

.orb-d {
  width: 280px;
  height: 280px;
  left: 28%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 68%);
  animation: drift-d 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(90px, 70px, 0) scale(1.22); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to { transform: translate3d(-100px, 80px, 0) scale(1.2); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(50px, 40px, 0) scale(1.2); }
}

@keyframes drift-d {
  from { transform: translate3d(0, 0, 0) scale(0.92); }
  to { transform: translate3d(60px, 30px, 0) scale(1.18); }
}

.noise {
  display: none;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.device {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

@media (min-width: 760px) {
  body:not(.in-tg) .device {
    width: min(402px, 92vw);
    height: min(844px, 94vh);
    border-radius: 42px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 6, 14, 0.28);
    box-shadow:
      0 40px 90px rgba(8, 4, 16, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  body:not(.in-tg) {
    overflow: auto;
  }
}

.glass {
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(32, 24, 48, 0.36) 46%,
    rgba(18, 14, 28, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--radius);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pulse-svg {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 10px 24px var(--glow));
}

.loader-word {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff 0%, #c4b0f0 42%, #7b9aef 72%, #e0b4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loader-bar {
  width: 160px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  animation: load 0.4s var(--ease) forwards;
}

@keyframes load {
  to { width: 100%; }
}

.app {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mark svg { width: 22px; height: 22px; }

.wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff 0%, #c4b0f0 36%, #7b9aef 66%, #e0b4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.view {
  overflow: auto;
  padding: 10px 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--violet) 40%, transparent) transparent;
}

.enter {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card {
  padding: 22px 20px 20px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(220, 125, 175, 0.32),
    rgba(70, 120, 235, 0.18) 55%,
    transparent 70%
  );
  pointer-events: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-card h1 {
  font-size: 28px;
  margin: 10px 0 6px;
}

.hero-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.now-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.now-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(201, 168, 184, 0.16);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.25); opacity: 0.7; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat {
  padding: 16px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section__head h2 { font-size: 16px; }

.linkish,
.chip-btn {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}

.linkish:active,
.chip-btn:active { opacity: 0.7; transform: scale(0.97); }

.lesson {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.lesson.is-now {
  border-color: var(--line-strong);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.lesson.is-done { opacity: 0.58; }
.lesson.is-cancel { opacity: 0.5; }

.lesson:active { transform: scale(0.985); }

.lesson time {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.lesson strong { display: block; font-size: 15px; }
.lesson em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(201, 168, 184, 0.12);
  color: var(--pink);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.days {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 1px 6px;
  scrollbar-width: none;
}

.days::-webkit-scrollbar { display: none; }

.day {
  flex: 0 0 56px;
  height: 66px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--elev);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.day small {
  font-size: 11px;
  color: var(--text-muted);
}

.day.is-on {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.day:active { transform: scale(0.96); }

.feed-card {
  padding: 18px;
}

.feed-card .type {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: 8px;
}

.feed-card h3 { font-size: 18px; margin-bottom: 8px; }
.feed-card p { color: var(--text-muted); font-size: 14px; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.enter > .row-actions {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--elev);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn--ghost { background: transparent; }
.btn--wide { width: 100%; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.person strong { display: block; font-size: 14px; }
.person .meta { font-size: 12px; color: var(--text-muted); }

.enter.is-static > * {
  animation: none !important;
  opacity: 1;
  transform: none;
}

.mark-btn {
  margin-left: auto;
  min-width: 76px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--elev);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.18s var(--ease);
}

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

.mark-btn.present { background: rgba(143, 212, 176, 0.14); color: var(--ok); }
.mark-btn.late { background: rgba(232, 196, 154, 0.14); color: var(--warn); }
.mark-btn.absent { background: rgba(232, 160, 172, 0.14); color: var(--bad); }
.mark-btn.excused { background: rgba(174, 160, 204, 0.14); color: var(--violet); }
.mark-btn.none { color: var(--text-muted); }

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 42%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tabbar button {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 16px;
  border: 1px solid transparent;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.tabbar svg { width: 22px; height: 22px; }

.tabbar button.is-on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tabbar button:active { transform: scale(0.96); }

.sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s var(--ease), visibility 0.34s;
}

.sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet[hidden] { display: none; }

.sheet__dim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 10, 0.5);
}

.sheet__card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-b));
  max-height: 82%;
  overflow: auto;
  padding: 20px 18px 18px;
  transform: translateY(18px);
  transition: transform 0.45s var(--ease);
}

.sheet.is-open .sheet__card {
  transform: none;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 12px 14px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.field textarea { min-height: 90px; resize: vertical; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seg button {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--elev);
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.seg button.is-on {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.seg button:active { transform: scale(0.97); }

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 14, 28, 0.86);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.enter > * {
  animation: in 0.45s var(--ease) both;
}

.enter > *:nth-child(1) { animation-delay: 0.02s; }
.enter > *:nth-child(2) { animation-delay: 0.07s; }
.enter > *:nth-child(3) { animation-delay: 0.12s; }
.enter > *:nth-child(4) { animation-delay: 0.17s; }
.enter > *:nth-child(5) { animation-delay: 0.22s; }
.enter > *:nth-child(6) { animation-delay: 0.27s; }
.enter > *:nth-child(7) { animation-delay: 0.32s; }

@keyframes in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--elev);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.switch.is-on {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--line-strong);
}

.switch.is-on::after { transform: translateX(16px); }

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

.contact {
  padding: 18px 20px;
  min-height: 0;
}

.contact span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: 8px;
}

.contact strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.contact em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--text-muted);
  font-size: 12px;
}

.bell {
  padding: 16px 18px;
}

.bell strong { display: block; font-size: 15px; }
.bell span { display: block; margin-top: 6px; color: var(--blue); font-size: 13px; font-weight: 700; }
.bell em { display: block; margin-top: 8px; font-style: normal; color: var(--text-muted); font-size: 12px; }

.avatar img,
img.avatar {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.sheet-photo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
}

.pick {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.pick.is-on {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}

.pick.is-off { opacity: 0.45; }

.week-poster {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: block;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.person .chip { margin-left: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .day:hover,
  .pick:hover,
  .seg button:hover,
  .tabbar button:hover,
  .linkish:hover,
  .chip-btn:hover {
    border-color: var(--line-strong);
  }

  .btn:hover,
  .day:hover,
  .pick:hover,
  .seg button:hover {
    background: rgba(255, 255, 255, 0.09);
  }

  .tabbar button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }

  .linkish:hover,
  .chip-btn:hover { color: var(--text); }

  .lesson:hover,
  .person:hover,
  .feed-card:hover,
  .contact:hover,
  .stat:hover,
  .bell:hover {
    border-color: var(--line-strong);
  }
}

@media (max-width: 759px), (pointer: coarse) {
  .orb-a, .orb-b, .orb-c {
    width: 280px;
    height: 280px;
  }
  .orb-d {
    width: 180px;
    height: 180px;
    opacity: 0.7;
  }
  .page-bg__aurora {
    opacity: 0.75;
  }
  .glass {
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
  }
  .enter > * {
    animation-duration: 0.32s;
  }
  .enter > *:nth-child(n + 5) {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .page-bg__wash,
  .page-bg__aurora,
  .enter > *,
  .now-tag i {
    animation: none !important;
  }
  .glass,
  .btn,
  .day,
  .tabbar button,
  .seg button,
  .pick,
  .mark-btn,
  .field input,
  .field textarea,
  .field select,
  .sheet,
  .sheet__card,
  .toast,
  .switch,
  .switch::after {
    transition: none !important;
  }
}

.in-tg .glass {
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.gate {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate[hidden] { display: none; }

.gate__card {
  width: min(100%, 360px);
  padding: 28px 22px 22px;
  text-align: center;
}

.gate__card h1 {
  font-size: 28px;
  margin: 10px 0 12px;
}

.gate__card p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.gate__card .btn {
  color: inherit;
}

.week-day {
  padding: 16px 18px;
}

.week-day h3 {
  font-size: 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.week-day h3 small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.week-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  font-size: 14px;
}

.week-row span {
  color: var(--text-muted);
  font-size: 12px;
}

.week-row.is-cancel {
  color: var(--text-muted);
  text-decoration: line-through;
}
