:root {
  color-scheme: light;
  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-soft: #fff4e6;
  --line: #f0d8c8;
  --text: #1f1c18;
  --muted: #6f6258;
  --primary: #ff8000;
  --primary-dark: #964900;
  --green: #2f8f65;
  --red: #FF0000;
  --danger: #FF0000;
  --blue: #346273;
  --shadow: 0 4px 20px rgba(255, 128, 0, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-safe-top: calc(var(--safe-top) + 10px);
  --fixed-shell-top: 0px;
  --fixed-header-height: calc(var(--safe-top) + 59px);
  --fixed-header-space: calc(var(--fixed-header-height) + 18px);
  --notification-header-height: calc(var(--safe-top) + 52px);
  --bottom-nav-height: calc(54px + 8px + max(8px, var(--safe-bottom)) + 1px);
  --lp-header-height: calc(var(--safe-top) + 74px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(54, 37, 22, 0.05);
}

.phone-shell.admin-shell {
  width: 100%;
  max-width: none;
  background: #f7f8fb;
  box-shadow: none;
}

.phone-shell.admin-shell .app {
  background: #f7f8fb;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 18px 96px;
}

.lp-screen {
  padding-top: 0;
  padding-bottom: 42px;
}

.lp-screen > .topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(100%, 440px);
  padding: calc(var(--safe-top) + 18px) 18px 12px;
  transform: translateX(-50%);
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-top: var(--safe-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.parent-home-topbar {
  position: fixed;
  top: var(--fixed-shell-top);
  left: 50%;
  z-index: 30;
  width: min(100%, 440px);
  min-height: 52px;
  margin: 0;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(217, 222, 210, 0.72);
  padding: var(--header-safe-top) 18px 10px;
  background: #fff;
}

.parent-settings-topbar {
  position: fixed;
  top: var(--fixed-shell-top);
  left: 50%;
  z-index: 30;
  width: min(100%, 440px);
  min-height: 52px;
  margin: 0;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(217, 222, 210, 0.72);
  padding: var(--header-safe-top) 18px 10px;
  background: #fff;
}

.parent-settings-topbar h1 {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) + 26px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.settings-header-back {
  position: absolute;
  left: 10px;
  top: calc(var(--safe-top) + 6px);
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.settings-header-back-icon {
  width: 24px;
  height: 24px;
}

.parent-header-logo-image {
  height: 28px;
}

.parent-header-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.parent-header-profile {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 4px 0 4px 8px;
  font-size: 14px;
  font-weight: 800;
}

.parent-header-child-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.parent-header-child-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.child-switch-guide-active .parent-header-child-button:not(.is-guided-switch-target),
.child-switch-guide-active .parent-header-add-child-button,
.child-switch-guide-active .parent-child-status-section,
.child-switch-guide-active .bottom-nav {
  pointer-events: none;
}

.child-switch-guide-active::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(31, 28, 24, 0.32);
  content: "";
  pointer-events: none;
}

.parent-header-child-button.is-guided-switch-target {
  position: relative;
  z-index: 30;
  box-shadow: 0 0 0 4px rgba(255, 128, 0, 0.24);
}

.parent-child-switch-pointer {
  position: fixed;
  left: var(--pointer-x, 50%);
  top: var(--pointer-y, calc(var(--safe-top) + 70px));
  z-index: 33;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  isolation: isolate;
  pointer-events: none;
  animation: child-switch-pointer-bounce 1.05s ease-in-out infinite;
}

.child-switch-guide-active .parent-child-switch-menu {
  z-index: 32;
}

.child-switch-guide-active .parent-child-switch-title {
  position: relative;
  z-index: 32;
  box-shadow: 0 0 0 4px rgba(255, 128, 0, 0.18);
}

.parent-child-switch-pointer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(31, 28, 24, 0.22);
  white-space: nowrap;
}

.parent-child-switch-pointer i {
  display: block;
  order: -1;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-bottom: 18px solid var(--primary);
  filter: drop-shadow(0 6px 8px rgba(31, 28, 24, 0.2));
}

@keyframes child-switch-pointer-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

.parent-header-child-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-size: 24px;
}

.parent-header-child-avatar .profile-avatar-icon {
  width: 32px;
  height: 32px;
}

.parent-header-child-empty {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #fff2df;
  color: var(--primary);
}

.parent-header-child-empty-icon {
  width: 32px;
  height: 32px;
}

.parent-header-add-child-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  padding: 0;
}

.parent-header-add-child-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.parent-profile-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--primary-dark);
}

.parent-header-profile .parent-header-name {
  overflow: hidden;
  max-width: 104px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-child-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 196px;
  overflow: hidden;
  border: 1px solid #f1e0cf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(92, 62, 26, 0.14);
}

.parent-child-switch-title {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 0;
  min-height: 0;
  border: 0;
  background: #fff;
  padding: 14px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.parent-child-switch-title:disabled {
  color: var(--muted);
}

.parent-child-switch-menu[hidden] {
  display: none;
}

.parent-child-switch-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid #f6eadf;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.parent-child-switch-menu .parent-child-switch-title {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 14px 12px;
  text-align: center;
  font-weight: 800;
}

.parent-child-switch-menu button:last-child {
  border-bottom: 0;
}

.parent-child-switch-menu button[data-route] {
  grid-template-columns: 1fr;
}

.parent-child-switch-menu .parent-child-switch-logout {
  grid-template-columns: 1fr;
  justify-items: center;
  border-top: 1px solid #f6eadf;
  color: #b33a2d;
  text-align: center;
}

.parent-child-switch-menu button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-child-switch-avatar {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.parent-child-switch-avatar .profile-avatar-icon {
  width: 26px;
  height: 26px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 10px 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 310px;
  align-content: end;
  margin: var(--lp-header-height) -18px 0;
  padding: 0 18px 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.02) 0%, rgba(255, 248, 241, 0.08) 58%, rgba(255, 248, 241, 0.38) 100%),
    url("./image.jpg") center top / 100% auto no-repeat;
}

.hero h1 {
  width: fit-content;
  max-width: min(100%, 380px);
  margin: 0 0 14px;
  background: rgba(255, 128, 0, 0.7);
  color: #fff;
  padding: 10px 12px;
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0 -18px;
  padding: 28px 18px 26px;
  background: transparent;
}

.lp-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

.hero-copy-card {
  padding: 24px 16px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(99, 62, 20, 0.09);
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  line-height: 1.34;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  color: #4f4035;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.feature-strip {
  margin-bottom: 0;
}

.lp-screen > .feature-strip > h2 {
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 28px;
  text-align: center;
}

.feature-list {
  position: relative;
  display: grid;
  gap: 24px;
}

.feature-list::before {
  display: none;
}

.mini-card,
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mini-card:not(:last-child)::after {
  position: absolute;
  top: 35px;
  bottom: -24px;
  left: 18px;
  z-index: 0;
  width: 3px;
  border-radius: 999px;
  background: #ffd4a4;
  content: "";
}

