/* 월급날 노무사사무소 — 공인노무사 사무소 디자인 샘플 (디코랩)
   구성: 페이지 전체가 상담 대화방. 색은 노무 서류 실물에서 —
   서류철 회색, 근로계약서 종이, 출근 카드 마닐라, 볼펜 먹색, 월급봉투 겨자 황동, 출근 카드의 연장근로 빨강 */
:root {
  --color-folder: #E4E1D8;     /* 대화방 바탕 */
  --color-folder-deep: #D6D2C6;/* 날짜 구분선 */
  --color-contract: #FFFEFA;   /* 노무사 말풍선·카드 */
  --color-sheet: #F5F2EA;      /* 말풍선 안 작은 카드 */
  --color-timecard: #F1E1A6;   /* 방문자 말풍선 */
  --color-timecard-line: #DCC77F;
  --color-ink: #26222D;        /* 본문 글자 */
  --color-pencil: #5B5764;     /* 보조 글자 */
  --color-rule: #CFCABD;       /* 선 */
  --color-envelope: #8F6A10;   /* 월급봉투 — 전환 버튼·도장에만 (흰 글자 대비 4.9:1) */
  --color-envelope-deep: #74560B;
  --color-overtime: #B23A22;   /* 받지 못하는 경우·기한 표시에만 */
  --color-talk: #FEE500;       /* 카카오톡 버튼 관례색 (카톡 버튼에만) */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --fs-h1: clamp(1.5rem, 1.18rem + 1.5vw, 2.15rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-time: .72rem;

  --r-bubble: 18px;
  --r-tail: 4px;
  --header-h: 60px;
  --gutter: 14px;
  --avatar: 38px;
  --composer-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-folder);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--composer-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-envelope); outline-offset: 2px; }

/* 실제 정보 자리 */
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 6px; opacity: .8; font-size: .92em; line-height: 1.5; }

/* 샘플 안내 띠 */
.sample-banner { background: var(--color-ink); color: #E6E3EC; font-size: .8125rem; line-height: 1.55; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; width: min(1076px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 8px 0; }
.sample-banner__tag { flex: none; padding: 1px 8px; border-radius: 99px; background: var(--color-timecard); color: var(--color-ink); font-weight: 700; font-size: .75rem; }
.sample-banner a { color: var(--color-timecard); font-weight: 600; }

/* 대화방 머리줄 — backdrop-filter·transform 을 쓰지 않는다 */
.room-bar { position: sticky; top: 0; z-index: 50; background: var(--color-contract); border-bottom: 1px solid var(--color-rule); }
.room-bar__inner { display: flex; align-items: center; gap: 8px; width: min(1076px, 100% - var(--gutter) * 2); height: var(--header-h); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-decoration: none; border-radius: 10px; }
.logo__seal { width: 38px; height: 38px; flex: none; }
.logo__text { display: grid; min-width: 0; line-height: 1.3; }
.logo__text b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo__text small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--color-pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9A96A0; }
.status-dot.is-open { background: #2F8F55; box-shadow: 0 0 0 3px rgba(47,143,85,.18); }
.room-bar__tel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-ink); text-decoration: none; }
.room-bar__tel svg { width: 22px; height: 22px; }
.room-bar__tel span { display: none; }
.room-bar__tel:hover, .drawer-toggle:hover { background: var(--color-sheet); }
.drawer-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-ink); cursor: pointer; }
.drawer-toggle svg { width: 24px; height: 24px; }

/* 레이아웃: 대화 열 (+ 데스크톱 사무소 카드) */
.layout { width: min(1076px, 100% - var(--gutter) * 2); margin-inline: auto; }
.room { min-width: 0; padding-bottom: 28px; }

/* 날짜 구분선 = 섹션 제목 */
.chapter { padding-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; font-size: .9rem; font-weight: 800; letter-spacing: -.01em; color: var(--color-ink); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }
.divider span { padding: 5px 16px; border-radius: 99px; background: var(--color-folder-deep); font-variant-numeric: tabular-nums; }
.chapter--start .divider { margin-top: 22px; font-weight: 700; color: var(--color-pencil); }
.chapter--start .divider span { background: transparent; padding-inline: 4px; }
.divider--end { margin: 44px 0 8px; font-weight: 600; color: var(--color-pencil); font-size: .82rem; }
.divider--end span { background: transparent; }

