/* KOIREA R8.4.0: production release gate UI and age-document references. */
.v126-contact-guide {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 22px;
  padding: clamp(18px, 2.8vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid #f0d9c9;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf9, #fff7f2);
  box-shadow: 0 14px 36px rgba(116, 72, 54, .08);
}
.v126-contact-guide > div { min-width: 0; }
.v126-contact-guide .eyebrow {
  margin: 0 0 7px;
  color: #c75555;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.v126-contact-guide h2 {
  margin: 0;
  color: #251f22;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: 0;
}
.v126-contact-guide p:not(.eyebrow) {
  margin: 9px 0 0;
  max-width: 680px;
  color: #645c61;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.75;
}
.v126-contact-guide .v631-contact-required-actions {
  display: grid;
  grid-template-columns: minmax(170px, 1fr);
  gap: 9px;
  min-width: 210px;
}
.v126-contact-guide .button { min-height: 46px; white-space: normal; text-align: center; }

.v126-age-reference-figure { margin: 0; }
.v126-age-reference-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e8ddd5;
  border-radius: 18px;
  background: #f6f3ef;
  box-shadow: 0 18px 44px rgba(43, 35, 36, .12);
}
.v126-age-reference-figure figcaption {
  margin: 12px 0 0;
  color: #655d62;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.7;
}
.v126-age-reference-zoom {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid #8ac7d6;
  border-radius: 10px;
  color: #087693;
  background: #f2fcff;
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}
.v126-age-reference-zoom:hover,
.v126-age-reference-zoom:focus-visible {
  border-color: #087693;
  outline: 3px solid rgba(8, 118, 147, .18);
  outline-offset: 2px;
}
.v126-age-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.v126-age-reference-grid figure { min-width: 0; }
.v126-age-reference-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8ef;
  color: #6e5548;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.7;
}

