.watch-product {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 34px 18px 28px;
  background: #edf3fb;
  border: 1px solid var(--line);
  border-radius: 44px;
  box-shadow: var(--shadow-card);
}

.watch-product::before,
.watch-product::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  width: 174px;
  height: 56px;
  background: #0b1427;
  border: 1px solid #253149;
  transform: translateX(-50%);
}

.watch-product::before {
  top: 0;
  border-radius: 0 0 26px 26px;
}

.watch-product::after {
  bottom: 0;
  border-radius: 26px 26px 0 0;
}

.watch-case {
  position: relative;
  z-index: 2;
  width: min(100%, 338px);
  aspect-ratio: 240 / 284;
  padding: 13px;
  background: #080d17;
  border: 2px solid #263044;
  border-radius: 55px;
  box-shadow:
    inset 0 0 0 4px #111827,
    0 22px 38px rgba(0, 24, 80, 0.2);
}

.watch-bezel {
  width: 100%;
  height: 100%;
  padding: 8px;
  background: #02050a;
  border: 1px solid #30394b;
  border-radius: 43px;
}

.watch-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
  background: var(--yon-navy);
  border-radius: 35px;
}

.watch-crown {
  position: absolute;
  z-index: 3;
  top: 106px;
  right: 9px;
  width: 12px;
  height: 54px;
  background: #141d2e;
  border: 1px solid #34405a;
  border-radius: 0 9px 9px 0;
}

.watch-sos-key {
  position: absolute;
  z-index: 4;
  right: 6px;
  bottom: 96px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 60px;
  padding: 0;
  color: white;
  background: var(--danger);
  border: 2px solid white;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(217, 45, 32, 0.24);
  cursor: pointer;
}

.watch-sos-key span {
  font-size: 11px;
  font-weight: 800;
}

.watch-sos-key small {
  margin-top: -8px;
  font-size: 8px;
}

.watch-controller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(100%, 390px);
  margin: 10px auto 0;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.watch-controller button {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 5px;
  color: var(--muted-ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.watch-controller button span {
  color: var(--trust-blue);
  font-size: 17px;
  line-height: 1;
}

.watch-controller button[aria-pressed="true"] {
  color: white;
  background: var(--yon-navy);
}

.watch-controller button[aria-pressed="true"] span {
  color: white;
}

.watch-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 15px 16px;
}

.watch-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  font-size: 9px;
  font-weight: 700;
}

.watch-status span:last-child {
  color: #d5e7ff;
}

.watch-home {
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 12%, rgba(0, 104, 248, 0.26), transparent 34%),
    var(--yon-navy);
}

.watch-home-main {
  display: grid;
  place-items: center;
  margin-top: 7px;
  text-align: center;
}

.watch-date {
  margin: 0;
  color: #aecbf2;
  font-size: 10px;
  font-weight: 700;
}

.watch-clock {
  margin: 2px 0 0;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  line-height: 1;
}

.watch-safe-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 4px 8px;
  color: #d9fff1;
  background: rgba(15, 159, 110, 0.18);
  border: 1px solid rgba(105, 230, 184, 0.42);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.watch-safe-state.danger {
  color: #ffe2de;
  background: rgba(217, 45, 32, 0.28);
  border-color: rgba(255, 157, 145, 0.5);
}

.watch-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.watch-metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 228, 245, 0.18);
  border-radius: 10px;
}

.watch-metric strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-metric small {
  color: #bcd0ec;
  font-size: 8px;
}

.watch-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  margin-top: 6px;
  padding: 5px 9px;
  color: #d8e7ff;
  background: rgba(0, 104, 248, 0.18);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
}

.watch-mode-banner strong {
  color: white;
  font-size: 9px;
}

.watch-menu {
  background: #f8fbff;
}

.watch-menu .watch-status {
  color: var(--yon-navy);
}

.watch-menu .watch-status span:last-child {
  color: var(--muted-ink);
}

.watch-screen-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 7px 0 8px;
  color: var(--yon-navy);
}

.watch-screen-title strong {
  font-size: 14px;
}

.watch-screen-title span {
  color: var(--muted-ink);
  font-size: 8px;
}

.watch-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}

.watch-menu-grid button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 51px;
  padding: 7px;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.watch-menu-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: var(--on-blue);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
}

.watch-menu-grid button:nth-child(2n) .watch-menu-icon {
  background: var(--trust-blue);
}

.watch-menu-copy {
  min-width: 0;
}

.watch-menu-copy strong,
.watch-menu-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-menu-copy strong {
  font-size: 9px;
}

.watch-menu-copy small {
  color: var(--muted-ink);
  font-size: 7px;
}

.watch-talk {
  color: var(--ink);
  background: #f8fbff;
}