/* 말풍선 */
.turn + .turn { margin-top: 30px; }
.msg { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.msg__avatar { flex: none; width: var(--avatar); height: var(--avatar); }
.msg--cont .msg__avatar { visibility: hidden; height: 1px; }
.msg__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(calc(100% - var(--avatar) - 8px), 540px); }
.msg--wide .msg__body { flex: 1; max-width: min(calc(100% - var(--avatar) - 8px), 600px); }
.msg--wide .bubble { width: 100%; }
.msg__name { margin: 0 0 4px 2px; font-size: .8rem; font-weight: 700; color: var(--color-pencil); }
.msg__time { margin: 3px 4px 0; font-size: var(--fs-time); color: var(--color-pencil); font-variant-numeric: tabular-nums; }
.bubble { margin: 0; padding: 11px 15px; background: var(--color-contract); border: 1px solid var(--color-rule); border-radius: var(--r-tail) var(--r-bubble) var(--r-bubble) var(--r-bubble); font-size: 1rem; font-weight: 400; line-height: 1.7; letter-spacing: 0; }
.msg--cont .bubble { border-radius: var(--r-bubble); }
.bubble > * + * { margin-top: 10px; }
.bubble p + p { margin-top: 8px; }
.msg--me { justify-content: flex-end; }
.msg--me .msg__body { align-items: flex-end; max-width: min(84%, 460px); }
.msg--me .bubble { background: var(--color-timecard); border-color: var(--color-timecard-line); border-radius: var(--r-bubble) var(--r-tail) var(--r-bubble) var(--r-bubble); }
.msg--me h3.bubble { font-size: 1rem; font-weight: 600; line-height: 1.6; text-wrap: pretty; }
.msg.is-flash .bubble { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { outline: 3px solid var(--color-envelope); outline-offset: 3px; } 100% { outline: 3px solid transparent; outline-offset: 3px; } }

.bubble__title { font-size: 1.02rem; font-weight: 800; }
.bubble__sub { font-size: var(--fs-small); color: var(--color-pencil); margin-top: 2px !important; }
.note { font-size: var(--fs-small); color: var(--color-pencil); line-height: 1.65; }

/* 첫 말풍선 */
.bubble--hello { padding: 16px 18px; }
.hello__title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.28; letter-spacing: -.03em; }
.bubble--hello p { margin-top: 10px; color: #3C3843; }

/* 빠른 답장 칩 */
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--color-ink); border-radius: 99px; background: var(--color-contract); font-weight: 700; font-size: .94rem; text-decoration: none; transition: background-color .18s ease; }
.quick a:hover { background: var(--color-timecard); }