.v126-developer-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 24px 26px;
  border: 1px solid #e4ece8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(44, 87, 74, .07);
}
.v126-developer-message p { margin: 0 0 7px; color: #418f7b; font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.v126-developer-message h3 { margin: 0; color: #292328; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.45; }
.v126-developer-message span { display: block; margin-top: 7px; color: #686168; font-size: .9rem; font-weight: 650; line-height: 1.75; }
.v126-developer-message a { display: inline-flex; align-items: center; gap: 8px; color: #337867; font-size: .88rem; font-weight: 900; white-space: nowrap; }
.v126-developer-message i { font-style: normal; }

.v126-safety-hub { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 88px; color: #292328; }
.v126-safety-hero { padding: clamp(28px, 6vw, 70px); border-radius: 30px; background: linear-gradient(135deg, #fff5f2, #fff 56%, #f1faf7); box-shadow: 0 22px 64px rgba(88, 57, 62, .08); }
.v126-safety-hub .eyebrow { margin: 0 0 12px; color: #d55265; font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.v126-safety-hero h1 { margin: 0; font-size: clamp(2rem, 5.1vw, 4.4rem); line-height: 1.28; letter-spacing: 0; }
.v126-safety-hero > p:not(.eyebrow) { max-width: 760px; margin: 22px 0 0; color: #625b60; font-size: 1rem; font-weight: 650; line-height: 1.9; }
.v126-safety-hero nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.v126-safety-hero nav a { padding: 9px 13px; border: 1px solid #efd9dc; border-radius: 999px; background: #fff; color: #8d3c4b; font-size: .82rem; font-weight: 850; }
.v126-safety-story, .v126-safety-section, .v126-safety-ai, .v126-safety-system { margin-top: 26px; padding: clamp(24px, 4.4vw, 48px); border: 1px solid #ece4e6; border-radius: 26px; background: #fff; box-shadow: 0 16px 46px rgba(72, 50, 57, .06); }
.v126-safety-story h2, .v126-safety-section h2, .v126-safety-ai h2, .v126-safety-system h2 { margin: 0; font-size: clamp(1.55rem, 3.4vw, 2.4rem); line-height: 1.42; letter-spacing: 0; }
.v126-safety-story h2 span { color: #d55265; }
.v126-safety-story > p:not(.eyebrow), .v126-safety-section header > p:not(.eyebrow), .v126-safety-system > p { color: #645d62; font-weight: 650; line-height: 1.9; }
.v126-safety-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 28px; }
.v126-safety-topic-grid article { min-width: 0; padding: 20px; border-radius: 18px; background: #fff8f6; }
.v126-safety-topic-grid h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.v126-safety-topic-grid p { margin: 9px 0 0; color: #6a6267; font-size: .88rem; font-weight: 650; line-height: 1.75; }
.v126-safety-actions ol { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.v126-safety-actions li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; padding: 17px; border-radius: 17px; background: #f6faf8; }
.v126-safety-actions li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #418f7b; color: #fff; font-weight: 900; }
.v126-safety-actions strong { font-size: 1rem; }
.v126-safety-actions li p { margin: 5px 0 0; color: #625c60; font-size: .88rem; font-weight: 650; line-height: 1.75; }
.v126-safety-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.v126-safety-ai { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; background: #fffaf0; }
.v126-safety-ai p, .v126-safety-ai li { color: #655e5a; font-size: .9rem; font-weight: 650; line-height: 1.8; }
.v126-safety-ai ul { margin-bottom: 0; padding-left: 20px; }
.v126-safety-system ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.v126-safety-system li { padding: 8px 12px; border-radius: 999px; background: #edf8f4; color: #337867; font-size: .82rem; font-weight: 850; }

.message-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ece5e7;
  border-radius: 16px;
  background: #fff;
}
.message-row-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.message-row-photo {
  display: grid;
  width: 72px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #fff3f0;
}
.message-row-photo img { width: 100%; height: 100%; object-fit: cover; }
.message-row-photo-empty,
.empty-icon {
  display: inline-grid;
  place-items: center;
  color: #df6571;
}
.message-row-photo-empty svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.8; }
.empty-icon svg { width: 38px; height: 38px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.message-row-body { display: grid; gap: 4px; min-width: 0; }
.message-row-body strong,
.message-row-body small,
.message-row-body > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-row-body small { color: #766e73; font-size: .78rem; }
.message-row-body > span { color: #5f585d; font-size: .88rem; }
.message-row-card > .admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.message-row-card > .admin-actions form { margin: 0; }
.v126-member-unavailable { width: min(620px, calc(100% - 24px)); margin: 42px auto 90px; }
.v126-member-unavailable h1 { max-width: 520px; margin-inline: auto; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.45; }
.v126-member-unavailable p { max-width: 540px; margin-inline: auto; line-height: 1.75; }
.v126-settings-group { overflow: hidden; border: 1px solid #eadfe2; border-radius: 16px; background: #fff; }
.v126-settings-group + .v126-settings-group { margin-top: 12px; }
.v126-settings-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  padding: 16px 18px;

  cursor: pointer;
  list-style: none;
}
.v126-settings-group > summary:where(:not(body.koirea-member-web [data-button-role])) {
  color: #352e33;
}
.v126-settings-group > summary::-webkit-details-marker { display: none; }
.v126-settings-group > summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; color: #d95765; font-size: 1.45rem; font-weight: 700; }
.v126-settings-group[open] > summary::after { content: "\2212"; }
.v126-settings-group > summary span { font-size: 1rem; font-weight: 900; }
.v126-settings-group > summary small { color: #776f74; font-size: .78rem; font-weight: 650; }
.v126-settings-group-body { display: grid; gap: 12px; padding: 4px 16px 18px; border-top: 1px solid #f1eaec; }

@media (max-width: 760px) {
  .v126-contact-guide { grid-template-columns: minmax(0, 1fr); width: calc(100% - 20px); }
  .v126-contact-guide .v631-contact-required-actions { min-width: 0; width: 100%; }
  .v126-age-reference-grid { grid-template-columns: minmax(0, 1fr); }
  .v126-developer-message, .v126-safety-ai { grid-template-columns: minmax(0, 1fr); }
  .v126-developer-message a { justify-self: start; white-space: normal; }
  .v126-safety-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .message-row-card { grid-template-columns: minmax(0, 1fr); }
  .message-row-main { grid-template-columns: 64px minmax(0, 1fr); }
  .message-row-photo { width: 64px; }
  .message-row-card > .admin-actions { justify-content: stretch; }
  .message-row-card > .admin-actions > * { flex: 1 1 130px; }
  .message-row-card > .admin-actions .button { width: 100%; }
}
@media (max-width: 390px) {
  .v126-contact-guide { margin-top: 10px; padding: 17px 14px; border-radius: 16px; }
  .v126-contact-guide h2 { font-size: 1.22rem; }
  .v126-contact-guide p:not(.eyebrow) { font-size: .88rem; line-height: 1.65; }
  .v126-age-reference-figure img { border-radius: 13px; }
  .v126-safety-hub { width: calc(100% - 20px); padding-top: 18px; }
  .v126-safety-hero, .v126-safety-story, .v126-safety-section, .v126-safety-ai, .v126-safety-system { padding: 20px 16px; border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .v126-contact-guide *, .v126-age-reference-figure * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Public safety guide: editorial hierarchy with compact, accessible navigation. */
.v126-safety-hub { width: min(1080px, calc(100% - 32px)); padding: 32px 0 76px; color: #17253b; }
.v126-safety-hero { padding: clamp(28px, 5vw, 54px); border: 1px solid #f0e3df; border-radius: 22px; background: linear-gradient(125deg, #fffaf7, #fff 70%); box-shadow: 0 14px 40px rgba(68, 41, 49, .045); }
.v126-safety-hub .v126-safety-label,
.v126-safety-hero > p.v126-safety-label,
.v126-safety-story > p.v126-safety-label { display: block; width: auto; margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #bd284b; font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.v126-safety-hero h1 { max-width: 22ch; font-size: clamp(30px, 4vw, 48px); line-height: 1.28; }
.v126-safety-hero > p:not(.v126-safety-label) { max-width: 68ch; margin: 18px 0 0; color: #566176; font-size: 15px; font-weight: 500; line-height: 1.8; }
.v126-safety-hero nav { margin-top: 25px; padding-top: 12px; border-top: 1px solid #ecdfdc; gap: 4px 20px; }
.v126-safety-hero nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: #953d53; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.v126-safety-hero nav a:focus-visible { outline: 3px solid #d9365d; outline-offset: 3px; }
.v126-safety-story,
.v126-safety-section,
.v126-safety-ai,
.v126-safety-system { margin-top: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.v126-safety-story { max-width: 75ch; margin-inline: auto; padding-block: 10px 14px; }
.v126-safety-story h2,
.v126-safety-section h2,
.v126-safety-ai h2,
.v126-safety-system h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.4; }
.v126-safety-story > p:not(.v126-safety-label) { color: #526078; font-weight: 500; line-height: 1.9; }
.v126-safety-section > header > p { max-width: 72ch; }
.v126-safety-topic-grid { gap: 10px; margin-top: 20px; }
.v126-safety-topic-grid article { padding: 19px; border: 1px solid #eee3de; border-radius: 14px; background: #fff; }
.v126-safety-topic-grid p,
.v126-safety-actions li p,
.v126-safety-ai p,
.v126-safety-ai li { font-weight: 500; }
.v126-safety-actions ol { margin-top: 18px; }
.v126-safety-actions li { grid-template-columns: 36px minmax(0,1fr); padding: 14px 16px; border: 1px solid #e6ebe8; border-radius: 12px; background: #fbfdfa; }
.v126-safety-actions li > span { width: 36px; height: 36px; border-radius: 50%; background: #347c6a; line-height: 1; }
.v126-safety-links { margin-top: 20px; }
.v126-safety-ai { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 24px; padding: 23px 26px; border: 1px solid #eee5d9; border-radius: 16px; background: #fffbf5; }
.v126-safety-system { padding-top: 28px; border-top: 1px solid #e9dedb; }
.v126-safety-system li { border-radius: 8px; }
@media (max-width:760px) {
  .v126-safety-hub { width: calc(100% - 24px); padding: 14px 0 76px; }
  .v126-safety-hero { padding: 24px 20px; border-radius: 17px; }
  body.v46-ui .v126-safety-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .v126-safety-hero nav { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .v126-safety-story,
  .v126-safety-section,
  .v126-safety-ai,
  .v126-safety-system { margin-top: 30px; }
  .v126-safety-topic-grid { grid-template-columns: minmax(0,1fr); }
  .v126-safety-ai { grid-template-columns: minmax(0,1fr); padding: 20px; }
  .v126-safety-links { display: grid; grid-template-columns: minmax(0,1fr); }
  .v126-safety-links .button { width: 100%; white-space: normal; }
}
@media (max-width:430px) {
  /* The legacy global body.v46-ui h1 rule uses !important; scope its override to this guide. */
  body.v46-ui .v126-safety-hero h1 { font-size: 20.5px !important; line-height: 1.35 !important; letter-spacing: -.02em !important; }
}
