.masthead-brand-share {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.masthead-title {
  margin: 0;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
}
.home-share-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 9px;
  border: 1px solid #d4c5e5;
  border-radius: 9px;
  background: #f4ecfb;
  color: #583b83;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.home-share-button:hover { background: #e9dcf7; }
.home-share-button:focus-visible { outline: 2px solid #624294; outline-offset: 2px; }
.home-share-status:not(:empty) {
  position: absolute;
  z-index: 65;
  inset-block-start: calc(100% + 4px);
  inset-inline-start: 0;
  padding: 6px 9px;
  border-radius: 6px;
  background: #483269;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .retail-header .retail-masthead:has(.masthead-brand-share) { grid-template-columns: minmax(0, 1fr); }
  .retail-header .masthead-brand-share { grid-area: 1 / 1; }
  .retail-header .retail-masthead:has(.masthead-brand-share) .masthead-utilities { grid-area: 2 / 1; justify-content: space-between; }
  .retail-header .retail-masthead:has(.masthead-brand-share) .home-search { grid-area: 3 / 1; }
}

.masthead-brand-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.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}

.rovi-home-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-inline-start: auto;
}
.rovi-home-actions--masthead { margin-inline-start: 0; }
.rovi-home-actions > a { text-decoration: none; }
.rovi-home-actions > #home-install[hidden] { display: none; }
:where(.rovi-home-actions) > .rv-home {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: transparent;
  font: 700 13px/1.25 "Noto Sans KR", "Malgun Gothic", sans-serif;
  white-space: nowrap;
}
.rovi-home-actions > .rv-home { margin-inline-start: 0; }
.rovi-home-actions > button { appearance: none; cursor: pointer; }
.rovi-home-actions > :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rovi-home-actions[data-home-style="web"] > .rv-home {
  color: #583b83;
  background: #f4ecfb;
  border: 1px solid #d4c5e5;
  border-radius: 10px;
}
.rovi-home-actions[data-home-style="web"] > button { background: #e9dcf7; }
html body.rovi-service .rovi-home-actions[data-home-style="directory"] > .rv-home {
  color: #222;
  padding: 6px 9px;
  border: 1px solid #333;
  border-radius: 4px;
}
html body.rovi-service .rovi-home-actions[data-home-style="directory"] > button { background: #f4f4f4; }
@media (max-width: 390px) {
  .rovi-home-actions { gap: 6px; }
  html body :is(.topbar, header) .rovi-home-actions > .rv-home { padding-inline: 8px; }
  .rovi-home-actions svg { flex: none; }
}
@media print {
  .rovi-home-actions { display: none; }
}

@media (max-width: 600px) {
  html body.rovi-service .topbar:has(> .rovi-home-actions) { height: auto; min-height: 68px; padding-block: 8px; }
  html body.rovi-service .rovi-directory-header:has(.rovi-home-actions) { flex-wrap: wrap; gap: 8px; }
}
