/* Initial-viewport composition and connected KidsPhone Parent fidelity layer. */

.parent-content {
  position: relative;
  padding: 0;
  color: #111827;
  background: #f4f7fb;
}

.kp-profile-hero {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0865e8 0%, #0748b9 36%, #012b78 100%);
}

.kp-profile-hero::before,
.kp-profile-hero::after {
  content: none;
}

.kp-header-pattern {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center top;
  opacity: 0.18;
  pointer-events: none;
}

.kp-menu-button,
.kp-settings-button,
.kp-call-button,
.kp-message-button {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.kp-menu-button {
  top: 27px;
  left: 14px;
  width: 55px;
  height: 55px;
  background: transparent;
  border-radius: 50%;
}

.kp-menu-button img,
.kp-call-button img,
.kp-message-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kp-settings-button {
  top: 27px;
  right: 14px;
  width: 55px;
  height: 55px;
  padding: 12px;
  color: #fff;
  background: #0871f2;
  border: 1px solid #83b6fb;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.kp-settings-button svg {
  width: 31px;
  height: 31px;
}

.kp-profile-copy {
  position: absolute;
  z-index: 2;
  top: 35px;
  right: 76px;
  left: 76px;
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}

.kp-profile-copy h3 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", var(--font-ui);
  font-size: 19px;
  line-height: 1;
}

.kp-profile-copy strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1;
}

.kp-profile-copy small {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1;
}

.kp-avatar {
  position: absolute;
  z-index: 4;
  top: 99px;
  bottom: auto;
  left: 50%;
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 24, 80, 0.16);
  transform: translateX(-50%);
}

.kp-call-button,
.kp-message-button {
  bottom: 15px;
  width: 59px;
  height: 59px;
  background: transparent;
  border-radius: 50%;
}

.kp-call-button {
  left: 58px;
}

.kp-message-button {
  right: 58px;
}

.kp-profile-indicator {
  position: absolute;
  z-index: 4;
  bottom: 13px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.kp-profile-indicator img {
  width: 18px;
  height: 18px;
}

.kp-profile-indicator span {
  width: 9px;
  height: 9px;
  background: #2e6bdd;
  border-radius: 50%;
}

.kp-content-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 46px;
  background: #fff;
  border-bottom: 1px solid #d7e1ef;
}

.kp-content-tabs button {
  position: relative;
  color: #52668e;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.kp-content-tabs button.active {
  color: #0068f8;
}

.kp-content-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #0068f8;
}

.kp-tab-content {
  background: #f4f7fb;
}

.kp-location-history {
  background: #fff;
}

.kp-location-record {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 65px;
  padding: 10px 20px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  cursor: pointer;
}

.kp-location-record:last-child {
  border-bottom: 0;
}

.kp-tracking-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.kp-location-record > div {
  min-width: 0;
}

.kp-location-record strong,
.kp-location-record small {
  display: block;
}

.kp-location-record strong {
  color: #111;
  font-size: 12px;
  line-height: 1.25;
}

.kp-location-record small {
  margin-top: 5px;
  color: #111;
  font-size: 8px;
  line-height: 1.35;
  white-space: nowrap;
}

.kp-location-record:hover,
.kp-location-record:focus-visible {
  background: #f7faff;
}

.kp-location-record:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(0, 104, 248, 0.4);
  outline-offset: -3px;
}

.kp-location-detail {
  height: 100%;
  min-height: 622px;
  color: #071b45;
  background: #edf1f6;
}

.kp-location-toolbar {
  display: flex;
  align-items: center;
  height: 52px;
  color: #fff;
  background: #0871f2;
  box-shadow: 0 2px 5px rgba(0, 24, 80, 0.18);
}

.kp-location-toolbar button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0 0 5px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 39px;
  font-weight: 300;
  cursor: pointer;
}

