* { box-sizing: border-box; }
.ui-icon-mic { --icon: url('/static/assets/icons/mic.svg'); }
.ui-icon-volume-2 { --icon: url('/static/assets/icons/volume-2.svg'); }
.ui-icon-clock { --icon: url('/static/assets/icons/clock.svg'); }
.ui-icon-pencil { --icon: url('/static/assets/icons/pencil.svg'); }

.figma-join-root { overscroll-behavior: none; }
.figma-join-body {
  --join-disabled-bg: rgba(0, 24, 46, 0.07);
  --join-disabled-text: #72777C;
  --join-dialog-bg: #ffffff;
  --join-dialog-edge: rgba(255, 255, 255, .08);
  --join-dialog-muted: #72777C;
  --join-dialog-line: rgba(0, 0, 0, .08);
  --join-dialog-close-bg: rgba(0, 24, 46, 0.03);
  --join-dialog-close-icon: #545A60;
  --join-dialog-ok-bg: rgba(0, 24, 46, 0.04);
  --join-dialog-ok-hover: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), var(--join-dialog-ok-bg);
  --join-dialog-ok-pressed: rgba(0, 0, 0, .11);
  --join-link-hover: #545A60;
  margin: 0; background: var(--dm-ui-canvas); color: var(--dm-ui-text-primary); font-family: var(--dm-ui-font-family);
}
.figma-join { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100dvh; padding: 168px 24px 110px; text-align: center; }
.join-center { display: flex; flex-direction: column; align-items: center; gap: 60px; width: 100%; }
.join-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; height: 180px; }
.join-mascot { position: absolute; top: -155.4px; right: 0; left: 0; width: 198.3px; height: 198.3px; margin: 0 auto; }
.join-mascot img, .join-mascot video { position: absolute; inset: 0; width: 100%; height: 100%; }
.join-mascot-loop:not(.is-playing), .join-mascot-enter:not(.is-loaded), .join-inline-mascot:not(.is-loaded) { visibility: hidden; }
.join-story { margin: 0; font-size: var(--dm-ui-font-size-display); font-weight: var(--dm-ui-font-weight-semibold); line-height: 90px; letter-spacing: -.005em; }
@media (min-width: 701px) {
  .join-story { font-size: min(var(--dm-ui-font-size-display), calc((100vw - 48px) / 12)); }
}
.join-story-line { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.join-inline-mascot { width: 90px; height: 90px; }
.join-subtitle { margin: 0; color: var(--dm-ui-text-primary); font-size: var(--dm-ui-font-size-kicker); font-weight: var(--dm-ui-font-weight-semibold); line-height: 36px; letter-spacing: -.005em; }
.join-wordmark-frame { display: block; }
.join-wordmark { width: 437px; max-width: 72vw; height: auto; margin: 5px 0; }
.join-primary { display: flex; justify-content: center; align-items: center; width: 260px; min-height: 58px; margin: 0; border: 0; border-radius: var(--dm-ui-radius-pill); background: var(--dm-ui-action-primary-bg); color: var(--dm-ui-action-primary-text); font: inherit; font-size: var(--dm-ui-font-size-action); font-weight: var(--dm-ui-font-weight-semibold); letter-spacing: 0; cursor: pointer; }
.join-primary, .join-privacy-open, .join-dialog-ok { transition: opacity .15s, transform .15s, color .15s, background-color .15s; }
.join-dialog-ok:hover { background: var(--join-dialog-ok-hover); }
.join-dialog-ok:active { background: var(--join-dialog-ok-pressed); }
.join-primary:not(:disabled, .is-disabled):active { transform: scale(.97); }
@media (hover: hover) and (min-width: 701px) {
  .join-primary:not(:disabled, .is-disabled):hover { opacity: .9; }
}
.join-primary:disabled, .join-primary.is-disabled { background: var(--join-disabled-bg); color: var(--join-disabled-text); cursor: default; }   /* 완료 · 마감 알약(p.is-disabled)은 꺼진 버튼이 아니라 시안의 gray070a · gray550s(Figma 324:104173)라서, 뒤의 「비활성 채움 버튼」 규칙은 button 에만 건다 */
.join-primary:focus-visible, .join-privacy-open:focus-visible, .join-dialog button:focus-visible { outline: 2px solid var(--dm-ui-focus); outline-offset: 2px; }
.join-consent { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 30px; }
.join-consent, .join-state-note { min-height: 75px; }
.join-check-row { display: flex; align-items: center; justify-content: center; color: var(--dm-ui-text-primary); font-size: 13px; font-weight: 500; line-height: 21px; }
.join-check-text { display: inline-flex; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.join-check-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.join-check-icon { flex: none; margin-right: 6px; fill: none; stroke: var(--dm-ui-text-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.join-check-input:checked + .join-check-icon circle { fill: var(--dm-ui-text-primary); stroke: var(--dm-ui-text-primary); }
.join-check-input:checked + .join-check-icon path { stroke: var(--dm-ui-canvas); }
.join-check-input:focus-visible + .join-check-icon { border-radius: 50%; outline: 2px solid var(--dm-ui-focus); outline-offset: 1px; }
.join-privacy-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.join-privacy-open:hover { color: var(--join-link-hover); }
.join-privacy-open:active { color: var(--dm-ui-text-muted); }
.join-state-note { margin: 30px 0 0; color: var(--dm-ui-text-secondary); font-size: var(--dm-ui-font-size-body); line-height: 1.68; letter-spacing: -.005em; }
.join-bottom { position: absolute; right: 24px; bottom: 28px; left: 24px; display: flex; flex-direction: column; align-items: center; }
.join-bottom small { color: var(--dm-ui-text-muted); font-size: var(--dm-ui-font-size-caption); }
.join-mobile-break { display: none; }

.join-dialog { display: flex; flex-direction: column; width: min(460px, calc(100vw - 40px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--join-dialog-edge); border-radius: 36px; background: var(--join-dialog-bg); color: var(--dm-ui-text-primary); box-shadow: 0 20px 60px rgba(0, 0, 0, .2); font-family: var(--dm-ui-font-family); }
.join-dialog:not([open]) { display: none; }
.join-dialog:focus { outline: none; }
.join-dialog::backdrop { background: #08080866; } /* 다른 다이얼로그와 같은 딤 — 뒤 화면이 보이게 */
.join-dialog-head { display: flex; flex: none; justify-content: space-between; align-items: center; padding: 24px 24px 16px 30px; }
.join-dialog-head h2 { margin: 0; font-size: 18px; font-weight: var(--dm-ui-font-weight-semibold); }
.join-dialog-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--join-dialog-close-bg); color: var(--join-dialog-close-icon); cursor: pointer; }
.join-dialog-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.join-dialog-intro { flex: none; margin: 0; padding: 0 30px 20px; color: var(--join-dialog-muted); font-size: 14px; font-weight: 500; line-height: 1.6; }
.join-dialog-items { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; margin: 0 24px 24px; padding: 24px 20px 24px 12px; border: 1px solid var(--join-dialog-line); border-radius: 24px; }
.join-dialog-items dt { display: flex; gap: 8px; color: var(--join-dialog-muted); font-size: 13px; font-weight: 500; line-height: 22px; }
.join-dialog-items dt::before { content: "•"; width: 12px; text-align: center; }
.join-dialog-items dd { margin: 3px 0 0 20px; font-size: 13px; line-height: 22px; }
.join-dialog-actions { flex: none; padding: 0 24px 24px; }
.join-dialog-ok { width: 100%; min-height: 58px; border: 0; border-radius: var(--dm-ui-radius-pill); background: var(--join-dialog-ok-bg); color: var(--dm-ui-text-primary); font: inherit; font-size: 16px; font-weight: var(--dm-ui-font-weight-semibold); letter-spacing: 0; cursor: pointer; }
.join-dialog-alert { width: min(360px, calc(100vw - 40px)); }
.join-dialog-alert::backdrop { background: transparent; }
.join-dialog-alert .join-dialog-head h2 { letter-spacing: -.3px; }
.join-dialog-alert .join-dialog-intro { font-size: 15px; }

.figma-auth { position: relative; display: grid; place-items: center; min-height: 100dvh; padding: 32px 24px; background: var(--dm-ui-canvas); color: var(--dm-ui-text-primary); }
.figma-auth-close { display: none; position: absolute; top: 52px; left: 24px; color: inherit; font-size: 30px; line-height: 1; text-decoration: none; }
.figma-auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(-8%); }
.figma-auth-brand > img:first-child { width: 160px; height: 134px; object-fit: contain; }
.figma-auth-title { margin: 20px 0 0; font-size: 28px; line-height: 1.25; }
.figma-auth-brand p { margin: 24px 0 12px; color: var(--dm-ui-text-secondary); font-size: var(--dm-ui-font-size-kicker); font-weight: var(--dm-ui-font-weight-semibold); line-height: 1.5; letter-spacing: -.04em; }
.figma-auth-brand > img:last-child { display: block; width: min(280px, 72vw); height: auto; }
.figma-auth-action { position: absolute; bottom: max(46px, calc(env(safe-area-inset-bottom) + 24px)); width: min(360px, calc(100% - 48px)); }
.figma-kakao { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; border: 0; border-radius: 100px; background: var(--dm-ui-kakao); color: var(--dm-ui-kakao-text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.figma-kakao:hover { background: #f4d900; }
.kakao-symbol { position: relative; width: 20px; height: 18px; border-radius: 50%; background: var(--dm-ui-kakao-text); }
.kakao-symbol::after { content: ''; position: absolute; bottom: -2px; left: 2px; width: 7px; height: 7px; background: var(--dm-ui-kakao-text); transform: rotate(-30deg); }
.figma-auth .login-error { margin-bottom: 12px; }
.figma-chat-head, .figma-mobile-menu, .figma-chat-intro { display: none; }
.attachment-picker { position: relative; flex: none; }
.attachment-picker .attach-button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.attachment-picker-menu { position: absolute; z-index: 20; bottom: calc(100% + 20px); left: -10px; /* 입력창 왼쪽 끝과 맞춤(+ 버튼은 입력창 안쪽 10 에 있음, 2026-11-05) */ display: flex; flex-direction: column; width: 220px; padding: 12px 8px; border: 1px solid var(--dm-ui-border); border-radius: 22px; background: var(--dm-ui-surface); box-shadow: 0 12px 34px #0002; }
.attachment-picker-menu[hidden] { display: none; }
.attachment-picker-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dm-ui-text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.attachment-picker-menu button:hover, .attachment-picker-menu button:focus-visible { background: var(--dm-ui-surface-soft); }
.picker-icon { display: block; width: 20px; height: 20px; flex: none; background: center / 20px 20px no-repeat; }
/* 플러스 메뉴 아이콘 — Figma 1029:39528 (Mono/Media/Image Stack_line · Board_line) */
.picker-photo { background-image: url('assets/figma/composer/pick-photo.svg'); }
.picker-file { background-image: url('assets/figma/composer/pick-file.svg'); }
:root[data-dm-theme="dark"] .picker-photo { background-image: url('assets/figma/composer/pick-photo-dark.svg'); }
:root[data-dm-theme="dark"] .picker-file { background-image: url('assets/figma/composer/pick-file-dark.svg'); }
.composer-files .attach-chip { position: relative; min-width: 0; max-width: min(190px, 100%); min-height: 56px; padding: 6px 25px 6px 8px; border: 0; border-radius: 12px; background: var(--dm-ui-surface-soft); }
.composer-files .attach-detail { display: flex; flex-direction: column; min-width: 0; }
.composer-files .attach-name { display: block; max-width: 125px; font-size: 12px; font-weight: 500; }
.composer-files .attach-meta { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.composer-files .attach-file-icon { position: relative; width: 26px; height: 32px; flex: none; border: 1px solid #ddd; border-radius: 3px; background: #fff; }
.composer-files .attach-file-icon::after { content: attr(data-extension); position: absolute; bottom: 4px; left: 2px; max-width: 23px; overflow: hidden; padding: 1px; background: #e6a4a4; color: #8d4242; font-size: 7px; line-height: 1; }
.composer-files .attach-remove { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: #a5a5a5; color: #fff; font-size: 14px; }
.composer-files .attach-chip.is-photo { width: 56px; height: 56px; min-height: 0; padding: 0; overflow: hidden; }
.composer-files .attach-chip.is-photo .attach-open, .composer-files .attach-chip.is-photo .attach-thumb { display: block; width: 100%; height: 100%; }
.composer-files .attach-chip.is-photo .attach-thumb { object-fit: cover; border-radius: 12px; }
.composer-files .attach-chip.is-photo .attach-detail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.composer-files .attach-chip.is-photo.is-uploading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px; border: 2px solid #fff9; border-top-color: #fff; border-radius: 50%; animation: attachment-spin .8s linear infinite; }
.composer-files .attach-chip.is-photo.is-uploading .attach-thumb { filter: brightness(.65); }
.composer-files .attach-chip.is-photo.is-failed::after { content: '!'; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #fff; color: var(--dm-ui-danger); font-size: 13px; font-weight: 700; }
.composer-files .attach-chip.is-photo.is-failed .attach-thumb { filter: brightness(.65); }
@keyframes attachment-spin { to { transform: rotate(360deg); } }

.figma-voice-state { display: none; }
.figma-voice-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: #f3f3f3; color: #333; cursor: pointer; }
body.figma-chat-page .composer.is-listening .attachment-picker, body.figma-chat-page .composer.is-listening textarea, body.figma-chat-page .composer.is-listening .send-button { display: none; }
body.figma-chat-page .composer.is-listening .figma-voice-state { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; padding-left: 12px; color: #888; font-size: 13px; }
.figma-voice-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.figma-voice-wave i { width: 2px; height: 10px; border-radius: 3px; background: currentColor; animation: figma-wave 900ms ease-in-out infinite alternate; }
.figma-voice-wave i:nth-child(3n) { height: 24px; animation-delay: 180ms; }
.figma-voice-wave i:nth-child(4n) { height: 16px; animation-delay: 360ms; }
@keyframes figma-wave { to { transform: scaleY(.35); } }
body.figma-chat-page .composer.is-listening .figma-voice-button { display: grid; background: #333; color: #F3F5F7; }
body.figma-chat-page .composer.is-listening .figma-voice-button span { display: none; }
body.figma-chat-page .composer.is-listening .figma-voice-button::after { content: ''; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
body.figma-chat-page .composer:has(textarea:placeholder-shown) .send-button { display: none; }
body.figma-chat-page .composer:not(:has(textarea:placeholder-shown)):not(.is-listening) .figma-voice-button { display: none; }
body.figma-chat-page .composer:has(.composer-files:not(:empty)) .send-button { display: grid; }
body.figma-chat-page .composer:has(.composer-files:not(:empty)) .figma-voice-button { display: none; }
/* TASK-257 (파생): 서버가 받아쓰는 동안과 답변 듣기 버튼. 시안이 없어 입력창 마이크와 같은 원형 버튼을 작게 둔다. */
body.figma-chat-page .composer.is-transcribing .figma-voice-wave { opacity: .35; animation-play-state: paused; }
body.figma-chat-page .composer.is-transcribing .figma-voice-wave i { animation-play-state: paused; }
body.figma-chat-page .composer.is-transcribing .figma-voice-button { cursor: progress; opacity: .6; }
/* 마이크 준비 중 로딩 — 마이크 아이콘 자리(20px, 같은 색 #595959 / 다크 #A6A6A6)에서 돌다가 녹음이 시작되면 사라진다 */
.figma-voice-spinner { display: none; width: 20px; height: 20px; overflow: visible; animation: figma-voice-spin 1.2s linear infinite; }   /* 회전: 1.2초에 한 바퀴 */
.figma-voice-spinner circle { fill: none; stroke: #545A60; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 200; animation: figma-voice-dash 1.8s infinite; }   /* 한 주기 1.8초 */
@keyframes figma-voice-spin { to { transform: rotate(360deg); } }
@keyframes figma-voice-dash {
  0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.7, 0, .25, 1.35); }    /* 늘어남(살짝 튕김) */
  50% { stroke-dasharray: 71 200; stroke-dashoffset: -28; animation-timing-function: cubic-bezier(.85, 0, .15, 1); }   /* 꼬리가 쫓아가며 줄어듦 */
  100% { stroke-dasharray: 71 200; stroke-dashoffset: -99; }
}
body.figma-chat-page .composer .figma-voice-button.is-preparing { background-image: none !important; cursor: progress; }
body.figma-chat-page .composer .figma-voice-button.is-preparing .ui-icon { display: none; }
body.figma-chat-page .composer .figma-voice-button.is-preparing .figma-voice-spinner { display: block; }
:root[data-dm-theme="dark"] .figma-voice-spinner circle { stroke: #A2A8AE; }
.speak-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dm-ui-text-muted, #90959A); cursor: pointer; }
.artifact-card { padding: 10px; border-radius: 18px; }
.artifact-card .file-chip { min-height: 54px; padding: 4px 5px 10px; color: var(--dm-ui-text-primary); }
.artifact-card .file-badge { width: 34px; height: 38px; border-radius: 7px; }
.artifact-card .artifact-preview { max-height: 210px; margin: 2px 4px 10px; padding: 14px; border: 1px solid var(--dm-ui-border); border-radius: 12px; }
.figma-artifact-actions { display: flex; gap: 8px; padding: 0 4px 2px; }
.figma-artifact-actions > a, .figma-artifact-actions > button { display: grid; place-items: center; flex: 1; min-height: 38px; padding: 0 10px; border: 0; border-radius: var(--dm-ui-radius-pill); background: var(--dm-ui-surface-soft); color: var(--dm-ui-text-primary); text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
.figma-artifact-actions > a:hover, .figma-artifact-actions > button:hover { background: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), var(--dm-ui-surface-soft); }   /* 바탕 위 gray050a 한 겹(2026-11-17) */
:root[data-dm-theme="dark"] .figma-artifact-actions > a:hover, :root[data-dm-theme="dark"] .figma-artifact-actions > button:hover { background: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)), var(--dm-ui-surface-soft); }
.speak-button .ui-icon { width: 16px; height: 16px; }
.speak-button:hover, .speak-button.is-speaking { background: var(--dm-ui-surface-soft, #f3f3f3); color: var(--dm-ui-text-primary, #131A20); }
.speak-button.is-loading { cursor: progress; }
.figma-chat-identity.is-thinking strong, .figma-desktop-chat-status.is-thinking strong, .figma-desktop-chat-status.is-thinking small {
  /* 진행 중(생각 중 · 웹 검색 중 · 전화 중) — Figma 284:21159: #191919 글자 위로 흰 60% 빛이 흐름(다크: #F2F2F2 위로 검정 60%) */
  --dm-shine: rgba(255, 255, 255, .6); --dm-shine-ink: #131A20;
  background: linear-gradient(90deg, transparent 30%, var(--dm-shine) 50%, transparent 70%) 0 0 / 250% 100% no-repeat, linear-gradient(var(--dm-shine-ink), var(--dm-shine-ink));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  animation: dm-thinking-text 1.8s linear infinite;
}
:root[data-dm-theme="dark"] .figma-chat-identity.is-thinking strong, :root[data-dm-theme="dark"] .figma-desktop-chat-status.is-thinking strong { --dm-shine: rgba(0, 0, 0, .6); --dm-shine-ink: #F3F5F7; }
.turn-notice { align-items: center; gap: 8px; color: var(--dm-ui-text-secondary); font-size: 12px; }
.turn-notice .link-button { font-size: inherit; }
.turn-notice [data-stop-turn] { min-width: 44px; min-height: 44px; }
@keyframes dm-thinking-text { from { background-position: 100% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .figma-chat-identity.is-thinking strong, .figma-desktop-chat-status.is-thinking strong, .figma-desktop-chat-status.is-thinking small {
    animation: none; background: none; color: var(--dm-shine-ink, var(--dm-ui-text-primary));
  }
}
.speak-button.is-loading .ui-icon { animation: speak-wait 1s ease-in-out infinite alternate; }
@keyframes speak-wait { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .speak-button.is-loading .ui-icon { animation: none; opacity: .5; } }

@media (max-width: 700px) {
  .figma-auth-close { display: block; }
  .figma-join { justify-content: flex-start; padding: 60px 20px max(17px, env(safe-area-inset-bottom)); }
  .join-center { flex: 1 0 auto; justify-content: center; gap: 40px; padding-top: clamp(60px, calc(100dvh - 738px), 114px); }
  .join-hero { height: 150px; }
  .join-mascot { top: -98.9px; width: 157px; height: 157px; }
  .join-story { line-height: 50px; }
  .join-inline-mascot { width: 50px; height: 50px; }
  .join-wordmark { width: 252px; margin: 7px 0 0; }
  .join-subtitle { line-height: 20px; }
  .join-primary { width: auto; min-width: 145px; padding: 0 30px; }
  .join-consent, .join-state-note { min-height: 0; margin-top: 40px; }
  .join-bottom { position: static; margin-top: 43px; }
  .join-mobile-break { display: initial; }
  .join-dialog { width: min(353px, calc(100vw - 40px)); max-height: min(540px, calc(100dvh - 32px)); border-radius: 32px; }
  body.figma-chat-page, body.figma-menu-page { background: var(--dm-ui-canvas); }
  body.figma-chat-page .shell, body.figma-menu-page .shell { padding-bottom: 0; background: var(--dm-ui-canvas); }
  body.figma-chat-page .mobile-nav, body.figma-menu-page .mobile-nav { display: none; }
  body.figma-chat-page .danmuji-shell .main, body.figma-menu-page .danmuji-shell .main { background: var(--dm-ui-canvas); }
  body.figma-chat-page .danmuji-shell .main-head { height: 64px; padding: 0 20px; border: 0; }
  body.figma-chat-page .main-head > .mobile-brand, body.figma-chat-page .main-head > .head-actions { display: none; }
  .figma-chat-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; height: 100%; }
  .figma-chat-head button { display: grid; place-items: center; border: 0; background: none; color: var(--dm-ui-text-primary); cursor: pointer; }
  .figma-chat-leading { display: flex; align-items: center; justify-self: start; gap: 9px; }
  .figma-chat-head .figma-close { width: 36px; height: 36px; border: 1px solid var(--dm-ui-border); border-radius: 50%; font-size: 25px; font-weight: 300; line-height: 1; }
  .figma-menu-back .ui-icon { width: 24px; height: 24px; transform: rotate(180deg); }
  .figma-chat-identity { display: flex; align-items: center; gap: 7px; padding: 3px 11px 3px 4px; border: 1px solid #e9e9e9; border-radius: 99px; color: var(--dm-ui-text-primary); font-size: 13px; }
  .figma-chat-identity img { width: 29px; height: 27px; object-fit: contain; }
  .figma-chat-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
  .figma-chat-actions button { width: 27px; height: 34px; }
  .figma-chat-head .figma-hamburger { display: flex; flex-direction: column; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--dm-ui-border); border-radius: 50%; gap: 4px; }
  .figma-hamburger span { width: 19px; height: 1.5px; border-radius: 2px; background: var(--dm-ui-text-primary); }
  body.figma-chat-page .danmuji-shell .main-content { max-width: none; padding: 0 16px; }
  body.figma-chat-page .chat-layout { height: calc(100dvh - 64px); min-height: 0; }
  body.figma-chat-page .chat-toolbar { display: none; }
  body.figma-chat-page .chat-box { min-height: 0; }
  body.figma-chat-page .messages { min-height: 0; max-height: none; padding: 24px 0 18px; gap: 9px; }
  body.figma-chat-page .messages.is-empty { display: block; }
  body.figma-chat-page .chat-welcome { max-width: none; margin: 0; text-align: left; }
  .figma-chat-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
  .figma-chat-intro > .bubble { max-width: 290px; padding: 12px 14px; border-radius: 17px; background: var(--dm-ui-surface-soft); color: var(--dm-ui-text-primary); font-size: 14px; line-height: 1.55; }
  .figma-chat-intro > .bubble:first-child { max-width: max-content; }
  .figma-desktop-welcome { display: none; }
  /* 「뭐부터 시작해볼까요?」 묶음은 선택지 위젯(dm-widget · dm-wb-choices)으로 그림 — 여기는 자리만(말풍선 ↔ 위젯 8) */
  .figma-suggestions { align-self: stretch; }
  body.figma-chat-page .message > .mascot { display: none; }
  body.figma-chat-page .message { max-width: 85%; }
  body.figma-chat-page .bubble { border-radius: 16px; font-size: 14px; }
  body.figma-chat-page .bubble.assistant { background: var(--dm-ui-surface-soft); color: var(--dm-ui-text-primary); }
  body.figma-chat-page .bubble.user { background: var(--dm-ui-kakao); color: var(--dm-ui-text-primary); }
  body.figma-chat-page .composer { align-items: center; gap: 4px; min-height: 54px; padding: 5px 6px; border: 1px solid #e8e8e8; border-radius: 28px; box-shadow: none; }
  body.figma-chat-page .composer:has(.composer-files:not(:empty)) { padding-top: 12px; }
  body.figma-chat-page .composer-files { gap: 6px; padding: 0 8px 0 10px; }
  body.figma-chat-page .composer:focus-within { border-color: #bdbdbd; box-shadow: none; }
  body.figma-chat-page .attach-button { width: 40px; height: 40px; color: var(--dm-ui-text-primary); }
  body.figma-chat-page .composer textarea { min-height: 40px; max-height: 112px; padding: 11px 0 6px; resize: none; color: var(--dm-ui-text-primary); font-size: 14px; }
  body.figma-chat-page .composer textarea::placeholder { color: #999; }
  body.figma-chat-page .send-button { width: 40px; height: 40px; border-radius: 50%; background: var(--dm-ui-text-primary); }
  body.figma-chat-page .composer-note { display: none; }
  body.figma-chat-page .chat-approvals:empty { display: none; }

  body.figma-menu-page .danmuji-shell .main-head { display: none; }
  body.figma-menu-page .danmuji-shell .main-content { padding: 0; }
  .figma-desktop-profile { display: none; }
  .figma-mobile-menu { display: block; min-height: 100dvh; padding: 20px 24px 36px; background: var(--dm-ui-canvas); color: var(--dm-ui-text-primary); }
  .figma-menu-back { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--dm-ui-text-primary); }
  .figma-menu-hero { display: flex; flex-direction: column; align-items: center; margin: 84px 0 34px; }
  .figma-menu-hero img { width: 78px; height: 84px; object-fit: contain; }
  .figma-menu-hero h2 { margin: 16px 0 4px; font-size: 24px; font-weight: 700; }
  .figma-menu-hero p { margin: 0; color: #a1a1a1; font-size: 13px; }
  .figma-menu-actions { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 340px; margin: 0 auto 40px; text-align: center; }
  .figma-menu-actions button { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; color: #333; font-size: 13px; cursor: pointer; }
  .figma-menu-actions button > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dm-ui-surface-soft); }
  .figma-menu-library { margin: 0 0 18px; }
  .figma-menu-library > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 0 17px; border: 0; background: none; color: inherit; text-align: left; font-size: 17px; font-weight: 700; }
  .figma-menu-library > button span { font-size: 24px; font-weight: 400; }
  .figma-menu-cards { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
  .figma-menu-cards::-webkit-scrollbar { display: none; }
  .figma-menu-cards > button { display: flex; flex: 0 0 120px; flex-direction: column; justify-content: space-between; width: 120px; height: 114px; padding: 11px; border: 1px solid #e9e9e9; border-radius: 12px; background: var(--dm-ui-canvas); color: inherit; text-align: left; }
  .figma-menu-cards .figma-file-icon { color: #e85050; font-size: 20px; font-weight: 800; }
  .figma-menu-cards strong { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
  .figma-menu-links { border-top: 1px solid #eee; }
  .figma-menu-links button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 61px; padding: 0; border: 0; border-bottom: 1px solid #eee; background: none; color: var(--dm-ui-text-primary); text-align: left; font-size: 17px; font-weight: 700; cursor: pointer; }
  .figma-menu-links span { color: var(--dm-ui-text-primary); font-size: 24px; font-weight: 400; }
}

@media (max-width: 360px) {
  .join-story { font-size: 26px; }
  .join-inline-mascot { width: 36px; height: 36px; }
  .join-mascot { top: -54.94px; width: 113.04px; height: 113.04px; }
}

/* /join is a separate document; the app's sign-in uses the selected appearance. */
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
:root[data-dm-theme="dark"] .figma-join-body {
    --dm-ui-canvas: var(--dm-ui-dark-canvas);
    --dm-ui-text-primary: var(--dm-ui-dark-text-primary);
    --dm-ui-text-secondary: var(--dm-ui-dark-text-secondary);
    --dm-ui-text-muted: var(--dm-ui-dark-text-muted);
    --dm-ui-action-primary-bg: var(--dm-ui-dark-text-primary);
    --dm-ui-action-primary-text: var(--dm-ui-dark-action-text);
    --dm-ui-focus: var(--dm-ui-dark-text-primary);
    --join-disabled-bg: rgba(243, 245, 247, 0.1);
    --join-disabled-text: #A2A8AE;
    --join-dialog-bg: #202020;
    --join-dialog-muted: #A2A8AE;
    --join-dialog-line: rgba(255, 255, 255, .12);
    --join-dialog-close-bg: rgba(243, 245, 247, 0.06);
    --join-dialog-close-icon: #C9CDD1;
    --join-dialog-ok-bg: rgba(243, 245, 247, 0.08);
    --join-dialog-ok-hover: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)), var(--join-dialog-ok-bg);
    --join-dialog-ok-pressed: rgba(255, 255, 255, .17);
    --join-link-hover: #C9CDD1;
  }
  :root[data-dm-theme="dark"] .figma-join-body, :root[data-dm-theme="dark"] .figma-join { background: var(--dm-ui-canvas); color: var(--dm-ui-text-primary); }
  :root[data-dm-theme="dark"] .join-wordmark { filter: invert(1); }
:root[data-dm-theme="dark"] .figma-auth-brand > img:last-child { filter: invert(1); }
:root[data-dm-theme="dark"] body.figma-chat-page {
  --dm-ui-canvas: var(--dm-ui-chat-dark-canvas);
  --dm-ui-surface: var(--dm-ui-chat-dark-surface);
  --dm-ui-surface-soft: var(--dm-ui-chat-dark-surface);
  --dm-ui-border: #333333;
  --dm-ui-text-primary: var(--dm-ui-chat-dark-ink);
}
:root[data-dm-theme="dark"] body.figma-chat-page .danmuji-shell .rail { background: var(--dm-ui-menu-rail-bg); }
:root[data-dm-theme="dark"] body.figma-chat-page .bubble.user { background: var(--dm-ui-kakao); color: var(--dm-ui-kakao-text); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip { color: var(--dm-ui-chat-dark-ink); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-meta { color: #bdbdbd; }
:root[data-dm-theme="dark"] body.figma-chat-page .figma-voice-button { background: #303030; color: var(--dm-ui-chat-dark-ink); }
:root[data-dm-theme="dark"] .speak-button { color: #9e9e9e; }
:root[data-dm-theme="dark"] .speak-button:hover, :root[data-dm-theme="dark"] .speak-button.is-speaking { background: rgba(243, 245, 247, 0.08); color: var(--dm-ui-chat-dark-ink); }

@media (max-width: 700px) {
  :root[data-dm-theme="dark"] .figma-auth { --dm-ui-text-secondary: var(--dm-ui-dark-text-secondary-mobile); }
}

@media (max-width: 700px) {
  :root[data-dm-theme="dark"] { --dm-ui-text-secondary: var(--dm-ui-dark-text-secondary-mobile); }
  :root[data-dm-theme="dark"] body.figma-chat-page, :root[data-dm-theme="dark"] body.figma-menu-page, :root[data-dm-theme="dark"] body.figma-chat-page .shell, :root[data-dm-theme="dark"] body.figma-menu-page .shell, :root[data-dm-theme="dark"] body.figma-chat-page .danmuji-shell .main, :root[data-dm-theme="dark"] body.figma-menu-page .danmuji-shell .main, :root[data-dm-theme="dark"] .figma-mobile-menu { background: var(--dm-ui-chat-dark-canvas); color: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] .figma-menu-hero p { color: #aaa; }
  :root[data-dm-theme="dark"] body.figma-chat-page .danmuji-shell .main-head { background: var(--dm-ui-chat-dark-canvas); }
  :root[data-dm-theme="dark"] .figma-chat-head button, :root[data-dm-theme="dark"] .figma-chat-identity, :root[data-dm-theme="dark"] .figma-menu-back, :root[data-dm-theme="dark"] .figma-menu-links button { color: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] .figma-chat-identity, :root[data-dm-theme="dark"] body.figma-chat-page .composer { border-color: #333; }
  :root[data-dm-theme="dark"] .figma-hamburger span { background: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] .figma-chat-intro > .bubble, :root[data-dm-theme="dark"] body.figma-chat-page .bubble.assistant { background: var(--dm-ui-chat-dark-surface); color: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer { background: #1c1c1c; }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer textarea, :root[data-dm-theme="dark"] body.figma-chat-page .attach-button { color: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] body.figma-chat-page .send-button { background: #F3F5F7; color: #080808; }
  :root[data-dm-theme="dark"] body.figma-chat-page .attachment-picker-menu { border-color: #333; background: var(--dm-ui-chat-dark-surface); }
  :root[data-dm-theme="dark"] body.figma-chat-page .attachment-picker-menu button { color: var(--dm-ui-chat-dark-ink); }
  :root[data-dm-theme="dark"] body.figma-chat-page .attachment-picker-menu button:hover, :root[data-dm-theme="dark"] body.figma-chat-page .attachment-picker-menu button:focus-visible, :root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip { background: rgba(243, 245, 247, 0.08); }
  :root[data-dm-theme="dark"] .figma-menu-links, :root[data-dm-theme="dark"] .figma-menu-links button { border-color: #303030; }
  :root[data-dm-theme="dark"] .figma-menu-cards > button { border-color: #303030; background: var(--dm-ui-chat-dark-card); }
  :root[data-dm-theme="dark"] .figma-menu-links span { color: var(--dm-ui-chat-dark-ink); }
}

/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
@media (max-width: 700px) {
  :root[data-dm-theme="dark"] .figma-join-body { --dm-ui-text-secondary: var(--dm-ui-dark-text-secondary-mobile); }
}


@media (prefers-reduced-motion: reduce) { .figma-voice-wave i, .composer-files .attach-chip.is-photo.is-uploading::after { animation: none; } }

/* TASK-202: the current side menu and chat placement in the Figma guide. */
@media (min-width: 701px) {
  body.figma-chat-page .composer { align-items: center; gap: 6px; width: min(100%, 700px); min-height: 58px; margin-inline: auto; padding: 8px 10px; border-radius: 32px; }
  body.figma-chat-page .composer textarea { min-width: 0; height: 40px; min-height: 40px; max-height: 182px; padding: 9px 0; resize: none; font-size: 14px; line-height: 22px; }
  body.figma-chat-page .composer-note { display: none; }
  .main-chat .main-head > .head-title, .main-chat .main-head > .head-actions { display: none; }
  .danmuji-shell .main-chat { padding-bottom: 0; }
  .danmuji-shell .main-chat .chat-layout { height: calc(100dvh - 96px); min-height: 0; padding-bottom: 40px; }
  .danmuji-shell .main-chat .messages { min-height: 0; max-height: none; }
}

@media (max-width: 700px) {
  .figma-desktop-chat-head { display: none; }
  .danmuji-shell.shell { padding-bottom: 0; }
  .mobile-nav { display: none; }
  .danmuji-shell .main-head .head-title { display: block; }
  body.figma-chat-page .danmuji-shell .main-head .head-title { display: none; }
  .danmuji-shell .main-head .head-title p, .danmuji-shell .main-head .mobile-brand { display: none; }
  body.figma-chat-page .danmuji-shell .main, body.figma-menu-page .danmuji-shell .main { padding-bottom: 0; }
  body.figma-chat-page .chat-layout { padding-bottom: 0; }
  body.figma-chat-page .messages { min-height: 0; }

  body.figma-menu-page .danmuji-shell .main { padding-inline: 0; }
  .figma-mobile-menu { min-height: 100dvh; padding: 0 0 max(24px, env(safe-area-inset-bottom)); }
  .figma-menu-top { display: flex; flex-direction: column; width: 100%; height: min(61dvh, 517px); min-height: 390px; padding: 58px 20px 24px; border-radius: 0 0 54px 54px; background: var(--dm-ui-menu-hero-bg); color: var(--dm-ui-menu-hero-ink); }
  .figma-menu-back { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--dm-ui-menu-action-bg); color: var(--dm-ui-menu-hero-ink); }
  .figma-menu-hero { flex: 1; justify-content: center; margin: 0; }
  .figma-menu-hero img { width: 86px; height: 84px; }
  .figma-menu-hero h2 { margin: 8px 0 2px; font-size: 23px; }
  .figma-menu-hero p { color: #575124; font-size: 13px; }
  .figma-menu-actions { width: 100%; max-width: none; margin: 0 0 22px; }
  .figma-menu-actions button { gap: 7px; color: var(--dm-ui-menu-hero-ink); font-weight: 600; }
  .figma-menu-actions button > span { width: 48px; height: 48px; background: var(--dm-ui-menu-action-bg); color: var(--dm-ui-menu-hero-ink); }
  .figma-menu-actions .ui-icon { width: 20px; height: 20px; }
  .figma-menu-usage { width: 100%; min-height: 69px; padding: 13px 16px; border: 0; border-radius: 17px; background: var(--dm-ui-menu-usage-bg); color: var(--dm-ui-menu-hero-ink); text-align: left; cursor: pointer; }
  .figma-menu-usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
  .figma-menu-usage-heading strong { white-space: nowrap; font-size: 12px; }
  .figma-menu-usage-track { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 5px; background: var(--dm-ui-menu-usage-track); }
  .figma-menu-usage-track span { display: block; height: 100%; border-radius: inherit; background: var(--dm-ui-menu-hero-ink); }
  .figma-menu-links { margin: 12px 20px 0; border-top: 0; }
  .figma-menu-links button { min-height: 56px; border-color: #efefef; font-size: 16px; }
  .figma-menu-links button:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  :root[data-dm-theme="dark"] .figma-menu-top, :root[data-dm-theme="dark"] .figma-menu-back, :root[data-dm-theme="dark"] .figma-menu-actions button, :root[data-dm-theme="dark"] .figma-menu-actions button > span { color: var(--dm-ui-menu-hero-ink); }
  :root[data-dm-theme="dark"] .figma-menu-back, :root[data-dm-theme="dark"] .figma-menu-actions button > span { background: var(--dm-ui-menu-action-bg); }
  :root[data-dm-theme="dark"] .figma-menu-hero p { color: #575124; }
}

/* ── 채팅 입력창 — Figma Input 컴포넌트 (Pehs4AKNIBNvWOHquSDzyB 175:40245) ─────────────────
   한 줄: [+ 38][글 16/24][마이크·보내기 50×38]. 두 줄 이상(.is-multiline)·첨부가 있으면 글이 위, 버튼이 아래.
   음성 입력(.is-listening): 「듣고 있어요」 위, 이퀄라이저와 멈춤 버튼 아래. 아이콘은 Figma 컴포넌트 export. */
body.figma-chat-page .composer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-areas: "plus text action";
  /* 한 줄도 바닥 기준(줄 높이 42 = 58 - 위아래 8): 높이가 바뀌는 동안 버튼이 가운데로 튀지 않는다 */
  grid-template-rows: 42px;
  align-content: end;
  align-items: center;
  gap: 12px 6px;
  box-sizing: border-box;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  --composer-line: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px var(--composer-line), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05);
}
body.figma-chat-page .composer:focus-within { box-shadow: inset 0 0 0 1px var(--composer-line), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
body.figma-chat-page .composer .attachment-picker { grid-area: plus; }
body.figma-chat-page .composer .attach-button { width: 38px; height: 38px; border-radius: 50%; background: url('assets/figma/composer/plus.svg') center / 20px no-repeat; }
body.figma-chat-page .composer .attach-button .ui-icon,
body.figma-chat-page .composer .figma-voice-button .ui-icon,
body.figma-chat-page .composer .send-button .ui-icon { display: none; }
body.figma-chat-page .composer textarea {
  grid-area: text;
  box-sizing: border-box;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  max-height: 128px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dm-ui-text-primary);
  font: 400 16px / 24px var(--dm-ui-font-family);
  resize: none;
}
body.figma-chat-page .composer textarea::placeholder { color: rgba(19, 26, 32, .4); }
body.figma-chat-page .composer .figma-voice-button,
body.figma-chat-page .composer .send-button { grid-area: action; width: 50px; height: 38px; margin-left: 2px; padding: 0; border: 0; border-radius: 100px; }
body.figma-chat-page .composer .figma-voice-button { background: rgba(0, 24, 46, 0.04) url('assets/figma/composer/mic.svg') center / 20px no-repeat; }
body.figma-chat-page .composer .send-button { background: #131A20 url('assets/figma/composer/arrow-up.svg') center / 22px no-repeat; }

/* 두 줄 이상 · 첨부가 있을 때 (Typing2Lines · TypingMaxLines · Media · File) */
body.figma-chat-page .composer.is-multiline {
  grid-template-areas: "text text text" "plus . action";
  grid-template-rows: auto;
  align-content: end;
  align-items: end;
  padding: 12px 10px 10px;
}
body.figma-chat-page .composer:has(.composer-files:not(:empty)) {
  grid-template-areas: "files files files" "text text text" "plus . action";
  grid-template-rows: auto;
  align-content: end;
  align-items: end;
  padding: 16px 10px 10px;
}
/* 높이가 바뀌는 동안(app.js resizeInput): 버튼은 바닥에 붙고 글이 위로 펼쳐진다 */
/* 줄 배치가 바뀌는 순간(한 줄 ↔ 글 위·버튼 아래)엔 글이 상자보다 먼저 자리를 잡으니, 상자가 커지는 동안 글을 서서히 보인다 */
body.figma-chat-page .composer.is-relayout textarea { animation: composer-text-in .16s ease-out both; }
@keyframes composer-text-in { from { opacity: 0; } }
body.figma-chat-page .composer.is-multiline textarea,
body.figma-chat-page .composer:has(.composer-files:not(:empty)) textarea { padding: 0 12px; }

/* 첨부 칩 — Figma file(209:55434) · img(209:55422) */
body.figma-chat-page .composer-files { grid-area: files; display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
body.figma-chat-page .composer-files::-webkit-scrollbar { display: none; }
body.figma-chat-page .composer-files:empty { display: none; }
body.figma-chat-page .composer-files .attach-chip { position: relative; display: flex; flex: none; align-items: center; gap: 4px; box-sizing: border-box; width: 177px; max-width: none; height: 60px; min-height: 0; padding: 0 25px 0 6px; border: 0; border-radius: 16px; background: rgba(0, 24, 46, 0.04); }
body.figma-chat-page .composer-files .attach-open { display: flex; align-items: center; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
body.figma-chat-page .composer-files .attach-file-icon { width: 32px; height: 32px; flex: none; border: 0; border-radius: 0; background: url('assets/figma/composer/file-pdf.svg') center / 32px no-repeat; }
body.figma-chat-page .composer-files .attach-file-icon::after { content: none; }
body.figma-chat-page .composer-files .attach-chip.is-uploading .attach-file-icon { background-image: url('assets/figma/composer/file-load.svg'); animation: attachment-spin .8s linear infinite; }
body.figma-chat-page .composer-files .attach-detail { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
body.figma-chat-page .composer-files .attach-name { display: block; max-width: 107px; overflow: hidden; color: var(--dm-ui-text-primary); font-size: 14px; font-weight: 500; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
body.figma-chat-page .composer-files .attach-meta { display: block; max-width: 107px; overflow: hidden; color: #72777C; font-size: 12px; font-weight: 400; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
body.figma-chat-page .composer-files .attach-remove { position: absolute; top: 1px; right: 1px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: url('assets/figma/composer/chip-close.svg') center / 24px no-repeat; color: transparent; font-size: 0; }
body.figma-chat-page .composer-files .attach-chip.is-photo { width: 60px; height: 60px; padding: 0; overflow: hidden; border-radius: 16px; }
body.figma-chat-page .composer-files .attach-chip.is-photo .attach-thumb { border-radius: 16px; }
body.figma-chat-page .composer-files .attach-chip.is-photo .attach-remove { z-index: 2; background-image: url('assets/figma/composer/photo-close.svg'); }
body.figma-chat-page .composer-files .attach-chip.is-photo.is-uploading .attach-thumb,
body.figma-chat-page .composer-files .attach-chip.is-photo.is-failed .attach-thumb { filter: none; }
body.figma-chat-page .composer-files .attach-chip.is-photo.is-uploading::before,
body.figma-chat-page .composer-files .attach-chip.is-photo.is-failed::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 16px; background: rgba(0, 0, 0, .3); }
body.figma-chat-page .composer-files .attach-chip.is-photo.is-uploading::after { top: 16px; left: 14px; z-index: 1; width: 32px; height: 32px; margin: 0; border: 0; border-radius: 0; background: url('assets/figma/composer/photo-load.svg') center / 32px no-repeat; }
body.figma-chat-page .composer-files .attach-chip.is-photo.is-failed::after { content: ''; top: 16px; left: 14px; z-index: 1; width: 32px; height: 32px; margin: 0; border-radius: 0; background: url('assets/figma/composer/photo-error.svg') center / 32px no-repeat; }

/* 음성 입력 (Audio Input 175:40662) */
body.figma-chat-page .composer .figma-voice-cancel { display: none; }
body.figma-chat-page .composer.is-listening { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-rows: auto; grid-template-areas: "label label label" "cancel wave action"; gap: 8px 6px; padding: 12px 10px 10px; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
body.figma-chat-page .composer.is-listening .figma-voice-cancel { grid-area: cancel; display: block; width: 50px; height: 38px; padding: 0; border: 0; border-radius: 100px; background: rgba(0, 24, 46, 0.04) url('assets/figma/composer/close.svg') center / 20px no-repeat; cursor: pointer; }
body.figma-chat-page .composer.is-transcribing { grid-template-areas: "label label label" "wave wave action"; }
body.figma-chat-page .composer.is-listening .figma-voice-button { margin-left: 0; }
body.figma-chat-page .composer.is-listening .figma-voice-state { display: contents; }
body.figma-chat-page .composer.is-listening .figma-voice-state > span:first-child { grid-area: label; color: rgba(19, 26, 32, .4); font-size: 16px; line-height: 24px; text-align: center; }
/* 이퀄라이저 (Figma 556:98116): 막대 2.2 · 간격 3 · 높이 2~24(Figma 3~20 에서 조정) 은 app.js startWave 가 소리 크기로 정한다. 양 끝 10% 흐림 */
body.figma-chat-page .composer.is-listening .figma-voice-wave { grid-area: wave; position: relative; display: block; min-width: 0; height: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
body.figma-chat-page .composer.is-listening .figma-voice-track { position: absolute; inset: 0; will-change: transform; }
body.figma-chat-page .composer.is-listening .figma-voice-wave i { position: absolute; display: block; width: 2.2px; height: 2px; border-radius: 999px; background: #131A20; animation: none; }
body.figma-chat-page .composer.is-listening .figma-voice-button { display: grid; place-items: center; background: #131A20; }
body.figma-chat-page .composer.is-listening .figma-voice-button::after { width: 14px; height: 14px; border-radius: 3.5px; background: #fff; }

/* 다크 — Figma Dark mode=True 짝 */
:root[data-dm-theme="dark"] body.figma-chat-page .composer { --composer-line: rgba(46, 46, 46, .3); border: 0; background-color: rgba(32, 32, 32, .7); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer textarea { color: #F3F5F7; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer textarea::placeholder,
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-state > span:first-child { color: rgba(243, 245, 247, .4); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .attach-button { background-image: url('assets/figma/composer/plus-dark.svg'); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .figma-voice-button { background: rgba(243, 245, 247, 0.08) url('assets/figma/composer/mic-dark.svg') center / 20px no-repeat; color: inherit; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .send-button { background: #F3F5F7 url('assets/figma/composer/arrow-up-dark.svg') center / 22px no-repeat; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-button { background: #F3F5F7; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-cancel { background: rgba(243, 245, 247, 0.08) url('assets/figma/composer/close-dark.svg') center / 20px no-repeat; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-button::after { background: #282828; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-wave i { background: #F3F5F7; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip.is-photo { background: none; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-name { color: #F3F5F7; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-meta { color: #A2A8AE; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-file-icon { background-image: url('assets/figma/composer/file-pdf-dark.svg'); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip.is-uploading .attach-file-icon { background-image: url('assets/figma/composer/file-load-dark.svg'); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-remove { background-image: url('assets/figma/composer/chip-close-dark.svg'); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer-files .attach-chip.is-photo .attach-remove { background-image: url('assets/figma/composer/photo-close-dark.svg'); }

/* 모바일 입력바 — Figma 556:95096 「입력창」: 화면 맨 아래에 떠서 대화가 그 뒤로 흐른다.
   위 10 · 좌우 16 · 아래 12 + 안전영역(홈 인디케이터). 배경은 투명 → #fafafa(입력바 82%), 안전영역은 #fafafa.
   --safe-area-bottom 은 미리보기에서 안전영역을 흉내 낼 때만 쓴다(없으면 기기 값 env). */
@media (max-width: 700px) {
  body.figma-chat-page .chat-box { position: relative; }
  body.figma-chat-page .composer-bar {
    --bar-safe: var(--safe-area-bottom, env(safe-area-inset-bottom, 0px));
    position: absolute;
    z-index: 2;
    right: -16px;
    bottom: 0;
    left: -16px;
    padding: 10px 16px calc(12px + var(--bar-safe));
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fafafa calc((100% - var(--bar-safe)) * .82), #fafafa 100%);
    pointer-events: none;
  }
  body.figma-chat-page .composer-bar > * { pointer-events: auto; }
  body.figma-chat-page .chat-box:has(.chat-approvals:empty) .messages { padding-bottom: calc(var(--composer-bar-height, 80px) + 8px); }
  body.figma-chat-page .chat-approvals:not(:empty) { padding-bottom: calc(var(--composer-bar-height, 80px) + 8px); }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer-bar { background: linear-gradient(to bottom, rgba(8, 8, 8, 0) 0, #080808 calc((100% - var(--bar-safe)) * .82), #080808 100%); }
}

/* 채팅 상단바 — Figma 채팅GNB (399:152874, 다크 399:155648) · GNB Btn (399:159903)
   버튼 44 유리 원형(아이콘 24, Figma export), 가운데 상태 알약 118×56 은 버튼보다 7px 아래(중심 y39).
   배경은 흰색이 아래로 사라지는 96px 그라데이션 — 위 18% 는 불투명, 그 아래는 부드러운 곡선(smoothstep)으로 사라져 끊긴 선이 보이지 않게(Figma 80px 직선 마스크에서 조정).
   다크 버튼 테두리: Figma 코드 값은 흰색 80% 지만 렌더에는 거의 보이지 않아 알약과 같은 6% 로 맞춘다. */
@media (max-width: 700px) {
  body.figma-chat-page .danmuji-shell .main-head { position: relative; z-index: 3; height: 64px; padding: 0 16px; background: transparent; overflow: visible; }
  body.figma-chat-page .danmuji-shell .main-head::before { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 96px; background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 1) 18%, rgba(255, 255, 255, 0.972) 26.2%, rgba(255, 255, 255, 0.896) 34.4%, rgba(255, 255, 255, 0.784) 42.6%, rgba(255, 255, 255, 0.648) 50.8%, rgba(255, 255, 255, 0.500) 59.0%, rgba(255, 255, 255, 0.352) 67.2%, rgba(255, 255, 255, 0.216) 75.4%, rgba(255, 255, 255, 0.104) 83.6%, rgba(255, 255, 255, 0.028) 91.8%, rgba(255, 255, 255, 0.000) 100.0%); pointer-events: none; }
  body.figma-chat-page .figma-chat-head { align-items: start; height: 64px; }
  body.figma-chat-page .figma-chat-leading,
  body.figma-chat-page .figma-chat-actions { gap: 8px; margin-top: 10px; }
  body.figma-chat-page .figma-chat-head .figma-close,
  body.figma-chat-page .figma-chat-head .figma-back,
  body.figma-chat-page .figma-chat-head .figma-chat-actions button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7) center / 24px no-repeat;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05);
    color: transparent;
    font-size: 0;
  }
  body.figma-chat-page .figma-chat-head button > * { display: none; }
  /* Figma 채팅GNB 는 닫기 · 메뉴 둘뿐 — 뒤로 · 전화는 이 바에서 숨긴다(마크업과 동작은 그대로) */
  body.figma-chat-page .figma-chat-head .figma-back,
  body.figma-chat-page .figma-chat-head .figma-chat-actions [data-page="calls"] { display: none; }
  body.figma-chat-page .figma-chat-head .figma-chat-leading .figma-close { background-image: url('assets/figma/gnb/close.svg'); }
  body.figma-chat-page .figma-chat-head .figma-chat-leading .figma-back { background-image: url('assets/figma/gnb/back.svg'); }
  body.figma-chat-page .figma-chat-head .figma-chat-actions [data-page="calls"] { background-image: url('assets/figma/gnb/phone.svg'); }
  body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-hamburger { background-image: url('assets/figma/gnb/menu.svg'); }
  body.figma-chat-page .figma-chat-identity {
    box-sizing: border-box;
    width: 118px;
    height: 56px;
    margin-top: 11px;
    padding: 0 0 0 13px;
    gap: 6px;
    justify-content: flex-start;
    border: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(4.915px);
    backdrop-filter: blur(4.915px);
    box-shadow: 0 1.966px 7.863px rgba(0, 0, 0, .1);
    color: #72777C;
    font: 500 14px / 24px var(--dm-ui-font-family);
  }
  body.figma-chat-page .figma-chat-identity strong { font-weight: 500; white-space: nowrap; }
  body.figma-chat-page .figma-chat-identity img { width: 38px; height: 38px; }

  :root[data-dm-theme="dark"] body.figma-chat-page .danmuji-shell .main-head { background: transparent; }
  :root[data-dm-theme="dark"] body.figma-chat-page .danmuji-shell .main-head::before { background: linear-gradient(to bottom, rgba(8, 8, 8, 1) 0, rgba(8, 8, 8, 1) 18%, rgba(8, 8, 8, 0.972) 26.2%, rgba(8, 8, 8, 0.896) 34.4%, rgba(8, 8, 8, 0.784) 42.6%, rgba(8, 8, 8, 0.648) 50.8%, rgba(8, 8, 8, 0.500) 59.0%, rgba(8, 8, 8, 0.352) 67.2%, rgba(8, 8, 8, 0.216) 75.4%, rgba(8, 8, 8, 0.104) 83.6%, rgba(8, 8, 8, 0.028) 91.8%, rgba(8, 8, 8, 0.000) 100.0%); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-close,
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-back,
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-actions button { background-color: rgba(32, 32, 32, .7); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-leading .figma-close { background-image: url('assets/figma/gnb/close-dark.svg'); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-leading .figma-back { background-image: url('assets/figma/gnb/back-dark.svg'); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-actions [data-page="calls"] { background-image: url('assets/figma/gnb/phone-dark.svg'); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-hamburger { background-image: url('assets/figma/gnb/menu-dark.svg'); }
  :root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-identity { border: 0; background: rgba(32, 32, 32, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1.966px 7.863px rgba(0, 0, 0, .1); color: #A2A8AE; }
}

/* ── PC 사이드바 — Figma lnb 접힘 399:145648 / 펼침 558:61973 ── */
@media (min-width: 701px) {
  .danmuji-shell.shell { --lnb-width: 50px; grid-template-columns: var(--lnb-width) minmax(0, 1fr); max-width: none; transition: grid-template-columns .28s cubic-bezier(.2, .8, .2, 1); }
  body.figma-lnb-open .danmuji-shell.shell { --lnb-width: 290px; }
  .danmuji-shell .rail.figma-lnb { display: flex; flex-direction: column; justify-content: space-between; gap: 0; width: var(--lnb-width); min-width: 0; height: 100vh; height: 100dvh; padding: 0 0 24px; overflow: hidden; border: 0; background: transparent; box-shadow: inset -1px 0 0 #f0f0f0; transition: width .28s cubic-bezier(.2, .8, .2, 1), background-color .28s; }
  body.figma-lnb-open .danmuji-shell .rail.figma-lnb { padding-right: 1px; background: #fff; }
  .figma-lnb button { border: 0; background: none; color: #131A20; cursor: pointer; }
  .figma-lnb-menu { display: flex; flex-direction: column; gap: 8px; }
  .figma-lnb-logo { position: relative; height: 57px; }
  .figma-lnb-brand { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; width: 100px; height: 25px; padding: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .figma-lnb-brand img { display: block; width: 80px; height: 14.511px; }
  .figma-lnb-toggle { position: absolute; top: 12.5px; left: 9px; width: 32px; height: 32px; padding: 0; border-radius: 8px; background: url('assets/figma/lnb/toggle-folded.svg') center / 20px 20px no-repeat !important; }
  body.figma-lnb-open .figma-lnb-brand { opacity: 1; visibility: visible; }
  body.figma-lnb-open .figma-lnb-toggle { top: 12.5px; left: 247px; width: 32px; height: 32px; border-radius: 8px; background: url('assets/figma/lnb/toggle-expanded.svg') center / 20px 20px no-repeat !important; }
  .figma-lnb-list { display: flex; flex-direction: column; gap: 2px; }   /* 채팅 · 활동 · 앱 및 서비스 연결 · 설정 사이 2 더(펼침 · 접힘 모두, 2026-11-06) */
  .figma-lnb-list button, .figma-lnb-profile { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 0 0 15px; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.54; text-align: left; }
  body.figma-lnb-open .figma-lnb-list button { padding-left: 16px; }
  .figma-lnb-list i { flex: none; width: 20px; height: 20px; background: center / 20px 20px no-repeat; }
  .figma-lnb-tasks i { background-image: url('assets/figma/lnb/activity.svg'); }
  .figma-lnb-connections i { background-image: url('assets/figma/lnb/connections.svg'); }   /* 앱 및 서비스 연결 — Grid02 (Figma 1142:59652) */
  .figma-lnb-settings i { background-image: url('assets/figma/lnb/setting.svg'); }
  .figma-lnb-list span, .figma-lnb-profile span { opacity: 0; transition: opacity .2s; }
  body.figma-lnb-open .figma-lnb-list span, body.figma-lnb-open .figma-lnb-profile span { opacity: 1; }
  .figma-lnb-foot { display: flex; flex-direction: column; gap: 24px; }
  .figma-lnb-usage { display: none; }
  body.figma-lnb-open .figma-lnb-usage:not([hidden]) { display: flex; }
  .figma-lnb-usage { flex-direction: column; gap: 14px; width: 257px; margin: 0 16px; padding: 20px 20px 22px !important; border-radius: 24px; background: rgba(255, 255, 255, .5) !important; box-shadow: 0 0 2px rgba(0, 0, 0, .06); text-align: left; }
  .figma-lnb-usage-head { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 14px; line-height: 17px; white-space: nowrap; }
  .figma-lnb-usage-head > span { color: #000; opacity: .7; }
  .figma-lnb-usage-head strong { display: flex; align-items: center; gap: 4px; color: #131A20; font-weight: 600; }
  .figma-lnb-usage-head i { width: 14px; height: 14px; background: url('assets/figma/icons/usage-arrow.svg') center / 14px 14px no-repeat; opacity: .5; }
  .figma-lnb-usage-track { position: relative; display: block; width: 100%; height: 6px; border-radius: 100px; background: rgba(0, 24, 46, 0.09); }
  .figma-lnb-usage-track span { position: absolute; inset: 0 auto 0 0; border-radius: 100px; background: #131A20; }
  .figma-lnb-profile { height: 24px; padding-left: 13px; }
  body.figma-lnb-open .figma-lnb-profile { padding-left: 16px; }
  .figma-lnb-profile .figma-lnb-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .04); outline-offset: -1px; } /* 보더 gray050a(다크 8%) — 안쪽 선이라 크기 그대로 */
  /* 사진 없는 회원: 닉네임 첫 글자 원(TASK-419). 다른 사람 얼굴인 시안 사진을 대신 띄우지 않는다. */
  .figma-lnb-profile .figma-lnb-avatar.is-initial { display: grid; place-items: center; background: var(--dm-ui-menu-rail-usage-track); color: var(--dm-ui-menu-rail-ink); font-size: 11px; font-weight: 600; line-height: 1; opacity: 1; }

  /* 채팅 상단 — Figma GNB 399:145642: 흰색→투명 100px, 버튼 위 28 · 상태 알약 위 21, 가운데 전화·상태·예약 */
  .danmuji-shell .main.main-chat { position: relative; padding: 0; }
  .danmuji-shell .main-chat .main-head { position: absolute; z-index: 3; top: 0; right: 0; left: 0; display: block; max-width: none; height: 100px; margin: 0; padding: 0; border: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 0.972) 20.8%, rgba(255, 255, 255, 0.896) 29.6%, rgba(255, 255, 255, 0.784) 38.4%, rgba(255, 255, 255, 0.648) 47.2%, rgba(255, 255, 255, 0.500) 56.0%, rgba(255, 255, 255, 0.352) 64.8%, rgba(255, 255, 255, 0.216) 73.6%, rgba(255, 255, 255, 0.104) 82.4%, rgba(255, 255, 255, 0.028) 91.2%, rgba(255, 255, 255, 0.000) 100.0%); pointer-events: none; }
  .danmuji-shell .main-chat .main-head > :not(.figma-desktop-chat-head) { display: none; }
  .figma-desktop-chat-head { position: absolute; top: 21px; left: 50%; display: flex; align-items: center; gap: 16px; transform: translateX(-50%); pointer-events: auto; }
  .figma-desktop-chat-head button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 32px; background: rgba(255, 255, 255, .7) center / 24px 24px no-repeat; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); cursor: pointer; }
  .figma-desktop-chat-head .figma-gnb-call { background-image: url('assets/figma/icons/phone.svg'); }
  .figma-desktop-chat-head .figma-gnb-reservation { background-image: url('assets/figma/icons/reservation.svg'); }
  .figma-desktop-chat-status { display: flex; align-items: center; gap: 6px; box-sizing: border-box; width: 120px; height: 58px; padding: 0 18px 0 14px; border: 1px solid rgba(0, 0, 0, .03); border-radius: 30px; background: rgba(255, 255, 255, .7) padding-box; backdrop-filter: blur(4.915px); -webkit-backdrop-filter: blur(4.915px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1.966px 7.863px -1px rgba(0, 0, 0, .1); color: #72777C; font-size: 14px; font-weight: 500; line-height: 24px; white-space: nowrap; }
  .figma-desktop-chat-status img { flex: none; width: 38px; height: 38px; object-fit: contain; }
  .figma-desktop-chat-status strong { font-weight: 500; }

  /* 대화 칸·입력창 — 본문 가운데 700px, 입력창 아래 40px */
  .danmuji-shell .main-chat .main-content { height: 100dvh; padding: 0; }
  .danmuji-shell .main-chat .chat-layout { width: 700px; max-width: calc(100% - 32px); height: 100dvh; min-height: 0; margin: 0 auto; padding: 0 0 40px; }
  body.figma-chat-page .danmuji-shell .main-chat .chat-toolbar { display: none; }
  .danmuji-shell .main-chat .messages { min-height: 0; max-height: none; padding-top: 96px; padding-inline: 0; }   /* 상단 네비(아래 끝 79) 와 첫 피드 글자 사이 보이는 간격 약 28 — 120 에서 줄임 */
  .danmuji-shell .main-chat .composer-bar { width: 100%; }  /* 아래 「PC 입력바」 블록이 덮어쓴다 */
  body.figma-chat-page .danmuji-shell .main-chat .composer { width: 100%; margin: 0; }
}

@media (min-width: 701px) {
  /* 다크 사이드 메뉴 — 어느 화면이든 같은 색(Figma 접힘 558:61125 #080808 · 펼침 558:62020 #151515, 오른쪽 선 #1F1F1F). 채팅 화면 전용 색 덮어쓰기 */
  :root[data-dm-theme="dark"] body .danmuji-shell .rail.figma-lnb { background: #080808; box-shadow: inset -1px 0 0 #1f1f1f; }
  :root[data-dm-theme="dark"] body.figma-lnb-open .danmuji-shell .rail.figma-lnb { background: #202020; }
  :root[data-dm-theme="dark"] .figma-lnb button { color: #F3F5F7; }
  :root[data-dm-theme="dark"] .figma-lnb-profile .figma-lnb-avatar { outline-color: rgba(255, 255, 255, .08); }
  :root[data-dm-theme="dark"] .figma-lnb-brand img { content: url('assets/figma/lnb/danmuzi-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-toggle { background: url('assets/figma/lnb/toggle-folded-dark.svg') center / 20px 20px no-repeat !important; }
  :root[data-dm-theme="dark"] body.figma-lnb-open .figma-lnb-toggle { background: url('assets/figma/lnb/toggle-expanded-dark.svg') center / 20px 20px no-repeat !important; }
  :root[data-dm-theme="dark"] .figma-lnb-tasks i { background-image: url('assets/figma/lnb/activity-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-connections i { background-image: url('assets/figma/lnb/connections-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-settings i { background-image: url('assets/figma/lnb/setting-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-usage { background: rgba(255, 255, 255, .04) !important; }
  :root[data-dm-theme="dark"] .figma-lnb-usage-head > span { color: #fff; }
  :root[data-dm-theme="dark"] .figma-lnb-usage-head strong { color: #F3F5F7; }
  :root[data-dm-theme="dark"] .figma-lnb-usage-head i { background-image: url('assets/figma/icons/usage-arrow-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-usage-track { background: rgba(243, 245, 247, 0.1); }
  :root[data-dm-theme="dark"] .figma-lnb-usage-track span { background: #F3F5F7; }
  :root[data-dm-theme="dark"] .danmuji-shell .main-chat .main-head { background: linear-gradient(to bottom, rgba(8, 8, 8, 1) 0, rgba(8, 8, 8, 1) 12%, rgba(8, 8, 8, 0.972) 20.8%, rgba(8, 8, 8, 0.896) 29.6%, rgba(8, 8, 8, 0.784) 38.4%, rgba(8, 8, 8, 0.648) 47.2%, rgba(8, 8, 8, 0.500) 56.0%, rgba(8, 8, 8, 0.352) 64.8%, rgba(8, 8, 8, 0.216) 73.6%, rgba(8, 8, 8, 0.104) 82.4%, rgba(8, 8, 8, 0.028) 91.2%, rgba(8, 8, 8, 0.000) 100.0%); }
  :root[data-dm-theme="dark"] .figma-desktop-chat-head button { background-color: rgba(32, 32, 32, .7); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
  :root[data-dm-theme="dark"] .figma-desktop-chat-head .figma-gnb-call { background-image: url('assets/figma/icons/phone-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-desktop-chat-head .figma-gnb-reservation { background-image: url('assets/figma/icons/reservation-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-desktop-chat-status { border-color: rgba(255, 255, 255, .06); background-color: rgba(32, 32, 32, .7); color: #A2A8AE; }
}
@media (prefers-reduced-motion: reduce) { .danmuji-shell.shell, .danmuji-shell .rail.figma-lnb { transition: none; } }

/* ── 입력창 버튼 Hover/Pressed — Figma Button/Input 175:40032 ──
   Plus: 투명 → 4% 원 · Mic/Close: 4% 위에 4% 한 겹 더 · Send/Stop: #191919 → #424242 (다크 #f2f2f2 → #dfdfdf) */
body.figma-chat-page .composer .attach-button,
body.figma-chat-page .composer .figma-voice-button,
body.figma-chat-page .composer .figma-voice-cancel,
body.figma-chat-page .composer .send-button { transition: background-color .12s ease; }
@media (hover: hover) {
  body.figma-chat-page .composer .attach-button:hover { background-color: rgba(0, 24, 46, 0.04); }
  body.figma-chat-page .composer:not(.is-listening) .figma-voice-button:hover { background-image: url('assets/figma/composer/mic.svg'), linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); background-size: 20px, auto; }
  body.figma-chat-page .composer.is-listening .figma-voice-cancel:hover { background-image: url('assets/figma/composer/close.svg'), linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); background-size: 20px, auto; }
  body.figma-chat-page .composer .send-button:hover, body.figma-chat-page .composer.is-listening .figma-voice-button:hover { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer .attach-button:hover { background-color: rgba(243, 245, 247, 0.08); }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer:not(.is-listening) .figma-voice-button:hover { background-image: url('assets/figma/composer/mic-dark.svg'), linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); background-size: 20px, auto; background-position: center; background-repeat: no-repeat; }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-cancel:hover { background-image: url('assets/figma/composer/close-dark.svg'), linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); background-size: 20px, auto; background-position: center; background-repeat: no-repeat; }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer .send-button:hover, :root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-button:hover { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); }
}
body.figma-chat-page .composer .attach-button:active { background-color: rgba(0, 24, 46, 0.04); }
body.figma-chat-page .composer:not(.is-listening) .figma-voice-button:active { background-image: url('assets/figma/composer/mic.svg'), linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); background-size: 20px, auto; }
body.figma-chat-page .composer.is-listening .figma-voice-cancel:active { background-image: url('assets/figma/composer/close.svg'), linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); background-size: 20px, auto; }
body.figma-chat-page .composer .send-button:active, body.figma-chat-page .composer.is-listening .figma-voice-button:active { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .attach-button:active { background-color: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] body.figma-chat-page .composer:not(.is-listening) .figma-voice-button:active { background-image: url('assets/figma/composer/mic-dark.svg'), linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); background-size: 20px, auto; background-position: center; background-repeat: no-repeat; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-cancel:active { background-image: url('assets/figma/composer/close-dark.svg'), linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); background-size: 20px, auto; background-position: center; background-repeat: no-repeat; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .send-button:active, :root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-button:active { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); }

/* ── 채팅 말풍선·답변 마크다운·피드 — Figma Chat 556:99359 (규칙: project-docs design/tokens DP-002) ── */
body.figma-chat-page {
  --chat-me-max: 280px; --chat-ai-max: 330px; --chat-wide-max: 330px; --chat-widget-max: 330px; --chat-media-max: 330px; --chat-turn-gap: 16px;
  --chat-me-bg: #fff0a4; --chat-me-ink: #131A20;   /* 내 말풍선 #FFF0A4 · 글 #191919 — 라이트 · 다크 같음(2026-11-11, 전 #FFF3C1) */
  --chat-ai-bg: rgba(0, 24, 46, 0.04); --chat-ink: #131A20;   /* 단무지 말풍선 gray050a(2026-11-11, 전 gray000 #F7F7F7) */ --chat-ink-2: #3D4348; --chat-muted: #72777C; --chat-feed-ink: #282F35;
  --chat-card-bg: #fff; --chat-card-line: #f5f5f5; --chat-th-line: #ccc; --chat-td-line: #ebebeb;
  --chat-quote-bar: rgba(0, 24, 46, 0.13); --chat-scroll: rgba(0, 0, 0, .14); --chat-code-bg: rgba(0, 24, 46, 0.04);
}
/* PC 너비 — 본문·입력창 700px. 내 말풍선·답변·표·코드·위젯·이미지 모두 최대 480 */
@media (min-width: 701px) { body.figma-chat-page { --chat-me-max: 480px; --chat-ai-max: 480px; --chat-wide-max: 480px; --chat-widget-max: 480px; --chat-media-max: 480px; --chat-turn-gap: 24px; } }
:root[data-dm-theme="dark"] body.figma-chat-page {
  --chat-ai-bg: rgba(243, 245, 247, 0.08); --chat-ink: #F3F5F7;   /* 다크 gray050a(전 #151515) */ --chat-ink-2: #DAE0E6; --chat-muted: #A2A8AE; --chat-feed-ink: #EDF0F3;
  --chat-card-bg: #080808; --chat-card-line: #1a1a1a; --chat-th-line: #5d5d5d;
  --chat-quote-bar: rgba(243, 245, 247, 0.17); --chat-scroll: rgba(255, 255, 255, .22); --chat-code-bg: rgba(243, 245, 247, 0.08);
}

/* 간격: 같은 사람 8px, 사람이 바뀌면 16px(PC 24px), 피드 위아래 16px */
body.figma-chat-page .messages { gap: 0; }
body.figma-chat-page .messages > * { margin: 0; }
body.figma-chat-page .messages > * + * { margin-top: var(--chat-turn-gap); }
body.figma-chat-page .messages > .user-message + .user-message,
body.figma-chat-page .messages > .assistant-message + .assistant-message { margin-top: 8px; }
body.figma-chat-page .messages > .chat-feed, body.figma-chat-page .messages > .chat-feed + * { margin-top: 16px; }
body.figma-chat-page .messages > .chat-feed:first-child { margin-top: 0; }
body.figma-chat-page .message { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; }
body.figma-chat-page .message.user-message { align-self: stretch; align-items: flex-end; }
body.figma-chat-page .message > .mascot { display: none; }
body.figma-chat-page .message-stack { gap: 8px; }
body.figma-chat-page .user-message .message-stack { align-items: flex-end; }

/* 내 글 말풍선 */
body.figma-chat-page .messages .bubble.user {
  box-sizing: border-box; min-width: 50px; max-width: var(--chat-me-max); margin: 0; padding: 12px 16px; border-radius: 24px;
  background: var(--chat-me-bg); color: var(--chat-me-ink); font-size: 16px; font-weight: 400; line-height: 1.54; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* 내 파일 말풍선: 파일 하나에 하나 */
body.figma-chat-page .messages .bubble.file-bubble { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 16px 12px 12px; border-radius: 20px; text-decoration: none; white-space: normal; }
body.figma-chat-page .file-tile { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #fff center 2px / 36px 36px no-repeat; }
body.figma-chat-page .file-pdf { background-image: url('assets/figma/bubble/file-pdf.svg'); }
body.figma-chat-page .file-ppt { background-image: url('assets/figma/bubble/file-ppt.svg'); }
body.figma-chat-page .file-docs { background-image: url('assets/figma/bubble/file-docs.svg'); }
body.figma-chat-page .file-sheet { background-image: url('assets/figma/bubble/file-sheet.svg'); }
body.figma-chat-page .file-etc { background-image: url('assets/figma/bubble/file-etc.svg'); }
body.figma-chat-page .file-text { display: flex; flex-direction: column; width: 157px; font-size: 14px; }
body.figma-chat-page .file-text strong { overflow: hidden; color: #131A20; font-weight: 600; line-height: 1.54; text-overflow: ellipsis; white-space: nowrap; }
body.figma-chat-page .file-text small { color: #000; font-size: 14px; line-height: 1.32; opacity: .5; }
/* 내 사진 묶음 — Figma 1008:37383, 반경은 말풍선 24px */
body.figma-chat-page .photo-bundle { display: grid; gap: 1px; overflow: hidden; border-radius: 24px; }
body.figma-chat-page .photo-tile { position: relative; display: block; min-width: 0; overflow: hidden; }
body.figma-chat-page .photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.figma-chat-page .photo-tile.is-failed img { filter: brightness(.65); }
body.figma-chat-page .photos-1 { grid-template-columns: 160px; grid-template-rows: 160px; }
body.figma-chat-page .photos-2 { gap: 2px; grid-template-columns: 129px 129px; grid-template-rows: 129px; }
body.figma-chat-page .photos-3, body.figma-chat-page .photos-4 { grid-template-columns: 130px 130px; grid-template-rows: 130px 130px; }
body.figma-chat-page .photos-3 .photo-tile:first-child { grid-column: 1 / span 2; }
body.figma-chat-page .photos-rows { display: flex; flex-direction: column; width: 260px; }
body.figma-chat-page .photo-row { display: flex; gap: 1px; height: 85px; }
body.figma-chat-page .photo-row-2 { height: 84px; }
body.figma-chat-page .photo-row .photo-tile { flex: 1 1 0; }

/* 단무지 답변 말풍선 */
body.figma-chat-page .messages .bubble.assistant, body.figma-chat-page .figma-chat-intro > .bubble {
  box-sizing: border-box; max-width: var(--chat-ai-max); margin: 0; padding: 12px 16px; border: 0; border-radius: 24px;
  background: var(--chat-ai-bg); color: var(--chat-ink); font-size: 16px; font-weight: 400; line-height: 1.6; white-space: normal; overflow-wrap: anywhere;
}
/* 표·코드 말풍선 */
body.figma-chat-page .messages .bubble.md-table-bubble, body.figma-chat-page .messages .bubble.md-code-bubble {
  width: min(100%, var(--chat-ai-max)); padding: 10px 16px; border: 4px solid var(--chat-card-line); background: var(--chat-card-bg); overflow: hidden;
}
/* PC: 표·코드는 답변과 같은 480 (--chat-wide-max 로 따로 둠: 나중에 넓힐 때 이 값만 바꾸면 된다). 넘치면 안에서 가로 스크롤.
   감싸는 칸들이 내용 너비로 줄어드는 구조라 최소값은 % 가 아니라 고정값으로 준다 */
@media (min-width: 701px) {
  body.figma-chat-page .messages .bubble.md-table-bubble, body.figma-chat-page .messages .bubble.md-code-bubble { width: max-content; min-width: var(--chat-ai-max); max-width: min(100%, var(--chat-wide-max)); }
}
body.figma-chat-page .md-image-bubble { width: min(100%, var(--chat-media-max)); }
body.figma-chat-page .md-image { display: block; width: 100%; aspect-ratio: 1; border-radius: 24px; object-fit: cover; }

/* 답변 마크다운 */
body.figma-chat-page .bubble.markdown > * { margin: 0; }
body.figma-chat-page .messages .bubble.markdown > * + * { margin-top: 12px; }
body.figma-chat-page .bubble.markdown strong { font-weight: 700; }
body.figma-chat-page .bubble.markdown del { text-decoration: line-through; }
body.figma-chat-page .bubble.markdown a { color: inherit; text-decoration: underline dotted; text-decoration-skip-ink: none; text-underline-position: from-font; }
body.figma-chat-page .bubble.markdown ul, body.figma-chat-page .bubble.markdown ol { display: flex; flex-direction: column; padding: 0; list-style: none; }
body.figma-chat-page .bubble.markdown ul { gap: 12px; }
body.figma-chat-page .bubble.markdown ol { gap: 8px; padding-left: 24px; list-style: decimal outside; }
body.figma-chat-page .bubble.markdown li { position: relative; margin: 0; }
body.figma-chat-page .bubble.markdown ul > li { padding-left: 14px; }
body.figma-chat-page .bubble.markdown ul > li::before { content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 26px; background: url('assets/figma/markdown/dot.svg') no-repeat; }
body.figma-chat-page .bubble.markdown li > .md-li { display: block; }
/* 중첩: 상위 항목은 행간 1.54, 하위와 4px. 글머리 아래 번호는 10+24px, 번호 아래 글머리는 10px 들여 점 */
body.figma-chat-page .bubble.markdown li:has(> ul, > ol) > .md-li { line-height: 1.54; }
body.figma-chat-page .bubble.markdown li > ul, body.figma-chat-page .bubble.markdown li > ol { gap: 4px; margin: 4px 0 0; }
/* 글머리 아래 번호 항목은 Figma에서 27px 칸(점 자리)에 맞춰 한 줄이 27px */
body.figma-chat-page .bubble.markdown ul > li > ol > li { padding-block: .7px; }
body.figma-chat-page .bubble.markdown ul > li > ol { padding-left: 20px; }
body.figma-chat-page .bubble.markdown ol > li > ul > li { padding-left: 0; }
body.figma-chat-page .bubble.markdown ol > li > ul > li::before { left: -14px; }
/* 인용문 */
body.figma-chat-page .bubble.markdown blockquote { display: flex; gap: 12px; padding: 0; border: 0; color: inherit; line-height: 1.68; }
body.figma-chat-page .bubble.markdown blockquote::before { content: ''; flex: none; width: 3px; border-radius: 999px; background: var(--chat-quote-bar); }
/* 시안 없는 요소(파생): 제목은 글머리 상위 항목처럼 Bold 16px 행간 1.54, 가로선은 표 칸 선, 인라인 코드는 SF Mono 14px 연한 바탕 */
body.figma-chat-page .bubble.markdown :is(h1, h2, h3, h4) { color: inherit; font-size: 16px; font-weight: 700; line-height: 1.54; }
body.figma-chat-page .bubble.markdown hr { height: 1px; border: 0; background: var(--chat-td-line); }
body.figma-chat-page .bubble.markdown :not(pre) > code { padding: 1px 4px; border-radius: 4px; background: var(--chat-code-bg); font: 500 14px/1 'SF Mono', ui-monospace, Menlo, monospace; }
/* Pretendard에는 기울임 글꼴이 없고 앱 전체가 font-synthesis: none 이라, 기울임만 브라우저가 기울여 그리게 연다 */
body.figma-chat-page .bubble.markdown em { font-style: italic; font-synthesis: style; }
/* 표 */
body.figma-chat-page .bubble.markdown .md-table { overflow-x: auto; }
body.figma-chat-page .bubble.markdown table { width: max-content; border-collapse: collapse; font-size: 14px; line-height: 1.54; }
body.figma-chat-page .bubble.markdown th, body.figma-chat-page .bubble.markdown td { min-width: 54px; max-width: 270px; padding: 12px 30px 12px 0; border: 0; text-align: left; vertical-align: top; }
body.figma-chat-page .bubble.markdown th { border-bottom: 1px solid var(--chat-th-line); color: var(--chat-ink); font-weight: 700; }
body.figma-chat-page .bubble.markdown td { border-bottom: 1px solid var(--chat-td-line); color: var(--chat-ink-2); font-weight: 400; }
body.figma-chat-page .bubble.markdown tbody tr:last-child td { border-bottom: 0; }
/* PC: 표는 말풍선 너비를 꽉 채우고, 칸 글 최대 270 → 480. 짧은 내용은 한 줄로, 아주 긴 내용만 줄바꿈 */
@media (min-width: 701px) {
  body.figma-chat-page .bubble.markdown table { min-width: 100%; }
  body.figma-chat-page .bubble.markdown th, body.figma-chat-page .bubble.markdown td { max-width: 480px; }
}
/* 코드 블록 */
body.figma-chat-page .bubble.markdown pre { margin: 0; padding: 4px 0 16px; overflow-x: auto; border: 0; border-radius: 0; background: none; }
body.figma-chat-page .bubble.markdown pre code { display: block; padding: 0; background: none; color: var(--chat-ink); font: 500 13px/1.33 'SF Mono', ui-monospace, Menlo, monospace; white-space: pre; }
body.figma-chat-page .bubble.markdown .md-code-line { display: block; }
body.figma-chat-page .bubble.markdown .md-code-line + .md-code-line { margin-top: 10px; }
body.figma-chat-page .bubble.markdown :is(.md-table, pre)::-webkit-scrollbar { height: 5px; }
body.figma-chat-page .bubble.markdown :is(.md-table, pre)::-webkit-scrollbar-thumb { border-radius: 100px; background: var(--chat-scroll); }
:root[data-dm-theme="dark"] body.figma-chat-page .bubble.markdown ul > li::before { background-image: url('assets/figma/markdown/dot-dark.svg'); }

/* 피드 — Figma Feed 399:158899 */
body.figma-chat-page .chat-feed { display: flex; flex-direction: column; align-items: center; align-self: stretch; padding: 8px 16px; color: var(--chat-muted); font-size: 12px; line-height: 1.54; text-align: center; }
body.figma-chat-page .chat-feed.feed-date, body.figma-chat-page .chat-feed.feed-time { font-size: 13px; }   /* 시각 피드는 날짜 피드와 같은 모양 */
body.figma-chat-page .chat-feed:is(.feed-date, .feed-time):has(.feed-ai-note) { gap: 10px; }   /* 날짜 · 시각 아래 AI 고지(Figma 1854:74106) */
body.figma-chat-page .chat-feed .feed-ai-note { font-size: 12px; line-height: 1.54; color: var(--chat-muted); word-break: keep-all; }
body.figma-chat-page .chat-feed .link-button { padding: 0; border: 0; background: none; color: #72777C; font-size: 12px; line-height: 1.54; text-decoration: underline; cursor: pointer; }
body.figma-chat-page .chat-feed.history-fold { gap: 6px; }
body.figma-chat-page .chat-feed.history-fold > span { display: flex; align-items: center; gap: 16px; width: 100%; line-height: 1.52; white-space: nowrap; }
body.figma-chat-page .chat-feed.history-fold > span::before, body.figma-chat-page .chat-feed.history-fold > span::after { content: ''; flex: 1; height: 1px; background: url('assets/figma/bubble/feed-line.svg') left center / 2px 1px repeat-x; }
:root[data-dm-theme="dark"] body.figma-chat-page .chat-feed.history-fold > span::before, :root[data-dm-theme="dark"] body.figma-chat-page .chat-feed.history-fold > span::after { background-image: url('assets/figma/bubble/feed-line-dark.svg'); }
/* 글머리 상위 항목: Figma는 26px 칸(점 높이) 아래쪽에 글자를 놓는다 — 첫 줄 위 4px + 행간 22px 로 같은 자리 */
body.figma-chat-page .bubble.markdown ul > li:has(> ol, > ul) > .md-li { padding-top: 3px; padding-bottom: 1px; line-height: 22px; }
body.figma-chat-page .bubble.markdown ol > li:has(> ol, > ul) > .md-li { padding-block: .68px; }
/* 하위 목록을 가진 번호 목록은 묶음 사이 12px (Figma 불렛+넘버링), 단순 번호 목록만 8px */
body.figma-chat-page .bubble.markdown ol:has(> li > ul, > li > ol) { gap: 12px; }
/* 번호 목록: 항목 글이 굵게(**…**)로 시작하면 번호도 굵게 */
body.figma-chat-page .bubble.markdown ol > li.md-li-strong::marker { font-weight: 700; }

/* ── PC 입력바·대화 칸 — Figma PC_채팅 399:145235 (입력 영역 501:177003, 다크 501:178921) ──
   입력바는 본문 전체 너비에 걸쳐 위 투명 → 82% 지점 흰색(다크 #080808) 그라디언트, 아래 20px(높이 78, Figma 16 에서 조정). 입력창은 가운데 최대 700px.
   대화는 입력바 뒤까지 이어지고, 마지막 말풍선은 입력바 높이만큼 비켜 선다. 피드 앞뒤는 24px(PC). */
@media (min-width: 701px) {
  /* 스크롤은 본문 맨 오른쪽 끝에서 — 대화 칸을 본문 전체 너비로 넓히고, 말풍선 칸(가운데 700px)은 안쪽 여백으로 만든다 */
  .danmuji-shell .main-chat .main-content { width: 100%; max-width: none; margin: 0; }
  .danmuji-shell .main-chat .chat-layout { width: 100%; max-width: none; margin: 0; padding-bottom: 0; }
  .danmuji-shell .main-chat .messages, .danmuji-shell .main-chat .chat-approvals { padding-inline: max(16px, calc((100% - 700px) / 2)); }
  .danmuji-shell .main-chat .chat-box { position: static; }
  .danmuji-shell .main-chat .composer-bar {
    position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; width: auto;
    padding: 0 16px 20px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 82%); pointer-events: none;
  }
  .danmuji-shell .main-chat .composer-bar > * { pointer-events: auto; }
  body.figma-chat-page .danmuji-shell .main-chat .composer { width: 100%; max-width: 700px; }
  /* 마지막 답변과 입력창 사이 24 (말하는 사람이 바뀔 때 간격과 같게, 8 에서 넓힘) */
  .danmuji-shell .main-chat .chat-box:has(.chat-approvals:empty) .messages { padding-bottom: calc(var(--composer-bar-height, 78px) + 40px); }   /* PC: 마지막 말풍선 → 입력창 40 — 호버 시각·복사 줄(8+16) 아래로도 16 남게 */
  .danmuji-shell .main-chat .chat-approvals:not(:empty) { padding-bottom: calc(var(--composer-bar-height, 78px) + 24px); }
  body.figma-chat-page .messages > .chat-feed, body.figma-chat-page .messages > .chat-feed + * { margin-top: 24px; }
  body.figma-chat-page .messages > .chat-feed:first-child { margin-top: 0; }
  :root[data-dm-theme="dark"] .danmuji-shell .main-chat .composer-bar { background: linear-gradient(to bottom, rgba(8, 8, 8, 0) 0, #080808 82%); }
}

/* 모바일 상단바는 대화 위에 떠 있어야 그라디언트(흰색 → 투명 80px) 뒤로 말풍선이 지나간다 — Figma 채팅GNB 399:152874.
   대화는 화면 맨 위부터 시작하고, 첫 말풍선은 상단바 그라디언트 끝(80px) 아래에서 시작한다. */
@media (max-width: 700px) {
  body.figma-chat-page .danmuji-shell .main.main-chat { position: relative; }
  body.figma-chat-page .danmuji-shell .main-chat .main-head { position: absolute; top: 0; right: 0; left: 0; }
  body.figma-chat-page .chat-layout { height: 100dvh; }
  body.figma-chat-page .messages { padding-top: 80px; }
  /* 안드로이드 크롬(2026-11-09): 대화를 밀면 주소 줄이 접히며 화면 높이가 바뀌는데, 100dvh 가 늦게 따라와 입력창이 화면 중간에 뜨고
     페이지 전체가 같이 밀렸다. 채팅 화면을 화면에 고정(inset 0)해 바닥 · 키보드 위를 늘 따라가게 하고, 문서 자체는 스크롤되지 않게 */
  html:has(body.figma-chat-page), body.figma-chat-page { overflow: hidden; }
  body.figma-chat-page .danmuji-shell .main.main-chat { position: fixed; inset: 0; }
  body.figma-chat-page .main-chat > .main-content, body.figma-chat-page .main-chat .chat-layout { height: 100%; }
}
/* 다크에서도 내 말풍선은 #FFF0A4 · #191919(2026-11-11, 전 #FFF3C1 · Figma 질문 말풍선 다크 379:23321) — 예전 카카오 노랑 규칙을 덮는다 */
:root[data-dm-theme="dark"] body.figma-chat-page .messages .bubble.user { background: var(--chat-me-bg); color: var(--chat-me-ink); }
/* 다크 단무지 말풍선도 gray050a(채팅 안만) — 예전 모바일 다크 회색(#1F1F1F) 규칙을 덮는다 */
:root[data-dm-theme="dark"] body.figma-chat-page :is(.messages .bubble.assistant, .figma-chat-intro > .bubble) { background: var(--chat-ai-bg); color: var(--chat-ink); }

/* PC 사이드바 메뉴 — Figma 558:60693(접힘) · 558:61979(펼침 목록). 채팅이 첫 메뉴이자 기본 화면.
   선택·hover 는 같은 모양: 접힘은 36×28 상자, 펼침은 좌우 8·위아래 1 안쪽 상자, 반경 8, 검정 4%(다크 흰색 8%). */
@media (min-width: 701px) {
  .figma-lnb-chat i { background-image: url('assets/figma/lnb/chat.svg'); }
  .figma-lnb-list button { position: relative; isolation: isolate; padding-left: 15px; }
  body.figma-lnb-open .figma-lnb-list button { padding-left: 18px; }
  .figma-lnb-list button::before { content: ''; position: absolute; z-index: -1; inset: 5px 7px; border-radius: 8px; background: transparent; transition: inset .28s cubic-bezier(.2, .8, .2, 1), background-color .15s; }
  body.figma-lnb-open .figma-lnb-list button::before { inset: 1px 8px; }
  /* 펼침 목록(558:61979): 줄마다 위아래 1px, 채팅 38 · 나머지 39 */
  body.figma-lnb-open .figma-lnb-list button:not(.figma-lnb-chat) { height: 39px; }
  .figma-lnb-list button.active::before { background: rgba(0, 24, 46, 0.04); }
  .figma-lnb-toggle { transition: background-color .15s; }
  @media (hover: hover) {
    .figma-lnb-list button:hover::before, .figma-lnb-toggle:hover, body.figma-lnb-open .figma-lnb-toggle:hover { background-color: rgba(0, 24, 46, 0.04) !important; }
  }
  .figma-lnb-list button:active::before { background: rgba(0, 24, 46, 0.04); }
  :root[data-dm-theme="dark"] .figma-lnb-chat i { background-image: url('assets/figma/lnb/chat-dark.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-list button.active::before, :root[data-dm-theme="dark"] .figma-lnb-list button:active::before { background: rgba(243, 245, 247, 0.08); }
  @media (hover: hover) {
    :root[data-dm-theme="dark"] .figma-lnb-list button:hover::before, :root[data-dm-theme="dark"] .figma-lnb-toggle:hover, :root[data-dm-theme="dark"] body.figma-lnb-open .figma-lnb-toggle:hover { background-color: rgba(243, 245, 247, 0.08) !important; }
  }
}

/* 스크롤 막대 — gray200a(검정 14% / 다크 흰색 22%, Figma 2579:62670). 서비스 전체 스크롤 공통(2026-11-20) */
body.figma-chat-page .messages { }

/* 사이드바 열고 닫기 — 폭(.28s)과 같은 곡선으로 안쪽 값도 같이 움직여서 첫 프레임에 툭 튀지 않게.
   접기 버튼은 옆으로 미끄러지고, 줄 높이·여백·카드는 순간 전환 대신 함께 변한다. */
@media (min-width: 701px) {
  .figma-lnb-toggle { transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1), background-color .15s; }
  .figma-lnb-list button { transition: height .28s cubic-bezier(.2, .8, .2, 1), padding-left .28s cubic-bezier(.2, .8, .2, 1); }
  .figma-lnb-profile { transition: padding-left .28s cubic-bezier(.2, .8, .2, 1); }
  .danmuji-shell .figma-lnb-usage:not([hidden]) { display: flex; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  body.figma-lnb-open .danmuji-shell .figma-lnb-usage:not([hidden]) { opacity: 1; visibility: visible; transition-delay: .06s; }
  @media (prefers-reduced-motion: reduce) { .figma-lnb-toggle, .figma-lnb-list button, .figma-lnb-profile, .danmuji-shell .figma-lnb-usage { transition: none !important; } }
}

/* ── 모바일 메뉴 — Figma 556:121644(라이트) · 556:115321(다크). 좌표는 Figma 판에서 상태바 53px 을 뺀 값 ── */
@media (max-width: 700px) {
  /* 메뉴가 열려 있는 동안 휴대폰 상단(상태바)은 theme-color(#fcea4a)와 맨 위 노란 영역으로 노랗게. 튕김은 끈다 */
  /* 페이지 바탕은 다른 화면처럼 흰색(다크 #080808) — 아래 safe area 가 노랗게 물들지 않게. 위 노랑은 맨 위 노란 영역(.dm-menu-top)과 theme-color 가 채운다 */
  html:has(body.figma-menu-page), body.figma-menu-page { background: #fff; overscroll-behavior-y: none; }
  body.figma-menu-page .shell, body.figma-menu-page .danmuji-shell .main { background: transparent; }
  .dm-menu { min-height: 100dvh; padding-bottom: var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)); background: #fff; color: #131A20; }
  .dm-menu :where(button) { font-family: inherit; color: inherit; cursor: pointer; }
  .dm-menu-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; height: 464px; padding: 56px 24px 0; border-radius: 0 0 40px 40px; background: #fcea4a; color: #131A20; }
  .dm-menu-back { position: absolute; top: 10px; left: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 32px; background: rgba(255, 255, 255, .7) url('assets/figma/menu/back.svg') center / 24px 24px no-repeat; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
  .dm-menu-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
  /* 움직이는 쉬는 중 그림(mascot/rest-400)은 이미지 안 여백이 커서, 캐릭터가 Figma 크기(93×76 · 위 12)로 보이게 키우고 100 상자에 맞춘다 */
  .dm-menu-hero img { width: 113.4px; height: 113.4px; margin: -9.1px -6.7px -4.3px; object-fit: contain; }   /* 그림만 3 위로: 뒤로 버튼 아래 끝 ~ 캐릭터 위 끝 12(Figma 556:115225), 아래 글자 위치는 그대로 */
  .dm-menu-hero h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 32px; }
  .dm-menu-hero p { margin: -4px 0 0; font-size: 15px; line-height: 22px; opacity: .6; }
  .dm-menu-actions { display: flex; justify-content: center; gap: 30px; width: 100%; }
  .dm-menu-actions button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 80px; padding: 0; border: 0; background: none; font-size: 13px; line-height: 1.68; }
  .dm-menu-action-icon { width: 50px; height: 50px; border-radius: 100px; background: rgba(255, 255, 255, .6) center / 24px 24px no-repeat; box-shadow: 0 0 2px rgba(0, 0, 0, .06); }
  .dm-menu-action-icon.is-call { background-image: url('assets/figma/icons/phone.svg'); }
  .dm-menu-action-icon.is-reservation { background-image: url('assets/figma/icons/reservation.svg'); }
  .dm-menu-usage { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 6px; padding: 20px 20px 22px; border: 0; border-radius: 24px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .06); text-align: left; }
  .dm-menu-usage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; white-space: nowrap; }
  .dm-menu-usage-head > span { color: #000; font-size: 14px; opacity: .7; }
  .dm-menu-usage-head strong { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
  .dm-menu-usage-arrow { width: 14px; height: 14px; background: url('assets/figma/icons/usage-arrow.svg') center / 14px 14px no-repeat; opacity: .5; }
  .dm-menu-usage-track { position: relative; display: block; width: 100%; height: 6px; border-radius: 100px; background: rgba(0, 24, 46, 0.09); }
  .dm-menu-usage-track span { position: absolute; inset: 0 auto 0 0; border-radius: 100px; background: #131A20; }
  .dm-menu-links { display: flex; flex-direction: column; margin-top: 20px; }
  .dm-menu-links button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 6.5px 20px; border: 0; background: none; font-size: 18px; font-weight: 700; line-height: 1.54; text-align: left; }
  .dm-menu-links button::after { content: ''; flex: none; width: 20px; height: 20px; background: url('assets/figma/menu/arrow.svg') center / 20px 20px no-repeat; }
  .dm-menu-links button + button { margin-top: 24px; }
  .dm-menu-links button + button::before { content: ''; position: absolute; top: -12.5px; right: 16px; left: 16px; height: 1px; background: rgba(0, 0, 0, .04); }
  :root[data-dm-theme="dark"]:has(body.figma-menu-page), :root[data-dm-theme="dark"] body.figma-menu-page { background: #080808; }
  :root[data-dm-theme="dark"] body.figma-menu-page .shell, :root[data-dm-theme="dark"] body.figma-menu-page .danmuji-shell .main { background: transparent; }
  :root[data-dm-theme="dark"] .dm-menu { background: #080808; }
  :root[data-dm-theme="dark"] .dm-menu-links { color: #F3F5F7; }
  :root[data-dm-theme="dark"] .dm-menu-links button::after { background-image: url('assets/figma/menu/arrow-dark.svg'); }
  :root[data-dm-theme="dark"] .dm-menu-links button + button::before { background: rgba(243, 245, 247, 0.08); }
  :root[data-dm-theme="dark"] .dm-menu-usage { background: rgba(255, 255, 255, .5); }
}

/* ── 전화·예약 바텀시트 — Figma 788:36444 · 788:36767 · 788:35730 · 788:36202. PC 는 같은 내용을 가운데 다이얼로그로 ── */
.dm-sheet-scrim { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background-color .25s; }
.dm-sheet-scrim.is-open { background: rgba(0, 0, 0, .5); }
.dm-sheet { display: flex; flex-direction: column; width: 100%; max-height: 100dvh; margin: 0 0 -1px; padding: 0 0 var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)); overflow: hidden auto; border-radius: 32px 32px 0 0; background: #fff; color: #131A20; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.dm-sheet-scrim.is-open .dm-sheet { transform: none; }
.dm-sheet :where(button, input, textarea, select) { font-family: inherit; }
.dm-sheet-handle { display: grid; place-items: center; flex: none; width: 100%; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.dm-sheet-handle span { width: 36px; height: 4px; border-radius: 2px; background: #90959A; }
.dm-sheet-title { flex: none; height: 44px; margin: 0; font-size: 16px; font-weight: 600; line-height: 44px; text-align: center; }
.dm-sheet-head { flex: none; }
.dm-sheet-close { display: none; }
.dm-sheet-form { display: flex; flex-direction: column; gap: 24px; padding: 18px 16px 0; }
.dm-sheet-field { display: flex; flex-direction: column; gap: 12px; }
.dm-sheet-label { padding: 0 4px; color: #545A60; font-size: 15px; line-height: 23px; }
.dm-sheet-input, .dm-sheet-textarea { box-sizing: border-box; width: 100%; border: 1px solid rgba(0, 0, 0, .08); background: #fff; color: #131A20; font-size: 15px; line-height: 1.5; outline: 0; }
.dm-sheet-input { height: 50px; padding: 0 20px; border-radius: 100px; font-weight: 600; }
.dm-sheet-input.is-phone { border-radius: 24px; }
.dm-sheet-textarea { display: block; height: 208px; padding: 16px 20px; border-radius: 20px; resize: none; }
/* 여러 줄 입력칸: 테두리·반경은 바깥 상자가, 글과 스크롤은 안쪽 textarea 가 맡는다 — 스크롤 막대가 위아래 16 · 오른쪽 8 안쪽에만 생겨 둥근 모서리 밖으로 빠지지 않는다 */
.dm-sheet-textbox { box-sizing: border-box; display: block; height: 208px; padding: 16px 8px 16px 20px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); border-radius: 20px; background: #fff; cursor: text; }   /* 반경 20 — 통화 시트 시안 1063:40852 */
.dm-sheet-textbox .dm-sheet-textarea { height: 100%; padding: 0 12px 0 0; border: 0; border-radius: 0; background: transparent; }
.dm-sheet-textarea::-webkit-scrollbar { width: 4px; }
.dm-sheet-textarea::-webkit-scrollbar-thumb { border-radius: 20px; background-color: rgba(0, 0, 0, .14); }
.dm-sheet-input::placeholder, .dm-sheet-textarea::placeholder { color: #90959A; opacity: 1; }
.dm-sheet-options { display: flex; flex-direction: column; gap: 8px; }
.dm-sheet-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.dm-sheet-days[hidden] { display: none; }
.dm-sheet-days legend { padding: 0 4px 4px; color: #545A60; font-size: 15px; font-weight: 400; line-height: 23px; }
.dm-sheet-days .slot { display: inline-flex; align-items: center; gap: 4px; padding: 4px; color: #131A20; font-size: 14px; white-space: nowrap; }
.dm-sheet-days .slot input { accent-color: #131A20; }
/* 반복할 요일 체크(2026-11-09): 위젯 여러 개 고르기와 같은 Figma Check01 16 원형 — 안 고름 선(GRAY400S), 고름 채움(GRAY900S) */
.dm-sheet-days .slot input { flex: none; width: 16px; height: 16px; margin: 0; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; background: #AEB3B8; cursor: pointer;
  -webkit-mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; }
.dm-sheet-days .slot input:checked { background: #131A20; -webkit-mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); }
.dm-sheet-days .slot input:focus-visible { outline: 2px solid #0a73dc; outline-offset: 2px; border-radius: 50%; }
:root[data-dm-theme="dark"] .dm-sheet-days .slot input { background: #777D83; }
:root[data-dm-theme="dark"] .dm-sheet-days .slot input:checked { background: #F3F5F7; }
.dm-sheet-option-wrap { position: relative; }
.dm-sheet-option-wrap[hidden] { display: none; }
.dm-sheet-option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 4px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
@media (hover: hover) { .dm-sheet-option:hover { background: rgba(0, 24, 46, 0.04); } }
.dm-sheet-option:active, .dm-sheet-option[aria-expanded="true"] { background: rgba(0, 24, 46, 0.04); }
.dm-sheet-option .dm-sheet-label { padding: 0; }
.dm-sheet-option strong { font-size: 16px; font-weight: 500; line-height: 1.5; }
.dm-sheet-actions { flex: none; margin-top: 16px; padding: 16px; }
.dm-sheet-submit { width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: 100px; background: #131A20; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; transition: background-color .15s; }
.dm-sheet-submit:disabled { background: rgba(0, 24, 46, 0.22); cursor: default; }
:root[data-dm-theme="dark"] .dm-sheet { background: #202020; color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-sheet-handle span { background: #7D8389; }
:root[data-dm-theme="dark"] .dm-sheet-label { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-sheet-input, :root[data-dm-theme="dark"] .dm-sheet-textarea { border-color: rgba(255, 255, 255, .12); background: #2E2E2E; color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-sheet-textbox { border-color: rgba(255, 255, 255, .12); background: #2E2E2E; }
:root[data-dm-theme="dark"] .dm-sheet-textbox .dm-sheet-textarea { border: 0; background: transparent; }
:root[data-dm-theme="dark"] .dm-sheet-textarea::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
:root[data-dm-theme="dark"] .dm-sheet-input::placeholder, :root[data-dm-theme="dark"] .dm-sheet-textarea::placeholder { color: #7D8389; }
:root[data-dm-theme="dark"] .dm-sheet-days legend { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-sheet-days .slot { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-sheet-days .slot input { accent-color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-sheet-submit { background: #F3F5F7; color: #282828; }   /* 글자 WHITE003S 다크 #282828 (Figma 1063:41470) */
:root[data-dm-theme="dark"] .dm-sheet-submit:disabled { background: rgba(243, 245, 247, 0.36); color: #282828; }
/* 예약 편집 하단 두 버튼(Figma 1678:53443): 삭제 RED120A 바탕 · RED500S 글자, 완료 GRAY050A 바탕 · GRAY900S 글자, 사이 10 */
.dm-sheet-actions.is-pair { display: flex; gap: 10px; }
.dm-sheet-actions.is-pair > button { flex: 1 1 0; min-width: 0; }
.dm-sheet-delete { height: 52px; padding: 0 20px; border: 0; border-radius: 100px; background: rgba(255, 71, 43, .1); color: #ff472b; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
.dm-sheet-delete:disabled { opacity: .5; cursor: default; }
.dm-sheet-submit.is-soft { background: rgba(0, 24, 46, 0.04); color: #131A20; }
.dm-sheet-submit.is-soft:disabled { color: rgba(19, 26, 32, .3); }
:root[data-dm-theme="dark"] .dm-sheet-delete { background: rgba(255, 120, 73, .14); color: #ff7849; }
:root[data-dm-theme="dark"] .dm-sheet-submit.is-soft { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-sheet-submit.is-soft:disabled { color: rgba(243, 245, 247, .3); }
@media (min-width: 701px) { .dm-sheet-delete { height: 58px; } }
@media (min-width: 701px) {
  .dm-sheet-scrim { align-items: center; }
  .dm-sheet { width: 420px; max-height: calc(100dvh - 48px); margin: 0; padding-bottom: 0; border-radius: 32px; opacity: 0; transform: translateY(16px) scale(.98); transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
  .dm-sheet-scrim.is-open .dm-sheet { opacity: 1; transform: none; }
  .dm-sheet-handle { display: none; }
  /* PC 다이얼로그 — Figma 324:102473(List dialog) 스타일: 반경 40 · 그림자 0 20 60 20%, 머리는 왼쪽 제목 SemiBold 18 + 32 원형 닫기, 좌우 24, 버튼 높이 58 */
  .dm-sheet { width: 461px; border-radius: 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
  .dm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 16px 30px; }
  .dm-sheet-title { height: auto; font-size: 18px; line-height: 32px; text-align: left; }
  .dm-sheet-close { display: block; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 80px; background: rgba(0, 24, 46, 0.03) url('assets/figma/dialog/close.svg') center / 18px 18px no-repeat; cursor: pointer; transition: background-color .15s; }
  .dm-sheet-close:hover { background-color: rgba(0, 24, 46, 0.07); }
  .dm-sheet-close:active { background-color: rgba(0, 24, 46, 0.09); }
  .dm-sheet-form { padding: 8px 24px 0; }
  .dm-sheet-actions { margin-top: 8px; padding: 24px; }
  .dm-sheet-submit { height: 58px; }
  :root[data-dm-theme="dark"] .dm-sheet { border: 1px solid rgba(255, 255, 255, .08); }
  :root[data-dm-theme="dark"] .dm-sheet-close { background-color: rgba(243, 245, 247, 0.06); background-image: url('assets/figma/dialog/close-dark.svg'); }
}
@media (prefers-reduced-motion: reduce) { .dm-sheet, .dm-sheet-scrim { transition: none; } }

/* 반복 주기·시간대 선택 카드 — 시트 요소를 그대로: 반경 24 카드 + GNB 버튼 계열 그림자, 선택·hover 회색 4%(다크 흰색 8%),
   글자 15 Regular / 선택 SemiBold, 체크는 Figma Mono/Badge/Check01_solid, 확인은 시트 등록 버튼과 같은 검은 알약 */
.dm-picker { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 6px); display: flex; flex-direction: column; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 8px 24px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(6px) scale(.97); transform-origin: bottom right; transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.dm-picker.is-open { opacity: 1; transform: none; }
.dm-picker:is(.is-repeat, .is-weekday) { width: 200px; max-height: min(60dvh, 320px); overflow-y: auto; }   /* 요일 고르기도 반복 주기와 같은 너비(체크가 오른쪽 끝) */
.dm-picker-option { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border: 0; border-radius: 16px; background: none; color: #131A20; font-size: 15px; line-height: 1.5; text-align: left; cursor: pointer; transition: background-color .15s; }
.dm-picker-option[aria-selected="true"] { font-weight: 600; }
.dm-picker-option[aria-selected="true"]::after { content: ''; width: 24px; height: 24px; background: url('assets/figma/icons/check.svg') center / 24px 24px no-repeat; }
@media (hover: hover) { .dm-picker-option:hover { background: rgba(0, 24, 46, 0.04); } }
.dm-picker-option:active, .dm-picker-option:focus-visible { background: rgba(0, 24, 46, 0.04); outline: 0; }
.dm-picker:is(.is-time, .is-date) { width: 248px; }   /* 날짜 휠도 시간 휠과 같은 너비로 고정 — 굴릴 때 너비가 바뀌지 않게, 고른 줄 띠 안쪽 여백 확보 */
.dm-wheel { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 4px; height: 200px; }
.dm-wheel-band { position: absolute; top: 80px; right: 0; left: 0; height: 40px; border-radius: 100px; background: rgba(0, 24, 46, 0.04); pointer-events: none; }
.dm-wheel-col { position: relative; height: 200px; padding: 80px 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: 0; -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); }
.dm-wheel-col::-webkit-scrollbar { display: none; }
.dm-wheel-item { display: grid; place-items: center; height: 40px; color: #90959A; font-size: 17px; line-height: 1.5; scroll-snap-align: center; cursor: pointer; transition: color .12s; }
.dm-wheel-item.is-selected { color: #131A20; font-weight: 600; }
.dm-wheel-col:focus-visible .dm-wheel-item.is-selected { text-decoration: underline; text-underline-offset: 4px; }
.dm-picker-done { height: 44px; margin-top: 8px; border: 0; border-radius: 100px; background: #131A20; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
:root[data-dm-theme="dark"] .dm-sheet-option:active, :root[data-dm-theme="dark"] .dm-sheet-option[aria-expanded="true"], :root[data-dm-theme="dark"] .dm-picker-option:active, :root[data-dm-theme="dark"] .dm-picker-option:focus-visible, :root[data-dm-theme="dark"] .dm-wheel-band { background: rgba(243, 245, 247, 0.08); }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-sheet-option:hover, :root[data-dm-theme="dark"] .dm-picker-option:hover { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] .dm-picker { background: #2E2E2E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .4); }
:root[data-dm-theme="dark"] .dm-picker-option, :root[data-dm-theme="dark"] .dm-wheel-item.is-selected { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-wheel-item { color: #7D8389; }
:root[data-dm-theme="dark"] .dm-picker-option[aria-selected="true"]::after { background-image: url('assets/figma/icons/check-dark.svg'); }
:root[data-dm-theme="dark"] .dm-picker-done { background: #F3F5F7; color: #080808; }
@media (prefers-reduced-motion: reduce) { .dm-picker { transition: none; } }

/* ── 로그인 — Figma 496:90398(라이트) · 496:93229(다크). 좌표는 Figma 판에서 상태바 53px 을 뺀 값 ──
   마스코트 140 상자(그림 131.8×110.1) · 문구 15 SemiBold · 워드마크 237×43 · 카카오 버튼(아이콘은 Figma ios_symbol_kakao) */
.figma-auth { display: block; padding: 0; }
.figma-auth-brand { position: absolute; top: max(96px, calc((100dvh - 799px) / 2 + 183px)); right: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 20px; transform: none; }
.figma-auth-brand > img:first-child { box-sizing: content-box; width: 131.765px; height: 110.147px; margin: 0; padding: 14.93px 4.12px; object-fit: cover; }
.figma-auth-brand p { margin: 8px 0 6px; color: #131A20; font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: -.075px; }
.figma-auth-title { margin: 8px 0 0; }
.figma-auth-brand > img.figma-auth-wordmark { display: block; width: 237.069px; height: 43px; }
.figma-auth-action { right: 0; bottom: 0; left: 0; width: auto; max-width: 440px; margin: 0 auto; padding: 24px 20px calc(24px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))); }
.figma-kakao { gap: 8px; min-height: 0; height: auto; padding: 20px; border-radius: 100px; background: #fee500; color: #191919; font-size: 16px; font-weight: 600; line-height: 18px; letter-spacing: -.3px; }
.figma-kakao:hover { background: #fee500; }
@media (hover: hover) { .figma-kakao:hover { background: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), #fee500; } }
.figma-kakao:active { background: linear-gradient(rgba(0, 24, 46, 0.09), rgba(0, 24, 46, 0.09)), #fee500; }
.kakao-symbol { flex: none; width: 18px; height: 18px; border-radius: 0; background: url('assets/figma/icons/kakao.svg') center / 18px 18px no-repeat; }
.kakao-symbol::after { content: none; }
.figma-auth-close { top: 10px; left: 16px; width: 44px; height: 44px; border-radius: 32px; background: rgba(255, 255, 255, .7) url('assets/figma/gnb/close.svg') center / 24px 24px no-repeat; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); font-size: 0; }
:root[data-dm-theme="dark"] .figma-auth { background: #080808; }
:root[data-dm-theme="dark"] .figma-auth-brand p { color: #F3F5F7; }
:root[data-dm-theme="dark"] .figma-auth-brand > img.figma-auth-wordmark { content: url('assets/figma/login/wordmark-dark.svg'); filter: none; }
:root[data-dm-theme="dark"] .figma-auth-close { background: rgba(32, 32, 32, .7) url('assets/figma/gnb/close-dark.svg') center / 24px 24px no-repeat; box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }

.figma-auth-foot { display: none; }
/* PC 로그인 — Figma 496:90364(라이트) · 496:90381(다크), 1440×1024 판 기준(화면 높이가 다르면 가운데 기준으로 같이 움직임).
   마스코트 170 상자(그림 160×133.75, 위 18.13 · 좌우 5) 위 220 · 4 · 문구 20 SemiBold 행간 1.58(36 칸) · 워드마크 437.2×79.3(90 칸)
   · 60 · 카카오 버튼 너비 320(여백 20) · 맨 아래 80 칸 가운데 「© danmuzi. All rights reserved」 13 #949494. 다크 바탕 #202020 */
@media (min-width: 701px) {
  .figma-auth { min-height: max(100dvh, 640px); background: #fff; }
  .figma-auth-brand { top: max(40px, calc((100dvh - 1024px) / 2 + 220px)); padding: 0; }
  .figma-auth-brand > img.figma-auth-mascot { box-sizing: content-box; width: 160px; height: 133.75px; padding: 18.13px 5px 18.12px; object-fit: cover; }
  .figma-auth-brand p { display: flex; align-items: center; justify-content: center; height: 36px; margin: 4px 0 0; font-size: 20px; line-height: 1.58; letter-spacing: -.1px; }
  .figma-auth-brand > img.figma-auth-wordmark { width: 437.198px; height: 79.3px; margin: 5.35px 0; }
  .figma-auth-action { top: calc(max(40px, calc((100dvh - 1024px) / 2 + 220px)) + 360px); bottom: auto; width: 320px; max-width: none; padding: 0; }
  .figma-auth-foot { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; height: 80px; margin: 0; color: #90959A; font-size: 13px; line-height: normal; }
  /* 바탕은 채팅 화면과 같은 White000s(라이트 #FFFFFF · 다크 #080808) — 2026-11-09 PC 다크도 #202020 → #080808 */
  :root[data-dm-theme="dark"] .figma-auth { background: var(--dm-ui-chat-dark-canvas, #080808); }
  :root[data-dm-theme="dark"] .figma-auth-foot { color: #7D8389; }
}
/* 로그인 화면 바깥(body)도 같은 바탕 — 고무줄 스크롤 · 가장자리에 다른 색이 비치지 않게 */
html:has(.figma-auth), body:has(.figma-auth) { background: #fff; }
:root[data-dm-theme="dark"]:has(.figma-auth), :root[data-dm-theme="dark"] body:has(.figma-auth) { background: var(--dm-ui-chat-dark-canvas, #080808); }

/* ── 위젯 (DP-003) — Figma 556:99359 「위젯」 (모음 558:33984, 텍스트·버튼 801:42631) ──
   서버는 데이터만 보내고 app.js widgetCard 가 블록을 조합해 그린다. 규칙은 project-docs 디자인 토큰 문서 「위젯」.
   카드: 흰 바탕 + 4px gray050s 테두리, 반경 24, 안쪽 16, 너비 = 답변 말풍선 최대 폭. 머리(아이콘 24 + 6 + 제목 16 SemiBold) 아래 14,
   몸통 블록 사이 10, 버튼 줄은 위 블록과 12. 목록처럼 줄 자체에 위아래 여백이 있는 블록은 머리 바로 아래에서 -8 당겨 붙인다(Figma 6 + 줄 여백). */
/* 위젯 색 — 예전 승인 카드(.approval-card)도 같은 버튼 줄을 쓰므로 같은 값을 받는다(TASK-769) */
:is(.dm-widget, .approval-card) { --w-ink: #131A20; --w-ink-2: #3D4348; --w-ink-3: #545A60; --w-muted: #72777C; --w-hint: #90959A; --w-accent: #0a73dc; --w-line: rgba(0, 0, 0, .04); --w-fill: rgba(0, 24, 46, 0.04); --w-solid: rgba(0, 24, 46, 0.04); --w-strong: #282F35; --w-on-strong: #fff; --w-off: #AEB3B8; --w-thumb-line: rgba(0, 0, 0, .06); --w-bar: rgba(0, 24, 46, 0.13); --w-dot: #AEB3B8; }
.dm-widget {
  box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; width: var(--chat-widget-max, 330px); max-width: 100%; margin: 0; padding: 16px; border: 4px solid var(--w-solid); border-radius: 24px; background: #fff; color: var(--w-ink); overflow: hidden; }
.dm-widget * { box-sizing: border-box; }
.dm-widget :where(p, strong, b, small, em) { margin: 0; }
.dm-widget-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dm-widget-head strong { overflow: hidden; font-size: 16px; font-weight: 600; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-widget-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dm-wb-divider { flex: none; width: 100%; height: 16px; margin: 0; border: 0; background: linear-gradient(var(--w-line), var(--w-line)) center / 100% 1px no-repeat; }
.dm-widget-head + .dm-widget-body > :is(.dm-wb-list.is-place, .dm-wb-list.is-media, .dm-wb-mail):first-child { margin-top: -8px; }
.dm-widget-body > .dm-wb-buttons:not(:first-child) { margin-top: 2px; }

/* 아이콘 — 위젯 이름 하나당 하나(assets/figma/widget/icon/<이름>.svg). Figma 에 아직 임시(회색) 아이콘인 것도 이름별로 갈라 둠 */
.dm-widget-icon { flex: none; width: 24px; height: 24px; background: url('assets/figma/widget/icon/default.svg') center / 24px 24px no-repeat; }
.dm-widget-icon.is-weather { background-image: url('assets/figma/widget/icon/weather.svg'); }
.dm-widget-icon.is-place { background-image: url('assets/figma/widget/icon/place.svg'); }
.dm-widget-icon.is-shopping { background-image: url('assets/figma/widget/icon/shopping.svg'); }
.dm-widget-icon.is-news { background-image: url('assets/figma/widget/icon/news.svg'); }
.dm-widget-icon.is-link { background-image: url('assets/figma/widget/icon/link.svg'); }
.dm-widget-icon.is-mail { background-image: url('assets/figma/widget/icon/mail.svg'); }
.dm-widget-icon.is-schedule { background-image: url('assets/figma/widget/icon/schedule.svg'); }
.dm-widget-icon.is-reservation { background-image: url('assets/figma/widget/icon/reservation.svg'); } /* Figma 1252:62963 */
.dm-widget-icon.is-briefing { background-image: url('assets/figma/widget/icon/briefing.svg'); }
.dm-widget-icon.is-login { background-image: url('assets/figma/widget/icon/login.svg'); }
.dm-widget-icon.is-verify { background-image: url('assets/figma/widget/icon/verify.svg'); }
.dm-widget-icon.is-payment { background-image: url('assets/figma/widget/icon/payment.svg'); } /* 결제 Mono/Badge/Invitation_solid 1078:56898 */
.dm-widget-icon.is-document { width: 22px; height: 22px; background: url('assets/figma/widget/icon/document.svg') center / 22px 22px no-repeat; }
.dm-widget-icon.is-call-request { width: 22px; height: 22px; background: url('assets/figma/widget/icon/call-request.svg') center / 22px 22px no-repeat; }
/* 전화 거는 중 — Phone Ring_solid GREEN500S #00CD3C(라이트·다크 같음), 22px (Figma 1078:58168) */
.dm-widget-icon.is-calling { width: 22px; height: 22px; background: url('assets/figma/widget/icon/calling.svg') center / 22px 22px no-repeat; }
/* 전화 거는 중: 전화기가 따르릉 울리듯 잠깐 흔들리고 쉬기를 반복(1.6초) */
.dm-wb-elapsed { color: var(--w-muted); font-variant-numeric: tabular-nums; font-weight: 400; } /* 통화 중 경과 시간 */
.dm-widget.is-in_call .dm-wb-transcript { margin-top: -4px; }   /* 통화 중도 제목 → 통화 기록 6(2026-11-06, Figma 1581:40599) */
/* 통화 기록 새 줄: 실제 높이만큼 0 에서 부드럽게 열리며(카드도 함께 늘어남) 아래에서 살짝 올라와 나타남 — 움직임은 app.js openNewLines */
.dm-wb-transcript p.is-new { overflow: hidden; }
.dm-widget.is-calling .dm-widget-icon.is-calling { transform-origin: 50% 50%; animation: dm-call-ring 1.6s ease-in-out infinite; }
@keyframes dm-call-ring {
  0%, 46%, 100% { transform: rotate(0); }
  4% { transform: rotate(-14deg); } 10% { transform: rotate(13deg); } 16% { transform: rotate(-12deg); }
  22% { transform: rotate(10deg); } 28% { transform: rotate(-7deg); } 34% { transform: rotate(4deg); } 40% { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) { .dm-widget.is-calling .dm-widget-icon.is-calling { animation: none; } }
/* 통화 종료 — Phone End_solid #767676 / 다크 #A6A6A6, 24px (Figma 1078:57423) */
.dm-widget-icon.is-call-ended { background-image: url('assets/figma/widget/icon/call-ended.svg'); }
.dm-widget.is-call_ended .dm-wb-status { gap: 6px; }
.dm-widget-icon.is-call-result { background-image: url('assets/figma/widget/icon/call-result.svg'); }
.dm-widget-icon.is-missed-call { background-image: url('assets/figma/widget/icon/missed-call.svg'); }
/* 통화 위젯 (TASK-724) — conductor 통화 카드(app/mobile/ui/src/app/chat/call.css, 54972a6)의 통화 중 표시 · 통화 기록 ·
   접기를 위젯 블록과 위젯 변수로 옮김. 값은 파생(디자이너 확인 전) — 토큰 문서 「채팅 응답 위젯」 통화 위젯 표 */
/* 통화 위젯 정리(2026-11-09, 위젯 규칙): 초록 테두리 · 말하는 쪽 막대 줄 · 마지막 줄 진하게 · 「통화 내용 보기」 접기 없음.
   통화 기록이 길면(통화 중 · 끝난 통화 모두) 7줄(줄 18 · 사이 10 → 186)까지 보이고 위젯 안에서만 스크롤, 통화 중엔 새 줄을 따라감(followTranscripts).
   지금 말하는 쪽은 기록 맨 아래 「이름 …」 — 점은 답변 기다릴 때(dm-typing-dot)와 같은 크기 · 색 · 움직임을 줄 높이(18)에 맞춤 */
.dm-wb-transcript.is-scroll > div { max-height: 186px; overflow-y: auto; overscroll-behavior: contain; }
.dm-wb-transcript p.is-speaking { align-items: center; }
.dm-wb-talk-dots { display: inline-flex; align-items: center; gap: 4px; height: 18px; }
.dm-wb-talk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dm-typing-rest, #C9CDD1); animation: dm-typing-dot 1.1s ease-in-out infinite; }
.dm-wb-talk-dots i:nth-child(2) { animation-delay: .15s; }
.dm-wb-talk-dots i:nth-child(3) { animation-delay: .3s; }
:root[data-dm-theme="dark"] .dm-wb-talk-dots { --dm-typing-rest: #545A60; --dm-typing-on: #A2A8AE; }
/* 끝난 통화 「통화 내용 보기」(TASK-724, 2026-11-09 줄 수 뺌): 위젯 회색 버튼 한 줄(44, 꽉 찬 폭), 누르기 전엔 기록을 접어 둠 */
.dm-wb-fold { display: flex; flex-direction: column; gap: 10px; }
.dm-wb-fold-toggle { width: 100%; height: 44px; padding: 0 20px; font-size: 14px; line-height: 14px; }
.dm-wb-fold > .dm-wb-transcript { display: none; }
.dm-wb-fold.is-open > .dm-wb-transcript { display: flex; }
.dm-wb-fold .dm-wb-transcript.is-scroll > div { max-height: none; overflow: visible; }   /* 직접 펼친 기록은 끝까지 다 보임(잘린 채 스크롤하지 않게) */
/* 통화 위젯의 말한 이 칸: 상대 이름(한우마을 등 네 글자)이 들어가게 56px, 넘치면 말줄임 */
.dm-widget:is(.is-in_call, .is-call_ended) .dm-wb-transcript p b { width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 끝난 통화: 「통화 내용 보기 · N줄」(secondary, 높이 44 — 버튼 블록과 같음) 아래 접힌 통화 기록 */

/* 날씨 */
.dm-wb-weather { display: flex; flex-direction: column; gap: 4px; }
.dm-wb-weather-place { display: flex; align-items: center; gap: 4px; font-size: 16px; line-height: 27px; }
.dm-wb-weather-place b { font-weight: 600; white-space: nowrap; }
.dm-wb-weather-place span { width: 12px; font-weight: 200; text-align: center; }
.dm-wb-weather-now { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; }
.dm-weather-icon { flex: none; width: 28px; height: 28px; background: url('assets/figma/widget/weather/day_01.png') center / contain no-repeat; } /* 상태 이미지는 app.js weatherIcon (Figma 324:76366, 3배 PNG) */
.dm-weather-icon.is-lg { width: 42px; height: 42px; margin-right: -2px; }
.dm-wb-temp { display: flex; align-items: flex-start; gap: 2px; margin-left: -10px; padding-left: 10px; font-size: 36px; font-weight: 600; line-height: 26px; }
.dm-wb-temp i { width: 7.5px; height: 7.5px; margin-top: -1px; background: url('assets/figma/widget/weather/degree.svg') center / contain no-repeat; }
.dm-wb-sky { font-size: 16px; font-weight: 500; line-height: 27px; white-space: nowrap; }
.dm-wb-weather-sub { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 14px; line-height: 24px; }
.dm-wb-weather-sub span { display: flex; gap: 6px; white-space: nowrap; }
.dm-wb-weather-sub b { font-weight: 500; }
.dm-wb-times { display: flex; flex-direction: column; gap: 10px; }
.dm-wb-times > div { display: flex; align-items: center; justify-content: space-between; min-height: 28px; font-size: 16px; line-height: 27px; }
.dm-wb-times b { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.dm-wb-times > div > span:first-child { color: var(--w-muted); } /* 오전 · 오후 같은 시간 글자만 gray550s(#767676, 다크 #A6A6A6) */

/* 목록 줄 — 장소(place)·뉴스·링크(media)·상품(product) */
.dm-wb-list { display: flex; flex-direction: column; gap: 8px; }
.dm-wb-item { display: flex; flex-direction: column; }
.dm-wb-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-radius: 16px; color: inherit; text-decoration: none; }
.dm-wb-row-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.dm-wb-row-text strong { overflow: hidden; font-size: 15px; font-weight: 500; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; }
.dm-wb-meta em { flex: none; color: var(--w-accent); font-style: normal; font-weight: 500; }
.dm-wb-meta span { overflow: hidden; flex: none; max-width: 100%; color: var(--w-muted); text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-meta span:last-child { flex: 1; }
.dm-wb-dot { flex: none; width: 2px; height: 2px; border-radius: 50%; background: var(--w-dot); }
/* 썸네일 테두리는 안쪽(Figma stroke inside): 그림이 46 전체를 채우고 선은 그 위 가장자리에 겹친다 */
.dm-wb-thumb { flex: none; width: 46px; height: 46px; border: 0; border-radius: 10px; outline: 1px solid var(--w-thumb-line); outline-offset: -1px; background: #fff; object-fit: cover; }
.dm-wb-chips { display: flex; gap: 6px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.dm-wb-chips::-webkit-scrollbar { display: none; }
.dm-wb-list.is-media .dm-wb-row { padding: 10px 0; }
.dm-wb-list.is-media .dm-wb-thumb { width: 70px; }
.dm-wb-list.is-product { gap: 10px; }
.dm-wb-list.is-product .dm-wb-row { gap: 10px; padding: 0; }
.dm-wb-list.is-product .dm-wb-thumb { order: -1; width: 80px; height: 80px; border-radius: 16px; }
.dm-wb-list.is-product .dm-wb-row-text small { overflow: hidden; color: var(--w-muted); font-size: 12px; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-list.is-product .dm-wb-row-text strong { font-weight: 400; }
.dm-wb-price { font-size: 16px; font-weight: 700; line-height: normal; }

/* 메일 */
.dm-wb-mail { display: flex; flex-direction: column; }
.dm-wb-mail-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; color: inherit; text-decoration: none; }
/* 목록 줄 hover·pressed — 쇼핑(product)·뉴스·링크(media)·메일 줄만. 줄 내용은 그대로 두고 좌우 8px 밖까지 반경 12 상자를 깐다.
   hover gray050a rgba(0,0,0,.04) / 다크 rgba(255,255,255,.08)(사이드바·입력창과 같은 값), pressed 한 단계 진하게 .08 / .12 */
:is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row) { position: relative; isolation: isolate; -webkit-tap-highlight-color: transparent; }
:is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row)::before { content: ''; position: absolute; z-index: -1; inset: 0 -8px; border-radius: 12px; background: transparent; transition: background-color .15s; }
.dm-wb-list.is-product a.dm-wb-row::before { inset: -6px -8px; }
@media (hover: hover) { :is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):hover::before { background: rgba(0, 24, 46, 0.04); } }
:is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):active::before { background: rgba(0, 24, 46, 0.09); }
:is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):focus-visible { outline: none; }
:is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):focus-visible::before { box-shadow: 0 0 0 2px var(--w-strong); }
@media (hover: hover) { :root[data-dm-theme="dark"] :is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):hover::before { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] :is(.dm-wb-list:is(.is-media, .is-product) a.dm-wb-row, a.dm-wb-mail-row):active::before { background: rgba(243, 245, 247, 0.12); }
.dm-wb-mail-head { display: flex; align-items: flex-start; gap: 4px; }
.dm-wb-mail-head strong { flex: 1; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-mail-head time { flex: none; color: var(--w-muted); font-size: 12px; line-height: 14px; }
.dm-wb-mail-subject { overflow: hidden; font-size: 15px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-mail-preview { overflow: hidden; margin-top: 2px !important; color: var(--w-muted); font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }

/* 일정 */
.dm-wb-schedule { display: flex; flex-direction: column; gap: 14px; }
/* 일정 위젯만 Figma 에서 안쪽 폭이 296(좌우 13) — 브리핑 안 일정은 290 그대로 */
.dm-widget.is-schedule { padding-inline: 13px; }
.dm-wb-day { display: flex; flex-direction: column; gap: 8px; }
.dm-wb-day-head { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.dm-wb-day-head strong { font-size: 16px; font-weight: 600; line-height: normal; }
.dm-wb-calendar { flex: none; width: 20px; height: 20px; background: url('assets/figma/widget/calendar.svg') center / 20px 20px no-repeat; }
.dm-wb-events { display: flex; flex-direction: column; }
.dm-wb-event { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.dm-wb-bar { flex: none; align-self: stretch; width: 3px; border-radius: 999px; background: var(--w-bar); }
.dm-wb-event .dm-wb-bar { align-self: center; height: 42px; }
.dm-wb-event-time { display: flex; flex: none; flex-direction: column; justify-content: flex-start; gap: 4px; width: 46px; min-height: 40px; position: relative; top: 1px; font-size: 13px; line-height: 18px; } /* 종일도 위에서부터: 제목 줄과 같은 높이 (Figma 558:34588) */
.dm-wb-event-time b { font-weight: 600; }
.dm-wb-event-time span { color: var(--w-muted); }
.dm-wb-event-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; margin-left: -6px; }
.dm-wb-event-text strong { overflow: hidden; font-size: 15px; font-weight: 500; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-event-text span { overflow: hidden; color: var(--w-muted); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }

/* 문서 */
.dm-wb-file { display: flex; flex-direction: column; gap: 10px; }
.dm-wb-file-row { display: flex; align-items: center; gap: 10px; padding: 0 2px; color: inherit; text-decoration: none; }
/* 파일 종류 아이콘: 채팅 파일 말풍선의 .file-tile(pdf·ppt·docs·sheet·etc)을 그대로 쓰고, 위젯 안에서는 타일만 GRAY000S (Figma 558:34768) */
body .dm-wb-file-row .file-tile { background-color: rgba(0, 24, 46, 0.03); }
:root[data-dm-theme="dark"] body .dm-wb-file-row .file-tile { background-color: rgba(243, 245, 247, 0.06); }
.dm-wb-file-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dm-wb-file-text strong { overflow: hidden; font-size: 15px; font-weight: 500; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-file-text > span { display: flex; align-items: center; gap: 6px; color: var(--w-ink-3); font-size: 13px; line-height: 21px; }
.dm-wb-preview { overflow: hidden; height: 161px; border-radius: 16px; background: #131A20; }
.dm-wb-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 안내(아이콘 위 · 문단) · 대화록 */
.dm-wb-notice { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0; }   /* 좌우 2 없앰(2026-11-06) — 제목 · 설명 · 다른 블록 글 왼쪽 끝을 하나로 */
.dm-wb-notice p { font-size: 15px; font-weight: 500; line-height: 1.6; }
.dm-widget.is-summary .dm-wb-notice p { word-break: keep-all; overflow-wrap: break-word; }
.dm-wb-notice p b, .dm-wb-notice.is-strong p { font-weight: 700; }
.dm-widget.is-call_result { padding-bottom: 10px; }
/* 정리 목록 — Figma 1111:55631: 3px 막대 + 10, 위아래 10(안쪽 2), 줄 사이 12. 항목명 46px 칸 13 SemiBold #595959 · 4 · 내용 13 #767676 오른쪽 정렬, 행간 18 */
.dm-wb-details { display: flex; gap: 10px; padding: 10px 0; }
.dm-wb-details dl { display: grid; flex: 1; grid-template-columns: 46px minmax(0, 1fr); gap: 12px 4px; min-width: 0; margin: 0; padding: 2px 0; font-size: 13px; line-height: 18px; }
.dm-wb-details dt { color: var(--w-ink-3); font-weight: 600; white-space: nowrap; }
.dm-wb-details dd { margin: 0; color: var(--w-muted); text-align: right; word-break: keep-all; overflow-wrap: break-word; }
.dm-wb-details dd b { color: var(--w-ink-3); font-weight: 600; }
/* 정리 목록으로 끝나는 카드는 통화 결과처럼 아래 여백 10 */
.dm-widget:has(> .dm-widget-body > .dm-wb-details:last-child) { padding-bottom: 10px; }
.dm-wb-transcript { display: flex; gap: 10px; padding: 10px 0; }
.dm-wb-transcript > div { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 2px 0; min-width: 0; }
.dm-wb-transcript p { display: flex; gap: 4px; font-size: 13px; line-height: 18px; }
.dm-wb-transcript p b { flex: none; width: 46px; color: var(--w-ink-3); font-weight: 600; }
.dm-wb-transcript p span { color: var(--w-muted); }

/* 상태 한 줄(부재중 통화) — 카드가 한 줄일 땐 위아래 10 */
.dm-widget.is-compact { padding: 10px 16px; }
.dm-wb-status { display: flex; align-items: center; gap: 8px; min-height: 40px; } /* 버튼 없는 상태 줄(통화 종료)도 부재중 카드와 같은 높이 68 */
.dm-wb-status strong { font-size: 16px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.dm-wb-status > span:not(.dm-widget-icon) { flex: 1; margin-left: -2px; overflow: hidden; color: var(--w-muted); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-status .dm-widget-btn { width: 80px; padding: 13.5px 0; font-size: 13px; line-height: 13px; }

/* 버튼 — 칩(목록 아래 · 4% 채움), 보조(gray050s), 주(gray800s), 제출(입력 위젯, 꺼짐 gray400s) */
.dm-widget-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 999px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .15s, opacity .15s; }
.dm-widget-btn.is-chip { gap: 6px; padding: 9px 15px; background: var(--w-fill); color: var(--w-ink-2); font-size: 14px; line-height: 18px; white-space: nowrap; }
.dm-wb-buttons { display: flex; gap: 6px; } /* 버튼 두 개 이상 나란히: 사이 6px (Figma 558:34787) */
.dm-wb-buttons .dm-widget-btn { flex: 1; padding: 13px 20px; font-size: 14px; line-height: 14px; }
.dm-widget-btn.is-secondary { background: var(--w-solid); color: var(--w-ink-2); }
.dm-wb-buttons.is-more .dm-widget-btn.is-secondary { color: var(--w-ink); }
.dm-widget-btn.is-primary, .dm-widget-btn.is-submit { background: var(--w-strong); color: var(--w-on-strong); }
.dm-widget-btn.is-submit { width: 100%; height: 44px; padding: 0 20px; font-size: 14px; line-height: 14px; }
.dm-widget-btn.is-submit:disabled { background: var(--w-off); cursor: default; }
.dm-widget.is-scene-form { max-height: max(240px, calc(100dvh - var(--composer-bar-height, 80px) - 112px)); }
.dm-widget.is-scene-form > .dm-widget-head { flex: none; }
.dm-widget.is-scene-form > .dm-widget-body { flex: 1; min-height: 0; }
.dm-widget.is-scene-form .dm-wb-helper, .dm-widget.is-scene-form .is-submit { flex: none; }
.dm-scene-fields { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 16px; max-height: min(50dvh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.dm-scene-fields > * { flex: none; }
.dm-scene-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dm-scene-fieldset legend, .dm-scene-select > span { margin-bottom: 8px; color: var(--w-ink); font-size: 14px; }
.dm-scene-fieldset .slots { gap: 8px; padding: 0; border: 0; }
.dm-scene-fieldset .slot { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 14px; background: var(--w-solid); color: var(--w-ink); font-size: 14px; }
.dm-scene-fieldset .slot:has(input:disabled) { opacity: .5; }
.dm-scene-fieldset .dm-wb-buttons { flex-wrap: wrap; }
.dm-widget.is-scene-form .dm-scene-fieldset .dm-widget-btn[aria-pressed="true"][data-scene-choice] { background: var(--w-strong); color: var(--w-on-strong); }
.dm-scene-select { display: flex; flex-direction: column; min-width: 0; }
.dm-scene-select select { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--w-solid); color: var(--w-ink); font: inherit; }
@media (hover: hover) { .dm-widget-btn.is-chip:hover { background: rgba(0, 24, 46, 0.09); } .dm-widget-btn.is-secondary:hover { background: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), var(--w-solid); } .dm-widget-btn:is(.is-primary, .is-submit:not(:disabled)):hover { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); } }
.dm-widget-btn.is-chip:active { background: rgba(0, 24, 46, 0.09); }
.dm-widget-btn.is-secondary:active { background: #ebebeb; }
.dm-widget-btn:is(.is-primary, .is-submit:not(:disabled)):active { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); }
.dm-wb-text { font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
/* 설명 글(승인 카드 등): 15 행간 1.6 #595959, 제목(굵은 notice) 바로 아래 4 */
.dm-wb-text.is-muted { color: var(--w-ink-3); font-size: 15px; }
.dm-widget pre.review { max-height: 180px; margin: 0; padding: 10px 12px; overflow: auto; border-radius: 12px; background: var(--w-fill); color: var(--w-ink-2); font: inherit; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-widget .approval-origin { margin: 0; }
.dm-wb-text.is-muted b { color: var(--w-ink); font-weight: 600; }
/* 제목 · 설명 · 버튼 위젯의 제목은 다른 위젯 머리(.dm-widget-head strong 16 · 600)와 같은 크기 */
.dm-wb-notice.is-strong p { font-size: 16px; font-weight: 600; line-height: 24px; }
.dm-wb-notice.is-strong + .dm-wb-text.is-muted { margin-top: -6px; }
.dm-widget.is-approval .dm-wb-notice p, .dm-widget.is-reservation .dm-wb-notice p, .dm-widget.is-approval .dm-wb-text, .dm-widget.is-reservation .dm-wb-text { word-break: keep-all; overflow-wrap: break-word; }

/* 브리핑 (Figma 558:33006): 머리 「브리핑」 하나 + 위젯 몸통들을 구분선으로 잇는다. 테두리는 gray050a, 일정 날짜 아이콘 24 · 날짜와 목록 사이 10 */
.dm-widget.is-briefing { border-color: var(--w-fill); }
.dm-widget.is-briefing .dm-wb-day { gap: 10px; }
.dm-widget.is-briefing .dm-wb-calendar { width: 24px; height: 24px; background-size: 24px 24px; }

/* 입력 위젯(텍스트·버튼) — Figma 801:42631. 테두리 gray050a, 머리 아래 16, 묶음(입력칸들·도움말·링크·버튼) 사이 20, 입력칸끼리 8 */
.dm-widget.is-form { gap: 16px; border-color: var(--w-fill); }
.dm-widget.is-form > .dm-widget-body { gap: 20px; }
.dm-widget.is-form > .dm-widget-body > .dm-wb-field + .dm-wb-field { margin-top: -12px; }
.dm-widget.is-form > .dm-widget-body > .dm-wb-buttons:not(:first-child) { margin-top: 0; }
.dm-widget.is-form .dm-wb-buttons .dm-widget-btn { height: 44px; padding: 0 20px; }
.dm-wb-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 50px; padding: 0 12px; border-radius: 14px; background: var(--w-solid); cursor: text; }
.dm-wb-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--w-ink); font: inherit; font-size: 15px; line-height: normal; }
.dm-wb-field input::placeholder { color: var(--w-hint); font-size: 14px; opacity: 1; }
.dm-wb-field-label { display: none; color: var(--w-hint); font-size: 10px; line-height: normal; }
.dm-wb-field:not(.is-code):has(input:not(:placeholder-shown)) .dm-wb-field-label { display: block; }
.dm-wb-field.is-code .dm-wb-field-label { display: none; }
.dm-wb-field.is-code input { font-size: 14px; }
.dm-wb-field:has(.dm-wb-eye, .dm-wb-timer) { padding-right: 40px; }
.dm-wb-eye { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; padding: 0; border: 0; background: url('assets/figma/widget/form/eye.svg') center / 16px 16px no-repeat; transform: translateY(-50%); cursor: pointer; }
/* 눈 아이콘 GRAY500S #949494 / 다크 #828282 (InputField 751:38500·751:38577): 비어 있거나 보이는 중이면 눈, 채워서 가린 상태면 눈 꺼짐 */
.dm-wb-field:has(input[type="password"]:not(:placeholder-shown)) .dm-wb-eye { background-image: url('assets/figma/widget/form/eye-off.svg'); }
.dm-wb-timer { position: absolute; top: 50%; right: 12px; color: var(--w-accent); font-size: 14px; line-height: normal; transform: translateY(-50%); }
.dm-wb-helper { color: var(--w-hint); font-size: 14px; line-height: 17px; }
/* 접어 두는 긴 글(목표형 계획 글, TASK-835): 기존 글자 토큰만 쓴다 */
.dm-wb-fold summary { color: var(--w-ink-3); font-size: 15px; cursor: pointer; }
.dm-wb-fold[open] summary { margin-bottom: 6px; }
/* 가운데 작은 안내(동의 문구 등) — 바로 아래 버튼과 8px */
.dm-wb-helper.is-center { font-size: 12px; line-height: 16px; text-align: center; }
.dm-widget.is-form > .dm-widget-body > .dm-wb-helper.is-center + .is-submit { margin-top: -12px; }
/* 보안 번호 칸: 입력칸과 같은 #F5F5F5·반경 14, 높이 50, 칸 사이 6(버튼 나란히 규칙과 같음). 채운 칸은 8px 점, 지금 칸은 1px 테두리 */
.dm-wb-pin { position: relative; display: flex; gap: 6px; }
.dm-wb-pin input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; opacity: 0; font-size: 16px; cursor: text; }
.dm-wb-pin-cell { position: relative; flex: 1; height: 50px; border: 1px solid transparent; border-radius: 14px; background: var(--w-solid); transition: border-color .15s; }
.dm-wb-pin-cell.is-filled::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--w-ink); transform: translate(-50%, -50%); }
.dm-wb-pin:focus-within .dm-wb-pin-cell.is-current { border-color: var(--w-strong); }
.dm-wb-code { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dm-wb-code-label { padding-right: 54px; color: var(--w-hint); font-size: 13px; line-height: 1.5; }
.dm-wb-code > .dm-wb-timer { top: 0; right: 0; line-height: 1.5; transform: none; font-variant-numeric: tabular-nums; }
.dm-wb-code-box { position: relative; display: flex; gap: 6px; min-width: 0; }
.dm-wb-code-box input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.dm-wb-code-cell { display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; height: 50px; border: 1px solid transparent; border-radius: 14px; background: var(--w-solid); color: var(--w-ink); font-size: 16px; }
.dm-wb-code-box:focus-within .dm-wb-code-cell.is-current { border-color: var(--w-strong); }
[data-code-approval]:has([data-code-expired]) .dm-wb-code-cell, [data-code-approval]:has([data-code-expired]) .dm-wb-field { opacity: .5; cursor: default; }
.dm-wb-field.is-code:has(.dm-wb-timer) { padding-right: 64px; }
/* 금액: 14px 줄(이름 #767676 · 금액 #191919 오른쪽) 사이 6, 합계 위 구분선 + 12, 합계 15 SemiBold · 20 Bold */
.dm-wb-amounts { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; font-size: 14px; line-height: 21px; }
.dm-wb-amounts > div { display: flex; justify-content: space-between; gap: 12px; }
.dm-wb-amounts span { color: var(--w-muted); }
.dm-wb-amounts b { color: var(--w-ink); font-weight: 400; text-align: right; white-space: nowrap; }
.dm-wb-amounts .is-total { align-items: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--w-line); }
.dm-wb-amounts .is-total span { color: var(--w-ink); font-size: 15px; font-weight: 600; }
.dm-wb-amounts .is-total b { font-size: 20px; font-weight: 700; line-height: 28px; }
.dm-wb-links { display: flex; align-items: center; justify-content: center; gap: 16px; }
.dm-wb-links :is(a, button) { padding: 0; border: 0; background: none; color: var(--w-strong); font: inherit; font-size: 14px; line-height: 17px; text-decoration: none; cursor: pointer; }
.dm-wb-links i { width: 1px; height: 10px; background: #ccc; }
.dm-wb-choices { display: flex; flex-direction: column; gap: 16px; }
.dm-wb-choices-head { display: flex; flex-direction: column; gap: 8px; }
.dm-wb-choices-head strong { font-size: 16px; font-weight: 600; line-height: normal; }
.dm-wb-choices-head p { color: var(--w-muted); font-size: 14px; line-height: 22px; }
.dm-question-step { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--w-muted); font-size: 14px; overflow-wrap: anywhere; }
.dm-question-step .dm-widget-btn { min-height: 44px; }
.dm-question-custom { width: 100%; }
.dm-question-mark { flex: none; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 4px; }
[data-question-selection="single"] .dm-question-mark { border-radius: 50%; }
[data-question-selection="single"] [aria-checked="true"] .dm-question-mark { background: currentColor; box-shadow: inset 0 0 0 4px var(--w-solid); }
/* 여러 개 고르기 체크(2026-11-09, Figma Mono/Badge Check01_line 1641:52639 · Check01_solid 60:19515) — 16 원형 체크(2026-11-09 사용자 요청으로 20 → 16),
   안 고름은 선(회색 --w-off), 고름은 채움(--w-ink). 모양은 mask 로 받아 색은 위젯 색 토큰을 따름(다크 자동) */
[data-question-selection="multiple"] .dm-question-mark { width: 16px; height: 16px; border: 0; border-radius: 0; background: var(--w-off); -webkit-mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; }
[data-question-selection="multiple"] [aria-checked="true"] .dm-question-mark { background: var(--w-ink); -webkit-mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); }
[data-question-selection] .dm-wb-option[aria-checked]::after { display: none; }
[data-question-selection] .dm-wb-option { min-height: 46px; height: auto; padding-block: 12px; white-space: normal; }
[data-question-selection] .dm-wb-option > span { overflow: visible; overflow-wrap: anywhere; }
[data-question-selection] .is-category > i { flex: none; font-style: normal; }
.dm-wb-options { display: flex; flex-direction: column; gap: 6px; }
.dm-wb-option { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 12px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: var(--w-solid); color: var(--w-ink); font: inherit; font-size: 15px; line-height: normal; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: opacity .15s, border-color .15s; }
.dm-wb-choices.has-choice .dm-wb-option:not([aria-selected="true"]) { opacity: .4; }   /* 시안 70% 보다 옅게 — 고른 답과 잘 구분되게 */
.dm-wb-option > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 위치 질문 「현재 위치 사용」(2026-11-09): 고르기 답 한 줄과 같은 모양 — 아이콘은 고르기 동그라미 자리(18)에 고정 — 글 시작점이 고르기 답과 같게 */
.dm-wb-choices.is-location .dm-wb-option > .ui-icon { flex: none; width: 18px; height: 18px; }
.dm-wb-option[aria-selected="true"] { border-color: rgba(0, 0, 0, .12); }   /* 고른 답 테두리 1px gray150a(라이트 검정 12% · 다크 흰 16%) — 2026-11-05 사용자 지정(전 #2E2E2E) */
:root[data-dm-theme="dark"] .dm-wb-option[aria-selected="true"] { border-color: rgba(255, 255, 255, .16); }
.dm-wb-option[aria-selected="true"]::after { content: ''; flex: none; width: 16px; height: 16px; margin-left: auto; background: url('assets/figma/widget/form/check.svg') center / 16px 16px no-repeat; }

/* 말풍선과 위젯 사이: 같은 화자 8 — 말풍선 묶음(.message-stack)은 이미 사이 8 이라 더하지 않고, 묶음 밖에서만 8 */
.messages .message :not(.message-stack) > .dm-widget + *, .messages .message :not(.message-stack) > * + .dm-widget { margin-top: 8px; }

/* 다크 — 토큰 다크 값(일부는 Figma 다크 시안이 없어 토큰 이름에서 가져옴) */
:root[data-dm-theme="dark"] :is(.dm-widget, .approval-card) { --w-ink: #F3F5F7; --w-ink-2: #DAE0E6; --w-ink-3: #C9CDD1; --w-muted: #A2A8AE; --w-hint: #7D8389; --w-accent: #49a8f8; --w-line: rgba(255, 255, 255, .08); --w-fill: rgba(243, 245, 247, 0.08); --w-solid: rgba(243, 245, 247, 0.08); --w-strong: #EDF0F3; --w-on-strong: #282828; --w-off: #777D83; --w-thumb-line: rgba(255, 255, 255, .1); --w-bar: rgba(243, 245, 247, 0.17); --w-dot: #545A60; }
:root[data-dm-theme="dark"] .dm-widget { background: #080808; }
:root[data-dm-theme="dark"] .dm-widget.is-in_call { border-color: rgba(0, 205, 60, .22); }   /* TASK-724 통화 중 테두리, 다크 */
:root[data-dm-theme="dark"] .dm-wb-temp i { background-image: url('assets/figma/widget/weather/degree-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-weather { background-image: url('assets/figma/widget/icon/weather-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-place, :root[data-dm-theme="dark"] .dm-widget-icon.is-default { background-image: url('assets/figma/widget/icon/place-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-shopping { background-image: url('assets/figma/widget/icon/shopping-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-news { background-image: url('assets/figma/widget/icon/news-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-link { background-image: url('assets/figma/widget/icon/link-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-mail { background-image: url('assets/figma/widget/icon/mail-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-schedule { background-image: url('assets/figma/widget/icon/schedule-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-reservation { background-image: url('assets/figma/widget/icon/reservation-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-briefing { background-image: url('assets/figma/widget/icon/briefing-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-login { background-image: url('assets/figma/widget/icon/login-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-verify { background-image: url('assets/figma/widget/icon/verify-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-payment { background-image: url('assets/figma/widget/icon/payment-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-call-request { background-image: url('assets/figma/widget/icon/call-request-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-call-ended { background-image: url('assets/figma/widget/icon/call-ended-dark.svg'); }
:root[data-dm-theme="dark"] .dm-widget-icon.is-call-result { background-image: url('assets/figma/widget/icon/call-result-dark.svg'); }
:root[data-dm-theme="dark"] .dm-wb-eye { background-image: url('assets/figma/widget/form/eye-dark.svg'); }
:root[data-dm-theme="dark"] .dm-wb-field:has(input[type="password"]:not(:placeholder-shown)) .dm-wb-eye { background-image: url('assets/figma/widget/form/eye-off-dark.svg'); }
:root[data-dm-theme="dark"] .dm-wb-option[aria-selected="true"]::after { background-image: url('assets/figma/widget/form/check-dark.svg'); }
:root[data-dm-theme="dark"] .dm-wb-links i { background: #545A60; }
:root[data-dm-theme="dark"] .dm-wb-thumb { background: #080808; }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-widget-btn.is-secondary:hover { background: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)), var(--w-solid); } :root[data-dm-theme="dark"] .dm-widget-btn:is(.is-primary, .is-submit:not(:disabled)):hover { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); } }
/* 다크 누름 — 라이트 누름색(#EBEBEB · #424242)이 다크에 그대로 나오던 것 막기. Figma 646:12130 다크: 거절 #1A1A1A/#DFDFDF · 승인 #EEEEEE/#282828 */
:root[data-dm-theme="dark"] .dm-widget-btn.is-secondary:active { background: #242424; }
:root[data-dm-theme="dark"] .dm-widget-btn:is(.is-primary, .is-submit:not(:disabled)):active { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); }

/* ── 답변 쓰는 중 「…」 말풍선과 메시지 오고 가는 움직임 (DP-003) ─────────────────────────────
   「…」: 답변 말풍선과 같은 상자(여백 12 16 · 행간 25.6 → 높이 49.6, 반경 24, #F7F7F7 / 다크 #151515).
   점 7px · 사이 5px, 쉬는 색 #CCCCCC / 다크 #5D5D5D. 한 점씩 0.15초 차이로 2px 떠오르며 #767676 / 다크 #A6A6A6 로 진해지고, 1.1초마다 되풀이(디자이너 참고 영상) */
body.figma-chat-page .messages .bubble.assistant.dm-typing-bubble { display: flex; align-items: center; gap: 5px; height: 49.6px; padding: 0 16px; }
.dm-typing-bubble i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #C9CDD1; animation: dm-typing-dot 1.1s ease-in-out infinite; }
.dm-typing-bubble i:nth-child(2) { animation-delay: .15s; }
.dm-typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-typing-dot {
  0%, 45%, 100% { transform: translateY(0); background: var(--dm-typing-rest, #C9CDD1); }
  20% { transform: translateY(-2px); background: var(--dm-typing-on, #72777C); }
}
:root[data-dm-theme="dark"] .dm-typing-bubble i { --dm-typing-rest: #545A60; --dm-typing-on: #A2A8AE; background: #545A60; }

/* 오고 가는 메시지 — iMessage·카카오톡처럼 가볍게: 내 말풍선은 입력창 쪽(오른쪽 아래)에서, 답변과 「…」은 왼쪽 아래에서 살짝 커지며 올라온다.
   살짝 넘쳤다 자리 잡는 곡선(.34,1.36,.64,1)이라 쫀득하게 느껴지되, 넘침은 2~3% 안쪽 */
body.figma-chat-page .messages > .user-message.is-arriving { transform-origin: 100% 100%; animation: dm-arrive-sent .34s cubic-bezier(.34, 1.36, .64, 1) both; }
body.figma-chat-page .messages > .assistant-message.is-arriving { transform-origin: 0 100%; animation: dm-arrive-reply .3s cubic-bezier(.34, 1.3, .64, 1) both; }
body.figma-chat-page .messages > .dm-typing.is-arriving { transform-origin: 0 100%; animation: dm-arrive-typing .28s cubic-bezier(.34, 1.5, .64, 1) .2s both; }   /* 내 말풍선이 자리 잡은 뒤 나타남 */
@keyframes dm-arrive-sent { from { opacity: 0; transform: translateY(14px) scale(.92); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes dm-arrive-reply { from { opacity: 0; transform: translateY(8px) scale(.96); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes dm-arrive-typing { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.figma-chat-page .messages > .is-arriving { animation: none !important; }
  .dm-typing-bubble i { animation-duration: 2.2s; }
}

/* ── 맨 아래로 버튼 — Figma 501:177003. 위 GNB 버튼과 같은 44 유리 원형(흰 70% · 흐림 5 · 1px 흰 테두리 · 그림자), 입력창 위 16px 가운데.
   아이콘 Mono/System Icon/Arrow Down_line #2E2E2E / 다크 #F2F2F2. 위로 160px 넘게 올라가 있을 때만 살짝 떠오르며 나타난다 ── */
body.figma-chat-page .composer-bar { --scroll-down-gap: 6px; }   /* 모바일: 입력바 위 여백 10 → 입력창 위 16 */
@media (min-width: 701px) { .danmuji-shell .main-chat .composer-bar { --scroll-down-gap: 16px; } }   /* PC: 입력바 위 여백 0 → 입력창 위 16 */
.dm-scroll-down { position: absolute; z-index: 1; bottom: calc(100% + var(--scroll-down-gap, 16px)); left: 50%; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 32px; background: rgba(255, 255, 255, .7) url('assets/figma/composer/scroll-down.svg') center / 24px 24px no-repeat; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 15px rgba(0, 0, 0, .08); cursor: pointer; opacity: 0; pointer-events: none !important; transform: translate(-50%, 8px) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.34, 1.4, .64, 1); }
.dm-scroll-down.is-shown { opacity: 1; pointer-events: auto !important; transform: translate(-50%, 0); }
@media (hover: hover) { .dm-scroll-down:hover { background-color: rgba(243, 245, 247, .85); } }
.dm-scroll-down:active { transform: translate(-50%, 0) scale(.94); }
:root[data-dm-theme="dark"] .dm-scroll-down { background-color: rgba(32, 32, 32, .7); background-image: url('assets/figma/composer/scroll-down-dark.svg'); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 15px rgba(0, 0, 0, .08); }
@media (prefers-reduced-motion: reduce) { .dm-scroll-down { transition: opacity .2s; } }

/* ── 활동 (DP-003) — Figma 1089:54487 · 1089:53186 · 1035:37178 · 933:40991 / 비었을 때 1111:55854 · 888:29748 · 888:29979 · 888:29916 ──
   모바일: 위 64(뒤로 44 유리 버튼 + 가운데 제목 17), 탭 줄 56(회색 4% 알약 안 흰 칩), 목록 위 10.
   항목: 여백 14 16, 제목 16 SemiBold · ··· 24, 아래 5 에 메타 14 #595959(2px 점·간격 6), 승인 버튼은 14 아래 높이 40 알약 둘(사이 8). 항목 사이 13px 칸 가운데 1px 선(좌우 16 안쪽) */
body.figma-activity-page .danmuji-shell .main-head, body.figma-activity-page .mobile-nav { display: none; }
body.figma-activity-page .danmuji-shell .main-content { padding: 0; }
body.figma-activity-page, body.figma-activity-page .shell, body.figma-activity-page .danmuji-shell .main { background: #fff; }
.dm-activity { --act-ink: #131A20; --act-sub: #545A60; --act-muted: #72777C; --act-line: rgba(0, 0, 0, .04); --act-fill: rgba(0, 24, 46, 0.04); --act-chip: #fff; --act-alert: #ff472b; --act-strong: #282F35; --act-on-strong: #fff;
  min-height: 100dvh; padding-bottom: calc(16px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))); background: #fff; color: var(--act-ink); }
.dm-activity :where(button) { font-family: inherit; cursor: pointer; }
.dm-act-top { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 16px; background: #fff; }
.dm-act-top h1 { margin: 0; font-size: 17px; font-weight: 600; line-height: normal; }
.dm-act-back { position: absolute; top: 10px; left: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 32px; background: rgba(255, 255, 255, .7) url('assets/figma/activity/back.svg') center / 24px 24px no-repeat; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
.dm-act-tabbar { position: sticky; z-index: 3; top: 64px; padding: 6px 16px; background: #fff; }
.dm-act-tabs { position: relative; display: flex; padding: 4px; border-radius: 100px; background: var(--act-fill); }
/* 고른 칩 = 미끄러지는 흰 알약 하나(칸 수·순서는 --tab-count · --tab-index). 살짝 넘쳤다 자리 잡는 0.26초 */
.dm-act-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--tab-count, 4)); border-radius: 100px; background: var(--act-chip); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transform: translateX(calc(100% * var(--tab-index, 0))); transition: transform .26s cubic-bezier(.34, 1.2, .64, 1); }
@media (prefers-reduced-motion: reduce) { .dm-act-pill { transition: none; } }
.dm-act-tabs button { position: relative; flex: 1 0 0; min-width: 0; height: 36px; padding: 0 17px; border: 0; border-radius: 100px; background: none; color: var(--act-sub); font-size: 14px; font-weight: 600; line-height: normal; white-space: nowrap; transition: color .2s; }
.dm-act-tabs button[aria-selected="true"] { color: var(--act-ink); }
@media (hover: hover) { .dm-act-tabs button[aria-selected="false"]:hover { color: var(--act-ink); } }
.dm-act-list { margin: 0; padding: 10px 0 0; list-style: none; }
.dm-act-item { position: relative; display: flex; flex-direction: column; padding: 14px 16px; }
.dm-act-item + .dm-act-item { margin-top: 13px; }
.dm-act-item + .dm-act-item::before { content: ''; position: absolute; top: -7px; right: 16px; left: 16px; height: 1px; background: var(--act-line); }
.dm-act-head { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.dm-act-head strong { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.dm-act-head strong.is-alert { color: var(--act-alert); }
.dm-act-more { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: url('assets/figma/activity/more.svg') center / 24px 24px no-repeat; transition: background-color .15s; }
@media (hover: hover) { .dm-act-more:hover { background-color: var(--act-fill); } }
.dm-act-meta { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; color: var(--act-sub); font-size: 14px; line-height: 17px; white-space: nowrap; }
.dm-act-meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dm-act-notice { margin: 5px 0 0; color: var(--act-sub); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-act-dot { flex: none; width: 2px; height: 2px; border-radius: 50%; background: #AEB3B8; }
.dm-act-buttons { display: flex; gap: 8px; margin-top: 14px; }
.dm-act-buttons:empty { display: none; }
.dm-act-buttons a { display: inline-flex; align-items: center; text-decoration: none; }
.dm-act-buttons button, .dm-act-buttons a { height: 40px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--act-fill); color: var(--act-ink); font-size: 14px; font-weight: 500; line-height: 14px; transition: background-color .15s, opacity .15s; }
.dm-act-buttons button.is-primary { background: var(--act-strong); color: var(--act-on-strong); }
.dm-act-buttons button:disabled { opacity: .5; cursor: default; }
@media (hover: hover) { .dm-act-buttons a:hover { background: rgba(0, 24, 46, 0.09); } .dm-act-buttons button:not(.is-primary):hover { background: rgba(0, 24, 46, 0.09); } .dm-act-buttons button.is-primary:hover { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); } }
/* ··· 메뉴 — Figma 1119:60802(대화 보기 · 삭제) / 예약 1119:60878(대화 보기 · 일시 정지 · 다시 시작 · 삭제).
   흰색(다크 #2E2E2E), 반경 16, 그림자 0 0 40 10%, 폭 160~250. 항목: 여백 12 16, 24 아이콘 + 12 + 16 Medium 행간 1.5, 사이 0.5px 8% 선. 삭제는 #F4551E(다크 #FF7849) */
.dm-act-menu { position: absolute; z-index: 4; top: 40px; right: 12px; display: flex; flex-direction: column; width: 200px; min-width: 160px; max-width: 250px; overflow: hidden; border-radius: 16px; background: var(--act-menu, #fff); box-shadow: 0 0 40px rgba(0, 0, 0, .1); }
.dm-act-menu button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 0; background: none; color: var(--act-ink); font-size: 16px; font-weight: 500; line-height: 1.5; text-align: left; white-space: nowrap; transition: background-color .15s; }
.dm-act-menu button + button { border-top: .5px solid var(--act-menu-line, rgba(0, 0, 0, .08)); }   /* 항목 48 + 사이 0.5 → 4개일 때 193.5 */
.dm-act-menu button[class*="is-"]::before { content: ''; flex: none; width: 24px; height: 24px; background-position: center; background-size: 24px 24px; background-repeat: no-repeat; }
.dm-act-menu .is-chat::before { background-image: url('assets/figma/activity/menu-chat.svg'); }
.dm-act-menu .is-pause::before { background-image: url('assets/figma/activity/menu-pause.svg'); }
.dm-act-menu .is-play::before { background-image: url('assets/figma/activity/menu-play.svg'); }
.dm-act-menu .is-trash::before { background-image: url('assets/figma/activity/menu-trash.svg'); }
.dm-act-menu .is-trash, .dm-act-menu .is-danger { color: var(--act-danger, #f4551e); }
@media (hover: hover) { .dm-act-menu button:hover { background: var(--act-fill); } }
.dm-act-menu button:active { background: var(--act-fill); }
:root[data-dm-theme="dark"] .dm-activity { --act-menu: #2E2E2E; --act-menu-line: rgba(255, 255, 255, .12); --act-danger: #ff7849; }
:root[data-dm-theme="dark"] .dm-act-menu .is-chat::before { background-image: url('assets/figma/activity/menu-chat-dark.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .is-pause::before { background-image: url('assets/figma/activity/menu-pause-dark.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .is-play::before { background-image: url('assets/figma/activity/menu-play-dark.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .is-trash::before { background-image: url('assets/figma/activity/menu-trash-dark.svg'); }
.dm-act-item.is-leaving { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .2s; }
/* 비었을 때: 목록 자리 위 200 에 제목 19 SemiBold #2E2E2E · 10 · 설명 15 #767676 · 24 · 검정 알약 버튼(90%) 15 Medium */
.dm-act-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 200px 52px 16px; text-align: center; }
.dm-act-empty h2 { margin: 0; color: var(--act-strong); font-size: 19px; font-weight: 600; line-height: 1.56; }
.dm-act-empty p { margin: 0; color: var(--act-muted); font-size: 15px; line-height: 1.54; word-break: keep-all; }
.dm-act-empty button { margin-top: 14px; padding: 12px 20px; border: 0; border-radius: 999px; background: #000; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.54; opacity: .9; }
@media (hover: hover) { .dm-act-empty button:hover { opacity: 1; } }
/* PC — 사이드바 옆 본문 가운데 700px 칸(채팅과 같은 너비). 뒤로 버튼 대신 왼쪽 큰 제목, 탭은 칸 너비 그대로, 비었을 때는 위 160 */
@media (min-width: 701px) {
  .dm-activity { max-width: 700px; margin: 0 auto; padding-top: 40px; }
  .dm-act-top { justify-content: flex-start; height: auto; padding: 0 16px 20px; }
  .dm-act-top h1 { font-size: 24px; font-weight: 700; }
  /* PC 뒤로 — 모바일 GNB 의 유리 뒤로 버튼(44, 그라데이션 테두리) 그대로, 큰 제목 왼쪽에 사이 12 */
  .dm-act-top { align-items: center; gap: 12px; }
  .dm-act-back { position: static; flex: none; }
  /* 사이드바에서 바로 들어가는 최상위 화면(활동 · 앱 및 서비스 연결 · 설정 · 프로필로 연 개인 정보)은 뒤로 버튼 없음. 설정에서 들어간 상세 · 오류 화면은 그대로 */
  .dm-activity:is(.dm-tasks, .dm-connections, .dm-library, .dm-settings, .dm-set-detail.is-side-root) > .dm-act-top .dm-act-back { display: none; }   /* PC: 사이드 메뉴 화면은 뒤로 없음(보관함 포함, 2026-11-11) */
  .dm-act-tabbar { top: 0; }
  .dm-act-empty { padding-top: 160px; }
  /* PC 머리 고정(2026-11-04): 위 여백을 머리 안으로 옮겨 붙었을 때도 제목 위치 그대로 — 2026-11-06 위 40 → 73(제목 글자 윗끝을 사이드바 「채팅」 글자 윗끝에 맞춤), 높이 122(73 + 제목 29 + 20).
     뒤로 버튼(44)은 위아래 -7.5 로 제목 줄 높이(29)에 맞춰 제목 위치를 밀지 않는다(최상위 · 상세 화면 제목 y 같음).
     머리 아래 24 그라데이션 dimmed. 탭 · 칩이 있는 화면은 그 아래로(탭 · 칩이 머리 바로 아래 89 에 붙음) */
  .dm-activity { padding-top: 0; }
  .dm-act-top { box-sizing: border-box; height: 122px; padding: 73px 16px 20px; align-items: flex-start; }   /* 제목 글자 윗끝 = 사이드바 「채팅」 글자 윗끝(약 77, 픽셀로 잼) — 2026-11-06, 전 40 */
  .dm-act-top h1 { line-height: 29px; }
  .dm-act-top .dm-act-back { margin: -7.5px 0; }
  /* 그라데이션은 스크롤해서 내용이 머리 아래로 들어갈 때만(맨 위에선 첫 줄을 가리지 않게) — html[data-scrolled] 는 app.js */
  .dm-act-top::after, .dm-act-tabbar::after, .dm-conn-chips::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 24px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; opacity: 0; transition: opacity .15s; }
  html[data-scrolled] :is(.dm-act-top, .dm-act-tabbar, .dm-conn-chips)::after { opacity: 1; }
  .dm-act-top:has(+ .dm-act-tabbar, + .dm-conn-chips)::after { display: none; }
  .dm-activity > .dm-act-tabbar, .dm-activity > .dm-conn-chips { top: 122px; }   /* 머리 높이(122)에 맞춤 */
  :root[data-dm-theme="dark"] :is(.dm-act-top, .dm-act-tabbar, .dm-conn-chips)::after { background: linear-gradient(#080808, rgba(8, 8, 8, 0)); }
}
/* 다크 */
:root[data-dm-theme="dark"] body.figma-activity-page, :root[data-dm-theme="dark"] body.figma-activity-page .shell, :root[data-dm-theme="dark"] body.figma-activity-page .danmuji-shell .main { background: #080808; }
:root[data-dm-theme="dark"] .dm-activity { --act-ink: #F3F5F7; --act-sub: #C9CDD1; --act-muted: #A2A8AE; --act-line: rgba(255, 255, 255, .08); --act-fill: rgba(243, 245, 247, 0.08); --act-chip: #fff; --act-alert: #ff7849; --act-strong: #EDF0F3; --act-on-strong: #282828; background: #080808; }
:root[data-dm-theme="dark"] .dm-act-top { background: #080808; }
:root[data-dm-theme="dark"] .dm-act-tabbar { background: #080808; }
:root[data-dm-theme="dark"] .dm-act-back { background-color: rgba(32, 32, 32, .7); background-image: url('assets/figma/activity/back-dark.svg'); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }
:root[data-dm-theme="dark"] .dm-act-more { background-image: url('assets/figma/activity/more-dark.svg'); }
:root[data-dm-theme="dark"] .dm-act-dot { background: #777D83; }
:root[data-dm-theme="dark"] .dm-act-empty button { background: #fff; color: #080808; }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-act-buttons button:not(.is-primary):hover { background: rgba(243, 245, 247, 0.12); } :root[data-dm-theme="dark"] .dm-act-buttons button.is-primary:hover { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); } }

/* ── 보관함 (DP-003) — Figma 상품 888:37975 · 이미지 888:38105 · 파일 933:39814 / 비었을 때 933:39935 · 933:40065 · 933:40127. 틀은 활동과 같음 ──
   목록: 위아래 10, 항목 사이 16, 좌우 16. 상품·파일: 80 상자(반경 16, 1px 4% 테두리) + 16 + 글(오른쪽 36 비움) + ··· 24 */
.dm-lib-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 10px 16px; list-style: none; }
.dm-lib-list > li { position: relative; display: flex; align-items: center; gap: 16px; }
.dm-lib-thumb, .dm-lib-tile { position: relative; flex: none; box-sizing: border-box; width: 80px; height: 80px; overflow: hidden; border: 1px solid var(--act-fill); border-radius: 16px; }
.dm-lib-thumb { background: #f6f7fa; }
.dm-lib-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-lib-tile { background: var(--act-tile, #fff) center / 46px 46px no-repeat; }
.dm-lib-tile.is-pdf { background-image: url('assets/figma/library/file-pdf.svg'); }
.dm-lib-tile.is-sheet { background-image: url('assets/figma/library/file-sheet.svg'); }
.dm-lib-tile.is-docs { background-image: url('assets/figma/library/file-docs.svg'); }
.dm-lib-tile.is-ppt { background-image: url('assets/figma/library/file-ppt.svg'); }
.dm-lib-tile.is-etc { background-image: url('assets/figma/library/file-etc.svg'); }
.dm-lib-text { display: flex; flex: 1; flex-direction: column; min-width: 0; padding-right: 36px; }
.dm-lib-list > li > .dm-act-more { position: absolute; top: 6px; right: 0; }   /* 글 묶음 맨 위 근처(Figma: 글 위 -2 · -5) */
/* 상품: 가게 13 #595959 · 4 · 이름 16 · 5 · 가격 17 Bold(「원」 SemiBold) */
.dm-lib-product .dm-lib-text small { color: var(--act-sub); font-size: 13px; line-height: normal; }
.dm-lib-product .dm-lib-text strong { margin-top: 4px; overflow: hidden; font-size: 16px; font-weight: 400; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-lib-product .dm-lib-text b { margin-top: 5px; font-size: 17px; font-weight: 700; line-height: normal; }
.dm-lib-product .dm-lib-text b span { font-weight: 600; }
/* 파일: 이름 16 SemiBold 두 줄까지(어디서든 줄바꿈) · 4 · 용량·확장자 13 */
.dm-lib-file .dm-lib-text strong { display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 600; line-height: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dm-lib-file .dm-act-meta { margin-top: 4px; font-size: 13px; line-height: normal; }
.dm-lib-list .dm-act-menu { top: 28px; right: -4px; }
/* 이미지: 두 줄 엇갈림(가로 (칸-10)/2, 사이 10), 반경 16, 사진 원래 비율 */
.dm-lib-photos { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; }
.dm-lib-photos > div { display: flex; flex: 1 0 0; flex-direction: column; gap: 10px; min-width: 0; }
.dm-lib-photo { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #f6f7fa; }
.dm-lib-photo::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .04); border-radius: inherit; pointer-events: none; }
.dm-lib-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .dm-lib-photo img { transition: transform .3s; } .dm-lib-photo:hover img { transform: scale(1.02); } }
/* 비었을 때(버튼 없음): 목록 자리 위 240 */
.dm-act-empty.is-quiet { padding-top: 241px; }
@media (min-width: 701px) { .dm-act-empty.is-quiet { padding-top: 160px; } }
:root[data-dm-theme="dark"] .dm-library { --act-tile: #202020; }
:root[data-dm-theme="dark"] .dm-lib-thumb, :root[data-dm-theme="dark"] .dm-lib-photo { background-color: #202020; }

/* ── 앱 및 서비스 연결 (DP-003) — Figma 1119:61224. 틀은 활동과 같음(PC 700 칸) ──
   위 오른쪽 「MY」 44 유리 버튼(연결한 것만 보기). 분류 칩: 위 6 · 아래 12 · 좌우 16, 사이 8, 15 SemiBold, 회색 4% / 고른 칩 검정 흰 글, 가로로 넘김.
   목록 줄: 여백 12 16, 48 둥근 로고(1px 4% 테두리) + 16 + 이름 16 SemiBold · 5 · 설명 13 #595959 한 줄 + 12 + 알약 버튼 13(여백 6.5 14) */
.dm-conn-chips { position: sticky; z-index: 3; top: 64px; display: flex; gap: 8px; padding: 6px 16px 12px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.dm-conn-chips::-webkit-scrollbar { display: none; }
.dm-conn-chip { flex: none; padding: 9.5px 17px; border: 0; border-radius: 100px; background: var(--act-fill); color: var(--act-sub); font-size: 15px; font-weight: 600; line-height: 1.54; transition: background-color .2s, color .2s; }
.dm-conn-chip[aria-pressed="true"] { background: var(--act-ink); color: #fff; }
@media (hover: hover) { .dm-conn-chip[aria-pressed="false"]:hover { background: rgba(0, 24, 46, 0.09); } }
.dm-conn-list { margin: 0; padding: 0; list-style: none; }
.dm-conn-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.dm-conn-open { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.dm-conn-logo { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: #fff; }
.dm-conn-logo::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--act-fill, rgba(0, 0, 0, .04)); border-radius: 50%; pointer-events: none; }
.dm-conn-logo .connection-icon { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; font-size: 18px; font-weight: 700; }
.dm-conn-logo .connection-icon.glyph { background: var(--dm-ui-kakao); color: var(--dm-ui-kakao-text); }
.dm-conn-logo .connection-icon.glyph .ui-icon { width: 20px; height: 20px; }
.dm-conn-logo.dm-cv-logo .connection-icon.glyph .ui-icon { width: 30px; height: 30px; }
.dm-conn-text { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.dm-conn-text strong { overflow: hidden; font-size: 16px; font-weight: 600; line-height: normal; letter-spacing: .16px; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-text small { overflow: hidden; color: var(--act-sub); font-size: 13px; line-height: normal; letter-spacing: .13px; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-text small em { color: var(--act-alert); font-style: normal; }
/* 로그인 필요 설명 줄(Figma 1562:42347): [주의 16 · 4 · 「로그인 필요」 13 RED500S] · 6 · 점 2 · 6 · 설명(줄임표) */
.dm-conn-text small { display: flex; align-items: center; gap: 6px; }
.dm-conn-text small > span { overflow: hidden; min-width: 0; text-overflow: ellipsis; }
.dm-conn-need { display: inline-flex; flex: none; align-items: center; gap: 4px; color: #ff472b; font-style: normal; }
.dm-conn-need::before { content: ''; width: 16px; height: 16px; background: url('assets/figma/connections/caution.svg') center / 16px no-repeat; }
.dm-conn-dot { flex: none; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
:root[data-dm-theme="dark"] .dm-conn-need { color: #ff7849; }
:root[data-dm-theme="dark"] .dm-conn-need::before { background-image: url('assets/figma/connections/caution-dark.svg'); }
.dm-conn-btn { flex: none; padding: 6.5px 14px; border: 0; border-radius: 24px; background: var(--act-ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 21px; white-space: nowrap; transition: background-color .15s; }
.dm-conn-btn.is-done { background: var(--act-fill); color: var(--act-ink); font-weight: 500; }
.dm-conn-btn.is-soon { background: var(--act-fill); color: #AEB3B8; font-weight: 500; }
.dm-conn-btn.is-alert { background: rgba(255, 71, 43, .1); color: #ff472b; }   /* 로그인 풀림 「다시 로그인」(MANGO-38) — 상세의 .dm-conn-cta.is-alert 와 같은 색 */
@media (hover: hover) { button.dm-conn-btn:not(.is-done):not(.is-alert):hover { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); } }   /* 「연결됨」은 호버해도 그대로(2026-11-10 — 다크에서 검정 8%로 바뀌어 안 보이던 것) */
@media (min-width: 701px) { .dm-conn-chips { top: 0; } }
:root[data-dm-theme="dark"] .dm-conn-chips { background: #080808; }
:root[data-dm-theme="dark"] .dm-conn-chip[aria-pressed="true"], :root[data-dm-theme="dark"] .dm-conn-btn:not(.is-done):not(.is-soon) { color: #080808; }
:root[data-dm-theme="dark"] .dm-conn-logo { background: #202020; }
:root[data-dm-theme="dark"] .dm-conn-btn.is-soon { color: #777D83; }
/* 서비스가 없을 때(Figma 1183:65904): 17 SemiBold #2E2E2E · 6 · 15 #767676, 좌우 52(20 + 32), 글 위가 화면 408 */
.dm-connections { display: flex; flex-direction: column; min-height: 100dvh; }
.dm-connections .dm-act-empty.dm-conn-empty { gap: 6px; padding: 231px 52px 24px; }
.dm-conn-empty h2 { color: #282F35; font-size: 17px; }
.dm-conn-empty p { color: #72777C; }
@media (min-width: 701px) { .dm-connections .dm-act-empty.dm-conn-empty { padding-top: 156px; } }
/* 아래 고정 안내(Figma 1183:66057): 흰 바탕, 여백 13 40, 방패 20 + 6 + 13 #767676 */
.dm-conn-secure { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px; margin: auto 0 0; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); background: #fff; color: #72777C; font-size: 13px; line-height: normal; text-align: center; white-space: nowrap; }
.dm-conn-secure img { flex: none; width: 15px; height: 17.4px; margin: 1.35px 2.5px 1.3px 2.5px; }
:root[data-dm-theme="dark"] .dm-conn-secure { background: #080808; color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-conn-empty h2 { color: #EDF0F3; }
:root[data-dm-theme="dark"] .dm-conn-empty p { color: #A2A8AE; }

/* ── 연결 시트 (DP-003) — Figma 1140:63698 연결 전 · 1140:63422 연결됨 · 1140:63981 준비중. 시트 틀(손잡이·반경 32·PC 다이얼로그)은 전화·예약 시트와 같음 ──
   모바일 높이 800(852 화면에서 위 52 남김). 본문 위 24 · 좌우 20, 묶음 사이 36:
   [좌우 4: 로고 80 · 16 · 이름 22 Bold · 6 · 주소 13 #595959 · 16 · 설명 15 행간 1.58] 20 [버튼 높이 48 반경 100: 연결하기 검정 / 연결됨 8% / 준비중 8% 글자 #B2B2B2]
   [섹션 사이 30: 제목 14 SemiBold 좌우 4 · 10 · 상자(3% 바탕, 반경 24, 여백 18 22): 항목 위아래 6, 제목 15 SemiBold · 2 · 설명 13 #595959, 항목 사이 13 칸 가운데 1px 4% 선]
   비어 있는 상자는 높이 80, 가운데 13 #949494. */
.dm-conn-sheet .dm-sheet-head { display: none; }
@media (max-width: 700px) { .dm-conn-sheet { height: calc(100dvh - 52px); } }
.dm-conn-sheet-body { display: flex; flex-direction: column; gap: 36px; padding: 24px 20px 32px; }
.dm-conn-sheet-top { display: flex; flex-direction: column; gap: 20px; }
.dm-conn-sheet-id { display: flex; flex-direction: column; gap: 16px; padding: 0 4px; }
.dm-conn-logo.is-lg { width: 80px; height: 80px; }
.dm-conn-logo.is-lg::after { border-width: 1px; }
.dm-conn-sheet-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-conn-sheet-name strong { overflow: hidden; font-size: 22px; font-weight: 700; line-height: normal; letter-spacing: .22px; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-sheet-name small { overflow: hidden; color: #545A60; font-size: 13px; line-height: normal; letter-spacing: .13px; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-sheet-desc { margin: 0; font-size: 15px; line-height: 1.58; }
.dm-conn-cta-group { display: flex; flex-direction: column; gap: 8px; }
/* 로그인 필요 두 버튼(Figma 1559:42231): 연결됨(회색) · 로그인 필요(RED120A 바탕 · RED500S 글자), 사이 8 */
.dm-conn-cta-row { display: flex; gap: 8px; }
.dm-conn-cta-row > .dm-conn-cta { flex: 1 1 0; min-width: 0; }
.dm-conn-cta.is-alert { display: grid; place-items: center; background: rgba(255, 71, 43, .1); color: #ff472b; }
.dm-conn-cta.is-static { cursor: default; }
.dm-conn-cta.is-done.is-static { display: grid; place-items: center; background: rgba(0, 24, 46, 0.07); color: #AEB3B8; pointer-events: none; }
:root[data-dm-theme="dark"] .dm-conn-cta.is-done.is-static { background: rgba(243, 245, 247, 0.1); color: #777D83; }
/* 계정 칸(Figma 1680:54994 · 1680:55026): 상자 여백 18 22, 줄 사이 8 · 선 칸 13(가운데 1px 4%) · 8 */
.dm-conn-account { gap: 8px; }
.dm-conn-account hr { height: 1px; margin: 6px 0; border: 0; background: rgba(0, 0, 0, .04); }
.dm-conn-account-row { display: flex; align-items: center; gap: 2px; }
.dm-conn-account-row strong { flex: 1; overflow: hidden; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-logout { flex: none; padding: 0; border: 0; background: none; color: #ff472b; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.dm-conn-add { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #131A20; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.dm-conn-add::before { content: ''; width: 16px; height: 16px; background: url('assets/figma/connections/plus.svg') center / 16px no-repeat; }
.dm-conn-login-row { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dm-conn-login-row:disabled, .dm-conn-login-row.is-static { cursor: default; }
.dm-conn-login-row > span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.dm-conn-account .dm-conn-login-row small { color: #90959A; font-size: 10px; font-weight: 500; line-height: normal; }
.dm-conn-account .dm-conn-login-row strong { overflow: hidden; font-size: 15px; font-weight: 500; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-conn-arrow { flex: none; width: 20px; height: 20px; background: url('assets/figma/connections/arrow.svg') center / 20px no-repeat; }
.dm-conn-account .dm-conn-expired { margin: 0; padding: 0; color: #90959A; font-size: 13px; line-height: normal; }
:root[data-dm-theme="dark"] .dm-conn-cta.is-alert { background: rgba(255, 120, 73, .14); color: #ff7849; }
/* 로그인 필요 호버: 검정으로 바뀌지 않고 원래 빨간 바탕 위에 GRAY050A(4% · 다크 8%)만 한 겹 */
@media (hover: hover) {
  .dm-conn-cta.is-alert:hover { background: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), rgba(255, 71, 43, .1); }
  :root[data-dm-theme="dark"] .dm-conn-cta.is-alert:hover { background: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)), rgba(255, 120, 73, .14); }
}
:root[data-dm-theme="dark"] .dm-conn-account hr { background: rgba(255, 255, 255, .08); }
:root[data-dm-theme="dark"] .dm-conn-logout { color: #ff7849; }
:root[data-dm-theme="dark"] .dm-conn-add { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-conn-add::before { background-image: url('assets/figma/connections/plus-dark.svg'); }
:root[data-dm-theme="dark"] .dm-conn-arrow { background-image: url('assets/figma/connections/arrow-dark.svg'); }
:root[data-dm-theme="dark"] .dm-conn-account :is(.dm-conn-login-row small, .dm-conn-expired) { color: #7D8389; }
.dm-conn-cta { width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 100px; background: #131A20; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; transition: background-color .15s; }
.dm-conn-cta.is-done, .dm-conn-cta.is-soon { background: rgba(0, 24, 46, 0.09); color: #131A20; }
.dm-conn-cta.is-soon { color: #AEB3B8; opacity: 1; cursor: default; }
@media (hover: hover) { .dm-conn-cta:not(.is-done):not(.is-soon):not(.is-alert):hover { box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.12); } .dm-conn-cta.is-done:hover { background: rgba(0, 24, 46, 0.13); } }
.dm-conn-sheet-more { display: flex; flex-direction: column; gap: 30px; }
.dm-conn-sheet-can { display: flex; flex-direction: column; gap: 10px; }
.dm-conn-sheet-can h3 { margin: 0; padding: 0 4px; color: #131A20; font-size: 14px; font-weight: 600; line-height: 1.5; }
.dm-conn-box { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; border-radius: 24px; background: rgba(0, 24, 46, 0.03); }
.dm-conn-box p { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px 0; line-height: 1.5; }
.dm-conn-box p + p { position: relative; margin-top: 17px; }   /* 항목 · 2 · 구분선 칸 13(선은 가운데) · 2 · 항목 */
.dm-conn-box p + p::before { content: ''; position: absolute; top: -9px; right: 0; left: 0; height: 1px; background: rgba(0, 0, 0, .04); }
.dm-conn-box strong { font-size: 15px; font-weight: 600; }
.dm-conn-box span { color: #545A60; font-size: 13px; }
.dm-conn-box.is-empty { height: 80px; }
.dm-conn-box.is-empty p { color: #90959A; font-size: 13px; text-align: center; }
.dm-conn-sheet .dm-conn-logo { background: #fff; }
.dm-conn-sheet .dm-conn-logo .connection-icon { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 701px) { .dm-conn-sheet .dm-sheet-head { display: flex; justify-content: flex-end; padding-bottom: 0; } .dm-conn-sheet .dm-sheet-head .dm-sheet-title { display: none; } .dm-conn-sheet-body { padding: 0 30px 30px; } }
:root[data-dm-theme="dark"] .dm-conn-sheet-can h3 { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-conn-box span, :root[data-dm-theme="dark"] .dm-conn-sheet-name small { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-conn-box { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-conn-box p + p::before { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-conn-box.is-empty p { color: #7D8389; }
:root[data-dm-theme="dark"] .dm-conn-cta { background: #F3F5F7; color: #282828; }
:root[data-dm-theme="dark"] .dm-conn-cta.is-done { background: rgba(243, 245, 247, 0.12); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-conn-cta.is-soon { background: rgba(243, 245, 247, 0.12); color: #777D83; }
:root[data-dm-theme="dark"] .dm-conn-sheet .dm-conn-logo { background: #202020; }

/* ── GNB 유리 원형 버튼 테두리 — Figma GNB Btn(1078:59378 · 다크 1029:39300) 은 흰 단색이 아니라 1px 선형 그라데이션 ──
   왼쪽 위 → 오른쪽 아래(137°). 라이트: 선 투명도 70% × [흰 100% → 0%(가운데) → 0% → 100%], 다크: 25% × [80% → 10% → 10% → 100%].
   CSS 에서는 버튼 위에 1px 고리(::after, 안쪽을 마스크로 비움)로 그린다. 그라데이션 축 위치는 Figma 좌표(22.3,20.7 → 51.7,52.5)를 그대로 옮긴 16% → 85.5% */
body.figma-chat-page .figma-chat-head :is(.figma-close, .figma-back, .figma-chat-actions button), .figma-desktop-chat-head button { position: relative; }
:is(body.figma-chat-page .figma-chat-head .figma-close, body.figma-chat-page .figma-chat-head .figma-back, body.figma-chat-page .figma-chat-head .figma-chat-actions button, .figma-desktop-chat-head button, .dm-menu-back, .figma-auth-close, .dm-scroll-down, .dm-act-back)::after {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(137deg, rgba(255, 255, 255, .7) 16%, rgba(255, 255, 255, 0) 50.8%, rgba(255, 255, 255, 0) 68.1%, rgba(255, 255, 255, .7) 85.5%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:root[data-dm-theme="dark"] :is(body.figma-chat-page .figma-chat-head .figma-close, body.figma-chat-page .figma-chat-head .figma-back, body.figma-chat-page .figma-chat-head .figma-chat-actions button, .figma-desktop-chat-head button, .dm-menu-back, .figma-auth-close, .dm-scroll-down, .dm-act-back)::after {
  background: linear-gradient(137deg, rgba(255, 255, 255, .2) 16%, rgba(255, 255, 255, .025) 29.9%, rgba(255, 255, 255, .025) 71.6%, rgba(255, 255, 255, .25) 85.5%);
}

/* ── 설정 (Figma 912:61185) — 활동 틀(뒤로 · 가운데 제목) 위에 묶음 목록. 헤더 아래 19 띄우고 시작.
   묶음 제목 14 SemiBold 행간 1.32 #767676(위아래 8 · 좌우 20) · 줄 16 Medium 행간 24(위아래 13 · 좌우 20, 누르면 4% 바탕)
   묶음 사이 높이 41 칸 가운데(좌우 16) 1px 3% 선. 오른쪽 값 15 #767676, 「준비중」 14 #B2B2B2. 화면 모드는 dm-picker 를 줄 바로 아래에 ── */
.dm-set-group { position: relative; display: flex; flex-direction: column; }
.dm-settings > .dm-set-group:first-of-type { margin-top: 19px; }
.dm-set-group h2 { margin: 0; padding: 8px 20px; color: #72777C; font-size: 14px; font-weight: 600; line-height: 1.32; }
.dm-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 20px; border: 0; background: none; color: var(--act-ink); font-size: 16px; font-weight: 500; line-height: 24px; text-align: left; cursor: pointer; transition: background-color .15s; }
.dm-set-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-set-row small { flex: none; color: #72777C; font-size: 15px; font-weight: 400; }
.dm-set-soon { flex: none; color: #AEB3B8; font-size: 14px; font-style: normal; font-weight: 400; }
/* hover·pressed — 위젯 목록 줄과 같은 규칙: 줄 안쪽 좌우 8 띄운 반경 12 상자, hover 4% / 누름·열림 8% (다크 8% / 12%) */
.dm-set-row { position: relative; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.dm-set-row::before { content: ''; position: absolute; z-index: -1; inset: 0 8px; border-radius: 12px; background: transparent; transition: background-color .15s; }
@media (hover: hover) { .dm-set-row:hover::before { background: rgba(0, 24, 46, 0.04); } }
.dm-set-row:active::before, .dm-set-row[aria-expanded="true"]::before { background: rgba(0, 24, 46, 0.09); }
.dm-set-row:focus-visible { outline: none; }
.dm-set-row:focus-visible::before { box-shadow: 0 0 0 2px var(--act-ink); }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-set-row:hover::before { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] .dm-set-row:active::before, :root[data-dm-theme="dark"] .dm-set-row[aria-expanded="true"]::before { background: rgba(243, 245, 247, 0.12); }
.dm-set-divider { height: 1px; margin: 20px 16px; border: 0; background: rgba(0, 0, 0, .03); }
.dm-settings .dm-picker { right: 16px; bottom: auto; transform: translateY(-6px) scale(.97); }
.dm-settings .dm-picker.is-open { transform: none; }
@media (min-width: 701px) {
  .dm-settings > .dm-set-group:first-of-type { margin-top: 0; }
  /* PC: 묶음 제목 · 줄 글자를 화면 제목(「설정」, 왼쪽 16)과 같은 세로선에 — 전엔 20 이라 4 어긋남(2026-11-10) */
  .dm-set-group h2, .dm-set-row { padding-right: 16px; padding-left: 16px; }
  .dm-set-row::before { inset: 0 4px; }
}
:root[data-dm-theme="dark"] .dm-set-group h2, :root[data-dm-theme="dark"] .dm-set-row small { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-set-soon { color: #777D83; }
:root[data-dm-theme="dark"] .dm-set-divider { background: rgba(255, 255, 255, .06); }

/* ── 설정 상세 — 설정과 같은 머리, 본문은 헤더 아래 19 띄우고. 기존 dev 화면(기억·보안 정보·계정 설정)은 좌우 16 안에 그대로 ── */
.dm-set-body { padding-top: 19px; }
.dm-set-body > :is(.panel, .grid, .list) { margin-right: 16px; margin-left: 16px; }
.dm-set-body .dm-act-empty { padding-top: 181px; }
.dm-set-choice > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-set-choice strong { font-size: 16px; font-weight: 500; line-height: 24px; }
.dm-set-choice > span small { color: #72777C; font-size: 13px; font-weight: 400; line-height: 1.5; }
.dm-set-choice[aria-checked="true"] strong { font-weight: 600; }
.dm-set-choice[aria-checked="true"]::after { content: ''; flex: none; width: 24px; height: 24px; background: url('assets/figma/icons/check.svg') center / 24px 24px no-repeat; }
@media (min-width: 701px) { .dm-set-body { padding-top: 0; } .dm-set-body .dm-act-empty { padding-top: 160px; } }
:root[data-dm-theme="dark"] .dm-set-choice > span small { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-set-choice[aria-checked="true"]::after { background-image: url('assets/figma/icons/check-dark.svg'); }
/* 챙기는 일 「새로 맡기기」 줄 (TASK-624) — 고르기 줄 모양에 설명은 줄바꿈, 끝에 + (추가하기 줄과 같은 Plus01_line 20) */
.dm-loop-new > span { white-space: normal; }
.dm-loop-new::after { content: ''; flex: none; width: 20px; height: 20px; background: url('assets/figma/composer/plus.svg') center / 20px 20px no-repeat; }
:root[data-dm-theme="dark"] .dm-loop-new::after { background-image: url('assets/figma/composer/plus-dark.svg'); }

/* ── 알림 — 고르기 줄(화면 모드와 같음) 아래 「이렇게 알려 드려요」 상자(연결 시트 상자) + 도움말 13 #767676, 조용한 시간은 스위치 줄 ── */
.dm-set-box { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 0; }   /* 상자 바깥선은 뒤로 버튼·구분선과 같은 16 */
.dm-set-box .dm-conn-box { padding: 12px 18px; border-radius: 20px; }
.dm-set-note { margin: 0; padding: 0 4px; color: #72777C; font-size: 13px; line-height: 1.5; }
.dm-set-switch { cursor: pointer; }
.dm-set-switch > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-set-switch strong { font-size: 16px; font-weight: 500; line-height: 24px; }
.dm-set-switch > span small { color: #72777C; font-size: 13px; font-weight: 400; line-height: 1.5; }
/* 스위치 51×31 — 꺼짐 12% 회색, 켜짐 검정(주 버튼과 같은 #191919), 동그라미 27 흰색 */
.dm-switch { position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 100px; background: rgba(0, 24, 46, 0.13); cursor: pointer; transition: background-color .2s; -webkit-appearance: none; appearance: none; }
.dm-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .06); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.dm-switch:checked { background: #131A20; }
.dm-switch:checked::after { transform: translateX(20px); }
.dm-switch:focus-visible { outline: 2px solid var(--act-ink); outline-offset: 2px; }
.dm-set-pick { position: relative; }
.dm-set-pick .dm-picker { right: 16px; }
.dm-picker.is-from, .dm-picker.is-until { width: 248px; }
/* 먼저 챙기기 받는 때의 시간 고르기 — 방해 금지 모드와 같은 너비 (TASK-588) */
.dm-picker[data-kind^="pro-"] { width: 248px; }
:root[data-dm-theme="dark"] .dm-set-note, :root[data-dm-theme="dark"] .dm-set-switch > span small { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-switch { background: rgba(243, 245, 247, 0.17); }
:root[data-dm-theme="dark"] .dm-switch:checked { background: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-switch:checked::after { background: #282828; }

/* 헤더 글자는 자간 없이(0) — 화면 제목·시트 제목·예전 상세 화면 머리 모두 */
.main-head h1, .main-head .mobile-brand { letter-spacing: 0; }

/* ── 설정 상세(메모리 · 결제 수단 · 개인 정보 · 성격과 말투 · 내보내기와 가져오기) — 설정 줄 · 활동 줄 · 연결 칩/알약/상자 · 스위치 재사용 ── */
.dm-set-note.is-pad { padding: 8px 20px 0; }
.dm-set-row.is-danger { color: var(--act-alert); }
.dm-set-row.is-static { cursor: default; }
.dm-set-row.is-static::before { content: none; }
.dm-set-choice.is-static .dm-conn-btn { flex: none; }
.dm-set-group .dm-act-list { padding-top: 0; }
/* 누르면 고치는 기억 줄 — 설정 줄과 같은 hover·누름 상자(좌우 8, 반경 12) */
.dm-act-item.is-tap { isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-act-item.is-tap::after { content: ''; position: absolute; z-index: -1; inset: 0 8px; border-radius: 12px; background: transparent; transition: background-color .15s; }
@media (hover: hover) { .dm-act-item.is-tap:hover::after { background: rgba(0, 24, 46, 0.04); } }
.dm-act-item.is-tap:active::after { background: rgba(0, 24, 46, 0.09); }
.dm-act-item.is-tap:focus-visible { outline: none; }
.dm-act-item.is-tap:focus-visible::after { box-shadow: 0 0 0 2px var(--act-ink); }
/* 정보 추가 시트 — 종류 칩은 줄바꿈되는 칩 묶음, 칸은 사이 12 */
.dm-conn-chips.is-sheet { position: static; flex-wrap: wrap; padding: 0; overflow: visible; background: none; }
.dm-vault-fields { display: flex; flex-direction: column; gap: 12px; }
.dm-vault-fields[hidden] { display: none; }
.dm-vault-sheet .dm-set-note { padding: 0 4px; }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-act-item.is-tap:hover::after { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] .dm-act-item.is-tap:active::after { background: rgba(243, 245, 247, 0.12); }
:root[data-dm-theme="dark"] .dm-conn-chips.is-sheet { background: none; }
.dm-vault-sheet, .dm-people-sheet { --act-ink: #131A20; --act-sub: #545A60; --act-fill: rgba(0, 24, 46, 0.04); }
:root[data-dm-theme="dark"] :is(.dm-vault-sheet, .dm-people-sheet) { --act-ink: #F3F5F7; --act-sub: #C9CDD1; --act-fill: rgba(243, 245, 247, 0.08); }
/* 로그인 마스코트 모션(해냈어요 002, 정사각 400) — 움직임이 판 위끝까지 닿아 잘리지 않게, 시안의 상자(모바일 140 · PC 170)를 정사각 그대로 채움 */
.figma-auth-brand > img.figma-auth-mascot { box-sizing: border-box; width: 140px; height: 140px; padding: 0; object-fit: contain; }
@media (min-width: 701px) { .figma-auth-brand > img.figma-auth-mascot { width: 170px; height: 170px; padding: 0; } }

/* ── 토스트 — Figma 1140:65115 (1177:14948): 유리 rgba(72,74,85,.5)+흰 10%, 블러 10, 반경 20, 여백 16, 14 Medium 흰 글자 가운데(두 줄까지),
   너비 88~351, 화면 위 52(모바일 GNB 아래쪽에 걸침) · PC 위 24. 나타날 때 살짝 내려오며 나타나고 사라질 때 흐려짐 ── */
.toast.dm-toast { position: fixed; z-index: 90; top: calc(52px + env(safe-area-inset-top, 0px)); bottom: auto; left: 50%; box-sizing: border-box; width: max-content; min-width: 88px; max-width: min(351px, calc(100vw - 24px)); max-height: none; padding: 16px; border-radius: 20px; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)), rgba(72, 74, 85, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; color: #fff; font-size: 14px; font-weight: 500; line-height: normal; text-align: center; word-break: keep-all; opacity: 0; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s ease-out; pointer-events: none; }
.toast.dm-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast.dm-toast { white-space: pre-line; }   /* 오류 토스트 두 줄(1140:65115) */
@media (min-width: 701px) { .toast.dm-toast { top: 24px; } }
@media (prefers-reduced-motion: reduce) { .toast.dm-toast { transition: opacity .2s; transform: translate(-50%, 0); } }

/* ── 오류 화면 (Figma 1140:65059 · 65073 · 65087 · 65101) — 빈 화면 글 + 회색 알약. 제목 위치는 시안대로 화면 가운데에서 위로 161(점검은 버튼이 없어 141) ── */
.dm-error .dm-act-empty { padding-top: max(96px, calc(50dvh - 161px)); }
.dm-error.is-maintenance .dm-act-empty { padding-top: max(96px, calc(50dvh - 141px)); }
.dm-act-empty button.is-soft { background: var(--act-fill); color: var(--act-ink); }
@media (hover: hover) { .dm-act-empty button.is-soft:hover { background: rgba(0, 24, 46, 0.09); } }
:root[data-dm-theme="dark"] .dm-act-empty button.is-soft:hover { background: rgba(243, 245, 247, 0.12); }
:root[data-dm-theme="dark"] .dm-act-empty button.is-soft { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
.dm-error .dm-act-empty p { word-break: keep-all; }

/* 설정 상세의 활동 줄은 설정 줄과 같은 좌우 20 — 묶음 제목(좌우 20)과 글 시작을 맞춤 */
.dm-set-group .dm-act-item { padding-right: 20px; padding-left: 20px; }
.dm-set-group .dm-act-item + .dm-act-item::before { right: 20px; left: 20px; }
.dm-set-group .dm-act-menu { right: 16px; }
/* 챙기는 일 확인할 일 묶음의 줄(TASK-585): 메타와 같은 글 크기·색, 줄바꿈 허용 */
.dm-loop-lines { margin: 8px 0 0; padding: 0; list-style: none; color: var(--act-sub); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.dm-loop-lines li + li { margin-top: 2px; }
/* 확인할 일의 제안(TASK-700): 묶음 줄 아래 제안마다 위 14(승인 알약의 위 여백과 같음), 글은 메타와 같은 14 · --act-sub, 첫 줄만 진하게.
   지나간 제안은 같은 글 크기의 접기 줄 — 새 색 · 크기 없음(파생) */
.dm-loop-item { margin-top: 14px; }
.dm-loop-item .dm-loop-lines strong { color: var(--act-ink); font-weight: 600; }
.dm-loop-item .dm-set-note { margin-top: 6px; padding: 0; }
.dm-loop-past { margin-top: 14px; color: var(--act-sub); font-size: 14px; line-height: 20px; }
.dm-loop-past summary { cursor: pointer; }
/* 상시 허용(TASK-706): 제안 아래 「앞으로 이런 건 알아서 하기」 글 단추 · 지나간 줄의 되돌리기 알약 — 새 색 · 크기 없이 메타 글과 같은 14 · --act-sub */
.dm-loop-grant-link { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--act-sub); font-size: 14px; text-decoration: underline; cursor: pointer; }
.dm-loop-past .dm-conn-btn { margin-left: 6px; vertical-align: middle; }
.dm-act-meta:empty { display: none; }
/* ··· 메뉴가 열린 줄은 아래 줄들보다 위로 — 메뉴 층이 다음 줄의 ··· 에 가리지 않게 */
.dm-act-item:has(.dm-act-more[aria-expanded="true"]) { z-index: 6; }
/* 카드 추가 창 — 칸마다 이름, 유효기간 · CVC 두 칸 나란히 */
.dm-card-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-card-sheet .dm-sheet-input { font-weight: 500; letter-spacing: .02em; }
/* 「추가하기」 줄 — 앞에 + (입력창과 같은 Figma Plus01_line 20) */
.dm-set-add > span { display: inline-flex; align-items: center; gap: 8px; }
.dm-set-add i { flex: none; width: 20px; height: 20px; background: url('assets/figma/composer/plus.svg') center / 20px 20px no-repeat; }
:root[data-dm-theme="dark"] .dm-set-add i { background-image: url('assets/figma/composer/plus-dark.svg'); }
/* 일일 사용량 — 연결 시트 상자 안에 오늘 사용 % · 남음, 막대(높이 6, 검정), 다시 채워지는 때 */
.dm-usage { gap: 12px; padding: 20px 22px; }
.dm-usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dm-usage-head strong { font-size: 17px; font-weight: 600; }
.dm-usage-head span { color: #72777C; font-size: 14px; }
.dm-usage-track { display: block; height: 6px; overflow: hidden; border-radius: 100px; background: rgba(0, 24, 46, 0.07); }
.dm-usage-track span { display: block; height: 100%; border-radius: inherit; background: #131A20; }
.dm-usage.is-reached .dm-usage-track span { background: var(--act-alert, #ff472b); }
.dm-usage-note { margin: 0; padding: 0 !important; color: #72777C; font-size: 13px; line-height: 1.5; }
:root[data-dm-theme="dark"] .dm-usage-head span, :root[data-dm-theme="dark"] .dm-usage-note { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-usage-track { background: rgba(243, 245, 247, 0.1); }
:root[data-dm-theme="dark"] .dm-usage-track span { background: #F3F5F7; }
/* 등록된 카드 상자 — 연결 시트 상자(3% 바탕, 반경 24, 여백 18 22) 안에 카드 줄: 이름 15 SemiBold · 2 · 쓰는 서비스 13 #595959, 오른쪽 삭제(Figma Trash 모양, ··· 와 같은 회색 20),
   줄 사이는 상자의 구분선(13 칸 가운데 1px). 아래 「+ 추가하기」와 사이 8 */
.dm-card-list { padding-top: 12px; padding-bottom: 12px; }
.dm-card-item { position: relative; display: flex; align-items: center; gap: 12px; }
.dm-card-item > p { flex: 1; min-width: 0; }
.dm-card-item + .dm-card-item { margin-top: 13px; }
.dm-card-item + .dm-card-item::before { content: ''; position: absolute; top: -7px; right: 0; left: 0; height: 1px; background: rgba(0, 0, 0, .04); }
.dm-card-delete { flex: none; width: 32px; height: 32px; margin-right: -6px; padding: 0; border: 0; border-radius: 8px; background: url('assets/figma/activity/trash.svg') center / 20px 20px no-repeat; cursor: pointer; transition: background-color .15s; }
@media (hover: hover) { .dm-card-delete:hover { background-color: rgba(0, 24, 46, 0.04); } }
.dm-card-delete:active { background-color: rgba(0, 24, 46, 0.09); }
:root[data-dm-theme="dark"] .dm-card-delete { background-image: url('assets/figma/activity/trash-dark.svg'); }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-card-delete:hover { background-color: rgba(243, 245, 247, 0.08); } }
.dm-card-list + .dm-set-add, .dm-set-box + .dm-set-add { margin-top: 8px; }
:root[data-dm-theme="dark"] .dm-card-item + .dm-card-item::before { background: rgba(243, 245, 247, 0.08); }
/* 메모리 맨 위 안내 한 줄 — 좌우 20, 목록과 사이 4 */
.dm-set-body > .dm-set-note.is-lead { margin: 0; padding: 0 20px 6px; }
/* 사람과 장소 (TASK-980, social-people-places 9절) — 설정 상세 틀 · 활동 줄 · 결제 수단 상자 줄 · 연결 칩/알약 · 스위치를 그대로 쓰고, 새로 둔 것은 아래뿐(파생).
   머리 오른쪽 「추가」 · 「고치기」는 연결됨 알약 그대로(모바일 머리 가운데 높이, PC 는 큰 제목 줄 끝). 본문 안의 칩 줄은 머리에 붙지 않는다.
   D-n 배지 12 SemiBold 높이 22 — 바탕은 칩 4%, 7일 안은 빨강 글자에 예약 편집 「삭제」 버튼과 같은 빨강 10%(다크 14%). 날짜 줄의 「먼저 알려 주기」는 글 13 + 스위치 */
.dm-people-action { position: absolute; top: 15px; right: 16px; }
@media (max-width: 700px) { .dm-act-top:has(.dm-people-action) h1 { max-width: calc(100% - 184px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (min-width: 701px) { .dm-people-action { position: static; margin: -2.5px 0 -2.5px auto; } }
.dm-set-body .dm-conn-chips { position: static; }
.dm-set-body .dm-conn-chips::after { content: none; }
.dm-people-search + [data-social-list] { padding-top: 12px; }   /* 칩 줄이 없는 장소 탭: 검색 칸과 첫 묶음 사이를 칩 줄 아래 여백(12)과 같게 */
/* 분류 칩 줄이 넘치면 오른쪽 40px을 흐리게(가로로 넘김은 연결 칩과 같고, 넘길 것이 남았다는 표시만 더함 · TASK-980 X5) */
.dm-people-chips.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.dm-people-dday { flex: none; padding: 0 8px; border-radius: 100px; background: var(--act-fill); color: var(--act-sub); font-size: 12px; font-weight: 600; line-height: 22px; }
.dm-people-dday.is-soon { background: rgba(255, 71, 43, .1); color: var(--act-alert); }
:root[data-dm-theme="dark"] .dm-people-dday.is-soon { background: rgba(255, 120, 73, .14); }
.dm-people-line { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-people-line:focus-visible { outline: 2px solid var(--act-ink); outline-offset: 4px; border-radius: 8px; }
.dm-people-line strong { overflow-wrap: anywhere; }
/* 취소한 약속 · 날짜 확인이 필요한 약속(TASK-1049 76 L): 값을 활동 줄의 흐린 글자(--act-muted)로(파생, 새 토큰 없음) */
.dm-people-line.is-held strong { color: var(--act-muted); font-weight: 500; }
.dm-people-remind { display: flex; flex: none; align-items: center; gap: 8px; cursor: pointer; }
.dm-people-picks { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 55%; }
/* 확인 창(ask · askText) — 모바일도 아래에서 올라오는 시트가 아니라 화면 가운데 다이얼로그(좌우 20, 반경 24) */
@media (max-width: 700px) {
  .dm-dialog { width: calc(100vw - 40px); max-width: 400px; margin: auto; border-radius: 24px; }
  .dm-dialog-body { padding: 28px 20px 20px; }
  .dm-dialog[open] { animation-name: dm-dialog-in; }
}

/* ── 회원 탈퇴 — 설정 상세 틀 + 연결 시트 상자 세 묶음(사이 30) · 이유 고르기 줄 · 입력 상자 · 확인 줄 · 검정 버튼 ── */
.dm-set-note.is-error { color: var(--act-alert, #ff472b); }
.dm-set-note.is-error:empty { display: none; }
.dm-del-info { gap: 30px; padding-top: 10px; }
.dm-del-list p span { line-height: 1.5; }
.dm-del-feedback { height: 140px; }
.dm-del-actions { gap: 12px; padding-top: 4px; padding-bottom: 32px; }
.dm-del-actions .dm-set-note { padding: 0 4px; }
.dm-del-confirm { padding-top: max(96px, calc(50dvh - 161px)); }
.dm-del-confirm .dm-set-note { margin-top: 8px; }
.dm-del-buttons { display: flex; gap: 8px; margin-top: 14px; }
.dm-del-buttons button { margin: 0 !important; }
.dm-act-empty button.is-danger { background: var(--act-alert, #ff472b); color: #fff; opacity: 1; }
:root[data-dm-theme="dark"] .dm-act-empty button.is-danger { background: #ff7849; color: #080808; }
/* 목록(활동 줄) 바로 아래 구분선은 위 여백 없이 — 마지막 줄의 아래 여백(14)이 곧 간격 */
.dm-set-group:has(> .dm-act-list:last-child) + .dm-set-divider { margin-top: 5px; }   /* 마지막 줄 위(구분선 7 + 위 여백 13)와 아래(아래 여백 15 + 5)를 20 으로 같게 */
/* 상자 안 「+ 추가하기」 줄 — 카드 이름과 같은 15 SemiBold, + 20(입력창 Plus01_line), 줄 전체가 누름 영역 */
.dm-card-add { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--act-ink, #131A20); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.dm-card-add i { flex: none; width: 20px; height: 20px; background: url('assets/figma/composer/plus.svg') center / 20px 20px no-repeat; }
:root[data-dm-theme="dark"] .dm-card-add i { background-image: url('assets/figma/composer/plus-dark.svg'); }
/* 확인 창의 위험 동작(삭제·로그아웃 등)도 주 버튼과 같은 검정 — 따로 빨강을 쓰지 않음. 탈퇴 마지막 확인 버튼도 같게 */
.dm-dialog.is-danger .dm-dialog-ok, .dm-act-empty button.is-danger { background: #131A20; color: #fff; }
:root[data-dm-theme="dark"] .dm-dialog.is-danger .dm-dialog-ok, :root[data-dm-theme="dark"] .dm-act-empty button.is-danger { background: #F3F5F7; color: #080808; }
/* 「+ 추가하기」는 카드 이름보다 한 단계 옅게 — 글자·+ 모두 #767676(다크 #A6A6A6), 굵기 Medium */
.dm-card-add { color: #72777C; font-weight: 500; }
.dm-card-add i { background-image: url('assets/figma/composer/plus-muted.svg'); }
:root[data-dm-theme="dark"] .dm-card-add { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-card-add i { background-image: url('assets/figma/composer/plus-muted-dark.svg'); }
/* 고르기 줄(화면 모드·알림·성격과 말투·탈퇴 이유·확인 줄) — 선택 안 됨은 같은 자리의 빈 동그라미, 선택되면 체크 */
.dm-set-choice[aria-checked="false"]::after { content: ''; flex: none; width: 24px; height: 24px; background: url('assets/figma/icons/check-empty.svg') center / 24px 24px no-repeat; }
:root[data-dm-theme="dark"] .dm-set-choice[aria-checked="false"]::after { background-image: url('assets/figma/icons/check-empty-dark.svg'); }
/* 고를 수 없는 고르기 줄(성격과 말투에서 운영자가 페르소나를 두지 않은 말투, TASK-522) — 체크 자리에 설정 줄의 「준비중」, 누름·hover 바탕 없음 */
.dm-set-choice.is-soon { cursor: default; }
.dm-set-choice.is-soon::after { content: none; }
@media (hover: hover) { .dm-set-choice.is-soon:hover::before, :root[data-dm-theme="dark"] .dm-set-choice.is-soon:hover::before { background: transparent; } }
.dm-set-choice.is-soon:active::before, :root[data-dm-theme="dark"] .dm-set-choice.is-soon:active::before { background: transparent; }
/* 누르는 기억 줄 — 제목 줄(16/21)이 날짜 줄(13/17)보다 행간이 커서 글이 아래로 2 치우침 → 위 13 · 아래 15 로 글과 상자 위아래 간격을 맞춤 */
.dm-act-item.is-tap { padding-top: 13px; padding-bottom: 15px; }
.dm-alert-more[hidden] { display: none; }
/* 설정의 시간 고르기(방해 금지 모드 시작·끝) — 위로 열면 고정된 머리에 가려 잘려서, 줄 바로 아래로 열고 머리보다 위에 둠 */
.dm-set-pick .dm-picker { top: calc(100% + 6px); bottom: auto; z-index: 8; transform-origin: top right; }
.dm-set-pick .dm-picker:not(.is-open) { transform: translateY(-6px) scale(.97); }
.dm-set-pick:has(.dm-picker) { z-index: 8; }
.dm-alert-more ~ *, #dm-quiet { position: relative; }
/* 스위치 줄(알림 받기 · 방해 금지 모드 · 알아서 기억하기)은 줄 hover·누름 상자 없이 — 스위치만 반응 */
.dm-set-row.dm-set-switch::before { content: none; }
.dm-set-row.dm-set-switch { cursor: default; }
.dm-set-row.dm-set-switch .dm-switch { cursor: pointer; }
/* 설명 없는 스위치 줄은 다른 줄과 같은 높이 50(스위치 31 + 위아래 9.5) — 알림을 끄면 구분선도 받는 정도와 함께 숨어 두 스위치 줄이 바로 이어짐 */
.dm-set-row.dm-set-switch:not(:has(small)) { padding-top: 9.5px; padding-bottom: 9.5px; }
/* 앱 및 서비스 연결 빈 분류 — 활동 빈 화면과 같은 높이에 제목(모바일·PC 모두 화면 위에서 320). 분류 칩 줄이 탭보다 4 높아 그만큼 덜 띄움 */
.dm-connections .dm-act-empty.is-quiet { padding-top: 196px; }
@media (min-width: 701px) { .dm-connections .dm-act-empty.is-quiet { padding-top: 156px; } }
/* PC 연결 다이얼로그 — 내용 길이와 상관없이 같은 높이(가장 긴 「구글 캘린더」 734). 창이 낮으면 화면 안으로 줄고 안에서 스크롤, 내용은 위에서부터 */
@media (min-width: 701px) { .dm-conn-sheet { height: min(734px, calc(100dvh - 48px)); } }

/* ── 시트·다이얼로그 스크롤 — 시트 전체가 아니라 머리(손잡이·제목)와 아래 버튼 사이 내용만 스크롤. 스크롤바가 둥근 모서리 밖으로 나가지 않게
   스크롤 칸을 오른쪽 4 · (PC) 아래 12 안으로 들이고, 스크롤바는 얇은 회색(4) ── */
.dm-sheet { overflow: hidden; }
.dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body) { flex: 1 1 auto; min-height: 0; margin-right: 4px; overflow: hidden auto; overscroll-behavior: contain; }
.dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body)::-webkit-scrollbar { width: 4px; }
.dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body)::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, .14); }
.dm-sheet > .dm-sheet-form { padding-right: 12px; }
.dm-sheet > .dm-conn-sheet-body { padding-right: 16px; }
@media (min-width: 701px) { .dm-sheet > .dm-sheet-form { padding-right: 20px; } .dm-sheet > .dm-conn-sheet-body { margin-bottom: 12px; padding-right: 26px; padding-bottom: 18px; } }
/* 시트 안에서 시간·반복 고르기가 열려 있는 동안에는 잘리지 않게 스크롤 칸을 잠시 풀어 줌 */
.dm-sheet > .dm-sheet-form:has(.dm-picker) { overflow: visible; }
:root[data-dm-theme="dark"] .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body) { }
:root[data-dm-theme="dark"] .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body)::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
/* 확인 창(ask · askText)도 창은 고정, 글이 길면 안쪽만 스크롤 */
.dm-dialog { overflow: hidden; }
.dm-dialog-body { max-height: calc(100dvh - 64px); overflow: hidden auto; overscroll-behavior: contain; }
/* PC 다크 시트 테두리 — border 1px 이 안쪽 높이를 2 줄여 같은 높이(734)에서 스크롤이 생겼음 → 자리 차지 않는 안쪽 링으로 */
@media (min-width: 701px) {
  :root[data-dm-theme="dark"] .dm-sheet { border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .2); }
}
/* 선택지 위젯을 답한 뒤(Figma 1240:62723) — 고른 답은 회색 바탕 그대로 + 1px #2E2E2E 테두리 + 체크, 나머지 60%(시안 70%보다 옅게). 브라우저 기본 disabled 흐림(.45)은 쓰지 않음 */
.dm-wb-option:disabled { opacity: 1; cursor: default; }
.dm-wb-choices.has-choice .dm-wb-option:disabled:not([aria-selected="true"]) { opacity: .4; }   /* 테두리를 없앤 뒤 고른 답과 더 잘 구분되게 60% → 40%(2026-11-06) */

/* 선택 완료: 값·체크·선택 테두리는 유지하고 모든 조작을 잠근다(TASK-741, 파생).
   선택한 항목 .7 / 나머지 .4, 텍스트·선택 목록 .6. 라이트·다크는 기존 색을 그대로 쓴다. */
.is-input-locked :is(button, input, select, textarea, a[href], label, .card-remote-shot) { pointer-events: none; cursor: default; }
.is-input-locked :is(button, a[href]), .is-input-locked .login-method:disabled { opacity: .4; }
.is-input-locked :is(.dm-wb-option[aria-selected="true"], .is-input-picked) { opacity: .7; }
.is-input-locked .is-input-picked { box-shadow: inset 0 0 0 1px var(--dm-ui-border-strong); }
.is-input-locked :is(label:has(input), label:has(select), label:has(textarea)) { opacity: .6; }
.is-input-locked label:has(input:is([type="radio"], [type="checkbox"])) { opacity: .4; }
.is-input-locked label:has(input:is([type="radio"], [type="checkbox"]):checked) { opacity: .7; }
.is-input-locked :is(input, select, textarea):disabled { -webkit-text-fill-color: currentColor; }

/* 모바일에서 누를 때 브라우저 기본 탭 하이라이트(버튼보다 조금 큰 회색 사각형)가 우리 눌림 상태 위에 한 겹 더 깔리지 않게 — 눌림은 Figma 에서 정한 것만 */
* { -webkit-tap-highlight-color: transparent; }

/* ── 화면 전환 (View Transitions) — 다시 그리는 동안 이전 화면을 붙잡아 두어 깜박임 없이. 기본은 짧은 크로스페이드 0.18초 ── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease-out; }
/* 모바일 화면 밀어 넣기: 채팅 → 메뉴, 메뉴 → 활동 · 앱 및 서비스 연결 · 설정(2026-11-05 추가)은 모두 사이드 메뉴가 열리던 그대로 —
   새 화면이 오른쪽에서 들어오고 아래 화면은 살짝 어두워짐. 돌아갈 땐 오른쪽으로 밀려 나감 */
:root[data-nav="menu-in"]::view-transition-old(root) { animation: dm-nav-dim .32s ease-out both; }
:root[data-nav="menu-in"]::view-transition-new(root) { animation: dm-nav-slide-in .34s cubic-bezier(.2, .8, .2, 1) both; }
:root[data-nav="menu-out"]::view-transition-old(root) { z-index: 2; animation: dm-nav-slide-out .28s cubic-bezier(.4, 0, .2, 1) both; }
:root[data-nav="menu-out"]::view-transition-new(root) { z-index: 1; animation: dm-nav-undim .28s ease-out both; }
@keyframes dm-nav-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes dm-nav-slide-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes dm-nav-dim { from { filter: none; } to { filter: brightness(.85); } }
@keyframes dm-nav-undim { from { filter: brightness(.85); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; } }
/* 그 밖의 메뉴 ↔ 화면(통화 · 예약 시트 등): 움직임 없이 바로 바뀜(이전 화면을 붙잡은 채 바꿔 깜박임만 막음) */
:root[data-nav="still"]::view-transition-old(root), :root[data-nav="still"]::view-transition-new(root) { animation: none; }

/* ── 동선 목록(장소 목록 numbered) — 줄 앞 순서 번호 24 원(검정 바탕 흰 글자 13 SemiBold), 장소 사이 이동 정보 13 `--w-muted` + 일정과 같은 세로선 ── */
/* 과정(배송 · 예약 · 주문 진행) — 배송 조회 화면들처럼: 이어진 한 줄 위에 같은 크기 점. 지난 · 지금은 gray800, 남은 단계는 옅은 회색 */
.dm-wb-stops { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 14px; margin: 0; padding: 4px 0 0 2px; list-style: none; --step-on: var(--w-strong); --step-off: var(--w-bar); } /* gray800s — 주 버튼과 같은 색 */
.dm-wb-stop, .dm-wb-leg { display: contents; }
.dm-wb-rail { position: relative; }
.dm-wb-rail::before { content: ""; position: absolute; top: 11px; bottom: -11px; left: 4px; width: 2px; background: var(--step-on); }
.dm-wb-stop.is-now .dm-wb-rail::before, .dm-wb-stop.is-next .dm-wb-rail::before, .dm-wb-stop.is-now + .dm-wb-leg .dm-wb-rail::before { background: var(--step-off); }
.dm-wb-leg .dm-wb-rail::before { top: -11px; }
.dm-wb-stop:last-child .dm-wb-rail::before { display: none; }
.dm-wb-rail::after { content: ""; position: absolute; z-index: 1; top: 6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--step-on); }
.dm-wb-leg .dm-wb-rail::after { display: none; }
.dm-wb-stop.is-next .dm-wb-rail::after { background: var(--w-off); }
/* 지금 단계: 점에서 옅은 원이 퍼져 나가며 사라진다(물결) */
.dm-wb-stop.is-now .dm-wb-rail::after { animation: dm-step-ripple 1.6s cubic-bezier(.2, .6, .35, 1) infinite; }
@keyframes dm-step-ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--step-on) 35%, transparent); }
  100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--step-on) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .dm-wb-stop.is-now .dm-wb-rail::after { animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-on) 18%, transparent); } }
.dm-wb-stop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-wb-stop:has(+ .dm-wb-stop) .dm-wb-stop-body { padding-bottom: 18px; }
.dm-wb-stop-body strong { overflow: hidden; color: var(--w-ink-2); font-size: 15px; font-weight: 500; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-stop.is-now .dm-wb-stop-body strong { color: var(--w-ink); font-weight: 600; }
.dm-wb-stop.is-next .dm-wb-stop-body strong, .dm-wb-stop.is-next .dm-wb-meta { color: var(--w-hint); }
.dm-wb-leg-text { padding: 8px 0 12px; color: var(--w-hint); font-size: 12px; line-height: 16px; }

/* ── 작은 메뉴가 뜰 때 쫀득하게(2026-11-05): 입력창 + 메뉴 · 활동 등 ··· 더보기 메뉴.
   버튼 쪽 모서리에서 88% 크기로 시작해 살짝 커졌다(약 101%) 제자리로 — 실제 감쇠 스프링(감쇠비 .62) 한 곡선(linear()), 0.32초(0.6초는 느리다고 함). 투명도는 0.1초에 먼저 다 보임 */
.attachment-picker-menu, .dm-act-menu { animation: dm-pop-fade .1s ease-out both, dm-pop-scale .24s cubic-bezier(.2, .9, .3, 1.25) both; }
@supports (animation-timing-function: linear(0, 1)) {
  .attachment-picker-menu, .dm-act-menu { animation: dm-pop-fade .1s ease-out both, dm-pop-scale .32s linear(0, 0.047, 0.164, 0.315, 0.477, 0.63, 0.765, 0.875, 0.96, 1.019, 1.057, 1.077, 1.083, 1.08, 1.071, 1.059, 1.045, 1.032, 1.021, 1.011, 1.004, 0.999, 0.995, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.999, 1) both; }
}
.attachment-picker-menu { transform-origin: 22px 100%; }   /* + 버튼(아래 왼쪽)에서 */
.dm-act-menu { transform-origin: calc(100% - 12px) 0; }   /* ··· 버튼(위 오른쪽)에서 */
@keyframes dm-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-pop-scale { from { transform: scale(.88); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .attachment-picker-menu, .dm-act-menu { animation: dm-pop-fade .14s ease-out both; } }

/* ── 상단 GNB 단무지 상태(Figma 284:21159) — 보이는 알약(bubble) 기준, 모두 높이 56 · 폭 고정(2026-11-05 다시 잼):
   단무지 113 · 생각 중 · 전화 중 · 쉬는 중 · 해냈어요 118 · 리서치 중 130 · 웹 검색 중 134 · 완료하지 못했어요 179.
   안쪽: 왼 14 · 그림 38 · 6 · 글 · 오른 20(해냈어요만 왼 9.5 · 그림 40 · 4 · 글). 내용은 가운데 기준이라 폭이 바뀔 때 양쪽으로 같이 늘고 줄어듦.
   글자 색: 단무지 · 해냈어요 #191919(다크 #F2F2F2), 쉬는 중 · 완료하지 못했어요 #767676(다크 #A6A6A6) */
body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status { box-sizing: border-box; width: 118px; height: 56px; padding: 0 20px 0 14px; gap: 6px; justify-content: center; }
/* PC 상태창도 테두리를 고리(::after)로 그려 모바일과 같은 안쪽 여백(2026-11-06) */
body.figma-chat-page .figma-chat-identity[data-mascot-state="default"], .figma-desktop-chat-status[data-mascot-state="default"] { width: 113px; }
body.figma-chat-page .figma-chat-identity[data-mascot-state="searching"], .figma-desktop-chat-status[data-mascot-state="searching"] { width: 134px; }
/* 리서치 중(Figma 912:60538, 2026-11-10): 왼 14 · 그림 38 · 6 · 글 · 오른 20 = 130 */
body.figma-chat-page .figma-chat-identity[data-mascot-state="researching"], .figma-desktop-chat-status[data-mascot-state="researching"] { width: 130px; }
body.figma-chat-page .figma-chat-identity[data-mascot-state="failed"], .figma-desktop-chat-status[data-mascot-state="failed"] { width: 179px; }
body.figma-chat-page .figma-chat-identity[data-mascot-state="done"], .figma-desktop-chat-status[data-mascot-state="done"] { padding: 0 15.5px 0 9.5px; gap: 4px; }
/* PC 해냈어요도 모바일과 같은 여백(바로 위 규칙) */
body.figma-chat-page .figma-chat-identity[data-mascot-state="done"] img, .figma-desktop-chat-status[data-mascot-state="done"] img { width: 40px; height: 40px; }
.figma-chat-identity:is([data-mascot-state="default"], [data-mascot-state="done"]) strong, .figma-desktop-chat-status:is([data-mascot-state="default"], [data-mascot-state="done"]) strong { color: #131A20; }
:root[data-dm-theme="dark"] .figma-chat-identity:is([data-mascot-state="default"], [data-mascot-state="done"]) strong, :root[data-dm-theme="dark"] .figma-desktop-chat-status:is([data-mascot-state="default"], [data-mascot-state="done"]) strong { color: #F3F5F7; }
/* 모바일 메뉴: 단무지(기본)일 땐 아래 상태 글을 비워 두되 자리는 유지(제목 「단무지」와 겹치지 않게) */
.dm-menu-hero p.is-blank { visibility: hidden; }

/* 상태가 바뀔 때 잠깐(0.14초) 남아 사라지는 이전 그림 · 글(app.js ghostPill) — 알약 안 제자리에 겹쳐 둠 */
.figma-chat-identity, .figma-desktop-chat-status { position: relative; }
/* 누르면 활동으로(TASK-1311 · MANGO-80): 눌림은 「대기 등록하기」 버튼의 누를 때 0.97배·0.15초를 빌려 쓴 파생값 */
.figma-chat-identity, .figma-desktop-chat-status { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.figma-chat-identity:active, .figma-desktop-chat-status:active { transform: scale(.97); }
.dm-menu-hero { position: relative; }   /* 상태가 바뀔 때 이전 그림 · 글을 겹쳐 두고 사라지게(상단과 같은 모션) */
.dm-pill-ghost { position: absolute; margin: 0; pointer-events: none; white-space: nowrap; }

/* ── 새 답 알림(Figma 1386:66315 · 최대 길이 1386:65963) — 위로 올려 읽는 중 단무지 답이 오면 「맨 아래로」 화살표 자리에 대신 뜸.
   높이 38 유리 알약(흰 70% · 흐림 5 · 흰 테두리 1 · 그림자 0 0 2 10% / 0 1 15 8%), 안쪽 왼 11 · 단무지 24 · 4 · 글 · 오른 11,
   글 14 Regular / 21 #424242 한 줄(넘치면 …), 가운데 정렬, 최대 폭 = 화면 양옆 16 뺀 폭(393 에서 361). 입력창 위 12 ── */
.dm-new-reply { position: absolute; z-index: 1; bottom: calc(100% + var(--scroll-down-gap, 16px) - 4px); left: 50%; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; max-width: min(361px, calc(100vw - 32px)); height: 40px; padding: 8px 11px; border: 0; border-radius: 32px;   /* 테두리 없음, 위아래 8 · 그림 24 → 높이 40 (2026-11-05 사용자 조정, 시안 38) */
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 15px rgba(0, 0, 0, .08); color: #3D4348; font: 400 14px / 21px var(--dm-ui-font-family); white-space: nowrap; cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, 8px) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.34, 1.4, .64, 1); }   /* 사라짐 = 「맨 아래로」 화살표와 같음 */
.dm-new-reply.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.dm-new-reply-face { position: relative; flex: none; width: 24px; height: 24px; overflow: hidden; }
.dm-new-reply-face img { position: absolute; left: 4.31%; top: -3.55%; width: 100%; height: 100%; }   /* Figma 「단무지 1」 그림 자리 그대로 */
.dm-new-reply-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 색은 바뀌지 않음. 마우스를 올리면 98%, 누르면 96% 로 아주 살짝 작아지고(0.12초), 떼거나 클릭하면 쫀득하게 원래 크기로
   (감쇠 스프링 한 곡선 0.42초 — 아주 살짝 지나쳤다 제자리). 상태는 app.js 가 is-hover · is-pressed 로 붙임 */
.dm-new-reply.is-shown { transition: opacity .2s ease-out, transform .42s linear(0, 0.039, 0.137, 0.269, 0.414, 0.557, 0.689, 0.803, 0.896, 0.968, 1.021, 1.055, 1.075, 1.083, 1.082, 1.076, 1.066, 1.054, 1.042, 1.03, 1.02, 1.012, 1.005, 1, 0.996, 0.994, 0.993, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 1); }   /* 출렁임 약 9%(23% 는 덜렁거린다고 줄임) */
.dm-new-reply.is-shown.is-hover { transform: translate(-50%, 0) scale(.98); transition: opacity .2s ease-out, transform .12s ease-out; }
.dm-new-reply.is-shown.is-pressed { transform: translate(-50%, 0) scale(.96); transition: opacity .2s ease-out, transform .12s ease-out; }
:root[data-dm-theme="dark"] .dm-new-reply { background-color: rgba(32, 32, 32, .7); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); color: #DAE0E6; }   /* Figma 1418:67414 */
@media (prefers-reduced-motion: reduce) { .dm-new-reply { transition: opacity .2s; } }

/* 「여기까지 읽었어요」 피드(Figma 501:169387) — 위아래 8 · 양옆 16, 점선(0.5 · #A6A6A6 · 1 간격) — 16 — 12 Regular / 1.52 #767676 — 16 — 점선 */
body.figma-chat-page .chat-feed.feed-read { flex-direction: row; gap: 16px; padding: 8px 0;   /* 대화 영역이 이미 화면 양옆 16 안쪽이라 여백 0 → 점선이 화면 끝 16 에서 시작(Figma 501:168901) */
  font-size: 12px; line-height: 1.52; color: var(--chat-muted); white-space: nowrap; }
body.figma-chat-page .chat-feed.feed-read::before, body.figma-chat-page .chat-feed.feed-read::after { content: ''; flex: 1 1 0; min-width: 0; height: 1px; background: repeating-linear-gradient(90deg, #a6a6a6 0 1px, transparent 1px 2px); transform: scaleY(.5); }   /* 0.5px 은 그려지지 않을 때가 있어 1px 을 반으로 */

/* 첫 화면 환영 말풍선 — 한꺼번에 뜨지 않고 단무지가 하나씩 보내는 것처럼 0.6초 간격으로(새 답 도착과 같은 움직임). 처음 볼 때 한 번만(app.js is-intro) */
body.figma-chat-page .figma-chat-intro.is-intro > * { transform-origin: 0 100%; animation: dm-arrive-reply .3s cubic-bezier(.34, 1.3, .64, 1) both; }
body.figma-chat-page .figma-chat-intro.is-intro > :nth-child(1) { animation-delay: .2s; }
body.figma-chat-page .figma-chat-intro.is-intro > :nth-child(2) { animation-delay: .8s; }
body.figma-chat-page .figma-chat-intro.is-intro > :nth-child(3) { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) { body.figma-chat-page .figma-chat-intro.is-intro > * { animation: none; } }

/* PC 첫 화면도 모바일처럼 채팅 말풍선 환영(예전 홈 같은 큰 환영 블록 대신) — 환영은 대화 맨 위 첫 메시지로 남음 */
@media (min-width: 701px) {
  body.figma-chat-page .chat-welcome { max-width: none; margin: 0; text-align: left; }
  body.figma-chat-page .figma-chat-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  body.figma-chat-page .figma-chat-intro > .bubble { max-width: min(560px, 85%); }
  body.figma-chat-page .figma-desktop-welcome { display: none; }
  body.figma-chat-page .messages.is-empty { display: flex; flex-direction: column; justify-content: flex-start; }
}

/* 고칠 수 있는 값(개인 정보 「사용자 이름」 등) — 값 오른쪽에 연필(Figma Mono/Edit/Pencil01_line 1428:69056) 16 · 간격 4, 값 글자와 같은 색(다크도 따라감) */
.dm-set-row small.dm-set-editable { display: inline-flex; align-items: center; gap: 4px; }
.dm-set-editable i { flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url('assets/figma/icons/pencil-line.svg') center / 16px 16px no-repeat; mask: url('assets/figma/icons/pencil-line.svg') center / 16px 16px no-repeat; }

/* ── PC 말풍선 호버: 보낸 시각 + 복사하기(2026-11-05) — 묶음 맨 아래 메시지 밑 4, 내 메시지는 오른쪽 · 단무지는 왼쪽 정렬.
   시각 13 · 복사 아이콘 Figma Mono/System Icon/Copy_line(1428:69448) 14, 둘 다 gray400(#B2B2B2 · 다크 #7C7C7C), 사이 8 · 높이 16 · 말풍선 아래 8(사용자 지정) — 말하는 사람이 바뀌는 사이 24 를 꽉 채움. 말풍선 ↔ 시각 줄 틈도 시각 줄 영역(padding)이라 마우스가 내려가도 안 사라짐. 0.15초에 나타남. 모바일은 길게 누르기 메뉴(예정)라 숨김 */
.message-meta, .message-side { display: none; }   /* PC 호버 전용 — 모바일 폭에선 안 보임 */
@media (hover: hover) and (min-width: 701px) {
  body.figma-chat-page .message[data-mid] { position: relative; }
  body.figma-chat-page .message-meta { position: absolute; top: 100%; display: flex; align-items: center; gap: 8px; height: 16px; padding: 8px 4px 0; box-sizing: content-box;   /* 시각 · 복사 묶음 양옆 4(말풍선 끝에서 4 들어옴) */
  color: #AEB3B8; font-size: 13px; line-height: 16px; opacity: 0; pointer-events: none; transition: opacity .15s ease-out; }
  body.figma-chat-page .user-message > .message-meta { right: 0; }
  body.figma-chat-page .assistant-message > .message-meta { left: 0; }   /* 단무지 답이 하나뿐일 때는 아래(여러 개면 말풍선 옆 .message-side) */
  /* 단무지 답: 마우스를 올린 말풍선 · 위젯 오른쪽(말풍선 끝 ↔ 시각 글자 8), 아래 끝에 맞춤. 시각 + 복사(위젯은 시각만), 색 · 크기는 내 메시지 시각 줄과 같음 */
  body.figma-chat-page .message-side { position: absolute; z-index: 1; display: flex; align-items: center; gap: 8px; height: 16px; padding: 0 4px 4px; box-sizing: content-box;   /* 아래 4 — 시각이 말풍선 아래 끝에서 4 위 */
  color: #AEB3B8; font-size: 13px; line-height: 16px; white-space: nowrap; opacity: 0; pointer-events: none; }
  body.figma-chat-page .message-side.is-shown { opacity: 1; pointer-events: auto; transition: opacity .15s ease-out; }
  :root[data-dm-theme="dark"] body.figma-chat-page .message-side { color: #777D83; }
  body.figma-chat-page .message.is-meta > .message-meta { opacity: 1; pointer-events: auto; }
  .message-copy { position: relative; display: block; width: 24px; height: 24px; margin: -4px; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }   /* 누를 칸 24(보이는 자리는 16 그대로) */
  .message-copy::before { content: ''; position: absolute; inset: 0; background: currentColor; -webkit-mask: url('assets/figma/icons/copy-line.svg') center / 14px 14px no-repeat; mask: url('assets/figma/icons/copy-line.svg') center / 14px 14px no-repeat; }   /* 14 — 13 글자와 키를 맞춤(16 은 위로 튀어나와 떠 보였음) */
  .message-copy::before { transition: opacity .12s ease-out; }
  .message-copy.is-copied::before { -webkit-mask-image: url('assets/figma/widget/form/check.svg'); mask-image: url('assets/figma/widget/form/check.svg'); animation: dm-copied .18s ease-out; }   /* 복사되면 선 모양 체크(선택 위젯과 같은 Figma 체크)로 1.5초 */
  @keyframes dm-copied { from { opacity: 0; } to { opacity: 1; } }
  .message-copy:hover { background: rgba(0, 24, 46, 0.04); color: #72777C; }   /* 호버: 옅은 바탕 + 아이콘 한 단계 진하게(gray550) */
  :root[data-dm-theme="dark"] .message-copy:hover { background: rgba(243, 245, 247, 0.08); color: #A2A8AE; }
  :root[data-dm-theme="dark"] body.figma-chat-page .message-meta { color: #777D83; }
}

/* ── 모바일 길게 누르기 메뉴(2026-11-05) — 활동 「··· 더보기」 메뉴(dm-act-menu)를 그대로 쓰고, 말풍선 옆에 고정 위치로.
   맨 위 보낸 시각(13 gray400), 답장하기 · 복사하기(아이콘 24). 누르는 동안엔 변화 없음 — 메뉴가 뜨는 순간 살짝 커지며 강조(짧게 누를 때 크기가 바뀌면 이상해 보여 뺌) */
.dm-msg-menu { position: fixed; z-index: 60; top: auto; right: auto; width: 200px; --act-ink: #131A20; --act-menu: #fff; --act-fill: rgba(0, 24, 46, 0.04); }
:root[data-dm-theme="dark"] .dm-msg-menu { --act-ink: #F3F5F7; --act-menu: #202020; --act-fill: rgba(243, 245, 247, 0.08); --act-menu-line: rgba(255, 255, 255, .08); }
.dm-msg-menu-time { margin: 0; padding: 12px 16px 0; color: #AEB3B8; font-size: 13px; line-height: 16px; }
:root[data-dm-theme="dark"] .dm-msg-menu-time { color: #777D83; }
.dm-msg-menu .dm-msg-menu-time + button { border-top: 0; }
.dm-msg-menu button { gap: 10px; }   /* 아이콘 20(24 칸 안 여백 2) → 글자까지 보이는 간격 12 — 12+2=14 는 넓어 보여서 줄임 */
.dm-msg-menu .is-reply::before { content: ''; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: url('assets/figma/icons/reply-line.svg') center / 20px 20px no-repeat; mask: url('assets/figma/icons/reply-line.svg') center / 20px 20px no-repeat; }   /* Figma Mono/System Icon/Reply_line(1461:69528) — 24 칸에 20 으로(22 는 커 보여서 줄임) */
.dm-msg-menu .is-copy::before { content: ''; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: url('assets/figma/icons/copy-line.svg') center / 20px 20px no-repeat; mask: url('assets/figma/icons/copy-line.svg') center / 20px 20px no-repeat; }   /* 답장과 같이 20 */
@media (max-width: 700px) {
  body.figma-chat-page .message .bubble, body.figma-chat-page .message .dm-widget { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  /* 대화 영역을 화면 양옆 끝까지 넓히고 같은 만큼 안쪽 여백 — 말풍선 자리는 그대로, 강조된 말풍선의 그림자 · 커진 가장자리가 영역 끝에서 잘리지 않게 */
  body.figma-chat-page .messages { margin-inline: -16px; padding-inline: 16px; }
  /* 메뉴가 떠 있는 동안: 그 말풍선은 102% 로 떠오르고 옅은 그림자, 나머지 말풍선 · 위젯 · 피드는 35% 로 흐리게(0.2초) */
  body.figma-chat-page .messages > * { transition: opacity .2s ease-out; }
  body.figma-chat-page .messages.has-msg-menu > :not(:has(.is-menu-target)) { opacity: .35; }
  body.figma-chat-page .messages.has-msg-menu .message:has(.is-menu-target) :is(.bubble, .dm-widget):not(.is-menu-target) { opacity: .35; transition: opacity .2s ease-out; }   /* 같은 메시지 안 다른 말풍선만(겹쳐 흐려지지 않게) */
  /* 커질 때 · 꺼질 때 모두 제 쪽 아래 모서리 기준(평소에도 지정 — 꺼지는 순간 기준점이 바뀌어 덜컹이던 것) */
  body.figma-chat-page .assistant-message :is(.bubble, .dm-widget) { transform-origin: left bottom; }
  body.figma-chat-page .user-message :is(.bubble, .dm-widget) { transform-origin: right bottom; }
  body.figma-chat-page .message :is(.bubble, .dm-widget) { transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease-out, opacity .2s ease-out; }
  body.figma-chat-page .messages.is-scroll-locked { overflow: hidden; touch-action: none; overscroll-behavior: contain; }   /* 메뉴가 떠 있는 동안 스크롤 안 됨 */
  body.figma-chat-page .message .is-menu-target { position: relative; z-index: 2; transform: scale(1.02); box-shadow: 0 4px 20px rgba(0, 0, 0, .12); transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s ease-out; }
  :root[data-dm-theme="dark"] body.figma-chat-page .message .is-menu-target { box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
}
/* 답장(Figma 1461:69621) — 입력창 안 맨 위: 「단무지에게 답장」 14 Medium #191919 / 원래 말 14 #767676 한 줄(…), 사이 1,
   오른쪽 위 닫기(첨부 칩과 같은 회색 동그라미 ×), 아래 12 에 구분선(검정 4%) → 입력 줄 → + · 보내기(두 줄 배치와 같음) */
.composer-reply[hidden] { display: none; }
body.figma-chat-page .composer:has(.composer-reply:not([hidden])) { grid-template-areas: "reply reply reply" "text text text" "plus . action"; grid-template-rows: auto; align-content: end; align-items: end; row-gap: 12px; padding: 12px 10px 10px; }   /* 답장일 때 위 12(Figma 1461:69912) */
body.figma-chat-page .composer:has(.composer-reply:not([hidden])):has(.composer-files:not(:empty)) { grid-template-areas: "reply reply reply" "files files files" "text text text" "plus . action"; }
body.figma-chat-page .composer:has(.composer-reply:not([hidden])) textarea { padding: 0 12px; }
.composer-reply { grid-area: reply; position: relative; align-self: stretch; padding: 0 12px 12px; }
.composer-reply::after { content: ''; position: absolute; right: 12px; bottom: 0; left: 12px; height: 1px; background: rgba(0, 0, 0, .04); }   /* 구분선은 글과 같은 폭(양옆 12 안쪽, 시안 317) */
.composer-reply-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-right: 28px; font-size: 14px; line-height: 1.5; }
.composer-reply-text strong { overflow: hidden; color: #131A20; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.composer-reply-text span { overflow: hidden; color: #72777C; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.composer-reply-close { position: absolute; top: -2px; right: 0; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: url('assets/figma/composer/chip-close.svg') center / 24px no-repeat; cursor: pointer; }
:root[data-dm-theme="dark"] .composer-reply::after { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .composer-reply-text strong { color: #F3F5F7; }
:root[data-dm-theme="dark"] .composer-reply-text span { color: #A2A8AE; }
:root[data-dm-theme="dark"] .composer-reply-close { background-image: url('assets/figma/composer/reply-close-dark.svg'); }   /* 다크: 동그라미 흰 20%(첨부 칩 닫기는 검정 20% 그대로) */

/* 그림 블록(2026-11-06) — 따로 틀(테두리 · 그림자 · 배경 · 모서리) 없이 위젯 카드 테두리 안에 그림만, 글 폭에 맞춰 비율 그대로 */
.dm-wb-image img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.dm-wb-image.is-square img { width: 160px; height: 160px; margin-inline: auto; }   /* QR: 가운데 160 */
.dm-wb-point { position: relative; }   /* 그림 위 지점 고르기(TASK-1204): 그림 전체를 줄이지 않고 보여 누른 곳이 원래 픽셀로 바로 맞게 */
.dm-wb-point img { max-height: none; cursor: crosshair; }
.dm-wb-image.is-qr img { width: 150px; max-width: 100%; height: auto; max-height: none; margin-inline: auto; } /* QR 가운데 150(2026-11-11 사용자 지정 — 전 카드 너비: 모바일 약 290 · PC 약 440), 원본 비율 유지 */
/* 단계 그림(TASK-989, 파생) — 입력칸 배경(#F5F5F5 / 다크 파일 타일 #151515) 반경 14 상자 안에 제목(정리 목록 항목명 13 SemiBold) + 그림 n장을 같은 너비로 한 줄, 아래 이름(도움말 12 · 16). 새 토큰 없음 */
.dm-wb-steps { margin: 0; padding: 12px 10px; border-radius: 14px; background: rgba(0, 24, 46, 0.04); }
.dm-wb-steps-title { margin-bottom: 8px; color: #545A60; font-size: 13px; font-weight: 600; line-height: 18px; text-align: center; }
.dm-wb-steps-text { margin: -2px 0 10px; color: #545A60; font-size: 13px; line-height: 18px; text-align: center; word-break: keep-all; }
.dm-wb-steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.dm-wb-steps-list:has(> .dm-wb-step:only-child) { max-width: 240px; margin-inline: auto; }   /* 그림 한 장(기기 승인 알림)은 가운데 240 */
.dm-wb-step { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; }
.dm-wb-step img { display: block; width: 100%; height: auto; }
.dm-wb-step span { color: #72777C; font-size: 12px; line-height: 16px; text-align: center; word-break: keep-all; }
:root[data-dm-theme="dark"] .dm-wb-steps { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-wb-steps-title,
:root[data-dm-theme="dark"] .dm-wb-steps-text { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-wb-step span { color: #A2A8AE; }
[data-qr-stage="launch"] .dm-wb-buttons:has([data-qr-confirm]),
[data-qr-stage="check"] .dm-wb-buttons:has([data-qr-launch]) { display: none; }
/* 사이트 QR 전용 로그인(당근, TASK-1098): QR로그인을 눌렀거나 로그인 화면을 벗어나면 QR · QR로그인을 숨기고 「확인했어요」만. 새 토큰 없음 */
[data-site-qr-stage="check"] .dm-wb-image.is-qr,
[data-site-qr-stage="check"] .login-qr-link { display: none; }
/* 입력 위젯(is-form, 블록 간격 20)에서도 제목 → 설명은 알림 · 확인 위젯과 같은 4 (2026-11-06 승인 위젯 조합) */
.dm-widget.is-form .dm-wb-notice.is-strong + .dm-wb-text { margin-top: -16px; }

/* ── 입력창 · 상단 상태창도 GNB 유리 버튼과 같은 1px 그라데이션 테두리(2026-11-06) ──
   상태창: 버튼과 같은 ::after 고리(137°, 라이트 흰 70%→0→0→70% · 다크 20%→2.5%→2.5%→25%).
   입력창도 같은 ::after 고리(SVG 배경 테두리로 그렸더니 둥근 끝에서 선이 두꺼워 보여 바꿈, 2026-11-06) */
body.figma-chat-page #composer.composer, body.figma-chat-page #composer.composer:focus-within {
  position: relative;
  /* 그라데이션 선 위에 안쪽 1px gray050a(검정 4%)를 덧댐(2026-11-06) — 밝은 바탕에서도 가장자리가 보이게 */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05);
}
body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status { border: 0; }
.figma-desktop-chat-status { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1); }
:root[data-dm-theme="dark"] .figma-desktop-chat-status { border: 0; }
:is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status, body.figma-chat-page #composer.composer)::after {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(137deg, rgba(255, 255, 255, .7) 16%, rgba(255, 255, 255, 0) 50.8%, rgba(255, 255, 255, 0) 68.1%, rgba(255, 255, 255, .7) 85.5%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:root[data-dm-theme="dark"] :is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status, body.figma-chat-page #composer.composer)::after {
  background: linear-gradient(137deg, rgba(255, 255, 255, .2) 16%, rgba(255, 255, 255, .025) 29.9%, rgba(255, 255, 255, .025) 71.6%, rgba(255, 255, 255, .25) 85.5%);
}

:root[data-dm-theme="dark"] body.figma-chat-page #composer.composer { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); }   /* 다크 gray050a = 흰 8% */

/* 앱 및 서비스 연결 아래 「암호화로 보호 중이에요」(2026-11-06)
   · 위치: 어느 칩에서든 「전체」처럼 화면 맨 아래에 딱 붙게(짧은 목록에서 아래 16 떠 있던 것 없앰)
   · 바탕: 위로 24 흐려지는 그라데이션(목록이 안내 아래로 지나갈 때 잘린 줄이 아니라 서서히 사라지게) */
.dm-activity.dm-connections { padding-bottom: 0; }
.dm-conn-secure::before { content: ''; position: absolute; right: 0; bottom: 100%; left: 0; height: 24px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
:root[data-dm-theme="dark"] .dm-conn-secure::before { background: linear-gradient(rgba(8, 8, 8, 0), #080808); }

/* 활동 목록 마지막 → 화면 아래 30(2026-11-06, 전 16) — 모바일 · PC 모두. 모바일은 홈 막대 영역만큼 더 */
.dm-activity.dm-tasks { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
/* 앱 및 서비스 연결 페이지 분류 칩(2026-11-06): 사이 8 → 7, 글자 15 → 14. 칩 높이(42)는 그대로 — 줄 높이를 예전 값(23.1)으로 고정 */
.dm-connections > .dm-conn-chips { gap: 7px; }
.dm-connections > .dm-conn-chips .dm-conn-chip { font-size: 14px; line-height: 23.1px; }
/* 문서 끝에서 화면 전체가 고무줄처럼 늘어나며 위아래 빈 여백이 보이던 것 막음(2026-11-06) — PC · 모바일(웹뷰 포함) 모두. 머리 · 입력창은 그대로, 본문만 스크롤.
   iOS 16+ WKWebView · 안드로이드 WebView 가 지원. 앱 쪽에서도 막으려면 iOS scrollView.bounces = false(개발) */
html, body, #messages { overscroll-behavior-y: none; }
/* 입력창 유리 느낌(2026-11-06): 바탕 비침(70%) · 흐림(5)은 그대로 두고, 비친 색을 살림(채도 180% · 다크 160%). 위쪽 안에 얇은 빛(흰 1px)을 더해 유리 두께감. 테두리(그라데이션 고리 + gray050a)는 그대로 */
body.figma-chat-page #composer.composer {
  background-color: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  backdrop-filter: blur(5px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05);
}
:root[data-dm-theme="dark"] body.figma-chat-page #composer.composer {
  background-color: rgba(32, 32, 32, .7);
  -webkit-backdrop-filter: blur(5px) saturate(160%);
  backdrop-filter: blur(5px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05);
}
/* 다크 입력창 유리 선(2026-11-06): 정지점 [80 · 10 · 10 · 80%](시안 마지막 100% → 80%) — 선 전체 투명도 25% 를 곱해 20% · 2.5% · 2.5% · 20%. 버튼 · 상태창은 시안 그대로 */
:root[data-dm-theme="dark"] body.figma-chat-page #composer.composer::after { background: linear-gradient(to bottom right, rgba(255, 255, 255, .2) 16%, rgba(255, 255, 255, .025) 29.9%, rgba(255, 255, 255, .025) 71.6%, rgba(255, 255, 255, .2) 85.5%); }
/* 입력창 유리 선 방향(2026-11-06): 넓은 입력창에선 137° 면 밝은 곳이 양 끝 둥근 부분에만 몰려서, Figma 처럼 모서리 → 모서리(to bottom right)로 —
   윗변 왼쪽 · 아랫변 오른쪽이 밝게 이어져 빛이 유리 테를 타고 흐르는 느낌. 버튼 · 상태창은 그대로 */
body.figma-chat-page #composer.composer::after { background: linear-gradient(to bottom right, rgba(255, 255, 255, .7) 16%, rgba(255, 255, 255, 0) 50.8%, rgba(255, 255, 255, 0) 68.1%, rgba(255, 255, 255, .7) 85.5%); }
/* 링크가 하나뿐인 링크 위젯(2026-11-06): 머리 · 큰 썸네일(문서 미리보기와 같은 161 · 모서리 16) · 제목(두 줄까지) · 주소 */
.dm-wb-list.is-media.is-single .dm-wb-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 2px; }
.dm-wb-list.is-media.is-single .dm-wb-row-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.dm-widget-head + .dm-widget-body > .dm-wb-list.is-media.is-single:first-child { margin-top: 2px; }   /* 머리 → 눌림 바탕 위끝 8 */
/* 한 장짜리 링크 카드의 눌림/호버 바탕(2026-11-06): 썸네일(모서리 16)을 사방 8 로 감싸고 모서리 24(= 16 + 8)로 — 바탕과 썸네일 모서리가 같은 중심으로 맞게 */
.dm-wb-list.is-media.is-single .dm-wb-row { padding: 0; }
.dm-wb-list.is-media.is-single a.dm-wb-row::before { inset: -8px; border-radius: 16px; }   /* 링크 하나 hover 바탕 반경 24 → 16(2026-11-10, 너무 둥글다는 지적) */
/* 고르기 위젯 답 줄(2026-11-06): 고를 수 있는 동안 호버 · 누름 바탕(위에 검정 4% · 8%, 다크 흰 4% · 8%) — 다른 목록 줄과 같은 값.
   고른 답은 테두리 없이 체크 + 나머지 60% 로만 구분(전 1px gray150a 테두리) */
@media (hover: hover) {
  .dm-wb-option:not(:disabled):not([aria-selected="true"]):hover { background-image: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); }
  :root[data-dm-theme="dark"] .dm-wb-option:not(:disabled):not([aria-selected="true"]):hover { background-image: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); }
}
.dm-wb-option:not(:disabled):active { background-image: linear-gradient(rgba(0, 24, 46, 0.09), rgba(0, 24, 46, 0.09)); }
:root[data-dm-theme="dark"] .dm-wb-option:not(:disabled):active { background-image: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); }
.dm-wb-option[aria-selected="true"], :root[data-dm-theme="dark"] .dm-wb-option[aria-selected="true"] { border-color: transparent; }
/* 위젯 버튼 높이 44 통일(2026-11-06): 두 개 나란히 · 하나 · 더보기 · 제출 모두 44(전 나란히 · 더보기 40, 제출 44). 칩은 그대로 */
.dm-wb-buttons .dm-widget-btn, .dm-wb-status .dm-widget-btn { height: 44px; padding-top: 0; padding-bottom: 0; }
/* 통화 종료도 거는 중 · 통화 중과 같은 아이콘 크기(22, 제목 위)(2026-11-06) */
.dm-wb-notice .dm-widget-icon.is-call-ended { width: 22px; height: 22px; background-size: 22px 22px; background-repeat: no-repeat; background-position: center; }
/* 통화 위젯 제목 → 통화 기록 6(블록 간격 10 에서 -4, Figma 1581:40599, 2026-11-06) — 통화 결과 · 통화 종료 · 통화 중 모두 */
.dm-wb-notice + .dm-wb-transcript { margin-top: -4px; }

/* ── 모바일 사이드 메뉴 새 시안(2026-11-06, Figma 1577:43115 라이트 · 1577:44848 다크) — 디자인만, 버튼 · 이동 · 상태 연동은 그대로 ──
   위: 바탕 위에 뒤로 버튼(유리 44) · 캐릭터 120 이 노란 카드 위로 걸침
   노란 카드(좌우 8 · 모서리 34 · 안쪽 위 57 아래 26 좌우 20 · 사이 20): 「단무지」 24 Bold / 상태 15 Regular 60%(사이 4) · 통화 · 예약(원 50, 사이 34)
   사용량 카드(카드 아래 8 · 모서리 34 · 안쪽 30 · 사이 14): 라벨 14 Regular 70% / 값 16 SemiBold + 화살표 14 / 막대 5(파랑)
   목록(사용량 아래 20): 18 Bold, 줄 사이 1px 선(24 칸 가운데) */
@media (max-width: 700px) {
  .dm-menu-top { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: auto; padding: 74px 8px 0; border-radius: 0; background: none; }
  .dm-menu-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 57px 20px 26px; border-radius: 34px; background: #fcea4a; color: #131A20; }
  .dm-menu-hero { gap: 4px; }
  .dm-menu-hero img { position: absolute; top: -122px; left: calc(50% - 60px); width: 120px; height: 120px; margin: 0; object-fit: contain; }   /* 캐릭터 위끝 = 카드 위 -65(Figma 63 · 128) */
  .dm-menu-hero h2 { line-height: 32px; }
  .dm-menu-hero p { margin: 0; font-size: 15px; font-weight: 400; line-height: 23px; opacity: .6; }
  .dm-menu-actions { gap: 34px; }
  .dm-menu-usage { gap: 14px; margin-top: 0; padding: 30px; border-radius: 34px; background: #eff3f8; box-shadow: none; color: #131A20; }
  .dm-menu-usage-head > span { color: #131A20; font-size: 14px; font-weight: 400; opacity: .7; }
  .dm-menu-usage-head strong { font-size: 16px; font-weight: 600; }
  .dm-menu-usage-arrow { background-image: url('assets/figma/menu/usage-arrow.svg'); opacity: 1; }
  .dm-menu-usage-track { height: 5px; background: #fff; }
  .dm-menu-usage-track span { background: #0a73dc; }
  .dm-menu-links { margin-top: 20px; }
  :root[data-dm-theme="dark"] .dm-menu-usage { background: #242526; color: #F3F5F7; }
  :root[data-dm-theme="dark"] .dm-menu-usage-head > span { color: #F3F5F7; }
  :root[data-dm-theme="dark"] .dm-menu-usage-arrow { background-image: url('assets/figma/menu/usage-arrow-dark.svg'); }
  :root[data-dm-theme="dark"] .dm-menu-usage-track { background: #080808; }
  :root[data-dm-theme="dark"] .dm-menu-usage-track span { background: #49a8f8; }
  :root[data-dm-theme="dark"] .dm-menu-back { background-color: rgba(32, 32, 32, .7); background-image: url('assets/figma/menu/back-dark.svg'); }
}
/* 제출 버튼 옆 회색 보조 버튼(보안 문자 「화면에서 풀기」, 2026-11-06): 두 버튼 나란히 같은 너비 · 사이 6 · 높이 44 */
.dm-wb-buttons.is-submit-row .dm-widget-btn.is-submit { flex: 1; width: auto; }

/* 승인·선택 카드 버튼 줄(TASK-769, 사용자 요청): 모든 카드가 연결 카드 「나중에 / 연결하기」와 같은 큰 둥근 버튼.
   회색 보조 · 검정 주 버튼이 같은 너비로 나란히(사이 6), 주 버튼은 오른쪽 끝. 보조 동작(브라우저 보기 등)은 위 줄 전체 너비.
   긴 이름은 버튼 안에서 낱말 단위로 줄바꿈하고 높이를 44 이상으로 늘린다. 예전 카드의 .row button 모양(테두리 · 9 반경 · 11px)을 덮는다 */
.dm-wb-buttons.is-decision { flex-wrap: wrap; width: 100%; }
/* 예전 카드 틀: 버튼 줄은 카드 너비를 키우지 않는다(버튼이 많으면 버튼 폭 합만큼 카드가 넓어졌다). 카드는 내용 너비를 따르되
   버튼 줄이 있으면 적어도 위젯 카드 너비(--chat-widget-max)만큼은 둔다 */
.approval-card > .dm-wb-buttons.is-decision { width: 0; min-width: 100%; }
.approval-card:has(> .dm-wb-buttons.is-decision) { box-sizing: border-box; min-width: var(--chat-widget-max, 330px); max-width: 100%; }
.dm-wb-buttons.is-decision .dm-widget-btn { min-width: 0; height: auto; min-height: 44px; padding: 6px 20px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.dm-wb-buttons.is-decision .dm-widget-btn.is-aux { flex-basis: 100%; }
.dm-wb-buttons.is-decision .dm-widget-btn .ui-icon { flex: none; width: 16px; height: 16px; }
.dm-wb-buttons.is-decision .dm-widget-btn:disabled:not(.is-submit) { cursor: default; opacity: .5; }
/* 다크의 예전 카드는 바탕이 --dm-ui-surface 라 회색 버튼(#1a1a1a)이 묻힌다 — 위젯 채움색(흰 8%)으로 */
:root[data-dm-theme="dark"] .approval-card .dm-wb-buttons.is-decision .dm-widget-btn.is-secondary { background: var(--w-fill); }
@media (hover: hover) { :root[data-dm-theme="dark"] .approval-card .dm-wb-buttons.is-decision .dm-widget-btn.is-secondary:hover { background: rgba(243, 245, 247, 0.12); } }
:root[data-dm-theme="dark"] .approval-card .dm-wb-buttons.is-decision .dm-widget-btn.is-secondary:active { background: rgba(243, 245, 247, 0.12); }

/* Secondary login controls reuse the widget caption, pill and focus tokens. */
.login-options { width: 100%; max-width: 100%; padding-top: 8px; color: var(--dm-ui-text-secondary); font-size: 13px; line-height: 1.6; }
.login-options p { margin: 0 0 8px; }
.login-options-toggle, .login-options-list button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--dm-ui-border); border-radius: var(--dm-ui-radius-pill); background: var(--dm-ui-surface); color: var(--dm-ui-text-primary); font: inherit; cursor: pointer; }
.login-options-toggle { border: 0; background: transparent; color: var(--dm-ui-text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.login-options-list:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.login-methods[hidden] { display: none; }
.login-qr-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.login-options-list p { flex-basis: 100%; }
.login-options-list button:disabled { opacity: .45; cursor: default; }
.login-options button:focus-visible { outline: 2px solid var(--dm-ui-focus); outline-offset: 2px; }
.login-options-status:empty { display: none; }
.approval-message:has(.login-options) { flex-direction: column; align-items: stretch; }
.login-options, .login-options-list { scroll-margin-bottom: calc(var(--composer-bar-height, 80px) + 16px); }

/* 사진 뷰어(2026-11-09) — 테마와 관계없이 검은 바탕. 아이콘은 Figma GNB 닫기 · 뒤로(밝은 색) 그대로, 버튼은 GNB 처럼 동그란 44 */
.dm-photo-viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; touch-action: pan-y; }
.dm-pv-img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 160px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.dm-pv-close, .dm-pv-nav, .dm-pv-download { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12) center / 24px 24px no-repeat; cursor: pointer; }
.dm-pv-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; background-image: url('assets/figma/gnb/close-dark.svg'); }
.dm-pv-download { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 68px; background-image: url('assets/figma/gnb/download-dark.svg'); }
.dm-pv-nav { top: 50%; margin-top: -22px; background-image: url('assets/figma/gnb/back-dark.svg'); }
.dm-pv-nav.is-prev { left: 16px; }
.dm-pv-nav.is-next { right: 16px; transform: scaleX(-1); }
.dm-pv-close:hover, .dm-pv-nav:hover, .dm-pv-download:hover { background-color: rgba(255, 255, 255, .2); }
.dm-pv-close:focus-visible, .dm-pv-nav:focus-visible, .dm-pv-download:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dm-pv-count { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 14px; font-variant-numeric: tabular-nums; }
/* 휴대폰은 밀어서 넘김 — 좌우 버튼 숨김 */
@media (hover: none) { .dm-pv-nav { display: none; } }
body.figma-chat-page :is(.photo-tile:not(.is-failed) img, .md-image) { cursor: zoom-in; }

/* 브라우저 화면에서 직접 하는 보안 확인 위젯(2026-11-09, remoteWidget) — 화면은 그림처럼(링크 큰 썸네일과 같은 모서리 16, 테두리 없음).
   누르면 실제 브라우저를 누름, 두 손가락으로 확대 · 축소(touch-action pinch-zoom) */
.card-remote.dm-wb-remote { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dm-wb-remote .card-remote-shot { width: 100%; border: 0; border-radius: 16px; background: var(--w-solid); }
.dm-wb-remote .card-remote-note { margin: 0; color: var(--w-muted); font-size: 14px; line-height: 20px; }
.dm-wb-remote .card-remote-note[hidden] { display: none; }

/* 처리 중 버튼(2026-11-09): 누른 버튼은 흐려지거나 하얘지지 않고 제 바탕색 그대로, 글 자리에 「…」 점 세 개(답변 기다릴 때와 같은 움직임) */
.is-input-locked .is-busy, .is-busy { position: relative; opacity: 1 !important; box-shadow: none !important; color: transparent !important; cursor: progress; }
/* 2단계 인증 「확인했어요」 확인 중(TASK-985): 카드 전체를 잠금 불투명도 .4로 흐리고, 점 세 개 버튼과 상태 줄만 또렷하게 */
.is-device-verifying .dm-widget-body > :not(.dm-wb-buttons):not([data-device-status]), .is-device-verifying .dm-widget-head { opacity: .4; transition: opacity .15s; }
.is-busy > :not(.dm-btn-dots) { visibility: hidden; }
.dm-widget-btn.is-submit.is-busy { background: var(--w-strong); }
.dm-btn-dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; pointer-events: none; }
.dm-btn-dots i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--dm-typing-rest); animation: dm-typing-dot 1.1s ease-in-out infinite; }
.dm-btn-dots i:nth-child(2) { animation-delay: .15s; }
.dm-btn-dots i:nth-child(3) { animation-delay: .3s; }
.is-busy:is(.is-primary, .is-submit) .dm-btn-dots { --dm-typing-rest: rgba(255, 255, 255, .4); --dm-typing-on: #fff; }
.is-busy.is-secondary .dm-btn-dots { --dm-typing-rest: rgba(0, 24, 46, 0.22); --dm-typing-on: #545A60; }
:root[data-dm-theme="dark"] .is-busy:is(.is-primary, .is-submit) .dm-btn-dots { --dm-typing-rest: rgba(40, 40, 40, .35); --dm-typing-on: #282828; }
:root[data-dm-theme="dark"] .is-busy.is-secondary .dm-btn-dots { --dm-typing-rest: rgba(255, 255, 255, .2); --dm-typing-on: #C9CDD1; }
@media (prefers-reduced-motion: reduce) { .dm-btn-dots i { animation-duration: 2.2s; } }

/* 메일 정리 위젯(2026-11-09, mailCleanupCard) — 줄은 메일 위젯(.dm-wb-mail-row)과 똑같이, 오른쪽에 원형 체크(16, 체크 = 채움 --w-ink, 해제 = 선 --w-off).
   글 왼쪽 끝은 위젯 제목과 같은 줄. 누름 · 호버 바탕도 메일 줄과 같음. 체크를 푼 줄은 40%. 목록이 길면 위젯 안에서만 스크롤(최대 360) */
.dm-wb-mailpick { max-height: 360px; margin-inline: -12px; padding-inline: 12px; overflow: auto; overscroll-behavior: contain; }   /* 스크롤바는 위젯 안쪽 여백(12)에 — 체크 칸을 가리지 않게, 글 · 체크 끝은 그대로 */
.dm-wb-mailpick label.dm-wb-mail-row { position: relative; isolation: isolate; flex-direction: row; align-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-wb-mailpick label.dm-wb-mail-row::before { content: ''; position: absolute; z-index: -1; inset: 0 -8px; border-radius: 12px; background: transparent; transition: background-color .15s; }
@media (hover: hover) { .dm-wb-mailpick label.dm-wb-mail-row:hover::before { background: rgba(0, 24, 46, 0.04); } :root[data-dm-theme="dark"] .dm-wb-mailpick label.dm-wb-mail-row:hover::before { background: rgba(243, 245, 247, 0.08); } }
.dm-wb-mailpick label.dm-wb-mail-row:active::before { background: rgba(0, 24, 46, 0.09); }
:root[data-dm-theme="dark"] .dm-wb-mailpick label.dm-wb-mail-row:active::before { background: rgba(243, 245, 247, 0.12); }
.dm-wb-mailpick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }   /* 줄 전체가 체크 칸 */
.dm-wb-mailpick-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.dm-wb-mailpick .dm-wb-mail-subject, .dm-wb-mailpick .dm-wb-mail-preview { display: block; }
.dm-wb-mailpick-mark { flex: none; width: 16px; height: 16px; background: var(--w-off); -webkit-mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; }
.dm-wb-mailpick input:checked ~ .dm-wb-mailpick-mark { background: var(--w-ink); -webkit-mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); }
.dm-wb-mailpick input:focus-visible ~ .dm-wb-mailpick-mark { outline: 2px solid var(--w-accent); outline-offset: 2px; border-radius: 50%; }
.dm-wb-mailpick label:has(input:not(:checked)) .dm-wb-mailpick-text { opacity: .4; }

/* 활동 예약 ··· 메뉴 「편집」(2026-11-09) — Figma 연필(pencil-line) 아이콘을 메뉴 아이콘 색으로 */
.dm-act-menu .is-edit::before { background-image: url('assets/figma/activity/menu-edit.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .is-edit::before { background-image: url('assets/figma/activity/menu-edit-dark.svg'); }
/* 활동 통화 줄: 누르면 통화 상세 */
.dm-act-item.is-openable { cursor: pointer; }
/* 통화 내역 시트(openCallDetail, Figma 1683:56666 · 부재 1683:57594) — 높이 고정 677(852 화면 기준), 카드가 남은 높이를 채우고
   기록이 길면 카드 안에서만 스크롤. 기록이 짧아도 카드 · 시트 높이는 그대로. 연결 안 된 통화는 카드 없이 세 줄만 — 시트 높이는 기록 있는 통화와 같게(2026-11-09) */
.dm-sheet.dm-call-sheet { height: min(677px, calc(100dvh - 48px)); }
.dm-sheet.dm-call-sheet > .dm-call-detail { display: flex; flex: 1 1 auto; flex-direction: column; gap: 24px; min-height: 0; padding: 18px 16px 24px; overflow: hidden; }
.dm-call-rows { display: flex; flex: none; flex-direction: column; gap: 20px; }
.dm-call-rows p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0 4px; font-size: 15px; line-height: 1.5; }
.dm-call-rows span { flex: none; color: #545A60; }
.dm-call-rows strong { overflow: hidden; min-width: 0; color: #131A20; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dm-call-card { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 24px; background: rgba(0, 24, 46, 0.03); }
.dm-call-card::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 89px; border-radius: 0 0 24px 24px; background: linear-gradient(rgba(246, 247, 248, 0), #F6F7F8); pointer-events: none; }   /* 아래 끝 흐림(Figma 1683:58104) */
.dm-call-scroll { display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; min-height: 0; padding: 18px 22px; overflow: hidden auto; overscroll-behavior: contain; }
.dm-call-scroll::-webkit-scrollbar { width: 4px; }
.dm-call-scroll::-webkit-scrollbar-thumb { border-radius: 20px; background-color: rgba(0, 0, 0, .14); }
.dm-call-summary { flex: none; color: #131A20; font-size: 15px; font-weight: 600; line-height: 1.5; }
.dm-call-scroll hr { flex: none; width: 100%; height: 1px; margin: 6px 0; border: 0; background: rgba(0, 0, 0, .04); }
.dm-call-talk { display: grid; flex: none; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 6px; padding-bottom: 56px; }   /* 이름 칸은 가장 긴 이름 너비, 말과의 사이 6(2026-11-09) */   /* 마지막 줄이 흐림 밑에 묻히지 않게 */
.dm-call-talk p { display: contents; margin: 0; }
.dm-call-talk b { color: #282F35; font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.dm-call-talk span { min-width: 0; color: #545A60; font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.dm-call-none { margin: 0; color: #90959A; font-size: 14px; line-height: 18px; }
:root[data-dm-theme="dark"] .dm-call-rows span { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-call-rows strong, :root[data-dm-theme="dark"] .dm-call-summary { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-call-card { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-call-card::after { background: linear-gradient(rgba(45, 45, 45, 0), #2d2d2d); }
:root[data-dm-theme="dark"] .dm-call-scroll hr { background: rgba(255, 255, 255, .08); }
:root[data-dm-theme="dark"] .dm-call-scroll { }
:root[data-dm-theme="dark"] .dm-call-scroll::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
:root[data-dm-theme="dark"] .dm-call-talk b { color: #EDF0F3; }
:root[data-dm-theme="dark"] .dm-call-talk span { color: #C9CDD1; }
:root[data-dm-theme="dark"] .dm-call-none { color: #7D8389; }
/* 모바일: 아래 24 + 홈 인디케이터 자리 34(Figma 1683:57594). 아이폰처럼 safe area 가 있으면 시트가 그만큼 이미 띄우므로 모자란 만큼만 더한다 */
@media (max-width: 700px) { .dm-sheet.dm-call-sheet > .dm-call-detail { padding-bottom: calc(24px + max(0px, 34px - env(safe-area-inset-bottom, 0px))); } }
@media (min-width: 701px) { .dm-sheet.dm-call-sheet > .dm-call-detail { padding: 8px 24px 24px; } }
/* 통화 중(연결된 뒤) 위젯 테두리(2026-11-09, 다시 만듦): 회색 테두리(4) 대신 그 자리에 옅은 초록 줄 + 초록 꼬리가 둘레를 따라 같은 속도로 도는 SVG(callRing).
   테두리 두께만큼 안쪽 여백을 더해 위젯 크기 · 글 위치는 그대로. 2.8초에 한 바퀴(살짝 빨라졌다 느려지는 쫀득한 리듬), 끊김 없이 이어짐. 움직임 줄이기면 꼬리 없이 옅은 초록 줄만 */
.dm-widget.is-in_call { position: relative; border-width: 0; padding: 20px; }
.dm-call-ring { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); overflow: visible; pointer-events: none; }
.dm-call-ring rect { fill: none; stroke-width: 4; }
.dm-call-ring .is-base { stroke: var(--w-solid); }   /* 나머지 테두리는 원래 회색(gray050s) 그대로 — Figma 1662:53504 */
.dm-call-ring .is-comet { opacity: .7; }   /* 초록 전체를 70%로 연하게(2026-11-09) */
.dm-call-ring .is-tail { stroke: #00cd3c; stroke-opacity: .05; animation: 3s cubic-bezier(.55, .08, .45, .92) infinite; }   /* 머리 없이 앞뒤가 똑같이 흐려지는 초록 띠가 흐름 — 겹이 가운데 쪽으로 모여 가운데만 살짝 진함 */
/* 서른 겹을 띠 가운데에 맞춰 겹침: 줄 길이 L 이면 가운데가 C 일 때 dashoffset = L/2 - C, C 를 0 → 100 으로 */
.dm-call-ring .t0 { stroke-dasharray: 2.0 98.0; animation-name: dm-ring-0; }
@keyframes dm-ring-0 { from { stroke-dashoffset: 1.0; } to { stroke-dashoffset: -99.0; } }
.dm-call-ring .t1 { stroke-dasharray: 3.9 96.1; animation-name: dm-ring-1; }
@keyframes dm-ring-1 { from { stroke-dashoffset: 1.9; } to { stroke-dashoffset: -98.1; } }
.dm-call-ring .t2 { stroke-dasharray: 5.7 94.3; animation-name: dm-ring-2; }
@keyframes dm-ring-2 { from { stroke-dashoffset: 2.9; } to { stroke-dashoffset: -97.1; } }
.dm-call-ring .t3 { stroke-dasharray: 7.6 92.4; animation-name: dm-ring-3; }
@keyframes dm-ring-3 { from { stroke-dashoffset: 3.8; } to { stroke-dashoffset: -96.2; } }
.dm-call-ring .t4 { stroke-dasharray: 9.4 90.6; animation-name: dm-ring-4; }
@keyframes dm-ring-4 { from { stroke-dashoffset: 4.7; } to { stroke-dashoffset: -95.3; } }
.dm-call-ring .t5 { stroke-dasharray: 11.3 88.7; animation-name: dm-ring-5; }
@keyframes dm-ring-5 { from { stroke-dashoffset: 5.7; } to { stroke-dashoffset: -94.3; } }
.dm-call-ring .t6 { stroke-dasharray: 13.2 86.8; animation-name: dm-ring-6; }
@keyframes dm-ring-6 { from { stroke-dashoffset: 6.6; } to { stroke-dashoffset: -93.4; } }
.dm-call-ring .t7 { stroke-dasharray: 15.0 85.0; animation-name: dm-ring-7; }
@keyframes dm-ring-7 { from { stroke-dashoffset: 7.5; } to { stroke-dashoffset: -92.5; } }
.dm-call-ring .t8 { stroke-dasharray: 16.9 83.1; animation-name: dm-ring-8; }
@keyframes dm-ring-8 { from { stroke-dashoffset: 8.4; } to { stroke-dashoffset: -91.6; } }
.dm-call-ring .t9 { stroke-dasharray: 18.8 81.2; animation-name: dm-ring-9; }
@keyframes dm-ring-9 { from { stroke-dashoffset: 9.4; } to { stroke-dashoffset: -90.6; } }
.dm-call-ring .t10 { stroke-dasharray: 20.6 79.4; animation-name: dm-ring-10; }
@keyframes dm-ring-10 { from { stroke-dashoffset: 10.3; } to { stroke-dashoffset: -89.7; } }
.dm-call-ring .t11 { stroke-dasharray: 22.5 77.5; animation-name: dm-ring-11; }
@keyframes dm-ring-11 { from { stroke-dashoffset: 11.2; } to { stroke-dashoffset: -88.8; } }
.dm-call-ring .t12 { stroke-dasharray: 24.3 75.7; animation-name: dm-ring-12; }
@keyframes dm-ring-12 { from { stroke-dashoffset: 12.2; } to { stroke-dashoffset: -87.8; } }
.dm-call-ring .t13 { stroke-dasharray: 26.2 73.8; animation-name: dm-ring-13; }
@keyframes dm-ring-13 { from { stroke-dashoffset: 13.1; } to { stroke-dashoffset: -86.9; } }
.dm-call-ring .t14 { stroke-dasharray: 28.1 71.9; animation-name: dm-ring-14; }
@keyframes dm-ring-14 { from { stroke-dashoffset: 14.1; } to { stroke-dashoffset: -85.9; } }
.dm-call-ring .t15 { stroke-dasharray: 29.9 70.1; animation-name: dm-ring-15; }
@keyframes dm-ring-15 { from { stroke-dashoffset: 14.9; } to { stroke-dashoffset: -85.1; } }
.dm-call-ring .t16 { stroke-dasharray: 31.8 68.2; animation-name: dm-ring-16; }
@keyframes dm-ring-16 { from { stroke-dashoffset: 15.9; } to { stroke-dashoffset: -84.1; } }
.dm-call-ring .t17 { stroke-dasharray: 33.7 66.3; animation-name: dm-ring-17; }
@keyframes dm-ring-17 { from { stroke-dashoffset: 16.9; } to { stroke-dashoffset: -83.1; } }
.dm-call-ring .t18 { stroke-dasharray: 35.5 64.5; animation-name: dm-ring-18; }
@keyframes dm-ring-18 { from { stroke-dashoffset: 17.8; } to { stroke-dashoffset: -82.2; } }
.dm-call-ring .t19 { stroke-dasharray: 37.4 62.6; animation-name: dm-ring-19; }
@keyframes dm-ring-19 { from { stroke-dashoffset: 18.7; } to { stroke-dashoffset: -81.3; } }
.dm-call-ring .t20 { stroke-dasharray: 39.2 60.8; animation-name: dm-ring-20; }
@keyframes dm-ring-20 { from { stroke-dashoffset: 19.6; } to { stroke-dashoffset: -80.4; } }
.dm-call-ring .t21 { stroke-dasharray: 41.1 58.9; animation-name: dm-ring-21; }
@keyframes dm-ring-21 { from { stroke-dashoffset: 20.6; } to { stroke-dashoffset: -79.4; } }
.dm-call-ring .t22 { stroke-dasharray: 43.0 57.0; animation-name: dm-ring-22; }
@keyframes dm-ring-22 { from { stroke-dashoffset: 21.5; } to { stroke-dashoffset: -78.5; } }
.dm-call-ring .t23 { stroke-dasharray: 44.8 55.2; animation-name: dm-ring-23; }
@keyframes dm-ring-23 { from { stroke-dashoffset: 22.4; } to { stroke-dashoffset: -77.6; } }
.dm-call-ring .t24 { stroke-dasharray: 46.7 53.3; animation-name: dm-ring-24; }
@keyframes dm-ring-24 { from { stroke-dashoffset: 23.4; } to { stroke-dashoffset: -76.6; } }
.dm-call-ring .t25 { stroke-dasharray: 48.6 51.4; animation-name: dm-ring-25; }
@keyframes dm-ring-25 { from { stroke-dashoffset: 24.3; } to { stroke-dashoffset: -75.7; } }
.dm-call-ring .t26 { stroke-dasharray: 50.4 49.6; animation-name: dm-ring-26; }
@keyframes dm-ring-26 { from { stroke-dashoffset: 25.2; } to { stroke-dashoffset: -74.8; } }
.dm-call-ring .t27 { stroke-dasharray: 52.3 47.7; animation-name: dm-ring-27; }
@keyframes dm-ring-27 { from { stroke-dashoffset: 26.1; } to { stroke-dashoffset: -73.9; } }
.dm-call-ring .t28 { stroke-dasharray: 54.1 45.9; animation-name: dm-ring-28; }
@keyframes dm-ring-28 { from { stroke-dashoffset: 27.1; } to { stroke-dashoffset: -72.9; } }
.dm-call-ring .t29 { stroke-dasharray: 56.0 44.0; animation-name: dm-ring-29; }
@keyframes dm-ring-29 { from { stroke-dashoffset: 28.0; } to { stroke-dashoffset: -72.0; } }
@media (prefers-reduced-motion: reduce) { .dm-call-ring .is-tail { display: none; } }
/* 통화 중 말하는 줄 자리: 아무도 말하지 않을 땐 보이지 않게만(높이는 그대로) */
.dm-wb-transcript p.is-speaking.is-quiet { visibility: hidden; }
/* 「통화 내용 보기」를 펼치면(2026-11-09): 위 상대 · 통화 시간 표는 숨기고, 「통화 내용 접기」 버튼은 기록 맨 아래로 */
.dm-widget:has(.dm-wb-fold.is-open) .dm-wb-details { display: none; }
.dm-wb-fold.is-open { flex-direction: column-reverse; }

/* 로그인 방법 고르기 위젯(2026-11-10, loginMethodCard): 고르기 한 줄(.dm-wb-option) 그대로, 앞 아이콘 없음 */
.dm-wb-choices.is-login-methods .dm-wb-option small { color: var(--w-muted); font-size: 13px; }
/* 기본은 아이디·비밀번호 줄, 고르기는 그 아래 따로(TASK-1034): 기존 「다른 방법으로 로그인」 글 버튼(.login-options-toggle) 그대로,
   글 시작은 고르기 줄 글(안쪽 12)과 같은 선. 펼친 나머지 방법도 같은 고르기 줄(.dm-wb-options) */
.dm-wb-choices.is-login-methods { gap: 6px; }
.dm-wb-login-more { display: flex; flex-direction: column; gap: 6px; }
.dm-wb-login-more > .login-options-toggle { align-self: flex-start; font-size: 13px; }
.dm-wb-login-more > [data-login-list] { scroll-margin-bottom: calc(var(--composer-bar-height, 80px) + 16px); }

/* ───────── 온보딩(2026-11-10, Figma 1442:41986) ─────────
   이용 동의(약관 다이얼로그 .dm-terms.dm-onb-dialog) · 생년월일 · 휴대폰 · 하는 일 · 정보 보호 · 대기 페이지 — 같은 틀 .dm-onb.
   모바일(≤700): 전체 화면 — 왼쪽 위 닫기(44 유리 버튼) · 가운데 단계 점 · 큰 제목(28 Bold, 마스코트 50) · 아래 검은 버튼(60).
   PC(≥701): 가운데 800×600 다이얼로그(반경 40, 그림자 0 20 60 20%) — 왼쪽 내용(제목 26 왼쪽 정렬), 오른쪽 400 노란 그림, 그림 위 닫기(32). */
body.dm-onb-body { background: #fff; }
.dm-onb { position: relative; display: flex; flex-direction: column; min-height: 100dvh; margin: 0; padding: 0; color: #131A20; background: #fff; font-family: var(--font-default, inherit); }
.dm-onb-main { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 104px) 0 0; }
.dm-onb-close { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 16px; width: 44px; height: 44px; padding: 0; border: 1px solid #fff; border-radius: 32px; background: rgba(255, 255, 255, .7) url('assets/figma/gnb/close.svg') center / 24px no-repeat; box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); cursor: pointer; }
.dm-onb-dots { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 23px); left: 50%; display: flex; gap: 3px; transform: translateX(-50%); }
.dm-onb-dots > * { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.dm-onb-dots b { background: #131A20; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; }
.dm-onb-dots i::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 24, 46, 0.15); }
.dm-onb-title { display: flex; flex-direction: column; margin: 0; padding: 0 24px; font-size: 28px; font-weight: 700; line-height: 1.58; letter-spacing: -.14px; text-align: center; }
.dm-onb-title > span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; white-space: nowrap; }
.dm-onb-title > span:first-child { margin-bottom: -10px; }
.dm-onb-mascot { flex: none; width: 50px; height: 50px; object-fit: contain; }
.dm-onb-mascot.is-flip { transform: scaleX(-1); }
.dm-onb-why { align-self: center; margin: 24px 30px 0; padding: 0; border: 0; background: none; color: #131A20; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.6; text-decoration: underline; cursor: pointer; }
.dm-onb-sub { margin: 24px 30px 0; color: #545A60; font-size: 14px; line-height: 1.6; text-align: center; word-break: keep-all; }   /* 한글은 낱말 단위로 줄바꿈(2026-11-11) */
.dm-onb-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 42px; padding: 0 24px 40px; }
.dm-onb-row { position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 18px 18px 28px; border-radius: 40px; background: rgba(0, 24, 46, 0.03); cursor: pointer; }
.dm-onb-row-label { flex: none; color: #656A6F; font-size: 16px; font-weight: 500; line-height: 1.58; letter-spacing: -.08px; }
.dm-onb-row-value { flex: 1; min-width: 0; font-size: 22px; font-weight: 700; line-height: 1.58; letter-spacing: -.11px; text-align: right; }
.dm-onb-row-value.is-empty { opacity: .2; }
.dm-onb-arrow { flex: none; width: 14px; height: 14px; background: url('assets/figma/onboarding/arrow.svg') center / 14px no-repeat; }
.dm-onb-row { width: 100%; border: 0; color: inherit; font: inherit; text-align: left; }
.dm-onb-row[aria-expanded="true"] { background: rgba(0, 24, 46, 0.07); }
.dm-onb-picker { z-index: 5; }
.dm-onb-input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #131A20; font: inherit; font-size: 22px; font-weight: 700; line-height: 1.58; letter-spacing: -.11px; text-align: right; outline: 0; }
.dm-onb-input::placeholder { color: rgba(0, 24, 46, 0.22); }
.dm-onb-row:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }   /* 키보드로 옮겨 왔을 때만(누른 뒤 포커스가 남아도 테두리 없음) */
.dm-onb-list { display: flex; flex-direction: column; margin: 56px 0 0; padding: 0 24px 50px; list-style: none; }
/* 구분선(Figma 1642:24551): 글 시작(아이콘 46 + 16 = 62)부터 오른쪽 끝까지, 검정 4% — 마지막 줄 아래에도 */
.dm-onb-list li { position: relative; display: flex; align-items: flex-start; gap: 16px; padding-bottom: 24px; }
.dm-onb-list li::after { content: ''; position: absolute; right: 0; bottom: 0; left: 62px; height: 1px; background: rgba(0, 0, 0, .04); }
.dm-onb-list li + li { padding-top: 24px; }
.dm-onb-list strong { display: block; padding-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.6; }
.dm-onb-list small { display: block; margin-top: 2px; color: #72777C; font-size: 14px; line-height: 1.5; }
.dm-onb-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 24, 46, 0.04) center / 24px no-repeat; }
.dm-onb-ico.is-work { background-image: url('assets/figma/onboarding/work.svg'); background-size: 25px; }
.dm-onb-ico.is-switch { background-image: url('assets/figma/onboarding/switch.svg'); }
.dm-onb-ico.is-check { background-image: url('assets/figma/onboarding/check.svg'); background-size: 25px; }
.dm-onb-ico.is-password { background-image: url('assets/figma/onboarding/password.svg'); }
.dm-onb-ico.is-eye-off { background-image: url('assets/figma/onboarding/eye-off.svg'); }
.dm-onb-ico.is-trash { background-image: url('assets/figma/onboarding/trash.svg'); }
.dm-onb-ico.is-lock { background-image: url('assets/figma/onboarding/lock.svg'); }
.dm-onb-ico.is-check02 { background-image: url('assets/figma/onboarding/check02.svg'); }
.dm-onb-ico.is-grid { background-image: url('assets/figma/onboarding/grid.svg'); }
.dm-onb-foot { flex: none; padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.dm-onb-note { margin: 0 10px 24px; color: #72777C; font-size: 13px; line-height: 1.6; text-align: center; }
.dm-onb-note.is-error { color: #ff472b; }
:root[data-dm-theme="dark"] .dm-onb-note.is-error { color: #ff7849; }
.dm-onb-next { display: grid; place-items: center; width: 100%; height: 60px; padding: 0 20px; border: 0; border-radius: 100px; background: #131A20; color: #fff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
.dm-onb-next:disabled { background: rgba(0, 24, 46, 0.22); cursor: default; }
.dm-onb-next.is-soft { background: rgba(0, 24, 46, 0.04); color: #131A20; }
.dm-onb-side, .dm-onb-copy { display: none; }
/* 대기 페이지: 제목은 위 153, 아래 가운데 마스코트 234(양옆에 반쯤 잘린 둘) */
.dm-onb.is-waiting .dm-onb-main { padding-top: calc(env(safe-area-inset-top, 0px) + 153px); overflow: hidden; }
.dm-onb-wait { position: relative; height: 234px; margin-top: 48px; }
/* 이용 동의(약관 다이얼로그를 온보딩 화면으로) */
dialog.dm-terms.dm-onb-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; background: #fff; }
dialog.dm-terms.dm-onb-dialog::backdrop { background: #fff; }
dialog.dm-terms.dm-onb-dialog .dm-onb { gap: 0; min-height: 100%; }
.dm-onb .dm-onb-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 129px; }   /* 로고 위 233(상태 막대 포함, Figma 1642:24163) */
.dm-onb .dm-onb-brand img { width: 237px; height: 43px; }
.dm-onb .dm-onb-brand h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.58; letter-spacing: -.085px; }
.dm-onb-terms { margin-top: auto; padding: 0 24px 24px; }
/* 모두 동의 아래 구분선(Figma 1642:23098): 글 시작(체크 26 + 16 = 42)부터, 검정 4% */
.dm-onb .dm-terms-all { position: relative; padding: 0 0 20px; }
.dm-onb .dm-terms-all::after { content: ''; position: absolute; right: 0; bottom: 0; left: 42px; height: 1px; background: rgba(0, 0, 0, .04); }
.dm-onb .dm-terms-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 0; padding: 0; border: 0; background: none; }
.dm-onb .dm-terms-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 0; border: 0; }
.dm-onb .dm-terms-check { position: relative; display: flex; flex: 1; align-items: center; gap: 16px; min-height: 0; padding: 6px 0; color: #131A20; font-size: 15px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.dm-onb .dm-terms-all .dm-terms-check { padding: 6px 0; font-size: 18px; font-weight: 700; }
.dm-onb .dm-terms-check em { color: #72777C; font-style: normal; }
.dm-onb .dm-terms-icon { display: none; }
.dm-onb-box { flex: none; width: 26px; height: 26px; border-radius: 7.8px; background: #e5e5e5 url('assets/figma/onboarding/box-check.svg') center / 14.444px no-repeat; }
.dm-onb .dm-terms-input:checked + .dm-onb-box { background-color: #131A20; }
.dm-onb .dm-terms-input:focus-visible + .dm-onb-box { outline: 2px solid #0a73dc; outline-offset: 2px; }
.dm-onb .dm-terms-view { flex: none; width: 14px; height: 14px; background: url('assets/figma/onboarding/arrow.svg') center / 14px no-repeat; }
.dm-onb .dm-terms-summary { flex-basis: 100%; margin: 0 0 0 42px; color: #72777C; font-size: 13px; }
.dm-onb .dm-terms-notice { margin: 16px 24px 0; color: #545A60; font-size: 13px; text-align: center; }
.dm-onb .dm-terms-error { margin: 0 24px; color: #ff472b; font-size: 13px; text-align: center; }
.dm-onb .dm-terms-error:empty { display: none; }
@media (min-width: 701px) {
  .dm-onb-page { display: grid; place-items: center; min-height: 100dvh; background: #fff; }
  .dm-onb-dialog:not(dialog) { width: 800px; height: 600px; overflow: hidden; border: 0; border-radius: 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
  dialog.dm-terms.dm-onb-dialog { width: 800px; height: 600px; margin: auto; overflow: hidden; border-radius: 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
  dialog.dm-terms.dm-onb-dialog::backdrop { background: #fff; }
  .dm-onb, dialog.dm-terms.dm-onb-dialog .dm-onb { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; }
  .dm-onb-main { grid-column: 1; grid-row: 1; padding: 40px 30px 20px; overflow: hidden auto; }
  .dm-onb-foot { grid-column: 1; grid-row: 2; padding: 0 24px 24px; }
  .dm-onb-side { display: block; grid-column: 2; grid-row: 1 / 3; background: #fee500 url('assets/figma/onboarding/pc-wink.jpg') center / cover no-repeat; }
  .dm-onb[data-side="eyes"] .dm-onb-side { background-image: url('assets/figma/onboarding/pc-eyes.jpg'); }
  .dm-onb[data-side="sleepy"] .dm-onb-side { background-image: url('assets/figma/onboarding/pc-sleepy.jpg'); }
  .dm-onb-close { top: 23px; right: 25px; left: auto; width: 32px; height: 32px; border: 0; border-radius: 80px; background: rgba(0, 0, 0, .5) url('assets/figma/gnb/close-dark.svg') center / 18px no-repeat; box-shadow: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .dm-onb-dots { position: static; justify-content: flex-start; margin-bottom: 30px; transform: none; }
  .dm-onb-title { padding: 0; font-size: 26px; letter-spacing: -.13px; text-align: left; }
  .dm-onb-title > span { justify-content: flex-start; height: 46px; }
  .dm-onb-mascot { width: 46px; height: 46px; }
  .dm-onb-why { align-self: flex-start; margin: 20px 0 0; }
  .dm-onb-sub { margin: 20px 0 0; text-align: left; }
  .dm-onb-rows { margin-top: 40px; padding: 0; }
  .dm-onb-row { padding-block: 16px; }
  .dm-onb-row-value, .dm-onb-input { font-size: 18px; letter-spacing: -.09px; }
  /* PC 목록(Figma 1666:50773): 제목 아래 30, 아이콘 38 · 둥글기 9.9 · 그림 20, 제목 15 · 설명 12, 구분선은 글자 시작(38+16)부터 */
  .dm-onb-list { margin-top: 30px; padding: 0; }
  .dm-onb-list li { padding-bottom: 16px; }
  .dm-onb-list li + li { padding-top: 16px; }
  .dm-onb-list li::after { left: 54px; }
  .dm-onb-ico { width: 38px; height: 38px; border-radius: 9.913px; background-size: 19.826px; }
  .dm-onb-ico:is(.is-work, .is-check) { background-size: 20.6px; }
  .dm-onb-list strong { font-size: 15px; }
  .dm-onb-list small { font-size: 12px; }
  .dm-onb-next { height: 64px; }
  .dm-onb-copy { position: fixed; bottom: 30px; left: 0; display: block; width: 100%; margin: 0; color: #90959A; font-size: 13px; text-align: center; }
  .dm-onb .dm-onb-brand { align-items: flex-start; padding-top: 30px; }
  .dm-onb .dm-onb-brand img { width: 200px; height: auto; }
  .dm-onb-terms { padding: 0 0 8px; }
  .dm-onb.is-waiting .dm-onb-main { padding-top: 60px; }
  .dm-onb.is-waiting .dm-onb-title, .dm-onb.is-waiting .dm-onb-sub { text-align: center; }
  .dm-onb.is-waiting .dm-onb-title > span { justify-content: center; }
}
:root[data-dm-theme="dark"] body.dm-onb-body, :root[data-dm-theme="dark"] .dm-onb, :root[data-dm-theme="dark"] dialog.dm-terms.dm-onb-dialog, :root[data-dm-theme="dark"] dialog.dm-terms.dm-onb-dialog::backdrop, :root[data-dm-theme="dark"] .dm-onb-page { background-color: #080808; color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-onb-row { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-onb-row-label { color: #B3B9BF; }
:root[data-dm-theme="dark"] .dm-onb-input { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-onb-input::placeholder { color: rgba(255, 255, 255, .2); }
:root[data-dm-theme="dark"] .dm-onb-next { background: #F3F5F7; color: #080808; }
:root[data-dm-theme="dark"] .dm-onb-next:disabled { background: rgba(255, 255, 255, .2); }
:root[data-dm-theme="dark"] .dm-onb-next.is-soft { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-onb-dots b { background: #F3F5F7; color: #080808; }
:root[data-dm-theme="dark"] .dm-onb-dots i::before { background: rgba(255, 255, 255, .2); }
:root[data-dm-theme="dark"] :is(.dm-onb-sub, .dm-onb-list small, .dm-onb-note, .dm-onb .dm-terms-check em) { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-onb-why, :root[data-dm-theme="dark"] .dm-onb .dm-terms-check { color: #F3F5F7; }
:root[data-dm-theme="dark"] :is(.dm-onb-list li, .dm-onb .dm-terms-all)::after { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-onb-ico { background-color: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-work { background-image: url('assets/figma/onboarding/work-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-switch { background-image: url('assets/figma/onboarding/switch-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-check { background-image: url('assets/figma/onboarding/check-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-password { background-image: url('assets/figma/onboarding/password-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-eye-off { background-image: url('assets/figma/onboarding/eye-off-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-trash { background-image: url('assets/figma/onboarding/trash-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-lock { background-image: url('assets/figma/onboarding/lock-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-check02 { background-image: url('assets/figma/onboarding/check02-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-grid { background-image: url('assets/figma/onboarding/grid-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb-box { background-color: #3a3a3a; }
:root[data-dm-theme="dark"] .dm-onb-close { border-color: rgba(255, 255, 255, .12); background-color: rgba(30, 30, 30, .7); background-image: url('assets/figma/gnb/close-dark.svg'); }

/* 대기 페이지: 모바일은 아래 마스코트 셋, PC 는 다이얼로그 없이 가운데 큰 글(64 SemiBold · 마스코트 90) + 설명 16 + 로그아웃 260(Figma 1678:55587) */
.dm-onb-wait-pc { display: none; }
@media (min-width: 701px) {
  .dm-onb-page.is-waiting .dm-onb-dialog { width: auto; height: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .dm-onb-page.is-waiting .dm-onb { display: flex; flex-direction: column; align-items: center; height: auto; background: none; }
  .dm-onb-page.is-waiting .dm-onb-main { padding: 0; overflow: visible; }
  .dm-onb-page.is-waiting .dm-onb-side, .dm-onb-page.is-waiting .dm-onb-wait { display: none; }
  .dm-onb-page.is-waiting .dm-onb-title { font-size: 64px; font-weight: 600; letter-spacing: -.32px; text-align: center; }
  .dm-onb-page.is-waiting .dm-onb-title > span { justify-content: center; gap: 14px; height: 90px; }
  .dm-onb-page.is-waiting .dm-onb-title > span:first-child { margin-bottom: 0; }
  .dm-onb-wait-pc { display: block; width: 90px; height: 90px; object-fit: contain; }
  .dm-onb-page.is-waiting .dm-onb-sub { margin: 26px 0 0; color: #545A60; font-size: 16px; line-height: 28px; text-align: center; }
  .dm-onb-page.is-waiting .dm-onb-foot { padding: 50px 0 0; }
  .dm-onb-page.is-waiting .dm-onb-next { width: 260px; height: 64px; background: rgba(0, 24, 46, 0.07); }
}

/* 온보딩 아래 버튼 줄: 이전(회색 4% · 좌우 40 · 높이 60) + 다음(나머지), 사이 10 — Figma 1642:23013 */
.dm-onb-actions { display: flex; gap: 10px; }
.dm-onb-actions .dm-onb-next { flex: 1 1 auto; width: auto; min-width: 0; }
.dm-onb-prev { flex: none; height: 60px; padding: 0 40px; border: 0; border-radius: 100px; background: rgba(0, 24, 46, 0.04); color: #131A20; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
@media (hover: hover) { .dm-onb-prev:hover { background: rgba(0, 24, 46, 0.09); } }
@media (min-width: 701px) { .dm-onb-prev { height: 64px; } }
:root[data-dm-theme="dark"] .dm-onb-prev { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }

/* ── 온보딩 PC 시안 맞춤(2026-11-10, Figma 1666:50062 이용 동의 · 1666:50434 생년월일) ──
   닫기 없음, 아래 이전(좌우 40) · 다음(나머지) 높이 64 · 사이 10 · 바깥 24. 단계 화면: 위 40 · 좌우 30, 점 → 30 → 제목(26 Bold, 줄 46, 둘째 줄 -10) → 20 → 설명 → 40 → 줄들(사이 14, 위아래 16).
   이용 동의: 위 50 · 좌우 30, 로고 209.5×38 → 18 → 「시작하려면 동의가 필요해요」 16 SemiBold, 목록은 아래(버튼 위 30): 체크 20(반경 6) · 모두 동의 15 Bold · 항목 13 SemiBold · 항목 사이 8 */
.dm-onb-mascot.is-pc { display: none; }
@media (min-width: 701px) {
  .dm-onb-close { display: none; }
  .dm-onb-mascot.is-m { display: none; }
  .dm-onb-mascot.is-pc { display: block; }
  .dm-onb-main { padding: 40px 30px 20px; }
  .dm-onb-dots { margin-bottom: 30px; }
  .dm-onb-title > span:first-child { margin-bottom: -10px; }
  .dm-onb-why, .dm-onb-sub { margin-top: 20px; }
  .dm-onb-rows { gap: 14px; margin-top: 40px; padding: 0; }
  .dm-onb-row { padding: 16px 18px 16px 28px; }
  .dm-onb-foot { padding: 0 24px 24px; }
  .dm-onb-actions { gap: 10px; }
  .dm-onb-prev { height: 64px; padding: 0 40px; }
  .dm-onb-next { height: 64px; }
  .dm-onb-note { display: none; margin: 0 0 12px; }
  .dm-onb-note.is-error { display: block; }
  /* 이용 동의 */
  dialog.dm-terms.dm-onb-dialog .dm-onb-main, .dm-onb[data-side="eyes"]:has(.dm-onb-brand) .dm-onb-main { padding: 50px 30px 0; }
  .dm-onb .dm-onb-brand { gap: 18px; padding-top: 0; }
  .dm-onb .dm-onb-brand img { width: 209.5px; height: 38px; }
  .dm-onb .dm-onb-brand h2 { font-size: 16px; letter-spacing: -.08px; }
  .dm-onb-terms { margin-top: auto; padding: 0 0 30px; }
  .dm-onb .dm-terms-all { padding: 0 0 14px; }
  .dm-onb .dm-terms-list { gap: 8px; margin-top: 14px; }
  .dm-onb .dm-terms-check { gap: 16px; padding: 6px 0; font-size: 13px; }
  .dm-onb .dm-terms-all .dm-terms-check { font-size: 15px; }
  .dm-onb-box { width: 20px; height: 20px; border-radius: 6px; background-size: 11.111px; }
  .dm-onb .dm-terms-summary { margin-left: 36px; }
}
@media (min-width: 701px) { .dm-onb .dm-terms-all::after { left: 36px; background: rgba(0, 24, 46, 0.07); } }   /* PC 이용 동의 구분선(Figma 1666:50231): 체크 20 + 16 = 36 부터, 6% */
@media (min-width: 701px) { dialog.dm-terms.dm-onb-dialog { border: 0; outline: 0; } }   /* PC 다이얼로그 테두리(흰 1px) 없음 — 그림 가장자리에 선이 보이지 않게 */

/* 온보딩 뒤 첫 대화(Figma 1642:44943): 말풍선 사이 8, 하나씩 아래에서 살짝 올라오며 나타남(움직임 줄이기면 바로) */
.dm-onb-welcome .message-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dm-onb-welcome .bubble.assistant { max-width: 330px; }
.dm-onb-in { animation: dm-onb-in .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dm-onb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dm-onb-in { animation: none; } }
/* 첫 인사의 인용 줄(Figma 1642:45719): 왼쪽 막대 3(검정 12%) · 12 · [굵은 제목 줄 / 보통 예시 줄] — 제목과 예시는 위아래로, 문단 · 인용 사이 12 */
body.figma-chat-page .dm-onb-welcome .bubble.markdown { display: flex; flex-direction: column; gap: 12px; }
body.figma-chat-page .dm-onb-welcome .bubble.markdown :is(p, blockquote) { margin: 0; }
body.figma-chat-page .dm-onb-welcome .bubble.markdown blockquote { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0 0 0 15px; line-height: 1.68; }
body.figma-chat-page .dm-onb-welcome .bubble.markdown blockquote::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; }
body.figma-chat-page .dm-onb-welcome .bubble.markdown blockquote strong { font-weight: 600; }
/* 통화 중 질문(입력창 위에 고정, 2026-11-10): 예전 배너 상자 없이 위젯 하나만 — 위젯 카드가 테두리 · 바탕을 가짐 */
.call-banner { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
.call-banner > .dm-widget { max-width: none; }
/* 입력창 위 고정 카드(통화 중 질문, 2026-11-10): 대화 끝과 겹쳐 보이지 않게 위 8 · 좌우 16 여백과 화면 바탕을 깔고, 위젯은 가로 꽉 차게.
   「아래로」 버튼은 카드 높이(--pinned-h, app.js)만큼 위로 */
body.figma-chat-page .chat-approvals:not(:empty) { position: relative; z-index: 2; margin-inline: -16px; margin-bottom: 0; padding-top: 8px; padding-inline: 16px; background: #fff; }   /* 대화 목록처럼 화면 끝까지 바탕, 위젯 왼쪽 끝은 말풍선과 같은 16 */
.chat-approvals .call-banner > .dm-widget, .chat-approvals > .dm-widget { width: 100%; max-width: none; }
:root[data-dm-theme="dark"] body.figma-chat-page .chat-approvals:not(:empty) { background: #080808; }
.dm-scroll-down { bottom: calc(100% + var(--scroll-down-gap, 16px) + var(--pinned-h, 0px)); }

/* 리포트 뷰어(2026-11-10) — 풀뷰: 화면 전체 흰 바탕, 위 바(닫기 · 파일 이름 · 내려받기, GNB와 같은 44 원형 유리 버튼), 본문은 가운데 최대 720 */
.dm-doc-viewer { position: fixed; inset: 0; z-index: 100; background: #fff; color: #131A20; }
.dm-dv-head { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 12px; height: 64px; padding: env(safe-area-inset-top, 0px) 16px 0; background: linear-gradient(#fff 60%, rgba(255, 255, 255, 0)); }
.dm-dv-title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 24px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dm-dv-close, .dm-dv-download { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7) center / 24px no-repeat; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 8px rgba(0, 0, 0, .05); cursor: pointer; }
.dm-dv-close { background-image: url('assets/figma/gnb/close.svg'); }
.dm-dv-download { background-image: url('assets/figma/gnb/download.svg'); }
.dm-dv-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; padding: calc(env(safe-area-inset-top, 0px) + 84px) 20px calc(env(safe-area-inset-bottom, 0px) + 48px); }
.dm-dv-scroll > .dm-report-body { max-width: 720px; margin: 0 auto; }
@media (min-width: 701px) { .dm-dv-head { height: 76px; padding: 0 24px; } .dm-dv-scroll { padding: 104px 40px 64px; } }
:root[data-dm-theme="dark"] .dm-doc-viewer { background: var(--dm-ui-chat-dark-canvas, #121212); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-dv-head { background: linear-gradient(var(--dm-ui-chat-dark-canvas, #121212) 60%, transparent); }
:root[data-dm-theme="dark"] :is(.dm-dv-close, .dm-dv-download) { background-color: rgba(243, 245, 247, 0.08); box-shadow: none; }
:root[data-dm-theme="dark"] .dm-dv-close { background-image: url('assets/figma/gnb/close-dark.svg'); }
:root[data-dm-theme="dark"] .dm-dv-download { background-image: url('assets/figma/gnb/download-dark.svg'); }
.dm-report-body { color: #131A20; font-size: 15px; line-height: 1.6; letter-spacing: -.075px; overflow-wrap: anywhere; }
.dm-report-body > :first-child { margin-top: 0; }
.dm-report-body :is(h1, h2, h3, h4) { margin: 28px 0 10px; font-weight: 700; line-height: 1.45; }
.dm-report-body h1 { font-size: 20px; }
.dm-report-body h2 { font-size: 17px; }
.dm-report-body :is(h3, h4) { font-size: 15px; font-weight: 600; }
.dm-report-body p { margin: 0 0 12px; }
.dm-report-body :is(ul, ol) { margin: 0 0 12px; padding-left: 20px; }
.dm-report-body li + li { margin-top: 4px; }
.dm-report-body a { color: #131A20; text-decoration: underline; text-underline-offset: 2px; }
.dm-report-body strong { font-weight: 600; }
.dm-report-body code { padding: 1px 5px; border-radius: 6px; background: rgba(0, 24, 46, 0.04); font-size: 13px; }
.dm-report-body pre { margin: 0 0 12px; padding: 14px 16px; overflow: auto; border-radius: 16px; background: rgba(0, 24, 46, 0.03); font-size: 13px; }
.dm-report-body pre code { padding: 0; background: none; }
.dm-report-body blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid rgba(0, 0, 0, .1); color: #545A60; }
/* 표: 대화 말풍선 표와 같은 모양(굵은 머리 + 가로선만, 칸 글 최대 270 · PC 480, 넘치면 표만 옆으로) */
.dm-report-body .md-table { margin: 0 0 16px; overflow-x: auto; }
.dm-report-body table { width: max-content; min-width: 100%; border: 0; border-collapse: collapse; font-size: 14px; line-height: 1.54; }
.dm-report-body :is(th, td) { min-width: 54px; max-width: 270px; padding: 12px 30px 12px 0; border: 0; background: none; text-align: left; vertical-align: top; }
.dm-report-body th { border-bottom: 1px solid var(--chat-th-line, rgba(0, 0, 0, .1)); font-weight: 700; }
.dm-report-body td { border-bottom: 1px solid var(--chat-td-line, rgba(0, 0, 0, .06)); color: var(--chat-ink-2, #545A60); }
.dm-report-body tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 701px) { .dm-report-body :is(th, td) { max-width: 480px; } }
.dm-report-note { color: #90959A; }
.dm-report-body hr { margin: 20px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .06); }
:root[data-dm-theme="dark"] .dm-report-body, :root[data-dm-theme="dark"] .dm-report-body a { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-report-body :is(code, pre) { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-report-body hr { border-color: rgba(255, 255, 255, .08); }
:root[data-dm-theme="dark"] .dm-report-body blockquote { color: #A2A8AE; }

.dm-dv-close:focus:not(:focus-visible), .dm-dv-download:focus:not(:focus-visible) { outline: 0; }
.dm-dv-close:focus-visible, .dm-dv-download:focus-visible { outline: 2px solid #191919; outline-offset: 2px; }

/* ── 앱 및 서비스 연결: 서비스 화면 풀뷰(2026-11-10, Figma 1713:58713) ──
   화면 전체 흰 바탕, 위 GNB 64(뒤로 44 원형 유리 · 왼쪽 16), 본문 위 8 · 좌우 16.
   [로고 70(테두리 4%) · 16 · 이름 19 Bold / 5 / 주소 13 #595959](좌우 4) 18 [설명 15 · 1.58](좌우 4) 24 [버튼 58] 36 [할 수 있는 일 · 계정 칸] */
.dm-conn-view { position: fixed; inset: 0; z-index: 70; background: #fff; color: #131A20; }
.dm-cv-head { position: absolute; inset: 0 0 auto; display: flex; align-items: center; height: 64px; padding: env(safe-area-inset-top, 0px) 16px 0; background: linear-gradient(#fff 60%, rgba(255, 255, 255, 0)); }
.dm-cv-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; padding: calc(env(safe-area-inset-top, 0px) + 80px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px); }
.dm-cv-body { display: flex; flex-direction: column; gap: 36px; max-width: 600px; margin: 0 auto; }   /* 모바일 위: GNB 64 + 16 = 80 → 로고(Figma 1713:59872, 2026-11-12 사용자 — 전 8)*/
.dm-cv-top { display: flex; flex-direction: column; gap: 24px; }
.dm-cv-intro { display: flex; flex-direction: column; gap: 18px; padding: 0 4px; }
.dm-cv-id { display: flex; align-items: center; gap: 16px; }
.dm-conn-logo.dm-cv-logo { width: 70px; height: 70px; }
.dm-cv-name { display: flex; flex: 1 1 auto; flex-direction: column; gap: 5px; min-width: 0; }
.dm-cv-name strong { overflow: hidden; font-size: 19px; font-weight: 700; line-height: normal; letter-spacing: .19px; text-overflow: ellipsis; white-space: nowrap; }
.dm-cv-name small { overflow: hidden; color: #545A60; font-size: 13px; line-height: normal; letter-spacing: .13px; text-overflow: ellipsis; white-space: nowrap; }
.dm-cv-desc { margin: 0; font-size: 15px; line-height: 1.58; }
.dm-conn-view .dm-conn-cta { height: 58px; }
.dm-cv-more { display: flex; flex-direction: column; gap: 30px; }

:root[data-dm-theme="dark"] .dm-conn-view { background: var(--dm-ui-chat-dark-canvas, #080808); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-cv-head { background: linear-gradient(var(--dm-ui-chat-dark-canvas, #080808) 60%, transparent); }
:root[data-dm-theme="dark"] .dm-cv-name small { color: #A2A8AE; }

/* ── 연결 동의 바텀시트(2026-11-10, Figma 1713:60028) — 처음 「연결하기」 때만, 「동의하고 연결」 → 로그인 ── */
.dm-consent-body { display: flex; flex-direction: column; gap: 24px; padding: 24px 20px 16px; }
.dm-consent-top { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 4px; }
.dm-consent-head { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: center; }
.dm-consent-head h2 { margin: 0; overflow: hidden; font-size: 20px; font-weight: 700; line-height: normal; letter-spacing: .2px; text-overflow: ellipsis; white-space: nowrap; }
.dm-consent-head p { margin: 0; color: #545A60; font-size: 14px; line-height: 1.58; }
.dm-consent-box { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: rgba(0, 24, 46, 0.03); }
.dm-consent-lead { margin: 0; font-size: 14px; font-weight: 500; line-height: 22px; }
.dm-consent-box hr { height: 1px; margin: 6px 0; border: 0; background: rgba(0, 0, 0, .06); }
.dm-consent-box ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dm-consent-box li { display: flex; flex-direction: column; gap: 2px; }
.dm-consent-box li strong { position: relative; padding-left: 14px; font-size: 14px; font-weight: 500; line-height: 22px; }
.dm-consent-box li strong::before { content: ''; position: absolute; top: 8px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #131A20; transform: scale(.5); }
.dm-consent-box li span { padding-left: 14px; color: #545A60; font-size: 14px; line-height: 22px; }
.dm-consent-note { margin: 0; padding: 13px 20px; color: #72777C; font-size: 13px; line-height: normal; text-align: center; }
.dm-consent-actions { display: flex; gap: 10px; padding: 16px; padding-bottom: calc(16px + max(0px, 34px - env(safe-area-inset-bottom, 0px))); }
.dm-consent-btn { flex: 1 1 0; min-width: 0; height: 58px; padding: 0 20px; border: 0; border-radius: 100px; background: #131A20; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; transition: background-color .15s; }
.dm-consent-btn.is-soft { background: rgba(0, 24, 46, 0.04); color: #131A20; }
.dm-consent-btn.is-soft:hover { background: rgba(0, 24, 46, 0.09); }
@media (min-width: 701px) { .dm-consent-actions { padding: 16px 24px 24px; } .dm-consent-body { padding: 32px 24px 16px; } }   /* PC 다이얼로그엔 손잡이(20)가 없어서 위를 32 로 — 로고가 위 끝에 붙어 보이던 것(2026-11-10) */
:root[data-dm-theme="dark"] .dm-consent-head p, :root[data-dm-theme="dark"] .dm-consent-box li span { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-consent-box { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-consent-box hr { background: rgba(255, 255, 255, .08); }
:root[data-dm-theme="dark"] .dm-consent-box li strong::before { background: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-consent-btn { background: #F3F5F7; color: #131A20; }
:root[data-dm-theme="dark"] .dm-consent-btn.is-soft { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
.dm-sheet-scrim:has(.dm-consent-sheet) { z-index: 80; }   /* 풀뷰(70) 위에 */
.dm-conn-view:focus, .dm-doc-viewer:focus { outline: 0; }


/* ── 앱 및 서비스 연결 목록(2026-11-10, Figma 1727:62216) ──
   칩 14 SemiBold. 줄: 위아래 12 · 좌우 16, [로고 48 · 16 · 글(위아래 4): 이름 16 SemiBold · 5 · 설명 13 / 19 #595959 최대 3줄] 12 [버튼(위 5)]
   줄 사이 13 칸 가운데 1px 4% 선(글 시작 80 ~ 오른쪽 16, 마지막 줄 아래도). 로그인 필요: 설명 아래 10, 테두리 6% 알약 높이 38 · 좌우 14 · [주의 16 · 4 · 13 #191919].
   준비중 글자 #949494 */
.dm-conn-chip { font-size: 14px; }
.dm-conn-row { position: relative; align-items: flex-start; margin-bottom: 13px; }
.dm-conn-row::after { content: ''; position: absolute; right: 16px; bottom: -7px; left: 80px; height: 1px; background: rgba(0, 0, 0, .04); pointer-events: none; }
.dm-conn-open { align-items: flex-start; }
.dm-conn-text { padding: 4px 0; }
.dm-conn-text small { display: -webkit-box; overflow: hidden; line-height: 19px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.dm-conn-text small > span { overflow: visible; }
.dm-conn-need-pill { display: inline-flex; align-self: flex-start; align-items: center; box-sizing: border-box; height: 38px; margin-top: 5px; padding: 0 14px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 100px; }
.dm-conn-need-pill .dm-conn-need { color: #131A20; font-size: 13px; line-height: normal; letter-spacing: .13px; }
.dm-conn-act { display: flex; flex: none; padding-top: 5px; }
.dm-conn-btn.is-soon { color: #90959A; }
:root[data-dm-theme="dark"] .dm-conn-row::after { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-conn-need-pill { border-color: rgba(255, 255, 255, .1); }
:root[data-dm-theme="dark"] .dm-conn-need-pill .dm-conn-need { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-conn-btn.is-soon { color: #7D8389; }
.dm-connections .dm-conn-chip { box-sizing: border-box; height: 40.5px; padding-block: 0; line-height: 21.5px; }   /* 칩 높이 = 위아래 9.5 + 14 × 1.54 */
.dm-connections .dm-conn-list { margin-top: 6px; }   /* 칩 줄(아래 12) → 목록 6 */

/* ── 로그인 만료 풀뷰(2026-11-10, Figma 1726:47782) ──
   이름 20 Bold, 버튼 줄 [연결됨 6% · #949494 | 다시 로그인 빨강 10% · #FF472B] 높이 52 · 사이 8,
   「등록한 계정」 칸: 계정 15 Medium #767676 · 오른쪽 「로그인」 14 Medium #0A73DC, 선, [주의 16 · 4 · 13 #767676] */
.dm-conn-view:has(.dm-conn-account.is-expired) .dm-cv-name strong { font-size: 20px; letter-spacing: .2px; }
.dm-conn-view .dm-conn-cta { height: 52px; }   /* 시안 버튼 높이 52(위아래 20.5 + 글자 윗선~밑선) */
.dm-conn-view .dm-conn-cta.is-done.is-static { color: #90959A; }
.dm-conn-account.is-expired .dm-conn-account-row strong { color: #72777C; font-weight: 500; }
.dm-conn-relogin { flex: none; padding: 0; border: 0; background: none; color: #0a73dc; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.dm-conn-account.is-expired .dm-conn-expired { display: flex; flex-direction: row; align-items: flex-start; gap: 4px; color: #72777C; }
.dm-conn-account.is-expired .dm-conn-expired::before { content: ''; flex: none; width: 16px; height: 16px; background: url('assets/figma/connections/caution-gray.svg') center / 16px no-repeat; }
:root[data-dm-theme="dark"] .dm-conn-account.is-expired .dm-conn-account-row strong, :root[data-dm-theme="dark"] .dm-conn-account.is-expired .dm-conn-expired { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-conn-relogin { color: #49a8f8; }
/* 연결 동의 시트 버튼도 시안 높이 52 */
.dm-consent-btn { height: 52px; }
:root[data-dm-theme="dark"] .dm-conn-account.is-expired .dm-conn-expired::before { background-image: url('assets/figma/connections/caution-gray-dark.svg'); }
.dm-conn-view .dm-cv-more { gap: 36px; }   /* 풀뷰는 묶음 사이 36(Figma 1726:47782 Form 간격) */
.dm-wb-notice.is-strong.is-light p { font-weight: 500; }   /* 제목 크기 그대로, 굵게는 ** 로 감싼 상대 이름만(연결 안 된 통화, 2026-11-10) */
.dm-wb-notice.is-strong.is-light p b { font-weight: 700; }

/* 처리 중(…) 말풍선이 단무지 답 바로 아래 올 때(2026-11-11): 사이는 원래대로(같은 사람 8 — 11/10 에 24로 벌렸던 것 되돌림),
   그 답의 시각 · 복사는 아래가 아니라 말풍선 오른쪽(끝 ↔ 시각 8), 아래 끝에서 4 위 — 여러 답일 때의 옆 시각(.message-side)과 같은 자리 */
@media (hover: hover) and (min-width: 701px) {
  body.figma-chat-page .messages > .assistant-message[data-mid]:has(+ .dm-typing) { width: fit-content; }
  body.figma-chat-page .messages > .assistant-message[data-mid]:has(+ .dm-typing) > .message-meta { top: auto; bottom: 0; left: 100%; padding: 0 4px 4px 8px; white-space: nowrap; }
}

/* 온보딩 다크(2026-11-10, Figma 1741:76587): 로고는 밝은 글자(#F2F2F2), 동의한 체크 상자는 밝은 바탕(#F2F2F2) + 어두운 체크(#080808) */
:root[data-dm-theme="dark"] .dm-onb-brand img { content: url('assets/figma/onboarding/danmuzi-dark.svg'); }
:root[data-dm-theme="dark"] .dm-onb .dm-terms-input:checked + .dm-onb-box { background-color: #F3F5F7; background-image: url('assets/figma/onboarding/box-check-dark.svg'); }
/* 고르는 중인 줄(2026-11-10, Figma 1741:76008): 바탕 없이 1px 테두리 gray900s(라이트 #191919 · 다크 #F2F2F2), 반경 그대로 40.
   휴대폰 번호 입력 중도 같은 모양. 고르기 「확인」 뒤(줄 버튼에 포커스만 남은 때)는 테두리 없음 */
.dm-onb-row[aria-expanded="true"], .dm-onb-row:has(input:not([type="hidden"]):focus) { background: transparent; box-shadow: inset 0 0 0 1px #191919; }
:root[data-dm-theme="dark"] .dm-onb-row[aria-expanded="true"], :root[data-dm-theme="dark"] .dm-onb-row:has(input:not([type="hidden"]):focus) { background: transparent; box-shadow: inset 0 0 0 1px #f2f2f2; }

/* 온보딩 다크(2026-11-10, Figma 1741:78524 · 1741:76587): ›(화살표)는 #7C7C7C */
:root[data-dm-theme="dark"] :is(.dm-onb-arrow, .dm-onb .dm-terms-view) { background-image: url('assets/figma/onboarding/arrow-dark.svg'); }
/* PC 다크: 다이얼로그 바탕 white001s 다크(#202020) + 테두리 흰 8%(라이트는 테두리 없음 그대로), 이용 동의 구분선 흰 10%. 페이지 바탕은 #080808 그대로 */
@media (min-width: 701px) {
  :root[data-dm-theme="dark"] dialog.dm-terms.dm-onb-dialog, :root[data-dm-theme="dark"] .dm-onb-page:not(.is-waiting) .dm-onb { background-color: #202020; }
  :root[data-dm-theme="dark"] dialog.dm-terms.dm-onb-dialog .dm-onb { background-color: #202020; }
  :root[data-dm-theme="dark"] .dm-onb .dm-terms-all::after { background: rgba(243, 245, 247, 0.1); }
}
/* 서비스 화면 풀뷰 PC(2026-11-10): 사이드 메뉴(접힘 50 · 펼침 290)는 그대로 두고 그 오른쪽만 덮음 */
@media (min-width: 701px) {
  .dm-conn-view { left: 50px; transition: left .28s cubic-bezier(.2, .8, .2, 1); }
  body.figma-lnb-open .dm-conn-view { left: 290px; }
}
@media (min-width: 701px) and (prefers-reduced-motion: reduce) { .dm-conn-view { transition: none; } }

/* 서비스 화면 풀뷰 뒤로 버튼(2026-11-10): 다른 화면과 같은 뒤로 버튼(.dm-act-back — 유리 · 테두리 고리 · 다크 그림)을 그대로 씀.
   모바일: 위 10 · 왼쪽 16(GNB). PC: 설정 세부 화면과 같은 자리 — 가운데 700 칸 왼쪽 16, 위 65.5(제목 줄과 같은 높이), 본문도 같은 칸(왼쪽 16) */
.dm-cv-head .dm-act-back.dm-cv-back { position: static; flex: none; }
@media (min-width: 701px) {
  .dm-cv-head { display: block; height: 122px; padding: 0; }
  .dm-cv-head .dm-act-back.dm-cv-back { position: absolute; top: 65.5px; left: calc(max(0px, (100% - 700px) / 2) + 16px); margin: 0; }
  .dm-cv-scroll { padding: 136px 16px 64px; }   /* 뒤로 버튼 아래 끝(110) ~ 로고 26 — 모바일과 같은 사이(GNB 아래 16, 2026-11-12 사용자 · 전 128) */
  .dm-cv-body { max-width: 668px; }
}
/* 입력창 ■ 중지(2026-11-10, Claude 방식) — 단무지가 답을 만드는 동안(.is-generating) 글이 비어 있으면 마이크 · 보내기 자리에 중지 버튼.
   글을 쓰기 시작하면(또는 파일을 붙이면) 다시 보내기 버튼. 모양은 음성 입력 중지와 같음: 50 × 38 · #191919 · 가운데 흰 네모 14(반경 3.5), 다크 반대색 */
body.figma-chat-page .composer .composer-stop { display: none; grid-area: action; width: 50px; height: 38px; margin-left: 2px; padding: 0; border: 0; border-radius: 100px; background: #131A20; cursor: pointer; place-items: center; }
body.figma-chat-page .composer .composer-stop::after { content: ''; width: 14px; height: 14px; border-radius: 3.5px; background: #fff; }
body.figma-chat-page .composer .composer-stop:disabled { opacity: .5; cursor: default; }
body.figma-chat-page .composer.is-generating:not(.is-listening):has(textarea:placeholder-shown):not(:has(.composer-files:not(:empty))) .composer-stop { display: grid; }
body.figma-chat-page .composer.is-generating:not(.is-listening):has(textarea:placeholder-shown):not(:has(.composer-files:not(:empty))) :is(.figma-voice-button, .send-button) { display: none; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .composer-stop { background: #F3F5F7; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer .composer-stop::after { background: #080808; }
/* 가입 동의 위젯(2026-11-10 — 체크박스 칩 · 회색 글 상자 · 「약관 보기」 반복으로 깨져 보이던 것):
   항목 = 여러 개 고르기 줄과 같은 모양(회색 줄 46 · 반경 14 · 앞 체크 원 16, 체크하면 채운 원), 줄 아래 설명 13 회색 3줄까지, 「약관 보기」 13 밑줄 */
.dm-widget .dm-scene-fields:has(.dm-consent-item) { display: flex; flex-direction: column; gap: 12px; }
.dm-consent-item { display: flex; flex-direction: column; gap: 6px; }
.dm-wb-option.dm-consent-check { position: relative; min-height: 46px; height: auto; padding-block: 12px; cursor: pointer; white-space: normal; }
.dm-wb-option.dm-consent-check > span { overflow: visible; overflow-wrap: anywhere; }
.dm-consent-check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dm-consent-mark { flex: none; width: 16px; height: 16px; background: var(--w-off, #AEB3B8); -webkit-mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16px 16px no-repeat; }
.dm-consent-check:has(input:checked) .dm-consent-mark { background: var(--w-ink, #131A20); -webkit-mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); }
.dm-consent-check:has(input:focus-visible) { outline: 2px solid #0a73dc; outline-offset: 2px; }
.dm-consent-check:has(input:disabled) { cursor: default; opacity: .5; }
.dm-consent-about { display: -webkit-box; margin: 0; padding: 0 4px; overflow: hidden; color: var(--w-muted, #72777C); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.dm-consent-links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px; }
.dm-consent-links a { color: var(--w-ink, #131A20); font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 2px; }

/* 대기 페이지 캐릭터 줄(2026-11-10): 화면 폭 끝까지, 상태 그림이 오른쪽 → 왼쪽 흐름(한 바퀴 40초, 같은 줄 두 번 이어 끊김 없음) */
.dm-onb-wait { overflow: hidden; height: 234px; }
/* 크기: 시안(1642:23527) 그림 칸은 해냈어요 234. 해냈어요는 넣지 않고, 다른 상태는 GNB 비율(해냈어요 40 : 나머지 38)대로 222, 사이 12, 세로 가운데 */
.dm-onb-wait-track { display: flex; align-items: center; width: max-content; height: 234px; animation: dm-wait-flow 40s linear infinite; }
.dm-onb-wait-track img { position: static; flex: none; width: 222px; height: 222px; margin-right: 12px; object-fit: contain; }
@keyframes dm-wait-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .dm-onb-wait-track { animation: none; transform: translateX(calc(50vw - 111px - 234px * 2)); } }

/* 버튼 3개 이상(2026-11-11 위젯 규칙): 세로로 한 줄씩 꽉 차게, 사이 6, 모두 같은 회색 버튼(검정 · 흰 강조 없음) — 2개 이하 줄 버튼과 같은 모양 · 높이 44 */
.dm-wb-buttons.is-stack { flex-direction: column; width: 100%; }
.dm-wb-buttons.is-stack .dm-widget-btn { flex: none; width: 100%; min-width: 0; height: auto; min-height: 44px; padding: 6px 20px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.dm-wb-buttons.is-stack .dm-widget-btn:disabled { cursor: default; opacity: .5; }
.approval-card > .dm-wb-buttons.is-stack { width: 0; min-width: 100%; }
.approval-card:has(> .dm-wb-buttons.is-stack) { box-sizing: border-box; min-width: var(--chat-widget-max, 330px); max-width: 100%; }
:root[data-dm-theme="dark"] .approval-card .dm-wb-buttons.is-stack .dm-widget-btn.is-secondary { background: var(--w-fill); }

/* ── 보관함(2026-11-11, Figma 파일 1754:93528 · 이미지 1754:93399) ── */
@media (min-width: 701px) {
  .figma-lnb-library i { background-image: url('assets/figma/lnb/inventory.svg'); }
  :root[data-dm-theme="dark"] .figma-lnb-library i { background-image: url('assets/figma/lnb/inventory-dark.svg'); }
}
/* 파일 줄: 줄 전체가 버튼(열기), ··· 메뉴 없음. 이름 아래 8 띄우고 [프로필 20 · 5 · 이름] · 크기 · 날짜 13 #595959 */
.dm-lib-row { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dm-lib-file .dm-lib-row .dm-lib-text { padding-right: 0; }
.dm-lib-file .dm-lib-row .dm-act-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: var(--act-sub, #545A60); }
.dm-lib-file .dm-act-meta .dm-act-dot { margin: 0; }
.dm-lib-who { display: inline-flex; align-items: center; gap: 5px; }
/* 보낸 사람 얼굴: 나 = 프로필 사진(없으면 이름 첫 글자), 단무지 = 노란 얼굴 그림 */
.dm-lib-face { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dm-lib-face.is-letter { background: #e5e5e5; color: #545A60; font-size: 11px; font-weight: 600; }
.dm-lib-face.is-danmuzi { border-radius: 0; background: url('assets/figma/library/danmuzi-face.png') center / 19px auto no-repeat; }
/* 사진: 위 오른쪽 6 · 6 에 흰 동그라미 26(테두리 6%) 안에 보낸 사람 — 나는 사진 23, 단무지는 얼굴 15 */
button.dm-lib-photo { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.dm-lib-badge { position: absolute; z-index: 1; top: 6px; right: 6px; display: grid; place-items: center; box-sizing: border-box; width: 26px; height: 26px; border: .5px solid rgba(0, 0, 0, .06); border-radius: 50%; background: #fff; }
.dm-lib-badge .dm-lib-face { width: 23px; height: 23px; }
.dm-lib-badge .dm-lib-face.is-danmuzi { width: 16px; height: 15px; background-size: 15.3px auto; }
.dm-lib-badge .dm-lib-face.is-letter { width: 23px; height: 23px; }
/* 사진 뷰어 위 왼쪽: [프로필 28 · 8 · 이름 15 SemiBold 흰 / 날짜 시각 13 흰 70%] */
.dm-pv-info { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 16px; right: 136px; display: flex; align-items: center; gap: 8px; color: #fff; pointer-events: none; }
.dm-pv-who { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.dm-pv-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dm-pv-face.is-danmuzi { width: 20px; height: 19px; border-radius: 0; background: url('assets/figma/library/danmuzi-face.png') center / 20px auto no-repeat; }
.dm-pv-face.is-letter { display: grid; place-items: center; background: #e5e5e5; color: #545A60; font-size: 13px; font-weight: 600; }
.dm-pv-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-pv-text strong { overflow: hidden; font-size: 15px; font-weight: 600; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-pv-text small { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: normal; }
/* 보낸이 배지는 다크에서도 흰 원 + 검정 6% 테두리 (Figma 1756:94775) */
:root[data-dm-theme="dark"] .dm-lib-face.is-letter, :root[data-dm-theme="dark"] .dm-pv-face.is-letter { background: #3a3a3a; color: #C9CDD1; }

/* 다크 탭: 선택 칩은 흰색, 글은 검정 (Figma 1756:94441) */
:root[data-dm-theme="dark"] .dm-act-tabs button[aria-selected="true"] { color: #131A20; }
/* 보관함 빈 화면 (Figma 1756:93977 파일 · 1756:94337 이미지): 탭 아래 240, 제목 19 SemiBold gray900 · 설명 15 gray550 */
@media (max-width: 700px) { .dm-library .dm-act-empty.is-quiet { padding-top: 240px; } }
.dm-library .dm-act-empty h2 { color: var(--act-ink); }

/* 온보딩 「서비스 연결」 (Figma 1741:65293, 2026-11-11): 줄 46 · 회색 F5F5F5 · 반경 14 · 왼 12 오 8 · 사이 6
   [아이콘 20(원, 4% 테두리) · 6 · 이름 15 Regular] … [「연결」 검정 알약 13 SemiBold 21 · 좌우 14 위아래 4.5 / 「연결됨」 4% 회색 · #767676] */
.dm-onb-connect .dm-onb-conn-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dm-onb-conn { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 46px; padding: 0 8px 0 12px; overflow: hidden; border-radius: 14px; background: rgba(0, 24, 46, 0.04); cursor: pointer; }
.dm-onb-conn-icon { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.dm-onb-conn-icon img { display: block; width: 20px; height: 20px; border-radius: 50%; }
/* 아이콘을 감싸는 선 gray070a(라이트 검정 6% · 다크 흰 10%, Figma 1755:62777, 2026-11-11) */
.dm-onb-conn-icon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); pointer-events: none; }
:root[data-dm-theme="dark"] .dm-onb-conn-icon::after { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.dm-onb-conn-name { flex: 1 0 0; min-width: 0; margin-left: -2px; overflow: hidden; color: #131A20; font-size: 15px; font-weight: 400; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.dm-onb-conn-btn { flex: none; padding: 4.5px 14px; border: 0; border-radius: 24px; background: #131A20; color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 21px; white-space: nowrap; cursor: pointer; transition: opacity .15s, background-color .15s, color .15s; }
@media (hover: hover) { .dm-onb-conn:not(.is-connected):not(.is-pending):hover .dm-onb-conn-btn { opacity: .85; } }
.dm-onb-conn:not(.is-connected):not(.is-pending):active .dm-onb-conn-btn { opacity: .7; }
.dm-onb-conn.is-pending { cursor: default; }
.dm-onb-conn.is-pending .dm-onb-conn-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 30px; background: rgba(0, 24, 46, 0.04); cursor: default; }
/* 연결 중: 말풍선 「…」과 같은 점 세 개(5px · 사이 4 · 1.1초, 2026-11-11) */
.dm-onb-conn-dots { display: inline-flex; align-items: center; gap: 4px; height: 21px; }
.dm-onb-conn-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dm-typing-rest, #C9CDD1); animation: dm-typing-dot 1.1s ease-in-out infinite; }
.dm-onb-conn-dots i:nth-child(2) { animation-delay: .15s; }
.dm-onb-conn-dots i:nth-child(3) { animation-delay: .3s; }
:root[data-dm-theme="dark"] .dm-onb-conn.is-pending .dm-onb-conn-btn { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-onb-conn-dots i { --dm-typing-rest: #545A60; --dm-typing-on: #A2A8AE; background: #545A60; }
@media (prefers-reduced-motion: reduce) { .dm-onb-conn-dots i { animation: none; } }
.dm-onb-conn.is-connected .dm-onb-conn-btn { background: rgba(0, 24, 46, 0.04); color: #72777C; }
:root[data-dm-theme="dark"] .dm-onb-conn { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-onb-conn-name { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-onb-conn-btn { background: #F3F5F7; color: #080808; }
:root[data-dm-theme="dark"] .dm-onb-conn.is-connected .dm-onb-conn-btn { background: rgba(243, 245, 247, 0.08); color: #A2A8AE; }
/* 다크 다이얼로그 보조 버튼(「다음에」 · 「취소」): 상자(#1F1F1F)와 같은 색이라 안 보이던 것 → gray050a 다크(8% 흰), 다른 보조 버튼과 같게(2026-11-11) */
:root[data-dm-theme="dark"] .dm-dialog .dm-dialog-cancel { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }

/* 온보딩 인증코드(2026-11-11, Figma 1793:63745 · 64136): 「코드 다시 보내기」(생년월일 「왜 …?」 링크 그대로) · 42 · 6칸 —
   칸마다 입력칸. 너비는 화면이 넓어져도 늘 51(시안 393 폭에서의 칸 너비), 사이 8 · 모바일은 가운데 · PC 는 왼쪽 정렬.
   안쪽 18 · 반경 20 · 회색 3%(gray000a, 다크 흰 6%) · 숫자 22 Bold 행간 1.58 가운데. 지금 쓰는 칸은 고르는 중 줄과 같은 1px 테두리 */
.dm-onb-code { display: flex; justify-content: center; gap: 8px; margin-top: 42px; padding: 0 24px 40px; }
.dm-onb-code-cell { flex: none; box-sizing: border-box; width: 51px; height: calc(22px * 1.58 + 36px); margin: 0; padding: 0; border: 0; border-radius: 20px; outline: 0; background: rgba(0, 24, 46, 0.03); color: #131A20; font: inherit; font-size: 22px; font-weight: 700; line-height: 1.58; letter-spacing: -.11px; text-align: center; caret-color: transparent; }
.dm-onb-code-cell:focus { box-shadow: inset 0 0 0 1px #191919; }
.dm-onb-code-cell::selection { background: transparent; }
.dm-onb .dm-onb-note[hidden] { display: none; }
:root[data-dm-theme="dark"] .dm-onb-code-cell { background: rgba(243, 245, 247, 0.06); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-onb-code-cell:focus { box-shadow: inset 0 0 0 1px #f2f2f2; }
@media (min-width: 701px) {
  .dm-onb-code { justify-content: flex-start; margin-top: 40px; padding: 0; }
  .dm-onb-code-cell { height: calc(18px * 1.58 + 32px); font-size: 18px; letter-spacing: -.09px; }
}
/* 맞게 확인된 인증코드: 잠김 — 누를 수 없고 테두리 없음(2026-11-11) */
.dm-onb-code.is-done .dm-onb-code-cell { pointer-events: none; box-shadow: none; }
.dm-onb .dm-onb-why.is-gone { visibility: hidden; }   /* 자리는 그대로 두어 칸이 위로 올라오지 않게 */
@media (max-width: 700px) { .dm-onb-note.is-code { margin-bottom: 32px; } }   /* 「잘못된 인증코드예요」 ↔ 버튼 사이 32 — 모바일만(2026-11-11 사용자, PC 는 원래대로) */
/* 인증코드 화면의 꺼진 「다음」(Figma 1793:63745 · 다크 1793:64510): 회색 4% + #B2B2B2 / 다크 흰 8% + #7C7C7C — 다른 단계의 꺼진 버튼(20%)은 그대로 */
.dm-onb:has(.dm-onb-code) .dm-onb-next:disabled { background: rgba(0, 24, 46, 0.04); color: #AEB3B8; }
:root[data-dm-theme="dark"] .dm-onb:has(.dm-onb-code) .dm-onb-next:disabled { background: rgba(243, 245, 247, 0.08); color: #777D83; }
/* 다크에서도 「잘못된 인증코드예요」는 빨강(#FF7849) — 다크 안내 회색 규칙보다 앞서게 */
:root[data-dm-theme="dark"] .dm-onb .dm-onb-note.is-error.is-code { color: #ff7849; }
/* 맞게 확인돼 잠긴 인증코드 숫자: gray550s(라이트 #767676 · 다크 #A6A6A6, 2026-11-11) */
.dm-onb-code.is-done .dm-onb-code-cell { color: #72777C; }
:root[data-dm-theme="dark"] .dm-onb-code.is-done .dm-onb-code-cell { color: #A2A8AE; }
/* 온보딩 입력 줄 값 ↔ 화살표 사이 6(Figma 1741:75707 — [값 · 6 · 화살표 14] 묶음, 줄 사이 20에서 14 당김). 휴대폰 번호 줄에도 화살표(2026-11-11) */
.dm-onb-row .dm-onb-arrow { margin-left: -14px; }
/* 인증 완료: 「코드 다시 보내기」 자리에 같은 글자(15 Medium) · 밑줄 없음 · 누를 수 없음(2026-11-11) */
.dm-onb .dm-onb-why.is-verified { text-decoration: none; cursor: default; }
.dm-onb .dm-onb-why.is-verified:disabled { opacity: 1; color: #131A20; }
:root[data-dm-theme="dark"] .dm-onb .dm-onb-why.is-verified:disabled { color: #F3F5F7; }
/* 온보딩 ④ 「전화도 대신 걸어요」 아이콘(Figma Mono/Communication/Phone_line, 2026-11-11) */
.dm-onb-ico.is-phone { background-image: url('assets/figma/onboarding/phone.svg'); }
:root[data-dm-theme="dark"] .dm-onb-ico.is-phone { background-image: url('assets/figma/onboarding/phone-dark.svg'); }
.dm-onb-list small, .dm-onb-list strong { word-break: keep-all; overflow-wrap: anywhere; }   /* 설명이 낱말 중간(「드려 / 요」)에서 끊기지 않게(2026-11-11) */

/* 위젯 인용(quote, 2026-11-11 Figma 1816:65741 갱신): 보낼 메시지 — 왼쪽 3px 막대(gray150a, 일정 줄 막대와 같음) · 막대 ↔ 글 10 · 위아래 10 · 15 Medium gray900s(#191919 · 다크 #F2F2F2) 행간 1.5 */
.dm-widget .dm-wb-quote { position: relative; margin: 0; padding: 10px 0 10px 13px; color: var(--w-ink); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; }
.dm-widget .dm-wb-quote::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 999px; background: var(--w-bar); }
/* 일정 줄: 장소가 없어도(「엄마 생신」처럼 한 줄) 제목이 「종일」 · 시작 시각과 윗줄이 맞게 — 글 칸도 시각 칸처럼 높이 40 · 위에서부터(2026-11-11) */
.dm-wb-event-text { min-height: 40px; justify-content: flex-start; }
/* 메시지 보내기 승인(인용이 있는 위젯, Figma 1816:65741 갱신): 제목 16 SemiBold 행간 normal · 8 · 설명 14 Regular gray550s 행간 1.6 · 8 · 인용(위아래 10 포함) · 8 · 버튼 */
.dm-widget:has(> .dm-widget-body > .dm-wb-quote) .dm-wb-notice.is-strong p { line-height: normal; }
.dm-widget:has(> .dm-widget-body > .dm-wb-quote) .dm-wb-notice.is-strong + .dm-wb-text.is-muted { margin-top: -2px; color: var(--w-muted); font-size: 14px; line-height: 1.6; }
.dm-widget > .dm-widget-body > .dm-wb-text + .dm-wb-quote, .dm-widget > .dm-widget-body > .dm-wb-notice + .dm-wb-quote { margin-top: -2px; }
.dm-widget > .dm-widget-body > .dm-wb-quote + .dm-wb-buttons { margin-top: -2px; }
/* 쇼핑 할인율(2026-11-11): 가격 줄 맨 앞 「99%」 — 가격과 같은 16 Bold, 빨강 red500s(#FF472B · 다크 #FF7849), 가격과 사이 4 */
.dm-wb-price .dm-wb-discount { margin-right: 4px; color: #ff472b; font-style: normal; }
:root[data-dm-theme="dark"] .dm-wb-price .dm-wb-discount { color: #ff7849; }
.dm-wb-row-text .dm-wb-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 할인율이 붙어도 가격 줄은 한 줄(넘치면 …) */
/* 쇼핑 카드(Figma 558:34318, 2026-11-11): 썸네일 80(반경 16 · 선 gray070a) ↔ 글 12, 할인율은 15 Bold 빨강 · 가격 16 Bold, 사이 4 */
.dm-wb-list.is-product .dm-wb-row { gap: 12px; }
.dm-wb-list.is-product .dm-wb-price .dm-wb-discount { font-size: 15px; }
/* 쇼핑 가격 줄(Figma 558:34318): [할인율 15 Bold 빨강] 4 [가격 16 Bold — 넘치면 …], 할인 전 가격은 그리지 않음 */
.dm-wb-row-text .dm-wb-price { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dm-wb-row-text .dm-wb-price .dm-wb-discount { flex: none; margin-right: 0; }
.dm-wb-price-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 쇼핑 위젯(Figma 558:34318, 2026-11-11): 이미지는 글 오른쪽 80×80 — 이미지 없는 상품도 같은 줄 높이(80)로 글이 가운데 오게.
   할인율은 가격과 같은 16px Bold */
.dm-wb-list.is-product .dm-wb-thumb { order: 0; }
.dm-wb-list.is-product .dm-wb-row { min-height: 80px; align-items: center; }
.dm-wb-list.is-product .dm-wb-price .dm-wb-discount { font-size: 16px; }

/* ── 여러 정보 입력 양식(위젯 규칙 32, Figma 1825:66430 · 1825:66495 · 1825:66728, 2026-11-11) ──
   제목 16 SemiBold → 20 → 항목(라벨 14 SemiBold --w-muted · 8 · 칸 46) → 20 → … → 20 → 버튼.
   칸: 바탕 --w-solid(#f5f5f5 / 다크 #1a1a1a) · 둥글기 14 · 안쪽 12(고르기 칸은 오른쪽 10) · 글 15 --w-ink · 안내 글 --w-hint */
.dm-widget-body:has(> .dm-wb-form) { gap: 20px; }
.dm-widget-body:has(> .dm-wb-form) > .dm-wb-notice.is-strong p { line-height: normal; }
.dm-widget-body:has(> .dm-wb-form) > .dm-wb-buttons:not(:first-child) { margin-top: 0; }
.dm-wb-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dm-scene-fields.dm-wb-form { gap: 20px; margin: -2px; }
.dm-wb-form-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dm-wb-form-label, .dm-wb-form .dm-scene-fieldset legend { margin: 0; padding: 0; color: var(--w-muted); font-size: 14px; font-weight: 600; line-height: normal; }
fieldset.dm-wb-form-item > legend { float: left; width: 100%; margin-bottom: 8px; }
fieldset.dm-wb-form-item > legend + * { clear: both; }
.dm-wb-input { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; min-width: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 14px; outline: 0; background: var(--w-solid); color: var(--w-ink); font: inherit; font-size: 15px; line-height: normal; text-align: left; }
.dm-wb-input::placeholder { color: var(--w-hint); opacity: 1; }
.dm-wb-input:focus-visible { box-shadow: inset 0 0 0 1px var(--w-ink); }
.dm-wb-input.is-select { padding-right: 10px; cursor: pointer; }
.dm-wb-input.is-select > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-input.is-select > span.is-empty { color: var(--w-hint); }
.dm-wb-input:disabled { cursor: default; opacity: .5; }
/* 꺽쇠 14(Figma ico_arrow, 선 --w-ink) — 고르기 칸 · 약관 보기 */
.dm-wb-form-arrow { flex: none; width: 14px; height: 14px; background: var(--w-ink); -webkit-mask: url('assets/figma/onboarding/arrow.svg') center / 14px 14px no-repeat; mask: url('assets/figma/onboarding/arrow.svg') center / 14px 14px no-repeat; }
/* 여러 개 고르기: 회색 줄 46 · 줄 사이 4 · 체크 20(안 고름 선, 고름 채움 — 둘 다 --w-ink) · 글 15 */
.dm-wb-checks { display: flex; flex-direction: column; gap: 4px; }
.dm-wb-check { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--w-solid); color: var(--w-ink); font-size: 15px; line-height: normal; cursor: pointer; }
.dm-wb-check > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-check:has(input:disabled) { opacity: .5; cursor: default; }
:is(.dm-wb-check, .dm-wb-agree-check) > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dm-wb-check-mark, .dm-wb-agree-mark { flex: none; width: 20px; height: 20px; background: var(--w-ink); -webkit-mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16.67px 16.67px no-repeat; mask: url('assets/figma/widget/form/check-circle-line.svg') center / 16.67px 16.67px no-repeat; }
:is(.dm-wb-check, .dm-wb-agree-check):has(input:checked) :is(.dm-wb-check-mark, .dm-wb-agree-mark) { -webkit-mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); mask-image: url('assets/figma/widget/form/check-circle-solid.svg'); }
:is(.dm-wb-check, .dm-wb-agree-check):has(input:focus-visible) { outline: 1px solid var(--w-ink); outline-offset: 0; }   /* 키보드로 옮겼을 때만 */
/* 동의 · 기억하기 줄: 체크 24(안 그림 20) · 6 · 글 15 --w-ink, 약관 내용이 있으면 오른쪽 끝 꺽쇠 */
.dm-wb-agree { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.dm-wb-agree-check { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--w-ink); font-size: 15px; line-height: normal; cursor: pointer; }
.dm-wb-agree-check > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-wb-agree-mark { width: 24px; height: 24px; -webkit-mask-size: 20px 20px; mask-size: 20px 20px; }
.dm-wb-agree-check:has(input:disabled) { opacity: .5; cursor: default; }
.dm-wb-agree-more { display: grid; flex: none; place-items: center; width: 24px; height: 24px; margin-right: -5px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.dm-wb-agree-more:focus-visible { outline: 2px solid var(--w-ink); outline-offset: 0; }
/* 고르기 칸 피커 다이얼로그: 온보딩 휠 그대로, 다이얼로그 안 가운데 */
.dm-pick-dialog .dm-wheel { margin: 4px 0 8px; }
.dm-widget-head + .dm-widget-body > .dm-wb-form:first-child { margin-top: 4px; }   /* 머리 → 첫 항목 20(시안 1825:66495) */
/* 규칙 32 체크도 여러 개 고르기 위젯 체크와 같게(2026-11-11 사용자): 원형 체크 16, 안 고름 선 --w-off(#b2b2b2 / 다크 #7c7c7c), 고름 채움 --w-ink */
.dm-wb-check-mark, .dm-wb-agree-mark { width: 16px; height: 16px; background: var(--w-off); -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
:is(.dm-wb-check, .dm-wb-agree-check):has(input:checked) :is(.dm-wb-check-mark, .dm-wb-agree-mark) { background: var(--w-ink); }
.dm-wb-agree-check { gap: 8px; }   /* 체크가 16으로 줄어 글과의 사이는 고르기 위젯과 같은 8 */

/* 제목 + 설명(2026-11-11 사용자, Figma 1825:66752): 위젯 안 굵은 제목 16 SemiBold 줄 높이 normal → 14 → 설명 14 Regular --w-muted(#767676 / 다크 #a6a6a6) 줄 높이 1.6.
   승인 · 메시지 보내기 · 메일 정리 · 가입 동의 등 제목 다음에 설명이 오는 위젯 모두 같은 값(본문 gap 10 이면 +4, 양식 gap 20 이면 -6) */
.dm-widget > .dm-widget-body > .dm-wb-notice.is-strong p { line-height: normal; }
.dm-widget.dm-widget > .dm-widget-body > .dm-wb-notice.is-strong + :is(.dm-wb-text.is-muted, .dm-wb-helper) { margin-top: 4px; color: var(--w-muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.dm-widget.dm-widget:is(.is-form, :has(> .dm-widget-body > .dm-wb-form)) > .dm-widget-body > .dm-wb-notice.is-strong + :is(.dm-wb-text.is-muted, .dm-wb-helper) { margin-top: -6px; }
/* 체크 크기(2026-11-11 사용자): 여러 개 고르기 줄 · 동의 줄 모두 20(Figma Check01 배지 20 — 안 그림 16.67). 색은 위처럼 안 고름 --w-off · 고름 --w-ink */
.dm-wb-check-mark, .dm-wb-agree-mark { width: 20px; height: 20px; -webkit-mask-size: 16.67px 16.67px; mask-size: 16.67px 16.67px; }
.dm-wb-agree-check { gap: 6px; }   /* 동의 줄 체크 ↔ 글 8 → 6(2026-11-11 사용자) */
/* 관심분야 같은 여러 개 고르기 회색 줄(규칙 32 ⑥) = 기존 여러 개 고르기 위젯 줄 그대로(2026-11-11 사용자):
   테두리 1px 투명 · 줄 사이 6 · 체크 16 · 호버/누름 겹침 */
.dm-wb-checks { gap: 6px; }
.dm-wb-check { border: 1px solid transparent; }
.dm-wb-check-mark { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
@media (hover: hover) {
  .dm-wb-check:not(:has(input:disabled)):not(:has(input:checked)):hover { background-image: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)); }
  :root[data-dm-theme="dark"] .dm-wb-check:not(:has(input:disabled)):not(:has(input:checked)):hover { background-image: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); }
}
.dm-wb-check:not(:has(input:disabled)):active { background-image: linear-gradient(rgba(0, 24, 46, 0.09), rgba(0, 24, 46, 0.09)); }
:root[data-dm-theme="dark"] .dm-wb-check:not(:has(input:disabled)):active { background-image: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)); }

/* 로그인 정보: 기존 설정 줄·입력 시트 재사용, 긴 사이트·아이디는 줄바꿈(TASK-991). */
.dm-login-row > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.dm-login-row strong, .dm-login-row small { display: block; }

/* ── 챙기는 일을 활동 › 예약에서 (TASK-990) — 시안이 없어 활동 줄 · ··· 메뉴 · 예약 시트 부품만 조합. 새 색 · 크기 없이 기존 값 재사용 ── */
/* ··· 「지금 실행」 아이콘: Lucide zap, 메뉴 아이콘과 같은 24 · 선 2 · #191919(다크 #F2F2F2) */
.dm-act-menu .is-run::before { background-image: url('assets/figma/activity/menu-run.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .is-run::before { background-image: url('assets/figma/activity/menu-run-dark.svg'); }
/* 끝난 챙기는 일(목록 맨 아래에 접어서): 접기 머리는 설정 묶음 제목(14 SemiBold #767676), 펼친 줄은 활동 줄 그대로 */
.dm-act-fold { margin-top: 20px; }
.dm-act-fold > summary { padding: 8px 16px; color: #72777C; font-size: 14px; font-weight: 600; line-height: 1.32; cursor: pointer; list-style-position: inside; }
.dm-act-fold > summary:focus-visible { outline: 2px solid var(--act-ink); outline-offset: -2px; border-radius: 8px; }
.dm-act-fold > .dm-act-list { padding-top: 0; }
:root[data-dm-theme="dark"] .dm-act-fold > summary { color: #A2A8AE; }
/* 챙기는 일 편집 시트: 예약 편집 시트(1678:53443) 틀. 읽기 전용 줄은 고르기 줄과 같은 모양에 눌림 표시 없이, 값 옆 회색 알약(연장 · 연결하기) */
.dm-loop-sheet { --act-ink: #131A20; --act-sub: #545A60; --act-fill: rgba(0, 24, 46, 0.04); --act-strong: #282F35; --act-on-strong: #fff;
  --w-ink: #131A20; --w-ink-2: #3D4348; --w-ink-3: #545A60; --w-muted: #72777C; --w-line: rgba(0, 0, 0, .04); --w-fill: rgba(0, 24, 46, 0.04); --w-bar: rgba(0, 24, 46, 0.13); }
:root[data-dm-theme="dark"] .dm-loop-sheet { --act-ink: #F3F5F7; --act-sub: #C9CDD1; --act-fill: rgba(243, 245, 247, 0.08); --act-strong: #EDF0F3; --act-on-strong: #282828;
  --w-ink: #F3F5F7; --w-ink-2: #DAE0E6; --w-ink-3: #C9CDD1; --w-muted: #A2A8AE; --w-line: rgba(255, 255, 255, .08); --w-fill: rgba(243, 245, 247, 0.08); --w-bar: rgba(243, 245, 247, 0.17); }
.dm-sheet-option.is-static { cursor: default; }
.dm-sheet-option.is-static:hover, .dm-sheet-option.is-static:active { background: none; }
:root[data-dm-theme="dark"] .dm-sheet-option.is-static:hover, :root[data-dm-theme="dark"] .dm-sheet-option.is-static:active { background: none; }
.dm-sheet-value { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: right; }
.dm-sheet-value strong { min-width: 0; overflow-wrap: anywhere; }
.dm-sheet-text { margin: 0; padding: 0 4px; color: #131A20; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
:root[data-dm-theme="dark"] .dm-sheet-text { color: #F3F5F7; }
/* 챙기는 일 시트들(편집 · 알아서 할 일 정하기 · 제안 고치기)의 스위치 · 고르기 줄은 시트의 라벨 · 값 줄과 같은 왼쪽(안쪽 4)에서 시작(TASK-990 dev 확인 후속) */
:is(.dm-loop-sheet, .dm-loop-grant-sheet, .dm-loop-item-sheet) .dm-set-row { padding-right: 4px; padding-left: 4px; }
:is(.dm-loop-sheet, .dm-loop-grant-sheet, .dm-loop-item-sheet) .dm-set-row::before { inset: 0 -4px; }
.dm-loop-sheet .dm-sheet-field > .dm-set-note { padding: 0 4px; }
.dm-loop-sheet .dm-act-buttons { margin-top: 4px; }
/* 규칙 32 글은 말줄임 없이 줄바꿈(2026-11-11 사용자: 주민번호 · [필수] 같은 중요한 정보는 잘리면 안 됨, 시안 1825:66495 · 1825:66728 긴 글).
   한 줄일 때 모습은 그대로(회색 줄 46 · 동의 줄 20/24), 좁아지면 낱말 단위로 아래로 늘어나고 체크 · 꺽쇠는 글 덩어리 세로 가운데(시안대로) */
.dm-wb-check > span, .dm-wb-agree-check > span, .dm-wb-input.is-select > span { overflow: visible; white-space: normal; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; line-height: 18px; }
.dm-wb-check { height: auto; min-height: 46px; padding-top: 13px; padding-bottom: 13px; }
.dm-wb-input.is-select { height: auto; min-height: 46px; padding-top: 14px; padding-bottom: 14px; }
/* 여러 개 고르기는 고르는 동안 나머지를 흐리게 하지 않음(2026-11-11 사용자) — 하나만 고르기는 그대로 40%.
   선택지 위젯(질문 카드 multiple · 위젯 블록 multiple)과 규칙 32 체크 목록 모두. 답을 보낸 뒤(is-answered · 잠금) 모습은 그대로 */
.dm-wb-choices.has-choice:not(.is-answered):is([data-question-selection="multiple"], :has(> .dm-wb-options[aria-multiselectable="true"])) .dm-wb-option:not([aria-selected="true"]):not(:disabled) { opacity: 1; }
/* 머리(아이콘 + 이름) 있는 위젯의 설명도 규칙 33 설명과 같게(2026-11-11 사용자, 데브 본인 인증): 14 · 줄 1.6 · --w-muted.
   머리 → 설명은 위젯 사이 14 그대로. 한글은 낱말 단위로 줄바꿈(「주 / 민번호」처럼 끊기지 않게) — 제목 + 설명 위젯 설명도 같이 */
.dm-widget.dm-widget > .dm-widget-head + .dm-widget-body > :is(.dm-wb-text.is-muted, .dm-wb-helper):first-child { color: var(--w-muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.dm-widget > .dm-widget-head + .dm-widget-body > :is(.dm-wb-text.is-muted, .dm-wb-helper):first-child,
.dm-widget > .dm-widget-body > .dm-wb-notice.is-strong + :is(.dm-wb-text.is-muted, .dm-wb-helper) { word-break: keep-all; overflow-wrap: anywhere; }
/* 여러 위젯이 함께 나올 때(브리핑 요청이 아닐 때, 위젯 계약 34 · Figma 1832:67966): 한 카드 안에 위젯마다 제 머리(아이콘 24 + 이름) · 몸통을 그대로,
   사이는 1px 선(위 18 · 아래 20 — 시안 날씨 → 메일 → 일정). 안쪽 위젯은 카드 테두리 · 바탕 · 안쪽 여백 없이 */
.dm-widget.is-bundle { gap: 0; }
.dm-widget.is-bundle > .dm-widget, :root[data-dm-theme="dark"] .dm-widget.is-bundle > .dm-widget { width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
:is(.dm-widget, .messages .message .dm-widget).is-bundle > .dm-bundle-divider { margin: 10px 0 12px; }
:is(.dm-widget, .messages .message .dm-widget).is-bundle > .dm-widget { margin: 0; }   /* 위젯끼리 사이 8(.messages … > * + .dm-widget)은 묶음 안에서는 안 씀 */

/* 포커스 테두리는 키보드로 옮길 때만(2026-11-11 사용자: 다이얼로그 「확인」 등에 테두리가 저절로 그려짐). theme.js · join.js 가 Tab · 화살표를 누르면
   <html data-kbd-focus>, 누르기(마우스 · 터치)를 하면 지움. 그 표시가 없으면 :focus-visible 테두리 · 고리 · 밑줄을 그리지 않는다. 글 입력칸 테두리는 그대로 */
:root:not([data-kbd-focus]) :focus-visible, :root:not([data-kbd-focus]) :has(> input:focus-visible) { outline: none !important; }
:root:not([data-kbd-focus]) :focus-visible:not(input, textarea)::before, :root:not([data-kbd-focus]) :focus-visible:not(input, textarea)::after { box-shadow: none !important; }
:root:not([data-kbd-focus]) .dm-wheel-col:focus-visible .dm-wheel-item.is-selected { text-decoration: none; }
/* 로그인 위젯 「다른 방법으로 로그인」(2026-11-11 사용자, 시안 801:42747): 입력칸 아래 글 버튼(14 Regular --w-muted · 높이 44 · 전체 폭) → 8 → 「로그인」.
   누르면 같은 위젯이 로그인 방법 고르기(로그인 방법 위젯과 같은 줄 목록 + 「이전」)로 바뀜 — 위젯 아래 알약 목록은 없음 */
.dm-wb-login-actions { display: flex; flex-direction: column; gap: 8px; }
.dm-wb-login-other, .dm-wb-text-btn { width: 100%; height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--w-muted); font: inherit; font-size: 14px; font-weight: 400; line-height: normal; cursor: pointer; }
.dm-wb-login-pick { display: none; flex-direction: column; gap: 12px; }
.dm-widget.is-login-picking > .dm-widget-body > :not(.dm-wb-login-pick) { display: none; }
.dm-widget.is-login-picking > .dm-widget-body > .dm-wb-login-pick { display: flex; }
.dm-wb-login-pick .login-options-status { margin: 0; color: var(--w-muted); font-size: 13px; line-height: 1.5; }
.dm-wb-login-pick .login-options-status:empty { display: none; }
/* 온보딩 단계 첫 입력칸 정렬(2026-11-11 사용자, Figma 1741:64134 휴대폰 · 1793:63745 인증코드): 제목 아래 둘째 줄
   (① 「왜 생년월일이 필요한가요?」 · ② 안내 두 줄 · ③ 남은 시간)을 같은 높이(14 × 1.6 두 줄 = 45)의 자리로 두고 그 안 가운데 —
   단계를 넘겨도 첫 칸 위치가 그대로(덜컹거리지 않게). 간격은 시안대로 제목 → 28 → 둘째 줄, 둘째 줄 → 44 → 첫 칸(PC 20 · 40) */
.dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { box-sizing: border-box; display: grid; align-content: center; min-height: calc(14px * 1.6 * 2); margin-top: 28px; }
.dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-why { justify-self: center; }
.dm-onb:not(.is-waiting) :is(.dm-onb-rows, .dm-onb-code) { margin-top: 44px; }
/* 남은 시간(모바일 Figma 1793:63745): 「02:59」 16 Medium #191919 가운데, 인증되면 같은 자리에 「인증이 완료됐어요」 */
.dm-onb-timer { margin-left: 30px; margin-right: 30px; margin-bottom: 0; color: #131A20; font-size: 16px; font-weight: 500; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; }
:root[data-dm-theme="dark"] .dm-onb-timer { color: #F3F5F7; }
/* 「코드 다시 보내기」 모바일: 칸 아래 40(칸 묶음 아래 여백), 15 Regular #767676 밑줄. PC 용(줄 안) 버튼은 숨김 */
.dm-onb-resend { padding: 0; border: 0; background: none; font: inherit; font-weight: 400; line-height: 1.6; text-decoration: underline; text-underline-position: from-font; cursor: pointer; }
.dm-onb-resend.is-m { align-self: center; margin: 0 30px; color: #72777C; font-size: 15px; }
.dm-onb-resend.is-pc { display: none; }
.dm-onb-resend.is-gone { visibility: hidden; }
.dm-onb-resend:disabled:not(.is-gone) { color: #AEB3B8; cursor: default; }
:root[data-dm-theme="dark"] .dm-onb-resend:disabled:not(.is-gone) { color: #777D83; }
:root[data-dm-theme="dark"] .dm-onb-resend.is-m { color: #A2A8AE; }
@media (min-width: 701px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { margin-top: 20px; }
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-why { justify-self: start; }
  .dm-onb:not(.is-waiting) :is(.dm-onb-rows, .dm-onb-code) { margin-top: 40px; }
  /* PC 시안 1793:64828: 한 줄에 시간(왼쪽, 14 Regular #595959) · 「코드 다시 보내기」(오른쪽, 14 Regular #191919 밑줄) */
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: 0; margin-right: 0; color: #545A60; font-size: 14px; font-weight: 400; text-align: left; }
  .dm-onb-resend.is-pc { display: block; margin: 0; color: #131A20; font-size: 14px; }
  .dm-onb-resend.is-m { display: none; }
  :root[data-dm-theme="dark"] .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { color: #C9CDD1; }
  :root[data-dm-theme="dark"] .dm-onb-resend.is-pc { color: #F3F5F7; }
  /* 칸: 폭을 6등분해 꽉 채움(사이 8), 높이 71 · 글 22 Bold — 모바일과 같은 크기 */
  .dm-onb-code .dm-onb-code-cell { flex: 1 1 0; width: auto; min-width: 0; height: calc(22px * 1.58 + 36px); font-size: 22px; letter-spacing: -.11px; }
}
/* 휴대폰 번호 칸은 꺽쇠 없음(쓰는 칸, 2026-11-11 사용자) → 오른쪽 여백도 왼쪽과 같은 28(시안 1741:64176 px 28) */
.dm-onb-row:has(> input[name="phone"]) { padding-right: 28px; }

/* ── 온보딩 2026-11-12 (사용자 · Figma 1741:64134 휴대폰 · 1873:48874 인증코드 모바일 · 1793:64828 PC) ──
   입력칸은 모두 높이 70. 제목 → 32 → 안내 · 시간 줄(두 줄 높이, 가운데) → 48 → 첫 입력칸 — 단계를 넘겨도 첫 칸 자리가 같음.
   인증코드: 시간(왼쪽, 15 Regular #595959) · 「코드 다시 보내기」(오른쪽, 15 Medium 밑줄 #191919)가 한 줄, 칸 6개는 폭을 나눠 높이 70 */
.dm-onb-row { box-sizing: border-box; height: 70px; padding-block: 0; }
.dm-onb-resend { margin: 0; }
@media (max-width: 700px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { margin-top: 32px; }
  .dm-onb:not(.is-waiting) :is(.dm-onb-rows, .dm-onb-code) { margin-top: 48px; }
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: 30px; margin-right: 30px; color: #545A60; font-size: 15px; font-weight: 400; line-height: 1.6; text-align: left; }
  .dm-onb-resend { color: #131A20; font-size: 15px; font-weight: 500; }
  :root[data-dm-theme="dark"] .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { color: #C9CDD1; }
  :root[data-dm-theme="dark"] .dm-onb-resend { color: #F3F5F7; }
  .dm-onb-code .dm-onb-code-cell { flex: 1 1 0; width: auto; min-width: 0; height: 70px; }
  /* 위(닫기 · 단계 점)와 아래 버튼은 고정, 가운데만 스크롤. 높이는 보이는 화면(키패드 뺀) 만큼 → 아래 버튼이 키패드 위로 같이 올라감 */
  body.dm-onb-body { overflow: hidden; }
  .dm-onb-page .dm-onb:not(.is-waiting) { position: fixed; top: var(--onb-top, 0px); right: 0; left: 0; height: var(--onb-h, 100dvh); min-height: 0; }
  .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-main { position: static; flex: 1 1 0; min-height: 0; margin-top: calc(env(safe-area-inset-top, 0px) + 64px); padding-top: 40px; overflow: hidden auto; overscroll-behavior: contain; }
  /* 키패드가 올라와도 아래 버튼은 화면 맨 아래 그대로(키패드에 가려짐, 2026-11-17). 가운데는 가려진 높이만큼 아래 여백 → 스크롤로 닿음 */
  :root[data-onb-kbd] .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-main { padding-bottom: var(--onb-kbd-h, 0px); }
}
@media (min-width: 701px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { margin-top: 24px; }
  .dm-onb-resend { color: #131A20; font-size: 14px; font-weight: 400; }
  :root[data-dm-theme="dark"] .dm-onb-resend { color: #F3F5F7; }
  .dm-onb-code .dm-onb-code-cell { height: 64px; }   /* PC 칸은 시안 64 */
}
/* 인증되면 시간 줄은 자리만 남기고 숨김 — 「인증이 완료됐어요」는 아래 안내 자리(잘못된 코드 안내와 같은 곳, 회색)(2026-11-12) */
.dm-onb-timer.is-verified { visibility: hidden; }
@media (max-width: 700px) {
  /* 모바일 인증코드: 시간 줄 · 코드 칸은 최대 345 폭, 더 넓은 화면에서는 가운데(2026-11-12 사용자) */
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { box-sizing: border-box; width: min(calc(100% - 48px), 345px); margin-left: auto; margin-right: auto; padding: 0 6px; }
  .dm-onb-code { box-sizing: border-box; width: min(100%, 393px); margin-left: auto; margin-right: auto; }   /* 좌우 24 안쪽 칸 폭 최대 345 */
}
@media (min-width: 701px) {
  /* PC 인증코드(Figma 1793:64828): 제목 → 24 → 시간 줄 한 줄(22) → 40 → 칸 64. 아래 버튼 높이 58 */
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { min-height: 0; }
  .dm-onb:not(.is-waiting) .dm-onb-actions :is(.dm-onb-prev, .dm-onb-next) { height: 58px; }
}
@media (min-width: 701px) { .dm-onb-note.is-code.is-done:not([hidden]) { display: block; } }
@media (min-width: 701px) { .dm-onb-note.is-code { margin-bottom: 16px; } }   /* PC 인증코드 아래 안내 ↔ 버튼 12 → 16(2026-11-12 사용자) */
@media (min-width: 701px) { .dm-onb-row { height: 64px; } }   /* PC 입력칸은 64(2026-11-12 사용자 — 70 은 모바일만) */
/* PC 생년월일(Figma 1741:77942): 제목 → 24 → 「왜 생년월일이 필요한가요?」 한 줄(24) → 40 → 칸 64, 칸 사이 10(2026-11-12 사용자) */
@media (min-width: 701px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { min-height: 0; }
  .dm-onb-rows { gap: 10px; }
}
/* PC: 첫 입력칸은 단계마다 같은 자리(다이얼로그 위에서 258, Figma 1741:77942 · 1741:78034, 2026-11-12 사용자).
   제목 아래 안내 · 링크 · 시간 줄은 높이 24 칸의 세로 가운데에 둠 — 두 줄 안내는 위아래로 같이 넘쳐서 제목 ↔ 안내, 안내 ↔ 첫 칸 사이가
   시안처럼 고르게 보임(Figma Body: 높이 24 · justify-center). 그 아래 40 → 첫 칸 */
@media (min-width: 701px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { box-sizing: border-box; height: 24px; min-height: 0; align-content: center; overflow: visible; }
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-timer { align-items: center; }
}
/* 다크 비활성 채움 버튼(Figma 1873:51596, 2026-11-12 사용자): 바탕 gray050a 다크(흰 8%) · 글 gray400s 다크 #7C7C7C —
   온보딩 「다음」 · 위젯 주 버튼 · 시트 확인 · 가입 · 약관 확인 모두 같게 */
:root[data-dm-theme="dark"] :is(.dm-onb .dm-onb-next, .dm-widget-btn.is-submit, .dm-sheet-submit:not(.is-soft), button.join-primary, .dm-terms .dm-dialog-ok):is(:disabled, .is-disabled) { background: rgba(243, 245, 247, 0.08); color: #777D83; opacity: 1; }   /* style.css 의 button:disabled 투명 45% 를 끔 — 시안 색 그대로 */
:is(.dm-onb .dm-onb-next, .dm-widget-btn.is-submit, .dm-sheet-submit:not(.is-soft), button.join-primary, .dm-terms .dm-dialog-ok):is(:disabled, .is-disabled) { background: rgba(0, 24, 46, 0.04); color: #AEB3B8; opacity: 1; }   /* 라이트: gray050a(검정 4%) · gray400s #B2B2B2, 투명 없이 — 비활성 채움 버튼 모두(2026-11-12 사용자) */
/* /join 은 data-dm-theme 없이 OS 다크 설정만 따르므로 위 다크 규칙과 같은 값을 여기 따로 둔다 */
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
:root[data-dm-theme="dark"] .figma-join-body button.join-primary:disabled { background: rgba(243, 245, 247, 0.08); color: #777D83; }
/* 음성 입력 중 오른쪽 버튼(2026-11-12 사용자): 중지(■) 대신 보내기(↑) — 누르면 들은 말이 바로 보내지는 동작은 그대로. 보내기 버튼과 같은 모양 */
body.figma-chat-page .composer.is-listening .figma-voice-button { background: #131A20 url('assets/figma/composer/arrow-up.svg') center / 22px no-repeat; }
body.figma-chat-page .composer.is-listening .figma-voice-button::after { content: none; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-listening .figma-voice-button { background: #F3F5F7 url('assets/figma/composer/arrow-up-dark.svg') center / 22px no-repeat; }
/* 입력창 첨부(2026-11-12 사용자): 칩을 누르면 빼기(열기 · 내려받기 없음). 여러 장이면 입력창 양 끝에서 바로 잘리게 —
   줄은 입력창 끝까지 넓히고(좌우 -10) 안쪽 여백 20 으로 첫 칩 자리는 그대로(둥근 잘림 없이 곧게) */
body.figma-chat-page .composer-files .attach-chip { cursor: pointer; }
body.figma-chat-page .composer-files { margin-inline: -10px; padding-inline: 20px; scroll-padding-inline: 20px; }
body.figma-chat-page .composer-files { width: calc(100% + 20px); clip-path: inset(-16px 0 0 0 round 32px 32px 0 0); }   /* 입력창 모양 밖으로 칩이 삐져나오지 않게 — 잘리는 영역을 입력창 위끝(-16)까지 올려 입력창 둥글기(32)와 같은 곡선으로 자름 */
/* 바텀시트가 열린 동안(모바일) 화면 바깥 바탕도 시트 색 — 폰 브라우저 아래 바가 시트와 같은 색으로 보이게(2026-11-12 사용자) */
@media (max-width: 700px) {
  /* 시트가 닫혀 있을 때 화면 바깥 바탕은 페이지 바탕을 그대로 따름(다크 채팅 · 메뉴 #080808 — 전엔 html 만 #202020 이라 폰 브라우저 바 색이 들쭉날쭉) */
  :root[data-dm-theme="dark"]:has(body:is(.figma-chat-page, .figma-menu-page)) { background-color: var(--dm-ui-chat-dark-canvas); }
  html:has(body > .dm-sheet-scrim) { background-color: #fff; }
  :root[data-dm-theme="dark"]:has(body > .dm-sheet-scrim) { background-color: #202020; }
}
/* 통화 · 예약 시트의 여러 줄 입력칸 높이 208 → 180(2026-11-12 사용자) */
.dm-sheet-textbox, .dm-sheet > .dm-sheet-form .dm-sheet-textarea:not(.dm-sheet-textbox .dm-sheet-textarea), .dm-sheet-textarea:not(.dm-sheet-textbox *) { height: 180px; }
/* 연결 동의 바텀시트(Figma 1713:60028, 2026-11-12 사용자): 안내 문구 · 버튼은 아래에 고정, 위 내용만 스크롤.
   아래 여백은 버튼 아래 16 + 홈 막대 자리(safe-area)만 — 전엔 safe-area 가 0 인 브라우저에서도 34 를 더 띄웠음 */
.dm-consent-sheet { overflow: hidden; }
.dm-consent-sheet > .dm-consent-body { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.dm-consent-sheet > :is(.dm-consent-note, .dm-consent-actions) { flex: none; }
.dm-consent-actions { padding-bottom: 16px; }
@media (max-width: 700px) { .dm-consent-sheet { max-height: calc(100dvh - 52px); } }
@media (min-width: 701px) { .dm-consent-sheet { max-height: calc(100dvh - 48px); } .dm-consent-actions { padding-bottom: 24px; } }
/* 서비스 연결 동의 시트(Figma 1713:60334, 2026-11-12 사용자): 시트 높이 고정(모바일: 위 GNB 64 아래부터 화면 끝까지 — 시안 735).
   위(로고 · 제목 · 설명)와 아래(안내 문구 · 버튼)는 고정, 가운데 회색 박스(1713:60441)만 남는 높이를 채움 —
   내용이 짧으면 박스 안에 여백, 길면 박스 안이 스크롤 */
.dm-consent-sheet > .dm-consent-body { flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden; }
.dm-consent-sheet .dm-consent-top { flex: none; }
.dm-consent-sheet .dm-consent-box { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.dm-consent-sheet .dm-consent-box > * { flex: none; }
@media (max-width: 700px) { .dm-consent-sheet { height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); max-height: none; } }
@media (min-width: 701px) { .dm-consent-sheet { height: min(640px, calc(100dvh - 48px)); max-height: none; } }
/* 서비스 연결(2026-11-12 사용자): 상세뷰 「연결됨」 · 「다시 로그인」 · 「준비중」 글자 Medium, 「연결됨」 글자 gray700(#424242 / 다크 #DFDFDF). 목록 「연결됨」 버튼 글자도 gray700 */
.dm-conn-cta:is(.is-linked, .is-alert, .is-soon) { font-weight: 500; }
.dm-conn-cta.is-linked, .dm-conn-cta.is-done.is-static.is-linked { color: #3D4348; }
:root[data-dm-theme="dark"] :is(.dm-conn-cta.is-linked, .dm-conn-cta.is-done.is-static.is-linked) { color: #DAE0E6; }
.dm-conn-btn.is-done { color: #3D4348; }
:root[data-dm-theme="dark"] .dm-conn-btn.is-done { color: #DAE0E6; }
/* 빈 화면(목록에 아무것도 없을 때) 글자 통일(2026-11-12 사용자): 제목 18 · 설명 15 — 활동 · 보관함 · 기억 · Vault · 서비스 연결 모두. 탈퇴 확인 화면은 빈 화면이 아니라 제외 */
.dm-act-empty:not(.dm-del-confirm) h2, .dm-connections .dm-act-empty.dm-conn-empty h2 { font-size: 18px; }
.dm-act-empty:not(.dm-del-confirm) p { font-size: 15px; }
/* 동의 박스: 박스(회색 · 반경 24 · 안쪽 22)는 그대로, 그 안쪽만 스크롤 — 스크롤한 글이 박스 위아래 끝까지 올라와 잘려 보이지 않게(2026-11-12 사용자).
   스크롤 막대는 다른 시트와 같은 모양(폭 4 · 검정 16% / 다크 흰 20%) */
.dm-consent-sheet .dm-consent-box { display: flex; overflow: hidden; }
.dm-consent-scroll { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; min-height: 0; margin-right: -14px; padding-right: 10px; overflow: hidden auto; overscroll-behavior: contain; }
.dm-consent-scroll > * { flex: none; }
.dm-consent-scroll::-webkit-scrollbar { width: 4px; }
.dm-consent-scroll::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, .14); }
:root[data-dm-theme="dark"] .dm-consent-scroll { }
:root[data-dm-theme="dark"] .dm-consent-scroll::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
.dm-consent-sheet .dm-consent-box > .dm-consent-scroll { flex: 1 1 auto; min-height: 0; }
/* 스크롤 막대 색 통일(2026-11-12 사용자): 대화 · 표 · 코드 · 시트 · 입력 상자 · 통화 기록 · 동의 박스 모두 검정 16% / 다크 흰 20%, 모서리 둥글게 */
body.figma-chat-page { --chat-scroll: rgba(0, 0, 0, .14); }
:root[data-dm-theme="dark"] body.figma-chat-page { --chat-scroll: rgba(255, 255, 255, .22); }
:is(.dm-sheet-textarea, .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body), .dm-call-scroll, .dm-consent-scroll) { }
:is(.dm-sheet-textarea, .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body), .dm-call-scroll, .dm-consent-scroll)::-webkit-scrollbar-thumb { border-radius: 100px; background-color: rgba(0, 0, 0, .14); }
:root[data-dm-theme="dark"] :is(.dm-sheet-textarea, .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body), .dm-call-scroll, .dm-consent-scroll) { }
:root[data-dm-theme="dark"] :is(.dm-sheet-textarea, .dm-sheet > :is(.dm-sheet-form, .dm-conn-sheet-body), .dm-call-scroll, .dm-consent-scroll)::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
/* 사진 뷰어 넘기기(2026-11-12 사용자): 사진을 한 줄로 두고 줄을 옮김 — 끄는 동안 옆 사진이 같이 끌려옴 */
.dm-pv-stage { position: absolute; inset: 0; overflow: hidden; }
.dm-pv-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.dm-pv-slide { display: grid; flex: 0 0 100%; place-items: center; min-width: 0; height: 100%; }
.dm-pv-nav[hidden] { display: none; }
/* 사진 뷰어(2026-11-12 사용자 녹화 참고): 사진 사이 틈 20, 사진은 화면 폭을 꽉 채움(좌우 여백 없음) */
.dm-pv-track { gap: 20px; }
.dm-photo-viewer .dm-pv-slide .dm-pv-img { max-width: 100vw; }
/* 간편 인증 대기(TASK-766): 첫 선택지만 검정 주 버튼(전체 폭), 나머지 선택지와 「그만두기」는 그 아래 글 버튼(위 「다른 방법으로 로그인」과 같은 모양) */
.dm-wb-auth-choices { display: flex; flex-direction: column; gap: 8px; }
.dm-widget-body > .dm-wb-auth-choices:not(:first-child) { margin-top: 2px; }
.dm-wb-auth-choices > .dm-widget-btn { box-sizing: border-box; width: 100%; min-height: 44px; padding: 6px 20px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: center; white-space: normal; word-break: keep-all; }
/* 예전 카드(.row button 회색 테두리 · 흰 바탕)에서도 글 버튼 모양 그대로 */
.dm-wb-auth-choices > .dm-wb-text-btn { padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--w-muted); font-size: 14px; font-weight: 400; }
.dm-wb-text-btn:disabled, .dm-wb-auth-choices > .dm-widget-btn:disabled { cursor: default; opacity: .5; }
.approval-card > .dm-wb-auth-choices { width: 0; min-width: 100%; }
/* 받아쓰는 중(2026-11-12 사용자): 줄 배치는 듣는 중과 같게(왼쪽 취소 자리는 비워 둠) — 이퀄라이저 폭이 바뀌지 않게.
   오른쪽 버튼은 흐려지지 않고 보내기 화살표 대신 도는 아이콘(마이크 준비 중과 같은 것, 버튼 위라 흰색 / 다크 어두운 색) */
body.figma-chat-page .composer.is-listening.is-transcribing { grid-template-areas: "label label label" "cancel wave action"; }
body.figma-chat-page .composer.is-transcribing .figma-voice-button { opacity: 1; background-image: none !important; }
body.figma-chat-page .composer.is-transcribing .figma-voice-button .ui-icon { display: none; }
body.figma-chat-page .composer.is-transcribing .figma-voice-button .figma-voice-spinner { display: block; }
body.figma-chat-page .composer.is-transcribing .figma-voice-button .figma-voice-spinner circle { stroke: #fff; }
:root[data-dm-theme="dark"] body.figma-chat-page .composer.is-transcribing .figma-voice-button .figma-voice-spinner circle { stroke: #282828; }
/* 탈퇴 확인 다이얼로그의 「확인」(2026-11-12 사용자): 서비스 연결 「다시 로그인」과 같은 빨간 버튼(빨강 10% 바탕 · #FF472B 글 · Medium, 다크 빨강 14% · #FF7849) */
/* 아래 고정 버튼 영역 위 그라디언트(2026-11-12 사용자): 스크롤되는 내용이 버튼 영역에서 뚝 끊겨 보이지 않게 위로 32 동안 바탕색으로 서서히 덮음.
   온보딩(모바일) · 통화/예약 등 바텀시트. 아래에 내용이 더 있을 때만(data-more-below, app.js) — 끝까지 내리면 사라져 마지막 칸을 가리지 않음. 바탕색은 각 화면 바탕(--fade) */
.dm-onb-page .dm-onb:not(.is-waiting) { --fade: #fff; }
:root[data-dm-theme="dark"] .dm-onb-page .dm-onb:not(.is-waiting) { --fade: #080808; }
.dm-sheet { --fade: #fff; }
:root[data-dm-theme="dark"] .dm-sheet { --fade: #202020; }
.dm-sheet > .dm-sheet-actions { position: relative; z-index: 1; }
.dm-sheet[data-more-below] > .dm-sheet-actions::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 32px; background: linear-gradient(to bottom, color-mix(in srgb, var(--fade) 0%, transparent) 0%, color-mix(in srgb, var(--fade) 45%, transparent) 40%, color-mix(in srgb, var(--fade) 85%, transparent) 75%, var(--fade) 100%); pointer-events: none; }
.dm-sheet > .dm-sheet-actions { background: var(--fade); }
@media (max-width: 700px) {
  .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-foot { position: relative; z-index: 1; background: var(--fade); }
  .dm-onb-page .dm-onb[data-more-below]:not(.is-waiting) .dm-onb-foot::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 32px; background: linear-gradient(to bottom, color-mix(in srgb, var(--fade) 0%, transparent) 0%, color-mix(in srgb, var(--fade) 45%, transparent) 40%, color-mix(in srgb, var(--fade) 85%, transparent) 75%, var(--fade) 100%); pointer-events: none; }
}
/* 인증번호 칸도 다른 입력칸처럼 포커스되면 바탕을 비우고 테두리만(2026-11-12 사용자 — 전엔 회색 바탕이 남았음) */
.dm-onb-code-cell:focus, :root[data-dm-theme="dark"] .dm-onb-code-cell:focus { background: transparent; }
/* 서비스 연결 아래 「암호화로 보호 중이에요」 위 그라디언트(2026-11-12 사용자): 24 직선 → 40 동안 천천히 차오르게(온보딩 · 시트 아래와 같은 곡선) */
.dm-conn-secure { --fade: #fff; }
:root[data-dm-theme="dark"] .dm-conn-secure { --fade: #080808; }
.dm-conn-secure::before, :root[data-dm-theme="dark"] .dm-conn-secure::before { height: 40px; background: linear-gradient(to bottom, color-mix(in srgb, var(--fade) 0%, transparent) 0%, color-mix(in srgb, var(--fade) 45%, transparent) 40%, color-mix(in srgb, var(--fade) 85%, transparent) 75%, var(--fade) 100%); }

/* 공용 확인 다이얼로그(ask · dialog) — Figma 1905:23835(2026-11-12 사용자). 약관 · 온보딩 다이얼로그는 제외.
   폭 353 · 반경 40 · 그림자 0 20 60 20%, 제목 18 SemiBold(위 24 · 왼 30 · 아래 10), 설명 15 Medium 1.6 #767676(좌우 30 · 아래 20) — 시안 업데이트(2026-11-12) 반영,
   버튼 줄(좌우 24 · 아래 20 · 사이 10): 높이 52 알약 반반, 16 SemiBold. 「취소」 gray050a, 「확인」은 검정 — 탈퇴만 빨강(red120a · #FF472B) */
dialog.dm-dialog:not(.dm-terms) { width: min(353px, calc(100vw - 40px)); max-width: none; margin: auto; border: 0; border-radius: 36px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }   /* 테두리는 안쪽 선(크기에 안 더해짐) */
dialog.dm-dialog:not(.dm-terms) .dm-dialog-body { display: block; gap: 0; padding: 0; }
dialog.dm-dialog:not(.dm-terms) h2 { margin: 0; padding: 24px 24px 10px 30px; color: #131A20; font-size: 18px; font-weight: 600; line-height: 1.6; letter-spacing: -.3px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-body > p { margin: 0; padding: 0 30px 20px; color: #72777C; font-size: 15px; font-weight: 500; line-height: 1.6; word-break: keep-all; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-field { padding: 0 30px 20px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-actions { display: flex; gap: 10px; margin: 0; padding: 0 24px 20px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-actions button { flex: 1 1 0; min-width: 0; height: 52px; min-height: 0; padding: 0 20px; border: 0; border-radius: 100px; font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-cancel { background: rgba(0, 24, 46, 0.04); color: #131A20; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-ok { background: #131A20; color: #fff; }
dialog.dm-dialog:not(.dm-terms).is-alert .dm-dialog-ok { background: rgba(255, 71, 43, .1); color: #ff472b; }   /* 빨간 「확인」은 탈퇴만(tone: 'alert'). 다른 위험한 확인은 검정 그대로 */
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) { background: #202020; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .2); }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) h2 { color: #F3F5F7; }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) .dm-dialog-body > p { color: #A2A8AE; }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) .dm-dialog-cancel { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) .dm-dialog-ok { background: #F3F5F7; color: #080808; }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms).is-alert .dm-dialog-ok { background: rgba(255, 120, 73, .14); color: #ff7849; }
/* 휴대폰 브라우저 아래 주소창 색(2026-11-12 사용자): iOS 26 Safari 는 화면 아래 끝에 붙은 고정 요소의 바탕색으로 주소창 색을 정함 —
   그라디언트(배경 그림)나 반투명 가림막은 색으로 안 읽혀서 흰색 · 검정이 나왔음. 아래 끝에 같은 색의 얇은 고정 띠를 깔아 둠(눈에는 안 보임)
   ① 라이트 채팅 탭: 입력바 아래와 같은 #FAFAFA ② 바텀시트가 열린 동안: 시트 색(라이트 #FFF · 다크 #202020) */
@media (max-width: 700px) {
  body.figma-chat-page::after { content: ""; position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; height: max(4px, env(safe-area-inset-bottom, 0px)); background-color: #fafafa; pointer-events: none; }
  :root[data-dm-theme="dark"] body.figma-chat-page::after { background-color: #080808; }
  .dm-sheet-scrim::after { content: ""; position: fixed; right: 0; bottom: 0; left: 0; height: max(4px, env(safe-area-inset-bottom, 0px)); background-color: #fff; opacity: 0; transition: opacity .25s; pointer-events: none; }
  .dm-sheet-scrim.is-open::after { opacity: 1; }
  :root[data-dm-theme="dark"] .dm-sheet-scrim::after { background-color: #202020; }
  html:has(body.figma-chat-page):not(:has(body > .dm-sheet-scrim)):not([data-dm-theme="dark"]) { background-color: #fafafa; }
}
/* 화면 아래에 붙는 띠 아래 1px 틈(2026-11-12 사용자): 폰 화면 높이가 소수점(예: 852.33)이면 맨 아래 1px 이 비어 뒤 내용이 비침 —
   배치는 그대로 두고 바탕만 그림자로 2px 더 아래까지 칠해 덮음(서비스 연결 「암호화로 보호 중」 · 채팅 입력바 · 온보딩 아래 버튼) */
.dm-conn-secure { box-shadow: 0 2px 0 0 #fff; }
:root[data-dm-theme="dark"] .dm-conn-secure { box-shadow: 0 2px 0 0 #080808; }
@media (max-width: 700px) {
  body.figma-chat-page .composer-bar { box-shadow: 0 2px 0 0 #fafafa; }
  :root[data-dm-theme="dark"] body.figma-chat-page .composer-bar { box-shadow: 0 2px 0 0 #080808; }
  .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-foot { box-shadow: 0 2px 0 0 var(--fade); }
}
/* PC 「암호화로 보호 중이에요」(2026-11-12 사용자): 글 줄을 왼쪽 사이드 메뉴 아래 프로필(단무지)과 같은 높이로 — 아래 여백 13 → 26.
   위 그라디언트는 40 → 28 로 살짝 낮춤(모바일 · PC) */
@media (min-width: 701px) { .dm-conn-secure { padding-bottom: 26px; } }
.dm-conn-secure::before, :root[data-dm-theme="dark"] .dm-conn-secure::before { height: 28px; }
/* 말풍선 인용문 마크다운 규칙(2026-11-12 사용자, Figma 1741:65271): 인용문 글은 15 Regular gray600s(#595959 / 다크 #C9C9C9),
   인용문 안 강조(굵게)는 16 SemiBold gray900s(#191919 / 다크 #F2F2F2), 줄간격 1.68 · 왼쪽 막대 3(검정 12%) · 막대와 글 사이 12. 온보딩 뒤 첫 대화도 같은 규칙 */
body.figma-chat-page .bubble.markdown blockquote { color: #545A60; font-size: 15px; font-weight: 400; line-height: 1.68; }
body.figma-chat-page .bubble.markdown blockquote :is(strong, b) { color: #131A20; font-size: 16px; font-weight: 600; }
:root[data-dm-theme="dark"] body.figma-chat-page .bubble.markdown blockquote { color: #C9CDD1; }
:root[data-dm-theme="dark"] body.figma-chat-page .bubble.markdown blockquote :is(strong, b) { color: #F3F5F7; }
body.figma-chat-page .dm-onb-welcome .bubble.markdown blockquote > span { color: inherit; font-size: inherit; }

/* 설정 목록 — Figma 1909:71179(2026-11-13). 위 16 띄우고 프로필(좌우 20 · 위아래 6): 이름 24 Bold #191919, 설명 13 Regular #767676(사이 8),
   오른쪽 「변경」 알약(1px gray070a 테두리 · 둥글기 24 · 좌우 14 · 13 Medium #424242). 묶음 제목 13 SemiBold(위아래 10), 오른쪽 값 16 Regular. */
.dm-settings > .dm-set-profile { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 6px 20px; }
.dm-set-profile > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dm-set-profile strong { overflow: hidden; color: var(--act-ink); font-size: 24px; font-weight: 700; line-height: 34px; text-overflow: ellipsis; white-space: nowrap; }
.dm-set-profile p { margin: 0; color: #72777C; font-size: 13px; font-weight: 400; line-height: normal; }
.dm-set-change { flex: none; height: 34px; padding: 0 14px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 24px; background: none; color: #3D4348; font: inherit; font-size: 13px; font-weight: 500; line-height: 21px; cursor: pointer; transition: background-color .15s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .dm-set-change:hover { background: rgba(0, 24, 46, 0.04); } }
.dm-set-change:active { background: rgba(0, 24, 46, 0.09); }
.dm-settings > .dm-set-group:first-of-type { margin-top: 0; }
.dm-settings .dm-set-group h2 { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
.dm-settings .dm-set-row small { font-size: 16px; }
:root[data-dm-theme="dark"] .dm-set-profile p { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-set-change { border-color: rgba(255, 255, 255, .1); color: #DAE0E6; }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-set-change:hover { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] .dm-set-change:active { background: rgba(243, 245, 247, 0.12); }
@media (min-width: 701px) { .dm-settings > .dm-set-profile { margin-top: 0; padding-right: 16px; padding-left: 16px; } }
/* 설정 맨 아래(회원 탈퇴 아래) 여백 — Figma 1909:71179: 묶음 아래 30 + 홈 인디케이터 34 = 64. PC 는 40 */
.dm-activity.dm-settings { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 701px) { .dm-activity.dm-settings { padding-bottom: 40px; } }

/* 성격과 말투 — Figma 1909:71898(2026-11-13). GNB 아래 20 띄우고 예시 상자(좌우 12 · 아래 16): 회색 gray070a · 둥글기 30 · 안쪽 위 16 좌 20 우 42,
   높이 최소 180(긴 예시는 늘어남). 머리 = 마스코트 30 + 「프루츠 예시」 15 SemiBold(사이 8), 아래 10 띄우고 흰 말풍선(둥글기 24 · 12/16 · 16 Regular 1.6).
   고르기 줄은 제목 16 Medium(고른 줄도 굵기 그대로) + 설명 14 Regular(줄 높이 24), 오른쪽 라디오 22. */
.dm-set-body > .dm-persona-sample { display: flex; flex-direction: column; gap: 10px; min-height: 180px; margin: 1px 12px 16px; padding: 16px 42px 16px 20px; border-radius: 30px; background: rgba(0, 24, 46, 0.07); box-sizing: border-box; }
.dm-persona-sample-head { display: flex; align-items: center; gap: 8px; }
.dm-persona-sample-head img { flex: none; width: 30px; height: 30px; object-fit: cover; }
.dm-persona-sample-head strong { color: var(--act-ink); font-size: 15px; font-weight: 600; line-height: 24px; }
.dm-persona-sample > p { max-width: 330px; margin: 0; padding: 12px 16px; border-radius: 24px; background: #fff; color: #131A20; font-size: 16px; font-weight: 400; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; box-sizing: border-box; }
.dm-persona-list .dm-set-choice[aria-checked] strong { font-weight: 500; }
.dm-persona-list .dm-set-choice > span small { font-size: 14px; line-height: 24px; }
.dm-persona-list .dm-set-choice[aria-checked="true"]::after { width: 22px; height: 22px; background: url('assets/figma/icons/radio-on.svg') center / 22px 22px no-repeat; }
.dm-persona-list .dm-set-choice[aria-checked="false"]::after { width: 22px; height: 22px; background: url('assets/figma/icons/radio-off.svg') center / 22px 22px no-repeat; }
.dm-persona-list .dm-set-choice.is-soon::after { content: none; }
:root[data-dm-theme="dark"] .dm-set-body > .dm-persona-sample { background: rgba(243, 245, 247, 0.1); }
:root[data-dm-theme="dark"] .dm-persona-sample > p { background: #2E2E2E; color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-persona-list .dm-set-choice[aria-checked="true"]::after { background-image: url('assets/figma/icons/radio-on-dark.svg'); }
:root[data-dm-theme="dark"] .dm-persona-list .dm-set-choice[aria-checked="false"]::after { background-image: url('assets/figma/icons/radio-off-dark.svg'); }
@media (min-width: 701px) { .dm-set-body > .dm-persona-sample { margin-top: 0; margin-right: 16px; margin-left: 16px; } }

/* 메모리 — Figma 1909:72021(2026-11-13). GNB 바로 아래 가운데 안내 한 줄(위 4 · 아래 8, 주의 아이콘 20 + 14 Regular #424242, 사이 5),
   20 띄우고 알아서 기억하기 스위치 · 자주 가는 곳 설정(오른쪽 개수 16 Regular). 묶음 제목 「저장된 메모리」 13 SemiBold(위아래 10),
   기억 줄 = 제목 16 Medium 한 줄 + 날짜 · 알아서 기억함 14(줄 높이 24, 사이 2), 오른쪽 ··· 22, 줄 위아래 13 · 좌우 20, 줄 사이 선 없음. */
.dm-memory-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 0 20px; padding: 4px 20px 8px; color: #3D4348; font-size: 14px; font-weight: 400; line-height: 24px; text-align: center; }
.dm-memory-note i { flex: none; width: 20px; height: 20px; background: url('assets/figma/icons/caution-circle.svg') center / 16.666px 16.666px no-repeat; }
.dm-set-body > .dm-memory-note:first-child { margin-top: -19px; }
.dm-memory-note ~ .dm-set-group .dm-set-switch > span small { font-size: 14px; line-height: 24px; }
.dm-memory-note ~ .dm-set-group .dm-set-row > small { font-size: 16px; }
.dm-memory-note ~ .dm-set-group h2 { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
.dm-memory-list .dm-act-item { padding: 13px 20px; }
.dm-memory-list .dm-act-item + .dm-act-item { margin-top: 0; }
.dm-memory-list .dm-act-item + .dm-act-item::before { content: none; }
.dm-memory-list .dm-act-head { gap: 12px; }
.dm-memory-list .dm-act-head strong { font-weight: 500; line-height: 24px; }
.dm-memory-list .dm-act-meta { margin-top: 2px; line-height: 24px; }
.dm-memory-list .dm-act-more { width: 22px; height: 22px; background-size: 22px 22px; }
.dm-memory-empty { padding-top: 60px !important; }
:root[data-dm-theme="dark"] .dm-memory-note { color: #DAE0E6; }
@media (min-width: 701px) {
  .dm-set-body > .dm-memory-note:first-child { margin-top: 0; justify-content: flex-start; padding-right: 16px; padding-left: 16px; }
  .dm-memory-list .dm-act-item { padding-right: 16px; padding-left: 16px; }
}
.dm-set-group:has(> .dm-memory-list:last-child) + .dm-set-divider { margin-top: 20px; }
/* ··· 는 줄(제목 + 날짜) 가운데 높이에 — Figma 처럼 */
.dm-memory-list .dm-act-more { position: absolute; top: 50%; right: 20px; margin-top: -11px; }
.dm-memory-list .dm-act-head strong { padding-right: 34px; }
@media (min-width: 701px) { .dm-memory-list .dm-act-more { right: 16px; } }
/* PC 설정 세부: 제목 글자 아래 ~ 첫 내용 30 — 활동 · 보관함의 제목 ~ 탭 간격과 같게(2026-11-13 사용자) */
@media (min-width: 701px) { .dm-set-detail .dm-set-body { padding-top: 10px; } }
/* 메모리 알아서 기억하기 스위치 — Figma 크기 49 × 30, 손잡이 25(위 2.5 · 좌우 3) */
#memory-auto { width: 49px; height: 30px; }
#memory-auto::after { top: 2.5px; left: 3px; width: 25px; height: 25px; }
#memory-auto:checked::after { transform: translateX(18px); }

/* 설정 세부 공통(Figma 1909:71681 · 1933:73030 · 1905:25814 · 1886:54844, 2026-11-13): 줄 설명 14 Regular(줄 높이 24), 스위치 49 × 30(꺼짐 #B2B2B2) */
.dm-set-detail .dm-set-choice > span small, .dm-set-detail .dm-set-switch > span small { font-size: 14px; line-height: 24px; }
.dm-set-detail .dm-switch { width: 49px; height: 30px; background: #AEB3B8; }
.dm-set-detail .dm-switch::after { top: 2.5px; left: 3px; width: 25px; height: 25px; }
.dm-set-detail .dm-switch:checked { background: #131A20; }
.dm-set-detail .dm-switch:checked::after { transform: translateX(18px); }
:root[data-dm-theme="dark"] .dm-set-detail .dm-switch { background: #5c5c5c; }
:root[data-dm-theme="dark"] .dm-set-detail .dm-switch:checked { background: #F3F5F7; }
.dm-set-detail .dm-set-choice.is-static .dm-set-change { flex: none; }

/* 화면 모드 — 미리보기 60 × 80 + 글(사이 16), 오른쪽 라디오 */
.dm-theme-list .dm-set-choice { gap: 16px; }
.dm-theme-list .dm-set-choice > span { flex: 1; }
.dm-theme-thumb { flex: none; width: 60px; height: 80px; background: center / 60px 80px no-repeat; }
.dm-theme-thumb.is-system { background-image: url('assets/figma/icons/theme-system.svg'); }
.dm-theme-thumb.is-light { background-image: url('assets/figma/icons/theme-light.svg'); }
.dm-theme-thumb.is-dark { background-image: url('assets/figma/icons/theme-dark.svg'); }
.dm-theme-list .dm-set-choice[aria-checked]::after { margin-left: -4px; }

/* 알림 — 방해 금지 시작 · 끝 줄 오른쪽 값 16 Regular */
.dm-alert-page .dm-set-times .dm-set-row small { font-size: 16px; }

/* 로그인 정보 시트 — Figma 1905:24772: 칸 사이 24, 비밀번호 칸은 둥글기 24 + 오른쪽 눈 16, 이미 있는 비밀번호는 ••••••••(점, 2026-11-13 사용자) */
.dm-login-form { gap: 24px; }
.dm-login-secret { position: relative; }
.dm-login-secret .dm-sheet-input { padding-right: 44px; border-radius: 24px; }
.dm-login-secret .dm-sheet-input::placeholder { color: #131A20; }
.dm-login-eye { position: absolute; right: 20px; bottom: 17px; width: 16px; height: 16px; padding: 0; border: 0; background: url('assets/figma/widget/form/eye-off.svg') center / 16px 16px no-repeat; cursor: pointer; }
.dm-login-eye[aria-pressed="true"] { background-image: url('assets/figma/widget/form/eye.svg'); }
:root[data-dm-theme="dark"] .dm-login-secret .dm-sheet-input::placeholder { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-login-eye { background-image: url('assets/figma/widget/form/eye-off-dark.svg'); }
:root[data-dm-theme="dark"] .dm-login-eye[aria-pressed="true"] { background-image: url('assets/figma/widget/form/eye-dark.svg'); }
/* 모바일 설정 세부: GNB 아래 첫 내용 20(Figma 137 − 117) */
@media (max-width: 700px) { .dm-set-body { padding-top: 20px; } .dm-set-body > .dm-memory-note:first-child { margin-top: -20px; } .dm-set-body > .dm-persona-sample { margin-top: 0; } }

/* 「해냈어요」 순간 반짝임(2026-11-13 사용자 확정): 더 빛나게 + 쫀득하게.
   ① 알약이 살짝 눌렸다(0.94) 통통 튀며(1.06 → 0.98 → 1) 자리 잡음(0.6초)
   ② 테두리 고리(2px)를 따라 흰 심 + 노랑 · 주황 빛 꼬리가 빠르게 두 바퀴 돌고, 끝에서 고리 전체가 한 번 환하게 번쩍인 뒤 사라짐(1.4초)
   ③ 바깥 번짐은 알약 그림자로(돌 때 은은하게, 끝에서 번쩍) */
@property --dm-done-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status)[data-mascot-state="done"] { animation: dm-done-pop .6s cubic-bezier(.3, 1.6, .5, 1), dm-done-glow 1.4s ease-out; }
:is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status)[data-mascot-state="done"]::before {
  content: ''; position: absolute; inset: 0; z-index: 1; padding: 2.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--dm-done-angle), rgba(254, 229, 0, 0) 0deg, rgba(254, 229, 0, 0) 160deg, rgba(254, 229, 0, .95) 270deg, #ffb020 325deg, #fff 350deg, rgba(254, 229, 0, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: dm-done-sweep 1.4s cubic-bezier(.2, .85, .15, 1) both;
}
:is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status)@keyframes dm-done-pop {
  0% { transform: scale(1); }
  18% { transform: scale(.94); }
  48% { transform: scale(1.06); }
  72% { transform: scale(.98); }
  100% { transform: scale(1); }
}
@keyframes dm-done-sweep {
  0% { --dm-done-angle: 0deg; opacity: 0; }
  8% { opacity: 1; }
  70% { --dm-done-angle: 640deg; opacity: 1; }
  82% { --dm-done-angle: 700deg; opacity: 1; }
  100% { --dm-done-angle: 720deg; opacity: 0; }
}
/* 바깥 번짐 — 빛이 도는 동안 노란 빛이 은은하게 감싸고, 끝에서 한 번 환하게 번쩍(마스크된 고리 밖이라 알약 그림자로) */
@keyframes dm-done-glow {
  0% { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1), 0 0 0 0 rgba(255, 200, 0, 0); }
  20% { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1), 0 0 14px 2px rgba(255, 200, 0, .45); }
  62% { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1), 0 0 12px 1px rgba(255, 200, 0, .35); }
  76% { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1), 0 0 0 2px rgba(255, 220, 0, .85), 0 0 24px 6px rgba(255, 190, 0, .6); }
  100% { box-shadow: 0 1.966px 7.863px -1px rgba(0, 0, 0, .1), 0 0 0 0 rgba(255, 200, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  :is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status)[data-mascot-state="done"] { animation: none; }
  :is(body.figma-chat-page .figma-chat-identity, .figma-desktop-chat-status)[data-mascot-state="done"]::before { animation: none; opacity: 0; }
}
/* 성격과 말투 PC(2026-11-13 사용자): 예시 말풍선은 PC 채팅 단무지 말풍선과 같은 폭(최대 480, 글 길이만큼) → 예시가 최대 두 줄이라
   상자는 두 줄 기준 높이로: 위 16 · 아래 20, 최소 높이 151(머리 30 + 사이 10 + 두 줄 말풍선 75 + 위아래) — 말투를 바꿔도 상자 높이가 흔들리지 않게 */
@media (min-width: 701px) {
  .dm-set-body > .dm-persona-sample { min-height: 151px; padding: 16px 20px 20px; }
  .dm-persona-sample > p { width: fit-content; max-width: 480px; }
}

/* 네이버 메일 연결 카드(2026-11-17): 로그인 뒤 한 카드 안에서 안내 + 고르기 → 단무지가 / 직접 입력 화면. 고르기 줄은 제목 + 설명 두 줄, 「추천」 작은 알약 */
.dm-naver-ways .dm-naver-way { display: none; }
.dm-naver-ways[data-naver-way=""] .dm-naver-way.is-pick, .dm-naver-ways[data-naver-way="setup"] .dm-naver-way.is-setup, .dm-naver-ways[data-naver-way="direct"] .dm-naver-way.is-direct { display: flex; flex-direction: column; gap: 12px; }
/* 네이버 메일 연결 카드 설명(2026-11-17): 머리 바로 아래 설명 규칙 그대로 — 14 Regular 회색, 줄 높이 1.6, 단어 단위 줄바꿈 */
.dm-naver-ways .dm-naver-way > :is(.dm-wb-helper, .dm-wb-text) { color: var(--w-muted); font-size: 14px; font-weight: 400; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }

.dm-naver-link { color: var(--w-ink); font-weight: 500; text-decoration: underline; text-underline-position: from-font; }
/* 직접 입력 순서 안내(2026-11-17): 번호 붙은 세 줄, 설명보다 한 단계 진하게 */
.dm-naver-steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px 14px 34px; border-radius: 16px; background: var(--w-solid); color: var(--w-ink-2); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.dm-naver-steps b { font-weight: 600; }
/* PC 사이드 메뉴 아래 프로필(2026-11-17): 누를 수 없는 표시 줄 — 버튼과 같은 글자색 */
.figma-lnb-profile { color: #131A20; cursor: default; }
:root[data-dm-theme="dark"] .figma-lnb-profile { color: #F3F5F7; }
/* 바텀시트 안 고르기는 맨 위 레이어로 꺼내 띄움(2026-11-17) — 시트 틀에 잘리지 않게 */
.dm-picker.is-floating { position: fixed; z-index: 1000; right: auto; bottom: auto; }

/* 채운 버튼 호버 · 누름(2026-11-17 사용자): 단색으로 바꾸지 않고 바탕 위에 반투명 한 겹(라이트 검정 버튼 = #F3F5F7 12%, 다크 밝은 버튼 = #00182E 9%) */
@media (hover: hover) { :root[data-dm-theme="dark"] button.dm-conn-btn:not(.is-done):not(.is-alert):hover, :root[data-dm-theme="dark"] .dm-conn-cta:not(.is-done):not(.is-soon):not(.is-alert):hover { box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.09); } }

/* 다크 호버(2026-11-17 사용자): 라이트용 어두운 반투명만 있던 호버는 다크에서 밝은 반투명으로(같은 단계: 4→8 · 7→10 · 9→12 · 13→17%) */
@media (hover: hover) {
  :root[data-dm-theme="dark"] .dm-sheet-close:hover { background-color: rgba(243, 245, 247, 0.1); }
  :root[data-dm-theme="dark"] .dm-widget-btn.is-chip:hover { background: rgba(243, 245, 247, 0.12); }
  :root[data-dm-theme="dark"] .dm-act-buttons a:hover { background: rgba(243, 245, 247, 0.12); }
  :root[data-dm-theme="dark"] .dm-conn-chip[aria-pressed="false"]:hover { background: rgba(243, 245, 247, 0.12); }
  :root[data-dm-theme="dark"] .dm-conn-cta.is-done:hover { background: rgba(243, 245, 247, 0.17); }
  :root[data-dm-theme="dark"] .dm-onb-prev:hover { background: rgba(243, 245, 247, 0.12); }
  :root[data-dm-theme="dark"] .dm-consent-btn.is-soft:hover { background: rgba(243, 245, 247, 0.12); }
}
/* 모바일 온보딩 간격(Figma 2139:56613 · 56714 · 56834 · 56956 · 57312, 2026-11-17 사용자):
   상단 64 → 30 → 제목(두 줄 90) → 28 → 안내 글 · 시간 줄(높이 24 칸, 두 줄이면 위아래로 같이 넘침) → 40 → 입력 줄 · 코드 칸(줄 70, 사이 14).
   ④⑤는 제목 → 50 → 목록(항목 사이 24 · 구분선 · 24) */
@media (max-width: 700px) {
  .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-main { padding-top: 30px; }
  .dm-onb:not(.is-waiting) .dm-onb-main > :is(.dm-onb-why, .dm-onb-sub, .dm-onb-timer) { box-sizing: border-box; height: 24px; min-height: 0; margin-top: 28px; align-content: center; overflow: visible; }
  .dm-onb:not(.is-waiting) :is(.dm-onb-rows, .dm-onb-code) { margin-top: 40px; }
  .dm-onb:not(.is-waiting) .dm-onb-rows { gap: 14px; }
  .dm-onb:not(.is-waiting) .dm-onb-list { margin-top: 50px; }
}
/* 설정 목록(Figma 1909:71179, 2026-11-17 사용자): 프로필 아래 줄은 전화번호 14 Regular gray550s, 프로필 위 6 · 아래 10.
   묶음 제목 13 SemiBold, 위아래 10 · 좌우 20 */
.dm-settings > .dm-set-profile { padding: 6px 20px 10px; }
.dm-set-profile p { font-size: 14px; line-height: 17px; }
.dm-settings .dm-set-group h2 { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
/* 입력 얼럿(사용자 이름 「내 이름」 등, Figma 2146:62717, 2026-11-17 사용자): 설명 아래 16 → 입력칸(좌우 24 · 아래 28) → 버튼.
   입력칸 높이 50 · 둥글기 24 · 테두리 gray100a · 바탕 white002s · 글 15 SemiBold */
dialog.dm-dialog:not(.dm-terms) .dm-dialog-body:has(.dm-dialog-field) > p { padding-bottom: 16px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-field { padding: 0 24px 28px; }
dialog.dm-dialog:not(.dm-terms) .dm-dialog-field input { box-sizing: border-box; width: 100%; height: 50px; min-height: 0; padding: 0 20px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 24px; background: #FFFFFF; color: #131A20; font-size: 15px; font-weight: 600; line-height: 1.5; outline: none; }
:root[data-dm-theme="dark"] dialog.dm-dialog:not(.dm-terms) .dm-dialog-field input { border-color: rgba(255, 255, 255, .12); background: #2E2E2E; color: #F3F5F7; }
/* 메모리 · 사람 · 장소 · 내 기억(Figma 2036:26634 · 2048:55663 · 2048:57747 · 2048:55920 · 2048:56113, 2026-11-17 사용자)
   진입: 머리 아래 16 → 「알아서 기억하기」(16 Medium + 14 설명, 줄 76) → 구분선 41 → 「저장한 메모리」 줄들 · 맨 아래(홈 표시 위) 안내 한 줄.
   목록 · 세부: 머리 바로 아래부터(위 여백 0). 사람 줄 78(이름 24 · 4 · 케이크/전화 아이콘 16 + 4 + 글 14), 기억 줄 76(나/단무지 13 gray600 · 점 · 날짜 14) */
.dm-set-body.is-memory-home { display: flex; flex-direction: column; min-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); padding-top: 16px; box-sizing: border-box; }
.dm-set-body.is-memory-home .dm-set-switch > span small { font-size: 14px; line-height: 24px; }
.dm-set-body.is-memory-home > .dm-memory-note.is-foot { position: sticky; bottom: 0; margin: auto 0 0; padding: 13px 40px calc(13px + env(safe-area-inset-bottom, 0px)); gap: 6px; background: var(--act-bg, #fff); color: #3D4348; font-size: 14px; line-height: 24px; }
:root[data-dm-theme="dark"] .dm-set-body.is-memory-home > .dm-memory-note.is-foot { background: #080808; color: #DAE0E6; }
.dm-set-body.is-mem-flat { padding-top: 0; }
.dm-person-list .dm-act-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.dm-person-list.is-place .dm-act-meta { margin-top: 2px; }
.dm-person-list .dm-act-meta :is(.is-cake, .is-phone) { display: inline-flex; align-items: center; gap: 4px; }
.dm-person-list .dm-act-meta :is(.is-cake, .is-phone)::before { content: ''; flex: none; width: 16px; height: 16px; background: url('assets/figma/icons/memory-cake.svg') center / 13.4px 13.3px no-repeat; }
.dm-person-list .dm-act-meta .is-phone::before { background-image: url('assets/figma/icons/memory-phone.svg'); background-size: 12.1px 12.1px; }
:root[data-dm-theme="dark"] .dm-person-list .dm-act-meta .is-cake::before { background-image: url('assets/figma/icons/memory-cake-dark.svg'); }
:root[data-dm-theme="dark"] .dm-person-list .dm-act-meta .is-phone::before { background-image: url('assets/figma/icons/memory-phone-dark.svg'); }
.dm-mem-list .dm-act-meta > span:first-child { color: #545A60; font-size: 13px; }
:root[data-dm-theme="dark"] .dm-mem-list .dm-act-meta > span:first-child { color: #C9CDD1; }
/* 세부 정보 줄: 왼쪽 이름 14 Regular gray550s, 오른쪽 값 16 Medium */
.dm-set-row.dm-social-info { justify-content: space-between; }
.dm-social-info > span { color: #72777C; font-size: 14px; font-weight: 400; line-height: 24px; }
.dm-social-info > strong { min-width: 0; overflow: hidden; color: var(--act-ink); font-size: 16px; font-weight: 500; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
:root[data-dm-theme="dark"] .dm-social-info > span { color: #A2A8AE; }
/* 머리 오른쪽 「편집」 알약(설정 「변경」과 같은 모양) */
.dm-act-top > .dm-set-change.dm-people-action { position: absolute; top: 15px; right: 16px; }
/* 기억 고치기 시트의 큰 글칸 — 높이 208 · 둥글기 20 · 안쪽 16 20 */
.dm-mem-textbox { display: block; height: 208px; box-sizing: border-box; }
.dm-mem-textbox .dm-sheet-textarea { height: 100%; }
.dm-set-body:is(.is-memory-home, .is-mem-flat) .dm-set-group > h2 { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
/* 모바일 온보딩: 키패드가 올라와 가운데 칸이 좁아져도(아래 여백 = 키패드 높이) 제목 · 안내 · 입력칸이 눌려 줄지 않게 — 간격 고정,
   넘치는 만큼은 가운데만 스크롤(2026-11-17 사용자: 키패드 올라올 때 간격이 달라짐) */
@media (max-width: 700px) {
  .dm-onb-page .dm-onb:not(.is-waiting) .dm-onb-main > * { flex-shrink: 0; }
}
/* 메모리 안내 줄은 화면 맨 아래 고정(2026-11-17 사용자) — 모바일은 화면에 붙이고, 목록이 그 뒤로 가려지지 않게 아래 여백 50 */
@media (max-width: 700px) {
  .dm-set-body.is-memory-home { min-height: 0; padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)); }
  .dm-set-body.is-memory-home > .dm-memory-note.is-foot { position: fixed; right: 0; bottom: 0; left: 0; z-index: 2; margin: 0; }
}
@media (min-width: 701px) {
  /* PC: 화면 높이에 딱 맞춰 스크롤이 생기지 않게 — 본문이 남는 높이를 채우고 안내 줄은 그 맨 아래 */
  section.dm-activity:has(> .dm-set-body.is-memory-home) { display: flex; flex-direction: column; box-sizing: border-box; height: 100dvh; min-height: 0; overflow: hidden; }
  .dm-set-body.is-memory-home { flex: 1 1 auto; min-height: 0; overflow: auto; }
  .dm-set-body.is-memory-home > .dm-memory-note.is-foot { position: sticky; bottom: 0; }
}
/* PC 설정 세부 정렬(2026-11-17 사용자): 머리 오른쪽 「편집」은 제목 줄(뒤로 버튼 44 와 같은 줄, 가운데 맞춤) 오른쪽 끝 = 내용 오른쪽 세로선(16).
   설정 맨 위 프로필도 다른 줄처럼 좌우 16(전엔 20 이라 이름 · 「변경」이 4 안쪽) */
@media (min-width: 701px) {
  .dm-act-top > .dm-set-change.dm-people-action { top: 71px; right: 16px; margin: 0; }
  .dm-settings > .dm-set-profile { padding-right: 16px; padding-left: 16px; }
}
/* 모바일 사이드 메뉴 줄(활동 · 서비스 연결 · 보관함 · 설정) 글자 18 → 17(2026-11-17 사용자) */
@media (max-width: 700px) { .dm-menu-links button { font-size: 17px; } }
/* 목록이 비었을 때의 버튼(「예약 등록하기」 등, Figma 1111:58869)은 검정 대신 gray050a 바탕 · gray900 글(2026-11-17 사용자).
   hover 는 채운 회색 버튼 규칙대로 gray050a 덮개(다크는 밝게). 위험 버튼(is-danger)은 그대로 */
.dm-act-empty button:not(.is-danger) { background: rgba(0, 24, 46, 0.04); color: #131A20; opacity: 1; }
:root[data-dm-theme="dark"] .dm-act-empty button:not(.is-danger) { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
@media (hover: hover) {
  .dm-act-empty button:not(.is-danger):hover { background: rgba(0, 24, 46, 0.04); box-shadow: inset 0 0 0 999px rgba(0, 24, 46, 0.04); }
  :root[data-dm-theme="dark"] .dm-act-empty button:not(.is-danger):hover { background: rgba(243, 245, 247, 0.08); box-shadow: inset 0 0 0 999px rgba(243, 245, 247, 0.08); }
}
/* 설정 세부 화면의 빈 안내 — 활동 · 보관함 같은 다른 목록의 빈 안내와 같은 자리(제목 위가 화면 위에서 모바일 320 · PC 338),
   글 크기 · 간격은 원래 같음(제목 18 SemiBold · 10 · 설명 15/1.54)(2026-11-17 사용자) */
@media (max-width: 700px) {
  /* Figma 2167:63678: 머리(64) 아래 240 에서 제목 */
  .dm-set-detail .dm-set-body .dm-act-empty { padding-top: calc(240px - 19px); }
  .dm-set-detail .dm-set-body.is-mem-flat .dm-act-empty { padding-top: 240px; }
}
@media (min-width: 701px) {
  .dm-set-detail .dm-set-body .dm-act-empty { padding-top: calc(338px - 122px); }
}
.dm-set-detail .dm-set-body .dm-act-empty h2 { color: var(--act-ink); line-height: 1.56; }   /* 제목 gray900 */
/* 다크의 「다시 로그인」 목록 알약(MANGO-38): 위의 검은 글자 규칙(.dm-conn-btn:not(.is-done):not(.is-soon))보다 강하게 */
:root[data-dm-theme="dark"] .dm-conn-btn.is-alert:not(.is-done):not(.is-soon) { background: rgba(255, 120, 73, .14); color: #ff7849; }
/* 채팅 「서비스 연결」 카드의 로그인 풀림 「다시 로그인」(MANGO-38) — 서비스 연결 화면 알약과 같은 색 */
.dm-onb-conn.is-login .dm-onb-conn-btn { background: rgba(255, 71, 43, .1); color: #ff472b; }
:root[data-dm-theme="dark"] .dm-onb-conn.is-login .dm-onb-conn-btn { background: rgba(255, 120, 73, .14); color: #ff7849; }
/* 「다시 로그인」 목록 알약 호버(MANGO-38): 상세의 .dm-conn-cta.is-alert 호버와 같은 한 겹 */
@media (hover: hover) {
  button.dm-conn-btn.is-alert:hover { background: linear-gradient(rgba(0, 24, 46, 0.04), rgba(0, 24, 46, 0.04)), rgba(255, 71, 43, .1); }
  :root[data-dm-theme="dark"] button.dm-conn-btn.is-alert:hover { background: linear-gradient(rgba(243, 245, 247, 0.08), rgba(243, 245, 247, 0.08)), rgba(255, 120, 73, .14); }
}
/* 위젯 제목(16 SemiBold)이 두 줄 이상일 때 줄 사이가 좁아 보여서(2026-11-17 사용자) 행간 1.5(24) — 위아래 -2.5 로
   한 줄일 때 차지하는 높이(normal ≈ 19)와 그 아래 간격은 그대로 */
#messages .dm-widget :is(.dm-wb-choices-head > strong, .dm-widget-head > strong, .dm-wb-notice.is-strong > p) { line-height: 1.5; margin-top: -2.5px; margin-bottom: -2.5px; word-break: keep-all; overflow-wrap: break-word; }   /* 낱말 단위 줄바꿈(규칙 32-⑧-1과 같게) */

/* ── 서비스 연결 목록(2026-11-18, Figma 2262:69996 · 없을 때 1183:65904 · 다크 1727:62636 · 1549:41203)
   머리 아래 「연결된 서비스」 줄: 높이 46(위 10 · 아래 8 · 왼 16 · 오른 14), 제목 15 SemiBold gray900 ···
   [연결한 서비스 로고 28 원(겹침 -8, 최대 3개) · 6 · 개수 15 SemiBold gray500 · 화살표 20], 아래 4 띄워 분류 칩 줄.
   로그인 필요 알약은 없앰(목록 · 상세 모두) */
.dm-conn-mine { display: flex; flex: none; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; height: 46px; margin: 0 0 4px; padding: 10px 14px 8px 16px; border: 0; background: none; color: var(--act-ink, #131A20); font: inherit; text-align: left; cursor: pointer; }
.dm-conn-mine > strong { font-size: 15px; font-weight: 600; line-height: 1.54; }
.dm-conn-mine-end { display: flex; align-items: center; }
.dm-conn-mine-end > b { margin-left: 6px; color: #90959A; font-size: 15px; font-weight: 600; line-height: 1.5; }
.dm-conn-mine-end > .dm-conn-faces + b { margin-left: 6px; }
.dm-conn-mine-end > b:first-child { margin-left: 0; }
.dm-conn-faces { display: flex; align-items: center; }
.dm-conn-logo.dm-conn-face { width: 28px; height: 28px; margin-right: -8px; }
.dm-conn-logo.dm-conn-face:last-child { margin-right: 0; }
.dm-conn-logo.dm-conn-face .connection-icon { font-size: 11px; }
.dm-conn-logo.dm-conn-face .connection-icon.glyph .ui-icon { width: 12px; height: 12px; }
.dm-act-top:has(+ .dm-conn-mine)::after { display: none; }
:root[data-dm-theme="dark"] .dm-conn-mine-end > b { color: #7D8389; }
.dm-conn-need-pill { display: none !important; }
/* 서비스가 없을 때(Figma 1183:65904): 칩 줄 아래 240에 제목 18 SemiBold gray900 · 10 · 설명 15 gray550 */
.dm-connections .dm-act-empty.dm-conn-empty { gap: 10px; padding-top: 240px; }
.dm-conn-empty h2 { color: var(--act-ink, #131A20); }
@media (min-width: 701px) { .dm-connections .dm-act-empty.dm-conn-empty { padding-top: 156px; } }
/* 「연결된 서비스」 줄도 스크롤할 때 머리 아래에 칩 줄과 붙어 함께 고정(2026-11-18 사용자).
   칩 줄과의 사이 4는 줄 안(아래 여백 8 + 4)으로 넣어 바탕이 비지 않게 — 줄 높이 50, 칩 줄은 그만큼 아래에 고정 */
.dm-conn-mine { position: sticky; z-index: 3; top: 64px; height: 50px; margin-bottom: 0; padding-bottom: 12px; background: #fff; }
.dm-activity > .dm-conn-mine + .dm-conn-chips { top: 114px; }
:root[data-dm-theme="dark"] .dm-conn-mine { background: #080808; }
@media (min-width: 701px) {
  .dm-activity > .dm-conn-mine { top: 122px; }
  .dm-activity > .dm-conn-mine + .dm-conn-chips { top: 172px; }
}
/* 「연결된 서비스」 썸네일 테두리(Figma 2262:70030~32): 안쪽 1.5 WHITE000S(라이트 #FFF · 다크 #080808) — 겹친 원 사이가 바탕색으로 끊겨 보이게.
   목록 로고의 회색 4% 1px 테두리는 쓰지 않음 */
.dm-conn-logo.dm-conn-face::after { border: 0; box-shadow: inset 0 0 0 1.5px #fff; }   /* 브라우저가 1.5 테두리를 1로 내려서 안쪽 그림자로 */
:root[data-dm-theme="dark"] .dm-conn-logo.dm-conn-face::after { box-shadow: inset 0 0 0 1.5px #080808; }

/* ── 연결된 서비스(2026-11-18) — 목록 Figma 2262:70547 · 다크 2262:71897
   줄: 위아래 12 · 좌우 16, 로고 48(위에 맞춤) · 16 · 글 묶음(위아래 4): 이름 16 SemiBold · 5 · [다시 연결 필요 · 점 · 계정 n개] 13(줄높이 19). 줄 사이 구분선 없음 */
.dm-connected .dm-conn-list { margin-top: 0; }
.dm-connected .dm-conn-row { align-items: flex-start; }
.dm-connected .dm-conn-open { align-items: flex-start; }
.dm-connected .dm-conn-text { padding: 4px 0; }
.dm-connected .dm-conn-text small { height: 19px; line-height: 19px; }   /* 주의 아이콘(16)이 있어도 줄 높이 19 그대로 */
.dm-connected .dm-conn-row { margin-bottom: 0; }
.dm-connected .dm-conn-row::after { content: none; }
.dm-conn-logo .connection-icon.dm-conn-globe { display: block; background: rgba(0, 24, 46, 0.04) url('assets/figma/connections/globe.svg') center / 24px no-repeat; }
:root[data-dm-theme="dark"] .dm-conn-logo .connection-icon.dm-conn-globe { background-color: rgba(243, 245, 247, 0.08); background-image: url('assets/figma/connections/globe-dark.svg'); }

/* 상세(계정 연결형 2262:70705 · 로그인 저장형 2262:71264): 이름 20 Bold, 「등록한 계정」 상자 줄 15 Medium,
   줄 사이 구분선 칸 13(선 가운데) — 상자 안 사이 8 + 선 1 + 8 … 위 → 시안 그대로 8 · 13 · 8 이 되도록 hr 위아래 6 */
.dm-connd-view .dm-cv-name strong { font-size: 20px; letter-spacing: .2px; }
.dm-connd-view .dm-cv-scroll { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 124px); }
.dm-connd-box { gap: 8px; }
.dm-connd-box hr { flex: none; height: 1px; margin: 6px 0; border: 0; background: rgba(0, 0, 0, .04); }
.dm-connd-acc { position: relative; display: flex; align-items: center; gap: 2px; width: 100%; min-height: 22.5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.dm-connd-acc > strong { flex: 1; overflow: hidden; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.dm-connd-acc.is-expired > strong { color: #90959A; }
.dm-connd-acc.is-login { cursor: pointer; }
.dm-connd-end { display: flex; flex: none; align-items: center; gap: 8px; }
.dm-connd-end .dm-conn-need { font-size: 13px; line-height: normal; letter-spacing: .13px; }
.dm-act-more.dm-connd-more { width: 22px; height: 22px; border-radius: 6px; background-image: url('assets/figma/connections/more.svg'); background-size: 22px 22px; }
.dm-connd-acc .dm-act-menu { top: calc(100% + 10px); right: -1px; }   /* 시안: ··· 줄 아래 10, 오른 끝 +1 */
.dm-act-menu .dm-connd-danger { color: #ff472b; }
.dm-connd-box .dm-conn-add { color: var(--act-ink, #131A20); }
/* 맨 아래 고정 「연결끊기」 — 좌우 · 아래 16, 회색 4% 알약 52, 16 SemiBold */
.dm-connd-foot { position: absolute; right: 0; bottom: 0; left: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 24px); }
.dm-connd-off { display: block; width: 100%; max-width: 668px; height: 52px; margin: 0 auto; padding: 0 20px; border: 0; border-radius: 100px; background: rgba(0, 24, 46, 0.04); color: #131A20; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
.dm-connd-off:disabled { opacity: .5; cursor: default; }
@media (hover: hover) { .dm-connd-off:hover { background: rgba(0, 24, 46, 0.08); } }
@media (min-width: 701px) { .dm-connd-off { height: 58px; } }
:root[data-dm-theme="dark"] .dm-connd-box hr { background: rgba(243, 245, 247, 0.08); }
:root[data-dm-theme="dark"] .dm-connd-acc.is-expired > strong { color: #7D8389; }
:root[data-dm-theme="dark"] .dm-act-more.dm-connd-more { background-image: url('assets/figma/connections/more-dark.svg'); }
:root[data-dm-theme="dark"] .dm-act-menu .dm-connd-danger { color: #ff7849; }
:root[data-dm-theme="dark"] .dm-connd-foot { background: linear-gradient(rgba(8, 8, 8, 0), #080808 24px); }
:root[data-dm-theme="dark"] .dm-connd-off { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }

/* 로그인 저장형 「○○ 로그인 정보」 시트(Figma 2262:71459 · 다크 72592): 머리는 가운데 제목만(닫기 없음),
   아이디 = 알약 50(흰 · 8% 테두리), 글 15 SemiBold gray550 · 비밀번호 = 둥글기 24 칸, 원래 자리수 점(6 · 사이 4 · gray900).
   바꾸는 동안 점은 50% 로 그 자리에, 한 글자라도 치면 새 비밀번호 점(입력칸 자체)으로 */
.dm-connd-sheet .dm-sheet-close { display: none; }
.dm-connd-sheet .dm-sheet-title { flex: 1; text-align: center; }
.dm-connd-id { box-sizing: border-box; display: flex; align-items: center; height: 50px; padding: 0 20px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); border-radius: 100px; background: #fff; color: #72777C; font-size: 15px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.dm-connd-pw { position: relative; display: block; }
.dm-connd-pw .dm-sheet-input { width: 100%; border-radius: 24px; }
.dm-connd-dots { position: absolute; top: 50%; left: 21px; display: flex; gap: 4px; transform: translateY(-50%); pointer-events: none; transition: opacity .15s; }
.dm-connd-dots i { width: 6px; height: 6px; border-radius: 50%; background: #131A20; }
.dm-connd-pw.is-editing .dm-connd-dots { opacity: .5; }
.dm-connd-pw.is-typed .dm-connd-dots { opacity: 0; }
:root[data-dm-theme="dark"] .dm-connd-id { border-color: rgba(243, 245, 247, 0.12); background: #2E2E2E; color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-connd-dots i { background: #F3F5F7; }
/* 연결된 서비스 목록 메타 줄: [다시 연결 필요] · 점 2 · [계정 n개] 한 줄(설명용 3줄 자르기 규칙을 덮음) */
.dm-connected .dm-conn-text small { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
/* 상세 풀뷰 안 ··· 메뉴 색(Figma 메뉴 WHITE002S: 라이트 #FFF · 다크 #2E2E2E, 선 GRAY100A) — 활동 화면 밖이라 변수를 여기서 */
.dm-connd-view { --act-ink: #131A20; --act-sub: #545A60; --act-fill: rgba(0, 24, 46, 0.04); --act-menu: #fff; --act-menu-line: rgba(0, 0, 0, .08); }
:root[data-dm-theme="dark"] .dm-connd-view { --act-ink: #F3F5F7; --act-sub: #C9CDD1; --act-fill: rgba(243, 245, 247, 0.08); --act-menu: #2E2E2E; --act-menu-line: rgba(255, 255, 255, .12); }
/* 로그인 정보 시트는 연결된 서비스 상세 풀뷰(z 70) 위에 */
.dm-sheet-scrim:has(.dm-connd-sheet) { z-index: 80; }
/* 로그인 정보 시트 「저장」 꺼짐(Figma 2262:71612): 회색 4% 바탕 · 글 gray550 — 비밀번호를 바꾸면 켜짐(gray900 글) */
.dm-connd-sheet .dm-sheet-submit.is-soft:disabled { color: #72777C; }
:root[data-dm-theme="dark"] .dm-connd-sheet .dm-sheet-submit.is-soft:disabled { color: #A2A8AE; }
/* 새 비밀번호도 원래 점과 같은 크기 · 간격(2026-11-18 사용자): 입력칸 글자 · 기본 커서는 숨기고 점(.dm-connd-dots)을 다시 그림.
   치기 전 커서는 흐린 점 앞, 친 뒤에는 마지막 점 뒤(점과 사이 4) */
.dm-connd-pw .dm-sheet-input { color: transparent; caret-color: transparent; -webkit-text-fill-color: transparent; }
.dm-connd-pw .dm-sheet-input::selection { background: transparent; }
.dm-connd-dots { right: 21px; align-items: center; overflow: hidden; }
.dm-connd-pw.is-editing .dm-connd-dots i { opacity: .5; }
.dm-connd-pw.is-editing .dm-connd-dots { opacity: 1; }
.dm-connd-pw.is-typed .dm-connd-dots, .dm-connd-pw.is-typed .dm-connd-dots i { opacity: 1; }
.dm-connd-dots i { flex: none; }
.dm-connd-caret { flex: none; width: 1.5px; height: 20px; margin: 0 -1px 0 0; border-radius: 1px; background: #131A20; animation: dm-connd-blink 1s steps(1) infinite; }
.dm-connd-pw.is-typed .dm-connd-caret { margin: 0; }
@keyframes dm-connd-blink { 50% { opacity: 0; } }
:root[data-dm-theme="dark"] .dm-connd-caret { background: #F3F5F7; }
@media (prefers-reduced-motion: reduce) { .dm-connd-caret { animation: none; } }
.dm-connd-pw.is-long .dm-connd-dots { justify-content: flex-end; }   /* 칸보다 길면 끝(커서 쪽)을 보이게 */
/* 치기 전 커서는 흐린 점 앞에 겹쳐 두어 점 자리가 움직이지 않게(시안 그대로 x 37) */
.dm-connd-pw:not(.is-long) .dm-connd-dots { overflow: visible; }
.dm-connd-pw:not(.is-typed) .dm-connd-caret { position: absolute; top: 50%; left: -4px; margin: 0; transform: translateY(-50%); }
.dm-set-profile p + p { margin-top: 0; }   /* 전화번호 · 8 · 이메일(기획 3:2471) — 사이 8 은 프로필 묶음 간격이 이미 줌 */
/* 썸네일 없는 서비스 — 작은 것(Figma 2247:55408): 「연결된 서비스」 줄 28 원, 바탕 GRAY070S(#F0F0F0 · 다크 #1F1F1F) · 테두리 1.5 GRAY000S(#F7F7F7 · 다크 #151515) · 지구본 14 */
/* Figma 렌더 그대로 한 장(site-s.svg): 원 #F0F0F0 · 테두리 1.5 #F7F7F7 · 지구본 18(선 1.54) #B2B2B2 — 2026-11-18 시안 갱신 — 원 테두리 겹 · 밑바탕은 끔 */
.dm-conn-logo.dm-conn-face:has(.dm-conn-globe) { background: transparent; }
.dm-conn-logo.dm-conn-face:has(.dm-conn-globe)::after { content: none; }
.dm-conn-face .connection-icon.dm-conn-globe { background: url('assets/figma/connections/site-s.svg') center / 28px 28px no-repeat; }
:root[data-dm-theme="dark"] .dm-conn-face .connection-icon.dm-conn-globe { background-color: transparent; background-image: url('assets/figma/connections/site-s-dark.svg'); }
/* 썸네일 없는 큰 원(Figma 2247:60235): 바탕은 화면 위 GRAY050A 한 겹만 — 로고 원의 흰 · #202020 밑바탕을 빼서 다크에서도 시안 색 그대로 */
.dm-conn-logo:has(> .dm-conn-globe):not(.dm-conn-face) { background: transparent; }
/* 상세 70 원의 지구본은 32(Figma 2308:74400 — 원 위 · 왼 19) */
.dm-cv-logo .connection-icon.dm-conn-globe { background-size: 32px; }
/* 온보딩 뒤 「서비스 연결」 줄(Figma 1741:65293 갱신, 2026-11-18): 높이 50 · 오른쪽 10, 아이콘 · 8 · [이름 15 / 2 / 묶인 서비스 10 GRAY500] */
.dm-onb-conn { height: 50px; padding-right: 10px; }
.dm-onb-conn-name { display: flex; flex-direction: column; gap: 2px; margin-left: 0; }
.dm-onb-conn-name > span { overflow: hidden; text-overflow: ellipsis; }
.dm-onb-conn-name > small { overflow: hidden; color: #90959A; font-size: 10px; line-height: normal; text-overflow: ellipsis; }
:root[data-dm-theme="dark"] .dm-onb-conn-name > small { color: #7D8389; }

/* 빈 화면(활동 통화 · 예약, 보관함 파일 · 이미지) — Figma 2352:56019 (2026-11-18)
   [그림 100×70] 16 [제목 18 SemiBold 1.56 gray900] 8 [설명 14 1.54 gray550] 24 [버튼]. 글 칸 좌우 52(20+32).
   위 여백은 탭 칸(56) 아래에서 활동 160 · 보관함 190 */
.dm-act-empty.has-art { gap: 0; padding-left: 52px; padding-right: 52px; }
.dm-empty-art { flex: none; width: 100px; height: 70px; margin-bottom: 16px; background: center / 100px 70px no-repeat; }
.dm-empty-art.is-call { background-image: url('assets/figma/empty/call.png'); }
.dm-empty-art.is-board { background-image: url('assets/figma/empty/board.png'); }
.dm-empty-art.is-file { background-image: url('assets/figma/empty/file.png'); }
.dm-empty-art.is-image { background-image: url('assets/figma/empty/image.png'); }
:root[data-dm-theme="dark"] .dm-empty-art.is-call { background-image: url('assets/figma/empty/call-dark.png'); }
:root[data-dm-theme="dark"] .dm-empty-art.is-board { background-image: url('assets/figma/empty/board-dark.png'); }
:root[data-dm-theme="dark"] .dm-empty-art.is-file { background-image: url('assets/figma/empty/file-dark.png'); }
:root[data-dm-theme="dark"] .dm-empty-art.is-image { background-image: url('assets/figma/empty/image-dark.png'); }
.dm-act-empty.has-art h2, .dm-library .dm-act-empty.has-art h2 { width: 100%; color: #131A20; font-size: 18px; font-weight: 600; line-height: 1.56; }
.dm-act-empty.has-art p { width: 100%; margin-top: 8px; color: #72777C; font-size: 14px; line-height: 1.54; }
.dm-act-empty.has-art button { margin-top: 24px; }
:root[data-dm-theme="dark"] .dm-act-empty.has-art h2 { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-act-empty.has-art p { color: #A2A8AE; }
/* 위 여백: 탭 아래 6 + 활동 160 · 보관함 190 (모바일 · PC 같게) */
.dm-act-empty.has-art.has-art { padding-top: 160px; }
.dm-library .dm-act-empty.has-art.has-art { padding-top: 190px; }

/* 온보딩 생년월일 — Figma 모바일 1741:66036 · PC 1741:77942 (2026-11-18)
   모바일: 제목 · 32 · 안내(14 · 1.6 gray600) · 48 · 칸 70(사이 14, 값 20 Bold). PC: 안내 gray550, 나머지는 그대로(점 · 30 · 제목 · 24 · 안내 · 40 · 칸 64 사이 10, 값 18) */
@media (max-width: 700px) {
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-sub.is-birth { margin-top: 32px; }
  .dm-onb:not(.is-waiting) .dm-onb-main > .dm-onb-rows.is-birth { margin-top: 48px; }
  .dm-onb-rows.is-birth .dm-onb-row-value { font-size: 20px; letter-spacing: -.1px; }
}
@media (min-width: 701px) {
  .dm-onb .dm-onb-sub.is-birth { color: #72777C; }
  :root[data-dm-theme="dark"] .dm-onb .dm-onb-sub.is-birth { color: #A2A8AE; }
}
@media (min-width: 701px) { .dm-onb[data-side="birth"] .dm-onb-side { background-image: url('assets/figma/onboarding/pc-birth.jpg'); } }
/* PC 「연결된 서비스」는 서비스 연결에서 들어온 하위 화면 — 사이드 메뉴 화면이 아니라 뒤로 버튼 보임(2026-11-18 사용자) */
@media (min-width: 701px) { .dm-activity.dm-connections.dm-connected > .dm-act-top .dm-act-back { display: block; } }
/* 연결된 서비스 줄 hover · 누름(2026-11-18 사용자) — 설정 줄 · 위젯 목록 줄과 같은 규칙: 줄 좌우 8 안쪽 반경 12 상자(줄 위아래 끝까지), hover 4% / 누름 9% (다크 8% / 12%) */
.dm-connected .dm-conn-open { position: relative; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.dm-connected .dm-conn-open::before { content: ''; position: absolute; z-index: -1; inset: -12px -8px; border-radius: 12px; background: transparent; transition: background-color .15s; }
@media (hover: hover) { .dm-connected .dm-conn-open:hover::before { background: rgba(0, 24, 46, 0.04); } }
.dm-connected .dm-conn-open:active::before { background: rgba(0, 24, 46, 0.09); }
.dm-connected .dm-conn-open:focus-visible { outline: none; }
.dm-connected .dm-conn-open:focus-visible::before { box-shadow: 0 0 0 2px var(--act-ink); }
@media (hover: hover) { :root[data-dm-theme="dark"] .dm-connected .dm-conn-open:hover::before { background: rgba(243, 245, 247, 0.08); } }
:root[data-dm-theme="dark"] .dm-connected .dm-conn-open:active::before { background: rgba(243, 245, 247, 0.12); }

/* 연결됐지만 로그인이 풀린 서비스(2026-11-18 사용자)
   목록 Figma 2262:69996: 설명 · 10(글 묶음 사이 5 + 5) · 「로그인 필요」 알약(높이 38 · 좌우 12 · 테두리 GRAY070A · 빨간 ! 16 · 4 · 13 Regular gray900), 오른쪽은 「연결됨」
   상세 Figma 2352:57429: 「연결됨」(GRAY070A · gray700 16 Medium) · 10 · 「다시 로그인」(RED 10% · red 16 SemiBold) 나란히 */
.dm-conn-need-pill.is-login { display: inline-flex !important; align-self: flex-start; align-items: center; box-sizing: border-box; height: 38px; margin-top: 5px; padding: 0 12px; border: 1px solid rgba(0, 24, 46, 0.07); border-radius: 100px; }
.dm-conn-need-pill.is-login .dm-conn-need { gap: 4px; color: #131A20; font-size: 13px; font-weight: 400; line-height: normal; letter-spacing: .13px; }
:root[data-dm-theme="dark"] .dm-conn-need-pill.is-login { border-color: rgba(243, 245, 247, 0.1); }
:root[data-dm-theme="dark"] .dm-conn-need-pill.is-login .dm-conn-need { color: #F3F5F7; }
.dm-conn-cta-row { display: flex; gap: 10px; }
.dm-conn-cta-row > .dm-conn-cta { flex: 1 1 0; min-width: 0; }
.dm-conn-cta-row > .dm-conn-cta.is-done.is-static { background: rgba(0, 24, 46, 0.07); color: #3D4348; font-weight: 500; }
:root[data-dm-theme="dark"] .dm-conn-cta-row > .dm-conn-cta.is-done.is-static { background: rgba(243, 245, 247, 0.1); color: #DAE0E6; }
.dm-conn-cta-row > .dm-conn-cta.is-alert { font-weight: 600; }

/* 목록에 없는 서비스 직접 연결(develop) */
.dm-conn-site-form { display: block; margin: 16px 20px 24px; }
.dm-conn-site-form label { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.dm-conn-site-form-fields { display: flex; align-items: center; gap: 12px; }
.dm-conn-site-form-fields .dm-sheet-input { min-width: 0; flex: 1; }
.dm-conn-site-form-fields .dm-conn-btn { flex-shrink: 0; }
:root[data-dm-theme] .dm-conn-site-form .dm-conn-btn { background: var(--dm-ui-action-primary-bg); color: var(--dm-ui-action-primary-text); }
.dm-conn-site-form-error { margin: 12px 0 0; color: var(--dm-ui-danger); font-size: 13px; }

/* ── 대화창 통화 모드 (TASK-1401) ─────────────────────────────────────────────────────────────
   대화 머리글의 전화 단추가 단무지와 음성 통화를 건다(통화 중 초록). 통화 중에는 입력창 위 8에 통화 막대(높이 64, 반경 32,
   입력창과 같은 유리 바탕)가 붙고, 입력창의 마이크는 흐려지며 빠진다(막대에 음소거 마이크가 있어 둘로 보이지 않게).
   파형은 입력창 받아쓰기 이퀄라이저와 같은 계산(막대 2.2 · 간격 3, −50dB→−10dB), 내 목소리 검정 · 단무지 목소리 노랑.
   읽는 중인 답은 아직 안 읽은 낱말이 연하고, 읽은 낱말부터 진해진다. 값은 디자이너 확인 전 파생값이다(디자인 토큰 문서 참조). */
body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-chat-call { background-image: url('assets/figma/gnb/phone.svg'); }
:root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-chat-call { background-image: url('assets/figma/gnb/phone-dark.svg'); }
body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-chat-call.is-on,
.figma-desktop-chat-head .figma-gnb-call.is-on,
:root[data-dm-theme="dark"] body.figma-chat-page .figma-chat-head .figma-chat-actions .figma-chat-call.is-on,
:root[data-dm-theme="dark"] .figma-desktop-chat-head .figma-gnb-call.is-on { background-color: #00CD3C; background-image: url('assets/figma/gnb/phone-on.svg'); box-shadow: 0 6px 16px -8px rgba(0, 205, 60, .7); }

.voice-call-dock {
  position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; height: 64px; margin: 0 0 8px;
  padding: 0 8px 0 10px; border-radius: 32px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 15px rgba(0, 0, 0, .08); color: #191919; font-family: var(--dm-ui-font-family);
}
.voice-call-dock[hidden] { display: none; }
.voice-call-dock::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.voice-call-dock.is-entering { animation: voice-call-in .32s cubic-bezier(.34, 1.36, .64, 1); }
.voice-call-dock.is-leaving { animation: voice-call-out .28s ease-in forwards; }
@keyframes voice-call-in { from { transform: translateY(10px) scale(.96); opacity: 0; } }
@keyframes voice-call-out { to { transform: translateY(10px) scale(.96); opacity: 0; } }
.voice-call-orb { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; }
.voice-call-orb::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #fdf8cf; transform: scale(calc(1 + var(--voice-level, 0) * .22)); transition: transform .09s linear, background-color .2s; }
.voice-call-orb::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; box-shadow: 0 0 0 2px #FCEA4A; opacity: 0; }
.voice-call-dock.is-dan .voice-call-orb::before { background: #fdf096; }
.voice-call-dock.is-dan .voice-call-orb::after { animation: voice-call-ring 1.1s ease-out infinite; }
.voice-call-dock[data-phase="listen"] .voice-call-orb::before { animation: voice-call-breathe 2.4s ease-in-out infinite; }
.voice-call-dock[data-phase="ended"] .voice-call-orb { filter: grayscale(1); opacity: .55; }
@keyframes voice-call-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes voice-call-breathe { 50% { transform: scale(1.08); } }
.voice-call-orb img { position: relative; width: 34px; height: 34px; object-fit: contain; }
.voice-call-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.25; }
.voice-call-title { overflow: hidden; color: #191919; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.voice-call-time { margin-left: 2px; color: #B2B2B2; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.voice-call-status { display: flex; align-items: center; gap: 6px; min-width: 0; color: #767676; font-size: 13px; }
.voice-call-words { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.voice-dots, .voice-wave { display: none; flex: none; }
.voice-call-dock.is-working .voice-dots { display: inline-flex; gap: 3px; }
.voice-dots i { width: 4px; height: 4px; border-radius: 50%; background: #C8A800; animation: voice-call-dot 1.1s ease-in-out infinite; }
.voice-dots i:nth-child(2) { animation-delay: .15s; }
.voice-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes voice-call-dot { 30% { transform: translateY(-2px); opacity: .6; } 60% { transform: none; } }
.voice-call-dock.is-voiced .voice-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; color: #191919; }
.voice-call-dock.is-dan .voice-wave { color: #C8A800; }
.voice-call-dock[data-phase="listen"] .voice-wave { color: #B2B2B2; }
.voice-wave i { flex: none; width: 2.2px; height: 2px; border-radius: 3px; background: currentColor; transition: height .09s linear; }
.voice-call-mute, .voice-call-hangup { flex: none; border: 0; cursor: pointer; transition: transform .12s, background-color .15s; }
.voice-call-mute:active, .voice-call-hangup:active { transform: scale(.96); }
.voice-call-mute { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #F5F5F5 url('assets/figma/composer/mic.svg') center / 20px no-repeat; }
.voice-call-mute.is-on { background-color: #191919; background-image: url('assets/figma/composer/mic-dark.svg'); }
.voice-call-mute.is-on::after { content: ""; position: absolute; top: 12px; left: 21px; width: 2px; height: 20px; border-radius: 2px; background: #fff; transform: rotate(-45deg); }
.voice-call-hangup { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 14px 0 12px; border-radius: 100px; background: #FF3B30; color: #fff;
  font: 600 14px / 1 var(--dm-ui-font-family); box-shadow: 0 6px 16px -8px rgba(255, 59, 48, .8); }
.voice-call-hangup span { width: 17px; height: 17px; background: currentColor; -webkit-mask: url('assets/figma/widget/icon/call-ended.svg') center / contain no-repeat; mask: url('assets/figma/widget/icon/call-ended.svg') center / contain no-repeat; }
.voice-call-dock[data-phase="ended"] :is(.voice-call-mute, .voice-call-hangup) { opacity: .35; pointer-events: none; }
:root[data-dm-theme="dark"] .voice-call-dock { background: rgba(32, 32, 32, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 8px rgba(0, 0, 0, .05); color: #F2F2F2; }
:root[data-dm-theme="dark"] .voice-call-dock::after { background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .025) 40%, rgba(255, 255, 255, .025) 60%, rgba(255, 255, 255, .25)); }
:root[data-dm-theme="dark"] .voice-call-title { color: #F2F2F2; }
:root[data-dm-theme="dark"] .voice-call-status { color: #A6A6A6; }
:root[data-dm-theme="dark"] .voice-call-time, :root[data-dm-theme="dark"] .voice-call-dock[data-phase="listen"] .voice-wave { color: #7C7C7C; }
:root[data-dm-theme="dark"] .voice-call-dock.is-voiced .voice-wave { color: #F2F2F2; }
:root[data-dm-theme="dark"] .voice-call-dock.is-dan .voice-wave { color: #FCEA4A; }
:root[data-dm-theme="dark"] .voice-dots i { background: #FCEA4A; }
:root[data-dm-theme="dark"] .voice-call-orb::before { background: #3a3618; }
:root[data-dm-theme="dark"] .voice-call-dock.is-dan .voice-call-orb::before { background: #5c5418; }
:root[data-dm-theme="dark"] .voice-call-mute { background-color: rgba(255, 255, 255, .08); background-image: url('assets/figma/composer/mic-dark.svg'); }
:root[data-dm-theme="dark"] .voice-call-mute.is-on { background-color: #F2F2F2; background-image: url('assets/figma/composer/mic.svg'); }
:root[data-dm-theme="dark"] .voice-call-mute.is-on::after { background: #080808; }
@media (min-width: 701px) {
  .danmuji-shell .main-chat .composer-bar:has(.voice-call-dock:not([hidden])) { flex-direction: column; align-items: center; }
  .danmuji-shell .main-chat .voice-call-dock { max-width: 700px; }
}

/* 통화 중에는 입력창의 마이크가 흐려지며 빠지고(0.16초 · 자리 0.3초), 끊으면 같은 움직임으로 돌아온다. 「답변 듣기」도 숨긴다. */
body.figma-chat-page .composer .figma-voice-button { transition: width .3s cubic-bezier(.22, 1, .36, 1), opacity .16s ease-out, transform .3s cubic-bezier(.22, 1, .36, 1); }
body.figma-chat-page.is-voice-calling .composer:not(.is-listening) .figma-voice-button { width: 0; min-width: 0; padding: 0; overflow: hidden; opacity: 0; transform: scale(.6); pointer-events: none; }
body.is-voice-calling .speak-button { display: none; }
.figma-voice-button[hidden] { display: none !important; }

/* 통화에서 말로 보낸 내 말 · 통화가 시작된 곳 · 읽는 중인 답 */
.voice-sent { display: inline-flex; align-self: flex-end; align-items: center; gap: 3px; margin: 4px 4px 0 0; color: #B2B2B2; font-size: 12px; line-height: 16px; }
.voice-sent i { width: 11px; height: 11px; background: currentColor; -webkit-mask: url('assets/figma/composer/mic.svg') center / contain no-repeat; mask: url('assets/figma/composer/mic.svg') center / contain no-repeat; }
:root[data-dm-theme="dark"] .voice-sent { color: #7C7C7C; }
body.figma-chat-page .chat-feed.feed-call { font-size: 13px; }
.chat-feed.feed-call span { display: inline-flex; align-items: center; gap: 5px; }
.chat-feed.feed-call i { width: 14px; height: 14px; background: url('assets/figma/bubble/feed-phone.svg') center / contain no-repeat; }
:root[data-dm-theme="dark"] .chat-feed.feed-call i { background-image: url('assets/figma/bubble/feed-phone-dark.svg'); }
.message.is-voice-reading .voice-word { color: #B2B2B2; transition: color .12s; }
.message.is-voice-reading .voice-word.is-read { color: inherit; }
:root[data-dm-theme="dark"] .message.is-voice-reading .voice-word { color: #7C7C7C; }
:root[data-dm-theme="dark"] .message.is-voice-reading .voice-word.is-read { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .voice-call-dock, .voice-call-dock *, .voice-call-dock::before, .voice-call-dock::after { animation: none !important; transition: none !important; }
  .voice-call-orb::before { transform: none !important; }
}
/* 답 기다리는 말풍선의 단계 라벨(2026-11-19 사용자) — 서버가 단계 라벨을 보낼 때만 점 3개 대신 「지금 하는 일」 한 줄.
   글자는 상단 「생각 중」과 같은 빛 흐름, 라벨이 바뀌면 살짝 흐린 크로스페이드, 말풍선 폭은 부드럽게 따라감. 경과 시간 없음 */
body.figma-chat-page .messages .bubble.assistant.dm-typing-bubble { position: relative; overflow: hidden; max-width: 100%; transition: width .32s cubic-bezier(.2, 0, 0, 1); }
body.figma-chat-page .messages .bubble.assistant.dm-typing-bubble.has-label { height: auto; min-height: 49.6px; padding-block: 13.8px; }
.dm-typing-dots { display: flex; flex: none; align-items: center; gap: 5px; }
.dm-typing-label { position: relative; display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.dm-typing-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; object-fit: contain; }   /* 「생각 중」 그림 20×20, 줄 높이 22 의 첫 줄 가운데 */
.dm-typing-text {
  min-width: 0; white-space: normal; word-break: keep-all; overflow-wrap: anywhere;   /* 서버가 보낸 라벨은 생략 없이 다(길면 줄바꿈) */
  font-size: 15px; line-height: 22px; font-weight: 400;
  --dm-shine: rgba(255, 255, 255, .7); --dm-shine-ink: #545A60;
  background: linear-gradient(90deg, transparent 30%, var(--dm-shine) 50%, transparent 70%) 0 0 / 250% 100% no-repeat, linear-gradient(var(--dm-shine-ink), var(--dm-shine-ink));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  animation: dm-thinking-text 1.8s linear infinite;
}
.dm-typing-bubble.is-sizing .dm-typing-text { white-space: nowrap; }
:root[data-dm-theme="dark"] .dm-typing-text { --dm-shine: rgba(0, 0, 0, .6); --dm-shine-ink: #A2A8AE; }
.dm-typing-bubble > .dm-typing-dots, .dm-typing-bubble > .dm-typing-label, .dm-typing-label > .dm-typing-text { transition: opacity .28s ease, filter .28s ease; }
.dm-typing-bubble > .is-in, .dm-typing-label > .is-in { opacity: 0; filter: blur(2px); }
.dm-typing-bubble > .is-out { position: absolute; left: 16px; right: 16px; top: 50%; translate: 0 -50%; opacity: 0; filter: blur(2px); }
.dm-typing-label > .is-out { position: absolute; left: 26px; right: 0; top: 0; opacity: 0; filter: blur(2px); }   /* 그림(20) + 간격(6) 뒤 같은 자리 */
@media (prefers-reduced-motion: reduce) {
  body.figma-chat-page .messages .bubble.assistant.dm-typing-bubble { transition: none; }
  .dm-typing-text { animation: none; background: none; color: var(--dm-shine-ink); }
}

/* ── 모바일 사이드 메뉴 새 시안(2026-11-19, Figma 2491:64703 · 2491:64963 라이트 / 2491:64108 · 2491:65223 다크) — 디자인만, 이동 · 상태 연동은 그대로 ──
   좌표는 Figma 판에서 상태바 54 를 뺀 값. 노란 카드 없음: 바탕 위에 캐릭터 117×120(위 27) · 「펀치」 24 Bold / 상태 15 · 60%(사이 4)
   · 통화 · 예약 · 설정(아이콘 30 · 원 50, 칸 80 · 사이 30, 글 13/1.68).
   사용량(빨강 #D5381F, 높이 80 · 모서리 100 · 안쪽 22 30 24 · 사이 12): 라벨 15 흰 70% / 값 16 Bold 흰 + 화살표 14 / 막대 4(검정 20% 위 흰색) + 끝에 불꽃 26(일렁임).
   목록(사이 12): 줄 높이 80 · 모서리 100 · 안쪽 좌우 30 · 바탕 4%(다크 8%), 이름 17 Bold, 오른쪽 썸네일 30(겹침 24.37 · 사이 테두리 1.5) + 화살표 14.
   서비스 연결 썸네일은 늘 구글 · 네이버 · 카카오톡 고정, 보관함은 이미지 · 파일이 있을 때만 최근 최대 3개. 설정은 목록에서 빠지고 위 버튼으로 */
@media (max-width: 700px) {
  .dm-menu.is-v3 { --menu-row: #F5F6F7; color: #131A20; }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 { --menu-row: #1A1B1B; color: #F3F5F7; }
  .dm-menu.is-v3 .dm-menu-top { display: flex; flex-direction: column; align-items: stretch; gap: 12px; height: auto; padding: 94px 16px 0; border-radius: 0; background: none; color: inherit; }
  .dm-menu.is-v3 .dm-menu-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 62px 20px 20px; border-radius: 34px; background: none; color: inherit; }
  .dm-menu.is-v3 .dm-menu-hero { gap: 4px; }
  .dm-menu.is-v3 .dm-menu-hero img { position: absolute; top: -129px; left: calc(50% - 56.04px);   /* 위 27 · 왼 140.46(Figma — 가운데보다 2.5 오른쪽) */ width: 117px; height: 120px; margin: 0; object-fit: contain; }
  .dm-menu.is-v3 .dm-menu-hero h2 { font-size: 24px; font-weight: 700; line-height: 32px; }
  .dm-menu.is-v3 .dm-menu-hero p { margin: 0; font-size: 15px; font-weight: 400; line-height: 23px; opacity: .6; }
  .dm-menu.is-v3 .dm-menu-actions { gap: 30px; }
  .dm-menu.is-v3 .dm-menu-actions button { gap: 0; width: 80px; color: #2E2E2E; font-size: 13px; line-height: 1.68; }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-actions button { color: #EEEEEE; }
  .dm-menu.is-v3 .dm-menu-action-icon { width: 50px; height: 50px; margin-bottom: -2px; border-radius: 100px; background: none center / 30px 30px no-repeat; box-shadow: none; }
  .dm-menu.is-v3 .dm-menu-action-icon.is-call { background-image: url('assets/figma/menu2/phone.svg'); background-size: 22.7px 22.7px; }
  .dm-menu.is-v3 .dm-menu-action-icon.is-reservation { background-image: url('assets/figma/menu2/clock.svg'); background-size: 25px 25px; }
  .dm-menu.is-v3 .dm-menu-action-icon.is-settings { background-image: url('assets/figma/menu2/setting.svg'); background-size: 24.7px 26.2px; }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-action-icon.is-call { background-image: url('assets/figma/menu2/phone-dark.svg'); }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-action-icon.is-reservation { background-image: url('assets/figma/menu2/clock-dark.svg'); }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-action-icon.is-settings { background-image: url('assets/figma/menu2/setting-dark.svg'); }

  .dm-menu.is-v3 .dm-menu-usage { justify-content: center; gap: 14px;   /* 라벨 ~ 막대 14(2026-11-19 사용자, 시안 12) */ height: 80px; margin: 0; padding: 22px 30px 24px; border-radius: 100px; background: #D5381F; box-shadow: none; color: #fff; }
  :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-usage { background: #D5381F; color: #fff; }
  .dm-menu.is-v3 .dm-menu-usage-head > span, :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-usage-head > span { color: #fff; font-size: 15px; font-weight: 400; line-height: 18px; opacity: .7; }
  .dm-menu.is-v3 .dm-menu-usage-head strong { gap: 4px; font-size: 16px; font-weight: 700; line-height: 19px; }
  .dm-menu.is-v3 .dm-menu-usage-arrow, :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-usage-arrow { width: 14px; height: 14px; background: url('assets/figma/menu2/arrow-white.svg') center / 5.5px 9.6px no-repeat; opacity: 1; }
  .dm-menu.is-v3 .dm-menu-usage-track, :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-usage-track { flex: none; height: 4px; background: rgba(0, 0, 0, .2); }
  .dm-menu.is-v3 .dm-menu-usage-track > span, :root[data-dm-theme="dark"] .dm-menu.is-v3 .dm-menu-usage-track > span { background: #fff; }
  /* 불꽃: 막대 끝(채운 곳 끝)에 26 — 가운데가 끝보다 4 앞, 아래 끝이 막대 아래 8(Figma 45% · 100% 두 판 공통) */
  .dm-menu-fire { position: absolute; right: -9px; bottom: -8px; width: 26px; height: 26px; background: url('assets/figma/menu2/fire-outer.svg') center / 21.7px 24.2px no-repeat; transform-origin: 50% 92%; animation: dm-fire-flicker 1.1s ease-in-out infinite, dm-fire-lean 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
  /* 안쪽 하얀 심지는 바깥 불꽃과 따로 — 아래를 붙인 채 살짝 커졌다 작아지며 위로 떴다 가라앉음 */
  .dm-menu-fire-core { position: absolute; inset: 0; background: url('assets/figma/menu2/fire-core.svg') center / 21.7px 24.2px no-repeat; transform-origin: 50% 85%; animation: dm-fire-core .8s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .dm-menu-fire::after { content: ''; position: absolute; inset: 2px 3px 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 0, .55), transparent); filter: blur(4px); z-index: -1; animation: dm-fire-glow 1.4s cubic-bezier(.45, 0, .55, 1) infinite; }

  .dm-menu.is-v3 .dm-menu-links { gap: 12px; margin: 12px 0 0; padding: 0 16px; color: inherit; }
  .dm-menu.is-v3 .dm-menu-links button { height: 80px; margin: 0; padding: 0 30px; border-radius: 100px; background: var(--menu-row); font-size: 17px; font-weight: 700; line-height: normal; gap: 16px; }
  .dm-menu.is-v3 .dm-menu-links button::before, .dm-menu.is-v3 .dm-menu-links button::after { content: none; }
  .dm-menu-link-end { display: flex; align-items: center; gap: 4px; }
  .dm-menu-link-arrow { flex: none; width: 14px; height: 14px; background: url('assets/figma/menu2/arrow-row.svg') center / 5.5px 9.6px no-repeat; }
  .is-quiet > .dm-menu-link-end .dm-menu-link-arrow { background-image: url('assets/figma/menu2/arrow-row-quiet.svg'); }
  :root[data-dm-theme="dark"] .dm-menu-link-arrow { background-image: url('assets/figma/menu2/arrow-row-dark.svg'); }
  :root[data-dm-theme="dark"] .is-quiet > .dm-menu-link-end .dm-menu-link-arrow { background-image: url('assets/figma/menu2/arrow-row-quiet-dark.svg'); }
  .dm-menu-faces { display: flex; }
  .dm-menu-face { position: relative; flex: none; box-sizing: border-box; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: #fff center / cover no-repeat; }
  .dm-menu-face + .dm-menu-face { margin-left: -5.63px; box-shadow: 0 0 0 2.8px var(--menu-row); }   /* 겹침 24.37 · 앞 썸네일과 틈 2.8(Figma Subtract: 앞 것의 오른쪽을 뒤 것 + 2.81 만큼 파냄) */
  /* 모든 썸네일 안쪽 1 테두리 검정 6%(다크 흰 10%) — Figma Subtract 의 안쪽 선 */
  .dm-menu-face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
  :root[data-dm-theme="dark"] .dm-menu-face::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  .dm-menu-face.is-google { background-image: url('assets/figma/menu2/logo-google.png'); }
  .dm-menu-face.is-naver { background-image: url('assets/figma/menu2/logo-naver.png'); }
  .dm-menu-face.is-talk { background-image: url('assets/figma/menu2/logo-talk.png'); }
  .dm-menu-face:is(.is-photo, .is-file) { border-radius: 7px; }
  .dm-menu-face.is-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .dm-menu-face.is-file { background: #fff center / 24px 24px no-repeat; }   /* 테두리는 ::after 안쪽 선으로(사진과 같은 1 · 6%) */
  .dm-menu-face.is-file.is-pdf { background-image: url('assets/figma/library/file-pdf.svg'); }
  .dm-menu-face.is-file.is-sheet { background-image: url('assets/figma/library/file-sheet.svg'); }
  .dm-menu-face.is-file.is-docs { background-image: url('assets/figma/library/file-docs.svg'); }
  .dm-menu-face.is-file.is-ppt { background-image: url('assets/figma/library/file-ppt.svg'); }
  .dm-menu-face.is-file.is-etc { background-image: url('assets/figma/library/file-etc.svg'); }
}
/* 불꽃 모션 3안(2026-11-19 사용자 「다른 움직임으로」): 바깥 불꽃은 진짜 불처럼 빠르고 불규칙하게 위로 넘실(1.1초, 세로 위주로 작게)
   + 아주 느리게 좌우로 기울기(3.4초), 안쪽 심지는 따로 숨쉬고 */  /* 불티는 뺌(2026-11-19 사용자) */
@keyframes dm-fire-flicker {
  0%, 100% { scale: 1 1; }
  13% { scale: 1.01 .96; }
  27% { scale: .99 1.05; }
  41% { scale: 1 .98; }
  56% { scale: .98 1.08; }
  70% { scale: 1.01 .97; }
  85% { scale: .99 1.03; }
}
@keyframes dm-fire-lean { 0%, 100% { rotate: -2deg; } 50% { rotate: 2.5deg; } }
@keyframes dm-fire-core { from { scale: .9; translate: 0 .5px; } to { scale: 1.06; translate: 0 -1px; } }
@keyframes dm-fire-glow { 0%, 100% { opacity: .65; scale: 1; } 45% { opacity: 1; scale: 1.08; } }
@media (prefers-reduced-motion: reduce) { .dm-menu-fire, .dm-menu-fire::after, .dm-menu-fire-core { animation: none; } }

/* ── 과업 완료 스낵바(2026-11-19 사용자, Figma 2499:78309) — 맡긴 일이 끝났을 때 다른 화면을 보고 있으면 위에서 내려옴.
   유리 알약 높이 60 · 좌우 13 · #202020 70% · 흐림 15 · 그림자 0 0 2 10% / 0 1 15 8%, 안쪽 좌우 16 · 사이 10,
   단무지 28 · 6 · 글 14/1.5 흰 80%(한 줄 …) / 「확인하기」 14 Bold 흰. 위로 밀어 올려 닫기 · 누르면 그 대화로. PC 는 가운데 폭 420 ── */
.dm-snack-wrap { position: fixed; z-index: 2147483000; top: env(safe-area-inset-top, 0px); left: 0; right: 0; display: flex; justify-content: center; padding: 0 13px; pointer-events: none; }
.dm-snack { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; height: 60px; padding: 8px 16px; border-radius: 999px; background: rgba(32, 32, 32, .7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 1px 15px rgba(0, 0, 0, .08); color: #fff; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.dm-snack-ico { flex: none; width: 28px; height: 28px; margin-right: -4px; object-fit: contain; }   /* 그림 · 글 사이 6(알약 사이 10 에서 -4) */
.dm-snack-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 1.5; font-weight: 400; opacity: .8; }
.dm-snack-go { flex: none; margin: 0; padding: 10px 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; }
@media (min-width: 701px) { .dm-snack-wrap { top: 16px; } }

/* 메모리 새 시안(2026-11-19, Figma 2440:74066 · 2440:74661 · 2440:74336) — 한 화면에 스위치 · 저장한 메모리 목록 · 모두 지우기.
   줄: 내용 16 Medium 24 / 날짜 14 Regular 24 gray550(#72777C · 다크 #A2A8AE), 안쪽 13 20, ··· 22 */
.is-mem-v3 .dm-mem-list .dm-act-meta { color: #72777C; }
:root[data-dm-theme="dark"] .is-mem-v3 .dm-mem-list .dm-act-meta { color: #A2A8AE; }

/* ── 로그인 전 소개(2026-11-19 사용자) — 장면 1~3 이 대기 등록 화면처럼 3.1초마다 넘어가고 4(PUNCH)에서 머묾 ──
   모바일 Figma 496:90398 · 2491:65820 · 2491:65991 · 2491:68054(393×852, 상태바 53 뺀 799 판 기준):
     장면 글 36 Bold · 줄 50 · -0.005em, 위 274 · 3줄 150, 그림 50 · 글과 사이 8
     마지막: 장갑 124(위 195) · 부제 14 Bold 20(위 339) · 10 · PUNCH 223.4×46
   PC Figma 496:90364 · 2491:67058 · 2491:67125 · 2491:66979(1440×1024): 1000 칸이 가운데(위 370), 글 64 Bold · 줄 90, 그림 90 · 사이 14,
     2줄 180 → 54 → 로그인 320×58. 마지막: 부제 20 Bold 36 · 14 · PUNCH 359.4×74 · 아래 14(180 칸 아래 맞춤), 장갑 150.85×170(칸 위 -150) */
.figma-auth.is-intro .lgi-stage { position: absolute; inset: 0; pointer-events: none; }
.lgi-hero { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--dm-ui-text-primary); text-align: center; }
.lgi-story { margin: 0; font-weight: 700; letter-spacing: -.005em; }
.lgi-line { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.lgi-brand { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.lgi-glove { position: absolute; left: 50%; display: block; object-fit: contain; }
.lgi-sub { margin: 0; color: var(--dm-ui-text-primary); font-weight: 700; }
.lgi-logo { display: block; background: url('assets/figma/login-intro/logo.svg') center / 99.57% 97.76% no-repeat; }   /* 로고 칸 안 글자 357.9×72.3(Figma 「PUNCH (Stroke)」) */
:root[data-dm-theme="dark"] .lgi-logo { background-image: url('assets/figma/login-intro/logo-dark.svg'); }
@media (max-width: 700px) {
  .lgi-hero { top: calc(max(0px, (100dvh - 799px) / 2) + 274px); height: 150px; padding: 0 20px; }
  .lgi-story { font-size: min(36px, calc((100vw - 40px) / 9.8)); line-height: 50px; }
  .lgi-story .lgi-line { gap: 8px; height: 50px; }
  .lgi-mascot { width: 50px; height: 50px; }
  .lgi-hero.is-brand { top: calc(max(0px, (100dvh - 799px) / 2) + 339px); height: auto; justify-content: flex-start; }
  .lgi-brand { gap: 10px; }
  .lgi-glove { top: -144px; width: 124px; height: 124px; margin-left: -62px; }   /* 위 195 = 부제 339 - 144 */
  .lgi-sub { font-size: 14px; line-height: 20px; letter-spacing: -.005em; }
  .lgi-logo { width: 223.43px; height: 46px; }
}
@media (min-width: 701px) {
  .lgi-hero { top: calc((100dvh - 292px) / 2 + 4px); height: 180px; }   /* 1024 에서 위 370 */
  .lgi-story { font-size: 64px; line-height: 90px; }
  .lgi-story .lgi-line { gap: 14px; height: 90px; }
  .lgi-mascot { width: 90px; height: 90px; }
  .lgi-brand { gap: 14px; padding-bottom: 14px; }
  .lgi-glove { top: -192px; width: 150.85px; height: 170px; margin-left: -76.75px; }   /* 칸(180) 위 -150: 부제 줄 묶음이 칸 아래에 붙어 위 42 → -150 - 42 */
  .lgi-sub { font-size: 20px; line-height: 36px; letter-spacing: -.005em; }
  .lgi-logo { width: 359.43px; height: 74px; }
  .figma-auth.is-intro .figma-auth-action { top: calc((100dvh - 292px) / 2 + 4px + 234px); bottom: auto; left: 50%; right: auto; width: 320px; max-width: none; margin: 0; padding: 0; transform: translateX(-50%); }
  .figma-auth.is-intro .figma-auth-action .figma-kakao { width: 320px; }
}
/* PC 다크(Figma 2491:67206 ~ 2491:67298): 바탕 white000s #080808(라이트 #FFF와 같은 토큰), 마지막 화면 PUNCH 로고만 388.57×80(부제는 칸 위 36) */
@media (min-width: 701px) {
  :root[data-dm-theme="dark"] .figma-auth.is-intro { background: #080808; }
  :root[data-dm-theme="dark"] .lgi-logo { width: 388.57px; height: 80px; }
  :root[data-dm-theme="dark"] .lgi-glove { top: -186px; }   /* 부제가 6 위로 올라가도 장갑은 그대로 위 220 */
}

/* ── 미등록자 대기 등록(2026-11-19 사용자, Figma 1975:19431, 상태바 53 뺀 좌표) ──
   위 100: 제목 28 Bold(줄 50, 두 줄 겹침 -10) · 24 · 안내 14 Regular 24 #545A60(다크 #A2A8AE) / 전화 장갑 200 칸(위 337, 그림 216 · -8 -12)
   아래: 필수 동의 두 줄(체크 24 · 6 · 13 Medium 21, 줄 사이 6, 위아래 10) → 버튼 칸(위아래 24 · 좌우 20) 검은 「대기등록 하기」 높이 60 · 16 SemiBold */
.figma-join.is-register { justify-content: flex-start; padding: 100px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.jr-close { display: block; position: absolute; }
.jr-head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 0 20px; }
.jr-head h1 { margin: 0; padding: 5px 0; color: var(--dm-ui-text-primary); font-size: 28px; font-weight: 700; line-height: 40px; letter-spacing: -.005em; }   /* 줄 칸 50 두 개가 10 겹침 → 줄 간격 40, 위아래 5 */
.jr-head p { margin: 0; color: #545A60; font-size: 14px; line-height: 24px; }
.jr-art { position: relative; flex: none; width: 200px; height: 200px; margin-top: 75px; overflow: hidden; }
.jr-art img { position: absolute; top: -12px; left: -8px; width: 216px; height: 216px; object-fit: cover; }
.jr-foot { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 440px; margin-top: auto; padding-top: 24px; }
.figma-join.is-register .join-consent { gap: 6px; min-height: 0; margin: 0; padding: 10px 0; }
.figma-join.is-register .join-check-row { font-size: 13px; font-weight: 500; line-height: 21px; }
.jr-submit.join-primary { width: auto; height: 60px; min-height: 60px; margin: 24px 20px 0; border-radius: 100px; background: #191919; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.jr-submit.join-primary:disabled { background: rgba(0, 24, 46, 0.04); color: #AEB3B8; }   /* 비활성: gray050a · gray400(앱 공통) */
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
:root[data-dm-theme="dark"] .jr-head p { color: #A2A8AE; }
  :root[data-dm-theme="dark"] .jr-submit.join-primary:not(:disabled) { background: #F2F2F2; color: #191919; }
@media (min-width: 701px) {
  .figma-join.is-register { justify-content: center; padding: 60px 24px; }
  .jr-foot { margin-top: 40px; }
}

/* 대기 페이지 새 시안(2026-11-19, Figma 2423:56015) — 빨간 장갑 줄: 칸 200 · 사이 20, 안내 아래 75(위 337), 계속 흐름(이전 노란 캐릭터 줄 대신) */
.dm-onb-page.is-waiting .dm-onb-wait { height: 200px; margin-top: 75px; }
.dm-onb-page.is-waiting .dm-onb-wait-track { height: 200px; gap: 20px; padding-right: 20px; animation-duration: 25s; }   /* 예전 노란 줄과 같은 속도(초당 약 35px): 한 바퀴 880px / 25초 */
.dm-wait-tile { position: relative; flex: none; width: 200px; height: 200px; overflow: hidden; }
.dm-wait-tile img { position: absolute; max-width: none; }
.dm-wait-tile.is-phone img { top: -12px; left: -8px; width: 216px; height: 216px; }   /* 전화 장갑 그림 216 을 -8 -12 에 */
.dm-wait-tile.is-wave img { inset: 0; width: 200px; height: 200px; }   /* 로그인 장갑(124 칸 그대로 확대) */
@media (prefers-reduced-motion: reduce) { .dm-onb-page.is-waiting .dm-onb-wait-track { transform: translateX(calc(50vw - 100px - 220px)); } }
/* 대기 페이지 위(Figma 2423:56015): 왼쪽 위 닫기(로그인 화면 닫기와 같은 유리 44, 누르면 /join), 제목 위 100(전 153) · 안내 위 214 */
@media (max-width: 700px) {
  .dm-wait-close { display: block; position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 16px; }
  .dm-onb.is-waiting .dm-onb-main { padding-top: calc(env(safe-area-inset-top, 0px) + 100px); }
  .dm-onb.is-waiting .dm-onb-sub { line-height: 24px; }   /* 안내 14 · 줄 24(두 줄 48) → 장갑 줄 위 337 */
}

/* 내 말풍선 색(2026-11-19 사용자, Figma 2491:68609): gray900 바탕 + 흰 글자 — 라이트 #131A20 / #FFF, 다크 #F3F5F7 / #080808(전 노랑 #FFF0A4) */
body.figma-chat-page { --chat-me-bg: #131A20; --chat-me-ink: #fff; }
:root[data-dm-theme="dark"] body.figma-chat-page { --chat-me-bg: #F3F5F7; --chat-me-ink: #080808; }
body.figma-chat-page .messages .bubble.user a { color: inherit; }
/* 내 말풍선 안 파일 이름 · 종류(2026-11-19): 말풍선 글자색을 따라감 — 이름 그대로 진하게, 종류는 50% */
body.figma-chat-page .messages .bubble.user .file-text strong,
:root[data-dm-theme="dark"] body.figma-chat-page .messages .bubble.user .file-text strong { color: var(--chat-me-ink); }
body.figma-chat-page .messages .bubble.user .file-text small,
:root[data-dm-theme="dark"] body.figma-chat-page .messages .bubble.user .file-text small { color: var(--chat-me-ink); opacity: .5; }
/* 미등록자 대기 등록 공통 · PC(2026-11-19, Figma 2525:71508 · 다크 2529:71623) */
.jr-line { display: block; }
.jr-inline, .jr-pc-only { display: none; }
.figma-join.is-register .jr-bottom { display: none; }
@media (min-width: 701px) {
  .figma-join.is-register { justify-content: flex-start; padding: max(60px, calc(50dvh - 202px)) 24px 120px; }   /* 1024 에서 칸 위 310 */
  .jr-close, .jr-art, .jr-m, .jr-m-only { display: none; }
  .jr-pc-only { display: inline; }
  .jr-head { gap: 26px; padding: 0; }
  .jr-head h1 { padding: 0; font-size: 64px; line-height: 90px; letter-spacing: -.32px; }
  .jr-line { display: flex; align-items: center; justify-content: center; gap: 14px; height: 90px; white-space: nowrap; }
  .jr-inline { display: block; width: 90px; height: 90px; object-fit: cover; }
  .jr-head p { font-size: 15px; line-height: 26px; }
  .jr-foot { flex-direction: column-reverse; align-items: center; gap: 24px; margin-top: 40px; padding: 0; }   /* 버튼 위, 동의 두 줄 아래 */
  .figma-join.is-register .join-consent { padding: 0; }
  .jr-submit.join-primary { width: 260px; height: 58px; min-height: 58px; margin: 0; }
  .figma-join.is-register .jr-bottom { display: flex; }   /* 위치 · 글자는 /join 첫 화면의 저작권 줄 그대로(아래 28) */
}
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
:root[data-dm-theme="dark"] body.figma-join-body:has(.figma-join.is-register) { background: #080808; }   /* 다크 바탕(Figma 2529:71623) */
/* PC 대기 페이지(2026-11-19, Figma 2529:71601 · 다크 2529:71649): 제목 앞 손 흔드는 장갑 90×92.25(위 -1.13), 칸 위 310 */
@media (min-width: 701px) {
  .dm-onb-wait-pc { width: 90px; height: 92.25px; margin: -1.13px 0; object-fit: contain; }
}
@media (min-width: 701px) {
  .dm-onb-page.is-waiting { align-items: start; justify-items: center; padding-top: max(60px, calc(50dvh - 202px)); }   /* 1024 에서 제목 위 310(대기 등록 화면과 같은 자리) */
  .dm-onb-page.is-waiting .dm-onb-title { font-weight: 700; }
  .dm-onb-page.is-waiting .dm-onb-sub { font-size: 15px; line-height: 26px; }
  .dm-onb-page.is-waiting .dm-onb-foot { padding-top: 40px; }
  .dm-onb-page.is-waiting .dm-onb-next { height: 58px; }
}
/* PC 온보딩: 제목 옆 작은 캐릭터 그림을 뺌(2026-11-19 사용자) — 모바일은 그대로 */
@media (min-width: 701px) {
  .dm-onb-title .dm-onb-mascot { display: none !important; }
}
/* PC 대기 페이지 로그아웃 바탕 = 4%(Figma 2529:71601 #F5F5F5, 다크 2530:72457 흰 8%) — 전 7% */
@media (min-width: 701px) {
  .dm-onb-page.is-waiting .dm-onb-next { background: rgba(0, 24, 46, 0.04); }
  :root[data-dm-theme="dark"] .dm-onb-page.is-waiting .dm-onb-next { background: rgba(243, 245, 247, 0.08); }
}
/* 다크 대기 등록 바탕 #080808(Figma 2530:72431) — 페이지 바탕(html · body · main) 모두 */
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
html[data-dm-theme="dark"]:has(.figma-join.is-register), html[data-dm-theme="dark"]:has(.figma-join.is-register) body, :root[data-dm-theme="dark"] .figma-join.is-register { background: #080808; }

/* 제목 굵기 Bold(700) 통일(2026-11-19 사용자) — /join 첫 화면 장면 글 · 부제(전 600)도 로그인 소개 · 대기 등록 · 온보딩과 같게 */
.join-story, .join-subtitle { font-weight: 700; }
/* 저작권 줄 자리 통일(2026-11-19 사용자 「푸터가 움직여」): 대기 등록(/join) · 대기 · 온보딩 모두 아래 28(전 온보딩 · 대기 30) */
@media (min-width: 701px) { .dm-onb-copy { bottom: 28px; } }
@media (min-width: 701px) { .figma-auth-foot { bottom: 28px; height: auto; } }   /* 로그인 화면 저작권 줄도 아래 28(대기 등록 · 대기 · 온보딩과 같은 자리) */
/* 저작권 줄 색 통일(2026-11-19 사용자): 시안 gray500s — 라이트 #90959A, 다크 #7D8389(대기 · 온보딩은 다크에서도 라이트 색이었음) */
:root[data-dm-theme="dark"] .dm-onb-copy { color: #7D8389; }
/* 대기 · 온보딩 주소로 막 열린 순간(앱이 그리기 전)에도 그 화면 바탕(라이트 #FFF · 다크 #080808) — 회색 #202020 이 번쩍이지 않게 */
:root[data-dm-entry]:has(#app:empty), :root[data-dm-entry]:has(#app:empty) body { background: #fff; }
:root[data-dm-entry][data-dm-theme="dark"]:has(#app:empty), :root[data-dm-entry][data-dm-theme="dark"]:has(#app:empty) body { background: #080808; }   /* 앱이 아직 비어 있는 순간에만(다 그린 뒤에는 각 화면 바탕) */
/* 첫 화면만 부드럽게 나타남(theme.js dmFirst) — 바탕은 그대로, 내용만 0.22초 */
:root[data-dm-first] #app > * { animation: dm-first-in .22s ease-out both; }
@keyframes dm-first-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :root[data-dm-first] #app > * { animation: none; } }
/* 메모리가 없을 때(2026-11-19 사용자, Figma 2532:24708): 「저장한 메모리」 머리 아래 190 띄우고 가운데 — 18 SemiBold 1.56 / 8 / 14 Regular 1.54 gray550, 좌우 52 */
.dm-mem-empty { padding: 190px 52px 16px; text-align: center; }
.dm-mem-empty h2 { margin: 0; padding: 0; color: #131A20; font-size: 18px; font-weight: 600; line-height: 1.56; }
.dm-mem-empty p { margin: 8px 0 0; color: #72777C; font-size: 14px; line-height: 1.54; }
:root[data-dm-theme="dark"] .dm-mem-empty h2 { color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-mem-empty p { color: #A2A8AE; }

/* ── 메모리 비밀번호(2026-11-19, Figma 2176:65796 · 2176:66008 · 2176:65902, 상태바 53 뺀 좌표) ──
   닫기(위 10) / 제목 위 94: 28 Bold(줄 50 두 개 -10 겹침), 첫 줄 앞 캐릭터 50 · 6 / 28 아래 안내 14 · 1.6 #545A60 /
   40 아래 칸 6개(높이 70 · 모서리 20 · 사이 8 · 좌우 24, 바탕 3% · 지금 칸 테두리 1 진한 색) / 아래 버튼 줄(위 16 · 아래 10 · 좌우 20 · 높이 60 · 사이 10) */
.dm-lock { position: fixed; z-index: 2147482000; inset: 0; display: flex; flex-direction: column; background: #fff; color: #131A20; }
.dm-lock .dm-lock-close { display: block; position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 16px; }
.dm-lock-main { width: 100%; max-width: 440px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 94px) 24px 0; text-align: center; }
.dm-lock-title { display: flex; flex-direction: column; margin: 0; padding: 5px 0; font-size: 28px; font-weight: 700; line-height: 40px; letter-spacing: -.005em; }
.dm-lock-title span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.dm-lock-title img { width: 50px; height: 50px; margin: -5px 0; object-fit: contain; }
.dm-lock-sub { margin: 28px 0 0; color: #545A60; font-size: 14px; line-height: 1.6; }
.dm-lock-cells { position: relative; display: flex; gap: 8px; margin-top: 40px; cursor: text; }
.dm-lock-cells i { position: relative; flex: 1; height: 70px; border-radius: 20px; background: rgba(0, 24, 46, 0.03); }
.dm-lock-cells i.is-current { background: none; box-shadow: inset 0 0 0 1px #131A20; }
.dm-lock-cells i.is-filled::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #131A20; }
.dm-lock-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0; }
.dm-lock-error { margin: 12px 0 0; color: #ff472b; font-size: 13px; line-height: 1.5; }
.dm-lock-foot { display: flex; gap: 10px; width: 100%; max-width: 440px; margin: auto auto 0; padding: 16px 20px calc(10px + env(safe-area-inset-bottom, 0px)); }
.dm-lock-foot button { height: 60px; border: 0; border-radius: 100px; background: rgba(0, 24, 46, 0.04); color: #131A20; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; }
.dm-lock-prev { flex: none; padding: 0 40px; }
.dm-lock-ok { flex: 1; }
.dm-lock-ok:not(:disabled) { background: #131A20; color: #fff; }
.dm-lock-ok:disabled { background: rgba(0, 24, 46, 0.04); color: #AEB3B8; cursor: default; }   /* 비활성: gray050a · gray400(앱 공통) */
:root[data-dm-theme="dark"] .dm-lock { background: #080808; color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-lock-sub { color: #A2A8AE; }
:root[data-dm-theme="dark"] .dm-lock-cells i { background: rgba(243, 245, 247, 0.06); }
:root[data-dm-theme="dark"] .dm-lock-cells i.is-current { background: none; box-shadow: inset 0 0 0 1px #F3F5F7; }
:root[data-dm-theme="dark"] .dm-lock-cells i.is-filled::after { background: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-lock-foot button { background: rgba(243, 245, 247, 0.08); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-lock-ok:not(:disabled) { background: #F3F5F7; color: #080808; }
:root[data-dm-theme="dark"] .dm-lock-ok:disabled { background: rgba(243, 245, 247, 0.08); color: #777D83; }
@media (min-width: 701px) { .dm-lock-main { padding-top: max(94px, calc(50dvh - 220px)); } .dm-lock-foot { margin-top: 40px; margin-bottom: auto; } }
.dm-lock .dm-lock-close { padding: 0; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; }   /* 버튼 기본 테두리 · 여백 지움(로그인 닫기 <a> 와 같은 모양) */
.dm-lock-sub.is-error, :root[data-dm-theme="dark"] .dm-lock-sub.is-error { color: #ff472b; }   /* 한번 더 확인이 다를 때 안내 문구 자리 빨강 */
:root[data-dm-theme="dark"] .dm-lock-sub.is-error { color: #ff7849; }
/* 메모리 비밀번호 — 모바일은 카드가 화면 전체, PC 는 가운데 다이얼로그(2026-11-20 사용자, 앱 다이얼로그와 같은 모서리 36 · 그림자) */
.dm-lock-card { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
@media (min-width: 701px) {
  .dm-lock { align-items: center; justify-content: center; background: rgba(0, 0, 0, .4); }
  :root[data-dm-theme="dark"] .dm-lock { background: rgba(0, 0, 0, .6); }
  .dm-lock-card { flex: none; width: 420px; max-width: calc(100vw - 40px); border-radius: 36px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
  :root[data-dm-theme="dark"] .dm-lock-card { background: #202020; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
  .dm-lock .dm-lock-close { top: 16px; right: 16px; left: auto; width: 36px; height: 36px; background-size: 20px 20px; box-shadow: none; }
  .dm-lock-main { padding: 56px 30px 0; }
  .dm-lock-title { font-size: 24px; line-height: 34px; padding: 3px 0; }
  .dm-lock-title img { width: 44px; height: 44px; margin: -5px 0; }
  .dm-lock-sub { margin-top: 20px; }
  .dm-lock-cells { margin-top: 32px; }
  .dm-lock-cells i { height: 64px; border-radius: 18px; }
  .dm-lock-foot { margin: 32px 0 0; padding: 0 24px 24px; }
  .dm-lock-foot button { height: 56px; }
}
/* PC 비밀번호 다이얼로그를 다른 PC 다이얼로그(.dm-sheet, Figma 324:102473 List dialog)와 같게(2026-11-20 사용자):
   모서리 40, 닫기는 오른쪽 위(위 · 오른쪽 24) 지름 32 원 · 바탕 3%(다크 흰 6%) · X 18 — 유리 테두리 · 반투명 바탕 · 그림자 없음
   (로그인 유리 닫기 규칙이 :is(...) 로 더 세서, 같은 세기 이상으로 덮음) */
@media (min-width: 701px) {
  .dm-lock-card { border-radius: 40px; }
  :root .dm-lock .dm-lock-card button.dm-lock-close { top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 80px; background: rgba(0, 24, 46, 0.03) url('assets/figma/dialog/close.svg') center / 18px 18px no-repeat; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root .dm-lock .dm-lock-card button.dm-lock-close::after, :root[data-dm-theme="dark"] .dm-lock .dm-lock-card button.dm-lock-close::after { content: none; }
  :root .dm-lock .dm-lock-card button.dm-lock-close:hover { background-color: rgba(0, 24, 46, 0.07); }
  :root .dm-lock .dm-lock-card button.dm-lock-close:active { background-color: rgba(0, 24, 46, 0.09); }
  :root[data-dm-theme="dark"] .dm-lock .dm-lock-card button.dm-lock-close { background-color: rgba(243, 245, 247, 0.06); background-image: url('assets/figma/dialog/close-dark.svg'); box-shadow: none; }
  :root[data-dm-theme="dark"] .dm-lock .dm-lock-card button.dm-lock-close:hover { background-color: rgba(243, 245, 247, 0.1); }
}
/* 화면 모드는 theme.js 기준(저장 값 → 없으면 OS) — join 도 같은 기준(2026-11-20) */
:root[data-dm-theme="dark"] .jr-submit.join-primary:disabled { background: rgba(243, 245, 247, 0.08); color: #777D83; }   /* 대기 등록 다크 비활성(앱 공통 값) */

/* 비활성 버튼 통일(2026-11-20 사용자 「비활성 bg 는 gray050a, 텍스트는 gray400 맞아?」): 채움 버튼은 모두
   라이트 바탕 rgba(0,24,46,.04) · 글자 #AEB3B8 / 다크 rgba(243,245,247,.08) · #777D83, 투명도 없음(style.css button:disabled 45% 끔).
   시트의 연한 「저장」(is-soft) · 메모리 비밀번호 「확인」도 같게 */
:is(.dm-sheet-submit.is-soft, .dm-lock-ok):disabled,
.dm-connd-sheet .dm-sheet-submit.is-soft:disabled { background: rgba(0, 24, 46, 0.04); color: #AEB3B8; opacity: 1; }
:root[data-dm-theme="dark"] :is(.dm-sheet-submit.is-soft, .dm-lock-ok):disabled,
:root[data-dm-theme="dark"] .dm-connd-sheet .dm-sheet-submit.is-soft:disabled { background: rgba(243, 245, 247, 0.08); color: #777D83; opacity: 1; }
/* 모바일(~700): 비밀번호 아래 버튼 줄은 화면 폭을 따라 늘어남(좌우 20 유지) — 최대 폭 440 은 PC 다이얼로그에만(2026-11-20 사용자) */
@media (max-width: 700px) { .dm-lock-foot { max-width: none; } }

/* 대기 페이지 「대기 취소하기」(2026-11-20 사용자, Figma 2423:56015 · PC 2557:24055): 13 Medium 21 밑줄 링크.
   모바일은 로그아웃 위(글 아래 ~ 버튼 위 34), PC 는 로그아웃 아래 24 */
.dm-wait-cancel { display: block; margin: 0 auto 34px; padding: 0; border: 0; background: none; color: #131A20; font: inherit; font-size: 13px; font-weight: 500; line-height: 21px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:root[data-dm-theme="dark"] .dm-wait-cancel { color: #F3F5F7; }
@media (min-width: 701px) {
  .dm-onb-page.is-waiting .dm-onb-foot { display: flex; flex-direction: column; align-items: center; }
  .dm-wait-cancel { order: 2; margin: 24px auto 0; }
}

/* 닫기(X)가 있는 앱 다이얼로그(dialog({ close: true }), Figma 2554:25938 List dialog): 머리 줄 72 = 제목 18 SemiBold(왼 30) + 오른쪽 32 원형 닫기(위 · 오른 24).
   PC 는 폭 460(Figma 2557:24055) */
dialog.dm-dialog.has-close .dm-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 16px 30px; }
dialog.dm-dialog.has-close .dm-dialog-head h2 { padding: 0; line-height: 32px; }
dialog.dm-dialog.has-close .dm-dialog-x { display: block; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 80px; background: rgba(0, 24, 46, 0.03) url('assets/figma/dialog/close.svg') center / 18px 18px no-repeat; cursor: pointer; }
:root[data-dm-theme="dark"] dialog.dm-dialog.has-close .dm-dialog-x { background-color: rgba(243, 245, 247, 0.06); background-image: url('assets/figma/dialog/close-dark.svg'); }
@media (min-width: 701px) { dialog.dm-dialog.has-close { width: 460px; } }

/* 다이얼로그 안 스크롤 막대 — 서비스 전체 스크롤과 같은 gray200a(Figma 2579:62670): 라이트 검정 14% · 다크 흰색 22%. 굵기 4 · 둥근 끝.
   막대가 둥근 틀 밖으로 나가지 않게 위아래를 안으로 들이고, 스크롤 칸은 모서리 따라 잘라낸다(clip).
   (scrollbar-width/color 를 쓰면 크롬이 아래 모양을 무시해서 auto 로 되돌림) */
:is(dialog, .dm-lock-card), :is(dialog, .dm-lock-card) * { scrollbar-width: auto !important; scrollbar-color: auto !important; }
:is(dialog, .dm-lock-card)::-webkit-scrollbar, :is(dialog, .dm-lock-card) *::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
:is(dialog, .dm-lock-card)::-webkit-scrollbar-track, :is(dialog, .dm-lock-card) *::-webkit-scrollbar-track { margin: 20px 0; background: transparent; }
:is(dialog, .dm-lock-card)::-webkit-scrollbar-thumb, :is(dialog, .dm-lock-card) *::-webkit-scrollbar-thumb { border-radius: 100px; background-color: rgba(0, 0, 0, .14); }
:root[data-dm-theme="dark"] :is(dialog, .dm-lock-card)::-webkit-scrollbar-thumb, :root[data-dm-theme="dark"] :is(dialog, .dm-lock-card) *::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
:is(dialog, .dm-lock-card)::-webkit-scrollbar-corner, :is(dialog, .dm-lock-card) *::-webkit-scrollbar-corner { background: transparent; }
/* 약관 목록(Figma 2491:67741 · 2579:62670): 기본 막대는 숨기고 join.js 가 4px 막대(.join-dialog-thumb)를 테두리 안쪽 오른쪽 8 · 위아래 14 에 그림.
   (투명 테두리로 막대를 안쪽에 두던 방식은 크롬이 막대 둘레를 이상하게 그려서 버림) 목록 칸은 둥근 테두리 따라 잘라냄(clip) */
.join-dialog-scroll { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0 24px 24px; }
.join-dialog-scroll .join-dialog-items { margin: 0; overflow-x: hidden; overflow-y: auto; clip-path: inset(0 round 24px); scrollbar-width: none !important; }
.join-dialog-scroll .join-dialog-items::-webkit-scrollbar { display: none; }
.join-dialog-thumb { position: absolute; top: 0; right: 9px; width: 4px; border-radius: 100px; background: rgba(0, 0, 0, .14); pointer-events: none; }
.join-dialog-thumb[hidden] { display: none; }
:root[data-dm-theme="dark"] .join-dialog-thumb { background: rgba(255, 255, 255, .22); }

/* PC 온보딩 다이얼로그 테두리(2026-11-20, Figma 2557:24423 · 1741:78051): 안쪽 1px 흰색 8%, 라이트 · 다크 같음.
   Figma 는 프레임 테두리가 내용(오른쪽 그림) 위에 겹쳐 그려짐 → 테두리를 칸에 주지 않고 다이얼로그 위 덮개(::after)로 그린다.
   (전엔 .dm-onb 에 border 를 줘서 그림이 테두리 안쪽으로 밀리고, 그림 둘레에 어두운 바탕 위 회색 선 #313131 이 보였음) */
@media (min-width: 701px) {
  .dm-onb-page:not(.is-waiting) .dm-onb-dialog:not(dialog), dialog.dm-terms.dm-onb-dialog { position: relative; }
  .dm-onb-page:not(.is-waiting) .dm-onb-dialog:not(dialog)::after, dialog.dm-terms.dm-onb-dialog::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
}

/* ── 높이가 줄어도 위 · 아래 간격은 지키고 가운데 그림이 줄어듦(2026-11-20 사용자) — 모바일 ──
   기준 393×852. 위 칸(닫기 · 제목 · 안내)과 아래 칸(동의 · 버튼)은 그대로, 그림과 아래 칸 사이가 40 까지 먼저 줄고
   그 뒤엔 그림(200)이 최소 100 까지 줄어듦 → 화면이 스크롤되지 않음 */
@media (max-width: 700px) {
  /* 대기 등록(852 기준 위 칸 ~262 · 그림 위 75 · 그림 200 · 동의 줄까지 133 · 아래 칸 182):
     낮아지면 ① 그림 아래 간격 → 40 ② 그림 위 간격 75 → 40 ③ 그림 200 → 80 순서로 줄어듦 */
  .figma-join.is-register { --jr-art: clamp(80px, calc(100dvh - 524px), 200px); }
  .jr-art { width: var(--jr-art); height: var(--jr-art); margin-top: clamp(40px, calc(100dvh - 684px), 75px); }
  .figma-join.is-register .jr-foot { padding-top: 30px; }   /* 동의 줄(위 10)까지 최소 40 */
  .jr-art img { top: calc(var(--jr-art) * -.06); left: calc(var(--jr-art) * -.04); width: calc(var(--jr-art) * 1.08); height: calc(var(--jr-art) * 1.08); }
  /* 대기(852 기준 안내 아래 262 · 줄 위 75 · 칸 200 · 「대기 취소하기」까지 176 · 아래 칸 139): 같은 순서로 줄어듦. 칸 · 사이 · 그림 같은 비율 */
  .dm-onb-page.is-waiting { --wt: clamp(80px, calc(100dvh - 481px), 200px); }
  .dm-onb-page.is-waiting .dm-onb-wait { margin-top: clamp(40px, calc(100dvh - 641px), 75px); }
  .dm-onb-page.is-waiting .dm-onb-foot { padding-top: 40px; }
  .dm-onb-page.is-waiting .dm-onb-wait, .dm-onb-page.is-waiting .dm-onb-wait-track { height: var(--wt); }
  .dm-onb-page.is-waiting .dm-onb-wait-track { gap: calc(var(--wt) * .1); padding-right: calc(var(--wt) * .1); }
  .dm-onb-page.is-waiting .dm-wait-tile { width: var(--wt); height: var(--wt); }
  .dm-onb-page.is-waiting .dm-wait-tile.is-phone img { top: calc(var(--wt) * -.06); left: calc(var(--wt) * -.04); width: calc(var(--wt) * 1.08); height: calc(var(--wt) * 1.08); }
  .dm-onb-page.is-waiting .dm-wait-tile.is-wave img { width: var(--wt); height: var(--wt); }
  /* 로그인 소개: 글 · 장갑 묶음을 닫기 아래 ~ 로그인 버튼 위(아래 106) 칸 가운데 기준으로 — 799 이상에서는 전과 같은 자리(위 274 · 339).
     낮아지면 같이 위로 올라오고, 장갑이 닫기 버튼(아래 54)과 40 보다 가까워지려 하면 장갑만 줄어듦(최소 64) */
  .lgi-hero { top: calc((100dvh - 106px) / 2 - 72.5px); }
  .lgi-hero.is-brand { top: calc((100dvh - 106px) / 2 - 7.5px); --lgi-g: clamp(64px, calc((100dvh - 106px) / 2 - 121.5px), 124px); }
  .lgi-hero.is-brand .lgi-glove { top: calc(-1 * (var(--lgi-g) + 20px)); width: var(--lgi-g); height: var(--lgi-g); margin-left: calc(var(--lgi-g) / -2); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .dm-onb-page.is-waiting .dm-onb-wait-track { transform: translateX(calc(50vw - var(--wt) * 1.6)); } }

/* 스크롤 막대 공통(2026-11-20, Figma 2579:62670): 굵기 4 · 둥근 끝 · gray200a(라이트 검정 14% · 다크 흰색 22%), 바탕 없음.
   브라우저 기본 「얇은」 막대(8~11px) 대신 이 모양으로 — 숨긴 막대(display: none)는 그대로 숨김 */
*::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { border-radius: 100px; background-color: rgba(0, 0, 0, .14); }
:root[data-dm-theme="dark"] *::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
body.figma-chat-page .messages { scrollbar-color: auto; }   /* style.css 의 옛 색(#d8dfd5)을 지워 공통 4px 막대가 그려지게 */

/* 일일 사용량 세부(2026-11-20, Figma 2557:26892): 위 14 · 좌우 16, 상자 사이 12.
   빨간 상자 #D5381F · 둥글기 36 · 안쪽 26 30 · 사이 20 — 「일일 사용량 한도」 15 SemiBold 흰색 / 「N% 사용중」 20 Bold 흰색,
   막대 4(바탕 검정 20% · 채움 흰색, 끝에 메뉴와 같은 불꽃 26), 안내 14 Regular 흰색 70%.
   아래 줄: gray050a · 높이 80 · 둥글기 100 · 좌우 30, 「친구 초대」 15 Bold gray900 / 「준비중」 15 Bold gray500(#949494 · 다크 #828282) */
.dm-usage-v3 { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.dm-usage-v3-card { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 26px 30px; border-radius: 36px; background: #D5381F; color: #fff; }
.dm-usage-v3-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dm-usage-v3-head span { font-size: 15px; font-weight: 600; line-height: normal; }
.dm-usage-v3-head strong { font-size: 20px; font-weight: 700; line-height: normal; white-space: nowrap; }
.dm-usage-v3-track { position: relative; display: block; height: 4px; border-radius: 100px; background: rgba(0, 0, 0, .2); }
.dm-usage-v3-track > span { position: relative; display: block; height: 100%; min-width: 4px; border-radius: inherit; background: #fff; }
.dm-usage-v3-note { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 400; line-height: normal; }
.dm-usage-v3-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; padding: 0 30px; border-radius: 100px; background: rgba(0, 24, 46, .04); color: #131A20; font-size: 15px; font-weight: 700; line-height: normal; }
.dm-usage-v3-soon { color: #949494; }
:root[data-dm-theme="dark"] .dm-usage-v3-row { background: rgba(243, 245, 247, .08); color: #F3F5F7; }
:root[data-dm-theme="dark"] .dm-usage-v3-soon { color: #828282; }
/* 불꽃: 메뉴 사용량 막대와 같은 모양 · 일렁임(메뉴 규칙은 모바일 전용이라 여기서 PC 까지 같이) */
.dm-usage-v3 .dm-menu-fire { position: absolute; right: -9px; bottom: -8px; width: 26px; height: 26px; background: url('assets/figma/menu2/fire-outer.svg') center / 21.7px 24.2px no-repeat; transform-origin: 50% 92%; animation: dm-fire-flicker 1.1s ease-in-out infinite, dm-fire-lean 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.dm-usage-v3 .dm-menu-fire-core { position: absolute; inset: 0; background: url('assets/figma/menu2/fire-core.svg') center / 21.7px 24.2px no-repeat; transform-origin: 50% 85%; animation: dm-fire-core .8s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.dm-usage-v3 .dm-menu-fire::after { content: ''; position: absolute; inset: 2px 3px 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 0, .55), transparent); filter: blur(4px); z-index: -1; animation: dm-fire-glow 1.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .dm-usage-v3 .dm-menu-fire, .dm-usage-v3 .dm-menu-fire::after, .dm-usage-v3 .dm-menu-fire-core { animation: none; } }

/* PC 대화 머리: 전화 단추를 뺀 동안(2026-11-20 사용자 — 이번 스펙은 펀치에게 직접 전화 없음) 상태 알약이 가운데에 그대로 있게,
   오른쪽 예약 단추(44 + 사이 16)만큼 왼쪽을 비움 */
.figma-desktop-chat-head:not(:has(.figma-gnb-call)) { padding-left: 60px; }

/* 목록 화면 위 · 아래 빈 곳 채우기(2026-11-20 사용자, 최신 빌드 iOS): 사파리가 상태 표시줄 · 아래 주소창 뒤까지 화면을 그려서,
   붙어 있는 머리 위와 아래 고정 칸 아래로 목록이 비쳐 보였음 → 머리 바탕을 위로, 아래 고정 칸 바탕을 아래로 화면 밖까지 이어 칠함.
   모든 목록 화면(.dm-activity: 서비스 연결 · 설정 · 설정 상세 · 활동 · 보관함 · 사람/장소 …)의 머리 + 아래 고정 칸(서비스 연결 보안 안내 · 메모리 안내) */
@media (max-width: 700px) {
  .dm-act-top::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 100vh; background: inherit; pointer-events: none; }
  .dm-conn-secure::after, .dm-set-body.is-memory-home > .dm-memory-note.is-foot::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 100vh; background: inherit; pointer-events: none; }
  .dm-set-body.is-memory-home > .dm-memory-note.is-foot { isolation: isolate; }
}
