/* Isolated contact rail. No existing component, body or app layout is restyled.
 * Optional owner offsets: --v26-contact-right, --v26-contact-desktop-top,
 * --v26-contact-mobile-bottom. All content remains available without motion.
 */
.v26-contact-root {
  --v26-contact-ink: #261e34;
  --v26-contact-paper: #fffdfa;
  --v26-contact-lilac: #ede5f7;
  --v26-contact-violet: #69428d;
  --v26-contact-line: #c9bbd8;
  color: var(--v26-contact-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
}
.v26-contact-root *,
.v26-contact-root *::before,
.v26-contact-root *::after { box-sizing: border-box; }
.v26-contact-root button,
.v26-contact-root a { -webkit-tap-highlight-color: transparent; font: inherit; }
.v26-contact-root button { cursor: pointer; }
.v26-contact-root a { text-decoration: none; }
.v26-contact-root :is(a, button):focus-visible { outline: 3px solid var(--v26-contact-violet); outline-offset: 4px; }
.v26-contact-icon { flex: 0 0 23px; width: 23px; height: 23px; }
.v26-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v26-contact-ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.v26-contact-item-copy { display: grid; min-width: 0; gap: 4px; }
.v26-contact-label { font-size: 16px; font-weight: 600; line-height: 1.3; word-break: keep-all; overflow-wrap: normal; }
.v26-contact-hint { font-size: 16px; font-weight: 400; line-height: 1.45; word-break: keep-all; overflow-wrap: normal; }
.v26-contact-item:hover { background: var(--v26-contact-lilac); }
.v26-contact-primary { background: var(--v26-contact-ink); color: var(--v26-contact-paper); }
.v26-contact-primary:hover { background: var(--v26-contact-violet); color: var(--v26-contact-paper); }
.v26-contact-outbound { margin-left: auto; font-size: 19px; }
.v26-rail-desktop {
  position: fixed;
  z-index: 80;
  top: var(--v26-contact-desktop-top, 50%);
  right: var(--v26-contact-right, max(14px, env(safe-area-inset-right)));
  display: grid;
  width: 82px;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--v26-contact-line);
  border-radius: 9px;
  background: var(--v26-contact-paper);
  box-shadow: 0 8px 28px rgb(38 30 52 / 10%);
  transform: translateY(-50%);
}
.v26-rail-wordmark { padding: 8px 0 9px; text-align: center; font-size: 9px; font-weight: 600; letter-spacing: .07em; }
.v26-rail-desktop .v26-contact-item { flex-direction: column; justify-content: center; gap: 4px; min-height: 53px; padding: 8px 2px; border-bottom: 1px solid var(--v26-contact-line); text-align: center; }
.v26-rail-desktop .v26-contact-label { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.v26-rail-desktop .v26-contact-outbound { display: none; }
.v26-rail-desktop .v26-contact-item:last-child { border-bottom: 0; }
.v26-rail-desktop .v26-contact-primary { border-radius: 4px; border-bottom-color: transparent; }
.v26-rail-desktop .v26-contact-icon { width: 18px; height: 18px; flex-basis: 18px; }
.v26-rail-desktop .v26-contact-hint { display: none; }
.v26-rail-desktop .v26-contact-pending .v26-contact-item-copy::after { content: '준비 중'; font-size: 10px; line-height: 1.2; color: #5d4b70; }
.v26-contact-root[lang='en'] .v26-rail-desktop .v26-contact-pending .v26-contact-item-copy::after { content: 'Planned'; }
.v26-contact-toggle { display: none; }
.v26-contact-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 620px);
  max-width: 100%;
  max-height: min(90dvh, 850px);
  margin: 0 auto;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--v26-contact-line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--v26-contact-paper);
  color: var(--v26-contact-ink);
  box-shadow: 0 -12px 48px rgb(38 30 52 / 18%);
  font: inherit;
}
.v26-contact-sheet:not([open]) { display: none; }
.v26-contact-sheet::backdrop { background: rgb(22 16 31 / 48%); }
.v26-contact-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v26-contact-eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 600; }
.v26-contact-close { display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--v26-contact-line); border-radius: 50%; background: transparent; color: var(--v26-contact-ink); font-size: 29px !important; line-height: 1; }
.v26-contact-title { margin: 16px 0 10px; font-size: clamp(25px, 5.5vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.v26-contact-description { margin: 0 0 22px; font-size: 16px; line-height: 1.55; }
.v26-contact-sheet-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--v26-contact-line); border-radius: 8px; background: var(--v26-contact-line); }
.v26-contact-sheet-links .v26-contact-item { min-height: 92px; background: var(--v26-contact-paper); }
.v26-contact-sheet-links .v26-contact-item:hover { background: var(--v26-contact-lilac); }
.v26-contact-sheet-links .v26-contact-primary { grid-column: 1 / -1; min-height: 76px; background: var(--v26-contact-ink); }
.v26-contact-sheet-links .v26-contact-primary:hover { background: var(--v26-contact-violet); }
.v26-contact-sheet-links .v26-contact-item:last-child { grid-column: 1 / -1; min-height: 52px; }
.v26-contact-note { margin: 20px 0 0; color: #554560; font-size: 16px; line-height: 1.55; }
@media (max-width: 1023px) {
  .v26-rail-desktop { display: none; }
  .v26-contact-toggle {
    position: fixed;
    z-index: 80;
    right: max(12px, env(safe-area-inset-right));
    bottom: var(--v26-contact-mobile-bottom, calc(14px + env(safe-area-inset-bottom)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 124px;
    max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    min-height: 52px;
    height: 52px;
    padding: 12px 10px;
    border: 1px solid #81708f;
    border-radius: 30px;
    background: var(--v26-contact-ink);
    color: var(--v26-contact-paper);
    box-shadow: 0 4px 18px rgb(38 30 52 / 18%);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }
  .v26-contact-toggle[data-v26-contact-inline='true'] { position: relative; inset: auto !important; display: flex; margin: 16px max(12px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) auto; }
  .v26-contact-toggle>span[aria-hidden] { display: none; }
  .v26-contact-toggle:focus-visible { outline-color: var(--v26-contact-paper); box-shadow: 0 0 0 6px var(--v26-contact-violet); }
}
@media (max-width: 380px) {
  .v26-contact-sheet { padding-right: 16px; padding-left: 16px; }
  .v26-contact-sheet-links { grid-template-columns: minmax(0, 1fr); }
  .v26-contact-sheet-links .v26-contact-item { min-height: 76px; }
  .v26-contact-sheet-links .v26-contact-item { padding: 12px 10px; gap: 8px; }
  .v26-contact-sheet-links .v26-contact-icon { flex-basis: 20px; width: 20px; height: 20px; }
}
@media (max-height: 620px) and (min-width: 1024px) {
  .v26-rail-desktop .v26-contact-item { min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
  .v26-rail-wordmark { padding-top: 3px; padding-bottom: 6px; }
}
@media (forced-colors: active) {
  .v26-contact-item, .v26-contact-toggle, .v26-contact-close { border: 1px solid ButtonText; }
  .v26-contact-root :is(a, button):focus-visible { outline-color: Highlight; }
}
@media print {
  .v26-contact-root { display: none !important; }
}
