.hafu-service-rail { position: fixed; z-index: 20; right: 6px; top: 50%; transform: translateY(-50%); width: 78px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.hafu-service-rail-panel { display: grid; margin: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--pink-dark, #be1d56); box-shadow: 0 3px 14px #72203b26; }
.hafu-service-rail-panel > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 89px; padding: 12px 5px; border-bottom: 1px solid #ffffff70; color: #fff; text-align: center; font-size: 11px; line-height: 15px; font-weight: 500; }
.hafu-service-rail-panel > a:last-child { border-bottom: 0; }
.hafu-service-rail-panel > a:hover, .hafu-service-rail-panel > a:focus-visible { background: #941644; color: #fff; }
.hafu-service-rail-panel > a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.hafu-service-rail-panel svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hafu-service-rail-panel small { display: block; font-size: 9px; line-height: 12px; margin-top: 5px; font-weight: 400; }
.hafu-service-rail-toggle { display: none; }
@media (min-width: 1200px) {
  .hafu-wordpress .wrap { max-width: calc(100% - 180px); }
  .hafu-wordpress.hafu-ai-studio-page .wrap { max-width: none; }
}
@media (max-width: 1199px) {
  .hafu-service-rail { width: auto; right: 14px; top: auto; bottom: 110px; transform: none; }
  .hafu-service-rail-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; height: 52px; border: 1px solid #fff; border-radius: 50%; background: var(--pink-dark, #be1d56); color: #fff; box-shadow: 0 2px 10px #0002; padding: 4px; font-size: 9px; line-height: 12px; }
  .hafu-service-rail-toggle > svg { width: 23px; height: 23px; }
  .hafu-service-rail-panel { display: none; position: absolute; bottom: calc(100% + 9px); right: 0; width: 228px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 190px); overflow-y: auto; }
  .hafu-service-rail.is-open .hafu-service-rail-panel { display: grid; }
  .hafu-service-rail-panel > a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 67px; padding: 12px 14px; text-align: left; font-size: 12px; line-height: 17px; }
  .hafu-service-rail-panel > a > span { flex: 1; }
  .hafu-service-rail-panel small { font-size: 11px; line-height: 15px; }
}
/* The editor needs its full canvas width, so use the same compact service control. */
.hafu-service-rail-collapsible { width: auto; right: 14px; top: auto; bottom: 110px; transform: none; }
.hafu-service-rail-collapsible .hafu-service-rail-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; height: 52px; border: 1px solid #fff; border-radius: 50%; background: var(--pink-dark, #be1d56); color: #fff; box-shadow: 0 2px 10px #0002; padding: 4px; font-size: 9px; line-height: 12px; }
.hafu-service-rail-collapsible .hafu-service-rail-toggle > svg { width: 23px; height: 23px; }
.hafu-service-rail-collapsible .hafu-service-rail-panel { display: none; position: absolute; bottom: calc(100% + 9px); right: 0; width: 228px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 190px); overflow-y: auto; }
.hafu-service-rail-collapsible.is-open .hafu-service-rail-panel { display: grid; }
.hafu-service-rail-collapsible .hafu-service-rail-panel > a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 67px; padding: 12px 14px; text-align: left; font-size: 12px; line-height: 17px; }
.hafu-service-rail-collapsible .hafu-service-rail-panel > a > span { flex: 1; }
.hafu-service-rail-collapsible .hafu-service-rail-panel small { font-size: 11px; line-height: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .hafu-service-rail-panel > a { transition: background-color .15s; }
}