/* 이미지 말풍선 */
.bubble--media { padding: 0; overflow: hidden; background: var(--color-sheet); }
.msg--media .msg__body { max-width: min(calc(100% - var(--avatar) - 8px), 460px); }
.art { width: 100%; height: auto; }
.art text { font-family: var(--font); fill: var(--color-ink); }
.art__h { font-size: 21px; font-weight: 800; letter-spacing: .2em; }
.art__h2 { font-size: 17px; font-weight: 800; }
.art__label, .art__label text { font-size: 13px; font-weight: 600; fill: var(--color-pencil) !important; }
.art__hand text { font-size: 14px; font-weight: 700; fill: #2F3B66 !important; }
.art__stamp { font-size: 11px; font-weight: 800; fill: var(--color-envelope) !important; }
.art__punch text { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.art__punch .art__late { fill: var(--color-overtime) !important; font-weight: 800; }
.art__station { font-size: 17px; font-weight: 800; fill: #fff !important; }
.art__bus { font-size: 11px; font-weight: 800; fill: #fff !important; }

/* 버튼 */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--stamp { background: var(--color-envelope); color: #fff; }
.btn--stamp:hover { background: var(--color-envelope-deep); }
.btn--line { background: var(--color-contract); border-color: var(--color-ink); color: var(--color-ink); }
.btn--line:hover { background: var(--color-sheet); }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { background: #3A3542; }
.btn--talk { background: var(--color-talk); color: #191600; }
.btn--talk:hover { background: #F0D800; }
.btn--block { width: 100%; }

/* 서비스: 근로자·사업주 */
.who { display: grid; gap: 10px; }
.who__col { padding: 12px 14px; border-radius: 12px; background: var(--color-sheet); }
.who__col h3 { font-size: .95rem; font-weight: 800; margin-bottom: 6px; }
.who__col ul { list-style: none; }
.who__col li { position: relative; padding-left: 14px; font-size: .95rem; line-height: 1.75; }
.who__col li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--color-pencil); }

/* 진행 흐름 (실제 순서) */
.flow { list-style: none; counter-reset: flow; display: grid; gap: 8px; }
.flow li { counter-increment: flow; position: relative; display: grid; padding: 10px 12px 10px 46px; border-radius: 12px; background: var(--color-sheet); line-height: 1.55; }
.flow li::before { content: counter(flow); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--color-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.flow b { font-size: .95rem; }
.flow span { font-size: .875rem; color: var(--color-pencil); }

/* 체크 목록 */
.checks { list-style: none; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; line-height: 1.6; font-size: .97rem; }
.checks svg { width: 22px; height: 22px; padding: 2px; margin-top: 1px; border-radius: 6px; background: var(--color-ink); color: var(--color-timecard); }

.deadline { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--color-overtime); border-radius: 12px; background: #FBF1EC; }
.deadline__label { padding: 3px 10px; border-radius: 6px; background: var(--color-overtime); color: #fff; font-weight: 800; font-size: .85rem; }
.deadline p:last-child { font-size: .97rem; line-height: 1.55; }
.deadline b { color: var(--color-overtime); }

/* 서류 표 */
.doc-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; border-top: 2px solid var(--color-ink); font-variant-numeric: tabular-nums; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 9px 6px; border-bottom: 1px solid var(--color-rule); }
.doc-table thead th { font-size: .8rem; font-weight: 700; color: var(--color-pencil); padding-block: 6px; }
.doc-table tbody th { font-weight: 700; width: 46%; }
.doc-table td small { display: block; color: var(--color-pencil); font-size: .8rem; }
.doc-table--hours tbody th { width: 34%; }
.doc-table--hours tr.is-today th, .doc-table--hours tr.is-today td { background: var(--color-timecard); }
.doc-table--hours tr.is-today th::after { content: "오늘"; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--color-ink); color: #fff; font-size: .72rem; vertical-align: .1em; }

/* 퇴직금 계산표 */
.bubble--form { padding: 16px; }
.calc, .book { display: grid; gap: 14px; }
.calc__head { font-weight: 800; font-size: 1.02rem; padding-bottom: 10px; border-bottom: 2px solid var(--color-ink); }
.calc__row { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--color-pencil); margin-left: 4px; }
.field input[type="date"], .field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid #8E8A84; border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--color-ink); font-variant-numeric: tabular-nums;
}
.field textarea { padding: 10px 12px; min-height: 84px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-ink); outline: 2px solid var(--color-ink); outline-offset: 0; }
.calc__hours, .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__hours legend { width: 100%; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border: 1.5px solid #8E8A84; border-radius: 99px; background: #fff; font-weight: 600; font-size: .94rem; transition: background-color .18s ease, color .18s ease; }
.opt input:checked + span { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--color-envelope); outline-offset: 2px; }
.wage { position: relative; display: grid; gap: 4px; }
.wage__m { font-size: .82rem; font-weight: 700; color: var(--color-pencil); }
.wage input { padding-right: 34px !important; text-align: right; }
.wage i { position: absolute; right: 12px; bottom: 13px; font-style: normal; font-size: .9rem; color: var(--color-pencil); }
.calc__help { font-size: .82rem; color: var(--color-pencil); margin-top: 8px; line-height: 1.6; }
.calc__error { padding: 9px 12px; border-radius: 10px; background: #FBF1EC; color: var(--color-overtime); font-weight: 700; font-size: .92rem; }

.calc-log { margin-top: 18px; }
.calc-log > .msg:first-child { margin-top: 0; }

/* 계산 결과 말풍선 */
.bubble--result { padding: 16px; }
.result__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result__label { font-size: .85rem; font-weight: 700; color: var(--color-pencil); }
.result__amount { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result__amount.is-none { font-size: 1.25rem; line-height: 1.4; color: var(--color-overtime); }
.result__exact { font-size: .9rem; color: var(--color-pencil); font-variant-numeric: tabular-nums; }
.stamp { flex: none; width: 84px; height: 84px; color: var(--color-envelope); opacity: .9; }
.stamp__big { font-family: var(--font); font-size: 21px; font-weight: 900; fill: currentColor; }
.stamp__small { font-family: var(--font); font-size: 9.5px; font-weight: 700; fill: currentColor; }
.has-motion .stamp.is-stamping { animation: stamp .45s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(8deg); } to { opacity: .9; transform: none; } }
.doc-table--calc tbody th { width: 38%; }
.doc-table--calc td b { font-weight: 800; }
.cases { padding: 12px 14px; border-radius: 12px; background: var(--color-sheet); }
.cases__title { font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.cases ul { list-style: none; display: grid; gap: 6px; }
.cases li { position: relative; padding-left: 16px; font-size: .9rem; line-height: 1.55; color: #3C3843; }
.cases li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-pencil); }
.cases li b { display: block; color: var(--color-ink); }
.cases li.is-hit { padding: 8px 10px 8px 26px; border-radius: 8px; background: #FBF1EC; border: 1.5px solid var(--color-overtime); }
.cases li.is-hit::before { left: 10px; top: 1.05em; background: var(--color-overtime); }
.cases li.is-hit b::after { content: "입력하신 조건"; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--color-overtime); color: #fff; font-size: .72rem; vertical-align: .1em; }
.result__note { font-size: .9rem; line-height: 1.65; color: #3C3843; }
.result__note strong { display: block; color: var(--color-ink); }

/* 입력 중 표시 */
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; background: var(--color-contract); border: 1px solid var(--color-rule); border-radius: var(--r-bubble); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-pencil); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* 가져올 것 체크 */
.bring { list-style: none; display: grid; gap: 6px; }
.bring label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; background: var(--color-sheet); cursor: pointer; font-size: .95rem; line-height: 1.45; transition: background-color .18s ease; }
.bring input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); }
.bring input:checked + span { text-decoration: line-through; text-decoration-color: var(--color-pencil); color: var(--color-pencil); }
.bring label:has(input:checked) { background: var(--color-timecard); }
.bring__count { font-size: .88rem; font-weight: 700; color: var(--color-pencil); }

/* 노무사 소개 */
.profile { display: flex; align-items: center; gap: 14px; }
.profile__photo { width: 76px; height: 76px; flex: none; }
.profile__name { font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.profile__reg { font-size: .85rem; color: var(--color-pencil); }

/* 오시는 길 */
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--color-rule); font-size: .94rem; }
.info dt { font-weight: 700; }
.info dd { margin: 0; color: #3C3843; }

/* 상담 예약 */
.consent { font-size: .93rem; }
.consent label { display: flex; gap: 8px; align-items: center; font-weight: 600; min-height: 40px; }
.consent input { width: 20px; height: 20px; accent-color: var(--color-envelope); }
.consent details { color: var(--color-pencil); font-size: .85rem; }
.consent summary { cursor: pointer; text-decoration: underline; }
.book-log:not(:empty) { margin-top: 12px; }

/* 대화 입력창 모양 빠른 연락 바 */
.composer { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 9px var(--gutter) calc(9px + env(safe-area-inset-bottom)); background: var(--color-contract); border-top: 1px solid var(--color-rule); }
.composer__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-sheet); color: var(--color-ink); border: 1px solid var(--color-rule); }
.composer__icon svg { width: 22px; height: 22px; }
.composer__icon--talk { background: var(--color-talk); border-color: #E3CC00; color: #191600; }
.composer__field { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 5px 0 18px; border-radius: 99px; border: 1.5px solid var(--color-envelope); background: #fff; text-decoration: none; font-weight: 700; color: var(--color-envelope); }
.composer__field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-envelope); color: #fff; }
.composer__send svg { width: 18px; height: 18px; }
.composer__field:hover .composer__send { background: var(--color-envelope-deep); }
body.drawer-open .composer { visibility: hidden; }

/* 사무소 정보 카드 — 모바일은 서랍 */
.office { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 28px; background: var(--color-contract); border-left: 1px solid var(--color-rule); visibility: hidden; transform: translateX(100%); transition: transform .28s cubic-bezier(.3,.7,.2,1), visibility 0s .28s; }
body.drawer-open .office { visibility: visible; transform: none; transition: transform .28s cubic-bezier(.3,.7,.2,1); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(38,34,45,.45); }
.office__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.office__close span::before, .office__close span::after { content: ""; position: absolute; left: 12px; top: 21px; width: 20px; height: 2px; border-radius: 2px; background: var(--color-ink); transform: rotate(45deg); }
.office__close span::after { transform: rotate(-45deg); }
.office__close:hover { background: var(--color-sheet); }
.office__head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.office__seal { width: 52px; height: 52px; flex: none; }
.office__name { font-weight: 800; font-size: 1.08rem; line-height: 1.35; }
.office__kind { font-size: .84rem; color: var(--color-pencil); line-height: 1.45; }
.office__status { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--color-sheet); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.office__actions { display: grid; gap: 8px; margin-top: 14px; }
.office__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.office__row .btn { padding: 0 10px; }
.toc { display: grid; margin-top: 20px; border-top: 2px solid var(--color-ink); }
.toc__title { padding: 10px 2px 4px; font-size: .8rem; font-weight: 700; color: var(--color-pencil); }
.toc a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 30px 0 2px; border-bottom: 1px solid var(--color-rule); font-weight: 600; font-size: .97rem; text-decoration: none; transition: color .18s ease; }
.toc a:hover { color: var(--color-envelope); }
.toc a.is-active { font-weight: 800; }
.toc a.is-active::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--color-envelope); }
.toc a.is-active::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--color-ink); }
.office__addr { margin-top: 14px; font-size: .84rem; color: var(--color-pencil); }

