:root {
  --bg: #f5efe4;
  --ink: #1b1a17;
  --muted: #60594f;
  --paper: rgba(255, 251, 244, 0.82);
  --line: rgba(76, 61, 43, 0.12);
  --shadow: 0 24px 60px rgba(81, 55, 19, 0.14);
  --coral: #ef7f5b;
  --mustard: #f2b84a;
  --mint: #8fd0c6;
  --leaf: #4c8b6c;
  --berry: #b7486c;
  --sky: #b7d6ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.landing-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.role-card,
.gate-card {
  background: var(--paper);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.role-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 28px;
  border-radius: 30px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.role-card h2 {
  margin: 12px 0 8px;
  font-size: 2rem;
}

.role-card p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.65;
  color: var(--muted);
}

.role-card.child-role {
  background:
    radial-gradient(circle at top right, rgba(242, 184, 74, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.95), rgba(255, 240, 220, 0.78));
}

.role-card.parent-role {
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at top right, rgba(183, 72, 108, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(247, 249, 255, 0.95), rgba(230, 237, 251, 0.84));
}

.role-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 1rem;
}

.role-figure,
.role-lock {
  margin-top: 30px;
  height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(76, 61, 43, 0.08);
  background: rgba(255, 255, 255, 0.58);
  position: relative;
  overflow: hidden;
}

.child-figure::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(143, 208, 198, 0.5), rgba(183, 214, 239, 0.35));
}

.mini-avatar-face,
.mini-avatar-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mini-avatar-face {
  top: 46px;
  width: 74px;
  height: 74px;
  border-radius: 36px;
  background: #ffd6b5;
}

.mini-avatar-body {
  top: 108px;
  width: 110px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ef7f5b, #cf5f3a);
}

.lock-top,
.lock-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lock-top {
  top: 40px;
  width: 90px;
  height: 76px;
  border: 14px solid #4f6287;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
}

.lock-body {
  top: 92px;
  width: 136px;
  height: 100px;
  border-radius: 26px;
  background: linear-gradient(180deg, #4f6287, #2f3d5d);
}

.gate-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 18, 24, 0.48);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.gate-overlay[hidden] {
  display: none !important;
}

.gate-card {
  width: min(460px, 100%);
  position: relative;
  padding: 28px;
  border-radius: 28px;
}

.close-gate {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(76, 61, 43, 0.08);
  font-size: 1.4rem;
}

.gate-help,
.gate-hint {
  color: var(--muted);
}

.gate-form {
  margin-top: 18px;
}

.gate-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.gate-form input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(76, 61, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.primary-action {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #1b1a17;
  color: #fff;
  font-weight: 800;
}

.gate-error {
  margin: 8px 0 0;
  color: var(--berry);
  font-size: 0.92rem;
  font-weight: 700;
}

.page-body {
  min-height: 100vh;
}

.inner-page {
  padding-top: 24px;
}

.back-link {
  display: inline-flex;
  color: var(--berry);
  text-decoration: none;
  font-weight: 700;
}

.single-page-grid {
  display: block;
}

.page-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.ghost-link {
  text-decoration: none;
  color: inherit;
}

.calendar-card,
.day-cell,
.week-day,
.today-focus,
.today-focus > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.calendar-card {
  padding: 20px;
  margin-bottom: 18px;
}

.today-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.today-view-head strong,
.time-badge strong {
  display: block;
}

.today-view-head span,
.time-badge small {
  color: var(--muted);
}

.time-badge {
  min-width: 128px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.today-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  margin-top: 16px;
}

.today-character,
.today-quest-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.today-character {
  padding: 16px;
}

.today-character-stage {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 237, 210, 0.7), rgba(229, 242, 255, 0.88));
}

.today-character-stage .avatar-backdrop {
  inset: 14px 14px auto;
  height: 120px;
}

.today-character-stage .avatar-body {
  top: 56%;
}

.today-character-caption {
  margin-top: 14px;
}

.today-character-caption strong,
.today-character-caption span {
  display: block;
}

.today-character-caption span {
  margin-top: 6px;
  color: var(--muted);
}

.character-open-button {
  margin-top: 12px;
}

.today-quest-card {
  padding: 20px;
}

.character-screen,
.character-stage-panel,
.character-info-panel,
.character-progress-card,
.info-panel,
.gear-slot {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.character-screen {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 24px;
}

.character-modal {
  width: min(1120px, 100%);
}

.character-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.character-head h2,
.info-panel h3 {
  margin: 0;
}

.character-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  margin-top: 16px;
}

