:root {
  --bg: #f5f1ea;
  --ink: #1e2528;
  --muted: #697174;
  --line: #d9ddd7;
  --panel: rgba(255, 255, 255, 0.82);
  --teal: #007d75;
  --blue: #2f6fbb;
  --indigo: #4650a8;
  --amber: #b87512;
  --rose: #b14f62;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(37, 43, 45, 0.12);
}

/* Child app redesign */
.child-shell {
  min-height: 100vh;
  background: #e9efec;
  padding: 28px 18px;
}

.child-shell .child-app {
  width: min(100%, 480px);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  overflow: hidden;
  color: #1d2927;
  background: #f8faf9;
  border: 1px solid #d5dfda;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(28, 55, 49, 0.12);
}

.child-appbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px;
  background: rgba(248, 250, 249, 0.96);
  border-bottom: 1px solid #dce4e0;
}

.child-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.child-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.child-brand-mark img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.child-brand div {
  display: grid;
  gap: 2px;
}

.child-brand strong {
  font-size: 15px;
}

.child-brand span:last-child {
  color: #73807c;
  font-size: 12px;
}

.child-connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3d5953;
  font-size: 12px;
  font-weight: 700;
}

.child-connection i {
  width: 8px;
  height: 8px;
  background: #269260;
  border-radius: 50%;
}

.child-connection.offline i {
  background: #b85c48;
}

.child-mode-panel {
  margin: 18px 18px 0;
  padding: 20px;
  color: #fff;
  background: #146f66;
  border-radius: 8px;
}

.child-mode-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.child-mode-panel .eyebrow {
  color: #c8eee8;
}

.child-mode-panel h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0;
}

.child-mode-panel > p {
  margin: 10px 0 18px;
  color: #e2f2ef;
  font-size: 14px;
  line-height: 1.7;
}

.countdown {
  flex: none;
  min-width: 72px;
  padding: 7px 9px;
  text-align: center;
  color: #17443f;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border-radius: 6px;
}

.always-available {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.always-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  color: #17443f;
  font-size: 20px;
  background: #fff;
  border-radius: 8px;
}

.always-available div {
  display: grid;
  gap: 3px;
}

.always-available strong {
  font-size: 14px;
}

.always-available span:last-child {
  color: #d6ece8;
  font-size: 12px;
}

.child-status-strip {
  display: grid;
  grid-template-columns: 1fr 92px auto;
  gap: 12px;
  align-items: center;
  margin: 14px 18px 0;
  padding: 14px 0;
  border-bottom: 1px solid #dce4e0;
}

.child-status-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.child-status-strip span {
  color: #76817e;
  font-size: 11px;
}

.child-status-strip strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-button {
  min-height: 38px;
  padding: 0 14px;
  color: #0f6159;
  font-weight: 800;
  background: #e3f2ee;
  border: 1px solid #bcded5;
  border-radius: 6px;
  cursor: pointer;
}

.child-content-section {
  padding: 20px 18px;
  border-bottom: 1px solid #e0e7e3;
}

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

.child-section-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.section-state {
  color: #65746f;
  font-size: 11px;
}

.child-shell .app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.child-shell .app-tile {
  display: grid;
  min-width: 0;
  min-height: 88px;
  padding: 12px 8px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: #263532;
  background: #fff;
  border: 1px solid #d9e2de;
  border-radius: 8px;
}

.child-shell .app-tile .app-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: #3376a9;
  border-radius: 7px;
}

.child-shell .app-tile:nth-child(3n + 2) .app-icon {
  background: #9a6420;
}

.child-shell .app-tile:nth-child(3n) .app-icon {
  background: #7d567e;
}

.child-shell .app-tile span:last-child {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}

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

.blocked-row button,
.blocked-row .blocked-chip {
  min-height: 34px;
  padding: 7px 11px;
  color: #754d2b;
  font-size: 12px;
  font-weight: 700;
  background: #f8eee3;
  border: 1px solid #ead5bf;
  border-radius: 6px;
  cursor: pointer;
}

.child-shell .request-form {
  display: grid;
  gap: 12px;
}

.child-shell .request-grid {
  grid-template-columns: 1fr 1fr;
}

.child-shell .request-form label {
  display: grid;
  gap: 6px;
}

.child-shell .request-form label > span {
  color: #52615d;
  font-size: 12px;
  font-weight: 700;
}

.child-shell .request-form input,
.child-shell .request-form select {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  color: #20302d;
  background: #fff;
  border: 1px solid #cfdad5;
  border-radius: 6px;
  outline: none;
}

.child-shell .request-form input:focus,
.child-shell .request-form select:focus {
  border-color: #0f6b63;
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.request-reason-field,
.child-primary-button {
  grid-column: 1 / -1;
}

.child-primary-button {
  min-height: 44px;
  color: #fff;
  font-weight: 800;
  background: #216a9a;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.child-settings {
  border-bottom: 1px solid #e0e7e3;
}

.child-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  list-style: none;
  cursor: pointer;
}

.child-settings summary::-webkit-details-marker {
  display: none;
}

.child-settings summary > span:first-child {
  display: grid;
  gap: 4px;
}

.child-settings summary strong {
  font-size: 14px;
}

.child-settings summary small {
  color: #73807c;
  font-size: 11px;
}

.summary-arrow {
  font-size: 19px;
  transition: transform 160ms ease;
}

.child-settings[open] .summary-arrow {
  transform: rotate(180deg);
}

.child-settings-body {
  padding: 0 18px 18px;
}

.risk-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.child-footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #fff;
  border-top: 1px solid #d8e0dc;
  box-shadow: 0 -8px 22px rgba(37, 53, 49, 0.08);
}

.child-footer > div {
  display: grid;
  gap: 3px;
}

.child-footer strong {
  font-size: 12px;
}

.child-footer span {
  color: #73807c;
  font-size: 10px;
}

.child-sos-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: #b42318;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.child-sos-button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #b42318;
  background: #fff;
  border-radius: 50%;
}

.metric-bar {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 5px;
  margin: 8px 0 2px;
  overflow: hidden;
  background: #e0e7e3;
  border-radius: 3px;
}

.metric-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #2b8b66;
  border-radius: inherit;
  transition: width 200ms ease;
}

.notice-strip.warning {
  color: #70420d;
  background: #fff4df;
  border-color: #ecd09c;
}

.notice-strip.offline {
  color: #70432f;
  background: #f9ebe4;
  border-color: #e7c3b2;
}

