/* 【2026-11-10】병원 찾기(가입 직후 한 단계 · 첫 화면 맨 위 카드) + 서비스 세 묶음 머리 — firstrun.js 가 그린다.
   허브 결(hub.css): 인디고 브랜드 · 큰 둥근 면 · 굵은 고딕. 세리프 없음. 모바일 한 손 기준(누르는 자리 44px 이상). */

/* ═════════ 한 단계 화면(가입 직후는 화면 전체, 첫 화면에서는 위에 뜨는 판) ═════════ */
.fr-stage{min-height:100vh;display:flex;flex-direction:column;background:
  radial-gradient(900px 420px at 50% -120px,rgba(129,140,248,.30),transparent 70%),
  radial-gradient(520px 320px at 100% 100%,rgba(16,185,129,.10),transparent 70%),var(--paper,#F6F7FB)}
.fr-overlay{position:fixed;inset:0;z-index:60;overflow-y:auto;background:rgba(15,23,42,.46);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;animation:fr-fade .18s ease}
.fr-overlay .fr-sheet{width:100%;max-width:640px;background:#fff;border-radius:28px;box-shadow:0 40px 80px -30px rgba(15,23,42,.55);padding:28px 28px 24px;position:relative;animation:fr-rise .26s cubic-bezier(.2,.8,.2,1)}
.fr-x{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#94A3B8;background:#F1F5F9;font-size:15px}
.fr-x:hover{background:#E2E8F0;color:#475569}
.fr-top{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:720px;width:100%;margin:0 auto;padding:22px 20px 0}
.fr-later{min-height:44px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:700;color:#64748B}
.fr-later:hover{background:rgba(15,23,42,.06);color:#0F172A}
.fr-wrap{max-width:640px;width:100%;margin:0 auto;padding:44px 20px 72px;flex:1}
.fr-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:800;letter-spacing:.04em;color:#4F46E5;background:#EEF2FF;border:1px solid #E0E7FF;border-radius:999px;padding:6px 12px}
.fr-eyebrow i{font-size:11px}
.fr-h1{font-size:clamp(28px,5.4vw,40px);line-height:1.2;font-weight:900;letter-spacing:-.03em;color:var(--ink,#0F172A);margin:16px 0 10px}
.fr-lede{font-size:16.5px;line-height:1.7;color:#475569;margin-bottom:26px}
.fr-lede b{color:#0F172A;font-weight:800}

/* 검색창 */
.fr-search{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #D8DEE9;border-radius:20px;padding:7px 7px 7px 18px;box-shadow:0 18px 40px -28px rgba(30,27,75,.5);transition:border-color .15s,box-shadow .15s}
.fr-search:focus-within{border-color:#818CF8;box-shadow:0 0 0 5px rgba(99,102,241,.14),0 18px 40px -28px rgba(30,27,75,.5)}
.fr-search > i{color:#94A3B8;font-size:16px;flex:none}
#app .fr-search input,.fr-search input{flex:1;min-width:0;border:0 !important;box-shadow:none !important;outline:none;background:transparent;font-size:17px;font-weight:600;color:#0F172A;padding:11px 4px;border-radius:0}
.fr-search input::placeholder{color:#A8B1C2;font-weight:500}
.fr-go{flex:none;min-height:48px;padding:0 20px;border-radius:14px;font-size:15.5px;font-weight:800;color:#fff;background:linear-gradient(135deg,#4F46E5,#6D28D9);box-shadow:0 10px 22px -12px rgba(79,70,229,.95)}
.fr-go:hover{filter:brightness(1.07)}
.fr-go:disabled{opacity:.55;filter:none;cursor:default}
.fr-hint{font-size:13.5px;color:#64748B;margin:12px 4px 0;line-height:1.6}
.fr-cands{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 2px 0;font-size:13.5px;color:#64748B}
.fr-chip{min-height:36px;padding:0 13px;border-radius:999px;border:1px solid #C7D2FE;background:#fff;color:#4338CA;font-size:13.5px;font-weight:700}
.fr-chip:hover{background:#EEF2FF}

/* 결과 목록 */
.fr-results{margin-top:22px}
.fr-count{font-size:13px;font-weight:700;color:#64748B;margin:0 4px 10px}
.fr-list{display:flex;flex-direction:column;gap:10px}
.fr-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#fff;border:1px solid var(--line,#E6EAF2);border-radius:18px;padding:14px 16px;min-height:72px;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:transform .15s,border-color .15s,box-shadow .15s;animation:fr-rise .28s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 28ms)}
.fr-row:hover,.fr-row:focus-visible{border-color:#A5B4FC;transform:translateY(-1px);box-shadow:0 14px 28px -20px rgba(79,70,229,.6);outline:none}
.fr-pin{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none;color:#4F46E5;background:#EEF2FF;font-size:16px}
.fr-row .fr-b{min-width:0;flex:1}
.fr-row .fr-n{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:16px;font-weight:800;color:#0F172A;line-height:1.35}
.fr-kind{font-size:11.5px;font-weight:700;color:#4338CA;background:#EEF2FF;border-radius:999px;padding:2px 8px;white-space:nowrap}
.fr-row .fr-a{font-size:13.5px;color:#64748B;margin-top:3px;line-height:1.5}
.fr-row .fr-a span + span:before{content:"·";margin:0 6px;color:#CBD5E1}
.fr-row .fr-a .ph{white-space:nowrap}
.fr-row > i.fa-chevron-right{color:#CBD5E1;font-size:13px;flex:none}
.fr-skel{height:72px;border-radius:18px;background:linear-gradient(90deg,#EEF1F6 25%,#F6F8FB 37%,#EEF1F6 63%);background-size:400% 100%;animation:fr-shimmer 1.2s ease infinite}
.fr-empty{background:#fff;border:1px dashed #CBD5E1;border-radius:18px;padding:22px 20px;font-size:15px;line-height:1.7;color:#475569}
.fr-empty b{color:#0F172A}
.fr-err{font-size:14px;color:#BE123C;background:#FFF1F2;border:1px solid #FECDD3;border-radius:14px;padding:12px 14px;margin-top:14px;line-height:1.6}
.fr-foot{margin-top:22px;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.fr-link{min-height:44px;font-size:14px;font-weight:700;color:#4F46E5;padding:0 4px}
.fr-link:hover{text-decoration:underline}
.fr-link.dim{color:#64748B}

/* 확인 · 직접 적기 */
.fr-panel{background:#fff;border:1px solid var(--line,#E6EAF2);border-radius:24px;padding:24px;box-shadow:0 24px 50px -34px rgba(30,27,75,.5);animation:fr-rise .26s cubic-bezier(.2,.8,.2,1)}
.fr-overlay .fr-panel{border:0;box-shadow:none;padding:0;border-radius:0}
.fr-panel h2{font-size:21px;font-weight:900;letter-spacing:-.02em;color:#0F172A;margin-bottom:4px}
.fr-panel .fr-sub{font-size:14.5px;color:#64748B;line-height:1.6;margin-bottom:18px}
.fr-field{display:block;margin-bottom:14px}
.fr-field > span{display:block;font-size:13px;font-weight:700;color:#475569;margin-bottom:6px}
#app .fr-field input,.fr-field input{width:100%;border:1.5px solid #D8DEE9;border-radius:14px;padding:13px 14px;font-size:16.5px;font-weight:700;color:#0F172A;background:#fff}
.fr-field input:focus{outline:none;border-color:#818CF8;box-shadow:0 0 0 4px rgba(99,102,241,.14)}
.fr-field small{display:block;font-size:12.5px;color:#94A3B8;margin-top:6px;line-height:1.5}
.fr-facts{border-top:1px solid #EEF1F6;margin:4px 0 18px}
.fr-facts > div{display:flex;gap:14px;padding:12px 2px;border-bottom:1px solid #EEF1F6;font-size:15px;line-height:1.55}
.fr-facts dt{flex:none;width:44px;color:#94A3B8;font-weight:700;font-size:13.5px;padding-top:1px}
.fr-facts dd{flex:1;min-width:0;color:#0F172A;font-weight:600;word-break:keep-all}
.fr-facts dd a{color:#4F46E5;font-weight:700;font-size:13.5px;white-space:nowrap}
.fr-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.fr-btn{min-height:50px;padding:0 22px;border-radius:15px;font-size:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.fr-btn{white-space:nowrap}
.fr-btn.solid{color:#fff;background:linear-gradient(135deg,#4F46E5,#6D28D9);box-shadow:0 12px 24px -14px rgba(79,70,229,.95)}
.fr-btn.solid:hover{filter:brightness(1.07)}
.fr-btn.ghost{color:#475569;background:#fff;border:1.5px solid #D8DEE9}
.fr-btn.ghost:hover{border-color:#818CF8;color:#4338CA}
.fr-btn:disabled{opacity:.55;cursor:default;filter:none}
.fr-msg{font-size:14px;line-height:1.6;margin-top:12px;color:#475569;min-height:1px}
.fr-msg.bad{color:#BE123C}

/* 끝 */
.fr-done-mark{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;color:#fff;font-size:26px;background:linear-gradient(135deg,#10B981,#059669);box-shadow:0 18px 34px -16px rgba(5,150,105,.9);animation:fr-pop .5s cubic-bezier(.2,1.4,.4,1) both}
.fr-done-h{font-size:clamp(24px,4.6vw,32px);font-weight:900;letter-spacing:-.03em;line-height:1.25;color:#0F172A;margin:18px 0 8px}
.fr-spread{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.fr-spread span{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#334155;background:#fff;border:1px solid var(--line,#E6EAF2);border-radius:999px;padding:6px 12px;opacity:0;animation:fr-rise .4s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(180ms + var(--i,0) * 70ms)}
.fr-spread span i{color:var(--c,#4F46E5);font-size:12px}
.fr-spread-note{font-size:13px;color:#64748B;line-height:1.6;margin:8px 2px 0}
.fr-kept{margin-top:16px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:16px;padding:14px 16px;font-size:14px;line-height:1.65;color:#92400E}
.fr-kept button{margin-top:8px;min-height:40px;padding:0 14px;border-radius:12px;background:#fff;border:1px solid #FCD34D;font-size:13.5px;font-weight:800;color:#92400E}
.fr-chan{margin-top:18px;border-top:1px solid #EEF1F6;padding-top:16px}
.fr-chan h3{font-size:14px;font-weight:800;color:#0F172A;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.fr-chan .fr-wait{font-size:13.5px;color:#64748B}
.fr-chan ul{display:flex;flex-direction:column;gap:8px}
.fr-chan li{display:flex;align-items:center;gap:10px;font-size:14px;color:#334155;min-width:0}
.fr-chan li .u{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-chan li b{flex:none;font-size:12px;font-weight:800;color:#4338CA;background:#EEF2FF;border-radius:999px;padding:2px 9px}
.fr-chan li button{flex:none;min-height:36px;padding:0 12px;border-radius:11px;border:1px solid #C7D2FE;background:#fff;color:#4338CA;font-size:13px;font-weight:800}
.fr-chan li button:disabled{border-color:#A7F3D0;color:#047857;background:#ECFDF5}
.fr-next{margin-top:22px;border-radius:22px;padding:20px;background:#0F172A;color:#E2E8F0;position:relative;overflow:hidden}
.fr-next:before{content:"";position:absolute;inset:0;background:radial-gradient(360px 200px at 100% 0,rgba(245,158,11,.38),transparent 65%),radial-gradient(300px 180px at 0 120%,rgba(99,102,241,.45),transparent 65%);pointer-events:none}
.fr-next > *{position:relative}
.fr-next .k{font-size:12px;font-weight:800;letter-spacing:.06em;color:#FCD34D}
.fr-next h3{font-size:19px;font-weight:900;letter-spacing:-.02em;color:#fff;margin:6px 0 6px;line-height:1.35}
.fr-next p{font-size:14.5px;line-height:1.65;color:#CBD5E1;margin-bottom:14px}
.fr-next a.go{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;border-radius:14px;background:#fff;color:#0F172A;font-size:15px;font-weight:800;text-decoration:none}
.fr-next a.go:hover{transform:translateY(-1px)}
.fr-next .off{margin-left:6px;min-height:44px;padding:0 10px;font-size:13.5px;font-weight:700;color:#94A3B8}
.fr-next .off:hover{color:#E2E8F0}

/* ═════════ 첫 화면 맨 위 카드 ═════════ */
.fr-card{position:relative;overflow:hidden;border-radius:24px;padding:24px 26px;margin-bottom:22px;background:#fff;border:1px solid #C7D2FE;box-shadow:0 24px 50px -36px rgba(79,70,229,.7)}
.fr-card:before{content:"";position:absolute;inset:0;background:radial-gradient(420px 220px at 100% -20%,rgba(129,140,248,.22),transparent 65%);pointer-events:none}
.fr-card > *{position:relative}
.fr-card .fr-eyebrow{margin-bottom:10px}
.fr-card h2{font-size:clamp(20px,3vw,25px);font-weight:900;letter-spacing:-.02em;color:#0F172A;line-height:1.3}
.fr-card p.d{font-size:15px;line-height:1.7;color:#475569;margin:6px 0 16px;max-width:620px}
.fr-card .fr-search{max-width:620px;box-shadow:none}
.fr-card .fr-foot{margin-top:10px}
.fr-art{display:none}
@media (min-width:1024px){
  .fr-art{display:block;position:absolute !important;right:34px;top:50%;width:270px;transform:translateY(-50%) rotate(2.5deg);background:#fff;border:1px solid #E0E7FF;border-radius:20px;padding:18px 18px 16px;box-shadow:0 30px 50px -30px rgba(79,70,229,.55)}
  .fr-art .r{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #EEF1F6}
  .fr-art .r span{flex:none;width:30px;font-size:11.5px;font-weight:800;color:#94A3B8}
  .fr-art .r i{display:block;height:11px;border-radius:999px;background:linear-gradient(90deg,#E0E7FF 25%,#EEF2FF 37%,#E0E7FF 63%);background-size:400% 100%;animation:fr-shimmer 1.6s ease infinite}
  .fr-art .c{display:flex;gap:7px;margin-top:14px}
  .fr-art .c b{width:26px;height:26px;border-radius:9px;background:#EEF2FF}
  .fr-art .c b:nth-child(2){background:#FEF3C7}.fr-art .c b:nth-child(3){background:#E0F2FE}.fr-art .c b:nth-child(4){background:#FFE4E6}.fr-art .c b:nth-child(5){background:#D1FAE5}
}
.fr-card.slim{padding:16px 18px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;border-color:var(--line,#E6EAF2);box-shadow:0 1px 2px rgba(15,23,42,.04)}
.fr-card.slim:before{display:none}
.fr-card.slim .fr-pin{width:38px;height:38px;border-radius:12px;font-size:15px}
.fr-card.slim .t{flex:1;min-width:220px;font-size:14.5px;line-height:1.6;color:#334155}
.fr-card.slim .t b{color:#0F172A}
.fr-card.slim .fr-btn{min-height:44px;font-size:14.5px;padding:0 16px;border-radius:13px}
.fr-homenext{margin-bottom:22px}
/* 첫 화면에서는 밝은 면으로(바로 위 인사말 띠가 어두워 두 번 겹치지 않게) */
.fr-homenext .fr-next{margin-top:0;background:#fff;border:1px solid #FDE68A;color:#475569;box-shadow:0 20px 44px -34px rgba(217,119,6,.7);padding:20px 22px}
.fr-homenext .fr-next:before{background:radial-gradient(380px 200px at 100% -10%,rgba(251,191,36,.26),transparent 65%)}
.fr-homenext .fr-next .k{color:#B45309}
.fr-homenext .fr-next h3{color:#0F172A}
.fr-homenext .fr-next p{color:#475569}
.fr-homenext .fr-next a.go{background:#0F172A;color:#fff}
.fr-homenext .fr-next .off{color:#64748B}
.fr-homenext .fr-next .off:hover{color:#0F172A}
html.fr-lock,html.fr-lock body{overflow:hidden}

/* ═════════ 서비스 세 묶음 머리(첫 화면 · 내 제품) ═════════ */
.hx-shelf{margin-top:30px}
.hx-shelf:first-of-type{margin-top:8px}
.hx-shelf-head{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.hx-shelf-no{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;font-size:13px;font-weight:900;color:var(--g,#4F46E5);background:color-mix(in srgb,var(--g,#4F46E5) 12%,#fff)}
.hx-shelf-head h2{font-size:17px;font-weight:900;letter-spacing:-.01em;color:var(--ink,#0F172A);line-height:1.3}
.hx-shelf-head p{font-size:13.5px;color:var(--ink2,#64748B);margin-top:1px;line-height:1.5}
.hx-shelf-head .n{margin-left:auto;flex:none;font-size:12.5px;font-weight:700;color:#64748B;background:#F1F5F9;border-radius:999px;padding:4px 10px;white-space:nowrap}
.hx-shelf-head .n.on{color:#047857;background:#DCFCE7}

@keyframes fr-fade{from{opacity:0}to{opacity:1}}
@keyframes fr-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fr-pop{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:none}}
@keyframes fr-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.fr-row,.fr-panel,.fr-spread span,.fr-done-mark,.fr-overlay,.fr-overlay .fr-sheet{animation:none !important;opacity:1 !important}}
@media (max-width:640px){
  .fr-wrap{padding:28px 16px 56px}
  .fr-top{padding:14px 12px 0}
  .fr-lede{font-size:15.5px;margin-bottom:20px}
  .fr-search{padding:6px 6px 6px 14px;border-radius:18px}
  .fr-search input{font-size:16px}
  .fr-go{padding:0 16px}
  .fr-overlay{padding:0;align-items:stretch}
  .fr-overlay .fr-sheet{border-radius:0;min-height:100%;padding:56px 16px 28px;max-width:none}
  .fr-panel{padding:18px;border-radius:20px}
  .fr-acts{flex-direction:column;align-items:stretch}
  .fr-acts .fr-btn{width:100%}
  .fr-row .fr-a span{display:block}
  .fr-row .fr-a span + span:before{display:none}
  .fr-card{padding:20px 18px;border-radius:20px}
  .hx-shelf-head{align-items:flex-start}
  .hx-shelf-head .n{display:none}
}
