/* Z-Mate 흐름 시안(apply.html)의 스타일. 색, 글자, 머리글, 바닥글, 안내 말풍선은 메인 페이지의 styles.css 것을 그대로 쓰고,
   여기에는 흐름 화면에만 있는 것을 둔다: 한 화면에 할 일 하나를 담는 카드, 입력칸, 받은 메일의 모습, 시연 조작판.
   제품 화면이 아닌 것(받은 메일, 시연 조작판, "정해지는 중" 표시)은 끝에 모아 두었다 */

.fl-body { background: #f5f7fa; }
.fl-body .nav { box-shadow: 0 1px 0 rgba(0, 27, 55, .06); }
.fl-body .foot { border-top: 1px solid var(--g200); }
.nb { white-space: nowrap; }
.br-w { display: none; }

/* ───────── 화면 ───────── */
.fl { min-height: calc(100vh - var(--nav-h)); padding: 72px 20px 120px; outline: none; }
.fl-noscript { max-width: 560px; margin: 0 auto; padding: 28px; border-radius: 20px; background: #fff; text-align: center; color: var(--g700); }
.fl-card {
  width: 100%; max-width: 560px; margin: 0 auto; padding: 48px 48px 44px;
  border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 27, 55, .04), 0 16px 48px rgba(0, 27, 55, .07);
}
.fl-card--wide { max-width: 640px; }
.fl-in { animation: flIn .5s var(--ease) both; }
@keyframes flIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.fl-site { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 34px; margin-bottom: 20px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--blue-50); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--blue-deep); }
.fl-site svg { flex: none; width: 17px; height: 17px; }
.fl-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-h1 { font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.fl-sub { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--g700); }
.fl-sub, .st-sub, .em-p, .tbd-box span, .ok-keep span, .dm-note, .mb-t small, .pc-hint span, .fl-facts small { text-wrap: pretty; }
.fl-label { display: block; margin-bottom: 10px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-2); }

/* 입력칸: 메인 페이지 마지막 주소 입력칸(.ask2-box)과 같은 짜임. 흰 바탕 위라 테두리를 둔다 */
.fl-form { margin-top: 36px; }
.f-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--g300); transition: box-shadow .2s; }
.f-box:focus-within { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(49, 130, 246, .14); }
.f-box input { flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.f-box input::placeholder { color: var(--g500); font-weight: 400; }
.f-box button { flex: none; height: 54px; padding: 0 26px; border-radius: 15px; background: var(--blue-btn); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.f-box button:hover { background: var(--blue-btn-hover); }
.f-box button:active { transform: scale(.97); }
.f-box button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 15px; }
.f-box--sm { padding: 5px 5px 5px 16px; border-radius: 16px; }
.f-box--sm input { height: 46px; font-size: 16px; }
.f-box--sm button { height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15.5px; }
.f-box--sm button:focus-visible { border-radius: 12px; }
.f-box.is-shake { animation: shake .4s; }
.f-msg { min-height: 22px; margin-top: 10px; padding-left: 4px; font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--warn-text); }
.is-bad .f-box { box-shadow: inset 0 0 0 2px var(--warn); }
.is-bad .f-box:focus-within { box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 5px rgba(232, 118, 10, .14); }

/* 이메일 주소 입력 화면에서 알리는 두 가지 */
.fl-facts { margin-top: 18px; padding: 8px 20px; border-radius: 18px; background: var(--g50); }
.fl-facts li { display: flex; align-items: center; gap: 12px; padding: 13px 0; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.fl-facts li + li { border-top: 1px solid var(--g200); }
.fl-facts small { display: block; margin-top: 1px; font-size: 14.5px; font-weight: 400; color: var(--g600); }
.fl-facts li:has(small) { align-items: flex-start; }
.fl-facts li:has(small) svg { margin-top: 2px; }
.fl-facts svg { flex: none; width: 21px; height: 21px; color: var(--blue); }

.lnk { flex: none; padding: 6px 2px; font-size: 15px; font-weight: 600; color: var(--g700); text-decoration: underline; text-decoration-color: var(--g400); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.lnk:hover { color: var(--ink); text-decoration-color: var(--g600); }

/* ───────── 주인 확인 ───────── */
/* 접수 메일을 보낸 주소와 주소 고치기 */
.mb { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--g50); }
.mb-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--g600); box-shadow: inset 0 0 0 1px var(--g200); }
.mb-ic svg { width: 20px; height: 20px; }
.mb-t { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.mb-t b { font-weight: 600; color: var(--ink); }
.mb-t small { display: block; margin-top: 1px; font-size: 14px; color: var(--g600); }
/* 좁은 화면에서만: 쓰던 AI가 컴퓨터에 있는 사람에게 이어서 하는 길을 처음부터 알린다 */
.pc-hint { display: none; }
.mb--edit { display: block; padding: 18px 18px 14px; }
.mb--edit .fl-label { font-size: 14.5px; margin-bottom: 8px; }
.mb--edit .f-msg { min-height: 0; margin-top: 8px; }
.mb--edit .f-msg:empty { display: none; }
.mb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--g600); }
.mb-foot .lnk { font-size: 14.5px; }

