:root {
  --ink: #243047;
  --muted: #667085;
  --sky: #54b8d0;
  --rose: #ff2733;
  --gold: #f5c542;
  --green: #2fbd57;
  --panel: rgba(255, 255, 255, .96);
  --line: #d6dee8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(84, 184, 208, .18), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(245, 197, 66, .2), transparent 30%),
    #fffdf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.parent-auth-gate {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  background: transparent;
}

.parent-auth-gate::backdrop {
  background: rgba(31, 42, 68, .78);
}

.parent-auth-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 3px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 0 rgba(31, 42, 68, .18);
}

.parent-auth-card h1,
.parent-auth-card p {
  margin: 0;
}

.parent-auth-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f7fb;
  color: #08758c;
  font-size: 28px;
}

.parent-auth-form {
  display: grid;
  gap: 12px;
}

.parent-auth-form[hidden] {
  display: none;
}

.parent-auth-form label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-auth-form input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 2px solid #ccd8e4;
  border-radius: 6px;
  padding: 10px 12px;
  color: #1f2a44;
  background: #fff;
  font: inherit;
  text-transform: none;
}

.parent-auth-link {
  justify-self: start;
  border: 0;
  padding: 4px 0;
  color: #08758c;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
}

.parent-auth-status {
  min-height: 22px;
  color: #a5202a;
  font-weight: 800;
}

.parent-logout {
  align-self: start;
  border: 2px solid #ccd8e4;
  border-radius: 6px;
  padding: 9px 12px;
  color: #1f2a44;
  background: #fff;
  font-weight: 900;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.parent-shell {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.parent-hero,
.account-band,
.student-profile-card,
.parent-action-card,
.dashboard-card {
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 7px 0 rgba(35, 48, 71, .12);
}

.parent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: end;
  min-height: 330px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .58)),
    url("../app/assets/registration/alchemy-art-tower-confirmation-bg.png"),
    linear-gradient(135deg, #eafaff, #fff1bc);
  background-size: cover;
  background-position: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

p {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.hero-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
}

.hero-card > span,
.dashboard-card > header > span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 1.3rem;
}

.dashboard-card > header > span.has-photo {
  overflow: hidden;
  border: 3px solid rgba(84, 184, 208, .35);
  background: #fff;
}

.dashboard-card > header > span.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card strong {
  font-size: 1.2rem;
}

.account-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.family-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.family-copy h2,
.family-copy p {
  margin: 0;
}

.family-copy h2 {
  margin-top: 2px;
}

.parent-avatar-panel {
  position: relative;
  display: contents;
}

.parent-avatar-panel .parent-avatar-button {
  grid-column: 1;
  grid-row: 1;
}

.parent-avatar-panel .parent-avatar-tip {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.parent-avatar-panel small {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  max-width: 180px;
}

.family-copy {
  grid-column: 2;
}

.student-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.parent-avatar-tip {
  position: relative;
  display: grid;
  max-width: 190px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 9px 10px 9px 38px;
  background: #fff9dc;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  animation: tipNudge 1.8s ease-in-out infinite;
}

.parent-avatar-tip.is-pending {
  border-color: #b8c2cc;
  background: #f3f6f9;
  animation: none;
}

.parent-avatar-tip span {
  position: absolute;
  left: 8px;
  top: 10px;
  color: #b07800;
}

.parent-avatar-tip.is-pending span {
  color: #667085;
}

.parent-avatar-tip strong,
.parent-avatar-tip p,
.parent-avatar-panel small {
  margin: 0;
  font-size: .74rem;
  line-height: 1.25;
}

.parent-avatar-tip p,
.parent-avatar-panel small {
  color: #765600;
  font-weight: 850;
}

.parent-avatar-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 3px dashed var(--gold);
  border-radius: 999px;
  color: #b07800;
  background: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
}

.parent-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-account-route-error {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 2px solid #a51f2b;
  border-radius: 8px;
  padding: 18px;
  color: #243247;
  background: #fff2f3;
}

.parent-account-route-error > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: #a51f2b;
  font-size: 1.2rem;
}

.parent-account-route-error h2,
.parent-account-route-error p { margin: 0; }

.parent-admin-test-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  border: 2px solid #111827;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  background: #0b1220;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}

.parent-owner-mode-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border: 2px solid #a51f2b;
  border-radius: 10px;
  padding: 12px 14px;
  color: #243247;
  background: #fff7f8;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.parent-owner-mode-bar[hidden] { display: none; }

.parent-owner-mode-bar > div,
.parent-owner-mode-bar > div > p,
.owner-parent-edit-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.parent-owner-mode-bar > div > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #a51f2b;
}