@media (max-width: 860px) {
  .parent-shell .app-sidebar {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid #d8dfdc;
    box-shadow: 0 -8px 22px rgba(34, 46, 43, 0.08);
  }

  .parent-shell .brand-lockup,
  .parent-shell .family-switcher,
  .parent-shell .sidebar-spacer,
  .parent-shell .sidebar-actions,
  .parent-shell .sidebar-user {
    display: none;
  }

  .parent-shell .side-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    gap: 0;
    padding: 0;
  }

  .parent-shell .side-nav-item {
    position: relative;
    display: grid;
    min-width: 0;
    height: 68px;
    padding: 7px 2px 5px;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #66736f;
    font-size: 10px;
    background: transparent;
    border-radius: 0;
  }

  .parent-shell .side-nav-item.active {
    color: #0f6b63;
    background: #eef7f4;
  }

  .parent-shell .nav-glyph {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
    background: transparent;
  }

  .parent-shell .nav-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 16px;
  }

  .parent-shell .parent-app,
  .parent-shell .app-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .parent-shell .app-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(243, 246, 245, 0.96);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 520px) {
  .child-shell {
    padding: 0;
    background: #f8faf9;
  }

  .child-shell .child-app {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .child-mode-panel {
    margin: 12px 13px 0;
    padding: 17px;
  }

  .child-mode-panel h1 {
    font-size: 24px;
  }

  .child-status-strip {
    grid-template-columns: minmax(0, 1fr) 68px auto;
    margin-inline: 13px;
  }

  .child-content-section,
  .child-settings summary,
  .child-settings-body,
  .child-footer {
    padding-inline: 13px;
  }

  .child-shell .request-grid {
    grid-template-columns: 1fr;
  }

  .request-reason-field,
  .child-primary-button {
    grid-column: auto;
  }
}

.parent-shell .mobile-more-trigger {
  display: none;
}

/* Final mobile navigation layer: five primary destinations plus a compact more sheet. */
@media (max-width: 860px) {
  .parent-shell .app-sidebar {
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .parent-shell .side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .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 .mobile-more-trigger {
    display: grid;
  }

  .parent-shell .parent-app,
  .parent-shell .app-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-more-trigger,
.mobile-more-menu {
  display: none;
}

@media (max-width: 860px) {
  .parent-shell .side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .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 .mobile-more-trigger {
    display: grid;
  }

  .mobile-more-trigger[aria-expanded="true"] {
    color: #0f6b63;
    background: #eef7f4;
  }

  .mobile-more-menu {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d8e1de;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(18, 45, 41, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-more-menu[hidden] {
    display: none;
  }

  .mobile-more-menu button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 1px 9px;
    align-items: center;
    min-height: 68px;
    padding: 10px;
    color: #19322f;
    text-align: left;
    background: #f5f8f7;
    border: 1px solid #e1e8e6;
    border-radius: 6px;
  }

  .mobile-more-menu button > span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #0f6b63;
    font-size: 17px;
    background: #e3f1ee;
    border-radius: 6px;
  }

  .mobile-more-menu strong {
    font-size: 13px;
  }

  .mobile-more-menu small {
    overflow: hidden;
    color: #6b7976;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(0, 125, 117, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(184, 117, 18, 0.14), transparent 28%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 14px;
}

.topbar h1,
.panel h2,
.control-panel h2,
.status-panel h2,
.allowed-section h2,
.blocked-section h2,
.request-box h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 32px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.primary-button,
.danger-button,
.tiny-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
}

.full-action {
  width: 100%;
  margin-top: 10px;
}

.online-text {
  color: var(--teal);
}

.offline-text {
  color: var(--danger);
}

.primary-button {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(0, 125, 117, 0.22);
}

.danger-button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--danger);
}

.tiny-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--teal);
  background: #e6f4f1;
  border-color: #b8ddd6;
}

.icon-button {
  width: 42px;
  height: 42px;
  font-size: 22px;
  background: #fff;
  border-color: var(--line);
}

button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.dashboard {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 40px;
}

.status-panel,
.control-panel,
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-panel {
  align-self: start;
  padding: 20px;
  position: sticky;
  top: 16px;
}

.child-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), #315f7d);
  border-radius: 18px;
}

.mode-now {
  margin: 22px 0;
  padding: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}

.mode-now h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.mode-now p {
  margin: 0;
  opacity: 0.86;
  line-height: 1.5;
}

.signal-grid {
  display: grid;
  gap: 10px;
}