/* 점검 동의 */
.ag { margin-top: 28px; }
.ck { display: flex; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ck-box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--g400); color: transparent; transition: background .2s, box-shadow .2s, transform .25s var(--ease); }
.ck-box svg { width: 16px; height: 16px; stroke-width: 3; }
.ck:hover .ck-box { box-shadow: inset 0 0 0 1.5px var(--blue); }
.ck input:checked + .ck-box { background: var(--blue); box-shadow: none; color: #fff; }
.ck input:focus-visible + .ck-box { outline: 3px solid rgba(49, 130, 246, .55); outline-offset: 3px; }
.ck:active .ck-box { transform: scale(.92); }
.ck-t { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.ag .tbd-box { margin: 10px 0 0 38px; }

/* 주인 확인 문장 */
.vs { margin-top: 28px; }
.vs-new { margin: -2px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--blue-50); font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--blue-deep); }
.vs-box { padding: 20px 20px 14px; border-radius: 18px; background: var(--g50); box-shadow: inset 0 0 0 1px var(--g200); transition: opacity .3s; }
.vs-say { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.vs-code { margin-top: 12px; padding: 11px 14px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--g200); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-all; }
.vs-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; padding-left: 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--g500); }
.vs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.vs-hint { font-size: 14.5px; line-height: 1.45; color: var(--g600); }
.cp { position: relative; flex: none; display: inline-grid; height: 46px; padding: 0 20px 0 16px; border-radius: 13px; background: var(--blue-btn); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em; transition: background .2s, transform .2s var(--ease), opacity .2s; }
.cp > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: opacity .2s, transform .3s var(--ease); }
.cp svg { width: 18px; height: 18px; }
.cp-b { opacity: 0; transform: translateY(6px); }
.cp.is-done { background: var(--ok-text); }
.cp.is-done .cp-a { opacity: 0; transform: translateY(-6px); }
.cp.is-done .cp-b { opacity: 1; transform: none; }
.cp:hover { background: var(--blue-btn-hover); }
.cp.is-done:hover { background: var(--ok-text); }
.cp:active { transform: scale(.97); }
.cp:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 13px; }
.cp[disabled] { background: var(--g200); color: var(--g500); cursor: default; transform: none; }
.vs.is-locked .vs-say, .vs.is-locked .vs-code, .vs.is-locked .vs-note { opacity: .45; }