/* 푸터 */
.site-footer { background: var(--color-ink); color: #C9C5D0; font-size: var(--fs-small); line-height: 1.8; padding: 36px 0 40px; }
.site-footer__inner { width: min(1076px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; gap: 10px; }
.site-footer__logo { font-weight: 800; font-size: 1.1rem; color: #fff; }
.site-footer__legal { color: #A9A4B1; }
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 800; color: #fff; }
.site-footer__credit a { color: var(--color-timecard); }
.site-footer .ph { border-color: rgba(255,255,255,.5); }

/* 알림 */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--composer-h) + 18px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--color-ink); color: #fff; font-size: .9rem; font-weight: 600; transform: translateX(-50%); }

/* 등장: 보이는 상태가 기본. has-motion 일 때만 숨겼다가 대화 순서대로 보여 준다 */
.has-motion .turn .msg { opacity: 0; transform: translateY(10px); }
.has-motion .turn .msg.is-in { opacity: 1; transform: none; transition: opacity .32s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.has-motion .turn .msg--lw { transform-origin: left top; }
.has-motion .turn .msg--me { transform-origin: right top; }

@media (min-width: 560px) {
  .who { grid-template-columns: 1fr 1fr; }
  .calc__row--2 { grid-template-columns: 1fr 1fr; }
  .calc__row--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --header-h: 68px; --avatar: 40px; }
  body { padding-bottom: 0; }
  .room-bar__tel { width: auto; height: 42px; padding: 0 16px; grid-auto-flow: column; gap: 8px; border: 1.5px solid var(--color-ink); border-radius: 99px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .room-bar__tel svg { width: 18px; height: 18px; }
  .room-bar__tel span { display: inline; }
  .drawer-toggle { display: none; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .room { padding-bottom: 32px; }
  .office { position: sticky; top: calc(var(--header-h) + 22px); z-index: 1; bottom: auto; width: auto; max-height: calc(100vh - var(--header-h) - 44px); margin-top: 22px; padding: 20px; border: 1px solid var(--color-rule); border-radius: 20px; visibility: visible; transform: none; transition: none; }
  .office__close { display: none; }
  .office__head { padding-right: 0; }
  .scrim { display: none !important; }
  .composer { position: sticky; bottom: 16px; left: auto; right: auto; margin: 36px 0 0 calc(var(--avatar) + 8px); padding: 8px; border: 1px solid var(--color-rule); border-radius: 99px; }
  .toast { bottom: 28px; }
  .divider { margin-top: 48px; }
}

@media (min-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 700px) 340px; justify-content: space-between; }
}

/* 동작 줄이기 — 마지막 안전망. 3단계(색·투명도 피드백)는 다시 살린다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn, .quick a, .opt span, .bring label, .toc a { transition-duration: .2s !important; }
  .btn:active { transform: none; }
}