.parent-owner-mode-bar > div > p {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.parent-owner-mode-bar small { color: #697487; font-weight: 800; }

.owner-parent-edit-toggle { cursor: pointer; font-weight: 950; }
.owner-parent-edit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.owner-parent-edit-toggle > span {
  position: relative;
  width: 52px;
  height: 30px;
  border: 2px solid #c7cdd5;
  border-radius: 999px;
  background: #dfe3e8;
  transition: background .18s ease, border-color .18s ease;
}
.owner-parent-edit-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(35, 48, 71, .28);
  transition: transform .18s ease;
}
.owner-parent-edit-toggle input:checked + span { border-color: #a51f2b; background: #c92535; }
.owner-parent-edit-toggle input:checked + span::after { transform: translateX(22px); }
.owner-parent-edit-toggle input:focus-visible + span { outline: 3px solid #53b6d2; outline-offset: 3px; }
.parent-owner-mode-bar.is-editing { color: #fff; background: #8f1f28; }
.parent-owner-mode-bar.is-editing small { color: #ffe5e8; }
.parent-owner-mode-bar.needs-attention { animation: ownerModeNudge .35s ease 2; }
.owner-parent-view-only .parent-admin-test-bar { opacity: .62; }

@keyframes ownerModeNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@media (max-width: 720px) {
  .parent-owner-mode-bar { align-items: flex-start; flex-direction: column; }
}

.parent-admin-test-bar[hidden] {
  display: none;
}

.parent-admin-test-bar strong,
.admin-test-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.parent-admin-test-bar strong {
  margin-right: auto;
  text-transform: uppercase;
}

.admin-test-control span {
  color: #cbd5e1;
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-admin-test-bar button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: #e5edf8;
  background: #334155;
  font-weight: 950;
}

.parent-admin-test-bar button.is-active {
  color: #111827;
  background: #ffd84d;
}

.parent-admin-test-bar [data-admin-test-reset] {
  color: #fff;
  background: #ef3f5f;
}

.parent-admin-test-bar.has-preview {
  border-color: #ffd84d;
}

@keyframes tipNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.student-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-chip,
.return-options button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--sky);
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .16);
}

.student-chip {
  min-height: 58px;
  padding: 6px 18px 6px 8px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
}

.student-chip-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 3px solid rgba(84, 184, 208, .35);
  border-radius: 999px;
  background: #e8f8ff;
  color: #08718a;
  font-size: .9rem;
  font-weight: 950;
}

.student-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 2px solid rgba(84, 184, 208, .35);
  border-radius: 999px;
  background: #e8f8ff;
  color: #08718a;
  font-size: .78rem;
  font-weight: 950;
}

.student-chip-avatar img,
.student-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-chip.is-active {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.student-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: 16px;
  margin-top: 18px;
}

.parent-action-dock {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 10px;
  border: 3px solid rgba(84, 184, 208, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 0 rgba(35, 48, 71, .1);
  backdrop-filter: blur(10px);
}

.dock-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.dock-action.is-billing {
  background: var(--rose);
}

.dock-action.is-schedule {
  background: var(--green);
}

.dock-action.is-schedule.is-frozen {
  background: #1d9ed0;
}

.dock-action.is-progress {
  background: #7c4dff;
}

.dock-action em {
  position: absolute;
  top: -8px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: var(--rose);
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.dock-action em[hidden] {
  display: none !important;
}

.student-profile-card,
.parent-action-card {
  padding: 18px;
}

.student-profile-card header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.student-avatar.large {
  width: 86px;
  height: 86px;
  border-width: 4px;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  font-size: 1.2rem;
}

.student-profile-card h2 {
  margin-bottom: 8px;
}

.student-badge-row,
.parent-action-buttons,
.billing-action-row,
.notice-filter-row,
.message-category-row,
.return-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-badge.is-foundations {
  background: #e93d81;
}

.profile-badge.is-creatives {
  background: #27b857;
}

.profile-badge.is-skills {
  background: #18a8c7;
}

.profile-badge.is-digital {
  background: #e42334;
}

.profile-badge.is-atelier {
  background: #101828;
}

.profile-badge.is-private {
  background: #7c4dff;
}

.profile-badge.is-neutral {
  background: #667085;
}

.student-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.student-overview-grid > div {
  min-width: 0;
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.student-overview-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.student-overview-grid span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.class-with-teacher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.teacher-mini-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid rgba(84, 184, 208, .45);
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.teacher-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-action-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border-color: rgba(255, 39, 51, .42);
  background: #fff7fb;
}

.parent-action-card > strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.parent-workflow-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.parent-workflow-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 2px solid #f6d1df;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-action-buttons button,
.parent-action-buttons a,
.notice-filter-row button,
.message-category-row button {
  min-height: 36px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
  text-decoration: none;
}

.parent-action-buttons button,
.parent-action-buttons a {
  color: #fff;
  border-color: var(--sky);
  background: var(--sky);
}

.parent-action-buttons button.is-unfreeze {
  border-color: #6ec8f2;
  background: #1d9ed0;
}

.notice-filter-row,
.message-category-row {
  margin: 4px 0 12px;
}

.teacher-message-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fbfd;
}

.teacher-message-route > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  color: #08718a;
  background: #e7f8fd;
}

.teacher-message-route > span.has-photo {
  border: 2px solid rgba(84, 184, 208, .45);
  background: #fff;
}

.teacher-message-route > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-message-route strong,
.teacher-message-route small {
  display: block;
}

.teacher-message-route small {
  color: var(--muted);
  font-weight: 850;
}

.notice-filter-row button.is-active,
.message-category-row button.is-active {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.dashboard-card {
  grid-column: span 6;
  padding: 18px;
}

.billing-side-column {
  display: grid;
  grid-column: span 5;
  gap: 16px;
  align-content: start;
}

.billing-side-column[hidden] {
  display: none;
}

.billing-side-column .dashboard-card {
  grid-column: 1 / -1;
}

.billing-card,
.message-card {
  grid-column: span 7;
}

.return-card,
.payment-card,
.approvals-card,
.notices-card {
  grid-column: span 5;
}

.dashboard-card > header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-tile,
.square-status,
.return-preview,
.payment-method-item,
.payment-request-status,
.approval-item,
.notice-item,
.message-bubble,
.mini-row {
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.summary-tile {
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.summary-tile.is-admin-preview {
  border-color: #ffd84d;
  background: #fff9dc;
}

.summary-tile.is-good {
  border-color: rgba(36, 190, 91, .45);
  background: #f0fff5;
}

.summary-tile.is-warning {
  border-color: rgba(255, 191, 36, .75);
  background: #fff8db;
}

.summary-tile strong {
  display: block;
  font-size: 1.55rem;
  overflow-wrap: anywhere;
}

.square-customer-tile strong {
  font-size: .95rem;
  line-height: 1.2;
  word-break: break-all;
}

.parent-billing-lifecycle {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 2px solid rgba(84, 184, 208, .35);
  border-radius: 12px;
  background: #f3fbff;
  padding: 14px;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .08);
}

.parent-square-credit-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 2px solid rgba(36, 190, 91, .45);
  border-radius: 12px;
  background: #f0fff5;
  padding: 14px;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .08);
}