/* 확인을 기다리는 중, 잘 안 돼요 */
.st { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-top: 22px; }
.st-wait { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid var(--g200); border-top-color: var(--blue); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-sub { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--g600); }
.hp { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--blue-50); font-size: 15px; line-height: 1.55; color: var(--ink-2); outline: none; overflow-wrap: anywhere; }
.hp svg { flex: none; width: 21px; height: 21px; margin-top: 1px; color: var(--blue-deep); }
.hp b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* ───────── 확인이 끝난 화면과 안내 화면 ───────── */
.fl-card--done { padding-top: 52px; text-align: center; }
.fl-card--done .fl-h1 { font-size: 32px; }
/* 확인 표시 둘레의 가는 동심원. 메인 페이지의 렌즈 무늬와 같은 문법이다 */
.ok-mark { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 30px auto 50px; border-radius: 50%; background: var(--blue); color: #fff; }
.ok-mark svg { width: 32px; height: 32px; }
.ok-mark i { position: absolute; left: 50%; top: 50%; width: 148px; height: 148px; margin: -74px 0 0 -74px; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle at 50% 50%, rgba(49, 130, 246, 0) 0 45px, rgba(49, 130, 246, .26) 45px 46px, rgba(49, 130, 246, 0) 46px 59px, rgba(49, 130, 246, .14) 59px 60px, rgba(49, 130, 246, 0) 60px 73px, rgba(49, 130, 246, .07) 73px 74px); }
.ok-mark--quiet { background: var(--g100); color: var(--g600); }
.ok-mark--quiet svg { width: 30px; height: 30px; }
.ok-mark--quiet i { background: repeating-radial-gradient(circle at 50% 50%, rgba(107, 118, 132, 0) 0 45px, rgba(107, 118, 132, .2) 45px 46px, rgba(107, 118, 132, 0) 46px 59px, rgba(107, 118, 132, .11) 59px 60px, rgba(107, 118, 132, 0) 60px 73px, rgba(107, 118, 132, .06) 73px 74px); }
.fl-in .ok-mark { animation: okPop .6s var(--ease) .12s both; }
.fl-in .ok-mark i { animation: okRing .9s ease-out .2s both; }
@keyframes okPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes okRing { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* "확인이 끝났어요." 바로 아래의 날짜 약속. 제목과 한 문장으로 읽히게 크게 둔다 */
.ok-due { margin-top: 8px; font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); text-wrap: balance; }
.ok-due b { font-weight: 700; color: var(--blue-deep); }
.ok-rows { margin-top: 32px; padding: 6px 20px; border-radius: 18px; background: var(--g50); text-align: left; }
.ok-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 16px; line-height: 1.5; }
.ok-rows div + div { border-top: 1px solid var(--g200); }
.ok-rows dt { flex: none; color: var(--g600); }
.ok-rows dd { min-width: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.ok-keep { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 0 6px; font-size: 15px; line-height: 1.55; color: var(--g700); text-align: left; }
.ok-keep svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--g500); }
.ok-keep + .ok-keep { margin-top: 8px; }
.fl-card--done .tbd-box { margin-top: 28px; text-align: left; }

/* ═════════ 여기부터는 제품 화면이 아닌 것 ═════════ */

