.child-account-page .template,
.child-account-page .template > .el-container,
.child-account-page .template > .el-container > .el-container {
  min-width: 0;
}

.child-account-page {
  overflow-x: hidden;
  background: var(--uc-bg);
}

@media (min-width: 769px) {
  body.child-account-page,
  body.child-account-page #addChildAccount.child-account-template,
  body.child-account-page .template > .el-container {
    width: 100%;
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
    background: var(--uc-bg);
  }

  body.child-account-page {
    overflow-y: auto !important;
  }

  body.child-account-page #addChildAccount.child-account-template,
  body.child-account-page .template > .el-container,
  body.child-account-page .template > .el-container > .el-container {
    display: block !important;
  }

  body.child-account-page .template > .el-container > .uc-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 252px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
  }

  body.child-account-page .template > .el-container > .el-container {
    width: calc(100% - 252px) !important;
    min-height: 100vh !important;
    height: auto !important;
    margin-left: 252px !important;
    overflow: visible !important;
  }

  body.child-account-page .template > .el-container > .el-container > .uc-topbar-component {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    background: #fff !important;
  }

  body.child-account-page .template > .el-container > .el-container > .uc-topbar-component .uc-topbar {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.child-account-page .template > .el-container > .el-container > .el-main {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow: visible !important;
    background: var(--uc-bg) !important;
  }
}

.child-account-page .template > .el-container > .el-container > .el-main {
  padding: 24px !important;
}

.child-account-page .uc-main {
  overflow-x: hidden;
}

.child-account-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 22px;
  border-bottom: 1px solid #dfe5ef;
}

.child-account-title h2 {
  margin-top: 4px;
  color: var(--uc-text);
  font-size: 28px;
  line-height: 1.2;
}

.ticket-back-link {
  width: 40px;
  height: 40px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  color: var(--uc-blue);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 28, 42, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ticket-back-link:hover {
  border-color: #b8c9ff;
  color: #fff;
  background: var(--uc-blue);
}

.child-account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
  padding: 28px 30px;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(22, 93, 255, 0.08) 0%, rgba(52, 168, 83, 0.06) 56%, rgba(22, 93, 255, 0) 100%),
    #fff;
  box-shadow: var(--uc-shadow);
  overflow: hidden;
  position: relative;
}

.child-account-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -120px;
  width: 330px;
  height: 210px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(52, 168, 83, 0.08));
  transform: skewX(-18deg);
  pointer-events: none;
}

.child-hero-copy,
.child-hero-stats {
  position: relative;
  z-index: 1;
}

.child-hero-copy h2 {
  max-width: 760px;
  margin: 6px 0 10px;
  color: var(--uc-text);
  font-size: 28px;
  line-height: 1.28;
}