.parent-square-credit-note > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #dff8e7;
  color: #147a38;
  font-size: 1.2rem;
}

.parent-square-credit-note.needs-visibility {
  border-color: rgba(245, 197, 66, .62);
  background: #fff8dc;
}

.parent-square-credit-note.needs-visibility > span {
  background: #ffefb8;
  color: #8a6200;
}

.parent-square-credit-note h3,
.parent-square-credit-note p {
  margin: 0;
}

.parent-square-credit-note h3 {
  color: #233047;
  font-size: 1.25rem;
  font-weight: 950;
}

.parent-square-credit-note p,
.parent-square-credit-note em,
.parent-square-credit-note small {
  color: #657188;
  font-weight: 850;
}

.parent-square-credit-note em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 2px;
  border-radius: 999px;
  background: rgba(44, 190, 92, .12);
  color: #147a38;
  font-size: .78rem;
  font-style: normal;
  padding: 6px 10px;
  overflow-wrap: anywhere;
}

.parent-billing-lifecycle header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.parent-billing-lifecycle header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 1.1rem;
}

.parent-billing-lifecycle h3 {
  margin: 0;
  color: #233047;
  font-size: 1.25rem;
  font-weight: 950;
}

.parent-billing-lifecycle-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.parent-billing-lifecycle-steps article {
  display: grid;
  gap: 5px;
  border: 2px solid #d9e3ee;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #657188;
}

.parent-billing-lifecycle-steps article.is-active {
  border-color: rgba(255, 191, 36, .8);
  background: #fff9dc;
  color: #7a5200;
}

.parent-billing-lifecycle-steps article.is-done {
  border-color: rgba(36, 190, 91, .45);
  background: #f0fff5;
  color: #147a38;
}

.parent-billing-lifecycle-steps article.is-done.is-active {
  border-color: #1594b3;
  background: #e8f8ff;
  color: #0f6d83;
  box-shadow: 0 0 0 3px rgba(21, 148, 179, .12);
}

.parent-billing-lifecycle-steps i {
  font-size: 1rem;
}

.parent-billing-lifecycle-steps strong,
.parent-billing-lifecycle-steps span {
  display: block;
}

.parent-billing-lifecycle-steps strong {
  color: #233047;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-billing-lifecycle-steps span {
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.25;
}

.invoice-alert-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 3px solid #ff2a32;
  border-radius: 12px;
  padding: 14px;
  background: #fff2f2;
  box-shadow: 0 5px 0 rgba(255, 42, 50, .16);
}

.frozen-account-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 3px solid #66c7ea;
  border-radius: 12px;
  padding: 14px;
  background: #ecfbff;
  box-shadow: 0 5px 0 rgba(102, 199, 234, .2);
}

.frozen-account-banner > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #08718a;
  background: #fff;
  font-size: 1.35rem;
}

.frozen-account-banner h3,
.frozen-account-banner p {
  margin: 0;
}

.frozen-account-banner p {
  color: #326577;
  font-weight: 850;
}

.frozen-account-banner strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #07566b;
  background: #c9f3ff;
  font-size: .8rem;
  text-transform: uppercase;
}

.frozen-account-banner button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: #20a6d1;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.invoice-alert-card h3,
.invoice-alert-card p {
  margin: 0;
}

.invoice-alert-card h3 {
  font-size: 1.25rem;
}

.invoice-alert-card p,
.invoice-alert-card small {
  color: #6f3333;
  font-weight: 850;
}

.invoice-alert-card > div:first-child > strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ff2a32;
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
}

.invoice-alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.invoice-alert-actions a,
.invoice-alert-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  background: var(--sky);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.invoice-alert-actions a {
  background: var(--red);
}

.invoice-alert-actions a.is-disabled {
  pointer-events: none;
  border: 2px solid #ff2a32;
  color: #7a1d1d;
  background: #ffe4e8;
  opacity: 1;
}

.invoice-alert-actions button:last-child {
  background: #667085;
}

.summary-tile span,
.mini-row span,
.return-preview span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.square-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border-color: rgba(245, 197, 66, .75);
  background: #fff8d9;
}

.square-status i {
  color: #b07800;
  font-size: 1.25rem;
}

.billing-action-row {
  margin: 8px 0;
}

.billing-action-row span,
.return-step-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff;
  color: #475467;
  font-size: .74rem;
  font-weight: 950;
}