/* "정해지는 중": 기획서에서 아직 정하지 않은 것의 자리. 점선 테두리로 제품 화면의 부품과 구분한다 */
.tbd { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px dashed #c08a2b; background: #fff8e8; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1; color: #8a5a00; white-space: nowrap; vertical-align: 1px; }
.tbd-box { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--g400); background: #fff; font-size: 14px; line-height: 1.55; color: var(--g600); }
.tbd-box .tbd { margin-top: 0; }
.tbd-box--flat { margin: 0; }

/* 받은 메일의 모습: 화면 전체를 어둡게 덮고 그 위에 메일 앱 창을 그린다. 제품의 글꼴 대신 시스템 글꼴을 쓴다 */
html.is-out { overflow: hidden; }
.out { position: fixed; inset: 0; z-index: 160; display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; gap: 16px; padding: 18px 20px 28px; background: rgba(9, 13, 22, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: auto; animation: outFade .3s both; }
.out[hidden] { display: none; }
@keyframes outFade { from { opacity: 0; } to { opacity: 1; } }
.out-cap { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 960px; min-height: 44px; padding: 6px 6px 6px 14px; border-radius: 13px; border: 1px dashed rgba(255, 255, 255, .45); background: #16181d; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 14px; line-height: 1.4; color: #cfd4dc; }
.out-cap i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f5b301; }
.out-cap span { flex: 1; min-width: 0; }
.out-cap b { margin-right: 8px; font-weight: 700; color: #fff; }
.out-cap button { flex: none; height: 32px; padding: 0 14px; border-radius: 9px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; color: #fff; transition: background .2s; }
.out-cap button:hover { background: rgba(255, 255, 255, .2); }
.out-cap button:focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; }

.mw { display: flex; flex-direction: column; width: 100%; max-width: 960px; min-height: 0; max-height: 720px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #1f2328; animation: mwIn .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mwIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.mw-bar { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #e9ebef; border-bottom: 1px solid #d5d9df; }
.mw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c5cad2; }
.mw-bar span { flex: 1; margin-right: 47px; text-align: center; font-size: 13px; font-weight: 600; color: #6a727d; }
.mw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.mw-list { padding: 14px 10px; background: #f4f5f7; border-right: 1px solid #e2e5e9; overflow: auto; }
.mw-list h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 4px 10px 12px; font-size: 13px; font-weight: 700; color: #6a727d; }
.mw-list h3 span + span { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #dfe3e8; font-size: 12px; text-align: center; }
.mw-item { display: block; width: 100%; padding: 12px 12px 13px; border-radius: 10px; text-align: left; font-size: 13.5px; line-height: 1.45; color: #5d6570; transition: background .2s; }
.mw-item + .mw-item { margin-top: 4px; }
.mw-item:hover { background: #eaedf1; }
.mw-item.is-on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 0 0 1px #dfe3e8; }
.mw-item b { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: #1f2328; }
.mw-item em { flex: none; padding: 1px 7px; border-radius: 6px; background: #e6eaef; font-size: 11.5px; font-weight: 600; color: #5d6570; }
.mw-item span { display: block; margin-top: 3px; font-weight: 600; color: #333a44; }
.mw-item small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-top: 2px; font-size: 13px; color: #7a828d; }
.mw-item:focus-visible { outline: 3px solid rgba(49, 130, 246, .55); outline-offset: -2px; }
.mw-read { min-width: 0; overflow: auto; background: #fff; }
.m-head { padding: 26px 32px 18px; border-bottom: 1px solid #eceef1; }
.m-subj { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.m-from { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: #6a727d; }
.m-from img { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.m-from p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.m-from b { margin-right: 8px; font-size: 14.5px; font-weight: 700; color: #1f2328; }
.m-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.m-meta time { font-size: 13px; white-space: nowrap; }
.m-who { padding: 3px 9px; border-radius: 7px; background: #f1f3f5; font-size: 12.5px; line-height: 1.5; font-weight: 600; color: #5d6570; }
.m-body { padding: 28px 32px 40px; background: #f4f5f7; min-height: calc(100% - 118px); }
/* 메일 본문: 메일 앱 안에 놓인 Z-Mate의 메일. 여기서부터는 다시 제품의 글꼴과 색이다 */
.em { max-width: 480px; margin: 0 auto; padding: 36px 36px 28px; border-radius: 20px; background: #fff; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 27, 55, .05); }
.em > img { height: 24px; width: auto; }
.em-t { margin-top: 28px; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.03em; }
.em-p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--g700); }
.em-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 26px; border-radius: 15px; background: var(--blue-btn); color: #fff; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; transition: background .2s, transform .2s var(--ease); }
.em-btn:hover { background: var(--blue-btn-hover); }
.em-btn:active { transform: scale(.98); }
.em-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 15px; }
.em-f { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--g200); font-size: 14px; line-height: 1.5; color: var(--g600); }
.em-f button { padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--g700); text-decoration: underline; text-decoration-color: var(--g400); text-underline-offset: 4px; }
.em-f button:hover { color: var(--ink); }
.em-file { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: var(--g50); box-shadow: inset 0 0 0 1px var(--g200); text-align: left; transition: background .2s; }
.em-file:hover { background: var(--g100); }
.em-file i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-50); color: var(--blue-deep); }
.em-file i svg { width: 21px; height: 21px; }
.em-file span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.em-file b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.em-pre { margin-top: 26px; }
.em-pre .em-btn { margin-top: 12px; }

/* 시연 조작판: 어두운 판에 노란 빗금 띠. 제품의 파란색과 섞이지 않게 노란색만 쓴다 */
.dm { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 13.5px; line-height: 1.45; color: #e9ecf1; word-break: keep-all; pointer-events: none; }
.dm > * { pointer-events: auto; }
.dm.is-away { display: none; }
.dm :focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; border-radius: 10px; }
.dm-q, .dm-pill { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 14px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .45); background: #16181d; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: background .2s, transform .15s; }
.dm-q:hover, .dm-pill:hover { background: #262a32; }
.dm-q:active, .dm-pill:active { transform: scale(.97); }
.dm-q { border: 0; box-shadow: inset 0 0 0 1.5px #f5b301, 0 10px 28px rgba(0, 0, 0, .28); }
.dm-pill i { width: 8px; height: 8px; border-radius: 50%; background: #f5b301; }
.dm-pill span { font-weight: 500; color: #cfd4dc; }
.dm-pill b { padding: 2px 8px; border-radius: 7px; background: rgba(245, 179, 1, .16); font-size: 12.5px; font-weight: 700; color: #f5b301; }
.dm-panel { position: relative; width: 288px; max-height: calc(100vh - 40px); overflow: auto; padding: 22px 14px 14px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .4); background: #16181d; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.dm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(135deg, #f5b301 0 8px, #16181d 8px 16px); }
.dm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px; }
.dm-head span { font-size: 12.5px; color: #9aa3af; }
.dm-head b { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.dm-head button { flex: none; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 600; color: #e9ecf1; }
.dm-head button:hover { background: rgba(255, 255, 255, .18); }
.dm-steps { margin: 14px 0 0; padding: 0; list-style: none; }
.dm-steps button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 8px; border-radius: 9px; text-align: left; font-size: 13.5px; font-weight: 500; color: #8f98a5; transition: background .2s; }
.dm-steps button:hover { background: rgba(255, 255, 255, .08); }
.dm-steps i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #4a515c; font-size: 11.5px; font-weight: 700; }
.dm-steps i svg { width: 12px; height: 12px; stroke-width: 3; }
.dm-steps .is-done button { color: #c3c9d2; }
.dm-steps .is-done i { background: #3a404a; box-shadow: none; color: #e9ecf1; }
.dm-steps .is-now button { background: rgba(245, 179, 1, .12); font-weight: 700; color: #fff; }
.dm-steps .is-now i { background: #f5b301; box-shadow: none; color: #16181d; }
.dm-note { margin-top: 10px; padding: 0 4px; font-size: 12.5px; line-height: 1.55; color: #aab2bd; }
.dm-panel h4 { margin: 16px 0 2px; padding: 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #f5b301; }
.dm-btn { display: flex; align-items: center; width: 100%; height: 38px; margin-top: 6px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: 13.5px; font-weight: 600; color: #fff; text-align: left; transition: background .2s; }
.dm-btn:hover { background: rgba(255, 255, 255, .18); }
.dm-btn[disabled] { opacity: .38; cursor: default; }
.dm-btn[disabled]:hover { background: rgba(255, 255, 255, .1); }
.dm-btn.is-next { box-shadow: inset 0 0 0 1.5px #f5b301; }
.dm-btn--ghost { justify-content: center; margin-top: 12px; background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #cfd4dc; }

/* 화면이 낮은 컴퓨터(높이 900 이하): 주인 확인 화면의 "복사" 단추가 스크롤 없이 보이도록 여백과 글자를 조금 줄인다 */
@media (min-width: 900px) and (max-height: 900px) {
  .fl { padding-top: 28px; padding-bottom: 96px; }
  .fl-card { padding: 34px 44px 34px; }
  .fl-site { height: 32px; margin-bottom: 14px; }
  .fl-h1 { font-size: 30px; }
  .fl-sub { margin-top: 10px; font-size: 16px; }
  .mb { margin-top: 20px; padding-block: 12px; }
  .ag { margin-top: 20px; }
  .ag .tbd-box { margin-top: 8px; padding-block: 9px; }
  .vs { margin-top: 20px; }
  .vs-box { padding: 16px 18px 12px; }
  .vs-say { font-size: 15.5px; line-height: 1.6; }
  .vs-code { margin-top: 10px; padding-block: 9px; }
  .vs-foot { margin-top: 10px; }
  .st { margin-top: 16px; }
  .fl-card--done { padding-top: 40px; }
}

/* ───────── 좁은 화면 ───────── */
@media (max-width: 899px) {
  /* 아래에 붙는 조작판 띠가 바닥글을 가리지 않게 그 높이만큼 비운다 */
  .fl-body { padding-bottom: 50px; }
  .fl { padding: 20px 12px 72px; }
  .fl-card { padding: 30px 22px 28px; border-radius: 22px; }
  .fl-site { height: 32px; margin-bottom: 16px; font-size: 14.5px; }
  .fl-h1 { font-size: 26px; }
  .fl-card--done { padding-top: 36px; }
  .fl-card--done .fl-h1 { font-size: 25px; }
  .fl-sub { margin-top: 10px; font-size: 16px; }
  .fl-form { margin-top: 28px; }
  .f-box { padding: 5px 5px 5px 16px; border-radius: 17px; }
  .f-box input { height: 50px; font-size: 16px; }
  .f-box button { height: 50px; padding: 0 18px; border-radius: 13px; font-size: 16px; }
  .fl-facts { padding: 6px 16px; }
  .fl-facts li { align-items: flex-start; font-size: 15px; }
  .fl-facts svg { margin-top: 1px; width: 20px; height: 20px; }
  .mb { align-items: flex-start; flex-wrap: wrap; margin-top: 24px; padding: 14px; }
  .mb-t { flex-basis: calc(100% - 50px); font-size: 15px; }
  .mb > .lnk { margin: -4px 0 -4px 50px; }
  .pc-hint { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
  .pc-hint svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--blue-deep); }
  .mb--edit { padding: 16px 14px 12px; }
  .mb-foot { flex-wrap: wrap; gap: 2px 12px; }
  .ag { margin-top: 24px; }
  .ck-t { font-size: 17px; }
  .ag .tbd-box { margin-left: 0; }
  .vs { margin-top: 24px; }
  .vs-box { padding: 16px 14px 12px; }
  .vs-say { font-size: 15.5px; }
  .vs-code { padding: 10px 12px; font-size: 12.5px; }
  .vs-note { padding-left: 12px; }
  .vs-hint { font-size: 13.5px; }
  .ok-mark { margin: 26px auto 44px; }
  .ok-rows { margin-top: 26px; padding: 4px 16px; }
  .ok-rows div { flex-direction: column; gap: 0; font-size: 15.5px; }
  .ok-rows dt { font-size: 14px; }
  .ok-rows dd { text-align: left; }
  .tbd-box { flex-direction: column; gap: 6px; }

  /* 받은 메일: 목록을 위에, 읽는 창을 아래에 */
  .out { padding: 10px 10px 16px; gap: 10px; }
  .out-cap { font-size: 13px; }
  .out-cap b { display: block; margin: 0; }
  .mw { max-height: none; border-radius: 12px; }
  .mw-body { display: block; overflow: auto; }
  .mw-list { padding: 10px 8px; border-right: 0; border-bottom: 1px solid #e2e5e9; overflow: visible; }
  .mw-list h3 { padding: 2px 8px 8px; }
  .mw-item { padding: 9px 10px 10px; }
  .mw-item small { display: none; }
  .mw-read { overflow: visible; }
  .m-head { padding: 20px 18px 14px; }
  .m-subj { font-size: 19px; }
  .m-from { flex-wrap: wrap; }
  .m-meta { flex-direction: row; align-items: center; gap: 8px; width: 100%; padding-left: 48px; }
  .ok-due { font-size: 18px; }
  .m-body { padding: 16px 10px 24px; min-height: 0; }
  .em { padding: 28px 22px 22px; border-radius: 18px; }
  .em-t { margin-top: 24px; font-size: 20px; }
  .em-p { font-size: 15.5px; }

  /* 시연 조작판: 화면 아래의 얇은 띠. 펼치면 띠 위로 판이 올라온다 */
  .dm { left: 0; right: 0; bottom: 0; }
  .dm--pill { flex-direction: row; align-items: center; justify-content: flex-end; gap: 6px; height: 50px; padding: 0 8px; background: #16181d; border-top: 1px dashed rgba(255, 255, 255, .5); pointer-events: auto; }
  .dm--pill .dm-q, .dm--pill .dm-pill { flex: none; height: 34px; border-radius: 9px; font-size: 13px; box-shadow: none; }
  .dm--pill .dm-q { order: 2; padding: 0 12px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #f5b301; }
  .dm--pill .dm-pill { order: 1; margin-right: auto; padding: 0 6px; border: 0; background: none; }
  .dm--open { padding: 8px; }
  .dm-panel { width: 100%; max-height: calc(100svh - 16px); }
}
@media (max-width: 359px) {
  .f-box button { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none !important; border-top-color: var(--blue); }
}
