@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  --ink: #0b1f3a;
  --navy: #061a3a;
  --blue: #1267dd;
  --blue-2: #4bb8ff;
  --mint: #12b886;
  --mint-dark: #08765f;
  --rose: #b4234b;
  --muted: #66758a;
  --line: #dce8f5;
  --soft: #edf5ff;
  --wash: #f5f9fe;
  --white: #fff;
  --shadow: 0 18px 46px rgba(7, 31, 69, .1);
  --deep-shadow: 0 28px 72px rgba(5, 19, 46, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f2f7fd 0, #f8fbff 48%, #eef5fb 100%);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.web-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 0 max(18px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(219, 231, 245, .86);
  background: rgba(247, 251, 255, .95);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: #1168e7;
  box-shadow: 0 12px 26px rgba(18, 103, 221, .26);
}
.brand-mark img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.web-header nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #4b5f7a;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.web-header nav a,
.header-download,
.section-title button,
.more-button,
.primary-btn,
.community-actions button {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.web-header nav a:hover,
.header-download:hover,
.section-title button:hover,
.more-button:hover,
.primary-btn:hover,
.community-actions button:hover {
  transform: translateY(-1px);
}
.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(600px, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(91, 184, 255, .34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 24%, rgba(75, 184, 255, .34), transparent 34%),
    linear-gradient(135deg, #061936 0%, #073d91 54%, #071f45 100%);
  box-shadow: var(--deep-shadow);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  padding: 10px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-copy .eyebrow,
.bed-control .eyebrow {
  color: #89dcff;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(44px, 4.9vw, 72px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.hero-text {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-actions button,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.hero-actions button:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--blue);
}
.hero-route {
  display: grid;
  grid-template-columns: auto 28px auto 28px auto 28px auto;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(2, 16, 39, .36);
}
.hero-route span {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.hero-route i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(137,220,255,.9));
}

.command-shell {
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto;
  gap: 16px;
  min-width: 0;
}
.map-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(rgba(96, 183, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 183, 255, .07) 1px, transparent 1px),
    radial-gradient(circle at 67% 28%, rgba(75,184,255,.28), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: 0 22px 54px rgba(4, 15, 36, .22);
}
.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,22,52,0) 54%, rgba(5,22,52,.74) 100%);
  pointer-events: none;
}
.dashboard-top,
.dashboard-grid,
.stage-metrics {
  position: relative;
  z-index: 2;
}
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  color: rgba(255,255,255,.84);
}
.dashboard-top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(137,220,255,.28);
  border-radius: 999px;
  background: rgba(137,220,255,.12);
  color: #8be0ff;
  font-size: 11px;
  font-weight: 900;
}
.dashboard-top b {
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(168px, .56fr);
  gap: 12px;
  min-height: 206px;
  margin-top: 10px;
}
.hero-art-card {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 36%, rgba(83, 186, 255, .24), transparent 48%),
    rgba(1, 19, 48, .66);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.hero-art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 15, 38, .18), rgba(2, 15, 38, 0) 38%),
    linear-gradient(180deg, rgba(2, 15, 38, 0) 48%, rgba(2, 15, 38, .58));
  pointer-events: none;
}
.hero-art-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 18px;
}
.art-caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(3, 17, 42, .62);
  backdrop-filter: blur(10px);
}
.art-caption strong,
.art-caption span {
  color: #fff;
  font-weight: 900;
}
.art-caption span {
  color: #b7d9ff;
  font-size: 12px;
}
.dashboard-side {
  display: grid;
  gap: 10px;
}
.dashboard-side article {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(137,220,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.dashboard-side span,
.dashboard-side small {
  display: block;
  color: rgba(224,240,255,.76);
  font-size: 11px;
  font-weight: 800;
}
.dashboard-side b {
  display: block;
  margin: 5px 0 2px;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
}
.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.stage-metrics span {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(3, 18, 45, .28);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
}
.stage-metrics b {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}
.finder-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(137, 220, 255, .16);
  color: #8be0ff;
  font-size: 12px;
  font-weight: 900;
}
.finder-panel,
.metric-strip article,
.bed-control,
.care-hub,
.life-section,
.comfort-section,
.results-section,
.info-section,
.community-section,
.partner-section,
.web-footer,
.detail-hero,
.detail-section,
.detail-empty {
  border: 1px solid rgba(220, 232, 245, .94);
  background: #fff;
  box-shadow: var(--shadow);
}
.finder-panel {
  padding: 18px;
  border-radius: 22px;
}
.finder-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.finder-topline span {
  background: #e8f4ff;
  color: var(--blue);
}
.finder-topline b {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
  padding: 5px;
  border-radius: 14px;
  background: #eef4fc;
}
.mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #62748d;
  font-weight: 900;
}
.mode-tabs button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(18,103,221,.24);
}
.finder-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}
.search-box {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 8px;
}
.search-box input {
  min-width: 0;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
}
.search-box button,
.section-title button,
.more-button,
.primary-btn,
.community-actions button {
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  max-height: 90px;
  overflow: auto;
}
.chips button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #53657e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.chips button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.metric-strip article {
  min-height: 92px;
  padding: 16px 14px;
  border-radius: 18px;
}
.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  word-break: keep-all;
}
.metric-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  font-weight: 900;
}

