/* Screenshot-led interface layer for the Loan Korea portfolio demo. */
:root {
  --ref-blue: #0867f2;
  --ref-blue-dark: #043b92;
  --ref-navy: #042f79;
  --ref-cyan: #0b9faa;
  --ref-text: #111827;
  --ref-subtle: #596579;
  --ref-line: #dbe2ec;
  --ref-soft: #f5f7fa;
  --ref-shadow: 0 8px 28px rgba(15, 34, 64, .08);
}

html { scroll-behavior: smooth; }
body.reference-ui {
  min-width: 320px;
  color: var(--ref-text);
  background: #f7f8fa;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.reference-ui *, .reference-ui *::before, .reference-ui *::after { box-sizing: border-box; }
.reference-ui .shell { width: min(calc(100% - 40px), 1180px); }
.reference-ui a { color: inherit; }
.reference-ui button, .reference-ui input, .reference-ui select { font: inherit; }
.reference-ui button, .reference-ui select { cursor: pointer; }
.reference-ui :focus-visible { outline: 3px solid rgba(8, 103, 242, .36); outline-offset: 3px; }
.reference-ui .skip-link { z-index: 1000; }
.mobile-only, .mobile-tabbar, .mobile-alert, .mobile-filter-actions, .filter-sheet__head,
.filter-sheet__handle { display: none; }

/* Header */
.reference-ui .app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 68px;
  border-bottom: 1px solid #e0e5ec;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
}
.reference-ui .app-header.is-scrolled { box-shadow: 0 7px 24px rgba(18, 40, 73, .08); }
.reference-ui .header-inner { display: grid; grid-template-columns: 175px 1fr auto; align-items: center; height: 100%; }
.reference-ui .wordmark {
  display: inline-block;
  width: max-content;
  color: #003f9e;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.reference-ui .wordmark span { color: #0b58cf; }
.reference-ui .desktop-nav { display: flex; justify-content: center; gap: 48px; }
.reference-ui .desktop-nav a {
  position: relative;
  padding: 23px 0;
  color: #2f3745;
  font-size: 14px;
  font-weight: 750;
}
.reference-ui .desktop-nav a[aria-current="page"] { color: var(--ref-blue); }
.reference-ui .desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ref-blue);
  content: "";
}
.reference-ui .header-actions { display: flex; align-items: center; gap: 24px; }
.reference-ui .portfolio-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid #25b8c0;
  border-radius: 999px;
  color: #087d85;
  background: #f5ffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.reference-ui .desktop-utility { display: inline-flex; align-items: center; gap: 6px; color: #566173; font-size: 13px; }