.mini-table,
.approval-list,
.student-progress-panel,
.notice-list,
.message-thread {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-grid.is-tabbed {
  align-items: start;
}

.dashboard-grid.is-tabbed .dashboard-card[hidden] {
  display: none;
}

.dashboard-grid.is-tabbed .dashboard-card:not([hidden]) {
  grid-column: span 12;
}

.dashboard-grid.is-tabbed .billing-card:not([hidden]) {
  grid-column: span 7;
}

.dashboard-grid.is-tabbed .payment-card:not([hidden]) {
  grid-column: 1 / -1;
}

.dashboard-grid.is-tabbed .market-orders-card:not([hidden]) {
  grid-column: 1 / -1;
}

.dashboard-grid.is-tabbed .discrown-card:not([hidden]) {
  grid-column: 1 / -1;
}

.dashboard-grid.is-tabbed .billing-side-column:not([hidden]) {
  grid-column: span 5;
}

.dashboard-grid.is-tabbed .payment-card.is-before-discrowns:not([hidden]) {
  order: 1;
}

.dashboard-grid.is-tabbed .discrown-card.is-after-payment:not([hidden]) {
  order: 2;
}

.dashboard-grid.is-tabbed .discrown-card:not(.is-after-payment):not([hidden]) {
  order: 1;
}

.dashboard-grid.is-tabbed .payment-card:not(.is-before-discrowns):not([hidden]) {
  order: 2;
}

.parent-action-dock .dock-action.is-active {
  outline: 3px solid rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 12px;
}

.status-pill,
.source-pill,
.approval-item em,
.notice-item em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e7f8fd;
  color: #08718a;
  font-size: .75rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.source-pill {
  margin-left: 8px;
  background: #f1f5f9;
  color: #475467;
}

.status-pill.is-warning {
  background: #fff1c4;
  color: #856000;
}

.status-pill.is-good {
  background: #dcfce7;
  color: #0f7a33;
}

.return-options {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.return-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-filter-group button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 5px 14px 5px 6px;
}

.schedule-teacher-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 2px solid rgba(84, 184, 208, .5);
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: .78rem;
}

.schedule-teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  background: #f8fbfd;
}

.schedule-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.schedule-status-grid article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 74px;
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.schedule-status-grid article.is-good {
  border-color: #bbf7d0;
  background: #f0fff4;
}

.schedule-status-grid article.is-warning {
  border-color: #ffe08a;
  background: #fff9df;
}

.schedule-status-grid article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #08718a;
  background: #e7f8fd;
}

.schedule-status-grid strong,
.schedule-status-grid small {
  display: block;
}

.schedule-status-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-status-grid small,
.schedule-mode-note {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.schedule-mode-note {
  margin: 0;
}

.return-options button {
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
}

.return-options button.is-active {
  color: #fff;
  border-color: var(--sky);
  background: var(--sky);
}

.schedule-command-row button[data-schedule-action="makeup"].is-active {
  border-color: #f59e0b;
  background: #f59e0b;
}

.makeup-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 2px solid #f7c46a;
  border-radius: 12px;
  padding: 8px;
  background: #fff8e8;
}

.makeup-mode-switch button {
  min-height: 40px;
}

.makeup-mode-switch button.is-active {
  color: #fff;
  border-color: #f59e0b;
  background: #f59e0b;
}

.pre-absence-fields {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(240px, 1fr);
  gap: 10px;
  border: 2px solid #f7c46a;
  border-radius: 12px;
  padding: 12px;
  background: #fffdf4;
}

.pre-absence-fields label {
  display: grid;
  gap: 7px;
  color: #765600;
  font-size: .8rem;
  font-weight: 950;
}

.pre-absence-fields input,
.pre-absence-fields textarea {
  width: 100%;
  border: 2px solid #f3d45f;
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
}

.note-field[hidden] {
  display: none !important;
}

.return-card #returnDateField,
.return-card #returnNoteField {
  display: grid;
  gap: 9px;
  border: 3px solid #8bd3ee;
  border-radius: 12px;
  padding: 14px;
  background: #eefbff;
  color: #07566b;
  font-size: 1rem;
  font-weight: 950;
}

.return-card #returnDateField input,
.return-card #returnNoteField textarea {
  width: 100%;
  border: 2px solid #9bd8eb;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.return-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.schedule-closure-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.schedule-closure-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.schedule-closure-card.is-teacher-closure {
  border-color: #a7d8ff;
  background: #f1f9ff;
}

.schedule-closure-card > span,
.schedule-closure-card img {
  display: grid;
  place-items: center;
  width: 76px;
  height: 58px;
  border-radius: 8px;
  color: #08718a;
  background: #e7f8fd;
  object-fit: cover;
}

.schedule-closure-card p {
  margin: 4px 0 0;
}

.schedule-closure-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #07566b;
  background: #d8f4ff;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
}

.return-request-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
}