.character-stage-panel,
.character-info-panel {
  border-radius: 20px;
  padding: 16px;
}

.character-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 237, 210, 0.7), rgba(229, 242, 255, 0.88));
}

.character-stage .avatar-backdrop {
  inset: 18px 18px auto;
  height: 150px;
}

.character-stage .avatar-body {
  top: 54%;
}

.gear-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gear-slot {
  border-radius: 12px;
  padding: 12px;
}

.gear-slot span,
.gear-slot strong {
  display: block;
}

.gear-slot span {
  font-size: 0.82rem;
  color: var(--muted);
}

.gear-slot strong {
  margin-top: 6px;
}

.character-statbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.character-statbar > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.character-statbar span,
.character-statbar strong {
  display: block;
}

.character-statbar span {
  color: var(--muted);
  font-size: 0.84rem;
}

.character-statbar strong {
  margin-top: 8px;
}

.character-progress-card {
  margin-top: 14px;
  border-radius: 16px;
  padding: 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.info-panel {
  border-radius: 16px;
  padding: 16px;
}

.info-list {
  margin: 14px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.info-list dt,
.info-list dd {
  margin: 0;
}

.info-list dt {
  color: var(--muted);
}

.calendar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.calendar-head h2 {
  margin: 0;
}

.view-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(76, 61, 43, 0.06);
}

.view-button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}

.view-button.is-active {
  background: #1b1a17;
  color: #fff;
}

.calendar-monthbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 14px;
}

.calendar-monthbar span {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.month-labels {
  margin-bottom: 10px;
}

.month-labels span {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--muted);
}

.day-cell {
  min-height: 94px;
  padding: 12px;
  border-radius: 10px;
}

.day-cell span,
.day-cell small,
.week-day span,
.week-day small {
  display: block;
}

.day-cell span,
.week-day span {
  font-weight: 800;
}

.day-cell small,
.week-day small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.day-cell.muted {
  opacity: 0.45;
}

.day-cell.today,
.week-day.is-today {
  border-color: rgba(183, 72, 108, 0.35);
  background: rgba(183, 72, 108, 0.08);
}

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

.week-day {
  min-height: 110px;
  padding: 14px;
  border-radius: 10px;
}

.week-timeline {
  display: grid;
  grid-template-columns: 84px repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.timeline-corner,
.timeline-dayhead,
.time-label,
.time-slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.timeline-corner {
  min-height: 64px;
  background: rgba(76, 61, 43, 0.04);
}

.timeline-dayhead {
  min-height: 64px;
  padding: 12px;
}

.timeline-dayhead span,
.timeline-dayhead strong {
  display: block;
}

.timeline-dayhead span {
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline-dayhead strong {
  margin-top: 6px;
}

.time-label {
  display: grid;
  place-items: center;
  min-height: 88px;
  font-weight: 800;
  color: var(--muted);
}

.time-slot {
  min-height: 88px;
  padding: 8px;
}

.time-slot.is-today,
.timeline-dayhead.is-today {
  border-color: rgba(183, 72, 108, 0.35);
  background: rgba(183, 72, 108, 0.08);
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-chip.mint {
  background: rgba(143, 208, 198, 0.35);
}

.schedule-chip.amber {
  background: rgba(242, 184, 74, 0.34);
}

.schedule-chip.coral {
  background: rgba(239, 127, 91, 0.26);
}

.schedule-chip.berry {
  background: rgba(183, 72, 108, 0.18);
}

.schedule-chip.sky {
  background: rgba(183, 214, 239, 0.45);
}

.calendar-item-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-inline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.day-cell small {
  margin-top: 8px;
}

.calendar-item-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.calendar-item-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1b1a17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.calendar-item-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-item-badge.schedule-open-trigger,
.schedule-chip.schedule-open-trigger {
  cursor: pointer;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.calendar-item-badge.schedule-open-trigger:hover,
.schedule-chip.schedule-open-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(27, 26, 23, 0.08);
  background-color: rgba(255, 255, 255, 0.88) !important;
}

.schedule-detail-modal {
  width: min(760px, 100%);
}

.schedule-detail-panels {
  margin-top: 18px;
}

.schedule-detail-note {
  margin-top: 14px;
}

.schedule-detail-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.today-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  margin-top: 14px;
}

.today-focus > div {
  padding: 16px;
}

.today-focus strong {
  display: block;
}

.today-focus p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--paper);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
}