/* Home */
.home-app-shell { padding-top: 0; }
.reference-hero {
  position: relative;
  min-height: 272px;
  overflow: hidden;
  padding: 43px 40px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 73% 38%, rgba(29, 113, 232, .34), transparent 30%),
    linear-gradient(116deg, #062d71 0%, #003b91 55%, #052a66 100%);
}
.reference-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 35%, #000);
}
.reference-hero__copy { position: relative; z-index: 2; }
.reference-hero h1 { margin: 0; font-size: 29px; line-height: 1.25; letter-spacing: -.045em; }
.reference-hero p { margin: 10px 0 0; color: #d7e6ff; font-size: 14px; }
.reference-hero__art { position: absolute; z-index: 1; right: 30px; bottom: 46px; width: 310px; height: 160px; opacity: .22; }
.reference-hero__art i { position: absolute; bottom: 0; width: 54px; border: 2px solid #70a8fc; border-bottom: 0; background: repeating-linear-gradient(to bottom, transparent 0 15px, rgba(112,168,252,.55) 16px 18px); transform: skewY(-20deg); }
.reference-hero__art i:nth-child(1) { right: 10px; height: 145px; }
.reference-hero__art i:nth-child(2) { right: 88px; height: 95px; }
.reference-hero__art i:nth-child(3) { right: 168px; height: 125px; }
.reference-hero__art i:nth-child(4) { right: 236px; height: 72px; }
.reference-search {
  position: absolute;
  z-index: 3;
  right: 40px;
  bottom: 30px;
  left: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr 190px;
  gap: 10px;
  padding: 14px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 21, 58, .25);
}
.reference-search__item { display: flex; align-items: center; min-width: 0; height: 49px; padding: 0 15px; border: 1px solid #d7deea; border-radius: 8px; color: #687487; background: #fff; }
.reference-search__item > .icon { flex: 0 0 auto; margin-right: 10px; }
.reference-search select, .reference-search input { width: 100%; height: 100%; min-width: 0; border: 0; outline: 0; color: #2b3545; background: transparent; font-size: 14px; }
.reference-search select { appearance: none; }
.reference-search input::placeholder { color: #717b89; opacity: 1; }
.reference-search > button { min-height: 49px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(180deg, #1675ff, #075fde); box-shadow: 0 5px 13px rgba(8,103,242,.22); font-weight: 850; }
.reference-search > button:hover { background: #0457cb; }
.product-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 92px;
  padding: 0 32px;
  border: solid #e0e5ec;
  border-width: 0 1px 1px;
  background: #fff;
}
.product-shortcuts a { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; color: #273142; }
.product-shortcuts b { font-size: 14px; }
.shortcut-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; }
.shortcut-icon--blue { color: #075edc; background: #e9f2ff; }
.shortcut-icon--green { color: #4e9b38; background: #edf8e8; }
.shortcut-icon--cyan { color: #116b99; background: #eaf6fb; }
.shortcut-icon--orange { color: #e98500; background: #fff4e6; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(250px, .9fr); gap: 18px; padding: 28px 0 14px; }
.reference-panel { min-width: 0; padding: 18px; border: 1px solid var(--ref-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(19,39,70,.025); }
.reference-panel__head { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin-bottom: 14px; }
.reference-panel__head h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.reference-panel__head a { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; color: #5f6b7c; font-size: 12px; }
.company-grid--home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.region-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.region-chip-grid a { display: flex; align-items: center; justify-content: center; min-height: 35px; padding: 4px 7px; border: 1px solid #e2e6ec; border-radius: 7px; color: #525e70; background: #f7f8fa; font-size: 12px; font-weight: 700; }
.region-chip-grid a:first-child { color: #fff; border-color: var(--ref-blue); background: var(--ref-blue); }
.region-chip-grid span { display: none; }
.contract-notice { display: flex; align-items: center; min-height: 51px; margin-bottom: 16px; padding: 0 18px; border: 1px solid #d7e3f4; border-radius: 9px; color: #223b5c; background: #f8fbff; }
.contract-notice > .icon:first-child { margin-right: 12px; color: var(--ref-blue); }
.contract-notice strong { font-size: 13px; }
.contract-notice > .icon:last-child { margin-left: auto; color: var(--ref-blue); }

/* Shared horizontal company card */
.reference-ui .company-card--reference {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 12px;
  min-height: 160px;
  padding: 18px 17px 0;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.reference-ui .company-card--reference:hover { border-color: #8fb7f1; box-shadow: 0 8px 18px rgba(8,76,169,.08); transform: none; }
.company-symbol { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; }
.company-symbol--sky { background: linear-gradient(145deg, #12b8bc, #07959d); }
.company-symbol--navy { background: linear-gradient(145deg, #2a76f5, #164bc7); }
.company-symbol--amber { background: linear-gradient(145deg, #ffae2d, #e77d00); }
.company-symbol--mint { background: linear-gradient(145deg, #72c74c, #45a72b); }
.company-symbol--violet { background: linear-gradient(145deg, #9a86eb, #6a55c5); }
.company-symbol--gray { background: #617086; }
.company-card__content { min-width: 0; padding-right: 24px; }
.company-card__title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.company-card__title-line a { min-width: 0; }
.company-card__title-line h3 { margin: 0; overflow: hidden; color: #202532; font-size: 19px; line-height: 1.35; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.company-card__title-line .status { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #42bdc4; border-radius: 999px; color: #078a91; background: #f2ffff; font-size: 10px; font-weight: 850; }
.company-card__meta { margin: 7px 0 0; overflow: hidden; color: #556173; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.company-card__meta b { padding: 0 5px; color: #a1a9b5; }
.company-card__date { margin: 7px 0 0; color: #7b8491; font-size: 11px; }
.bookmark-button { position: absolute; top: 16px; right: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; min-height: 36px; padding: 5px; border: 0; color: #7c8797; background: transparent; }
.bookmark-button span { font-size: 9px; }
.bookmark-button.is-selected { color: var(--ref-blue); }
.company-card__detail { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; min-height: 40px; margin-top: 14px; border-top: 1px solid #edf0f4; color: #0866e9; font-size: 11px; font-weight: 800; }
.company-grid--home .company-card--reference { min-height: 153px; padding: 15px 13px 0; grid-template-columns: 42px minmax(0,1fr); gap: 0 9px; }
.company-grid--home .company-symbol { width: 38px; height: 38px; }
.company-grid--home .company-card__title-line h3 { font-size: 16px; }
.company-grid--home .company-card__content { padding-right: 0; }
.company-grid--home .bookmark-button { top: auto; right: auto; bottom: 8px; left: 10px; flex-direction: row; }

/* Directory */
.directory-page { min-height: calc(100vh - 140px); background: #fff; }
.directory-shell { padding: 25px 0 44px; }
.directory-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.directory-title h1 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.directory-search { position: relative; display: flex; align-items: center; width: 100%; height: 46px; margin-bottom: 15px; }
.directory-search input { width: 100%; height: 100%; padding: 0 50px 0 15px; border: 1px solid #d5dce6; border-radius: 8px; color: var(--ref-text); outline: 0; background: #fff; font-size: 14px; }
.directory-search input:focus { border-color: var(--ref-blue); box-shadow: 0 0 0 3px rgba(8,103,242,.1); }
.directory-search > .icon { position: absolute; right: 15px; color: #344054; pointer-events: none; }
.directory-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); border-top: 1px solid #e3e7ed; }
.filter-sidebar { padding: 20px 22px 0 0; border-right: 1px solid #e3e7ed; background: #fff; }
.filter-sidebar fieldset { margin: 0; padding: 0 0 22px; border: 0; }
.filter-sidebar fieldset + fieldset { padding-top: 21px; border-top: 1px solid #eceff3; }
.filter-sidebar legend { margin-bottom: 12px; padding: 0; color: #252b35; font-size: 14px; font-weight: 850; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips button { min-width: 43px; min-height: 32px; padding: 5px 10px; border: 1px solid #e1e6ed; border-radius: 7px; color: #596477; background: #f7f8fa; font-size: 12px; font-weight: 700; }
.filter-chips--wide button { min-width: auto; }
.filter-chips button.is-active { color: #fff; border-color: var(--ref-blue); background: var(--ref-blue); box-shadow: 0 4px 10px rgba(8,103,242,.18); }
.radio-list { display: grid; gap: 10px; }
.radio-list button { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0; border: 0; color: #4f5b6c; background: transparent; font-size: 12px; text-align: left; }
.radio-list button i { display: block; width: 15px; height: 15px; border: 1px solid #aeb8c5; border-radius: 50%; background: #fff; }
.radio-list button.is-active i { border: 4px solid var(--ref-blue); }
.filter-sidebar__actions { display: grid; grid-template-columns: .75fr 1.35fr; gap: 9px; padding: 16px 0 18px; border-top: 1px solid #e7ebf0; }
.filter-sidebar__actions button { min-height: 42px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.filter-reset { color: var(--ref-blue); border: 1px solid #8eb8f7; background: #fff; }
.filter-apply { color: #fff; border: 1px solid var(--ref-blue); background: var(--ref-blue); }
.directory-results { min-width: 0; padding: 18px 0 0 25px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 10px; }
.result-bar p { margin: 0; color: #4b5666; font-size: 13px; }
.result-bar strong { margin: 0 2px; color: var(--ref-blue); }
.result-bar__right { display: flex; align-items: center; gap: 12px; }
.result-bar__right > span { color: #6d7785; font-size: 11px; }
.result-bar select { height: 36px; padding: 0 34px 0 12px; border: 1px solid #dbe1e9; border-radius: 7px; color: #303947; background: #fff; font-size: 12px; }
.company-grid--directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid #e1e6ed; border-radius: 5px; color: #546071; background: #fff; font-size: 12px; }
.pagination button[aria-current="page"] { color: #fff; border-color: var(--ref-blue); background: var(--ref-blue); }
.pagination button:disabled { opacity: .45; cursor: default; }

/* Detail */
.reference-ui .detail-header { padding: 17px 0 13px; border-bottom: 0; background: #fff; }
.reference-ui .breadcrumb { margin-bottom: 13px; color: #7a8492; font-size: 11px; }
.reference-ui .detail-header__title { align-items: center; min-height: 96px; padding: 17px 20px; border: 1px solid var(--ref-line); border-radius: 10px; background: #fff; }
.reference-ui .detail-header__title > div:first-child { position: relative; padding-left: 68px; }
.reference-ui .detail-header__title > div:first-child::before { position: absolute; top: 0; left: 0; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; background: #0fa4a7; content: "✓"; font-size: 23px; font-weight: 900; }
.reference-ui .detail-header h1 { display: inline; margin: 0 8px 0 0; font-size: 24px; letter-spacing: -.04em; }
.reference-ui .detail-company-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reference-ui .detail-header .status { vertical-align: 3px; padding: 3px 8px; border: 1px solid #50bdc3; color: #07868c; background: #f3ffff; font-size: 10px; }
.reference-ui .detail-header__tagline { margin-top: 5px; color: #6b7584; font-size: 12px; }
.reference-ui .detail-header .tag-row { display: none; }
.reference-ui .detail-header__actions { align-self: center; }
.reference-ui .detail-header__actions .button { min-height: 41px; }
.reference-ui .section--compact { padding: 0 0 36px; background: #fff; }
.reference-ui .detail-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.reference-ui .detail-main { gap: 14px; }
.reference-ui .detail-panel { padding: 18px; border-radius: 10px; box-shadow: none; }
.reference-ui .detail-panel__title { margin-bottom: 13px; }
.reference-ui .detail-panel__title h2 { font-size: 17px; }
.reference-ui .detail-panel__title span { font-size: 11px; }
.reference-ui .detail-dl { grid-template-columns: 1fr; }
.reference-ui .detail-dl div, .reference-ui .detail-dl div:nth-child(odd), .reference-ui .detail-dl div:nth-child(even) { grid-template-columns: 135px minmax(0, 1fr); padding: 10px 6px; border-right: 0; }
.reference-ui .detail-dl dt { color: #687384; font-size: 12px; }
.reference-ui .detail-dl dd { font-size: 13px; }
.reference-ui .rate-highlight { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.reference-ui .rate-box { padding: 12px; border-radius: 8px; }
.reference-ui .rate-box span { font-size: 11px; }
.reference-ui .rate-box strong { margin-top: 4px; font-size: 15px; }
.reference-ui .detail-sidebar { top: 84px; gap: 12px; }
.reference-ui .sidebar-card { padding: 17px; border-radius: 10px; box-shadow: none; }
.reference-ui .sidebar-card p { font-size: 12px; line-height: 1.65; }
.reference-ui .sidebar-card--blue { color: #223142; border-color: #d8e8fb; background: #f2f8ff; }
.reference-ui .demo-alert { border-color: #ffd98f; border-radius: 10px; color: #8b5900; background: #fff8e9; font-size: 12px; }

/* Safety guide */
.safety-reference-page { min-height: calc(100vh - 68px); background: #fff; }
.safety-reference-shell { padding: 30px 0 48px; }
.safety-title { margin-bottom: 20px; }
.safety-title h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.safety-title > span { display: block; margin-top: 5px; color: #717b8a; font-size: 13px; }
.safety-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.safety-feature { position: relative; display: flex; align-items: center; min-height: 145px; overflow: hidden; padding: 24px 150px 24px 24px; border: 1px solid transparent; border-radius: 10px; }
.safety-feature h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.safety-feature p { margin: 7px 0 0; color: #4b596c; font-size: 13px; line-height: 1.65; }
.safety-feature > .icon { position: absolute; right: 14px; color: #718096; }
.safety-feature--mint { border-color: #ccebea; background: linear-gradient(110deg, #effcf9, #e8f8f9); }
.safety-feature--mint h2 { color: #069497; }
.safety-feature--blue { border-color: #d7e5fa; background: linear-gradient(110deg, #f3f8ff, #eaf3ff); }
.safety-feature--blue h2 { color: #1761c9; }
.safety-feature--orange { border-color: #ffe5ce; background: linear-gradient(110deg, #fff8ef, #fff0e4); }
.safety-feature--orange h2 { color: #df4b34; }
.safety-feature--purple { border-color: #e3dcf7; background: linear-gradient(110deg, #faf8ff, #f1edfc); }
.safety-feature--purple h2 { color: #5d3bb5; }
.feature-illustration { position: absolute; right: 45px; bottom: 18px; width: 90px; height: 90px; }
.feature-illustration--shield::before { position: absolute; inset: 4px 13px 11px; border: 8px solid #10a5a6; border-radius: 38% 38% 48% 48%; background: #fff; content: ""; clip-path: polygon(50% 0,100% 20%,88% 76%,50% 100%,12% 76%,0 20%); }
.feature-illustration--shield::after { position: absolute; top: 35px; left: 37px; width: 22px; height: 11px; border: solid #057e81; border-width: 0 0 5px 5px; content: ""; transform: rotate(-45deg); }
.feature-illustration--document::before { position: absolute; inset: 7px 15px; border: 3px solid #6e9ee5; background: repeating-linear-gradient(to bottom, #fff 0 14px, #a9c5ef 15px 18px); content: ""; }
.feature-illustration--document::after { position: absolute; right: 3px; bottom: 5px; width: 40px; height: 40px; border: 7px solid #f07165; border-radius: 50%; background: rgba(255,255,255,.86); content: ""; box-shadow: inset 0 0 0 4px white; transform: rotate(-45deg); }
.feature-illustration--siren::before { position: absolute; top: 27px; left: 22px; width: 48px; height: 45px; border-radius: 28px 28px 4px 4px; background: linear-gradient(#ff7355, #ea2929); box-shadow: 0 9px 0 #2f3742; content: ""; }
.feature-illustration--siren::after { position: absolute; top: 3px; left: 43px; width: 5px; height: 15px; background: #f1a333; content: ""; box-shadow: -25px 11px 0 #f1a333, 25px 11px 0 #f1a333; }
.feature-illustration--book::before { position: absolute; top: 18px; left: 5px; width: 38px; height: 57px; border: 4px solid #704fc3; border-radius: 6px 0 0 6px; background: repeating-linear-gradient(to bottom, #fff 0 10px, #d8cdf3 11px 13px); content: ""; transform: skewY(7deg); }
.feature-illustration--book::after { position: absolute; top: 18px; right: 5px; width: 38px; height: 57px; border: 4px solid #704fc3; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(to bottom, #fff 0 10px, #d8cdf3 11px 13px); content: ""; transform: skewY(-7deg); }
.safety-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.safety-info-card { min-width: 0; padding: 20px; border: 1px solid var(--ref-line); border-radius: 10px; background: #fff; }
.safety-info-card h2 { margin: 0 0 14px; font-size: 16px; }
.safety-info-card > a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 10px; border: 1px solid #e6eaf0; color: #0867e8; font-size: 12px; font-weight: 700; }
.safety-info-card > a + a { margin-top: 7px; }
.checklist-card p { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #465365; font-size: 12px; }
.checklist-card .icon { flex: 0 0 auto; padding: 2px; border: 1px solid #4c92ef; border-radius: 50%; color: #0867e8; }
.faq-card details { border: 1px solid #e4e8ee; border-radius: 7px; }
.faq-card details + details { margin-top: 7px; }
.faq-card summary { min-height: 40px; padding: 11px 36px 10px 11px; color: #374253; font-size: 12px; font-weight: 700; }
.faq-card details p { margin: 0; padding: 0 12px 12px; color: #5e6877; font-size: 12px; }
.demo-disclaimer { margin-top: 16px; padding: 16px 18px; border: 1px dashed #cfd7e2; border-radius: 9px; color: #536072; background: #fafbfc; }
.demo-disclaimer strong { font-size: 13px; }
.demo-disclaimer p { margin: 5px 0 0; font-size: 12px; }

/* Footer */
.compact-footer { border-top: 1px solid #e1e5eb; background: #fff; }
.compact-footer__inner { padding: 13px 0 17px; text-align: center; }
.compact-footer nav { display: flex; justify-content: center; gap: 28px; }
.compact-footer nav a { color: #505b6b; font-size: 11px; }
.compact-footer p { margin: 7px 0 0; color: #8a929d; font-size: 10px; }

/* Keep auxiliary pages legible under the new shell. */
.reference-ui .compare-hero, .reference-ui .admin-hero { background: #f4f8ff; }
.reference-ui .compare-table-wrap, .reference-ui .admin-panel { box-shadow: none; }

@media (max-width: 1024px) {
  .reference-ui .desktop-nav { gap: 24px; }
  .reference-ui .header-actions { gap: 12px; }
  .reference-ui .desktop-utility { display: none; }
  .home-content-grid { grid-template-columns: 1fr; }
  .region-chip-grid { grid-template-columns: repeat(8, 1fr); }
  .company-grid--directory { grid-template-columns: 1fr; }
  .reference-ui .detail-grid { grid-template-columns: minmax(0, 1fr) 245px; }
  .safety-feature { padding-right: 130px; }
  .feature-illustration { right: 32px; transform: scale(.86); }
}

@media (max-width: 740px) {
  body.reference-ui { padding-bottom: 72px; background: #fff; font-size: 15px; }
  body.filter-open { overflow: hidden; }
  .reference-ui .shell { width: 100%; }
  .mobile-only { display: initial; }
  .desktop-only, .reference-ui .desktop-nav, .reference-ui .desktop-utility { display: none !important; }
  .reference-ui .app-header { height: 72px; }
  .reference-ui .header-inner { display: flex; justify-content: space-between; padding: 0 18px; }
  .reference-ui .wordmark { font-size: 20px; }
  .reference-ui .wordmark { display: flex; align-items: center; min-height: 44px; }
  .reference-ui .header-actions { gap: 12px; }
  .reference-ui .portfolio-chip { min-height: 27px; padding: 4px 9px; font-size: 10px; }
  .reference-ui .mobile-alert { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; color: #4d5a6d; background: transparent; }

  .home-app-shell { padding: 0 14px; }
  .reference-hero { min-height: 368px; margin-top: 0; padding: 25px 17px 14px; border-radius: 12px; }
  .reference-hero h1 { font-size: 25px; line-height: 1.35; }
  .reference-hero p { max-width: 250px; font-size: 12px; }
  .reference-hero__art { right: -45px; bottom: 125px; width: 230px; opacity: .14; transform: scale(.8); }
  .reference-search { right: 13px; bottom: 13px; left: 13px; grid-template-columns: 1fr; gap: 0; padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,18,56,.28); }
  .reference-search__item { height: 50px; border: 0; border-bottom: 1px solid #e2e7ee; border-radius: 0; padding: 0 12px; }
  .reference-search__item .mobile-only { display: block; flex: 0 0 auto; }
  .reference-search > button { min-height: 51px; margin: 10px; border-radius: 8px; }
  .product-shortcuts { min-height: 102px; padding: 0; border: 0; }
  .product-shortcuts a { flex-direction: column; gap: 7px; min-height: 102px; }
  .product-shortcuts b { font-size: 11px; }
  .shortcut-icon { width: 48px; height: 48px; }
  .home-content-grid { display: block; padding: 5px 0 4px; }
  .reference-panel { padding: 0; border: 0; box-shadow: none; }
  .reference-panel__head { margin: 7px 4px 10px; }
  .reference-panel__head h2 { font-size: 18px; }
  .reference-panel__head a { min-height: 40px; }
  .reference-panel__head a { min-height: 44px; }
  .company-grid--home { grid-template-columns: 1fr; gap: 8px; }
  .company-grid--home .company-card--reference { min-height: 114px; padding: 14px 13px 0; }
  .company-grid--home .company-card--reference:nth-child(n+3) { display: none; }
  .company-grid--home .company-card__detail { position: absolute; right: 6px; bottom: 29px; width: 34px; border: 0; font-size: 0; }
  .company-grid--home .bookmark-button { top: 11px; right: 8px; bottom: auto; left: auto; font-size: 0; }
  .company-grid--home .bookmark-button span { display: none; }
  .region-panel { display: none; }
  .contract-notice { min-height: 52px; margin: 9px 0 7px; padding: 0 12px; }
  .contract-notice strong { font-size: 12px; }

  .company-card--reference { min-height: 122px !important; padding: 16px 13px 0 !important; border-radius: 10px !important; }
  .company-card__title-line h3 { font-size: 18px; }
  .company-card__title-line a { display: flex; align-items: center; min-height: 44px; }
  .company-card__meta { margin-top: 6px; font-size: 12px; }
  .company-card__date { font-size: 11px; }
  .company-card__detail { position: absolute; right: 6px; bottom: 31px; width: 34px; border: 0; font-size: 0; }
  .company-card__detail { min-width: 44px; min-height: 44px; }
  .bookmark-button { right: 4px; top: 7px; min-width: 44px; min-height: 44px; }
  .bookmark-button span { display: none; }

  .directory-shell { padding: 0 14px 24px; }
  .directory-title { min-height: 58px; margin: 0; }
  .directory-title h1 { font-size: 23px; }
  .directory-title .portfolio-chip { display: none; }
  .directory-search { height: 49px; margin-bottom: 15px; }
  .directory-search input { font-size: 15px; }
  .mobile-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
  .mobile-filter-actions button, .mobile-filter-actions label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid #cfd6e0; border-radius: 8px; color: #273141; background: #fff; font-size: 14px; font-weight: 800; }
  .directory-layout { display: block; border-top: 0; }
  .directory-results { padding: 0; }
  .result-bar { min-height: 38px; margin-bottom: 8px; }
  .result-bar p { font-size: 13px; }
  .result-bar__right > span { font-size: 11px; }
  .result-bar select { display: none; }
  .company-grid--directory { grid-template-columns: 1fr; gap: 8px; }
  .pagination { margin: 18px 0 5px; }
  .pagination button { min-width: 40px; height: 40px; }
  .filter-sidebar {
    position: fixed;
    z-index: 310;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 79vh;
    overflow-y: auto;
    padding: 10px 16px 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 38px rgba(17,28,47,.22);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .filter-sidebar.is-open { transform: translateY(0); }
  .filter-sheet__handle { display: block; width: 42px; height: 4px; margin: 0 auto 11px; border-radius: 9px; background: #acb4bf; }
  .filter-sheet__head { display: flex; align-items: center; justify-content: space-between; min-height: 49px; margin-bottom: 8px; border-bottom: 1px solid #e1e6ed; }
  .filter-sheet__head h2 { margin: 0; font-size: 19px; }
  .filter-sheet__head button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; }
  .filter-sidebar fieldset { padding-bottom: 18px; }
  .filter-sidebar fieldset + fieldset { padding-top: 18px; }
  .filter-sidebar legend { font-size: 15px; }
  .filter-chips { gap: 8px; }
  .filter-chips button { min-height: 37px; padding: 7px 12px; font-size: 13px; }
  .radio-list { gap: 7px; }
  .radio-list button { min-height: 38px; font-size: 13px; }
  .radio-list button i { width: 18px; height: 18px; }
  .filter-sidebar__actions { position: sticky; bottom: 0; margin: 0 -16px; padding: 13px 16px max(15px, env(safe-area-inset-bottom)); background: #fff; }
  .filter-sidebar__actions button { min-height: 50px; font-size: 14px; }
  .filter-backdrop { position: fixed; z-index: 300; inset: 0; display: block; background: rgba(10,18,30,.58); }
  .filter-backdrop[hidden] { display: none; }

  .reference-ui .detail-header { padding: 0 14px 12px; }
  .reference-ui .detail-header .shell, .reference-ui .section--compact > .shell { width: 100%; }
  .reference-ui .breadcrumb { min-height: 50px; margin: 0; padding: 16px 0 9px; font-size: 0; }
  .reference-ui .breadcrumb a:nth-of-type(1), .reference-ui .breadcrumb span:nth-of-type(1), .reference-ui .breadcrumb span:last-child { display: none; }
  .reference-ui .breadcrumb a:nth-of-type(2) { display: flex; align-items: center; gap: 8px; color: #1d2632; font-size: 15px; font-weight: 850; }
  .reference-ui .breadcrumb a:nth-of-type(2)::before { content: "←"; font-size: 22px; }
  .reference-ui .detail-header__title { display: block; min-height: 118px; padding: 18px 14px; }
  .reference-ui .detail-header__title > div:first-child { padding-left: 60px; }
  .reference-ui .detail-header__title > div:first-child::before { width: 45px; height: 45px; }
  .reference-ui .detail-header h1 { font-size: 21px; }
  .reference-ui .detail-header__actions { display: none; }
  .reference-ui .section--compact { padding: 0 14px 24px; }
  .reference-ui .detail-grid { display: block; }
  .reference-ui .detail-main { gap: 10px; }
  .reference-ui .detail-panel { padding: 16px 14px; }
  .reference-ui .detail-panel__title { margin-bottom: 10px; }
  .reference-ui .detail-panel__title h2 { font-size: 16px; }
  .reference-ui .detail-panel__title span { display: none; }
  .reference-ui .detail-dl div, .reference-ui .detail-dl div:nth-child(odd), .reference-ui .detail-dl div:nth-child(even) { grid-template-columns: 105px minmax(0,1fr); min-height: 43px; align-items: center; padding: 9px 4px; }
  .reference-ui .detail-dl dt { font-size: 12px; }
  .reference-ui .detail-dl dd { font-size: 12px; overflow-wrap: anywhere; }
  .reference-ui .rate-highlight { grid-template-columns: 1fr; }
  .reference-ui .rate-box { display: flex; align-items: center; justify-content: space-between; }
  .reference-ui .detail-main .detail-panel:nth-of-type(3) { display: none; }
  .reference-ui .detail-sidebar { position: static; margin-top: 10px; }
  .reference-ui .detail-sidebar .sidebar-card:nth-child(n+2) { display: none; }
  .reference-ui .sidebar-card { padding: 15px; }
  .reference-ui .demo-alert { order: 10; padding: 14px; }

  .safety-reference-shell { padding: 0 14px 26px; }
  .safety-title { margin: 0; padding: 13px 0 16px; }
  .safety-title .mobile-only { display: block; margin: 0 0 33px; font-size: 18px; font-weight: 850; }
  .safety-title h1 { font-size: 23px; }
  .safety-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .safety-feature { min-height: 150px; padding: 22px 135px 22px 17px; border-radius: 11px; }
  .safety-feature h2 { font-size: 18px; }
  .safety-feature p { font-size: 13px; }
  .feature-illustration { right: 30px; transform: scale(.84); }
  .safety-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .safety-info-card { padding: 17px; }
  .compact-footer { display: none; }
  .mobile-tabbar { position: fixed; z-index: 250; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 69px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #d9e0e9; background: rgba(255,255,255,.98); box-shadow: 0 -5px 20px rgba(23,39,62,.07); backdrop-filter: blur(15px); }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 68px; color: #687487; font-size: 10px; font-weight: 750; }
  .mobile-tabbar a[aria-current="page"] { color: var(--ref-blue); }
}

@media (prefers-reduced-motion: reduce) {
  .filter-sidebar { transition: none; }
}
