.ar-support {
  --link-paper: #faf8f3;
  --link-ink: #183b38;
  --link-line: #687b76;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  padding: 2px 4px;
  border-top: 1px solid var(--link-line);
  background: var(--link-paper);
  color: var(--link-ink);
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]):not([data-theme="paper"]) .ar-support {
    --link-paper:#202b2a; --link-ink:#f3f3ec; --link-line:#a7bbb6;
  }
}
:root[data-theme="dark"] .ar-support {
  --link-paper:#202b2a; --link-ink:#f3f3ec; --link-line:#a7bbb6;
}
.ar-support a {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:0;
  padding:3px clamp(2px,1vw,12px);
  color:var(--link-ink);
  background:var(--link-paper);
  font:600 clamp(11px,3.2vw,14px)/1.35 "Pretendard Variable",Pretendard,system-ui,sans-serif;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap;
}
.ar-support a:focus-visible {outline:2px solid currentColor;outline-offset:-3px}
.ar-support--page {
  position:fixed;inset:auto 0 0;z-index:99;
  padding-bottom:calc(2px + env(safe-area-inset-bottom,0px));
}
.ar-support--dialog {position:sticky;top:0;z-index:3;flex-wrap:wrap}
body:has(.ar-support--page):not(:has(#support-mailbox)),
body:has(#support-mailbox):has(.app-unlock-card) {padding-bottom:calc(55px + env(safe-area-inset-bottom,0px))}
html:has(.ar-support--page):not(:has(#support-mailbox)),html:has(.app-unlock-card) {scroll-padding-block-end:60px}
body:has(.ar-support--page):not(:has(#support-mailbox)) :is(.public-join,.community-mobile) {display:none}
body:has(dialog[open]) > .ar-support--page,
body:has(:is(input:not([type=button]):not([type=checkbox]):not([type=radio]),textarea,[contenteditable=true]):focus) .ar-support {visibility:hidden}
@supports not selector(:popover-open) {
  .ar-support {display:flex;position:static;flex-wrap:wrap}
  html.ar-links-layout .ar-support--page {position:fixed}
  .ar-support--dialog {position:sticky;top:0}
}


/* 방 화면에는 519의 기존 소식·제보 메뉴가 있다. */
body:has(#support-mailbox):not(:has(.app-unlock-card)) .ar-support--page {display:none}


body:has(#support-account) .public-header :is(.btn,.seg-btn) {white-space:nowrap}
@media (max-width:520px) {
  body:has(#support-account) .public-header .action-row {display:flex;flex-wrap:wrap}
}