.hero-copy {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(239, 127, 91, 0.25), rgba(242, 184, 74, 0.1));
  border-radius: 40px;
  transform: rotate(18deg);
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  color: var(--berry);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span,
.coin-badge,
.status-pill,
.ghost-button,
.xp-presets button {
  border-radius: 999px;
}

.hero-badges span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(76, 61, 43, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 237, 0.88)),
    linear-gradient(135deg, rgba(183, 214, 239, 0.35), rgba(143, 208, 198, 0.22));
}

.hero-meter,
.xp-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(76, 61, 43, 0.08);
  overflow: hidden;
}

.hero-meter-fill,
.xp-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.hero-meter-fill {
  width: 74%;
  background: linear-gradient(90deg, var(--coral), var(--mustard));
}

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

.hero-stats div,
.summary-card,
.parent-block,
.avatar-stage,
.quest-panel,
.shop-card,
.timeline-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.panel {
  padding: 24px;
}

.panel-parent {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.95), rgba(255, 245, 230, 0.78));
}

.panel-child {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.95), rgba(242, 246, 255, 0.86));
}

.panel-head,
.block-head,
.summary-row,
.parent-layout,
.child-top,
.child-bottom,
.form-split,
.shop-grid,
.shop-admin-layout,
.shop-meta-row {
  display: grid;
  gap: 16px;
}

.panel-head,
.block-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.panel-head h2,
.block-head h3 {
  margin: 0;
}