.main-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 152px;
  margin: 16px 0 12px;
  padding: 26px 30px;
  border: 1px solid rgba(46, 119, 207, .25);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 20%, rgba(75,184,255,.24), transparent 32%),
    linear-gradient(90deg, rgba(6,26,58,.96), rgba(7,63,145,.82));
  color: #fff;
  box-shadow: var(--deep-shadow);
  overflow: hidden;
}
.main-ad .eyebrow {
  color: #8be0ff;
}
.main-ad h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}
.main-ad p:not(.eyebrow) {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.76);
  font-weight: 800;
}
.main-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.bed-control,
.care-hub,
.life-section,
.comfort-section,
.results-section,
.hospital-showcase,
.info-section,
.community-section,
.partner-section {
  margin-bottom: 16px;
  padding: 26px;
  border-radius: 28px;
}
.bed-control {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(137,220,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(137,220,255,.07) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(75, 184, 255, .34), transparent 34%),
    radial-gradient(circle at 42% 70%, rgba(18, 184, 134, .18), transparent 36%),
    linear-gradient(135deg, #03142f, #063b8c 56%, #061c3e);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: #fff;
  box-shadow: 0 28px 80px rgba(5, 19, 46, .26), inset 0 1px 0 rgba(255,255,255,.14);
}
.section-lead h2,
.section-title h2,
.partner-section h2,
.community-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0;
}
.bed-control h2 { color: #fff; }
.section-lead p:not(.eyebrow),
.partner-section p,
.community-section p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  font-weight: 700;
}
.bed-control p:not(.eyebrow) {
  color: rgba(255,255,255,.75);
}
.section-lead.wide {
  max-width: 900px;
}
.bed-layout {
  display: grid;
  grid-template-columns: minmax(180px, .66fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.bed-map {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(137,220,255,.24);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(137,220,255,.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(137,220,255,.09) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(137,220,255,.22), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
}
.bed-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 44%, rgba(137,220,255,.18) 48%, transparent 52% 100%);
  opacity: .9;
  pointer-events: none;
}
.bed-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 158px;
  height: 158px;
  border: 1px solid rgba(137,220,255,.46);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 34px rgba(137,220,255,.07),
    0 0 0 68px rgba(137,220,255,.035),
    inset 0 0 36px rgba(137,220,255,.16);
}
.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
}
.radar-core b {
  position: absolute;
  inset: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(4, 20, 48, .68);
  color: #fff;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 18px 40px rgba(2, 13, 32, .28);
}
.radar-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(137,220,255,.28);
  border-radius: 50%;
}
.ring-two {
  inset: 18px;
}
.ring-three {
  inset: 36px;
}
.radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 0 100% 0 0;
  background: linear-gradient(45deg, rgba(137,220,255,.44), transparent 70%);
  transform-origin: 0 0;
  transform: rotate(22deg);
}
.signal-lines {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 7px;
}
.signal-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(137,220,255,.42), rgba(18,184,134,.26), transparent);
}
.signal-lines span:nth-child(2) {
  width: 74%;
}
.signal-lines span:nth-child(3) {
  width: 52%;
}
.pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(137,220,255,.26);
  background: rgba(255,255,255,.9);
  color: #0b57c6;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(4, 15, 36, .25), 0 0 20px rgba(137,220,255,.16);
}
.pin-seoul { left: 38%; top: 17%; }
.pin-gyeonggi { left: 54%; top: 34%; }
.pin-chungcheong { left: 18%; top: 42%; }
.pin-jeolla { left: 30%; bottom: 22%; }
.pin-gyeongsang { right: 16%; bottom: 24%; }
.pin-all { right: 12%; top: 15%; }
.bed-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bed-board article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(137,220,255,.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05)),
    radial-gradient(circle at 90% 18%, rgba(137,220,255,.16), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.bed-board span,
.bed-board strong,
.bed-board small {
  display: block;
}
.bed-board span {
  color: #b9dcff;
  font-size: 13px;
  font-weight: 900;
}
.bed-board strong {
  margin-top: 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 900;
}
.bed-board small {
  margin-top: 9px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}

.care-hub {
  background:
    linear-gradient(180deg, #fff, #fbfdff);
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.hub-card {
  display: grid;
  grid-template-rows: 186px auto;
  gap: 0;
  min-height: 330px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(7, 31, 69, .08);
}
.cancer-card {
  background: linear-gradient(180deg, #fff9f2, #fff);
}
.brain-card {
  background: linear-gradient(180deg, #effbf7, #fff);
}
.hub-visual {
  display: grid;
  place-items: center;
  min-height: 186px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf8, #f0fbf7);
}
.hub-visual img {
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 186px;
  object-fit: contain;
  object-position: center;
}
.hub-copy {
  padding: 22px 24px 24px;
}
.hub-card span,
.source-grid span,
.info-grid span {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.hub-card h3 {
  max-width: 500px;
  margin: 13px 0 10px;
  color: var(--navy);
  font-size: clamp(23px, 2.55vw, 31px);
  line-height: 1.24;
  font-weight: 900;
}
.hub-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.hub-actions button,
.hub-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.hub-actions a {
  background: var(--blue);
  color: #fff;
}
.source-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.source-grid a,
.info-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.source-grid span,
.info-grid span {
  color: var(--blue);
}
.source-grid strong,
.info-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}
.source-grid small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.brain-preview {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #cfe0f4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 16%, rgba(75, 184, 255, .18), transparent 32%),
    linear-gradient(135deg, #f8fbff, #fff);
}
.brain-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.brain-preview-head h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.22;
  font-weight: 900;
}
.brain-preview-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.brain-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.brain-preview-head a,
.brain-toggle,
.brain-hero-actions button,
.brain-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.brain-toggle {
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.brain-toggle:hover,
.brain-preview-head a:hover {
  transform: translateY(-1px);
}
.brain-preview.is-collapsed {
  padding-bottom: 20px;
}
.brain-preview.is-collapsed .brain-stat-row,
.brain-preview.is-collapsed .brain-menu-grid,
.brain-preview.is-collapsed .brain-card-strip {
  display: none;
}
.brain-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.brain-stat-row span {
  display: block;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #dbe9f8;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.brain-stat-row b {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}
.brain-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.brain-menu-grid a {
  min-height: 108px;
  padding: 15px;
  border: 1px solid #dbe9f8;
  border-radius: 17px;
  background: #fff;
}
.brain-menu-grid span {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.brain-menu-grid strong {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 900;
}
.brain-menu-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}
.brain-card-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.brain-card,
.brain-article-card,
.brain-checklist-grid article,
.brain-quiz-grid details {
  min-width: 0;
  border: 1px solid #dbe9f8;
  border-radius: 18px;
  background: #fff;
}
.brain-card {
  min-height: 188px;
  padding: 17px;
}
.brain-card small,
.brain-article-card small {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.brain-card strong,
.brain-article-card strong,
.brain-checklist-grid strong {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.brain-card span,
.brain-article-card span {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
  font-weight: 800;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.brain-card b,
.brain-article-card b {
  display: inline-flex;
  margin-top: 13px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.brain-page {
  padding: 24px 0 44px;
  max-width: 100%;
  overflow-x: hidden;
}
.brain-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(91, 184, 255, .34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(75, 184, 255, .26), transparent 32%),
    linear-gradient(135deg, #061936 0%, #073d91 58%, #071f45 100%);
  box-shadow: var(--deep-shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.brain-hero > *,
.brain-section > *,
.brain-article-shell > * {
  min-width: 0;
}
.brain-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 58px);
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: anywhere;
}
.brain-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  font-weight: 800;
}
.brain-hero .eyebrow {
  color: #89dcff;
}
.brain-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.brain-hero-actions button {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.brain-hero-actions button:first-child {
  background: #fff;
  color: var(--blue);
}
.brain-control-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.brain-control-card span {
  color: #89dcff;
  font-size: 12px;
  font-weight: 900;
}
.brain-control-card strong {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  font-size: 20px;
  line-height: 1.1;
}
.brain-section,
.brain-article-shell {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 31, 69, .07);
}
.brain-medical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.brain-medical-grid button {
  display: grid;
  min-height: 156px;
  padding: 18px;
  border: 1px solid #cfe2f8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f6fbff);
  text-align: left;
  box-shadow: 0 12px 24px rgba(7, 31, 69, .06);
}
.brain-medical-grid small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.brain-medical-grid strong {
  align-self: center;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}
.brain-medical-grid span {
  align-self: end;
  color: #52647e;
  font-size: 14px;
  font-weight: 900;
}
.brain-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.brain-article-card {
  min-height: 210px;
  padding: 18px;
}
.page-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brain-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.brain-checklist-grid article {
  min-height: 154px;
  padding: 16px;
}
.brain-checklist-grid span {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.brain-checklist-grid small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.46;
  font-weight: 800;
}
.brain-article-title h1 {
  color: var(--navy);
  text-shadow: none;
}
.brain-article-title p:not(.eyebrow) {
  color: #52647e;
  font-size: 18px;
  font-weight: 800;
}
.brain-article-title div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.brain-article-title span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #cfe2f8;
  border-radius: 999px;
  background: #f2f8ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.medical-notice {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #ffd2dc;
  border-radius: 18px;
  background: #fff6f8;
}
.medical-notice strong {
  display: block;
  color: var(--rose);
  font-size: 16px;
  font-weight: 900;
}
.medical-notice p {
  margin: 8px 0 0;
  color: #7b3349;
  font-size: 14px;
  font-weight: 800;
}
.brain-article-body {
  color: #24364d;
  font-size: 17px;
  line-height: 1.85;
}
.brain-article-body .dm-article-header {
  display: none;
}
.brain-article-body h2,
.brain-article-body h3 {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.34;
}
.brain-article-body h2 {
  margin: 34px 0 12px;
  font-size: 28px;
}
.brain-article-body h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}
.brain-article-body p,
.brain-article-body li {
  color: #3e5068;
  font-weight: 700;
}
.brain-article-body ul,
.brain-article-body ol {
  padding-left: 22px;
}
.brain-article-body .dm-safety,
.brain-article-body .dm-action-box,
.brain-article-body .dm-quiz,
.brain-article-body .dm-clinic-questions,
.brain-article-body .dm-sources {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #dbe9f8;
  border-radius: 18px;
  background: #f8fbff;
}
.brain-article-body .dm-safety-red {
  border-color: #ffd2dc;
  background: #fff6f8;
}
.brain-article-body .dm-safety strong {
  color: var(--rose);
}
.brain-article-body a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brain-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.brain-quiz-grid details {
  padding: 16px;
}
.brain-quiz-grid summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}
.brain-quiz-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.brain-source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.brain-source-list a,
.brain-source-list span {
  display: block;
  padding: 12px 14px;
  border: 1px solid #dbe9f8;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--blue);
  font-weight: 900;
}

.section-title,
.result-head,
.partner-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.hospital-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.hospital-mini {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.hospital-mini .mini-image {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--soft);
}
.hospital-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hospital-mini small,
.hospital-mini strong,
.hospital-mini span,
.hospital-mini a {
  display: block;
}
.hospital-mini small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.hospital-mini strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hospital-mini span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hospital-mini a {
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.section-title button,
.more-button {
  min-height: 46px;
  padding: 0 17px;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.service-tile {
  min-height: 126px;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--navy);
  text-align: center;
}
.service-tile:hover {
  border-color: rgba(18,103,221,.42);
  box-shadow: 0 16px 32px rgba(18,103,221,.12);
}
.service-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 9px;
}
.service-tile strong {
  display: block;
  min-height: 34px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.28;
  font-weight: 900;
}
.service-tile span {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.comfort-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(7, 31, 69, .06);
  cursor: pointer;
}
.comfort-card:hover {
  border-color: #bad8fb;
  box-shadow: 0 16px 34px rgba(7, 31, 69, .1);
}
.comfort-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 31, 69, .08);
  overflow: hidden;
}
.comfort-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.comfort-card strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}
.comfort-card small {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  word-break: keep-all;
}
.comfort-card b {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  text-align: right;
}

.result-head {
  margin-bottom: 16px;
}
.result-head strong {
  display: block;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 900;
}
.result-head span {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}
.results-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.result-search-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid #cfe0f4;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 16px 34px rgba(7, 31, 69, .08);
}
.result-search-panel label {
  display: block;
  margin: 13px 0 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.compact-tabs {
  margin-bottom: 0;
}
.result-search-box {
  grid-template-columns: 1fr;
}
.result-search-box button {
  min-height: 44px;
}
.result-chips {
  max-height: none;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.result-card {
  position: relative;
  min-width: 0;
  min-height: 248px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.clickable-card {
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.clickable-card:hover {
  transform: translateY(-2px);
  border-color: #b7d4f6;
  box-shadow: 0 16px 36px rgba(7, 31, 69, .1);
}
.thumb,
.icon-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--soft);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icon-thumb img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.result-card small {
  display: inline-flex;
  margin-top: 13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.result-card strong {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-card span {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  margin: 18px auto 0;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-grid article {
  min-height: 168px;
}
.info-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.community-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #ecf6ff);
}
.app-preview {
  width: min(240px, 100%);
  aspect-ratio: 1080 / 2340;
  overflow: hidden;
  border: 7px solid #071b36;
  border-radius: 34px;
  background: #eef5ff;
  box-shadow: 0 26px 58px rgba(8, 26, 51, .2);
}
.app-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.primary-btn,
.community-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}
.community-actions button {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.partner-section {
  align-items: center;
}
.url-card {
  flex: 0 1 460px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fbff;
}
.url-card span,
.url-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.url-card b {
  display: block;
  margin: 8px 0 10px;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.partner-form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}
.web-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 42px;
  padding: 24px;
  border-radius: 24px;
  color: #52647e;
}
.web-footer b {
  display: block;
  color: var(--navy);
  font-size: 20px;
}
.web-footer span {
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}
.web-footer .company-meta {
  color: #46586f;
  font-size: 12px;
  white-space: normal;
  max-width: 840px;
}
.web-footer .company-meta strong {
  color: #253e58;
}
.web-footer .policy-links {
  margin-top: 12px;
  color: #5e7391;
}
.web-footer a {
  color: var(--blue);
  font-weight: 900;
}
@media (max-width: 820px) {
  .web-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.detail-page {
  padding: 24px 0 42px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 900;
}
.detail-hero,
.detail-section,
.detail-empty {
  border-radius: 24px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.detail-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(75, 184, 255, .14), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
}
.app-like-detail {
  padding: 0;
}
.app-like-detail.has-image {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
}
.app-like-detail > .detail-image,
.app-like-detail > .detail-icon {
  width: 100%;
  min-height: 320px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 103, 221, .08), rgba(18, 103, 221, .03)),
    var(--soft);
}
.detail-image,
.detail-icon {
  display: grid;
  place-items: center;
  min-height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--soft);
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-like-detail > .detail-image img,
.app-like-detail > .detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.type-representative-image {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 143, 255, .18), transparent 40%),
    linear-gradient(145deg, #f5faff, #e9f3ff);
}
.app-like-detail > .type-representative-image img {
  object-fit: contain;
  padding: clamp(26px, 4vw, 58px);
}
.type-representative-image span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(186, 211, 240, .9);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #365b83;
  font-size: 12px;
  font-weight: 900;
}
.rehab-detail-image {
  background:
    radial-gradient(circle at 72% 22%, rgba(63, 178, 255, .18), transparent 36%),
    linear-gradient(135deg, #f6fbff, #eaf5ff);
}
.rehab-detail-image img {
  padding: 18px;
  object-fit: contain;
}
.detail-icon img {
  width: min(180px, 45%);
  height: auto;
  object-fit: contain;
}
.app-like-detail > .detail-icon img {
  width: min(240px, 42%);
  height: auto;
  object-fit: contain;
  padding: 30px;
}
.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 26px 30px 30px;
}
.app-like-detail > .detail-copy {
  padding: 26px 30px 30px;
}
.detail-copy h1 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 54px);
  text-shadow: none;
}
.detail-copy p:not(.eyebrow),
.compact-detail p {
  color: #52647e;
  font-size: 17px;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.detail-tags span {
  padding: 6px 10px;
  border: 1px solid #cfe2f8;
  border-radius: 999px;
  background: #f2f8ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.detail-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.detail-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #cae0f8;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}
.detail-section {
  display: grid;
  grid-template-columns: .46fr 1fr;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.detail-ad {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(88, 167, 255, .35);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(6, 26, 58, .96), rgba(13, 81, 166, .9)),
    var(--navy);
  color: #fff;
  box-shadow: 0 20px 48px rgba(5, 25, 58, .18);
}
.detail-ad img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.detail-ad span {
  color: #8ec8ff;
  font-size: 11px;
  font-weight: 900;
}
.detail-ad strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}
.detail-ad p {
  margin: 7px 0 0;
  color: #d6e6fa;
  font-size: 13px;
}
.detail-ad b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
}
.detail-control {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(rgba(52, 136, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 136, 255, .08) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(75, 184, 255, .23), transparent 35%),
    linear-gradient(135deg, #071d45 0%, #0a3b81 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: #fff;
  box-shadow: var(--deep-shadow);
}
.detail-control h2,
.detail-control .eyebrow {
  color: #fff;
}
.detail-control p {
  color: #cfe1f7;
}
.detail-bed-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.detail-bed-summary span {
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(138, 195, 255, .24);
  border-radius: 15px;
  background: rgba(255,255,255,.08);
  color: #bcd8f9;
  font-size: 12px;
  font-weight: 800;
}
.detail-bed-summary b {
  display: block;
  color: #fff;
  font-size: 23px;
}
.room-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.room-detail-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(141, 200, 255, .28);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
}
.room-detail-card span,
.room-detail-card p {
  color: #bfd9f7;
}
.room-detail-type { display: flex; align-items: center; gap: 7px; font-weight: 900; }
.room-detail-type i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.15); font-style: normal; font-size: 15px; }
.room-detail-card.is-available { border-color: rgba(156, 225, 255, .62); background: linear-gradient(135deg, rgba(86, 181, 255, .22), rgba(255,255,255,.1)); }
.room-detail-card strong b { font-size: 22px; margin-right: 2px; }
.room-detail-card small { display: block; margin: 7px 0 0; color: #d4e8ff; font-size: 12px; }
.admission-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 14px; padding: 0 16px; border-radius: 8px; background: #1670da; color: #fff; font-size: 13px; font-weight: 900; text-decoration: none; }
.admission-inquiry-section { align-items: start; background: #f7fbff; border: 1px solid #cfe3f7; }
.admission-inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admission-inquiry-form label { display: grid; gap: 6px; color: #375271; font-size: 12px; font-weight: 800; }
.admission-inquiry-form input, .admission-inquiry-form select, .admission-inquiry-form textarea { min-width: 0; border: 1px solid #bdd3eb; border-radius: 8px; background: #fff; padding: 11px 12px; color: #173b68; font: inherit; }
.admission-inquiry-form textarea { min-height: 90px; resize: vertical; }
.admission-inquiry-form .wide-field { grid-column: 1 / -1; }
.admission-inquiry-form .consent-line { grid-template-columns: 16px 1fr; align-items: start; color: #607895; font-size: 11px; line-height: 1.55; }
.admission-inquiry-form .consent-line input { width: 16px; height: 16px; margin: 1px 0 0; padding: 0; }
.admission-inquiry-form .primary-btn { border: 0; cursor: pointer; }
.admission-inquiry-message { align-self: center; margin: 0; color: #a3493f; font-size: 12px; font-weight: 800; }
.admission-inquiry-message.is-success { color: #13725d; }
.room-detail-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
}
.room-detail-card p {
  margin: 8px 0 0;
  font-size: 13px;
}
.location-detail p,
.life-link-detail p,
.review-detail p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}
.location-button:disabled {
  cursor: wait;
  opacity: .65;
}
.location-status {
  display: block;
  margin-top: 10px;
  color: #60728a;
  font-size: 13px;
  font-weight: 800;
}
.detail-map-card {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid #cfe1f5;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(18,103,221,.12) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(225deg, rgba(18,103,221,.1) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(135deg, #eef7ff, #fff);
}
.kakao-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .2s ease;
}
.detail-map-card.is-live-map {
  background: #eef7ff;
}
.detail-map-card.is-live-map .kakao-map-canvas {
  opacity: 1;
}
.detail-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  background: rgba(244, 249, 255, .94);
}
.detail-map-fallback strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.45;
}
.detail-map-fallback span {
  color: #637790;
  font-size: 13px;
  line-height: 1.5;
}
.detail-map-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 13px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.detail-map-card.is-live-map .detail-map-fallback {
  display: none;
}
.detail-map-card.is-live-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.18));
}
.d-map-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 103, 221, .24);
}
.d-map-marker img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.d-map-marker.main {
  left: 48%;
  top: 32%;
  transform: translate(-50%, -50%);
}
.d-map-marker.small {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  opacity: .86;
}
.d-map-marker.small img {
  width: 20px;
  height: 20px;
}
.d-map-marker.one { left: 22%; top: 56%; }
.d-map-marker.two { right: 23%; top: 22%; }
.rehab-location .detail-map-card {
  background:
    linear-gradient(135deg, rgba(26, 120, 225, .08) 25%, transparent 25%) 0 0 / 30px 30px,
    linear-gradient(225deg, rgba(38, 201, 164, .09) 25%, transparent 25%) 0 0 / 30px 30px,
    linear-gradient(135deg, #f7fbff, #fff);
}
.nearby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.nearby-card,
.nearby-empty {
  position: relative;
  min-height: 92px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.nearby-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 78px;
  gap: 12px;
  align-items: center;
}
.nearby-card strong,
.nearby-card span,
.nearby-card small {
  display: block;
}
.nearby-card strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}
.nearby-card span {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.nearby-card small,
.nearby-empty {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.nearby-card .nearby-distance {
  color: var(--blue);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.nearby-card > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.life-link-detail .nearby-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.life-link-detail .nearby-card,
.life-link-detail .nearby-more-card {
  flex: 0 0 min(310px, calc(100vw - 72px));
  min-height: 132px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.life-link-detail .nearby-more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  cursor: pointer;
}
.life-link-detail .nearby-more-card strong {
  color: var(--blue);
  font-size: 15px;
}
.life-link-detail .nearby-more-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.nearby-directory-head {
  margin-bottom: 18px;
}
.nearby-directory-head .location-status {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.nearby-filter-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.nearby-filter-group > strong {
  color: var(--navy);
  font-size: 13px;
}
.nearby-filter-scroll {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 7px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.nearby-filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfdae7;
  border-radius: 18px;
  background: #fff;
  color: #53657c;
  font-size: 12px;
  font-weight: 900;
}
.nearby-filter.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.nearby-filter:disabled {
  cursor: wait;
  opacity: .65;
}
.related-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.related-service-grid button {
  display: grid;
  place-items: center;
  min-height: 106px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}
.related-service-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.tertiary-comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tertiary-comfort-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.tertiary-comfort-card summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 13px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.tertiary-comfort-card summary::-webkit-details-marker {
  display: none;
}
.tertiary-comfort-card summary span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #f4f8ff;
}
.tertiary-comfort-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.tertiary-comfort-card strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
}
.tertiary-comfort-card b {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}
.tertiary-comfort-card[open] b {
  transform: rotate(45deg);
}
.tertiary-comfort-card p {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
  word-break: keep-all;
}
.tertiary-comfort-card a {
  display: inline-flex;
  margin: 0 14px 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.tertiary-comfort-note {
  display: block;
  margin-top: 12px;
  color: #718198;
  font-weight: 800;
}
.review-panel {
  display: grid;
  grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef7ff, #fff);
}
.review-panel strong {
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}
.review-panel span {
  color: var(--navy);
  font-weight: 900;
}
.locked-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.locked-list span {
  min-height: 50px;
  padding: 14px;
  border-radius: 14px;
  background: #f2f7fd;
  color: #53657c;
  font-weight: 900;
}
.premium-lock {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
  min-height: 290px;
  margin-top: 18px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #d5e4f5;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7fbff 0%, #edf5ff 100%);
}
.premium-lock-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  filter: blur(4px);
  opacity: .5;
  user-select: none;
}
.premium-lock-preview span {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid #c7d9ec;
  border-radius: 14px;
  background: #fff;
  color: #57708e;
  font-weight: 900;
}
.premium-lock-copy {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(185, 211, 239, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(14, 73, 135, .12);
}
.premium-lock-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.32;
}
.premium-lock-copy p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: #536b85;
  line-height: 1.65;
}
.nearby-hospital-detail {
  border: 1px solid #cfe0f2;
  background: #f7fbff;
  grid-template-columns: 1fr;
}
.detail-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.25;
}
.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.info-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}
.info-list dt {
  color: #60728a;
  font-weight: 900;
}
.info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.compact-detail {
  align-items: center;
}
.service-detail-hero > .detail-icon {
  background: linear-gradient(145deg, #eff7ff, #f8fbff);
}
.service-detail-hero > .detail-icon img {
  width: min(190px, 52%);
  padding: 18px;
}
.service-basic-detail > div > p,
.service-event-detail > div > p,
.service-completeness-detail > div > p,
.service-owner-detail > div > p {
  margin: 10px 0 0;
  color: #60728a;
}
.service-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-event-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid #d8e6f6;
  border-radius: 14px;
  background: #f7fbff;
}
.service-event-card > img {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
}
.service-event-card > div {
  display: grid;
  align-content: center;
  gap: 6px;
}
.service-event-card.text-only { grid-template-columns: 1fr; }
.service-event-card strong { color: var(--navy); font-size: 17px; }
.service-event-card p { margin: 0; color: #53657c; line-height: 1.5; }
.service-event-card small { color: #71839a; font-weight: 800; }
.service-event-card a { color: var(--blue); font-weight: 900; }
.service-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service-check-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.service-check-list > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 900;
}
.service-check-list .is-ready > span {
  background: #e6f7ef;
  color: #147451;
}
.service-check-list .is-missing > span {
  background: #eaf3ff;
  color: var(--blue);
}
.service-check-list p {
  display: grid;
  gap: 4px;
  margin: 0;
}
.service-check-list strong {
  color: var(--navy);
}
.service-check-list small {
  color: #667890;
  line-height: 1.4;
}
.service-owner-detail {
  background: #eef6ff;
  border-color: #cfe3fb;
}
.service-owner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: center;
  gap: 10px;
}
.service-owner-actions strong,
.service-owner-actions span {
  grid-column: 1 / -1;
}
.service-owner-actions strong {
  color: var(--navy);
  font-size: 19px;
}
.service-owner-actions span {
  color: #60728a;
}
.service-app-detail .primary-btn {
  justify-self: end;
}
.detail-empty {
  padding: 42px;
}
.detail-empty strong,
.detail-empty span {
  display: block;
}
.detail-empty strong {
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}
.detail-empty span {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .web-header {
    grid-template-columns: auto auto;
    align-items: start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .web-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 320px;
  }
  .command-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
    grid-template-rows: auto;
  }
  .map-stage {
    min-height: 342px;
  }
  .metric-strip,
  .source-grid,
  .hospital-strip,
  .brain-menu-grid,
  .brain-stat-row,
  .brain-checklist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brain-article-grid,
  .brain-card-strip,
  .page-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comfort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bed-control,
  .bed-layout,
  .hub-grid,
  .community-section,
  .brain-hero {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  main {
    width: calc(100% - 28px);
    max-width: 100%;
    padding: 0;
  }
  .web-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 64px;
    gap: 10px;
    padding: 10px 14px;
    overflow: hidden;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .header-download {
    min-height: 38px;
    padding: 0 12px;
    width: 100%;
  }
  .web-header nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    font-size: 12px;
  }
  .web-header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid rgba(219, 231, 245, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
    min-width: 0;
  }
  .hero {
    margin-top: 14px;
    padding: 17px;
    border-radius: 24px;
    overflow: hidden;
  }
  .hero > *,
  .command-shell,
  .map-stage,
  .finder-panel {
    min-width: 0;
    max-width: 100%;
  }
  .hero-copy {
    min-height: 0;
    min-width: 0;
    padding: 2px;
  }
  h1 {
    font-size: 30px;
  }
  .hero-text {
    max-width: min(100%, 320px);
    font-size: 13.5px;
    line-height: 1.72;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .hero-actions button,
  .hero-actions a {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-actions button,
  .hero-actions a {
    width: 100%;
  }
  .hero-route {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 20px;
  }
  .hero-route i {
    display: none;
  }
  .hero-route span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    text-align: center;
    white-space: normal;
  }
  .command-shell {
    grid-template-columns: 1fr;
  }
  .map-stage {
    min-height: 0;
    padding: 14px;
  }
  .dashboard-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-top b {
    text-align: left;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-art-card {
    min-height: 188px;
  }
  .art-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .dashboard-side article {
    min-height: 74px;
  }
  .stage-metrics {
    grid-template-columns: 1fr;
  }
  .finder-panel {
    padding: 16px;
    border-radius: 20px;
  }
  .finder-topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .finder-topline b {
    text-align: left;
  }
  .search-box {
    grid-template-columns: 1fr;
  }
  .search-box button {
    min-height: 48px;
  }
  .results-shell {
    grid-template-columns: 1fr;
  }
  .result-search-panel {
    position: static;
    padding: 16px;
    border-radius: 20px;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric-strip article {
    min-height: 98px;
    padding: 15px;
    border-radius: 18px;
  }
  .metric-strip strong {
    font-size: 22px;
  }
  .bed-control,
  .care-hub,
  .life-section,
  .comfort-section,
  .results-section,
  .hospital-showcase,
  .info-section,
  .community-section,
  .partner-section {
    padding: 18px;
    border-radius: 22px;
  }
  .brain-preview,
  .brain-section,
  .brain-article-shell {
    padding: 18px;
    border-radius: 22px;
  }
  .brain-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .brain-preview-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .brain-toggle,
  .brain-preview-head a {
    width: 100%;
  }
  .brain-stat-row,
  .brain-menu-grid,
  .brain-medical-grid,
  .brain-card-strip,
  .brain-article-grid,
  .brain-checklist-grid,
  .brain-quiz-grid {
    grid-template-columns: 1fr;
  }
  .brain-hero {
    padding: 20px;
    border-radius: 24px;
  }
  .brain-hero h1 {
    font-size: 27px;
    line-height: 1.28;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .brain-hero p:not(.eyebrow),
  .brain-article-title p:not(.eyebrow),
  .brain-article-body {
    font-size: 15px;
  }
  .brain-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .brain-hero-actions button,
  .brain-hero-actions a {
    width: 100%;
  }
  .brain-control-card {
    min-height: 0;
  }
  .brain-article-body h2 {
    font-size: 23px;
  }
  .main-ad {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding: 22px;
  }
  .main-ad a {
    width: 100%;
  }
  .section-lead h2,
  .section-title h2,
  .partner-section h2,
  .community-section h2 {
    font-size: 25px;
  }
  .bed-map {
    min-height: 190px;
  }
  .bed-board,
  .hub-grid,
  .comfort-grid,
  .hospital-strip,
  .source-grid,
  .info-grid,
  .results-shell,
  .result-grid {
    grid-template-columns: 1fr;
  }
  .bed-board article {
    min-height: 102px;
  }
  .hub-card {
    min-height: 0;
    border-radius: 20px;
  }
  .hub-visual,
  .hub-visual img {
    min-height: 154px;
  }
  .hub-copy {
    padding: 18px;
  }
  .hub-card h3 {
    font-size: 23px;
  }
  .hub-card p {
    font-size: 14px;
  }
  .hub-actions button,
  .hub-actions a,
  .section-title button,
  .community-actions a,
  .community-actions button {
    width: 100%;
  }
  .section-title,
  .result-head,
  .partner-section,
  .web-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .hospital-mini {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 96px;
  }
  .hospital-mini .mini-image {
    width: 76px;
    height: 76px;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .service-tile {
    min-height: 116px;
  }
  .service-tile img {
    width: 42px;
    height: 42px;
  }
  .result-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-height: 118px;
    padding: 12px;
  }
  .thumb,
  .icon-thumb {
    width: 82px;
    height: 82px;
    aspect-ratio: auto;
  }
  .icon-thumb img {
    width: 52px;
    height: 52px;
  }
  .result-card small {
    margin-top: 0;
  }
  .result-card strong {
    min-height: 0;
    font-size: 17px;
  }
  .app-preview {
    width: min(230px, 78vw);
  }
  .detail-page {
    padding-top: 16px;
  }
  .detail-hero,
  .detail-section,
  .detail-control,
  .premium-lock {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 21px;
  }
  .premium-lock-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .premium-lock-preview span {
    min-height: 68px;
  }
  .premium-lock-copy {
    padding: 18px;
  }
  .app-like-detail.has-image {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .detail-ad {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .detail-ad b {
    width: 100%;
  }
  .detail-gallery,
  .room-detail-grid,
  .nearby-grid,
  .related-service-grid,
  .tertiary-comfort-grid,
  .locked-list,
  .service-check-list,
  .service-event-grid,
  .service-owner-actions {
    grid-template-columns: 1fr;
  }
  .service-owner-actions strong,
  .service-owner-actions span {
    grid-column: auto;
  }
  .nearby-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nearby-card > a {
    grid-column: 1 / -1;
  }
  .service-event-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .service-event-card > img {
    width: 82px;
    height: 82px;
  }
  .detail-bed-summary {
    grid-template-columns: 1fr;
  }
  .admission-inquiry-form { grid-template-columns: 1fr; }
  .admission-inquiry-form .wide-field { grid-column: auto; }
  .detail-bed-summary span {
    min-height: 64px;
  }
  .room-detail-card {
    min-height: 0;
  }
  .detail-map-card {
    min-height: 142px;
  }
  .review-panel {
    grid-template-columns: 1fr;
  }
  .detail-image,
  .detail-icon {
    min-height: 210px;
    border-radius: 17px;
  }
  .detail-copy h1 {
    font-size: 30px;
  }
  .detail-copy p:not(.eyebrow),
  .compact-detail p {
    font-size: 15px;
  }
  .detail-actions,
  .detail-actions a,
  .compact-detail a,
  .service-owner-actions a {
    width: 100%;
  }
  .service-app-detail .primary-btn {
    justify-self: stretch;
  }
  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-actions button,
  .hero-actions a {
    width: 100%;
  }
  .hero-route {
    grid-template-columns: 1fr;
  }
}