.mini-card strong {
  display: block;
  margin: 0 0 6px;
  color: var(--primary-dark);
  text-align: left;
  font-size: 24px;
  line-height: 1.25;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.feature-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 39px;
  height: 39px;
  margin-top: -4px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.icon-dot {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.section {
  margin-top: 28px;
}

.lp-screen > .section,
.lp-screen > .feature-strip {
  margin-top: 100px;
}

.section-tight {
  margin-top: 14px;
}

.section h2,
.auth-card h1,
.home-heading h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.motivation-section {
  padding: 28px 0 8px;
}

.motivation-section > h2 {
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 28px;
  text-align: center;
}

.motivation-list {
  display: grid;
  gap: 22px;
  margin-top: 0;
}

.motivation-item {
  padding: 24px 16px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(99, 62, 20, 0.09);
}

.motivation-item strong {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--primary-dark);
  text-align: center;
  font-size: 24px;
  line-height: 1.25;
}

.motivation-subtitle {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.motivation-number {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.motivation-item p {
  font-size: 14px;
  line-height: 1.6;
}

.motivation-image {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 8px;
}

.price-box {
  padding: 24px 16px 20px;
  margin-top: 0;
}

.lp-screen > .price-section > h2 {
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 28px;
  text-align: center;
}

.lp-screen > .faq-section > h2 {
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 28px;
  text-align: center;
}

.lp-screen .price-box {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(99, 62, 20, 0.09);
}

.lp-price-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lp-price-option {
  min-width: 0;
  padding: 14px 10px;
  border-radius: 8px;
  background: #fff7ed;
  text-align: center;
}

.lp-price-option > span {
  display: block;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.lp-price-option .price {
  justify-content: center;
  margin: 8px 0 0;
}

.lp-price-option .price strong {
  font-size: 24px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 20px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(99, 62, 20, 0.09);
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.45;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.lp-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 100px -18px 0;
  padding: 34px 18px calc(34px + var(--safe-bottom));
  background: #fff;
  color: var(--primary-dark);
  text-align: center;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-footer-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.lp-footer-logo {
  width: 96px;
  height: auto;
}

.lp-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.lp-footer small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 4px;
}

.price strong {
  font-size: 30px;
}

.plan-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.plan-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.plan-card.active {
  border-color: rgba(244, 123, 32, 0.45);
  background: #fffaf1;
}

.primary-button,
.secondary-button,
.danger-button {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 128, 0, 0.24);
}

.primary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
}

.danger-button {
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: #fff;
  color: var(--red);
}

.compact-button {
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 14px;
}

.small-action {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.tiny-button {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.auth-screen {
  display: grid;
  align-content: center;
  min-height: 100vh;
}

.auth-card {
  padding: 20px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-title-center {
  font-size: 22px;
  text-align: center;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff7ea;
}

.auth-mode-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-mode-tabs button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(55, 45, 32, 0.08);
}

.auth-login-form.hidden {
  display: none;
}

.auth-button-spacer {
  min-height: 56px;
}

.form {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: 16px;
}

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

.field label {
  font-size: 14px;
  font-weight: 800;
}

.field-label {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.subject-edit input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.15);
}

.form .field.hidden {
  display: none !important;
}

.field input[readonly] {
  background: #fff7ea;
  color: var(--primary-dark);
  font-weight: 900;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.error:empty {
  display: none;
}

.error.is-info {
  color: var(--muted);
  font-weight: 600;
}

.success {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.home-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  padding-bottom: 108px;
  -webkit-overflow-scrolling: touch;
}

.home-screen:has(> .parent-home-topbar),
.home-screen:has(> .parent-settings-topbar),
.home-screen.child-theme:has(> .child-topbar) {
  padding-top: var(--fixed-header-space);
}

.parent-pull-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  margin: -8px 0 12px;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    height 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.point-history-screen .parent-pull-refresh {
  margin: 0;
}

.home-screen.is-parent-pulling-refresh .parent-pull-refresh {
  opacity: 1;
  transform: translateY(0);
}

.home-screen.is-parent-pull-refresh-ready .parent-pull-refresh {
  color: var(--primary);
}

.parent-pull-refresh-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
}

.parent-pull-refresh-svg {
  width: 16px;
  height: 16px;
}

.home-screen.is-parent-refreshing .parent-pull-refresh-svg {
  animation: parent-refresh-spin 0.8s linear infinite;
}

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

.parent-child-detail-screen {
  padding-bottom: 168px;
}

.parent-child-detail-screen .parent-child-balance-card {
  margin-bottom: 14px;
}

.parent-child-detail-screen .parent-child-points-summary {
  margin-bottom: 18px;
}

.parent-child-detail-screen .parent-child-balance-card + .detail-card {
  margin-top: 0;
}

.child-login-detail-card {
  gap: 8px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  padding-left: 0;
  box-shadow: none;
}

.child-login-detail-layout {
  display: grid;
  gap: 16px;
}

.child-login-detail-profile {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.child-login-detail-profile .profile-photo-field {
  justify-items: center;
}

.child-login-detail-profile .profile-photo-label {
  display: none;
}

.child-login-detail-profile .profile-photo-preview {
  width: 92px;
  height: 92px;
  background: transparent;
  cursor: pointer;
}

.child-login-detail-profile .profile-photo-stack {
  width: 92px;
  height: 92px;
}

.child-login-detail-profile .profile-photo-placeholder-icon {
  width: 86px;
  height: 86px;
}

.child-login-detail-profile .profile-photo-control {
  min-height: auto;
}

.child-login-detail-profile .profile-photo-button {
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
}

.child-login-detail-profile .profile-photo-camera-icon {
  width: 16px;
  height: 16px;
}

.child-login-detail-profile > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.child-login-detail-credentials {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.parent-child-points-summary {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
  padding: 4px 0 0;
}

.parent-child-points-balance {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.parent-child-points-balance span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.parent-child-points-balance strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.parent-child-points-section {
  display: grid;
  gap: 9px;
}

.parent-child-points-section h2 {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.parent-child-points-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
}

.parent-child-points-row span,
.parent-child-points-row strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.parent-child-points-row strong {
  text-align: right;
  white-space: nowrap;
}

.parent-child-points-net {
  border-top: 1px solid rgba(31, 28, 25, 0.18);
  padding-top: 10px;
}

.parent-child-points-history-button {
  justify-self: stretch;
  margin-top: 2px;
}

.child-login-password-value {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.child-login-password-value span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-login-password-edit-button {
  display: grid;
  width: 28px;
  min-height: 28px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.child-login-password-edit-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.secondary-button.child-detail-rule-button {
  margin-top: 2px;
  margin-bottom: 18px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.24);
}

.child-delete-action-area {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  margin: 6px 0 18px;
}

.child-delete-action-area > .danger-button {
  margin-top: 0;
}

.child-delete-modal-confirm {
  border-color: #FF0000 !important;
  background: #FF0000 !important;
  color: #fff !important;
}

.page-heading.child-detail-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
  justify-content: stretch;
  justify-items: center;
  text-align: center;
}

.page-heading.child-detail-heading > div {
  width: 100%;
}

.child-detail-name-row {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  gap: 4px;
  width: min(100%, 142px);
}

.child-detail-name-row h1 {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  margin-bottom: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.25;
}

.child-detail-name-text {
  display: inline;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
}

.page-heading.child-detail-heading p {
  text-align: center;
}

.child-detail-name-edit-button {
  grid-column: 3;
  justify-self: center;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary-dark);
  padding: 0;
}

.child-detail-name-edit-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.home-heading {
  display: grid;
  gap: 4px;
  margin: 18px 0;
}

.compact-heading {
  gap: 6px;
  margin: 16px 0 14px;
}

.parent-home-status {
  margin: 14px 0 16px;
}

.parent-trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  border: 1px solid rgba(255, 128, 0, 0.34);
  border-radius: 8px;
  background: #fff4df;
  color: #7a3f00;
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.14);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.home-heading p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 16px;
}

.page-heading h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-page-heading {
  margin-top: 16px;
}

.children-page-heading {
  justify-content: center;
  margin-top: 16px;
  text-align: center;
}

.children-page-heading p {
  width: 100%;
}

.children-add-button {
  margin-top: 14px;
}

.parent-child-form {
  gap: 16px;
  border: 0;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(80, 52, 25, 0.08);
}

.profile-photo-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-photo-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.profile-photo-control {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 4px 0 2px;
}

.profile-photo-stack {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
}

.profile-photo-preview {
  display: grid;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background: #fff2df;
  color: var(--primary);
  overflow: hidden;
}

.profile-icon-photo {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
}

.profile-photo-animal-icon,
.profile-avatar-animal-icon,
.profile-animal-svg {
  width: 58%;
  height: 58%;
  stroke-width: 2.2;
}

.profile-photo-field .profile-icon-picker {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.profile-icon-options,
.profile-color-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.profile-icon-option,
.profile-color-option {
  display: inline-grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0;
}

.profile-icon-option {
  width: 36px;
  height: 36px;
}

.profile-icon-option-svg {
  width: 22px;
  height: 22px;
}

.profile-color-option {
  width: 26px;
  height: 26px;
  box-shadow: inset 0 0 0 1px rgba(31, 28, 24, 0.12);
}

.profile-icon-option.active,
.profile-color-option.active {
  border-color: var(--primary);
}

.profile-photo-preview img,
.profile-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.profile-photo-placeholder-icon {
  width: 64px;
  height: 64px;
}

.profile-photo-button {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.22);
}

.profile-photo-camera-icon {
  width: 16px;
  height: 16px;
}

.profile-photo-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.issued-login-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  border-radius: 8px;
  background: #fff7ea;
  padding: 14px;
}

.issued-login-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.issued-login-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.issued-login-grid {
  display: grid;
  gap: 10px;
}

.issued-login-field input {
  min-height: 48px;
  border-color: rgba(150, 73, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #4c2c0a;
  font-weight: 900;
}

.issued-login-note {
  margin: 0;
  color: #7a5b3f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.parent-child-form-hint {
  border-color: rgba(47, 143, 101, 0.22);
  background: #f1fbf5;
  color: #315f48;
}

.parent-child-form-actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 390px) {
  .issued-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.summary-card {
  padding: 18px;
  background: linear-gradient(135deg, #fff, #f2f8f4);
}

.summary-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-number {
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.metric-grid,
.monthly-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(217, 222, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.metric-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-item strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.home-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.parent-child-status-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 90px;
}

.section-label {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

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

.parent-child-status-block {
  display: grid;
  gap: 8px;
}

.parent-child-status-card,
.parent-child-status-empty {
  display: grid;
  align-items: center;
  width: 100%;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
}

.parent-child-status-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px;
  border-color: rgba(255, 128, 0, 0.18);
  box-shadow: 0 12px 28px rgba(123, 72, 20, 0.08);
}

.parent-child-status-empty {
  justify-items: center;
  gap: 8px;
  min-height: 128px;
  padding: 20px 18px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.parent-child-status-empty strong {
  font-size: 16px;
  font-weight: 400;
}

.parent-child-status-empty span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.parent-child-status-empty-icon {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

.parent-child-add-button {
  min-height: 46px;
}

.parent-child-status-avatar {
  width: 60px;
  height: 60px;
  background: transparent;
  color: #ff8000;
  box-shadow: none;
  font-size: 34px;
}

.parent-child-status-avatar-icon {
  width: 56px;
  height: 56px;
  stroke-width: 2.2;
}

.parent-child-status-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.parent-child-status-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.parent-child-status-profile {
  display: grid;
  flex: 0 0 68px;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.parent-child-status-profile strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-child-total-points {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
  padding: 0;
}

.parent-child-total-points span {
  color: #7a3f00;
  font-size: 11px;
  font-weight: 900;
}

.parent-child-total-points strong {
  color: var(--text);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.parent-child-total-points .parent-child-total-unit {
  margin-left: 2px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.parent-child-detail-button {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 16px rgba(255, 128, 0, 0.2);
}

.parent-child-status-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  padding-top: 2px;
}

.parent-child-status-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.parent-child-status-cell:nth-child(n + 4) {
  align-items: center;
  padding-top: 1px;
  padding-bottom: 2px;
}

.parent-child-status-cell:nth-child(2n + 1)::before {
  position: absolute;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.parent-child-status-cell:nth-child(3)::before {
  top: 9px;
  bottom: 0;
}

.parent-child-status-cell:nth-child(5)::before {
  top: 0;
  bottom: 8px;
}

.parent-child-status-heading {
  display: flex;
  position: relative;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.parent-child-status-heading::before {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.parent-child-status-heading span {
  position: relative;
  z-index: 1;
}

.parent-child-status-label {
  min-height: 25px;
  padding-top: 5px;
  padding-bottom: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.parent-child-status-value.parent-child-status-cell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 26px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.parent-child-status-value .parent-child-status-unit {
  display: inline-block;
  margin-left: 2px;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.05;
  transform: translateY(-1px);
}

.task-card {
  padding: 16px;
}

.task-card-feature {
  border-color: rgba(47, 143, 101, 0.26);
  background: linear-gradient(135deg, #fff, #f2fbf6);
}

.task-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.child-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-color: var(--line);
  color: var(--text);
  text-align: left;
}

.child-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.profile-avatar {
  overflow: hidden;
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.profile-avatar-icon {
  width: 30px;
  height: 30px;
}

.child-avatar.parent-child-status-avatar {
  width: 60px;
  height: 60px;
  box-shadow: none;
  font-size: 34px;
}

.child-avatar.profile-avatar.parent-child-status-avatar {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.child-avatar.parent-child-status-avatar .parent-child-status-avatar-icon {
  width: 56px;
  height: 56px;
  stroke-width: 2.2;
}

.child-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.child-main strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-points {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.notice-card,
.hint-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.6;
}

.notice-card {
  padding: 14px;
  font-weight: 800;
}

.compact-notice {
  padding: 12px;
  font-size: 13px;
}

.rule-notice {
  margin-bottom: 12px;
  text-align: center;
}

.rule-subject-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hint-card {
  padding: 12px;
  font-size: 13px;
}

.detail-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-card.child-login-detail-card {
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  padding-left: 0;
  box-shadow: none;
}

.parent-redemption-detail-layout {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
}

.parent-redemption-detail-child {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.parent-redemption-detail-child > span {
  overflow: hidden;
  max-width: 58px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-redemption-detail-avatar {
  width: 50px;
  height: 50px;
  color: var(--primary-dark);
}

.parent-redemption-detail-card {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  padding: 14px 16px;
}

.parent-redemption-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(240, 216, 200, 0.72);
}

.parent-redemption-detail-row:last-child {
  border-bottom: 0;
}

.parent-redemption-detail-row > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.parent-redemption-detail-row strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.parent-redemption-detail-row strong small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.settings-menu {
  display: grid;
  gap: 0;
  margin: 0 -18px;
  background: #fff;
}

.parent-settings-screen {
  padding-top: calc(var(--fixed-header-space) - 29px) !important;
}

.parent-settings-detail-screen > .detail-card,
.parent-settings-detail-screen > .parent-account-settings-form {
  padding: 16px;
}

.settings-exchange-unit-list {
  display: grid;
  gap: 12px;
  padding: 0 18px;
}

.exchange-setting-child-list {
  display: grid;
  gap: 0;
  margin-top: -8px;
}

.card.exchange-setting-child-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  justify-items: start;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-align: left;
}

.card.exchange-setting-child-card > span:not(.child-avatar) {
  overflow: hidden;
  max-width: 100%;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-setting-child-avatar {
  width: 50px;
  height: 50px;
  font-size: 25px;
}

.exchange-setting-child-avatar .profile-avatar-icon {
  width: 46px;
  height: 46px;
}

.exchange-setting-child-chevron {
  justify-self: end;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.child-point-exchange-unit-card {
  display: grid;
  gap: 18px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.exchange-unit-control-row {
  display: grid;
  grid-template-columns: auto;
  align-items: end;
  justify-content: end;
  gap: 12px;
}

.exchange-reward-add-button {
  min-height: 44px;
  white-space: nowrap;
}

.exchange-unit-child-profile {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.exchange-unit-avatar {
  width: 52px;
  height: 52px;
}

.exchange-unit-field {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.exchange-unit-input-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.exchange-unit-input-wrap input {
  width: 150px;
  min-height: 48px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.exchange-unit-input-wrap input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.15);
}

.exchange-unit-input-wrap input.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

.exchange-unit-input-wrap span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.exchange-unit-error {
  margin: 0;
}

.exchange-items-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.exchange-items-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
}

.exchange-items-header,
.exchange-items-row {
  display: grid;
  grid-template-columns: minmax(82px, 1.3fr) 70px 62px 48px 58px;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
}

.exchange-items-header {
  border-bottom: 1px solid rgba(234, 216, 189, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.exchange-items-row + .exchange-items-row {
  border-top: 1px solid rgba(234, 216, 189, 0.5);
}

.exchange-item-cell-text {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-item-actions {
  display: inline-flex;
  justify-content: end;
  gap: 2px;
}

.exchange-item-actions .rule-other-icon-button {
  width: 26px;
  height: 26px;
}

.exchange-item-modal-form {
  display: grid;
  gap: 14px;
}

.exchange-item-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px;
  gap: 10px;
}

.exchange-item-modal-form .rule-edit-field > span {
  display: block;
  text-align: center;
}

.exchange-item-modal-form .rule-edit-field input,
.exchange-item-modal-form .rule-edit-field select {
  text-align: center;
  text-align-last: center;
}

.exchange-item-unit-field {
  max-width: 84px;
}

.exchange-item-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.exchange-item-modal-actions .primary-button {
  box-shadow: none;
}

.child-exchange-unit-summary {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(234, 216, 189, 0.72);
  text-align: center;
}

.child-exchange-unit-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.child-exchange-unit-summary strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.child-exchange-unit-suffix {
  font-size: 18px;
  font-weight: 600;
}

.child-exchange-unit-summary p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

#redemption-form .child-exchange-points-field > label,
#redemption-form .child-exchange-item-field > label {
  font-size: 14px;
  font-weight: 400;
}

.child-exchange-balance {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text);
  text-align: center;
}

.child-exchange-balance > span {
  font-size: 14px;
  font-weight: 400;
}

.child-exchange-balance strong {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.child-exchange-balance strong span {
  font-size: 16px;
  font-weight: 600;
}

.child-exchange-points-input-wrap {
  display: inline-grid;
  grid-template-columns: 150px auto;
  align-items: center;
  gap: 10px;
  justify-content: start;
}

.child-exchange-points-input-wrap input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.child-exchange-points-input-wrap span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.child-exchange-item-field select {
  min-height: 50px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
}

.child-exchange-item-detail {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.settings-menu .settings-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(217, 222, 210, 0.72);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.settings-menu .settings-menu-link small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.settings-menu-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--muted);
}

.danger-zone {
  border-color: rgba(255, 0, 0, 0.28);
}

.settings-menu .settings-menu-link.danger-zone {
  border-color: rgba(217, 222, 210, 0.72);
}

.confirm-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 8px;
  background: #fff7f4;
  padding: 12px;
}

.confirm-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-actions {
  display: grid;
  gap: 8px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 216, 189, 0.7);
}

.info-list div:last-child {
  border-bottom: 0;
}

.child-login-info-list {
  justify-self: center;
  width: min(100%, 260px);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 12px;
  background: #fff;
}

.child-login-info-list div {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(234, 216, 189, 0.78);
}

.child-login-info-list div:last-child {
  border-bottom: 0;
}

.child-login-info-list dt,
.child-login-info-list dd {
  min-height: 42px;
  padding: 11px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-login-info-list dt {
  display: grid;
  align-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(234, 216, 189, 0.78);
  background: #fff8ef;
  font-size: 12px;
}

.child-login-info-list dd {
  display: grid;
  align-items: center;
  background: #fff;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.fine-print,
.card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.fine-print {
  font-size: 12px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

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

.button-row .compact-button {
  margin-top: 0;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.home-pill {
  width: fit-content;
  background: #e8f7ef;
  color: var(--green);
}

.subject-list,
.rule-list {
  display: grid;
  gap: 10px;
}

.subject-row {
  padding: 14px;
}

.subject-view,
.subject-edit {
  display: grid;
  gap: 12px;
}

.subject-view {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.subject-view strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.demo-step-list {
  display: grid;
  gap: 10px;
}

.demo-step-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.demo-step-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.demo-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-step-card button {
  grid-column: 1 / -1;
}

.demo-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

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

.segment-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.segment-button.active {
  border-color: rgba(244, 123, 32, 0.45);
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.rule-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.rule-card.rule-subject-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
  box-shadow: none;
}

.rule-subject-picker {
  position: relative;
}

.rule-test-method-field {
  margin-top: 14px;
}

.rule-test-method-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rule-test-method-row button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
  color: #b8ada4;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 900;
}

.rule-test-method-row button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.rule-subject-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 0 16px 0 18px;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(80, 52, 25, 0.06);
}

.rule-subject-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-subject-trigger-icon {
  justify-self: end;
  display: block;
  width: 22px;
  height: 22px;
  color: #9d8f83;
  stroke-width: 2.4;
}

.rule-subject-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(60, 38, 22, 0.16);
}

.rule-subject-menu[hidden] {
  display: none;
}

.rule-subject-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(234, 216, 189, 0.66);
  background: #fff;
}

.rule-subject-option-row.active {
  background: #fff;
}

.rule-subject-option-name {
  display: grid;
  min-height: 58px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 8px 0 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
}

.rule-subject-option-row.active .rule-subject-option-name {
  color: var(--primary);
}

.rule-subject-option-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
}

.rule-subject-option-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9d8f83;
  padding: 0;
}

.rule-subject-option-icon.is-danger {
  color: var(--red);
}

.rule-subject-action-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.rule-subject-menu .rule-subject-add-option {
  display: grid;
  min-height: 56px;
  align-items: center;
  border: 0;
  border-bottom: 0;
  background: #fff;
  color: var(--primary);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  justify-items: center;
}

.test-rule-card-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  border-bottom: 1px solid rgba(234, 216, 189, 0.78);
  padding-bottom: 12px;
}

.rule-heading-spacer {
  grid-column: 1;
}

.test-rule-card-title {
  grid-column: 2;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.rule-enabled-toggle {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 30px;
  min-width: 76px;
  border: 1px solid rgba(157, 143, 131, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #9d8f83;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.rule-enabled-toggle.active {
  border-color: rgba(255, 128, 0, 0.34);
  background: #fff7ed;
  color: var(--primary);
}

.point-rule-form.is-rule-disabled .rule-table-editor,
.point-rule-form.is-rule-disabled .rule-add-row-button,
.point-rule-form.is-rule-disabled button[type="submit"],
.point-rule-form.is-rule-disabled [data-reset-test-rule] {
  opacity: 0.45;
}

.point-rule-form.is-rule-disabled .rule-table-editor {
  pointer-events: none;
}

.rule-card h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.point-rule-form,
.rule-table-editor {
  display: grid;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.rule-card-block {
  display: grid;
  gap: 8px;
}

.rule-table-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  padding: 0 2px;
  text-align: left;
}

.rule-table-head,
.rule-table-row {
  display: grid;
  gap: 8px;
  align-items: start;
}

.test-rule-table .rule-table-head,
.test-rule-table .rule-table-row {
  grid-template-columns: minmax(54px, 0.7fr) minmax(70px, 0.86fr) minmax(76px, 0.9fr) 40px;
}

.grade-rule-table .rule-table-head,
.grade-rule-table .rule-table-row {
  grid-template-columns: minmax(88px, 1fr) minmax(88px, 1fr);
}

.grade-rule-table .rule-table-head,
.grade-rule-table .rule-table-row input {
  text-align: center;
}

.grade-rule-table .rule-table-head {
  padding-right: 40px;
}

.grade-rule-table .rule-table-row {
  position: relative;
  padding-right: 40px;
}

.grade-rule-table [data-delete-grade-rule-row] {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.grade-rule-table + .rule-add-row-button {
  margin-right: 40px;
}

.rank-rule-table .rule-table-head,
.rank-rule-table .rule-table-row {
  grid-template-columns: minmax(54px, 0.7fr) minmax(70px, 0.86fr) minmax(76px, 0.9fr) 40px;
}

.rank-rule-rank,
.rank-rule-condition {
  justify-content: center;
  text-align: center;
}

.rule-table-head {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  justify-items: center;
  text-align: center;
}

.rule-table-row input,
.rule-table-row select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(80, 52, 25, 0.04);
}

.rule-table-row input[name^="points"] {
  font-weight: 600;
}

.rule-input-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  align-content: start;
}

.rule-input-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.rule-input-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.rule-input-error {
  display: none;
  min-height: 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.rule-input-error:not(:empty) {
  display: block;
}

.rule-table-row input:focus,
.rule-table-row select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.15);
}

.rule-table-row input.input-error {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.12);
}

.rule-table-row input.input-error:focus {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.18);
}

.fixed-rule-value {
  display: inline-flex;
  gap: 4px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.fixed-rule-value small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.fixed-rule-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.fixed-rule-score-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  gap: 5px;
}

.fixed-rule-score-value > span {
  justify-self: center;
}

.rule-row-action-spacer {
  width: 40px;
  min-height: 44px;
}

.rule-row-delete-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  padding: 0;
  margin-top: 2px;
}

.rule-row-delete-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.rule-add-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid rgba(255, 128, 0, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}

.rule-add-row-button:disabled {
  border-color: rgba(157, 143, 131, 0.2);
  color: #b8ada4;
  cursor: not-allowed;
  opacity: 0.72;
}

.rule-add-row-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.rule-apply-subjects-button {
  justify-self: stretch;
  min-height: 48px;
  margin-top: -2px;
}

.rule-save-button {
  justify-self: stretch;
  min-height: 48px;
}

.apply-rule-subject-field {
  width: 100%;
  margin: 14px 0 6px;
  text-align: left;
}

.apply-rule-subject-menu {
  top: auto;
  bottom: calc(100% + 8px);
  max-height: 230px;
  overflow-y: auto;
}

.rule-reset-button {
  display: inline-flex;
  grid-column: 3;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 30px;
  border: 1px solid rgba(157, 143, 131, 0.28);
  border-radius: 999px;
  background: #fff;
  border-color: rgba(157, 143, 131, 0.32);
  color: #7d6a58;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rule-other-panel {
  display: grid;
  gap: 10px;
}

.rule-other-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.rule-other-remaining-count {
  justify-self: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.rule-other-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  border: 1px solid rgba(255, 128, 0, 0.32);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.rule-other-add-button:disabled {
  border-color: rgba(210, 199, 185, 0.74);
  color: rgba(91, 66, 42, 0.34);
  cursor: not-allowed;
}

.rule-other-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid rgba(234, 216, 189, 0.78);
  border-bottom: 1px solid rgba(234, 216, 189, 0.78);
}

.rule-other-list-head,
.rule-other-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(78px, auto) 78px;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.rule-other-list-head > *,
.rule-other-row > * {
  min-width: 0;
}

.rule-other-list-head {
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.rule-other-row {
  min-height: 58px;
  border-top: 1px solid rgba(234, 216, 189, 0.66);
  padding: 8px 0;
  background: #fff;
}

.rule-other-category-tag {
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 74px;
  min-height: 28px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--primary);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-other-category-picker {
  width: 100%;
}

.rule-other-category-trigger {
  grid-template-columns: minmax(0, 1fr) 24px;
  justify-items: start;
}

.rule-other-category-trigger .rule-subject-trigger-icon {
  justify-self: end;
}

.rule-other-category-select-tag {
  display: inline-grid;
  max-width: 100%;
  min-width: 76px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
}

.rule-other-category-menu {
  max-height: 260px;
  overflow-y: auto;
}

.rule-other-filter-picker {
  position: relative;
  width: min(150px, 100%);
}

.rule-other-filter-trigger {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 10px 0 12px;
  font-size: 13px;
  box-shadow: none;
}

.rule-other-filter-trigger .rule-subject-trigger-icon {
  width: 17px;
  height: 17px;
}

.rule-other-filter-trigger .rule-other-category-select-tag {
  min-width: auto;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.rule-other-filter-menu {
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
}

.rule-other-filter-option {
  display: grid;
  min-height: 52px;
  align-items: center;
  justify-items: start;
  border: 0;
  border-bottom: 1px solid rgba(234, 216, 189, 0.66);
  background: #fff;
  padding: 0 16px;
}

.rule-other-filter-option.active {
  background: #fff8ef;
}

.rule-other-filter-all {
  display: inline-grid;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3eee9;
  color: var(--brown);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.rule-other-category-option {
  display: grid;
  min-height: 58px;
  align-items: center;
  justify-items: start;
  border: 0;
  border-bottom: 1px solid rgba(234, 216, 189, 0.66);
  background: #fff;
  padding: 0 18px;
}

.rule-other-category-option.active {
  background: #fff8ef;
}

.rule-other-task-name,
.rule-other-task-points {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

.rule-other-task-name {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-other-task-points {
  display: block;
  justify-self: center;
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-other-task-points small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.rule-other-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.rule-other-icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9d8f83;
  padding: 0;
}

.rule-other-icon-button.is-danger {
  color: var(--red);
}

.rule-other-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.rule-other-form {
  gap: 14px;
}

.rule-other-task-modal.is-temporarily-hidden {
  display: none;
}

.rule-other-task-modal .parent-switch-modal-panel {
  gap: 0;
}

.rule-other-form-heading {
  margin-bottom: 2px;
}

.rule-edit-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rule-edit-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.rule-edit-field input,
.rule-edit-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(234, 216, 189, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
}

.rule-edit-field input:focus,
.rule-edit-field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.15);
}

.rule-other-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 18px;
  justify-items: center;
  padding: 4px 2px;
}

#other-task-category-name-input {
  border-color: transparent;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

#other-task-category-name-input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

#other-task-category-name-input:focus {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.14);
}

.category-color-swatch {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.category-color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-color-swatch span {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -2px);
}

.category-color-swatch input:checked + span {
  opacity: 1;
}

.rule-edit-form {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rule-edit-grid {
  display: grid;
  gap: 8px;
}

.rule-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(88px, 0.7fr);
  gap: 8px;
  align-items: end;
}

.rule-edit-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rule-edit-row input {
  width: 100%;
  min-width: 0;
}

.rule-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rule-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.rule-table div:last-child {
  border-bottom: 0;
}

.rule-table span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rule-table strong {
  color: var(--primary-dark);
  white-space: nowrap;
}

.child-theme .summary-card {
  background: linear-gradient(135deg, #fff, #fff4e6);
}

.child-theme {
  padding-inline: 20px;
  background: linear-gradient(180deg, #fffdf9 0, #fff8f1 170px, #fff8f1 100%);
}

.child-topbar {
  position: fixed;
  top: var(--fixed-shell-top);
  left: 50%;
  z-index: 30;
  width: min(100%, 440px);
  margin: 0;
  transform: translateX(-50%);
  min-height: 64px;
  padding: var(--header-safe-top) 18px 10px;
  border-bottom: 1px solid rgba(240, 216, 200, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(255, 128, 0, 0.06);
}

.child-history-topbar {
  display: grid;
  place-items: center;
  justify-content: initial;
}

.child-history-topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.child-brand-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8000, #ffb347);
}

.header-logo-image {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.child-header-logo-image {
  height: 28px;
}

.header-logo-image.parent-header-logo-image {
  height: 28px;
}

.child-profile-pill {
  position: relative;
  display: inline-grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.child-account-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 6px 0;
  font-size: 13px;
  font-weight: 900;
}

.child-account-switch-button span {
  overflow: hidden;
  max-width: 96px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-account-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--primary-dark);
}

.child-account-avatar .profile-avatar-icon {
  width: 28px;
  height: 28px;
}

.child-profile-pill .text-button {
  padding: 8px 0;
  font-size: 12px;
}

.child-parent-switch-inline {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.child-parent-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid #f1e0cf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(92, 62, 26, 0.14);
}

.child-parent-switch-menu[hidden] {
  display: none;
}

.child-parent-switch-menu button {
  min-height: 48px;
  border: 0;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.parent-switch-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(42, 30, 22, 0.34);
  padding: 18px;
}

.parent-switch-modal-panel {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 58px rgba(48, 31, 19, 0.22);
}

.parent-switch-modal-panel h2 {
  margin: 0;
  font-size: 20px;
}

.parent-switch-reset-panel {
  text-align: center;
}

.parent-switch-reset-panel h2 {
  text-align: center;
}

.app-install-prompt-panel {
  text-align: center;
}

.app-install-prompt-panel h2 {
  text-align: center;
}

.app-install-prompt-panel .app-install-guide {
  color: var(--text);
  font-weight: 700;
}

.child-password-modal .parent-switch-modal-panel h2 {
  text-align: center;
}

.password-input-wrap {
  position: relative;
  display: grid;
}

.password-input-wrap input {
  padding-right: 48px;
}

.password-visibility-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7a5b3f;
  padding: 0;
  transform: translateY(-50%);
}

.password-visibility-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.parent-switch-modal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.child-device-modal-panel {
  gap: 16px;
  text-align: center;
}

.child-device-modal-panel h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.child-device-modal-actions {
  display: grid;
  gap: 10px;
}

.child-switch-intro-modal-panel {
  gap: 18px;
  text-align: center;
}

.child-switch-intro-modal-panel p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.child-switch-intro-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.child-apply-guide-pointer {
  position: fixed;
  left: var(--pointer-x, 50%);
  top: var(--pointer-y, calc(100% - 180px));
  z-index: 10006;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  animation: child-apply-guide-pointer-bounce 1.05s ease-in-out infinite;
}

.child-apply-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(31, 28, 24, 0.32);
}

body.child-apply-guide-active,
body.child-apply-guide-active .phone-shell,
body.child-apply-guide-active .screen {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.child-apply-guide-active .child-design-nav.is-child-apply-nav-overlay-target,
.child-apply-guide-active .child-bottom-nav.is-child-apply-nav-overlay-target {
  z-index: 10001;
}

.child-apply-guide-active .child-design-nav.is-child-apply-nav-overlay-target .child-design-nav-item:not(.is-child-apply-guide-target),
.child-apply-guide-active .child-bottom-nav.is-child-apply-nav-overlay-target .nav-item:not(.is-child-apply-guide-target) {
  pointer-events: none;
}

.child-apply-guide-active .is-child-apply-guide-target {
  position: relative;
  z-index: 10001;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
}

.child-apply-guide-active .is-child-parent-switch-guide-target {
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: #222;
}

.child-apply-guide-active .is-child-parent-switch-header-overlay-target {
  position: relative;
  z-index: 10005 !important;
}

.child-apply-guide-active .child-design-topbar.is-child-parent-switch-header-overlay-target,
.child-apply-guide-active .child-topbar.is-child-parent-switch-header-overlay-target,
.child-apply-guide-active .topbar.is-child-parent-switch-header-overlay-target {
  position: relative;
  z-index: 10005 !important;
}

.child-apply-guide-active .is-child-apply-actions-overlay-target {
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.child-apply-guide-active .is-child-apply-actions-overlay-target .is-child-apply-guide-target {
  z-index: 10001;
}

.child-apply-next-guide-clone {
  position: fixed;
  z-index: 10003;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-sizing: border-box;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
  margin: 0;
  pointer-events: auto;
}

.child-parent-switch-guide-clone {
  position: fixed !important;
  z-index: 10005;
  display: inline-grid;
  justify-items: end;
  gap: 3px;
  min-width: 154px;
  border-radius: 16px;
  background: #fff;
  padding: 6px 8px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
  pointer-events: auto;
}

.child-parent-switch-guide-clone button {
  pointer-events: none;
}

.child-parent-switch-guide-clone .child-parent-switch-inline {
  white-space: nowrap;
}

.child-apply-subject-guide-clone {
  position: fixed;
  z-index: 10005;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  border: 1px solid #f0dfcf;
  border-radius: 18px;
  background: #fffaf5;
  color: #1d1712;
  padding: 13px 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  box-sizing: border-box;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
  pointer-events: auto;
}

.child-apply-guide-active .is-child-apply-submit-overlay-target {
  position: relative;
  z-index: 10003;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
}

.child-apply-guide-active .child-apply-dropdown:has(.is-child-apply-guide-target) {
  position: relative;
  z-index: 10003;
}

.child-apply-guide-active .is-child-apply-subject-layer-target {
  position: relative;
  z-index: 10003;
  transform: translateZ(0);
}

.child-apply-guide-active .child-apply-dropdown:has(.is-child-apply-guide-target) .child-apply-dropdown-menu {
  z-index: 10004;
}

.child-apply-guide-active .is-child-apply-menu-overlay-target {
  position: relative;
  z-index: 10003;
}

.child-apply-guide-active .is-child-apply-menu-overlay-target .child-apply-dropdown-trigger {
  box-shadow: none;
  position: relative;
  z-index: 10004;
}

.child-apply-guide-active .is-child-apply-menu-overlay-target .child-apply-dropdown-menu {
  position: absolute;
  z-index: 10004;
}

.child-apply-guide-active .is-child-apply-score-overlay-target {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-active .is-child-apply-score-overlay-target .child-category-option {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-comment {
  position: fixed;
  left: var(--comment-x, 50%);
  top: var(--comment-y, 50%);
  z-index: 10002;
  width: min(calc(100% - 48px), 360px);
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(31, 28, 24, 0.2);
}

.child-apply-guide-comment span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.child-apply-guide-comment p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.child-apply-guide-active .is-child-apply-score-input-overlay-target {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-active .is-child-apply-score-input-overlay-target input {
  position: relative;
  z-index: 10001;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
}

.child-apply-guide-active .is-child-apply-next-overlay-target {
  position: relative;
  z-index: 10001;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
}

.child-apply-guide-active .is-child-apply-photo-overlay-target {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-active .is-child-apply-photo-overlay-target .child-photo-drop,
.child-apply-guide-active .is-child-apply-photo-overlay-target .child-photo-menu,
.child-apply-guide-active .is-child-apply-photo-overlay-target .child-photo-preview-add {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-active .is-child-apply-comment-overlay-target {
  position: relative;
  z-index: 10001;
}

.child-apply-guide-active .is-child-apply-comment-overlay-target textarea {
  position: relative;
  z-index: 10001;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 128, 0, 0.28);
}

.child-apply-guide-pointer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(31, 28, 24, 0.22);
  white-space: nowrap;
}

.child-apply-guide-pointer i {
  display: block;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 18px solid var(--primary);
  filter: drop-shadow(0 6px 8px rgba(31, 28, 24, 0.2));
}

.child-apply-guide-pointer.is-below-target i {
  order: -1;
  border-top: 0;
  border-bottom: 18px solid var(--primary);
  filter: drop-shadow(0 -4px 6px rgba(31, 28, 24, 0.18));
}

@keyframes child-apply-guide-pointer-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -8px);
  }
}

.child-login-qr-frame {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  justify-self: center;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.child-login-qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.profile-photo-position-modal {
  z-index: 110;
  display: block;
  background: #111;
  padding: 0;
}

.profile-photo-position-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  background: #111;
  color: #fff;
}

.profile-photo-position-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 12px;
}

.profile-photo-position-header h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.profile-photo-position-text-button,
.profile-photo-position-done-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.profile-photo-position-text-button {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.92);
}

.profile-photo-position-done-button {
  justify-content: flex-end;
  color: var(--primary);
}

.profile-photo-position-stage {
  display: grid;
  place-items: center;
  padding: 16px 20px 24px;
}

.profile-photo-position-frame {
  position: relative;
  display: grid;
  width: min(76vw, 340px);
  height: min(76vw, 340px);
  max-width: 340px;
  max-height: 340px;
  place-items: center;
  border-radius: 50%;
  background: #222;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92),
    0 0 0 999px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.profile-photo-position-frame:active {
  cursor: grabbing;
}

.profile-photo-position-frame img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: top left;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.profile-photo-position-hint {
  margin: 0;
  padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.point-rule-saved-modal-panel {
  text-align: center;
}

.parent-switch-form {
  gap: 12px;
}

.parent-switch-forgot-button {
  justify-self: center;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.child-points-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 12px;
  overflow: hidden;
  margin: 8px 0 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff8000 0%, #ffb347 100%);
  color: #fff;
  padding: 24px;
  box-shadow: 5px 5px 6px rgb(0 0 0 / 40%);
}

.child-points-card {
  background: linear-gradient(135deg, #ff8000 0%, #ffb347 100%);
}

.child-points-card::before,
.child-points-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
}

.child-points-card::before {
  top: -44px;
  right: -36px;
  width: 128px;
  height: 128px;
}

.child-points-card::after {
  left: -28px;
  bottom: -42px;
  width: 104px;
  height: 104px;
}

.child-points-main,
.child-points-metrics,
.child-exchange-button {
  position: relative;
  z-index: 1;
}

.child-points-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.child-points-main span,
.child-points-metrics span {
  font-size: 13px;
  font-weight: 900;
  opacity: 0.86;
}

.child-points-main span {
  color: rgba(255, 255, 255, 0.9);
}

.child-points-main strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  overflow-wrap: anywhere;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: 0;
}

.child-points-main small {
  font-size: 20px;
}

.child-points-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.86;
}

.child-exchange-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  min-height: 48px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
}

.child-exchange-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.child-points-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.child-points-metrics div {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 12px;
  backdrop-filter: blur(8px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.child-points-metrics strong {
  font-size: 18px;
  line-height: 1.2;
}

.child-section {
  margin-bottom: 24px;
}

.child-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.child-section-heading h2,
.child-centered-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.child-link-button {
  padding-inline: 0;
  white-space: nowrap;
}

.child-activity-list {
  display: grid;
  gap: 12px;
}

.child-activity-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 14px;
  color: var(--text);
  text-align: left;
}

.child-activity-thumb {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff4e6;
  color: var(--primary-dark);
  padding: 0;
  font-weight: 900;
}

.child-activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-activity-main,
.child-history-main {
  min-width: 0;
}

.child-activity-main h3 {
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.category-chip.test {
  background: #e7f1ff;
  color: #1961a8;
}

.category-chip.grade {
  background: #f5e8ff;
  color: #7c3ca3;
}

.category-chip.other {
  background: #e8f7ef;
  color: var(--green);
}

.child-activity-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  white-space: nowrap;
}

.child-activity-side strong,
.child-history-points {
  color: var(--primary-dark);
  font-size: 18px;
}

.child-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.child-quick-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  padding: 16px;
  color: var(--text);
  text-align: left;
}

.child-quick-card span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.child-quick-card strong {
  font-size: 16px;
}

.child-quick-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.child-tip-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  border: 1px solid #ffd9b5;
  border-radius: 24px;
  background: rgba(255, 244, 230, 0.72);
  padding: 18px;
}

.child-tip-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
}

.child-tip-card strong {
  color: var(--primary-dark);
}

.child-tip-card p,
.child-home-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.child-home-note {
  margin-bottom: 8px;
  text-align: center;
}

.child-centered-heading {
  margin: 4px 0 18px;
  text-align: center;
}

.child-history-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.child-history-type-tabs button {
  position: relative;
  min-height: 44px;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
  color: #b8ada4;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.child-history-type-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.child-history-type-badge {
  position: absolute;
  top: -6px;
  right: 12px;
  display: inline-grid;
  min-width: 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #FF0000;
  color: #fff;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.22);
}

.child-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
}

.child-filter-row.is-allowance {
  grid-template-columns: repeat(2, max-content);
  gap: 0;
  width: fit-content;
  border-radius: 999px;
  background: #ece8e4;
  padding: 4px;
}

.child-filter-row button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--filter-bg, #ece8e4);
  color: var(--filter-color, #574235);
  padding: 12px 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.child-filter-row.is-points button {
  width: 100%;
}

.child-filter-row.is-allowance button {
  min-width: 116px;
  min-height: 42px;
  background: transparent;
  color: #8f8176;
  padding: 10px 16px;
}

.child-filter-row .filter-notification-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #FF0000;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.24);
}

.child-history-empty-text {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.child-filter-row .filter-approved {
  --filter-bg: #e9fff1;
  --filter-color: #008d4d;
  --filter-active: #008d4d;
}

.child-filter-row .filter-pending {
  --filter-bg: #fff6dc;
  --filter-color: #b77900;
  --filter-active: #b77900;
}

.child-filter-row .filter-redo {
  --filter-bg: #fff0ee;
  --filter-color: #c7372f;
  --filter-active: #c7372f;
}

.child-filter-row .filter-completed {
  --filter-bg: #e9fff1;
  --filter-color: #008d4d;
  --filter-active: #008d4d;
}

.child-filter-row .filter-rejected {
  --filter-bg: #fff0ee;
  --filter-color: #c7372f;
  --filter-active: #c7372f;
}

.child-filter-row button.active {
  background: var(--filter-active, var(--primary-dark));
  color: #fff;
}

.child-filter-row.is-allowance button.active {
  background: var(--primary);
  color: #fff;
}

.child-page-heading {
  margin-top: 8px;
}

.child-page-heading h1 {
  font-size: 24px;
}

.child-form-card {
  gap: 18px;
  border: 0;
  padding: 22px;
}

.child-form-intro {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.child-form-intro span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.child-form-intro strong {
  font-size: 20px;
  line-height: 1.35;
}

.child-history-card {
  border: 0;
  padding: 18px;
}

.child-history-application-header {
  grid-template-columns: minmax(0, 1fr) auto 18px;
}

.child-history-content {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.child-history-card:not(.child-home-history-card) .child-history-content {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.child-history-redemption-content .child-activity-placeholder {
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.child-history-redemption-content {
  grid-template-columns: minmax(0, 1fr) 18px;
}

.child-history-application-header > .application-card-points {
  justify-self: end;
  align-self: center;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.child-history-card .application-card-points small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
}

.child-history-redemption-content .application-card-title {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.child-history-redemption-content .redemption-flow-line {
  justify-self: end;
  justify-content: end;
}

.child-history-points {
  color: var(--primary-dark);
}

.child-history-points.is-approved {
  color: #008d4d;
}

.child-history-points.is-pending {
  color: var(--primary-dark);
}

.child-history-points.is-redo {
  color: #c7372f;
}

.child-history-score {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.child-history-test-score {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.child-history-point-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.child-history-main h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.child-history-edit-button.application-card-chevron {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.child-history-edit-icon {
  width: 18px;
  height: 18px;
}

.child-history-date {
  margin: 0;
}

.application-card-date-chip,
.application-card-aside time.application-card-date-chip {
  display: inline-grid;
  justify-self: end;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #c9c0b8;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.application-list-date-separator {
  margin: 4px 0 0;
}

.child-history-card .child-parent-comment {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.child-history-card .child-parent-comment.is-redo {
  color: #c7372f;
}

.child-bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 0;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(255, 128, 0, 0.08);
}

.child-bottom-nav .nav-item {
  min-height: 58px;
  border-radius: 16px;
}

.child-bottom-nav .nav-item.active {
  background: transparent;
  color: var(--primary);
}

.child-bottom-nav .nav-item-primary {
  align-self: start;
  width: 68px;
  height: 68px;
  margin: -34px auto 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 128, 0, 0.28);
}

.child-bottom-nav .nav-item-primary.active {
  background: var(--primary);
  color: #fff;
}

.child-bottom-nav .nav-item-primary .nav-icon {
  font-size: 32px;
}

.child-bottom-nav .nav-item-primary span:last-child {
  display: none;
}

.monthly-child-card,
.monthly-reference-form,
.monthly-custom-form {
  margin-bottom: 12px;
}

.monthly-bonus-child-list {
  display: grid;
  gap: 0;
  margin-top: -8px;
}

.monthly-bonus-index-screen {
  background: #fff;
}

.card.monthly-bonus-child-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  justify-items: start;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-align: left;
}

.card.monthly-bonus-child-card > span:not(.child-avatar) {
  overflow: hidden;
  max-width: 100%;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-bonus-child-avatar {
  width: 50px;
  height: 50px;
  font-size: 25px;
}

.monthly-bonus-child-avatar .profile-avatar-icon {
  width: 46px;
  height: 46px;
}

.monthly-bonus-child-chevron {
  justify-self: end;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.monthly-child-card {
  gap: 16px;
  background: linear-gradient(135deg, #fff, #f4faf6);
}

.monthly-bonus-detail-head {
  margin-bottom: 12px;
}

.monthly-bonus-selected-child {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.monthly-bonus-selected-avatar {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.monthly-bonus-selected-avatar .profile-avatar-icon {
  width: 42px;
  height: 42px;
}

.monthly-bonus-setting-form {
  gap: 14px;
  margin-bottom: 18px;
}

.monthly-bonus-setting-form h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.bonus-type-fields {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.bonus-type-fields[hidden],
.bonus-condition-fields[hidden],
[data-achievement-category-section][hidden],
[data-achievement-metric-section][hidden] {
  display: none !important;
}

.bonus-condition-fields {
  display: grid;
  gap: 12px;
}

.bonus-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bonus-choice-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.bonus-choice-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.bonus-condition-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.bonus-condition-divider::before,
.bonus-condition-divider::after {
  content: "";
  height: 1px;
  background: rgba(234, 216, 189, 0.95);
}

.bonus-sentence-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.bonus-sentence-line > input,
.bonus-sentence-line .bonus-select-wrap {
  min-width: 0;
}

.bonus-sentence-line > input {
  flex: 1 1 140px;
  min-height: 46px;
  border: 1px solid rgba(234, 216, 189, 0.95);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--text);
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.bonus-sentence-line > input::placeholder {
  color: rgba(91, 66, 42, 0.42);
}

.bonus-inline-number {
  flex: 0 0 92px !important;
  max-width: 108px;
}

.bonus-day-select {
  min-width: 96px;
}

.bonus-select-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.bonus-select-wrap select {
  width: 100%;
  min-height: 46px;
  appearance: none;
  border: 1px solid rgba(234, 216, 189, 0.95);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--text);
  padding: 10px 38px 10px 12px;
  font-size: 16px;
  font-weight: 700;
}

.bonus-select-icon {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  color: var(--primary);
  pointer-events: none;
}

.bonus-subject-select {
  min-width: 145px;
}

.bonus-mode-select {
  min-width: 156px;
}

.bonus-sentence-note {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.bonus-condition-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.monthly-bonus-condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.monthly-bonus-setting-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  padding: 0 12px;
  background: #fff;
}

.monthly-bonus-setting-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.monthly-bonus-setting-filter button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.monthly-bonus-setting-filter button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.monthly-bonus-setting-row {
  display: grid;
  grid-template-columns: 1fr auto 36px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.monthly-bonus-setting-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.monthly-bonus-setting-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.monthly-bonus-setting-row p span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.monthly-bonus-setting-row > strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.monthly-bonus-setting-row > strong span {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 800;
}

.monthly-bonus-setting-row .rule-other-icon {
  width: 20px;
  height: 20px;
}

.monthly-bonus-setting-empty {
  padding: 18px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.monthly-card-head,
.form-heading {
  display: grid;
  gap: 8px;
}

.monthly-card-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.monthly-card-head h2,
.form-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.monthly-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monthly-form-grid {
  display: grid;
  gap: 14px;
}

.monthly-reference-card {
  border-color: rgba(52, 98, 115, 0.18);
  box-shadow: 0 7px 18px rgba(45, 54, 38, 0.07);
}

.monthly-reference-card h2,
.monthly-history-card h2 {
  font-size: 20px;
}

.monthly-suggestion {
  border-top: 1px solid rgba(217, 222, 210, 0.82);
  border-bottom: 1px solid rgba(217, 222, 210, 0.82);
  padding: 10px 0;
}

.monthly-suggestion strong {
  color: var(--blue);
  font-size: 20px;
}

.monthly-action-row {
  grid-template-columns: 1fr;
}

.monthly-history-list {
  margin-top: 10px;
}

.apply-section {
  display: grid;
  gap: 14px;
}

.child-apply-progress {
  display: grid;
  gap: 8px;
}

.child-apply-progress-text {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.child-apply-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e6d8;
}

.child-apply-progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.2s ease;
}

.child-apply-step {
  display: none;
  gap: 16px;
}

.child-apply-step.is-active {
  display: grid;
}

.child-apply-step-heading {
  display: grid;
  gap: 4px;
}

.child-apply-step-heading span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.child-apply-step-heading strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.child-apply-step-actions {
  display: grid;
  gap: 10px;
}

.child-apply-step-actions.is-first-step {
  gap: 0;
}

.child-apply-back-button[hidden],
.child-apply-next-button[hidden],
.child-apply-submit-button[hidden] {
  display: none !important;
}

.child-apply-next-button,
.child-apply-submit-button {
  min-height: 54px;
}

.child-apply-confirm {
  border: 1px solid #f0dfcf;
  border-radius: 18px;
  background: #fffaf5;
  padding: 14px;
}

.child-apply-confirm-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.child-apply-confirm-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.child-apply-confirm-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.child-apply-confirm-list dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.child-apply-confirm-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.child-apply-confirm-photo-thumb {
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  background: #f3eee8;
}

.child-apply-confirm-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other-task-help {
  display: block;
  text-align: center;
}

#test-score-field.hidden,
#test-rank-field.hidden,
#test-full-score-field.hidden,
#application-photo-field.hidden,
.child-photo-field.hidden,
.child-form-card #test-score-field.hidden,
.child-form-card #test-rank-field.hidden,
.child-form-card #test-full-score-field.hidden,
.child-form-card #application-photo-field.hidden,
.child-form-card .child-photo-field.hidden,
.child-apply-card #test-score-field.hidden,
.child-apply-card #test-rank-field.hidden,
.child-apply-card #test-full-score-field.hidden,
.child-apply-card #application-photo-field.hidden,
.child-apply-card .child-photo-field.hidden {
  display: none !important;
}

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

.parent-application-bulk-actions {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.parent-application-bulk-actions button {
  flex: 1;
}

.parent-application-bulk-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.parent-application-select-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.parent-application-select-control {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
}

.parent-application-select-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.parent-application-select-control span,
.parent-application-select-spacer {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #e1d5c8;
  border-radius: 6px;
  background: #fff;
}

.parent-application-select-control input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
}

.parent-application-select-control input:checked + span::after {
  display: block;
  width: 10px;
  height: 6px;
  margin: 5px auto 0;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}

.parent-application-select-row.is-not-selectable .parent-application-select-spacer {
  border-color: transparent;
  background: transparent;
}

.parent-application-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(37, 33, 28, 0.45);
  padding: 18px;
}

.parent-application-popup-frame {
  position: relative;
  width: min(100%, 430px);
}

.parent-application-popup-close {
  position: absolute;
  top: -46px;
  right: 0;
  display: grid;
  width: 35px;
  min-height: 35px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 0;
}

.parent-application-popup-close-icon {
  width: 35px;
  height: 35px;
  stroke-width: 2.4;
}

.parent-application-popup-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 18px 44px rgba(55, 45, 36, 0.2);
}

.parent-application-popup-preview {
  display: grid;
  gap: 10px;
}

.parent-application-popup-child-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.parent-application-popup-child {
  justify-content: flex-start;
}

.parent-application-popup-comment {
  position: relative;
  margin: 0;
  border-radius: 14px;
  background: #fff3df;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.parent-application-popup-comment::before {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  background: #fff3df;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.parent-application-popup-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.parent-application-popup-result {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.parent-application-popup-photos {
  display: grid;
  gap: 8px;
  order: -1;
}

.parent-application-popup-main-photo {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #f3f1ed;
  padding: 0;
}

.parent-application-popup-main-photo img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.parent-application-popup-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 72px));
  gap: 8px;
}

.parent-application-popup-thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f3f1ed;
  padding: 0;
}

.parent-application-popup-thumb.active {
  border-color: var(--primary);
}

.parent-application-popup-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-application-popup-preview h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.parent-application-popup-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.parent-application-popup-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.parent-application-popup-points span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.parent-application-popup-points strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.parent-application-popup-actions {
  display: grid;
  gap: 8px;
}

.parent-redemption-popup-preview h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.parent-redemption-popup-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 12px;
}

.parent-redemption-popup-flow strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.parent-redemption-popup-flow small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.parent-redemption-popup-flow-icon {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.parent-redemption-handoff {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 10px 0 6px;
  text-align: center;
}

.parent-redemption-handoff h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.parent-redemption-handoff p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.parent-application-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}

.parent-application-type-tabs button {
  position: relative;
  min-height: 44px;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
  color: #b8ada4;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 900;
}

.parent-application-type-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.parent-application-type-badge {
  position: absolute;
  top: -6px;
  right: 0;
  display: inline-grid;
  min-width: 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #FF0000;
  color: #fff;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.22);
}

.parent-application-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
  padding: 0;
}

.parent-application-filter-row button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--filter-bg, #f2ede7);
  color: var(--filter-color, #5d4636);
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.parent-application-filter-row .filter-notification-dot {
  position: absolute;
  top: -2px;
  right: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #FF0000;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.24);
}

.parent-application-filter-row .filter-pending {
  --filter-bg: #fff1dc;
  --filter-color: var(--primary-dark);
  --filter-active: var(--primary-dark);
}

.parent-application-filter-row .filter-test {
  --filter-bg: #fff1dc;
  --filter-color: var(--primary-dark);
  --filter-active: var(--primary-dark);
}

.parent-application-filter-row .filter-grade {
  --filter-bg: #e7f7ee;
  --filter-color: var(--green);
  --filter-active: var(--green);
}

.parent-application-filter-row .filter-other {
  --filter-bg: #f2ede7;
  --filter-color: #5d4636;
  --filter-active: #5d4636;
}

.parent-application-filter-row .filter-approved {
  --filter-bg: #e7f7ee;
  --filter-color: var(--green);
  --filter-active: var(--green);
}

.parent-application-filter-row .filter-completed {
  --filter-bg: #e7f7ee;
  --filter-color: var(--green);
  --filter-active: var(--green);
}

.parent-application-filter-row .filter-redo {
  --filter-bg: #fff0ec;
  --filter-color: var(--red);
  --filter-active: var(--red);
}

.parent-application-filter-row .filter-rejected {
  --filter-bg: #fff0ec;
  --filter-color: var(--red);
  --filter-active: var(--red);
}

.parent-application-filter-row button.active {
  background: var(--filter-active, var(--primary-dark));
  color: #fff;
}

.parent-rule-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  margin: 18px 0 14px;
  padding: 0;
}

.parent-rule-filter-row button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
  color: #b8ada4;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 900;
}

.parent-rule-filter-row button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.application-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.application-card:focus-visible {
  outline: 3px solid rgba(255, 128, 0, 0.28);
  outline-offset: 2px;
}

.application-card-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
}

.application-card-child {
  display: grid;
  align-self: center;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}

.application-card-child-name {
  overflow: hidden;
  max-width: 54px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-card-avatar {
  width: 44px;
  height: 44px;
  color: var(--primary-dark);
}

.application-card-title {
  display: grid;
  min-height: 56px;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.application-card h2 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.application-card-header h2 {
  margin: 0;
}

.application-card-score-line {
  min-width: 0;
}

.application-card-score-line:empty {
  display: none;
}

.application-card-grade-summary {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.application-card-grade-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.application-card-grade-value {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.redemption-application-card .application-card-title {
  min-height: 56px;
}

.redemption-flow-line {
  display: inline-grid;
  grid-template-columns: auto 22px auto;
  gap: 8px;
  align-items: baseline;
  justify-content: start;
  min-width: 0;
}

.redemption-flow-line strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.redemption-flow-line strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.redemption-exchange-item-name {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-flow-icon {
  align-self: center;
  width: 22px;
  height: 22px;
  color: var(--primary);
  stroke-width: 2.4;
}

.application-card-score-line p {
  min-width: 0;
}

.application-card-score {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.application-card-score-unit {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.application-card-aside strong {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.application-card-aside strong small {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 500;
}

.application-card-aside {
  position: relative;
  display: grid;
  justify-items: end;
  align-self: stretch;
  min-width: 52px;
  gap: 7px;
  text-align: right;
}

.application-card-aside time {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.application-card-header .status-pill {
  justify-self: end;
  margin-top: 0;
}

.application-card-points.pending {
  color: var(--primary-dark);
}

.application-card-points.approved,
.application-card-points.completed {
  color: var(--green);
}

.application-card-points.returned,
.application-card-points.rejected,
.application-card-points.canceled,
.application-card-points.approval_canceled {
  color: var(--red);
}

.application-card-chevron {
  align-self: center;
  width: 18px;
  height: 18px;
  color: #b98a5a;
}

.application-card.monthly-reference-card h2,
.application-card.monthly-history-card h2 {
  font-size: 20px;
}

.application-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.thumbnail-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.thumbnail-button {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.application-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.application-meta strong {
  color: var(--primary-dark);
  font-size: 16px;
}

.application-meta.monthly-suggestion strong {
  color: var(--blue);
  font-size: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.application-card-header .status-pill.pending {
  background: var(--primary-dark);
  color: #fff;
}

.application-card-header .status-pill.approved {
  background: var(--green);
  color: #fff;
}

.application-card-header .status-pill.completed {
  background: var(--green);
  color: #fff;
}

.application-card-header .status-pill.returned,
.application-card-header .status-pill.rejected,
.application-card-header .status-pill.canceled,
.application-card-header .status-pill.approval_canceled {
  background: var(--red);
  color: #fff;
}

.status-pill.pending {
  background: #fff1dc;
  color: var(--primary-dark);
}

.status-pill.approved {
  background: #e7f7ee;
  color: var(--green);
}

.status-pill.returned,
.status-pill.rejected,
.status-pill.canceled,
.status-pill.approval_canceled {
  background: #fff0ec;
  color: var(--red);
}

.point-history-card {
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
  cursor: default;
}

.point-history-list {
  width: calc(100% + 36px);
  margin-top: -24px;
  margin-right: -18px;
  margin-left: -18px;
}

.point-history-screen .page-heading {
  position: relative;
  z-index: 0;
}

.point-history-screen {
  --point-history-sticky-top: -25px;
}

.point-history-month-section {
  display: grid;
  gap: 0;
}

.point-history-card + .point-history-card {
  margin-top: 5px;
}

.point-history-month-header {
  position: sticky;
  top: var(--point-history-sticky-top);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.point-history-month-header strong {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.point-history-month-header strong.is-positive {
  color: var(--green);
}

.point-history-month-header strong.is-negative {
  color: var(--red);
}

.point-history-month-header strong.is-neutral {
  color: var(--muted);
}

.point-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.point-history-card h2,
.point-history-card strong {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.point-history-card h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-history-card strong {
  justify-self: end;
  white-space: nowrap;
}

.point-history-card strong.is-positive {
  color: var(--green);
}

.point-history-card strong.is-negative {
  color: var(--red);
}

.point-history-card strong.is-neutral {
  color: var(--muted);
}

.point-history-sub-row time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.point-history-card .status-pill {
  font-weight: 600;
}

.parent-notification-list-head {
  position: fixed;
  top: calc(var(--fixed-header-space) - 25px);
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 440px);
  margin: 0;
  padding: 4px 18px 8px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
}

.notification-screen > .parent-settings-topbar {
  top: 0;
}

.notification-list {
  margin-top: 0;
  padding-bottom: 24px;
}

.parent-notification-read-all-button {
  min-height: 30px;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.parent-notification-read-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(54px, auto));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(234, 216, 189, 0.74);
  border-radius: 999px;
  background: #fff;
}

.parent-notification-read-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.parent-notification-read-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.notification-empty-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 22px 16px;
  text-align: center;
}

.screen.notification-screen,
.home-screen.child-theme.notification-screen {
  background: #fff;
}

.screen.home-screen.notification-screen {
  padding-top: calc(var(--fixed-header-space) + 52px);
  padding-bottom: var(--bottom-nav-height);
}

.notification-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.notification-card.no-avatar {
  grid-template-columns: minmax(0, 1fr);
}

.notification-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(92, 59, 34, 0.1);
}

.notification-card.from-system .notification-avatar {
  color: var(--brown);
}

.notification-child-avatar {
  width: 42px;
  height: 42px;
  color: var(--primary);
}

.notification-child-avatar .profile-avatar-icon {
  width: 30px;
  height: 30px;
}

.notification-avatar-icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.5;
}

.notification-message-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: end;
  gap: 3px;
  min-width: 0;
  justify-items: stretch;
}

.notification-bubble {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  border-radius: 4px 18px 18px;
  background: #fff;
  padding: 12px 13px;
  color: var(--text);
}

.notification-bubble::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.notification-card.no-avatar .notification-bubble {
  border-radius: 18px;
}

.notification-card.no-avatar .notification-bubble::before {
  display: none;
}

.notification-card.unread .notification-bubble {
  background: #fff7e8;
}

.notification-card:not(.unread) .notification-bubble {
  background: #f4f4f4;
}

.notification-title-row {
  display: block;
  min-width: 0;
}

.notification-title-row h2 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-bubble p {
  margin: 0;
  color: #6a5547;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.notification-read-label {
  display: inline-grid;
  justify-self: end;
  align-self: end;
  min-width: 24px;
  min-height: 22px;
  place-items: center;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.notification-read-label.unread {
  background: transparent;
  color: #c9c0b8;
}

.notification-read-label.read {
  background: transparent;
  color: #c9c0b8;
}

.notification-action-button {
  justify-self: start;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.notification-date-separator {
  display: inline-grid;
  justify-self: center;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #c9c0b8;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.notification-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(37, 33, 28, 0.22);
  padding: 18px;
}

.notification-action-panel {
  display: grid;
  width: min(100%, 390px);
  margin: 0 auto;
  border-radius: 18px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(68, 45, 28, 0.22);
}

.notification-action-preview {
  display: grid;
  gap: 6px;
  padding: 18px 16px 16px;
}

.notification-action-preview-head {
  display: block;
}

.notification-action-preview h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.notification-action-preview strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.notification-action-preview p {
  margin: 0;
  color: #6a5547;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.notification-action-buttons {
  display: grid;
  border-top: 1px solid var(--line);
}

.notification-action-panel button {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--brown);
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.notification-action-panel button:last-child {
  border-bottom: 0;
}

.notification-action-panel button.danger {
  background: transparent;
  color: var(--red);
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(37, 33, 28, 0.72);
  padding: 18px;
}

.photo-modal-content {
  display: grid;
  gap: 10px;
  width: min(100%, 420px);
  max-height: 88vh;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.photo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-modal-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-modal-content img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.admin-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f7f8fb;
}

.admin-login-page {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px;
}

.admin-login-card {
  width: min(100%, 440px);
}

.admin-sidebar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  border-right: 1px solid #e4e7ee;
  background: #fff;
  padding: 24px;
}

.admin-sidebar-content {
  display: grid;
  align-content: start;
  gap: 24px;
}

.admin-sidebar-logout {
  justify-self: stretch;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
}

.admin-nav button:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.admin-main {
  display: grid;
  align-content: start;
  gap: 20px;
  overflow: auto;
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stat strong {
  font-size: 30px;
}

.admin-panel {
  overflow: auto;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-panel-header h2 {
  margin-bottom: 6px;
}

.admin-panel-header p,
.admin-supabase-status,
.admin-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e4e7ee;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-table td {
  font-size: 14px;
}

.admin-message-page {
  color: #2f3742;
}

.admin-message-flash {
  margin-bottom: 14px;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
}

.admin-message-compose-panel {
  width: 540px;
  max-width: 100%;
  margin-top: 0;
}

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

.admin-notification-delivery-setting {
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-notification-delivery-setting > .field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.admin-notification-delivery-options {
  display: grid;
  gap: 10px;
}

.admin-notification-radio-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.admin-notification-radio-row input[type="radio"],
.admin-notification-radio-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-notification-radio-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid #8c8f94;
  border-radius: 50%;
  background: #fff;
}

.admin-notification-radio-row input[type="radio"]:checked + .admin-notification-radio-mark::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.admin-notification-check-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  background: #fff;
}

.admin-notification-radio-row input[type="checkbox"]:checked + .admin-notification-check-mark {
  border-color: var(--primary);
  background: var(--primary);
}

.admin-notification-radio-row input[type="checkbox"]:checked + .admin-notification-check-mark::after {
  width: 10px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.admin-notification-scheduled-row {
  align-items: center;
  flex-wrap: wrap;
}

.admin-notification-date-spacer {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.admin-notification-scheduled-row input[type="date"],
.admin-notification-scheduled-row input[type="time"] {
  width: 180px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.admin-notification-scheduled-row input[type="time"] {
  width: 140px;
}

.admin-notification-scheduled-row input:disabled {
  border-color: #e5e7eb;
  background: #ededee;
  color: #9ca3af;
}

.admin-message-create-button {
  width: 112px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.admin-message-list-shell {
  margin-top: 26px;
  overflow-x: auto;
  background: #fff;
}

.admin-message-tabs-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid #dde1e8;
  padding-right: 16px;
}

.admin-message-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.admin-message-tabs-row .admin-message-create-button {
  margin: 0 0 10px;
}

.admin-message-tabs button {
  position: relative;
  width: auto;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #60646c;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 600;
}

.admin-message-tabs button.active {
  border: 1px solid #d1d5db;
  border-bottom: 0;
  color: var(--primary);
}

.admin-message-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #fff;
  content: "";
}

.admin-message-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 10px auto;
  padding: 0;
  font-size: 13px;
}

.admin-message-filters input {
  width: 150px;
  min-height: 36px;
  border: 1px solid #8f949c;
  border-radius: 4px;
  background: #fff;
  color: #2f3742;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.admin-message-filters input::placeholder {
  color: #b8bec7;
}

.admin-message-filters input[type="date"] {
  width: 150px;
}

.admin-message-search-button {
  width: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.admin-message-search-icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.admin-message-reset-button {
  width: auto;
  min-height: 36px;
  border: 1px solid #8f949c;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.admin-message-table {
  display: block;
  width: max(100%, 1180px);
  min-width: 1180px;
  border-collapse: collapse;
}

.admin-message-table thead,
.admin-message-table tbody {
  display: block;
}

.admin-message-table tbody {
  max-height: calc(100vh - 332px);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-message-table tr {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 156px 34px 156px 156px 56px;
  align-items: stretch;
}

.admin-message-table thead tr {
  align-items: stretch;
}

.admin-message-table th {
  background: #f4f4f5;
  color: #6a6a6a;
  padding: 9px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.admin-message-table th,
.admin-message-table td {
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.admin-message-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 22px;
  color: #3f4650;
  font-size: 15px;
  font-weight: 400;
}

.admin-message-table th:nth-child(2),
.admin-message-table th:nth-child(4),
.admin-message-table th:nth-child(5),
.admin-message-table td:nth-child(2),
.admin-message-table td:nth-child(4),
.admin-message-table td:nth-child(5) {
  white-space: nowrap;
}

.admin-message-table th:nth-child(2),
.admin-message-table th:nth-child(4),
.admin-message-table th:nth-child(5),
.admin-message-table td:nth-child(2),
.admin-message-table td:nth-child(4),
.admin-message-table td:nth-child(5) {
  width: 156px;
  justify-content: center;
  text-align: center;
}

.admin-message-table th:first-child,
.admin-message-table td:first-child {
  justify-content: flex-start;
}

.admin-message-table th:nth-child(3),
.admin-message-table td:nth-child(3) {
  width: 34px;
  justify-content: center;
  text-align: center;
}

.admin-message-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  line-height: 1;
}

.admin-message-sort-button.active {
  color: var(--primary);
}

.admin-message-sort-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.admin-message-title-link {
  border: 0;
  background: transparent;
  color: #3f4650;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-message-content-cell {
  max-width: 520px;
  min-width: 360px;
}

.admin-message-content-cell p {
  display: block;
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 15px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-message-row-menu {
  justify-content: center;
  color: #30343b;
  text-align: center;
}

.admin-message-row-button {
  display: inline-grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
}

.admin-message-row-button:hover {
  background: #f3f4f6;
}

.admin-message-row-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.admin-message-empty {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #fff;
  color: #6a6a6a;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.admin-message-table td.admin-message-empty-cell {
  grid-column: 1 / -1;
  display: block;
  padding: 0;
}

.admin-message-date-separator {
  width: 34px;
  color: #4b5563;
  text-align: center;
}

.admin-subtext {
  display: block;
  margin-top: 4px;
}

.admin-supabase-status {
  margin-bottom: 12px;
}

.admin-supabase-table {
  min-width: 980px;
}

.admin-snapshot-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-snapshot-summary span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.admin-json-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 900;
}

.admin-json-details pre {
  width: min(72vw, 760px);
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 16px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 440px);
  padding: 8px 6px max(8px, env(safe-area-inset-bottom));
  transform: translateX(50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-item {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 54px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.nav-item > span:last-child {
  max-width: 100%;
  white-space: nowrap;
}

.nav-item.active {
  background: transparent;
  color: var(--primary);
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.nav-icon .lucide-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.nav-badge {
  position: absolute;
  right: -10px;
  top: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 0 4px;
}

.hidden {
  display: none;
}

@media (min-width: 720px) {
  :root {
    --fixed-shell-top: 24px;
  }

  body {
    padding: 24px 0;
  }

  body:has(.admin-shell) {
    padding: 0;
  }

  .phone-shell {
    min-height: calc(100vh - 48px);
    border-radius: 18px;
    overflow: hidden;
  }

  .screen {
    min-height: calc(100vh - 48px);
  }

  .home-screen {
    height: calc(100vh - 48px);
    min-height: calc(100vh - 48px);
  }
}