.signal-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(245, 247, 245, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.firewall-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.risk-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.risk-ring.warning {
  background: var(--amber);
}

.risk-ring.danger {
  background: var(--danger);
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.account-box {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-box h3 {
  margin: 0 0 12px;
}

.bind-code {
  margin-top: 10px;
  padding: 10px;
  color: var(--ink);
  background: #eef7f5;
  border: 1px solid #c9e4de;
  border-radius: 8px;
  font-weight: 800;
}

.device-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-device {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.compact-danger {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.control-panel {
  padding: 20px;
}

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

.section-head.compact {
  margin-bottom: 12px;
}

.duration-field,
.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.duration-field {
  grid-template-columns: auto 92px auto;
  align-items: center;
}

.duration-field input,
.field input,
.request-form input,
.request-form select {
  min-height: 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  outline: none;
}

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

.mode-card {
  min-height: 188px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.mode-card.active {
  color: #fff;
  background: var(--teal);
  border-color: transparent;
}

.mode-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.mode-card p {
  min-height: 45px;
  margin: 0 0 14px;
  color: inherit;
  opacity: 0.82;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--muted);
  background: #f1f4f2;
  border-radius: 999px;
  font-size: 12px;
}

.mode-card.active .chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

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

.panel {
  padding: 18px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.switch-row input {
  width: 21px;
  height: 21px;
  accent-color: var(--teal);
}

.small-field {
  margin-top: 12px;
}

.rule-note {
  margin: 8px 0 12px;
  color: var(--teal);
  font-size: 13px;
  line-height: 1.45;
}

.request-list,
.event-list,
.alert-list,
.check-list,
.notification-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.request-item,
.event-item,
.alert-item,
.check-item,
.notification-item {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-item h3,
.event-item h3,
.alert-item h3,
.check-item h3,
.notification-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.request-item p,
.event-item p,
.alert-item p,
.check-item p,
.notification-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.notification-item.read {
  opacity: 0.66;
}

.notification-item.high,
.notification-item.critical {
  border-color: rgba(180, 35, 24, 0.45);
  background: #fff7f5;
}

.notification-item.medium {
  border-color: rgba(184, 117, 18, 0.45);
  background: #fffaf0;
}

.check-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.check-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.check-item.warning .check-dot {
  background: var(--amber);
}

.check-item.danger .check-dot {
  background: var(--danger);
}

.alert-item.high,
.alert-item.critical {
  border-color: rgba(180, 35, 24, 0.45);
  background: #fff7f5;
}

.alert-item.medium {
  border-color: rgba(184, 117, 18, 0.45);
  background: #fffaf0;
}

.alert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.request-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.request-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.request-actions button:first-child {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 999px;
  background: #eef2ee;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: 320px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(30, 37, 40, 0.92);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.child-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 125, 117, 0.16), transparent 30%),
    linear-gradient(160deg, #e9f1ed, #f7efe3);
}

.phone-frame {
  width: min(430px, 100%);
  min-height: min(860px, calc(100vh - 44px));
  padding: 16px;
  background: #101719;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(16, 23, 25, 0.34);
}

.child-hero,
.allowed-section,
.blocked-section,
.request-box,
.child-footer {
  background: #f8faf8;
  border-radius: 8px;
}

.child-hero {
  min-height: 238px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.1)),
    linear-gradient(145deg, var(--teal), #315f7d 58%, #b87512);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.child-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.child-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: 0;
}

.child-hero p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.countdown {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  font-weight: 800;
}

.allowed-section,
.blocked-section,
.request-box {
  margin-top: 12px;
  padding: 14px;
}

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

.app-tile {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.app-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
}

.blocked-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.blocked-app {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: #eef0ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.request-form {
  display: grid;
  gap: 9px;
}

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

.child-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px;
}

.child-footer .ghost-button,
.child-footer .danger-button {
  flex: 1;
}

@media (max-width: 980px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .split-grid {
    grid-column: auto;
  }

  .status-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .dashboard {
    padding-inline: 14px;
  }

  .section-head,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .duration-field {
    grid-template-columns: auto minmax(92px, 1fr) auto;
    width: 100%;
  }

  .mode-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    min-height: calc(100vh - 24px);
    padding: 10px;
    border-radius: 24px;
  }

  .child-shell {
    padding: 12px;
  }
}

/* Parent console redesign */
.parent-shell {
  --console-bg: #f3f6f5;
  --console-surface: #ffffff;
  --console-ink: #182326;
  --console-muted: #697679;
  --console-line: #dce5e2;
  --console-accent: #0f6b63;
  --console-accent-soft: #e7f3f0;
  --console-blue: #285fa8;
  --console-warning: #a96708;
  --console-danger: #b42318;
  min-height: 100vh;
  color: var(--console-ink);
  background: var(--console-bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.parent-shell .parent-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.parent-shell .app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  padding: 22px 14px 16px;
  background: #fff;
  border-right: 1px solid var(--console-line);
}

.brand-lockup,
.sidebar-user,
.profile-line,
.risk-score-line,
.hero-actions,
.panel-heading,
.section-heading-row,
.page-intro-inline,
.form-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  padding: 0 8px 22px;
}

.brand-mark,
.user-avatar,
.child-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--console-accent);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.brand-lockup strong,
.brand-lockup span,
.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-lockup span,
.sidebar-user span {
  margin-top: 3px;
  color: var(--console-muted);
  font-size: 11px;
}

.family-switcher {
  display: grid;
  gap: 4px;
  margin: 0 2px 20px;
  padding: 12px;
  background: #f5f8f7;
  border: 1px solid var(--console-line);
  border-radius: 8px;
}

.family-switcher strong {
  font-size: 13px;
}

.family-label,
.family-device {
  color: var(--console-muted);
  font-size: 11px;
}

.family-device {
  color: var(--console-accent);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  color: #465457;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.side-nav-item:hover {
  background: #f2f7f5;
}

.side-nav-item.active {
  color: var(--console-accent);
  background: var(--console-accent-soft);
  border-color: #cce4df;
  font-weight: 700;
}

.nav-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
  background: #edf2f0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.side-nav-item.active .nav-glyph {
  color: #fff;
  background: var(--console-accent);
}

.nav-count {
  min-width: 22px;
  padding: 2px 5px;
  color: var(--console-danger);
  background: #fff0ee;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-actions {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--console-line);
}

.sidebar-action {
  display: block;
  width: 100%;
  padding: 7px 9px;
  color: var(--console-accent);
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.sidebar-action:hover {
  background: #f2f7f5;
}

.muted-action {
  color: var(--console-muted);
}

.sidebar-user {
  gap: 9px;
  padding: 13px 8px 0;
  border-top: 1px solid var(--console-line);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
}

.sidebar-user strong {
  font-size: 12px;
}

.parent-shell .app-main {
  min-width: 0;
}

.parent-shell .app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 94px;
  padding: 22px 42px 18px;
  background: var(--console-bg);
  border-bottom: 1px solid var(--console-line);
}

.breadcrumb {
  margin: 0 0 7px;
  color: var(--console-muted);
  font-size: 12px;
}

.app-topbar h1 {
  margin: 0;
  color: var(--console-ink);
  font-size: 25px;
  letter-spacing: 0;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--console-muted);
  font-size: 12px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--console-accent);
}

.service-status i,
.online-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #2d9b78;
  border-radius: 50%;
}

.parent-shell .app-view {
  display: none;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 26px 42px 46px;
}

.parent-shell .app-view.active {
  display: block;
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 10px 14px;
  color: #5b4b27;
  background: #fff9ea;
  border: 1px solid #eeddb5;
  border-radius: 7px;
}

.notice-strip > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notice-strip strong {
  font-size: 13px;
}

.notice-strip span:not(.notice-mark) {
  color: #796a45;
  font-size: 12px;
}

.notice-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--console-warning);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.notice-strip .text-button {
  margin-left: auto;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  min-height: 258px;
  overflow: hidden;
  background: #113b3a;
  border-radius: 8px;
}

.hero-copy {
  padding: 24px 28px 22px;
  color: #fff;
}

.profile-line {
  gap: 13px;
}

.child-avatar {
  width: 54px;
  height: 54px;
  background: #2e887c;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 21px;
}

.hero-copy .eyebrow {
  margin-bottom: 4px;
  color: #a9d7cf;
}

.profile-line h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #bce8d2;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.hero-meta {
  margin: 5px 0 0;
  color: #b7d0ce;
  font-size: 12px;
}

.current-mode {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 88px;
  margin-top: 22px;
  padding: 15px 17px;
  color: #fff;
  background: var(--console-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
}

.current-mode h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.current-mode p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.hero-actions {
  gap: 9px;
  margin-top: 16px;
}

.parent-shell .primary-button,
.parent-shell .danger-button,
.parent-shell .secondary-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.parent-shell .primary-button {
  color: #fff;
  background: var(--console-accent);
  border: 1px solid var(--console-accent);
  box-shadow: none;
}

.parent-shell .danger-button {
  color: #fff;
  background: #b42318;
  border: 1px solid #b42318;
}

.parent-shell .secondary-button {
  color: var(--console-accent);
  background: #eef7f4;
  border: 1px solid #cce4df;
}

.parent-shell .primary-button:hover,
.parent-shell .danger-button:hover,
.parent-shell .secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 24px 20px;
  color: #fff;
  background: #0b2c2d;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-aside-heading,
.hero-aside-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-aside-heading > span:first-child {
  color: #b6cecb;
  font-size: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--console-accent);
  background: #e7f3f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-aside .status-chip {
  color: #d6eee8;
  background: rgba(255, 255, 255, 0.12);
}

