@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/brand/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/brand/fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/brand/fonts/manrope-500.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #17131d;
  --muted: #746c79;
  --canvas: #f5f5f5;
  --surface: #fff;
  --line: #e6e1e5;
  --rose: #ef476f;
  --rose-soft: #ffd6d6;
  --violet: #7257e8;
  --violet-soft: #dbeaff;
  --sage: #248a73;
  --sage-soft: #e5f5ef;
  --gold: #b76818;
  --gold-soft: #fff2d5;
  --nav: #09090a;
  --shadow: 0 18px 60px rgb(44 28 42 / 9%);
  font-family:
    Manrope,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
html,
body,
#root {
  min-height: 100%;
  margin: 0;
}
body {
  background: var(--canvas);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--violet) 28%, transparent);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 18px;
  height: 18px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 100vh;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0, rgb(239 71 111 / 19%), transparent 28%),
    var(--nav);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 0 10px 28px;
}
.brand-lockup img {
  width: 166px;
  filter: invert(1) brightness(1.5);
}
.brand-lockup > span {
  color: #a49ca6;
  font-family: Poppins, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav > span {
  padding: 0 13px 10px;
  color: #716a73;
  font-family: Poppins, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.sidebar nav button {
  position: relative;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa3ac;
  background: transparent;
  cursor: pointer;
  font-family: Poppins, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  transition: 160ms ease;
}
.sidebar nav button:hover {
  color: #fff;
  background: rgb(255 255 255 / 6%);
}
.sidebar nav button.active {
  color: #fff;
  background: linear-gradient(
    95deg,
    rgb(239 71 111 / 24%),
    rgb(255 255 255 / 6%)
  );
}
.sidebar nav button.active::after {
  content: "";
  position: absolute;
  right: -18px;
  width: 3px;
  height: 24px;
  border-radius: 4px 0 0 4px;
  background: var(--rose);
  box-shadow: 0 0 16px var(--rose);
}
.sidebar-profile {
  margin-top: auto;
  padding: 16px 8px 2px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.sidebar-profile b,
.sidebar-profile small {
  display: block;
}
.sidebar-profile b {
  font-size: 11px;
}
.sidebar-profile small {
  margin-top: 2px;
  color: #8f8791;
  font-size: 9px;
}
.sidebar-profile button {
  border: 0;
  color: #9c949e;
  background: transparent;
  cursor: pointer;
}
.app-main {
  min-width: 0;
}
.topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(248 246 245 / 88%);
  backdrop-filter: blur(18px);
}
.topbar > span {
  display: flex;
  gap: 7px;
}
.topbar > b {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-menu,
.mobile-close,
.sidebar-scrim {
  display: none;
}
.page-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 52px 34px 80px;
}
.page-header {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  display: block;
  color: var(--rose);
  font-family: Poppins, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.page-header h1 {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.page-header p {
  max-width: 660px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.page-actions,
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.primary-button,
.secondary-button,
.light-button,
.upload-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 25px rgb(23 19 29 / 17%);
}
.secondary-button,
.upload-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.light-button {
  color: var(--ink);
  background: #fff;
}
.text-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--rose);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.icon-button {
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
}
.back-button {
  margin-bottom: 18px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.pill {
  min-height: 22px;
  width: fit-content;
  padding: 0 8px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #625a65;
  background: #f0edef;
  font-family: Poppins, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill svg {
  width: 12px;
}
.pill-rose {
  color: #ba274b;
  background: var(--rose-soft);
}
.pill-violet {
  color: #5244af;
  background: var(--violet-soft);
}
.pill-sage {
  color: #16725e;
  background: var(--sage-soft);
}
.pill-gold {
  color: #9b590e;
  background: var(--gold-soft);
}
.avatar {
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 10px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 35px rgb(56 42 53 / 4%);
}
.panel-head {
  min-height: 78px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-head h2,
.calendar-section h2 {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.empty {
  min-height: 180px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.empty > svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  color: var(--violet);
  background: var(--violet-soft);
}
.empty b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.empty span {
  font-size: 9px;
}

.fact-grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fact-grid button {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.fact-grid button > svg {
  width: 35px;
  height: 35px;
  padding: 9px;
  border-radius: 11px;
  color: var(--rose);
  background: var(--rose-soft);
}
.fact-grid button:nth-child(2) > svg {
  color: var(--violet);
  background: var(--violet-soft);
}
.fact-grid button:nth-child(3) > svg {
  color: var(--sage);
  background: var(--sage-soft);
}
.fact-grid button:nth-child(4) > svg {
  color: var(--gold);
  background: var(--gold-soft);
}
.fact-grid strong {
  justify-self: end;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}
.fact-grid span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}
.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.compact-list > button {
  width: 100%;
  min-height: 68px;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.compact-list > button:last-child {
  border-bottom: 0;
}
.compact-date {
  color: var(--rose);
  font-size: 9px;
  font-weight: 800;
}
.compact-list b,
.compact-list small {
  display: block;
}
.compact-list b {
  font-size: 10px;
}
.compact-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.birthday-list {
  padding: 10px 18px;
}
.birthday-list > div {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}
.birthday-list > div:last-child {
  border: 0;
}
.birthday-list b,
.birthday-list small {
  display: block;
}
.birthday-list b {
  font-size: 9px;
}
.birthday-list small {
  color: var(--muted);
  font-size: 8px;
}
.announcement-panel {
  margin-top: 18px;
}
.announcement-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.announcement-grid article,
.announcement-strip article {
  min-height: 130px;
  padding: 18px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  background: #faf8f9;
}
.announcement-grid article > svg,
.announcement-strip article > svg {
  color: var(--rose);
}
.announcement-grid b,
.announcement-grid p,
.announcement-strip b,
.announcement-strip p {
  display: block;
}
.announcement-grid b,
.announcement-strip b {
  font-size: 10px;
}
.announcement-grid p,
.announcement-strip p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.segmented {
  width: fit-content;
  margin: -12px 0 20px;
  padding: 4px;
  border-radius: 12px;
  display: flex;
  background: #eae6e8;
}
.segmented button {
  min-height: 35px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.segmented button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 15px rgb(23 19 29 / 8%);
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.class-grid > article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgb(219 234 255 / 80%), transparent 34%),
    #fff;
}
.class-grid > article:nth-child(2n) {
  background:
    radial-gradient(circle at 100% 0, rgb(255 214 214 / 70%), transparent 34%),
    #fff;
}
.class-grid h2 {
  margin-top: 18px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.class-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.class-grid p {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}
.class-grid p svg {
  width: 13px;
}
.class-grid article > div {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
}
.class-grid a,
.class-grid article > div button {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 8px;
  font-weight: 800;
}
.class-grid a svg,
.class-grid article > div button svg {
  width: 12px;
}
.event-list {
  display: grid;
  gap: 11px;
}
.event-card {
  min-height: 176px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  background: #fff;
}
.date-tile {
  width: 72px;
  height: 96px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #ba274b;
  background: var(--rose-soft);
}
.date-tile span {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.date-tile b {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
}
.event-main > div:first-child {
  display: flex;
  gap: 5px;
}
.event-main h3 {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.event-main > p {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}
.event-main > p svg {
  width: 12px;
}
.event-routines {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.event-routines > span {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f1f3;
  font-size: 8px;
}
.event-routines small {
  color: var(--violet);
}
.avatar-stack {
  margin-top: 11px;
  display: flex;
  align-items: center;
}
.avatar-stack .avatar {
  margin-right: -7px;
}
.avatar-stack > small {
  margin-left: 13px;
  color: var(--muted);
  font-size: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgb(13 9 15 / 58%);
  backdrop-filter: blur(7px);
}
.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 35px 100px rgb(0 0 0 / 28%);
}
.modal-wide {
  width: min(1100px, 100%);
}
.modal-head {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 86px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(15px);
}
.modal-head h2 {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
.form-stack {
  padding: 24px;
  display: grid;
  gap: 15px;
}
.form-stack label,
.section-form label {
  display: grid;
  gap: 6px;
}
.form-stack label > span,
.section-form label {
  color: #625a65;
  font-size: 8px;
  font-weight: 800;
}
.form-stack input,
.form-stack select,
.form-stack textarea,
.section-form input,
.section-form select,
.cast-builder input {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  color: var(--ink);
  background: #fbfafb;
  font-size: 10px;
}
.form-stack textarea {
  padding: 11px;
  resize: vertical;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.field-wide {
  grid-column: span 2;
}
.field-full {
  grid-column: 1 / -1;
}
.modal-actions {
  position: sticky;
  bottom: -24px;
  margin: 8px -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
}
.routine-selector {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.routine-selector > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.routine-selector h3 {
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.routine-selector header p {
  color: var(--muted);
  font-size: 8px;
}
.routine-checks {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.routine-checks > label {
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.routine-checks b,
.routine-checks small {
  display: block;
}
.routine-checks b {
  font-size: 9px;
}
.routine-checks small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}
.cast-builder {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfafb;
}
.cast-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cast-builder-head > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.cast-builder-head > label {
  width: 210px;
}
.cast-member-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.cast-member-grid > div {
  min-height: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  background: #fff;
}
.cast-member-grid > div.selected {
  border-color: color-mix(in srgb, var(--violet) 42%, var(--line));
  background: color-mix(in srgb, var(--violet-soft) 45%, #fff);
}
.cast-member-grid label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.cast-member-grid .avatar {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}
.cast-member-grid b,
.cast-member-grid small {
  display: block;
}
.cast-member-grid b {
  font-size: 8px;
}
.cast-member-grid small {
  color: var(--muted);
  font-size: 6px;
}
.cast-member-grid > div > input {
  min-height: 31px;
  background: #fff;
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.routine-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.routine-open {
  width: 100%;
  min-height: 185px;
  padding: 15px;
  border: 0;
  display: grid;
  grid-template-columns: 118px 1fr auto;
  align-items: center;
  gap: 17px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.routine-art {
  height: 145px;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgb(255 255 255 / 22%), transparent 28%),
    linear-gradient(145deg, #a52b4a, #ef476f);
}
.routine-art.team-impulso {
  background:
    radial-gradient(circle at 80% 15%, rgb(255 255 255 / 22%), transparent 28%),
    linear-gradient(145deg, #41328d, #7257e8);
}
.routine-art svg {
  width: 32px;
  height: 32px;
}
.routine-art small {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.routine-open h2 {
  margin-top: 9px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.routine-open p {
  margin-top: 5px;
  color: var(--violet);
  font-size: 8px;
  font-weight: 800;
}
.routine-open > span:nth-child(2) > small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 8px;
}
.edit-routine {
  position: absolute;
  right: 14px;
  bottom: 12px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 7px;
  font-weight: 800;
}
.edit-routine svg {
  width: 11px;
}
.routine-tags {
  margin: -18px 0 15px;
  display: flex;
  gap: 5px;
}
.upload-button input {
  display: none;
}
.player {
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, rgb(114 87 232 / 27%), transparent 27%),
    radial-gradient(circle at 0 100%, rgb(239 71 111 / 22%), transparent 30%),
    #17131d;
  box-shadow: 0 24px 70px rgb(23 19 29 / 18%);
}
.player-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.album-art {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ef476f, #7257e8);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.player-head b,
.player-head small,
.player-head em {
  display: block;
}
.player-head small {
  color: #9f94a3;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.player-head b {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.player-head em {
  margin-top: 3px;
  color: #a79da9;
  font-size: 8px;
  font-style: normal;
}
.play-button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.waveform {
  width: 100%;
  height: 140px;
  margin-top: 22px;
  padding: 15px 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #8e8491;
  background: transparent;
  cursor: crosshair;
}
.waveform i {
  min-width: 1px;
  flex: 1;
  border-radius: 4px;
  background: #514950;
}
.waveform i.played {
  background: linear-gradient(#ff7898, #7257e8);
}
.waveform > span {
  margin: auto;
  font-size: 9px;
}
.transport {
  min-height: 50px;
  border-top: 1px solid rgb(255 255 255 / 9%);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.transport > span {
  color: #b4aab6;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}
.transport label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9f94a3;
  font-size: 8px;
}
.transport input {
  accent-color: var(--rose);
}
.transport b {
  min-width: 33px;
  color: #fff;
}
.section-groups {
  display: grid;
  gap: 14px;
  margin: 17px 0;
}
.section-groups > div > span {
  color: #9f94a3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-groups > div > div {
  margin-top: 7px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
}
.section-groups button {
  min-width: 150px;
  min-height: 55px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  cursor: pointer;
  text-align: left;
}
.section-groups button.active {
  border-color: var(--rose);
  background: rgb(239 71 111 / 18%);
}
.section-groups button span,
.section-groups button small {
  display: block;
}
.section-groups button span {
  grid-column: 1 / -1;
  font-size: 8px;
  font-weight: 800;
}
.section-groups button small {
  color: #a79da9;
  font-size: 7px;
}
.section-groups button svg {
  width: 11px;
  color: var(--rose);
}
.player > .secondary-button {
  border-color: rgb(255 255 255 / 13%);
  color: #fff;
  background: rgb(255 255 255 / 7%);
}
.section-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) auto auto;
  align-items: end;
  gap: 7px;
}
.section-form > input,
.section-form select,
.section-form label input {
  color: #fff;
  border-color: rgb(255 255 255 / 13%);
  background: rgb(255 255 255 / 7%);
}
.section-form label {
  color: #a79da9;
}
.section-form .primary-button {
  color: var(--ink);
  background: #fff;
}
.section-form .icon-button {
  color: #fff;
  border-color: rgb(255 255 255 / 13%);
  background: transparent;
}
.video-library {
  margin-top: 18px;
}
.video-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.video-grid article {
  min-width: 0;
}
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  background: #0e0d0f;
}
.video-grid b,
.video-grid small {
  display: block;
}
.video-grid b {
  margin-top: 7px;
  font-size: 10px;
}
.video-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.people-table {
  overflow: hidden;
}
.people-row {
  min-height: 62px;
  padding: 9px 17px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 0.7fr 0.7fr 0.6fr;
  align-items: center;
  gap: 12px;
  font-size: 8px;
}
.people-row:last-child {
  border: 0;
}
.people-head {
  min-height: 42px;
  color: #8e858f;
  background: #faf8f9;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.people-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.people-access .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.people-access .icon-button svg {
  width: 13px;
  height: 13px;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person-cell b,
.person-cell small {
  display: block;
}
.person-cell b {
  font-size: 9px;
}
.person-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
  text-transform: capitalize;
}
.membership-note {
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f4361;
  background: var(--violet-soft);
  font-size: 8px;
}

.payment-create {
  margin-bottom: 17px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.payment-create h2 {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.payment-create p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}
.payment-create form {
  display: flex;
  gap: 7px;
}
.payment-create input,
.payment-create select {
  min-height: 41px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fbfafb;
  font-size: 9px;
}
.payment-reminder {
  margin-bottom: 15px;
  padding: 17px;
  border: 1px solid #f2cf91;
  border-radius: 15px;
  display: flex;
  gap: 12px;
  color: #815115;
  background: var(--gold-soft);
}
.payment-reminder b {
  font-size: 10px;
}
.payment-reminder p {
  margin-top: 3px;
  font-size: 8px;
}
.payment-table {
  overflow: hidden;
}
.payment-table > div {
  min-height: 66px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto 130px;
  align-items: center;
  gap: 11px;
}
.payment-table > div:last-child {
  border: 0;
}
.payment-table b,
.payment-table small {
  display: block;
}
.payment-table b {
  font-size: 9px;
}
.payment-table small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}
.payment-table strong {
  font-size: 9px;
}
.status-select {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 800;
}
.status-paid {
  color: var(--sage);
  background: var(--sage-soft);
}
.status-due {
  color: var(--gold);
  background: var(--gold-soft);
}
.status-unrecorded,
.status-waived {
  color: var(--muted);
  background: #f0edef;
}

.announcements-layout {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}
.compact-form {
  padding-top: 18px;
}
.announcement-feed {
  display: grid;
  gap: 10px;
}
.announcement-feed article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  background: #fff;
}
.announcement-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: var(--rose-soft);
}
.announcement-feed article > div > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.announcement-feed b {
  font-size: 10px;
}
.announcement-feed p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.announcement-feed small {
  display: block;
  margin-top: 9px;
  color: #a49ca6;
  font-size: 7px;
}

.student-hero {
  min-height: 310px;
  margin-bottom: 18px;
  padding: 34px;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgb(114 87 232 / 45%), transparent 29%),
    radial-gradient(circle at 0 100%, rgb(239 71 111 / 30%), transparent 33%),
    #17131d;
  box-shadow: 0 24px 60px rgb(23 19 29 / 16%);
}
.student-hero > div > span:not(.pill) {
  display: block;
  margin-top: 22px;
  color: #c0b5c1;
  font-size: 10px;
}
.student-hero h2 {
  margin-top: 6px;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 500;
}
.student-hero p {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c0b5c1;
  font-size: 9px;
}
.student-hero .light-button {
  margin-top: 24px;
}
.student-hero aside {
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 19px;
  background: rgb(255 255 255 / 6%);
}
.student-hero aside > span {
  color: #a79da9;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.student-hero aside > div {
  margin-top: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}
.student-hero aside b,
.student-hero aside small {
  display: block;
}
.student-hero aside b {
  font-size: 10px;
}
.student-hero aside small {
  margin-top: 3px;
  color: #a79da9;
  font-size: 8px;
}
.student-columns {
  grid-template-columns: 1fr 1fr;
}
.class-list,
.due-list {
  padding: 10px 18px;
}
.class-list > div,
.due-list > button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  text-align: left;
}
.due-list > button {
  cursor: pointer;
}
.class-list b,
.class-list small,
.due-list b,
.due-list small {
  display: block;
}
.class-list b,
.due-list b {
  font-size: 9px;
}
.class-list small,
.due-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}
.class-list > div > svg,
.due-list > button > svg:first-child {
  width: 33px;
  height: 33px;
  padding: 8px;
  border-radius: 10px;
  color: var(--violet);
  background: var(--violet-soft);
}
.due-list > button > svg:first-child {
  color: var(--gold);
  background: var(--gold-soft);
}
.announcement-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.announcement-strip article {
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-subscribe {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 19px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: var(--ink);
}
.calendar-subscribe > div {
  min-width: 0;
}
.calendar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--violet));
}
.calendar-subscribe b {
  font-size: 11px;
}
.calendar-subscribe p {
  margin-top: 4px;
  color: #a79da9;
  font-size: 8px;
}
.calendar-subscribe code {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  overflow: hidden;
  color: #d0c5d1;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-subscribe > div:last-child {
  display: grid;
  gap: 6px;
}
.calendar-subscribe .secondary-button {
  min-height: 35px;
  border-color: rgb(255 255 255 / 12%);
  color: #fff;
  background: rgb(255 255 255 / 7%);
}
.calendar-section {
  margin-top: 30px;
}
.calendar-section > header {
  margin-bottom: 15px;
}
.student-class-grid {
  grid-template-columns: repeat(2, 1fr);
}
.student-class-grid article > a {
  margin-top: 20px;
}
.student-event-list {
  display: grid;
  gap: 13px;
}
.student-event-list > article {
  border-radius: 19px;
  background: #fff;
}
.student-event-list .event-card {
  border-radius: 19px 19px 0 0;
}
.google-calendar-link {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 19px 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--rose);
  text-decoration: none;
  font-size: 8px;
  font-weight: 800;
}
.google-calendar-link svg {
  width: 12px;
}

.track-picker {
  margin-bottom: 15px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.track-picker button {
  min-width: 210px;
  min-height: 61px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.track-picker button.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}
.track-picker b,
.track-picker small {
  display: block;
}
.track-picker b {
  font-size: 9px;
}
.track-picker small {
  margin-top: 3px;
  color: #8f8791;
  font-size: 7px;
}

.profile-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.profile-identity {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgb(114 87 232 / 40%), transparent 30%),
    var(--ink);
}
.profile-identity .avatar {
  width: 55px;
  height: 55px;
  border-radius: 15px;
  font-size: 13px;
}
.profile-identity b,
.profile-identity small {
  display: block;
}
.profile-identity b {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.profile-identity small {
  margin: 3px 0 7px;
  color: #a79da9;
  font-size: 8px;
}
.form-stack label > small {
  color: var(--muted);
  font-size: 7px;
}
.profile-security {
  padding: 13px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  color: #514763;
  background: var(--violet-soft);
}
.profile-security b,
.profile-security small {
  display: block;
}
.profile-security b {
  font-size: 9px;
}
.profile-security small {
  margin-top: 2px;
  font-size: 7px;
}

.login-page,
.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgb(255 214 214 / 16%), transparent 29%),
    radial-gradient(circle at 84% 82%, rgb(219 234 255 / 13%), transparent 27%),
    #050505;
}
.login-page {
  padding: 35px 18px;
}
.login-card {
  width: min(525px, 100%);
  padding: 42px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 29px;
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 30px 100px rgb(0 0 0 / 30%);
  backdrop-filter: blur(24px);
}
.login-card .brand-lockup {
  padding: 0 0 30px;
}
.login-card .brand-lockup img {
  width: 205px;
}
.login-card > .pill {
  color: #ff9ab0;
  background: rgb(239 71 111 / 14%);
}
.login-card h1 {
  margin-top: 20px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 8vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.login-card h1 em {
  color: var(--rose-soft);
  font-weight: 400;
}
.login-card > p {
  margin-top: 18px;
  color: #b9aebb;
  font-size: 12px;
}
.google-button {
  min-height: 52px;
  margin-top: 26px;
  padding: 0 15px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.google-button > span {
  color: #4285f4;
  font-size: 15px;
  font-weight: 900;
}
.google-button svg {
  margin-left: auto;
}
.dev-entry {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 9%);
}
.dev-entry > span {
  color: #8f8791;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dev-entry > div {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.dev-entry button {
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: rgb(255 255 255 / 6%);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.login-card > small {
  display: block;
  margin-top: 20px;
  color: #776f79;
  font-size: 7px;
  text-align: center;
}
.auth-message,
.error-banner {
  padding: 12px;
  border-radius: 10px;
  color: #f3d3a4;
  background: rgb(183 104 24 / 14%);
  font-size: 8px;
}
.auth-message {
  margin-top: 16px;
}
.error-banner {
  position: fixed;
  z-index: 80;
  top: 84px;
  right: 18px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.error-banner button {
  border: 0;
  color: inherit;
  background: transparent;
}
.splash img {
  width: min(270px, 65vw);
  filter: invert(1) brightness(1.5);
}

@media (max-width: 1050px) {
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column,
  .announcements-layout {
    grid-template-columns: 1fr;
  }
  .cast-member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-create {
    grid-template-columns: 1fr;
  }
  .payment-create form {
    flex-wrap: wrap;
  }
  .announcement-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    width: min(290px, 86vw);
    transform: translateX(-102%);
    transition: transform 190ms ease;
    box-shadow: 25px 0 70px rgb(0 0 0 / 35%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgb(15 10 17 / 48%);
  }
  .mobile-close {
    display: grid;
    position: absolute;
    top: 13px;
    right: 13px;
    color: #fff;
    border-color: rgb(255 255 255 / 10%);
    background: rgb(255 255 255 / 7%);
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .page-content {
    padding: 34px 16px 70px;
  }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .page-actions,
  .page-actions > button,
  .page-actions > .button-row {
    width: 100%;
  }
  .page-actions > .button-row > * {
    flex: 1;
  }
  .class-grid,
  .routine-grid,
  .student-class-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }
  .event-card > .icon-button {
    position: absolute;
    right: 30px;
  }
  .date-tile {
    width: 62px;
  }
  .field-grid,
  .field-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide,
  .field-full {
    grid-column: 1 / -1;
  }
  .routine-checks {
    grid-template-columns: 1fr;
  }
  .student-hero {
    grid-template-columns: 1fr;
  }
  .calendar-subscribe {
    grid-template-columns: auto 1fr;
  }
  .calendar-subscribe > div:last-child {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
  .people-table {
    overflow-x: auto;
  }
  .people-row {
    min-width: 760px;
  }
  .section-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fact-grid button {
    min-height: 112px;
    padding: 15px;
  }
  .announcement-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .announcement-grid article {
    min-height: 105px;
  }
  .field-grid,
  .field-grid-3 {
    grid-template-columns: 1fr;
  }
  .field-wide,
  .field-full {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }
  .modal {
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
  }
  .cast-member-grid {
    grid-template-columns: 1fr;
  }
  .cast-builder-head {
    align-items: stretch;
    flex-direction: column;
  }
  .cast-builder-head > label {
    width: 100%;
  }
  .routine-selector > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .routine-open {
    grid-template-columns: 88px 1fr;
  }
  .routine-open > svg {
    display: none;
  }
  .routine-art {
    height: 118px;
  }
  .routine-open h2 {
    font-size: 19px;
  }
  .button-row {
    flex-direction: column;
  }
  .player {
    padding: 18px 14px;
  }
  .player-head {
    grid-template-columns: auto 1fr;
  }
  .player-head .play-button {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
    border-radius: 11px;
  }
  .waveform {
    height: 100px;
  }
  .transport {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }
  .transport label {
    width: 100%;
  }
  .transport input {
    flex: 1;
  }
  .section-form {
    grid-template-columns: 1fr;
  }
  .student-hero {
    padding: 25px 20px;
  }
  .student-hero h2 {
    font-size: 30px;
  }
  .calendar-subscribe {
    grid-template-columns: 1fr;
  }
  .calendar-subscribe > div:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .payment-create form {
    display: grid;
  }
  .payment-table > div {
    grid-template-columns: auto 1fr auto;
  }
  .payment-table > div > select,
  .payment-table > div > .pill {
    grid-column: 2 / -1;
  }
  .login-card {
    padding: 30px 22px;
  }
  .dev-entry > div {
    grid-template-columns: 1fr;
  }
}