.return-request-status small,
.payment-request-status small,
.field-note {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.return-class-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.return-class-card {
  display: grid;
  gap: 8px;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.return-class-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.return-class-card header span {
  color: #08718a;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.return-class-card p {
  margin-bottom: 0;
  color: var(--ink);
}

.return-class-card button,
.schedule-primary-action,
.payment-method-actions button,
.payment-method-item button {
  width: fit-content;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--sky);
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.return-class-card button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.return-class-card.is-full {
  opacity: .72;
  background: #f7f8fa;
}

.return-class-card.is-full button {
  background: #667085;
}

.return-class-card.is-selected {
  border-color: #20af62;
  background: #f0fff6;
  box-shadow: inset 0 0 0 2px rgba(32, 175, 98, .12);
}

.schedule-unavailable-panel,
.schedule-choice-panel,
.schedule-choice-submit {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfd;
}

.schedule-unavailable-panel > span {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff3d2;
  color: #9a6500;
  font-size: 1.25rem;
}

.schedule-unavailable-panel p,
.schedule-unavailable-panel small,
.schedule-choice-panel span,
.schedule-choice-submit span {
  color: var(--muted);
}

.schedule-choice-panel {
  justify-content: space-between;
  margin-top: 12px;
}

.schedule-choice-intent {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-choice-intent button,
.schedule-choice-submit button {
  min-height: 38px;
  border: 2px solid #cbd8e5;
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.schedule-choice-intent button.is-active,
.schedule-choice-submit button {
  border-color: #20af62;
  background: #20af62;
  color: #fff;
}

.schedule-choice-submit {
  justify-content: space-between;
  margin-top: 12px;
}

.schedule-choice-submit button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.return-step-list {
  align-items: center;
  margin-top: 10px;
}

.return-step-list .return-teacher-chip {
  min-height: 86px;
  max-width: 270px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(84, 184, 208, .22);
  border-radius: 999px;
  background: #eefaff;
  color: var(--ink);
}

.return-teacher-chip .schedule-teacher-avatar {
  width: 75px;
  height: 75px;
  border-color: rgba(255, 39, 51, .26);
  background: #fff;
}

.return-teacher-chip strong {
  min-width: 0;
  font-size: .82rem;
  line-height: 1.05;
}

.schedule-policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.schedule-policy-strip article {
  display: grid;
  gap: 5px;
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.schedule-policy-strip i {
  color: #0f6d83;
}

.schedule-policy-strip strong,
.schedule-policy-strip span {
  display: block;
}

.schedule-policy-strip span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.note-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-method-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.payment-method-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.payment-method-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.payment-method-item strong,
.payment-method-item small {
  display: block;
}

.payment-method-item small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.payment-method-item.is-empty {
  grid-template-columns: auto minmax(0, 1fr);
}

.payment-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-method-actions button:first-child {
  background: var(--green);
}

.payment-method-item button {
  background: var(--rose);
}

.payment-request-status {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-color: rgba(47, 189, 87, .35);
  background: #f0fff5;
}

.payment-discrown-slot,
.payment-card-file-slot {
  display: grid;
  gap: 10px;
}

.payment-card-file-slot {
  border: 2px solid #d9e3ed;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.discrown-apply-card {
  display: grid;
  gap: 10px;
  border: 3px solid var(--gold);
  border-radius: 12px;
  padding: 14px;
  background: #fff9dc;
  box-shadow: 0 5px 0 rgba(245, 197, 66, .22);
}

.discrown-apply-card.is-locked {
  background: #fffdf0;
}

.discrown-apply-card header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.discrown-apply-card header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #fff;
  color: #b07800;
  font-size: 1.25rem;
}

.discrown-apply-card h3,
.discrown-apply-card p {
  margin: 0;
}

.discrown-apply-card p,
.discrown-apply-card li {
  color: #765600;
  font-size: .82rem;
  font-weight: 850;
}

.discrown-lock-note {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 2px solid #f3d45f;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: #765600;
  font-size: .82rem;
  font-weight: 950;
}

.discrown-lock-note.is-exception {
  border-color: rgba(36, 190, 91, .42);
  background: #f1fff5;
  color: #167344;
}

.discrown-apply-card.has-owner-exception {
  border-color: #79d889;
  background: #f8fff4;
}

.no-card-exception-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px dashed #cbd7e4;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbfd;
}

.no-card-exception-panel.is-active {
  border-style: solid;
  border-color: rgba(36, 190, 91, .48);
  background: #f1fff5;
}

.no-card-exception-panel > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.no-card-exception-panel.is-active > span {
  background: #dff9e8;
  color: #167344;
}

.no-card-exception-panel strong,
.no-card-exception-panel small {
  display: block;
}

.no-card-exception-panel small {
  color: #647086;
  font-size: .76rem;
  font-weight: 850;
}

.no-card-exception-panel button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: #0f6d83;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.no-card-exception-panel.is-active button {
  background: #6b7280;
}

.payment-follow-up-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 2px solid #d9e3ed;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbfd;
}

.payment-follow-up-note > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.payment-follow-up-note strong,
.payment-follow-up-note small {
  display: block;
}

.payment-follow-up-note small {
  color: #647086;
  font-size: .78rem;
  font-weight: 850;
}

.payment-follow-up-note.status-replacement_grace {
  border-color: rgba(84, 184, 208, .46);
  background: #f0fbff;
}

.payment-follow-up-note.status-not_continuing {
  border-color: rgba(255, 39, 51, .42);
  background: #fff1f2;
}

.payment-follow-up-note.status-not_continuing > i {
  background: #ffe4e6;
  color: #be123c;
}

.discrown-stepper {
  display: grid;
  grid-template-columns: 38px 56px 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.discrown-stepper button,
.discrown-actions > button {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.discrown-stepper button:disabled,
.discrown-actions > button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.discrown-stepper strong {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 2px solid #f3d45f;
  border-radius: 999px;
  background: #fff;
  font-size: 1.1rem;
}

.discrown-stepper span {
  color: #765600;
  font-size: .8rem;
  font-weight: 950;
}

.discrown-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.discrown-actions > button {
  padding: 0 12px;
  background: var(--green);
}

.discrown-actions details {
  border: 2px solid #f3d45f;
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
}

.discrown-actions summary {
  cursor: pointer;
  color: #765600;
  font-weight: 950;
  list-style: none;
}

.discrown-actions summary::-webkit-details-marker {
  display: none;
}

.discrown-actions ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid #cfd8e3;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.approval-item,
.notice-item {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.approval-item header,
.notice-item header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.approval-item button {
  width: fit-content;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.approval-item button.is-previewed {
  background: var(--muted);
}

.parent-market-order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-market-order-strip span {
  display: grid;
  gap: 2px;
  min-width: 130px;
  border: 2px solid #d7e2ec;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7fbff;
}

.parent-market-order-strip strong,
.parent-market-order-strip small {
  display: block;
}

.parent-market-order-timeline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.parent-market-order-timeline span { border: 1px solid #d7dee6; border-radius: 999px; padding: 3px 7px; background: #f4f6f8; color: #667085; font-size: .65rem; font-style: normal; font-weight: 900; }
.parent-market-order-timeline span.is-done { border-color: #8bd5a2; background: #e8f8ed; color: #16783a; }
.parent-market-order-timeline span.is-refunded { border-color: #f0c45b; background: #fff6d9; color: #7a5700; }

.parent-market-order-strip small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-market-history {
  display: grid;
  gap: 12px;
}

.parent-market-approval-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid #cfe0ea;
  border-radius: 10px;
  padding: 12px;
  background: #f7fbff;
  cursor: pointer;
}

.parent-market-approval-toggle > span,
.parent-market-approval-toggle strong,
.parent-market-approval-toggle small {
  display: block;
}

.parent-market-approval-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.parent-market-approval-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.parent-market-approval-toggle i {
  position: relative;
  width: 52px;
  height: 30px;
  border: 2px solid #bac6d3;
  border-radius: 999px;
  background: #dce3ea;
  transition: background .18s ease, border-color .18s ease;
}

.parent-market-approval-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(18, 25, 42, .24);
  transition: transform .18s ease;
}

.parent-market-approval-toggle input:checked + i {
  border-color: #1cae55;
  background: #24bf61;
}

.parent-market-approval-toggle input:checked + i::after {
  transform: translateX(22px);
}

.parent-current-plan-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(320px, 1.2fr);
  gap: 14px 20px;
  align-items: center;
  border: 3px solid #35afd0;
  border-radius: 10px;
  padding: 16px;
  background: #f2fbfe;
}

.student-overview-makeup-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 2px solid #efc84b;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff8d8;
  color: #745400;
}

.student-overview-makeup-chip > i {
  font-size: 1.25rem;
}

.student-overview-makeup-chip span,
.student-overview-makeup-chip strong,
.student-overview-makeup-chip small {
  display: block;
}

.student-overview-class-chip .class-with-teacher em {
  display: block;
  width: fit-content;
  margin-bottom: 3px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e7f7fc;
  color: #087087;
  font-size: .65rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.student-overview-state-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 2px solid #a9cbed;
  border-radius: 8px;
  padding: 10px 12px;
  background: #edf6ff;
  color: #245981;
}

.student-overview-state-chip span,
.student-overview-state-chip strong,
.student-overview-state-chip small {
  display: block;
}

.student-overview-state-chip small {
  margin-top: 2px;
  font-weight: 800;
}

.student-overview-makeup-chip small {
  margin-top: 2px;
  color: #806b2b;
  font-weight: 800;
}

.parent-current-plan-card h3,
.parent-current-plan-card p {
  margin: 0;
}

.parent-current-plan-card h3 {
  font-size: 1.55rem;
}

.parent-current-plan-card > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.parent-plan-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.parent-plan-choice button {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 1px 7px;
  min-height: 62px;
  border: 2px solid #b9dce6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.parent-plan-choice button span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
}

.parent-plan-choice button.is-active {
  border-color: #21ae56;
  background: #e9faef;
  color: #14783b;
}

.parent-plan-rule-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.parent-billing-request-card.is-secondary {
  grid-column: 1 / -1;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.parent-plan-rule-chips > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  border: 2px solid #d4e3eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.parent-plan-rule-chips > span strong,
.parent-plan-rule-chips > span small {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.parent-plan-rule-chips i {
  grid-row: 1 / 3;
  color: #1594b3;
  font-size: 1.15rem;
}

.parent-plan-rule-chips strong,
.parent-plan-rule-chips small {
  display: block;
}

.parent-plan-rule-chips small {
  color: var(--muted);
  font-weight: 800;
}

.square-card-entry {
  display: grid;
  gap: 10px;
  border-top: 2px solid #d8e4eb;
  margin-top: 12px;
  padding-top: 12px;
}

.square-card-entry[hidden] {
  display: none;
}

.square-card-entry > button {
  width: fit-content;
}

.square-card-modal {
  width: min(620px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 31, 49, .35);
}

.square-card-modal::backdrop {
  background: rgba(20, 31, 49, .68);
}

.square-card-modal-body {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
}

.square-card-modal-body h2,
.square-card-modal-body p {
  margin: 0;
}

.square-card-modal .modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

.square-card-modal .square-card-entry {
  margin: 0;
  border-top: 0;
  padding: 0;
}

@media (max-width: 760px) {
  .parent-current-plan-card {
    grid-template-columns: 1fr;
  }

  .parent-plan-choice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .parent-plan-rule-chips {
    grid-template-columns: 1fr;
  }
}

.parent-market-history-empty {
  display: grid;
  gap: 10px;
  border: 2px dashed #cfe0ea;
  border-radius: 12px;
  padding: 14px;
  background: #f7fbff;
}

.parent-market-history-empty p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.parent-market-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.parent-market-history-summary span {
  display: grid;
  gap: 2px;
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  padding: 10px;
  background: #f7fbff;
}

.parent-market-history-summary strong {
  font-size: 1.25rem;
}

.parent-market-history-summary small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-market-history-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.parent-market-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 2px solid #d7e2ec;
  border-left-width: 7px;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.parent-market-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.parent-market-order-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  background: #2dbd58;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.parent-market-order-actions button.is-cancel {
  background: #fff;
  color: #9f1f2d;
  box-shadow: inset 0 0 0 2px #9f1f2d;
}

.parent-market-order-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.parent-market-history-item.is-pending {
  border-left-color: #f2b84b;
}

.parent-market-history-item.is-bought {
  border-left-color: #35b7d4;
}

.parent-market-history-item.is-ready {
  border-left-color: #31bf59;
}

.parent-market-history-item.is-handed-off {
  border-left-color: #2b7bbb;
}

.parent-market-history-item.is-refunded {
  border-left-color: #8f1f28;
}

.parent-market-history-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.parent-market-history-item strong,
.parent-market-history-item small,
.parent-market-history-item p {
  display: block;
}

.parent-market-history-item small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.parent-market-history-item p {
  margin: 6px 0 0;
  color: #475467;
  font-size: .82rem;
  font-weight: 850;
}

.parent-market-history-item em {
  align-self: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf6fb;
  color: #0f6d83;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.quest-progress-card {
  display: grid;
  gap: 12px;
}

.quest-progress-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 2px solid #dbe6ef;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #f7fbff, #fffaf0);
}

.quest-progress-hero img,
.quest-progress-hero > span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: #eef8fb;
}

.quest-progress-hero h3,
.homework-battle-panel h4 {
  margin: 0;
}

.quest-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quest-progress-grid article,
.homework-task-list article {
  display: grid;
  gap: 6px;
  border: 2px solid #e0e8ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.quest-progress-grid article > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #08718a;
  background: #e7f8fd;
}

.reward-mini-row,
.homework-task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reward-mini-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f5f9;
  color: #344054;
  font-size: .75rem;
  font-weight: 900;
}

.parent-proof-strip {
  display: grid;
  gap: 10px;
  border: 2px solid rgba(245, 197, 66, .54);
  border-radius: 10px;
  padding: 12px;
  background: #fff8dd;
}

.parent-attendance-history {
  display: grid;
  gap: 10px;
  border: 2px solid #bfe4ef;
  border-radius: 10px;
  padding: 12px;
  background: #f3fbfd;
}

.parent-attendance-history.is-empty {
  border-style: dashed;
  background: #fbfdff;
}

.parent-attendance-history > header,
.parent-attendance-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.parent-attendance-history > header > span,
.parent-attendance-list article > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #08718a;
  background: #fff;
}

.parent-attendance-list {
  display: grid;
  gap: 8px;
}

.parent-attendance-list article {
  border: 2px solid #d8edf3;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.parent-attendance-list article.is-absence {
  border-color: #ffd3aa;
  background: #fff8ef;
}

.parent-attendance-list strong,
.parent-attendance-list small,
.parent-attendance-list p {
  display: block;
  margin: 0;
}

.parent-attendance-list small,
.parent-attendance-list p {
  color: var(--muted);
  font-weight: 800;
}

.parent-attendance-list p {
  margin-top: 3px;
  font-size: .84rem;
  line-height: 1.3;
}

.parent-attendance-list em {
  border-radius: 999px;
  padding: 5px 8px;
  color: #08718a;
  background: #e2f7fc;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 620px) {
  .parent-attendance-history > header,
  .parent-attendance-list article {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .parent-attendance-list em {
    grid-column: 2;
    justify-self: start;
  }
}

.parent-proof-strip.is-empty {
  border-style: dashed;
  background: #fbfdff;
}

.parent-proof-strip > header,
.parent-proof-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.parent-proof-strip > header > span,
.parent-proof-list article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #7a5200;
  background: #fff;
}

.parent-proof-strip strong,
.parent-proof-strip small {
  display: block;
}

.parent-proof-strip small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 850;
}