.watch-talk .watch-status {
  color: var(--yon-navy);
}

.watch-talk .watch-status span:last-child {
  color: var(--muted-ink);
}

.watch-talk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 9px;
}

.watch-contact-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--on-blue);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.watch-talk-head strong,
.watch-talk-head small {
  display: block;
}

.watch-talk-head strong {
  font-size: 12px;
}

.watch-talk-head small {
  color: var(--muted-ink);
  font-size: 8px;
}

.watch-bubbles {
  display: grid;
  align-content: start;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}

.watch-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 7px 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px 11px 11px;
  font-size: 8px;
  line-height: 1.45;
}

.watch-bubble.mine {
  justify-self: end;
  color: white;
  background: var(--on-blue);
  border-color: var(--on-blue);
  border-radius: 11px 4px 11px 11px;
}

.watch-talk-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.watch-talk-actions button {
  min-height: 34px;
  color: var(--trust-blue);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.watch-health {
  color: var(--ink);
  background: #f8fbff;
}

.watch-health .watch-status {
  color: var(--yon-navy);
}

.watch-health .watch-status span:last-child {
  color: var(--muted-ink);
}

.watch-health-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.watch-health-card {
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.watch-health-card.wide {
  grid-column: 1 / -1;
}

.watch-health-card span,
.watch-health-card strong,
.watch-health-card small {
  display: block;
}

.watch-health-card span {
  color: var(--on-blue);
  font-size: 15px;
}

.watch-health-card strong {
  margin-top: 4px;
  color: var(--yon-navy);
  font-size: 18px;
}

.watch-health-card small {
  color: var(--muted-ink);
  font-size: 8px;
}

.watch-progress {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: #e7eef8;
  border-radius: 999px;
}

.watch-progress i {
  display: block;
  height: 100%;
  background: var(--on-blue);
  border-radius: inherit;
}

.watch-emergency {
  justify-content: center;
  text-align: center;
  background: #6e0d0d;
}

.emergency-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 14px auto 10px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
}

.watch-emergency h3 {
  margin: 0;
  font-size: 21px;
}

.watch-emergency p {
  margin: 7px 0 14px;
  color: #ffd9d4;
  font-size: 9px;
}

.watch-emergency button {
  min-height: 35px;
  color: #7e1111;
  background: white;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.phone-case {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 390 / 790;
  margin: 0 auto;
  padding: 11px;
  background: #09101c;
  border: 2px solid #273148;
  border-radius: 48px;
  box-shadow: 0 28px 50px rgba(0, 24, 80, 0.2);
}

.phone-speaker {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 25px;
  background: #060a11;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f8fbff;
  border-radius: 37px;
}

.phone-status-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 10px 23px 4px;
  color: var(--ink);
  font-size: 10px;
}

.parent-content {
  flex: 1;
  min-height: 0;
  padding: 9px 18px 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.parent-content::-webkit-scrollbar,
.watch-menu-grid::-webkit-scrollbar {
  display: none;
}

.parent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.parent-header p {
  margin: 0;
  color: var(--on-blue);
  font-size: 9px;
  font-weight: 700;
}

.parent-header h3 {
  margin: 3px 0 0;
  color: var(--yon-navy);
  font-size: 22px;
  line-height: 1.25;
}

.parent-header button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--trust-blue);
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.device-tabs {
  display: flex;
  gap: 6px;
  margin: 13px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.device-tabs button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 32px;
  color: var(--muted-ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.device-tabs button[aria-selected="true"] {
  color: white;
  background: var(--on-blue);
  border-color: var(--on-blue);
}

.location-hero {
  position: relative;
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
  color: white;
  background: var(--trust-blue);
  border-radius: 17px;
}

.location-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    linear-gradient(31deg, transparent 46%, white 47%, white 49%, transparent 50%),
    linear-gradient(150deg, transparent 56%, white 57%, white 59%, transparent 60%);
}

.location-hero > * {
  position: relative;
  z-index: 1;
}

.location-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-hero-top span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.location-hero h4 {
  margin: 31px 0 1px;
  font-size: 17px;
}

.location-hero p {
  margin: 0;
  color: #d6e7ff;
  font-size: 9px;
}

.location-hero-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.location-hero-actions button {
  min-height: 29px;
  padding: 5px 10px;
  color: var(--trust-blue);
  background: white;
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.parent-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 15px 1px 8px;
}

.parent-section-title strong {
  color: var(--yon-navy);
  font-size: 12px;
}

.parent-section-title span {
  color: var(--on-blue);
  font-size: 8px;
  font-weight: 700;
}

.parent-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.parent-stat {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 7px 4px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.parent-stat span {
  color: var(--on-blue);
  font-size: 14px;
}

.parent-stat strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--yon-navy);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-stat small {
  color: var(--muted-ink);
  font-size: 7px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.quick-action-grid button {
  display: grid;
  place-items: center;
  min-height: 65px;
  padding: 7px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.quick-action-grid button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--on-blue);
  background: #eaf3ff;
  border-radius: 9px;
  font-size: 14px;
}

.parent-navigation {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 66px;
  padding: 5px 12px 9px;
  background: white;
  border-top: 1px solid var(--line);
}

.parent-navigation button {
  display: grid;
  place-items: center;
  padding: 3px;
  color: #7889a8;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.parent-navigation button span {
  font-size: 17px;
  line-height: 1;
}

.parent-navigation button[aria-pressed="true"] {
  color: var(--on-blue);
  background: #edf5ff;
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.subpage-header p,
.subpage-header h3 {
  margin: 0;
}

.subpage-header p {
  color: var(--on-blue);
  font-size: 9px;
  font-weight: 700;
}

.subpage-header h3 {
  color: var(--yon-navy);
  font-size: 21px;
}

.subpage-header button {
  min-height: 31px;
  padding: 5px 9px;
  color: var(--on-blue);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
}

.map-surface {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 48%, rgba(0, 104, 248, 0.08) 49%, rgba(0, 104, 248, 0.08) 51%, transparent 52%),
    linear-gradient(22deg, transparent 45%, rgba(75, 94, 131, 0.11) 46%, rgba(75, 94, 131, 0.11) 49%, transparent 50%),
    #edf4e9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.map-surface::before {
  content: "해솔초등학교";
  position: absolute;
  top: 38px;
  right: 27px;
  padding: 5px 7px;
  color: var(--muted-ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
}

.safe-zone-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: rgba(0, 104, 248, 0.1);
  border: 2px solid rgba(0, 104, 248, 0.48);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--on-blue);
  border: 5px solid white;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 5px 14px rgba(0, 48, 144, 0.28);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-marker span {
  transform: rotate(45deg);
}

.map-caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.map-caption strong,
.map-caption small {
  display: block;
}

.map-caption strong {
  font-size: 10px;
}

.map-caption small {
  color: var(--muted-ink);
  font-size: 8px;
}

.map-caption button {
  align-self: center;
  min-height: 31px;
  padding: 5px 9px;
  color: white;
  background: var(--on-blue);
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
}

.timeline-list,
.feature-list,
.care-grid,
.talk-thread {
  display: grid;
  gap: 8px;
}

.timeline-item,
.feature-row,
.care-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.timeline-icon,
.feature-icon,
.care-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--on-blue);
  background: #eaf3ff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}

.timeline-copy,
.feature-copy,
.care-copy {
  min-width: 0;
  flex: 1;
}

.timeline-copy strong,
.timeline-copy small,
.feature-copy strong,
.feature-copy small,
.care-copy strong,
.care-copy small {
  display: block;
}

.timeline-copy strong,
.feature-copy strong,
.care-copy strong {
  font-size: 10px;
}

.timeline-copy small,
.feature-copy small,
.care-copy small {
  color: var(--muted-ink);
  font-size: 8px;
}

.timeline-item time {
  color: var(--muted-ink);
  font-size: 8px;
}

.feature-row button,
.care-card button {
  min-height: 31px;
  padding: 5px 9px;
  color: var(--on-blue);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.feature-row button.active {
  color: white;
  background: var(--on-blue);
  border-color: var(--on-blue);
}

.talk-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 10px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px 13px 13px;
  font-size: 10px;
}

.talk-bubble.mine {
  justify-self: end;
  color: white;
  background: var(--on-blue);
  border-color: var(--on-blue);
  border-radius: 13px 5px 13px 13px;
}

.talk-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 12px;
}

.talk-composer input {
  min-width: 0;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #b8cae4;
  border-radius: 9px;
  font-size: 9px;
}

.talk-composer button {
  min-width: 54px;
  color: white;
  background: var(--on-blue);
  border: 0;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}

.care-hero {
  padding: 16px;
  color: white;
  background: var(--yon-navy);
  border-radius: 16px;
}

.care-hero p {
  margin: 0;
  color: #bcd4f4;
  font-size: 9px;
}

.care-hero strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
}

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

.care-hero-stats span {
  display: grid;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  font-size: 8px;
}

.care-hero-stats b {
  font-size: 12px;
}

.sos-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #8f1b12;
  background: #fff0ed;
  border: 1px solid #f6c1ba;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .watch-product {
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 30px;
  }

  .watch-sos-key {
    right: 1px;
  }

  .phone-case {
    width: min(100%, 390px);
  }
}