.ghost-button {
  padding: 12px 16px;
  border: 1px solid rgba(76, 61, 43, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.coin-badge {
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffe083, #f9b65e);
  font-weight: 800;
}

.summary-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.summary-card {
  padding: 18px;
}

.summary-card span,
.summary-card small {
  display: block;
}

.summary-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.8rem;
}

.summary-card small {
  color: var(--muted);
}

.summary-card.warm {
  background: linear-gradient(135deg, rgba(239, 127, 91, 0.16), rgba(255, 255, 255, 0.75));
}

.summary-card.mint {
  background: linear-gradient(135deg, rgba(143, 208, 198, 0.22), rgba(255, 255, 255, 0.78));
}

.summary-card.gold {
  background: linear-gradient(135deg, rgba(242, 184, 74, 0.2), rgba(255, 255, 255, 0.78));
}

.parent-layout {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 16px;
}

.parent-block,
.quest-panel,
.shop-card,
.timeline-card,
.avatar-stage {
  padding: 20px;
}

.approval-list,
.quest-list,
.timeline {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.approval-list li,
.quest,
.timeline li {
  display: grid;
  gap: 12px;
}

.approval-list li,
.quest {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.approval-list li:last-child,
.quest:last-child {
  border-bottom: 0;
}

.approval-list p,
.quest p,
.timeline li {
  margin: 4px 0 0;
  color: var(--muted);
}

.inline-actions {
  display: flex;
  gap: 8px;
}

.approve,
.reject,
.quest button,
.item-card button {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.approve,
.quest button {
  background: var(--leaf);
  color: #fff;
}

.reject {
  background: rgba(183, 72, 108, 0.14);
  color: var(--berry);
}

.status-pill {
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(76, 139, 108, 0.12);
  color: var(--leaf);
}

.task-form {
  margin-top: 16px;
}

.shop-admin-layout {
  grid-template-columns: 0.92fr 1.08fr;
  margin-top: 16px;
}

.shop-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.shop-admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.shop-admin-card strong,
.shop-admin-card p,
.shop-admin-card span {
  display: block;
}

.shop-admin-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.shop-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(76, 61, 43, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-meta-row {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.shop-preview-box {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.shop-preview-box strong,
.shop-preview-box span,
.shop-preview-box p {
  display: block;
}

.shop-preview-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.task-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.task-form input,
.task-form select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(76, 61, 43, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.weekday-picker {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.weekday-picker-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.weekday-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.weekday-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(76, 61, 43, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.weekday-chip input {
  margin: 0;
}

.task-form-actions {
  display: flex;
  align-items: end;
}

.color-input {
  min-height: 56px;
  padding: 8px;
}

.color-preview-wrap {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
}

.color-preview-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.task-color-preview {
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(76, 61, 43, 0.12);
}

.form-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--berry);
  font-weight: 700;
}

.form-split {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.xp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.xp-presets span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--berry);
}

.xp-presets button {
  border: 1px solid rgba(76, 61, 43, 0.08);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.88);
}

.child-top {
  grid-template-columns: 0.94fr 1.06fr;
  margin-top: 18px;
}

.avatar-stage {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 237, 210, 0.7), rgba(229, 242, 255, 0.88));
}

.avatar-backdrop {
  position: absolute;
  inset: 20px 20px auto;
  height: 180px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 100%, rgba(76, 139, 108, 0.35), transparent 50%),
    linear-gradient(180deg, #dff5ff, #f7f2cb);
}

.avatar-body {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 170px;
  height: 230px;
  transform: translate(-50%, -50%);
}

.avatar-face,
.avatar-suit,
.avatar-boots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-face {
  top: 0;
  width: 92px;
  height: 92px;
  border-radius: 42px;
  background: #ffd6b5;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.05);
}

.avatar-face::before,
.avatar-face::after {
  content: "";
  position: absolute;
  top: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #302521;
}

.avatar-face::before {
  left: 24px;
}

.avatar-face::after {
  right: 24px;
}

.avatar-suit {
  top: 84px;
  width: 132px;
  height: 108px;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, #ef7f5b, #cf5f3a);
}

.avatar-boots {
  top: 184px;
  width: 120px;
  height: 34px;
  border-radius: 18px;
  background: #3d4f75;
}

.level-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.level-card p,
.level-card small {
  margin: 0;
}

.level-card strong {
  display: block;
  margin: 4px 0 10px;
  font-size: 1.7rem;
}

.xp-bar-fill {
  width: 64%;
  background: linear-gradient(90deg, #7cc9a7, #f2b84a);
}

.quest.done span,
.quest.pending span {
  font-size: 0.86rem;
  font-weight: 800;
}

.quest.done span {
  color: var(--leaf);
}

.quest.pending span {
  color: var(--berry);
}

.quest.active {
  background: rgba(242, 184, 74, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.child-bottom {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.inventory-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.inventory-item,
.inventory-empty,
.approval-reward-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
}

.inventory-item strong,
.inventory-item p {
  display: block;
}

.inventory-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.inventory-empty {
  padding: 16px;
  border-radius: 16px;
  color: var(--muted);
}

.approval-reward-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
}

.approval-reward-select,
.approval-reward-qty {
  width: 100%;
  border: 1px solid rgba(76, 61, 43, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}

.shop-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.item-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  text-align: center;
}

.item-card strong,
.item-card p {
  display: block;
}

.item-card p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.item-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 22px;
}

.item-icon.hat {
  background: linear-gradient(135deg, #fde483, #ef7f5b);
}

.item-icon.cape {
  background: linear-gradient(135deg, #b7486c, #ef7f5b);
}

.item-icon.bg {
  background: linear-gradient(135deg, #8fd0c6, #b7d6ef);
}

.item-card button {
  width: 100%;
  background: #1b1a17;
  color: #fff;
}

.timeline {
  counter-reset: steps;
  margin-top: 16px;
}

.timeline li {
  position: relative;
  padding: 14px 0 14px 54px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--mustard));
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero,
  .dashboard-grid,
  .parent-layout,
  .child-top,
  .child-bottom,
  .shop-admin-layout {
    grid-template-columns: 1fr;
  }

  .summary-row,
  .shop-grid,
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .week-timeline {
    grid-template-columns: 84px repeat(4, minmax(0, 1fr));
  }

  .today-layout {
    grid-template-columns: 1fr;
  }

  .character-grid,
  .info-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .parent-block,
  .quest-panel,
  .shop-card,
  .timeline-card,
  .avatar-stage {
    padding: 18px;
  }

  .summary-row,
  .form-split,
  .shop-grid,
  .week-grid,
  .today-focus,
  .month-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .approval-list li,
  .quest {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .inventory-item,
  .approval-reward-row {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    justify-content: flex-start;
  }

  .page-topline,
  .calendar-head,
  .calendar-monthbar,
  .today-view-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topline-actions,
  .shop-meta-row {
    grid-template-columns: 1fr;
  }

  .character-head,
  .character-statbar,
  .gear-slots {
    grid-template-columns: 1fr;
  }

  .week-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-corner {
    display: none;
  }

  .time-label {
    min-height: auto;
    padding: 10px 14px;
    justify-content: start;
  }
}