.risk-score-line {
  gap: 14px;
  margin-top: 18px;
}

.parent-shell .risk-ring {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--console-accent);
  border: 4px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.parent-shell .risk-ring.warning {
  background: var(--console-warning);
}

.parent-shell .risk-ring.danger {
  background: var(--console-danger);
}

.risk-score-line strong {
  display: block;
  font-size: 13px;
}

.risk-score-line p {
  max-width: 170px;
  margin: 5px 0 0;
  color: #a8c2bf;
  font-size: 11px;
  line-height: 1.45;
}

.hero-aside-foot {
  padding-top: 14px;
  color: #8faeaa;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 28px;
}

.metric-card {
  display: grid;
  gap: 5px;
  min-height: 98px;
  padding: 15px 16px;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 7px;
}

.metric-label,
.metric-card small {
  color: var(--console-muted);
  font-size: 11px;
}

.metric-card strong {
  font-size: 21px;
  line-height: 1.1;
}

.metric-card small {
  font-size: 11px;
}

.accent-metric {
  background: #eef7f4;
  border-color: #cce4df;
}

.accent-metric strong {
  color: var(--console-accent);
}

.content-section {
  margin-top: 4px;
}

.section-heading-row,
.panel-heading,
.page-intro-inline {
  justify-content: space-between;
  gap: 18px;
}

.section-heading-row {
  align-items: flex-end;
  margin-bottom: 13px;
}

.eyebrow {
  color: var(--console-accent);
}

.section-heading-row h2,
.panel-heading h2,
.page-intro h2 {
  margin: 0;
  color: var(--console-ink);
  font-size: 19px;
  letter-spacing: 0;
}

.duration-control {
  display: grid;
  grid-template-columns: auto 72px auto;
  align-items: center;
  gap: 7px;
  color: var(--console-muted);
  font-size: 11px;
}

.duration-control input {
  width: 72px;
  height: 34px;
  padding: 0 8px;
  color: var(--console-ink);
  text-align: center;
  background: #fff;
  border: 1px solid var(--console-line);
  border-radius: 5px;
}

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

.parent-shell .mode-card {
  display: grid;
  min-height: 148px;
  align-content: start;
  gap: 8px;
  padding: 15px;
  color: var(--console-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--console-line);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.parent-shell .mode-card:hover {
  border-color: #9fc9c1;
  box-shadow: 0 7px 18px rgba(30, 63, 59, 0.08);
  transform: translateY(-2px);
}

.parent-shell .mode-card.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(15, 107, 99, 0.18);
}

.parent-shell .mode-card h3 {
  margin: 0;
  font-size: 16px;
}

.parent-shell .mode-card p {
  min-height: 38px;
  margin: 0;
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.45;
}

.parent-shell .mode-card.active p {
  color: rgba(255, 255, 255, 0.78);
}

.parent-shell .chip-row {
  gap: 5px;
}

.parent-shell .chip {
  min-height: 22px;
  padding: 0 7px;
  color: #5f7070;
  background: #f0f5f3;
  border-radius: 4px;
  font-size: 10px;
}

.parent-shell .mode-card.active .chip {
  color: #e9f5f2;
  background: rgba(255, 255, 255, 0.18);
}

.overview-columns,
.alerts-layout,
.activity-layout,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.surface-panel {
  min-width: 0;
  padding: 18px;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 7px;
}

.large-panel {
  min-height: 244px;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 15px;
}

.panel-heading h2 {
  font-size: 16px;
}

.text-button {
  padding: 3px 0;
  color: var(--console-accent);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.compact-list,
.request-list,
.event-list,
.check-list,
.alert-list,
.notification-list {
  display: grid;
  gap: 8px;
}

.request-list,
.event-list,
.check-list,
.alert-list,
.notification-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.request-item,
.event-item,
.alert-item,
.check-item,
.notification-item {
  padding: 12px;
  background: #fbfcfc;
  border: 1px solid var(--console-line);
  border-radius: 6px;
}

.request-item h3,
.event-item h3,
.alert-item h3,
.check-item h3,
.notification-item h3 {
  margin: 0 0 5px;
  color: var(--console-ink);
  font-size: 13px;
}

.request-item p,
.event-item p,
.alert-item p,
.check-item p,
.notification-item p {
  margin: 0;
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.45;
}

.request-item h3,
.alert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.parent-shell .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  color: var(--console-muted);
  background: #eff3f2;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.request-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.request-actions button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--console-accent);
  background: #fff;
  border: 1px solid #cce4df;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
}

.request-actions button:first-child {
  color: #fff;
  background: var(--console-accent);
  border-color: var(--console-accent);
}

.check-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.check-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: #2d9b78;
  border-radius: 50%;
}

.check-item.warning .check-dot {
  background: var(--console-warning);
}

.check-item.danger .check-dot,
.alert-item.high,
.alert-item.critical,
.notification-item.high,
.notification-item.critical {
  border-color: #efc7c2;
}

.alert-item.high,
.alert-item.critical,
.notification-item.high,
.notification-item.critical {
  background: #fff8f7;
}

.alert-item.medium,
.notification-item.medium {
  background: #fffaf1;
  border-color: #f0dfbc;
}

.notification-item.read {
  opacity: 0.65;
}

.page-intro {
  max-width: 680px;
  margin-bottom: 24px;
}

.page-intro h2 {
  font-size: 24px;
}

.page-intro > p:last-child {
  margin: 8px 0 0;
  color: var(--console-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-intro-inline {
  align-items: flex-end;
  margin-bottom: 22px;
}

.alerts-layout,
.activity-layout,
.settings-grid {
  margin-top: 0;
}

.notification-panel {
  margin-top: 14px;
}

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

.full-field {
  grid-column: 1 / -1;
}

.parent-shell .field {
  display: grid;
  gap: 6px;
  color: var(--console-muted);
  font-size: 11px;
}

.parent-shell .field input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--console-ink);
  background: #fbfcfc;
  border: 1px solid var(--console-line);
  border-radius: 5px;
  outline: none;
}

.parent-shell .field select,
.parent-shell .field textarea {
  width: 100%;
  padding: 10px;
  color: var(--console-ink);
  background: #fbfcfc;
  border: 1px solid var(--console-line);
  border-radius: 5px;
  outline: none;
  font: inherit;
}