.parent-proof-list {
  display: grid;
  gap: 8px;
}

.parent-proof-list article {
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, .72);
}

.parent-proof-list article.is-comment {
  border-color: rgba(99, 184, 130, .28);
  background: #f4fff7;
}

.parent-proof-list article.is-comment > span {
  color: #146c38;
  background: #dffbe8;
}

.parent-proof-list article.is-comment p {
  display: -webkit-box;
  max-width: 100%;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.homework-battle-panel {
  display: grid;
  gap: 10px;
  border: 2px solid #ffd6a8;
  border-radius: 10px;
  padding: 12px;
  background: #fff8ed;
}

.homework-battle-panel header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.homework-battle-panel button,
.progress-action-row button {
  width: fit-content;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.progress-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-action-row button:last-child {
  background: var(--sky);
}

.parent-policy-checklist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.policy-check-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.policy-check-item input {
  width: 18px;
  height: 18px;
}

.policy-check-item span {
  color: var(--sky);
}

.policy-check-item.is-checked {
  border-color: rgba(47, 189, 87, .45);
  background: #f0fff5;
}

.policy-check-item.is-locked {
  color: #246b3c;
}

.policy-check-item.is-locked span {
  color: #15803d;
}

.policy-check-item.is-locked input {
  cursor: not-allowed;
  opacity: .45;
}

.message-bubble {
  padding: 12px;
}

.message-bubble.parent {
  background: #fff7fb;
  border-color: #ffd3e6;
}

.message-bubble.is-saved {
  border-color: rgba(84, 184, 208, .38);
  background: #f1fbff;
}

.parent-message-center {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.parent-message-subjects {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  border: 2px solid #dbe4ee;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbfd;
}

.parent-message-subjects button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  width: 100%;
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.parent-message-subjects button > span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #08718a;
  background: #e7f8fd;
}

.message-subject-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-message-subjects strong,
.parent-message-subjects small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-message-subjects small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.parent-message-subjects button.is-active {
  border-color: var(--sky);
  background: #eefaff;
}

.parent-message-subjects button.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.parent-message-reader {
  min-width: 0;
}

.parent-message-reader .parent-thread-card {
  margin: 0;
}

.parent-policy-gate {
  max-width: min(720px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.parent-policy-gate::backdrop {
  background: rgba(11, 18, 32, .58);
}

.parent-policy-gate-body {
  display: grid;
  gap: 14px;
  border: 3px solid var(--gold);
  border-radius: 14px;
  padding: 18px;
  background: #fffdf3;
  box-shadow: 0 18px 60px rgba(11, 18, 32, .28);
}

.parent-policy-gate-body header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.parent-policy-gate-body header > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #8a5600;
  background: #fff1c4;
}

.parent-thread-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-thread-tabs button,
.parent-thread-card footer button {
  min-height: 36px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.parent-thread-tabs button.is-active {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.parent-thread-list {
  display: grid;
  gap: 10px;
}

.parent-thread-card {
  display: grid;
  gap: 10px;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.parent-thread-card.is-open {
  border-color: rgba(84, 184, 208, .55);
  background: #f5fcff;
}

.parent-thread-card.is-resolved {
  opacity: .82;
  background: #f7f8fa;
}

.parent-thread-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.parent-thread-card header strong,
.parent-thread-card header span {
  display: block;
}

.parent-thread-card header span,
.parent-thread-entry strong {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.parent-thread-card em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: #08718a;
  background: #e7f8fd;
  font-size: .75rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-thread-card details {
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.parent-thread-card summary {
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-thread-entry {
  margin-top: 8px;
  border-top: 1px solid #e1e7ef;
  padding-top: 8px;
}

.parent-thread-entry p,
.parent-thread-card p {
  margin-bottom: 0;
}

.parent-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbfd;
}

.parent-chat-log.is-scrollable {
  max-height: 280px;
  overflow: auto;
}

.parent-chat-bubble {
  max-width: min(72ch, 88%);
  border: 2px solid #d9e3ed;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
}

.parent-chat-bubble.from-parent {
  align-self: flex-end;
  border-color: rgba(84, 184, 208, .42);
  background: #eefaff;
}

.parent-chat-bubble.from-studio {
  align-self: flex-start;
}

.parent-chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.parent-chat-bubble p {
  margin: 0;
}

.parent-message-attachment {
  display: block;
  width: min(100%, 560px);
  max-height: 420px;
  margin-top: 9px;
  border-radius: 8px;
  object-fit: contain;
  background: #101827;
}

.parent-thread-card footer button {
  color: #fff;
  border: 0;
  background: var(--green);
}

.parent-thread-card.is-resolved footer button {
  background: var(--sky);
}

.empty-thread-note {
  border: 2px dashed #f1b6c8;
  border-radius: 8px;
  padding: 12px;
  background: #fff7fb;
}

.message-bubble strong {
  display: block;
  margin-bottom: 4px;
}

.primary-action {
  margin-top: 12px;
  background: var(--rose);
}

.parent-modal {
  width: min(920px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 22px 80px rgba(35, 48, 71, .28);
}

.parent-modal::backdrop {
  background: rgba(20, 26, 38, .48);
}

.parent-modal > form {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: #fff;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
}

.parent-modal-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.parent-modal .dashboard-card {
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 900px) {
  .parent-hero,
  .student-overview,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .billing-card,
  .message-card,
  .return-card,
  .billing-side-column,
  .payment-card,
  .market-orders-card,
  .approvals-card,
  .notices-card {
    grid-column: span 1;
  }

  .dashboard-grid.is-tabbed .billing-card:not([hidden]),
  .dashboard-grid.is-tabbed .billing-side-column:not([hidden]),
  .dashboard-grid.is-tabbed .payment-card:not([hidden]),
  .dashboard-grid.is-tabbed .discrown-card:not([hidden]),
  .dashboard-grid.is-tabbed .market-orders-card:not([hidden]) {
    grid-column: 1 / -1;
  }

  .parent-message-center {
    grid-template-columns: 1fr;
  }

  .parent-message-subjects {
    max-height: 260px;
  }
}

@media (max-width: 620px) {
  .billing-summary,
  .student-overview-grid,
  .parent-action-dock,
  .parent-workflow-strip,
  .parent-billing-lifecycle-steps,
  .schedule-policy-strip {
    grid-template-columns: 1fr;
  }

  .parent-market-history-summary,
  .parent-market-history-item {
    grid-template-columns: 1fr;
  }

  .parent-market-history-item em {
    justify-self: start;
  }

  .family-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-filter-group button {
    min-height: 56px;
  }

  .teacher-filter-group .schedule-teacher-avatar {
    width: 46px;
    height: 46px;
  }

  .return-step-list .return-teacher-chip {
    max-width: 100%;
  }

  .parent-avatar-panel .parent-avatar-tip,
  .parent-avatar-panel small {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
  }

  .student-profile-card header {
    align-items: flex-start;
  }

  .parent-hero {
    min-height: 0;
  }

  .payment-method-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .payment-method-item button,
  .no-card-exception-panel button {
    grid-column: 1 / -1;
  }

  .no-card-exception-panel {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  h1 {
    font-size: 2.55rem;
  }
}

.parent-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.parent-comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #20b86b;
  color: #fff;
  cursor: pointer;
  font: 800 .78rem/1 var(--font, inherit);
  padding: 9px 12px;
  text-transform: uppercase;
}

.parent-comment-actions .is-hide {
  background: #8f1f28;
}