.child-hero-copy p:last-child {
  max-width: 720px;
  color: var(--uc-muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.child-hero-stats article {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(22, 93, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.child-hero-stats span,
.child-hero-stats p,
.child-field > span,
.child-notice-row > span,
.child-product-permission-head span,
.child-summary-list span,
.child-selected-preview > span {
  color: var(--uc-muted);
  font-size: 13px;
  font-weight: 800;
}

.child-hero-stats strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--uc-text);
  font-size: 32px;
  line-height: 1;
}

.child-hero-stats p {
  color: var(--uc-subtle);
  font-size: 12px;
}

.child-account-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.child-account-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.child-form-panel,
.child-permission-panel,
.child-summary-panel {
  padding: 24px;
}

.child-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

.child-phone-field,
.child-product-field {
  grid-column: span 2;
}

.child-field .is-required::before {
  content: "*";
  margin-right: 4px;
  color: var(--uc-red);
}

.child-field input,
.child-field select,
.child-phone-control,
.child-password-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--uc-text);
  font: inherit;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.child-field input,
.child-field select {
  padding: 0 12px;
}

.child-field input::placeholder {
  color: var(--uc-subtle);
}

.child-field input:focus,
.child-field select:focus,
.child-phone-control:focus-within,
.child-password-control:focus-within {
  border-color: #b8c9ff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}

.child-field input:disabled,
.child-field select:disabled,
.child-product-select-trigger:disabled {
  color: var(--uc-muted);
  background: #f5f7fb;
  cursor: not-allowed;
}

.child-phone-control,
.child-password-control {
  display: grid;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.child-phone-control {
  grid-template-columns: 132px minmax(0, 1fr);
}

.child-phone-control select,
.child-phone-control input,
.child-password-control input {
  height: 42px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.child-phone-control select {
  border-right: 1px solid #edf1f7;
  background: #fbfcff;
}

.child-password-control {
  grid-template-columns: minmax(0, 1fr) auto;
}

.child-password-control button {
  align-self: stretch;
  min-width: 68px;
  border: none;
  border-left: 1px solid #edf1f7;
  color: var(--uc-blue);
  background: #fbfcff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.child-password-control button:hover {
  background: var(--uc-blue-soft);
}

.child-product-picker {
  display: grid;
  grid-template-columns: 220px 260px auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 600px);
}

.child-project-picker {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.child-product-picker.is-type-mode {
  grid-template-columns: 220px 260px;
  width: min(100%, 490px);
}

.child-product-picker .uc-ghost-btn {
  min-width: 74px;
  min-height: 44px;
  border: 1px solid #dbe6ff;
  cursor: pointer;
}

.child-product-multiselect {
  position: relative;
  min-width: 0;
}

.child-product-select-trigger {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--uc-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: left;
  font: inherit;
  font-size: 14px;
  position: relative;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.child-product-select-trigger::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--uc-subtle);
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.child-product-multiselect.is-open .child-product-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.child-product-select-trigger:focus,
.child-product-multiselect.is-open .child-product-select-trigger {
  border-color: #b8c9ff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}

.child-product-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-product-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 45;
  max-height: 220px;
  padding: 6px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 28, 42, 0.14);
  overflow-y: auto;
}

.child-product-select-menu[hidden] {
  display: none;
}

.child-product-option {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--uc-text);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.child-product-option:hover {
  color: var(--uc-blue);
  background: var(--uc-blue-soft);
}

.child-product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.child-product-option i {
  width: 18px;
  height: 18px;
  border: 1px solid #d5dce8;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.child-product-option i::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.child-product-option input:checked + i {
  border-color: var(--uc-blue);
  background: var(--uc-blue);
}

.child-product-option input:checked + i::after {
  opacity: 1;
}

.child-product-multiselect.is-single .child-product-option i {
  border-radius: 50%;
}

.child-product-mode-note,
.child-product-empty {
  margin-top: -2px;
  color: var(--uc-subtle);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.child-product-empty {
  margin-top: -4px;
}

.child-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.child-product-chips span {
  max-width: 100%;
  min-height: 32px;
  padding: 0 8px 0 12px;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  color: var(--uc-blue);
  background: var(--uc-blue-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.child-product-chips button {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 6px;
  color: var(--uc-muted);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  line-height: 1;
}

.child-notice-row {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--uc-line);
  border-radius: 12px;
  background: #fbfcff;
}

.child-notice-row > span {
  min-width: 42px;
  color: var(--uc-text);
}

.child-check {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--uc-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.child-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.child-check i {
  width: 18px;
  height: 18px;
  border: 1px solid #d5dce8;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}

.child-check i::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.child-check b {
  min-width: 0;
  font: inherit;
  overflow-wrap: anywhere;
}

.child-check input:checked + i {
  border-color: var(--uc-blue);
  background: var(--uc-blue);
}

.child-check input:checked + i::after {
  opacity: 1;
}

.child-check input:indeterminate + i {
  border-color: var(--uc-blue);
  background: var(--uc-blue);
}

.child-check input:indeterminate + i::after {
  content: "";
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  opacity: 1;
}

.child-check input:disabled + i,
.child-check input:disabled ~ b {
  opacity: 0.64;
}

.child-check:hover {
  color: var(--uc-blue);
}

.child-permission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 16px;
  margin-top: 16px;
  position: relative;
}

.child-permission-groups {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.child-permission-group,
.child-product-permission {
  border: 1px solid var(--uc-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.child-permission-group-head {
  min-height: 52px;
  padding: 0 14px;
  background: #fbfcff;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.child-permission-group.is-open .child-permission-group-head {
  border-bottom-color: var(--uc-line);
}

.child-permission-single {
  overflow: visible;
}

.child-permission-single-check {
  min-height: 66px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fbfcff;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.child-permission-single-check:hover {
  background: #f7faff;
}

.child-permission-single-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.child-permission-single-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--uc-blue);
  background: var(--uc-blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.child-permission-single-check strong {
  min-width: 0;
  color: var(--uc-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.child-permission-single-check i {
  width: 18px;
  height: 18px;
  border: 1px solid #d5dce8;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.child-permission-single-check i::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.child-permission-single-check input:checked ~ i {
  border-color: var(--uc-blue);
  background: var(--uc-blue);
}

.child-permission-single-check input:checked ~ i::after {
  opacity: 1;
}

.child-permission-single-check b {
  color: var(--uc-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.child-permission-single-check input:checked ~ b {
  color: var(--uc-blue);
}

.child-permission-single-check input:disabled ~ .child-permission-single-icon,
.child-permission-single-check input:disabled ~ strong,
.child-permission-single-check input:disabled ~ i,
.child-permission-single-check input:disabled ~ b {
  opacity: 0.64;
}

.child-permission-toggle {
  min-width: 0;
  border: none;
  color: var(--uc-text);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.child-permission-toggle::before {
  content: "⌄";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--uc-blue);
  background: var(--uc-blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.child-permission-toggle[aria-expanded="false"]::before {
  transform: rotate(-90deg);
}

.child-permission-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.child-permission-options[hidden] {
  display: none;
}

.child-permission-options-tiered {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: #fff;
}

.child-basic-direct,
.child-permission-suboptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.child-basic-direct {
  padding: 2px 0 4px;
}

.child-permission-subgroup {
  padding: 12px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #fbfcff;
}

.child-permission-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f7;
}

.child-permission-subhead span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--uc-text);
  font-size: 13px;
  font-weight: 900;
}

.child-permission-subhead span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uc-blue);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.08);
}

.child-permission-subhead .child-check {
  color: #7e91bd;
  font-size: 12px;
}

.child-product-permission {
  padding: 16px;
  align-self: start;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.child-product-permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.child-product-permission-head strong {
  color: var(--uc-text);
  font-size: 15px;
}

.child-product-permission-empty,
.child-permission-empty {
  color: var(--uc-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.child-permission-empty {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--uc-line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
}

.child-permission-empty strong {
  color: var(--uc-text);
}

.child-risk-note {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(251, 140, 0, 0.16);
  border-radius: 10px;
  background: rgba(251, 140, 0, 0.07);
}

.child-risk-note span {
  color: var(--uc-orange);
  font-size: 12px;
  font-weight: 900;
}

.child-risk-note p {
  margin-top: 5px;
  color: var(--uc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.child-summary-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

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

.child-summary-head h2 {
  margin-top: 4px;
  color: var(--uc-text);
  font-size: 20px;
  line-height: 1.25;
}

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

.child-summary-list article {
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid var(--uc-line);
  border-radius: 10px;
  background: #fbfcff;
}

.child-summary-list strong {
  display: block;
  margin-top: 8px;
  color: var(--uc-text);
  font-size: 14px;
  line-height: 1.35;
}

.child-summary-list em {
  font-style: normal;
}

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

.child-selected-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.child-selected-preview b {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--uc-blue);
  background: var(--uc-blue-soft);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.child-submit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.child-submit-actions .uc-primary-btn,
.child-submit-actions .uc-ghost-btn {
  width: 100%;
  min-height: 42px;
  border: none;
  cursor: pointer;
}

.child-submit-actions .uc-primary-btn:disabled {
  opacity: 0.66;
  cursor: wait;
}

.child-submit-actions .uc-ghost-btn {
  border: 1px solid #dbe6ff;
}

.child-save-toast {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 168, 83, 0.16);
  border-radius: 10px;
  color: var(--uc-green);
  background: rgba(52, 168, 83, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.child-save-toast[hidden] {
  display: none;
}

.child-field em,
.child-notice-row em,
.child-auth-error {
  color: var(--uc-red);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.child-field.is-invalid input,
.child-field.is-invalid select,
.child-field.is-invalid .child-phone-control,
.child-field.is-invalid .child-password-control,
.child-field.is-invalid .child-product-select-trigger,
.child-notice-row.is-invalid,
.child-permission-grid.is-invalid .child-permission-group,
.child-permission-grid.is-invalid .child-product-permission {
  border-color: rgba(234, 67, 53, 0.38);
}

.child-auth-error {
  grid-column: 1 / -1;
  margin-top: -6px;
}

@media (max-width: 1320px) {
  .child-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .child-phone-field,
  .child-product-field {
    grid-column: span 2;
  }

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

@media (max-width: 1180px) {
  .child-account-hero,
  .child-account-workspace {
    grid-template-columns: 1fr;
  }

  .child-summary-panel {
    position: static;
  }

  .child-summary-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-page.child-account-page .uc-cart-link {
    width: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    overflow: visible;
  }

  .home-page.child-account-page .uc-cart-link em {
    top: -5px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-width: 2px;
    font-size: 10px;
    line-height: 12px;
  }

  .child-account-page .uc-shell,
  .child-account-page .uc-main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    padding-right: 14px;
  }

  .child-account-page .uc-topbar {
    margin-right: -14px;
    padding-right: 14px;
  }

  .child-account-page .uc-main > *,
  .child-account-workspace,
  .child-account-stack,
  .child-form-panel,
  .child-permission-panel,
  .child-summary-panel,
  .child-basic-grid,
  .child-permission-grid,
  .child-permission-groups,
  .child-permission-group,
  .child-product-permission {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .child-account-title {
    padding-bottom: 16px;
  }

  .child-account-title h2 {
    font-size: 22px;
  }

  .child-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
    padding: 20px 16px;
    border-radius: 14px;
    gap: 16px;
  }

  .child-account-hero::after {
    display: none;
  }

  .child-hero-copy h2 {
    font-size: 22px;
  }

  .child-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .child-hero-stats article {
    min-height: 104px;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .child-hero-stats strong {
    margin: 8px 0 5px;
    font-size: 25px;
  }

  .child-hero-stats span,
  .child-hero-stats p {
    font-size: 11px;
    line-height: 1.35;
  }

  .child-form-panel,
  .child-permission-panel,
  .child-summary-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .child-basic-grid,
  .child-summary-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .child-phone-field,
  .child-product-field {
    grid-column: auto;
  }

  .child-phone-control {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .child-product-picker {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) 64px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    padding-bottom: 2px;
  }

  .child-product-picker.is-type-mode,
  .child-project-picker {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .child-product-picker select {
    width: 154px;
    min-width: 0;
    max-width: 100%;
  }

  .child-product-picker select + select {
    width: 206px;
    min-width: 0;
    max-width: 100%;
  }

  .child-product-select-trigger {
    height: 40px;
  }

  .child-product-picker .uc-ghost-btn {
    width: 64px;
    min-width: 0;
    padding: 0 10px;
  }

  .child-notice-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
  }

  .child-notice-row > span,
  .child-notice-row .child-check {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .child-permission-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .child-basic-direct,
  .child-permission-suboptions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .child-permission-subgroup {
    padding: 11px;
  }

  .child-permission-subhead {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 9px;
  }

  .child-permission-group-head {
    padding: 0 12px;
  }

  .child-permission-single-check {
    grid-template-columns: 34px minmax(0, 1fr) 18px auto;
    min-height: 62px;
    padding: 0 12px;
    gap: 10px;
  }

  .child-permission-single-icon {
    width: 34px;
    height: 34px;
  }

  .child-product-permission {
    padding: 14px;
  }

  .child-submit-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .child-account-page .uc-main {
    padding-right: 10px;
  }

  .child-account-page .uc-topbar {
    margin-right: -10px;
    padding-right: 10px;
  }

  .child-phone-control {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .child-product-picker {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .child-product-picker.is-type-mode,
  .child-project-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .child-product-picker select,
  .child-product-picker select + select {
    width: 100%;
  }

  .child-product-multiselect {
    min-width: 0;
  }

  .child-product-picker .uc-ghost-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