.parent-shell .field select {
  min-height: 38px;
}

.parent-shell .field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.6;
}

.parent-shell .field input:focus,
.parent-shell .field select:focus,
.parent-shell .field textarea:focus,
.duration-control input:focus {
  border-color: #79b4aa;
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
}

.support-form {
  align-self: start;
}

.support-urgent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-urgent input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--console-accent);
}

.support-ticket-list {
  display: grid;
  gap: 8px;
}

.support-ticket-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  width: 100%;
  padding: 12px;
  color: var(--console-ink);
  background: #fbfcfc;
  border: 1px solid var(--console-line);
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

.support-ticket-item:hover,
.support-ticket-item.active {
  border-color: #79b4aa;
  background: #f3f9f7;
}

.support-ticket-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.support-ticket-item small {
  grid-column: 1 / -1;
  color: var(--console-muted);
  font-size: 11px;
}

.support-ticket-status {
  color: var(--console-accent);
  font-size: 11px;
  font-weight: 700;
}

.support-ticket-status.urgent {
  color: #b44232;
}

.support-detail {
  margin-top: 14px;
}

.support-thread {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.support-message {
  max-width: 78%;
  padding: 11px 12px;
  background: #f3f5f5;
  border: 1px solid var(--console-line);
  border-radius: 6px;
}

.support-message.parent {
  justify-self: end;
  background: #eef7f4;
  border-color: #bad9d2;
}

.support-message strong,
.support-message time {
  display: block;
  font-size: 10px;
}

.support-message time {
  margin-top: 7px;
  color: var(--console-muted);
}

.support-message p {
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}

.support-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}

.support-reply-row textarea {
  min-height: 72px;
}

.rule-note {
  margin: 12px 0 0;
  color: var(--console-muted);
  font-size: 11px;
  line-height: 1.5;
}

.toggle-list {
  display: grid;
  border-top: 1px solid var(--console-line);
}

.parent-shell .switch-row {
  min-height: 45px;
  color: var(--console-ink);
  border-bottom: 1px solid var(--console-line);
  font-size: 12px;
}

.parent-shell .switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--console-accent);
}

.small-field {
  margin-top: 13px;
}

.form-actions {
  gap: 8px;
  margin-top: 18px;
}

.bind-code {
  display: grid;
  min-height: 54px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--console-accent);
  background: #eef7f4;
  border: 1px dashed #9fc9c1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.device-mini-list {
  display: grid;
  gap: 8px;
}

.mini-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: #fbfcfc;
  border: 1px solid var(--console-line);
  border-radius: 6px;
  font-size: 12px;
}

.mini-device span {
  color: var(--console-accent);
  font-size: 11px;
}

.mini-device > div {
  display: grid;
  gap: 3px;
}

.account-danger-zone {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #efc5c1;
  border-radius: 8px;
  background: #fff8f7;
}

.account-danger-zone h3 {
  margin: 0 0 7px;
  color: var(--console-danger);
  font-size: 15px;
}

.account-danger-zone p {
  margin: 0 0 14px;
  color: var(--console-muted);
  font-size: 11px;
  line-height: 1.7;
}

.account-danger-zone .form-actions {
  margin-top: 12px;
}

.privacy-login-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.6;
}

.privacy-login-consent input { margin-top: 3px; }
.privacy-login-consent a { color: var(--console-accent); }
.privacy-center-panel { grid-column: 1 / -1; }
.privacy-summary { margin: 0; color: var(--console-muted); font-size: 12px; line-height: 1.75; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.parent-shell .muted {
  color: var(--console-muted);
  font-size: 12px;
}

.dashboard-shortcuts {
  margin-top: -14px;
  margin-bottom: 28px;
}

.shortcut-panel {
  display: grid;
  gap: 6px;
  min-height: 104px;
  color: var(--console-ink);
  text-align: left;
  cursor: pointer;
}

.shortcut-panel:hover {
  border-color: #9fc9c1;
}

.shortcut-panel strong {
  font-size: 20px;
}

.shortcut-panel small,
.shortcut-kicker {
  color: var(--console-muted);
  font-size: 11px;
}

.rewards-shortcut {
  background: #fffaf0;
  border-color: #ecdcb9;
}

.daily-report-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  color: #173b39;
  background: #f8fbfa;
  border: 1px solid #cbded9;
  border-radius: 8px;
}

.report-card-head,
.report-card-foot,
.report-total,
.invite-box,
.reward-task,
.ledger-row,
.reward-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-card-head span,
.report-card-head > strong,
.report-card-foot,
.usage-stat span,
.usage-stat small {
  color: var(--console-muted);
  font-size: 11px;
}

.report-card-head h2 {
  margin: 5px 0 0;
  font-size: 21px;
}

.report-total {
  margin: 24px 0 14px;
  padding: 18px;
  color: #fff;
  background: #113b3a;
  border-radius: 7px;
}

.report-total strong {
  font-size: 26px;
}

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

.usage-stat {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--console-line);
  border-top: 3px solid #6c8f8b;
  border-radius: 6px;
}

.usage-stat strong {
  font-size: 18px;
}

