/* 홈화면 설치 버튼 + 안내 시트 (top-only/home-share.css 에서 옮겨 온 동일 규칙) */
.home-install-button{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 13px;border:0;border-radius:12px;cursor:pointer;font:700 13px "Noto Sans KR","Malgun Gothic",sans-serif;color:#fff;letter-spacing:-.01em;background:linear-gradient(180deg,#7B4FC4 0%,#5B2E9E 55%,#4A2388 100%);box-shadow:0 4px 0 #351766,0 7px 14px rgba(74,35,136,.35),inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 6px rgba(30,8,70,.35);text-shadow:0 1px 1px rgba(30,8,70,.45);transition:transform .12s ease,box-shadow .12s ease}
.home-install-button:hover{filter:brightness(1.06)}
.home-install-button:active{transform:translateY(3px);box-shadow:0 1px 0 #351766,0 3px 6px rgba(74,35,136,.3),inset 0 2px 0 rgba(255,255,255,.25),inset 0 -2px 4px rgba(30,8,70,.35)}
.home-install-button:focus-visible{outline:3px solid #C9A7F5;outline-offset:2px}
.home-install-button[hidden]{display:none}
.hi-sheet-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(20,10,40,.45);display:flex;align-items:flex-end;justify-content:center}
.hi-sheet{width:100%;max-width:480px;background:#fff;border-radius:22px 22px 0 0;padding:22px 22px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(40,15,80,.25);font-family:"Noto Sans KR","Malgun Gothic",sans-serif;color:#2A1A44}
.hi-sheet h2{margin:0 0 6px;font-size:18px;font-weight:800;color:#4A2388}
.hi-sheet p{margin:0 0 14px;font-size:14px;line-height:1.6;color:#4F4560}
.hi-steps{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:10px}
.hi-steps li{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#F4ECFB;border-radius:14px;font-size:14px;font-weight:500}
.hi-steps b{flex:0 0 26px;height:26px;border-radius:50%;background:#5B2E9E;color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center}
.hi-sheet-actions{display:flex;gap:10px}
.hi-sheet-actions button{flex:1;height:48px;border-radius:14px;font:700 15px "Noto Sans KR",sans-serif;cursor:pointer}
.hi-btn-main{border:0;color:#fff;background:linear-gradient(180deg,#7B4FC4,#4A2388);box-shadow:0 3px 0 #351766}
.hi-btn-sub{border:1px solid #D9C8EE;background:#fff;color:#4A2388}
/* 하위 서비스 머리줄: 홈 링크 바로 옆에 붙도록 */
.home-install-button.hi-sub{margin-left:8px;height:34px;padding:0 12px;font-size:12.5px;vertical-align:middle;flex:0 0 auto;white-space:nowrap;line-height:1}
.home-install-button.hi-sub svg{flex:0 0 auto}
@media print{.home-install-button{display:none!important}}
.home-install-button.hi-sub{width:auto;min-height:0;border:0;display:inline-flex;align-items:center;gap:5px;color:#fff}.home-install-button.hi-sub[hidden]{display:none}
/* 운세 더보기(extras): 머리줄 안 나머지 요소를 한 줄 전체로 미는 규칙에서 설치 버튼은 제외 */
html body.rovi-service main.page>header>.hi-pair{flex-basis:auto}
/* 홈 링크 + 설치 버튼을 한 묶음으로: 줄이 좁아도 둘이 떨어지지 않게 */
.hi-pair{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:8px;margin-left:auto;flex:0 0 auto}
.hi-pair.hi-pair-start{margin-left:0}
html body .hi-pair>:is(.rv-home,.home-link,.service-home-link){margin-left:0}
.hi-pair>.home-install-button.hi-sub{margin-left:0}
@media (max-width:400px){.home-install-button.hi-sub{padding:0 9px;gap:3px;font-size:12px}.home-install-button.hi-sub svg{width:13px;height:13px}.hi-pair{gap:6px}}
