:root {
  --v3-paper: #f6f1e8;
  --v3-sheet: #fffdf8;
  --v3-ink: #20312d;
  --v3-muted: #6f7b76;
  --v3-forest: #173f38;
  --v3-green: #276a5b;
  --v3-mint: #e4eee9;
  --v3-coral: #b95643;
  --v3-line: rgba(32, 49, 45, .13);
  --v3-shadow: 0 22px 70px rgba(45, 38, 27, .1);
}

.parent-shell { color: var(--v3-ink); background: var(--v3-paper); }
.parent-shell .parent-app { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: none; }
.parent-shell .app-sidebar { width: 236px; padding: 28px 20px 20px; color: #f8f2e8; background: var(--v3-forest); }
.parent-shell .brand-lockup strong,
.parent-shell .app-topbar h1,
.parent-shell .overview-hero h2,
.parent-shell .current-mode h3,
.parent-shell .content-section h2,
.parent-shell .surface-panel h2 { font-family: "STSong", "Songti SC", Georgia, serif; }
.parent-shell .brand-lockup span,
.parent-shell .family-label,
.parent-shell .family-device,
.parent-shell .sidebar-user span { color: #bcd0ca; }
.parent-shell .family-switcher { border-color: rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.parent-shell .side-nav { gap: 6px; }
.parent-shell .side-nav-item { min-height: 46px; border-radius: 13px; color: #cbd9d5; }
.parent-shell .side-nav-item.active { color: var(--v3-forest); background: #f5ede0; }
.parent-shell .side-nav-item.active .nav-glyph { color: inherit; background: transparent; }
.parent-shell .side-nav-item[data-view-target="rewards"],
.parent-shell .side-nav-item[data-view-target="activity"],
.parent-shell .side-nav-item[data-view-target="support"],
.parent-shell .side-nav-item[data-view-target="settings"] { display: none; }
.parent-shell .side-nav-item[data-view-target="overview"] { order: 1; }
.parent-shell .side-nav-item[data-view-target="strategy"] { order: 2; }
.parent-shell .side-nav-item[data-view-target="report"] { order: 3; }
.parent-shell .side-nav-item[data-view-target="alerts"] { order: 4; }
.parent-shell .mobile-more-trigger { display: flex; }
.parent-shell .mobile-more-trigger { order: 5; }
.parent-shell .sidebar-actions { border-color: rgba(255,255,255,.12); }
.parent-shell .sidebar-action { color: #cbd9d5; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.parent-shell .app-main { margin-left: 0; padding: 32px clamp(24px, 5vw, 72px) 72px; }
.parent-shell .app-topbar { max-width: 1180px; margin: 0 auto; padding: 0; border: 0; background: transparent; }
.parent-shell .app-view { max-width: 1180px; margin-inline: auto; }
.parent-shell .overview-hero { grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); overflow: hidden; border: 1px solid var(--v3-line); border-radius: 30px; background: var(--v3-sheet); box-shadow: var(--v3-shadow); }
.parent-shell .hero-copy { padding: clamp(30px,5vw,58px); }
.parent-shell .child-avatar { width: 58px; height: 58px; border-radius: 20px; background: var(--v3-green); }
.parent-shell .hero-copy h2 { margin: 0; font-size: clamp(30px,4vw,48px); font-weight: 600; letter-spacing: -.04em; }
.parent-shell .online-badge { margin-top: 8px; color: var(--v3-green); background: transparent; padding: 0; }
.parent-shell .hero-meta { color: var(--v3-muted); }
.parent-shell .guardian-note { margin: 28px 0 0; padding: 0; color: #4e5e59; background: transparent; border: 0; }
.parent-shell .current-mode { display: block; margin-top: 30px; padding: 26px 0 0; color: var(--v3-ink); background: transparent !important; border-top: 1px solid var(--v3-line); border-radius: 0; }
.parent-shell .current-mode .mode-kicker { color: var(--v3-green); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.parent-shell .current-mode h3 { margin: 6px 0 8px; font-size: 28px; }
.parent-shell .current-mode p { color: var(--v3-muted); }
.parent-shell .arrangement-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--v3-muted); font-size: 12px; }
.parent-shell .arrangement-meta strong { color: var(--v3-forest); font: 600 30px/1 Georgia, serif; }
.parent-shell .primary-button { background: var(--v3-forest); }
.parent-shell .danger-button { color: #853c30; background: #f6e4df; border-color: #e5c2b9; }
.parent-shell .hero-aside { display: flex; flex-direction: column; padding: 34px; background: var(--v3-mint); border-left: 1px solid var(--v3-line); border-radius: 0; }
.parent-shell .guardian-facts { display: grid; gap: 24px; margin-top: 26px; }
.parent-shell .guardian-fact { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 12px; }
.parent-shell .fact-mark { display: grid; width: 36px; height: 36px; place-items: center; color: var(--v3-green); background: rgba(255,255,255,.72); border-radius: 11px; }
.parent-shell .guardian-fact small { display: block; color: var(--v3-muted); }
.parent-shell .guardian-fact strong { display: block; margin-top: 3px; font-size: 14px; }
.parent-shell .guardian-fact .metric-bar { max-width: 120px; }
.parent-shell .risk-ring { display: inline; width: auto; height: auto; color: inherit; font: inherit; background: transparent; border: 0; box-shadow: none; }
.parent-shell .hero-aside-foot { margin-top: auto; padding-top: 28px; color: var(--v3-muted); }
.parent-shell .notice-strip { border-radius: 16px; box-shadow: none; }
.parent-shell .notice-strip[hidden] { display: none; }
.parent-shell .dashboard-shortcuts { margin-top: 22px; }
.parent-shell .shortcut-panel { box-shadow: none; border-color: var(--v3-line); background: rgba(255,253,248,.72); }
.parent-shell .surface-panel,
.parent-shell .content-section { border-color: var(--v3-line); border-radius: 22px; background: var(--v3-sheet); box-shadow: none; }
.parent-shell .mode-card { border-radius: 17px; }
.parent-shell .mobile-more-menu { border-radius: 18px; }
.mobile-more-menu:not([hidden]) {
  position: fixed;
  z-index: 70;
  left: 20px;
  bottom: 82px;
  display: grid;
  width: 320px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(255,253,248,.98);
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  box-shadow: var(--v3-shadow);
}
.mobile-more-menu:not([hidden]) button {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 74px;
  padding: 11px 12px;
  color: var(--v3-ink);
  text-align: left;
  background: #f7f2e9;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
}
.mobile-more-menu:not([hidden]) button > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--v3-green);
  background: var(--v3-mint);
  border-radius: 11px;
}
.mobile-more-menu:not([hidden]) strong { font-size: 13px; }
.mobile-more-menu:not([hidden]) small { overflow: hidden; color: var(--v3-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.child-shell { background: #e8eee9; }
.child-shell .child-app { color: var(--v3-ink); background: var(--v3-sheet); border-radius: 32px; box-shadow: var(--v3-shadow); }
.child-shell .child-appbar { background: rgba(255,253,248,.96); }
.child-shell .child-brand strong,
.child-shell .child-mode-panel h1,
.child-shell .child-section-heading h2 { font-family: "STSong", "Songti SC", Georgia, serif; }
.child-shell .child-mode-panel { padding: 28px 24px; background: var(--v3-forest) !important; border-radius: 26px; }
.child-shell .child-mode-panel h1 { font-size: 34px; }
.child-shell .child-mode-panel > p { color: #d4e2dd; }
.child-shell .countdown { color: #fff; font: 600 26px/1 Georgia, serif; background: transparent; }
.child-shell .always-available { color: #fff; }
.child-shell .checkin-button { color: var(--v3-forest); background: var(--v3-mint); border-color: transparent; border-radius: 14px; }
.child-shell .app-tile { border-radius: 16px; background: var(--v3-sheet); }
.child-shell .app-tile .app-icon { border-radius: 14px; background: var(--v3-green); }
.child-shell .blocked-row .blocked-chip,
.child-shell .blocked-row button { color: var(--v3-muted); background: #f3eee6; border-color: #e7ded1; border-radius: 13px; }
.child-shell .child-primary-button { background: var(--v3-forest); border-radius: 14px; }
.child-shell .child-sos-button { background: var(--v3-coral); border-radius: 14px; }

@media (max-width: 860px) {
  .parent-shell .parent-app { display: block; }
  .parent-shell .app-main { margin-left: 0; }
  .parent-shell .app-sidebar { position: fixed; inset: auto 0 0; width: 100%; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); color: var(--v3-muted); background: rgba(255,253,248,.97); }
  .parent-shell .side-nav { grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; height: 68px; gap: 0; }
  .parent-shell .side-nav-item { display: grid; height: 68px; min-height: 68px; padding: 6px 2px 5px; place-items: center; align-content: center; gap: 3px; color: var(--v3-muted); font-size: 10px; border-radius: 0; }
  .parent-shell .side-nav-item.active { color: var(--v3-forest); background: #f3e6d2; }
  .parent-shell .nav-glyph { width: auto; height: auto; background: transparent; font-size: 19px; }
  .parent-shell .side-nav-item[data-view-target="rewards"],
  .parent-shell .side-nav-item[data-view-target="activity"],
  .parent-shell .side-nav-item[data-view-target="support"],
  .parent-shell .side-nav-item[data-view-target="settings"] { display: none; }
  .parent-shell .overview-hero { grid-template-columns: 1fr; }
  .parent-shell .hero-aside { min-height: 310px; border-top: 1px solid var(--v3-line); border-left: 0; }
  .mobile-more-menu:not([hidden]) { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom,0px)); left: 12px; width: auto; }
}

@media (max-width: 600px) {
  .parent-shell .app-main { padding-inline: 14px; }
  .parent-shell .hero-copy,
  .parent-shell .hero-aside { padding: 26px 22px; }
  .parent-shell .overview-hero { border-radius: 24px; }
  .parent-shell .hero-copy h2 { font-size: 32px; }
  .parent-shell .hero-actions { display: grid; }
  .child-shell { padding: 0; }
  .child-shell .child-app { border-radius: 0; box-shadow: none; }
  .child-shell .child-mode-panel { margin: 12px 13px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* The family product reads as a calm daily space, rather than an admin console. */
@media (min-width: 861px) {
  .parent-shell .parent-app { display: block; }
  .parent-shell .app-sidebar {
    position: sticky;
    inset: 0 auto auto;
    z-index: 60;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 76px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
    padding: 12px clamp(24px,4vw,64px);
    color: var(--v3-ink);
    background: rgba(246,241,232,.94);
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
  }
  .parent-shell .brand-lockup { flex: 0 0 auto; padding: 0; }
  .parent-shell .brand-lockup strong { color: var(--v3-forest); }
  .parent-shell .brand-lockup span { display: none; }
  .parent-shell .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .parent-shell .family-switcher {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    padding: 0 18px 0 0;
    border: 0;
    border-right: 1px solid var(--v3-line);
    border-radius: 0;
    background: transparent;
  }
  .parent-shell .family-switcher .family-label,
  .parent-shell .family-switcher .family-device { display: none; }
  .parent-shell .family-switcher strong { color: var(--v3-muted); font-size: 13px; }
  .parent-shell .side-nav { display: flex; flex: 1 1 auto; width: auto; height: auto; justify-content: center; gap: 22px; margin: 0; }
  .parent-shell .side-nav-item {
    display: flex;
    width: auto;
    height: 42px;
    min-height: 42px;
    padding: 0 2px;
    color: var(--v3-muted);
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }
  .parent-shell .side-nav-item:hover { color: var(--v3-forest); background: transparent; }
  .parent-shell .side-nav-item.active {
    color: var(--v3-forest);
    background: transparent;
    box-shadow: inset 0 -2px var(--v3-green);
  }
  .parent-shell .nav-glyph { display: none; }
  .parent-shell .nav-count { position: static; margin-left: -14px; }
  .parent-shell .mobile-more-trigger { display: flex; }
  .parent-shell .sidebar-spacer,
  .parent-shell .sidebar-actions,
  .parent-shell .sidebar-user { display: none; }
  .parent-shell .app-main { padding: 42px clamp(24px,6vw,88px) 88px; }
  .parent-shell .app-topbar,
  .parent-shell .app-view { max-width: 1080px; }
  .parent-shell .overview-hero {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .parent-shell .overview-hero::before,
  .parent-shell .overview-hero::after { display: none; }
  .parent-shell .hero-copy { padding: 42px 0 30px; }
  .parent-shell .hero-copy { background: transparent; }
  .parent-shell .hero-copy h2 { max-width: 760px; font-size: clamp(42px,5vw,68px); line-height: 1.08; }
  .parent-shell .guardian-note { max-width: 620px; font-size: 14px; }
  .parent-shell .current-mode { display: grid; grid-template-columns: 150px minmax(0,1fr); column-gap: 26px; padding-top: 24px; box-shadow: none; }
  .parent-shell .current-mode .mode-kicker { grid-row: 1 / span 2; padding-top: 9px; }
  .parent-shell .current-mode h3 { margin-top: 0; }
  .parent-shell .arrangement-meta { max-width: 560px; }
  .parent-shell .hero-aside {
    display: grid;
    grid-template-columns: 140px minmax(0,1fr);
    gap: 24px 30px;
    padding: 24px 0;
    background: transparent;
    border-top: 1px solid var(--v3-line);
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
    border-left: 0;
  }
  .parent-shell .hero-aside-heading { align-self: center; }
  .parent-shell .guardian-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; }
  .parent-shell .hero-aside-foot { grid-column: 2; margin: 0; padding: 0; }
  .parent-shell .dashboard-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 34px; border-bottom: 1px solid var(--v3-line); }
  .parent-shell .dashboard-shortcuts .agreement-shortcut { display: none; }
  .parent-shell .shortcut-panel {
    min-height: 104px;
    padding: 24px 30px 24px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .parent-shell .shortcut-panel + .shortcut-panel { padding-left: 30px; border-left: 1px solid var(--v3-line); }
  .parent-shell .shortcut-panel:hover { transform: none; background: rgba(255,253,248,.42); box-shadow: none; }
  .parent-shell .content-section,
  .parent-shell .surface-panel { border-radius: 0; background: transparent; box-shadow: none; }
  .parent-shell .content-section { padding: 32px 0; border-width: 1px 0 0; }
  .parent-shell .overview-columns > .surface-panel { padding-inline: 0; border-width: 1px 0 0; }
  .parent-shell .arrangement-editor { margin-top: 30px; }
  .parent-shell .notice-strip { padding-inline: 0; background: transparent; border-width: 0 0 1px; border-radius: 0; }
}

.child-shell { padding: 0; background: var(--v3-sheet); }
.child-shell .child-app { width: 100%; max-width: none; min-height: 100vh; border-radius: 0; box-shadow: none; }
.child-shell .child-appbar { padding-inline: max(20px,calc((100vw - 960px)/2)); }
.child-shell .child-mode-panel {
  width: 100%;
  margin: 0;
  padding: 48px max(24px,calc((100vw - 960px)/2));
  border-radius: 0;
  box-shadow: none;
}
.child-shell .child-status-strip,
.child-shell .child-content-section,
.child-shell .child-settings,
.child-shell .child-footer { width: min(960px,calc(100% - 40px)); margin-inline: auto; }
.child-shell .child-status-strip { border-top: 0; }
.child-shell .child-content-section { border-top-color: var(--v3-line); }
.child-shell .request-form { border: 0; background: #f6f1e8; }

@media (max-width: 600px) {
  .child-shell .child-appbar { padding-inline: 16px; }
  .child-shell .child-mode-panel { margin: 0; padding: 28px 22px; border-radius: 0; }
  .child-shell .child-status-strip,
  .child-shell .child-content-section,
  .child-shell .child-settings,
  .child-shell .child-footer { width: calc(100% - 28px); }
}

/* 2026-09-14: three clear parent destinations — 守护、约定、我的. */
.parent-shell .side-nav-item[data-view-target="settings"] { display: flex; order: 3; }
.parent-shell .rewards-shortcut,
.parent-shell .app-view[data-view="rewards"] { display: none !important; }
.parent-shell .dashboard-shortcuts { grid-template-columns: 1fr; }
.parent-shell .app-view[data-view="settings"] > .page-intro {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.parent-shell .my-hub {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 26px 0 34px;
  border-top: 1px solid var(--v3-line);
  border-left: 1px solid var(--v3-line);
  background: var(--v3-sheet);
}
.parent-shell .my-hub button {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 22px;
  color: var(--v3-ink);
  text-align: left;
  border: 0;
  border-right: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
  background: transparent;
  cursor: pointer;
}
.parent-shell .my-hub button:hover { background: rgba(228,238,233,.55); }
.parent-shell .my-hub-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--v3-green);
  background: var(--v3-mint);
  border-radius: 13px;
  font-weight: 800;
}
.parent-shell .my-hub button > span:nth-child(2) { min-width: 0; }
.parent-shell .my-hub strong,
.parent-shell .my-hub small { display: block; }
.parent-shell .my-hub strong { font-size: 15px; }
.parent-shell .my-hub small { margin-top: 5px; overflow: hidden; color: var(--v3-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.parent-shell .my-hub b { color: var(--v3-muted); font: 300 28px/1 Arial,sans-serif; }

.parent-shell .binding-intro { margin: 4px 0 20px; color: var(--v3-muted); font-size: 13px; line-height: 1.75; }
.parent-shell .binding-capabilities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--v3-line); }
.parent-shell .binding-capabilities li { padding: 14px 0; border-bottom: 1px solid var(--v3-line); }
.parent-shell .binding-capabilities strong,
.parent-shell .binding-capabilities span { display: block; }
.parent-shell .binding-capabilities strong { font-size: 14px; }
.parent-shell .binding-capabilities span { margin-top: 4px; color: var(--v3-muted); font-size: 12px; line-height: 1.55; }
.parent-shell .guardian-binding-consent { display: flex; gap: 10px; margin-top: 18px; color: #53605c; font-size: 12px; line-height: 1.65; }
.parent-shell .guardian-binding-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--v3-green); }

@media (max-width: 860px) {
  .parent-shell .side-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .parent-shell .side-nav-item[data-view-target="settings"] { display: grid; }
  .parent-shell .my-hub { grid-template-columns: 1fr; }
  .parent-shell .my-hub button { min-height: 82px; }
}

@media (max-width: 600px) {
  .parent-shell .my-hub { margin-top: 20px; background: transparent; border-left: 0; }
  .parent-shell .my-hub button { grid-template-columns: 40px minmax(0,1fr) 18px; padding: 15px 4px; border-right: 0; }
  .parent-shell .my-hub-icon { width: 38px; height: 38px; }
}