.study-stat { border-top-color: #2c6aa0; }
.fun-stat { border-top-color: #b87512; }
.call-stat { border-top-color: #0f6b63; }
.other-stat { border-top-color: #7c6b86; }

.usage-bars {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.usage-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.usage-bar-row > i {
  height: 8px;
  overflow: hidden;
  background: #e5ece9;
  border-radius: 4px;
}

.usage-bar-row b { display: block; height: 100%; background: #6c8f8b; }
.usage-bar-row b.call { background: #0f6b63; }
.usage-bar-row b.study { background: #2c6aa0; }
.usage-bar-row b.fun { background: #b87512; }
.usage-bar-row b.other { background: #7c6b86; }

.report-card-foot {
  padding-top: 14px;
  border-top: 1px solid var(--console-line);
}

.share-note {
  max-width: 920px;
  margin: 12px auto 0;
  color: var(--console-muted);
  font-size: 11px;
  line-height: 1.5;
}

.points-balance {
  min-width: 142px;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1px solid #ecdcb9;
  border-radius: 7px;
  text-align: right;
}

.points-balance span { display: block; color: var(--console-muted); font-size: 11px; }
.points-balance strong { color: #9a620d; font-size: 25px; }

.family-action-board {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.family-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  background: #f8faf9;
  border-bottom: 1px solid var(--console-line);
}

.family-action-head h2 { margin: 3px 0 7px; font-size: 20px; }
.family-action-head p:last-child { max-width: 680px; margin: 0; color: var(--console-muted); font-size: 12px; line-height: 1.6; }
.family-action-count { flex: 0 0 140px; padding-left: 18px; border-left: 2px solid #d7e5e1; }
.family-action-count strong { display: block; color: #0f6b63; font-size: 25px; line-height: 1; }
.family-action-count span { display: block; margin-top: 7px; color: var(--console-muted); font-size: 10px; line-height: 1.4; }
.family-action-list { display: grid; }

.family-action-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 15px 24px;
  background: #fff;
  border-bottom: 1px solid var(--console-line);
}

.family-action-item.completed { background: #fbfcfc; }
.family-action-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #0f6b63;
  background: #edf6f3;
  border: 1px solid #cce1db;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}
.family-action-item.completed .family-action-index { color: #73500f; background: #fff6df; border-color: #ead8a7; }
.family-action-copy { display: grid; gap: 4px; min-width: 0; }
.family-action-kicker { color: #0f6b63; font-size: 10px; font-weight: 700; }
.family-action-copy strong { font-size: 14px; }
.family-action-copy small { max-width: 720px; color: var(--console-muted); font-size: 10px; line-height: 1.55; }
.family-action-control button { min-width: 106px; min-height: 34px; padding: 0 12px; color: #fff; background: var(--console-accent); border: 0; border-radius: 5px; cursor: pointer; }
.family-action-control button.secondary-button { color: #0f6b63; background: #fff; border: 1px solid #bcd5d0; }
.family-action-control button:disabled { color: #6d7c7a; background: #edf1f0; cursor: default; }
.family-action-note { margin: 0; padding: 11px 24px; color: var(--console-muted); background: #f8faf9; font-size: 10px; line-height: 1.5; }

.reward-activation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  color: var(--console-text);
  background: #fff9eb;
  border: 1px solid #ead8a7;
  border-left: 4px solid #b87512;
  border-radius: 8px;
}

.reward-activation h2 { margin: 3px 0 6px; font-size: 20px; }
.reward-activation p:last-child { margin: 0; color: var(--console-muted); font-size: 12px; }

.activation-progress { display: flex; gap: 8px; }
.activation-progress i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #8a7442;
  border: 1px solid #d8c796;
  border-radius: 50%;
  font-style: normal;
  font-size: 12px;
}
.activation-progress i.done { color: #173b39; background: #f2c96d; border-color: #f2c96d; }

.reward-ledger-panel { margin-top: 14px; }

.companion-invite {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, .7fr);
  gap: 18px 24px;
  margin-top: 14px;
  border-left: 4px solid #0f6b63;
}

.companion-copy h2 { margin: 3px 0 7px; font-size: 20px; }
.companion-copy > p:last-of-type { margin: 0; color: var(--console-muted); font-size: 12px; }
.invite-benefits { display: flex; gap: 9px; margin-top: 14px; }
.invite-benefits span { min-width: 130px; padding: 10px 12px; background: #f7faf9; border: 1px solid var(--console-line); border-radius: 6px; }
.invite-benefits b { display: block; color: var(--console-muted); font-size: 10px; font-weight: 500; }
.invite-benefits strong { display: block; margin-top: 3px; color: #0f6b63; font-size: 15px; }

.invite-action-panel { display: grid; align-content: center; gap: 7px; padding: 15px; background: #eef7f4; border: 1px solid #cce4df; border-radius: 6px; }
.invite-action-panel > span { color: var(--console-muted); font-size: 10px; }
.invite-action-panel > strong { font-size: 22px; letter-spacing: 2px; }
.invite-action-panel small { color: var(--console-muted); font-size: 10px; line-height: 1.5; }
.invite-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.invite-progress span { padding: 9px 11px; color: var(--console-muted); background: #fbfcfc; border: 1px solid var(--console-line); border-radius: 5px; font-size: 10px; }
.invite-progress b { display: block; color: var(--console-text); font-size: 17px; }
.companion-invite .referral-entry { align-self: end; margin: 0; }
.invite-privacy { grid-column: 1 / -1; margin: -6px 0 0; color: var(--console-muted); font-size: 10px; }

.invite-box {
  margin-bottom: 12px;
  padding: 14px;
  background: #eef7f4;
  border: 1px solid #cce4df;
  border-radius: 6px;
}

.invite-box span { display: block; color: var(--console-muted); font-size: 11px; }
.invite-box strong { display: block; margin-top: 3px; font-size: 19px; letter-spacing: 2px; }

.referral-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.referral-entry input { min-width: 0; padding: 0 10px; border: 1px solid var(--console-line); border-radius: 5px; }

.points-ledger { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.ledger-row { padding: 11px; background: #fbfcfc; border: 1px solid var(--console-line); border-radius: 6px; }
.ledger-row div { display: grid; gap: 3px; }
.ledger-row span { color: var(--console-muted); font-size: 10px; }
.reward-item button { min-height: 30px; padding: 0 10px; color: #fff; background: var(--console-accent); border: 0; border-radius: 5px; cursor: pointer; }
.reward-item button:disabled { opacity: .45; cursor: default; }
.ledger-row b.credit { color: #147754; }
.ledger-row b.debit { color: #b42318; }

.reward-shop-section { margin-top: 28px; }
.reward-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reward-item { display: grid; grid-template-rows: 94px 1fr auto; gap: 12px; min-height: 250px; padding: 14px; background: #fff; border: 1px solid var(--console-line); border-radius: 7px; }
.reward-item-visual { display: grid; place-items: center; color: #73500f; background: #f5e7c6; border-radius: 6px; font-size: 25px; font-weight: 800; }
.reward-item h3 { margin: 5px 0; font-size: 14px; }
.reward-item p,
.reward-item span { margin: 0; color: var(--console-muted); font-size: 10px; }
.reward-item footer { padding-top: 10px; border-top: 1px solid var(--console-line); }
.reward-item footer strong { color: #9a620d; font-size: 12px; }
.delivery-panel { margin-top: 14px; }

.ad-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 24, 25, .72);
}
.ad-dialog[hidden] { display: none; }
.ad-player { width: min(390px, 100%); padding: 16px; background: #fff; border-radius: 8px; }
.ad-label { color: var(--console-muted); font-size: 10px; }
.ad-screen { display: grid; min-height: 390px; place-content: center; margin: 10px 0; padding: 24px; color: #fff; text-align: center; background: #113b3a; border-radius: 6px; }
.ad-screen strong { font-size: 24px; }
.ad-screen p { color: #b9d1ce; font-size: 12px; }
.ad-progress { height: 5px; margin: 12px 0; overflow: hidden; background: #e3e9e7; border-radius: 3px; }
.ad-progress i { display: block; width: 0; height: 100%; background: #b87512; }
.ad-player button { width: 100%; }

.parent-shell .toast {
  right: 24px;
  bottom: 24px;
  max-width: 330px;
  padding: 11px 14px;
  color: #fff;
  background: #182326;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .parent-shell .app-view {
    padding-inline: 24px;
  }

  .parent-shell .app-topbar {
    padding-inline: 24px;
  }

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

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

@media (max-width: 860px) {
  .support-layout,
  .support-reply-row {
    grid-template-columns: 1fr;
  }

  .support-message {
    max-width: 92%;
  }

  .parent-shell .parent-app {
    display: block;
  }

  .parent-shell .app-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 14px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }

  .brand-lockup {
    padding-bottom: 13px;
  }

  .family-switcher,
  .sidebar-actions,
  .sidebar-user,
  .sidebar-spacer {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

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

  .side-nav-item {
    flex: 0 0 auto;
    grid-template-columns: 25px auto auto;
    min-height: 38px;
    padding: 0 9px;
  }

  .parent-shell .app-topbar {
    min-height: 78px;
    padding: 18px 18px 14px;
  }

  .parent-shell .app-view {
    padding: 18px 18px 32px;
  }

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

  .hero-aside {
    min-height: 160px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

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

@media (max-width: 600px) {
  .topbar-status {
    display: none;
  }

  .parent-shell .app-topbar h1 {
    font-size: 21px;
  }

  .notice-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice-strip .text-button {
    width: 100%;
    margin-left: 34px;
    text-align: left;
  }

  .hero-copy {
    padding: 20px 18px;
  }

  .hero-aside {
    padding: 19px 18px 16px;
  }

  .profile-line h2 {
    font-size: 21px;
  }

  .current-mode {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .overview-columns,
  .alerts-layout,
  .activity-layout,
  .settings-grid,
  .form-grid,
  .reward-layout {
    grid-template-columns: 1fr;
  }

  .reward-activation { grid-template-columns: 1fr; }
  .family-action-head { flex-direction: column; }
  .family-action-count { flex: none; width: 100%; padding: 12px 0 0; border-top: 1px solid var(--console-line); border-left: 0; }
  .family-action-item { grid-template-columns: 36px minmax(0, 1fr); padding: 15px 18px; }
  .family-action-control { grid-column: 2; }
  .family-action-control button { width: 100%; }
  .companion-invite { grid-template-columns: 1fr; }
  .invite-privacy { grid-column: auto; }
  .reward-catalog { grid-template-columns: 1fr; }
  .daily-report-card { padding: 18px; }

  .section-heading-row,
  .panel-heading,
  .page-intro-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .duration-control {
    width: 100%;
    grid-template-columns: auto 82px auto;
  }

  .duration-control input {
    width: 82px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .parent-shell .mode-card {
    min-height: 116px;
  }

  .parent-shell .app-view {
    padding-inline: 13px;
  }

  .app-topbar {
    padding-inline: 13px !important;
  }

  .surface-panel {
    padding: 15px;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions button,
  .form-actions button {
    width: 100%;
  }
}

/* Final responsive overrides */
.child-shell {
  display: block;
  min-height: 100vh;
  padding: 28px 18px;
  background: #e9efec;
}

.child-shell .countdown {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 7px 9px;
  color: #17443f;
  background: #fff;
  border: 0;
  border-radius: 6px;
}

.child-shell .blocked-row {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

.child-shell .child-footer {
  margin-top: 0;
  padding: 13px 18px;
  background: #fff;
  border-radius: 0;
}

@media (max-width: 860px) {
  .parent-shell .app-sidebar {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    width: 100%;
    height: 68px;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-top: 1px solid #d8dfdc;
    box-shadow: 0 -8px 22px rgba(34, 46, 43, 0.08);
  }

  .parent-shell .side-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(54px, 1fr));
    width: 100%;
    height: 100%;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none;
  }

  .parent-shell .side-nav::-webkit-scrollbar { display: none; }

  .parent-shell .side-nav-item {
    position: relative;
    display: grid;
    min-width: 0;
    height: 68px;
    min-height: 68px;
    padding: 7px 2px 5px;
    place-items: center;
    align-content: center;
    grid-template-columns: 1fr;
    gap: 3px;
    color: #66736f;
    font-size: 10px;
    background: transparent;
    border-radius: 0;
  }

  .parent-shell .side-nav-item.active {
    color: #0f6b63;
    background: #eef7f4;
  }

  .parent-shell .nav-glyph {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
    background: transparent;
  }

  .parent-shell .nav-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 16px;
  }

  .parent-shell .parent-app,
  .parent-shell .app-main {
    padding-bottom: 72px;
  }
}

@media (max-width: 520px) {
  .child-shell {
    padding: 0;
    background: #f8faf9;
  }

  .child-shell .child-footer {
    padding-inline: 13px;
  }
}

/* Taste pass: make safety judgment the dashboard's visual spine. */
.parent-shell .overview-hero {
  min-height: 238px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 42, 38, 0.06);
}

.parent-shell .hero-copy {
  padding: 24px 28px 22px;
  color: #17221f;
  background: #ffffff;
}

.parent-shell .child-avatar {
  color: #ffffff;
  background: #176f66;
  border-color: #176f66;
}

.parent-shell .hero-copy .eyebrow {
  color: #176f66;
}

.parent-shell .hero-meta {
  color: #687570;
}

.parent-shell .online-badge {
  color: #176f66;
  background: #eaf4f1;
  border-radius: 12px;
}

.parent-shell .current-mode {
  min-height: 78px;
  margin-top: 19px;
  color: #ffffff;
  background: #176f66;
  border: 0;
  border-radius: 7px;
}

.parent-shell .hero-aside {
  padding: 24px;
  color: #17221f;
  background: #f3f6f5;
  border-left: 1px solid #d7dfdc;
}

.parent-shell .hero-aside-heading > span:first-child {
  color: #687570;
}

.parent-shell .hero-aside .status-chip {
  color: #176f66;
  background: #dfeeea;
}

.parent-shell .risk-ring {
  color: #ffffff;
  background: #176f66;
  border-color: #d1e3df;
}

.parent-shell .risk-score-line p {
  color: #687570;
}

.parent-shell .hero-aside-foot {
  color: #687570;
  border-top-color: #d7dfdc;
}

.parent-shell .metric-grid {
  gap: 0;
  margin: 14px 0 26px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7dfdc;
  border-radius: 7px;
}

.parent-shell .metric-card {
  min-height: 88px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid #e2e7e5;
  border-radius: 0;
}

.parent-shell .metric-card:last-child {
  border-right: 0;
}

.parent-shell .metric-card strong {
  font-size: 19px;
}

.parent-shell .accent-metric {
  background: #f7faf9;
}

.parent-shell .dashboard-shortcuts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parent-shell .dashboard-shortcuts .shortcut-panel {
  min-height: 116px;
  background: #ffffff;
  border-color: #d7dfdc;
  box-shadow: none;
}

.parent-shell .dashboard-shortcuts .shortcut-panel:hover {
  border-color: #9dbdb7;
  box-shadow: 0 8px 20px rgba(23, 42, 38, 0.06);
}

.parent-shell .agreement-shortcut {
  background: #eef5f8;
  border-color: #c9dce5;
}

.parent-shell .agreement-shortcut .shortcut-kicker {
  color: #286a7f;
}

@media (max-width: 860px) {
  .parent-shell .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }

  .parent-shell .hero-aside {
    border-top: 1px solid #d7dfdc;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .parent-shell .overview-hero {
    min-height: 0;
  }

  .parent-shell .hero-copy,
  .parent-shell .hero-aside {
    padding: 18px 16px;
  }

  .parent-shell .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-shell .metric-card {
    border-right: 1px solid #e2e7e5;
    border-bottom: 1px solid #e2e7e5;
  }

  .parent-shell .metric-card:nth-child(2n) {
    border-right: 0;
  }

  .parent-shell .metric-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Shiyuean brand pass: warm identity, calm operational surfaces. */
:root {
  --bg: #f6f5f1;
  --ink: #24231f;
  --muted: #706f69;
  --line: #deddd7;
  --panel: rgba(255, 255, 255, 0.94);
  --teal: #b96a1d;
  --amber: #d8892f;
  --shadow: 0 10px 28px rgba(74, 57, 34, 0.08);
}

body,
.parent-shell,
.parent-shell .app-main {
  background: #f6f5f1;
}

.parent-shell .app-sidebar,
.parent-shell .app-topbar {
  background: #fff;
  border-color: #e1dfd9;
}

.parent-shell .brand-mark,
.parent-shell .account-avatar {
  color: #fff;
  background: #d8892f;
}

.parent-shell .side-nav-item.active {
  color: #8c4a14;
  background: #fff1df;
}

.parent-shell .side-nav-item.active .nav-glyph {
  color: #8c4a14;
  background: #f7d8ae;
}

.parent-shell .text-button,
.parent-shell .shortcut-kicker,
.parent-shell .eyebrow {
  color: #9a5519;
}

.parent-shell .primary-button {
  color: #fff;
  background: #b8641b;
  border-color: #b8641b;
}

.parent-shell .primary-button:hover {
  background: #9e5215;
  border-color: #9e5215;
}

.parent-shell .notice-strip {
  color: #66431e;
  background: #fff7e9;
  border-color: #efd7b1;
}

.parent-shell .notice-mark {
  color: #fff;
  background: #cf7a25;
}

.parent-shell .overview-hero {
  position: relative;
  border-color: #dfddd6;
  box-shadow: 0 14px 34px rgba(74, 57, 34, 0.07);
}

.parent-shell .overview-hero::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: #d8892f;
}

.parent-shell .child-avatar {
  color: #fff;
  background: #d8892f;
  border-color: #d8892f;
  border-radius: 8px;
}

.parent-shell .hero-copy .eyebrow {
  color: #9a5519;
}

.parent-shell .online-badge {
  color: #25725a;
  background: #e8f4ee;
}

.parent-shell .current-mode {
  min-height: 74px;
  color: #432a12;
  background: #fff1dd !important;
  border: 1px solid #efd2a8;
}

.parent-shell .current-mode strong,
.parent-shell .current-mode span,
.parent-shell .current-mode small {
  color: inherit !important;
}

.parent-shell .current-mode > div {
  min-width: 0;
}

.parent-shell .current-mode .mode-kicker {
  display: block;
  margin-bottom: 4px;
  color: #9a5519 !important;
  font-size: 11px;
  font-weight: 700;
}

.parent-shell .current-mode p {
  color: #72583e;
}

.parent-shell .hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: #66645e;
  font-size: 12px;
}

.parent-shell .hero-trust-line span::before {
  margin-right: 6px;
  color: #2c7a5d;
  content: "\2713";
  font-weight: 800;
}

.parent-shell .hero-aside {
  background: #f0f7f3;
  border-left-color: #d5e3db;
}

.parent-shell .hero-aside .status-chip {
  color: #236c53;
  background: #dceee4;
}

.parent-shell .risk-ring {
  color: #fff;
  background: #2c7a5d;
  border-color: #cde2d6;
}

.parent-shell .metric-grid {
  border-color: #dfddd6;
}

.parent-shell .metric-card {
  position: relative;
  border-right-color: #e7e4de;
}

.parent-shell .metric-card::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  content: "";
  background: #ead3b7;
}

.parent-shell .metric-card:nth-child(2)::before {
  background: #b9d9c9;
}

.parent-shell .metric-card:nth-child(3)::before {
  background: #b9cee3;
}

.parent-shell .metric-card:nth-child(4)::before {
  background: #e8bcb6;
}

.parent-shell .metric-bar i {
  background: #2c7a5d;
}

.parent-shell .dashboard-shortcuts .shortcut-panel {
  border-color: #dfddd6;
  border-radius: 8px;
}

.parent-shell .dashboard-shortcuts .shortcut-panel:hover {
  border-color: #d4a66f;
  box-shadow: 0 8px 20px rgba(74, 57, 34, 0.07);
}

.parent-shell .rewards-shortcut {
  background: #fff9ef;
  border-color: #ecd9b9;
}

.parent-shell .agreement-shortcut {
  background: #f2f7fa;
  border-color: #cfdee7;
}

.parent-shell .agreement-shortcut .shortcut-kicker {
  color: #356b86;
}

.parent-shell .content-section,
.parent-shell .surface-panel,
.parent-shell .mode-card {
  border-radius: 8px;
}

.parent-shell .mode-card.active,
.parent-shell .mode-card:hover {
  border-color: #d49a5f;
  box-shadow: 0 7px 18px rgba(126, 78, 26, 0.08);
}

@media (max-width: 860px) {
  .parent-shell .side-nav-item.active {
    color: #9a5519;
    background: #fff4e6;
  }

  .parent-shell .side-nav-item.active .nav-glyph {
    color: #9a5519;
    background: transparent;
  }

  .parent-shell .hero-aside {
    border-top-color: #d5e3db;
  }
}

@media (max-width: 1100px) {
  .parent-shell .account-settings {
    grid-template-columns: 1fr;
  }

  .parent-shell .account-settings > * {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .parent-shell .hero-trust-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-shell .hero-trust-line span:last-child {
    grid-column: 1 / -1;
  }
}