.kp-location-toolbar h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.kp-tracking-map {
  position: relative;
  height: calc(100% - 52px);
  min-height: 570px;
  overflow: hidden;
  background-color: #edf1f4;
  background-image:
    linear-gradient(28deg, transparent 0 38%, rgba(255, 255, 255, 0.92) 38.4% 42%, #d4d9de 42.2% 42.7%, transparent 43%),
    linear-gradient(104deg, transparent 0 58%, rgba(255, 255, 255, 0.88) 58.3% 62%, #d4d9de 62.2% 62.7%, transparent 63%),
    repeating-linear-gradient(18deg, transparent 0 36px, rgba(204, 211, 218, 0.58) 37px 39px, transparent 40px 73px),
    repeating-linear-gradient(102deg, transparent 0 42px, rgba(207, 214, 221, 0.54) 43px 45px, transparent 46px 82px);
}

.kp-map-road {
  position: absolute;
  z-index: 1;
  height: 17px;
  background: #fff;
  border: 1px solid #d7dce2;
  transform-origin: left center;
}

.kp-map-road.road-one { top: 270px; left: -24px; width: 430px; transform: rotate(-18deg); }
.kp-map-road.road-two { top: 420px; left: 70px; width: 420px; transform: rotate(64deg); }
.kp-map-road.road-three { top: 455px; left: -30px; width: 470px; height: 25px; transform: rotate(-21deg); }

.kp-map-label {
  position: absolute;
  z-index: 2;
  color: #69758a;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.kp-map-label.label-road { top: 113px; left: 110px; transform: rotate(-18deg); }
.kp-map-label.label-station { right: 86px; bottom: 117px; color: #222f43; font-size: 12px; }
.kp-map-label.label-building { top: 112px; left: 146px; }
.kp-map-label.label-cafe { top: 286px; left: 22px; color: #d27636; }

.kp-map-actions {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 13px;
  display: flex;
  gap: 7px;
}

.kp-map-actions button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #0871f2;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 48, 144, 0.22);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.kp-map-actions button:first-child { min-width: 145px; }
.kp-map-actions button span { margin-right: 6px; }

.kp-location-accuracy {
  position: absolute;
  z-index: 3;
  top: 164px;
  left: 50%;
  width: 330px;
  height: 330px;
  background: rgba(96, 132, 177, 0.14);
  border: 1px solid rgba(82, 112, 151, 0.54);
  border-radius: 50%;
  transform: translateX(-50%);
}

.kp-map-information {
  position: absolute;
  z-index: 7;
  top: 155px;
  left: 50%;
  display: grid;
  grid-template-columns: 30px 1fr 34px;
  align-items: center;
  width: 224px;
  min-height: 60px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid #d8e4f5;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 24, 80, 0.16);
  transform: translateX(-50%);
}

.kp-map-information::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid #d8e4f5;
  border-bottom: 1px solid #d8e4f5;
  transform: translateX(-50%) rotate(45deg);
}

.kp-map-information .kp-tracking-icon { width: 29px; height: 29px; }
.kp-map-information span { min-width: 0; }
.kp-map-information strong,
.kp-map-information small { display: block; white-space: nowrap; }
.kp-map-information strong { font-size: 12px; }
.kp-map-information small { margin-top: 5px; color: #52668e; font-size: 9px; }
.kp-map-information b { color: #0068f8; border-left: 2px solid #39cfbd; font-size: 20px; text-align: right; }

.kp-child-location-marker {
  position: absolute;
  z-index: 6;
  top: 255px;
  left: 50%;
  width: 60px;
  height: 78px;
  transform: translateX(-50%);
}

.kp-child-location-marker img {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #fff;
  border: 5px solid #5e708b;
  border-radius: 50%;
}

.kp-child-location-marker span {
  position: absolute;
  z-index: 1;
  bottom: 7px;
  left: 14px;
  width: 32px;
  height: 32px;
  background: #5e708b;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.kp-map-zoom {
  position: absolute;
  z-index: 8;
  top: 272px;
  right: 12px;
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 24, 80, 0.14);
}

.kp-map-zoom button {
  width: 38px;
  height: 38px;
  padding: 0;
  color: #4d5562;
  background: #fff;
  border: 0;
  font-size: 23px;
  cursor: pointer;
}

.kp-map-zoom button + button { border-top: 1px solid #d7dce2; }

.kp-location-sheet {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 125px;
  padding: 19px 18px 13px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 24, 80, 0.12);
}

.kp-location-sheet > i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 49px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 99px;
  transform: translateX(-50%);
}

.kp-location-sheet > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 84px;
}

.kp-location-sheet .kp-tracking-icon { width: 40px; height: 40px; }
.kp-location-sheet span { min-width: 0; }
.kp-location-sheet strong,
.kp-location-sheet small { display: block; }
.kp-location-sheet strong { font-size: 15px; }
.kp-location-sheet small { margin-top: 7px; color: #31415d; font-size: 9px; white-space: nowrap; }
.kp-location-sheet time { align-self: start; margin-top: 22px; color: #637393; font-size: 9px; }

.kp-commerce-content {
  padding: 14px 14px 18px;
  color: #0b2557;
}

.kp-commerce-hero {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: #fff;
  border: 8px solid #fff;
}

.kp-commerce-content > h3 {
  margin: 13px 0 7px;
  color: #071b45;
  font-size: 20px;
  line-height: 1.2;
}

.kp-commerce-content > p {
  margin: 0 0 14px;
  color: #4b5e83;
  font-size: 12px;
  line-height: 1.55;
}

.kp-commerce-products {
  display: grid;
  gap: 10px;
}

.kp-commerce-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 112px;
  padding: 11px;
  color: #171717;
  text-align: left;
  background: #fff;
  border: 1px solid #dfe3d8;
  border-radius: 11px;
  cursor: pointer;
}

.kp-commerce-card > img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.kp-commerce-card > span {
  min-width: 0;
}

.kp-commerce-card small,
.kp-commerce-card strong {
  display: block;
}

.kp-commerce-card small {
  color: #ef4770;
  font-size: 10px;
  font-weight: 900;
}

.kp-commerce-kidsshop .kp-commerce-card small {
  color: #4aa74a;
}

.kp-commerce-card strong {
  margin-top: 5px;
  font-size: 13px;
}

.kp-commerce-card p {
  margin: 6px 0 0;
  color: #5c6753;
  font-size: 10px;
  line-height: 1.45;
}

.kp-drawer-account-avatar,
.kp-drawer-device > img {
  object-fit: cover;
  border-radius: 50%;
}

.kp-drawer-account-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
}

.kp-drawer-device > img {
  width: 38px;
  height: 38px;
}

.kp-drawer-device {
  grid-template-columns: 38px 1fr auto;
}

@media (min-width: 1180px) {
  .site-header {
    min-height: 58px;
    padding: 8px 32px;
  }

  .product-intro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    max-width: 1780px;
    padding: 12px 32px 14px;
  }

  .product-intro > div:first-child {
    flex: 0 0 auto;
  }

  .product-intro .eyebrow {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .product-intro h1 {
    font-size: 24px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .product-intro h1 br {
    display: none;
  }

  .intro-copy {
    flex: 0 1 560px;
    max-width: 560px;
    font-size: 12px;
    line-height: 1.5;
  }

  .intro-summary {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 11px;
    box-shadow: none;
  }

  .simulation-stage {
    grid-template-columns: minmax(270px, 0.72fr) 450px minmax(330px, 1fr);
    gap: 12px;
    max-width: 1780px;
    padding: 0 32px 32px;
  }

  .intelligence-column {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-panel {
    grid-column: auto;
  }

  .section-kicker {
    margin-bottom: 8px;
  }

  .phone-case {
    width: 340px;
    max-width: none;
    zoom: 1.2;
  }

  .phone-column {
    min-width: 450px;
  }

  .watch-product {
    width: min(100%, 320px, calc((100vh - 210px) * 0.5));
    padding: 28px 14px 24px;
    border-radius: 36px;
  }

  .watch-case {
    width: min(100%, 278px);
  }

  .watch-controller {
    width: min(100%, 320px);
    margin-top: 8px;
  }

  .interaction-hint {
    margin-top: 8px;
    font-size: 10px;
  }

  .ai-panel,
  .control-panel,
  .event-panel {
    padding: 16px;
  }

  .panel-description {
    margin: 8px 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .kp-call-button {
    left: 48px;
  }

  .kp-message-button {
    right: 48px;
  }
}
