/* ─────────────────────────────────────────────────────────────
   DeskForm 손님 화면 — 폼(견적서 · 주문서 · 폼메일) · 접수 완료 · 견적서 인쇄 · 목록
   폼마다 바꾸는 값(--fm-accent · --fm-width · 글꼴 크기)은 화면이 :root 에 덧씌운다
   ───────────────────────────────────────────────────────────── */
@font-face{font-family:'Paperlogy';src:url('../fonts/Paperlogy-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}

:root {
  --fm-accent: #036EB7;
  --fm-accent-dark: #02588F;
  --fm-accent-soft: #E6F1FA;
  --fm-width: 860px;
  --fm-font-size: 15px;
  --ink: #1D2329;
  --ink-2: #545B63;
  --ink-3: #6B7280;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --line: #E2E6EA;
  --line-strong: #C9CFD5;
  --danger: #C42B2B;
  --ok: #2B7A3D;
  --radius: 12px;
  --font: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 110px; scroll-padding-top: 16px; }   /* 아래에 붙은 합계 · 보내기 줄이 칸을 가리지 않게(Tab 이동 · 오류 칸으로 스크롤) */
body.fm-site { margin: 0; min-height: 100vh; background: var(--bg); font-family: var(--font); font-size: var(--fm-font-size); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
body.fm-site.is-embed { background: transparent; min-height: 0; }   /* iframe 높이를 따라 늘지 않게 — 알려 주는 높이가 제자리를 돈다 */
a { color: var(--fm-accent); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fm-accent); outline-offset: 2px; }

.fwrap { max-width: var(--fm-width); margin: 0 auto; padding: 24px 16px 120px; }
.is-embed .fwrap { padding-top: 8px; }
.fwrap--narrow { max-width: 440px; }

/* 손님 계정 — 로그인한 사람 띠 · 로그인 · 내 계정 */
.fwho { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9em; color: var(--ink-2); }
.fwho > span { flex: 1; min-width: 0; }
.fwho b { color: var(--ink); }
.fwho a, .fwho button { padding: 0; border: 0; background: none; color: var(--fm-accent); font: inherit; text-decoration: none; cursor: pointer; }
.fwho a:hover, .fwho button:hover { text-decoration: underline; }
.fwho form { margin: 0; }
.flogin .fbtn { width: 100%; margin-top: 4px; }
.flogin__foot { margin: 14px 0 0; text-align: center; font-size: .88em; color: var(--ink-3); }

/* 머리 */
.fhead { margin-bottom: 16px; }
.fhead__img img { display: block; width: 100%; border-radius: var(--radius); }
.fhead__title { margin: 14px 0 4px; font-size: 1.6em; line-height: 1.3; letter-spacing: -.03em; }
.fhead__kind { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--fm-accent-soft); color: var(--fm-accent); }
.fmsg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; color: var(--ink-2); }
.fmsg p:first-child { margin-top: 0; } .fmsg p:last-child { margin-bottom: 0; }

/* 묶음 카드 */
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.fcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fcard__head h2 { margin: 0; font-size: 1.05em; letter-spacing: -.02em; }
.fcard__head small { color: var(--ink-3); font-size: 13px; }
.fcard__body { padding: 16px 18px; }

/* 품목 — 한 줄에 하나(카드). PC 는 표처럼 칸을 맞춘다 */
.fitems { list-style: none; margin: 0; padding: 0; }
.fitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; }
.fitem:first-child { border-top: 0; }
.fitem.is-picked { background: #FAFCFE; }
.fitem.is-group { display: block; background: #F7F9FA; padding: 10px 18px; font-weight: 700; color: var(--ink-2); font-size: .93em; }
.fitem__main { min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.fitem__img { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #F1F3F5; cursor: zoom-in; }
.fitem__name { font-weight: 700; letter-spacing: -.01em; }
.fitem__name .req { color: var(--danger); margin-left: 2px; font-weight: 400; }
.fitem__desc { font-size: .87em; color: var(--ink-3); margin-top: 2px; white-space: pre-line; }
.fitem__price { font-size: .87em; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fitem__price s { color: var(--ink-3); margin-right: 4px; }
.fitem__ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.fitem__opts { grid-column: 1 / -1; display: grid; gap: 8px; }
.fitem__sum { min-width: 96px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fitem__sum.is-zero { color: var(--ink-3); font-weight: 400; }
.fitem.has-err { background: #FFF6F6; }
.fitem__err { grid-column: 1 / -1; color: var(--danger); font-size: .87em; }

/* 수량 */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: #F7F8FA; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); }
.qty button:hover { background: #EEF1F4; }
.qty input { width: 56px; height: 40px; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-unit { font-size: .87em; color: var(--ink-3); }

/* 입력칸 */
.ffield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ffield:last-child { margin-bottom: 0; }
.ffield__label { font-weight: 700; font-size: .93em; }
.ffield__label .req { color: var(--danger); margin-left: 2px; font-weight: 400; }
.ffield__hint { font-size: .85em; color: var(--ink-3); }
.ffield__err { font-size: .85em; color: var(--danger); }
.fgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.finput, .fselect, .ftextarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s; }
.finput:focus, .fselect:focus, .ftextarea:focus { border-color: var(--fm-accent); box-shadow: 0 0 0 3px var(--fm-accent-soft); }
.finput[readonly] { background: #F7F8FA; }
.finput.is-bad, .fselect.is-bad, .ftextarea.is-bad { border-color: var(--danger); }
.ftextarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.fselect { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.fitem .fselect, .fitem .finput { min-height: 40px; }
.fchoices { display: flex; flex-wrap: wrap; gap: 8px; }
.fchoice { position: relative; }
.fchoice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fchoice span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; font-size: .93em; transition: all .15s; }
.fchoice span small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fchoice input:checked + span { border-color: var(--fm-accent); background: var(--fm-accent-soft); color: var(--fm-accent-dark); font-weight: 700; }
.fchoice input:focus-visible + span { outline: 2px solid var(--fm-accent); outline-offset: 2px; }
.fchoice input:disabled + span { opacity: .45; cursor: not-allowed; }
.fcheck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--fm-accent); }
.faddr { display: grid; grid-template-columns: 140px auto; gap: 8px; }
.faddr .full { grid-column: 1 / -1; }
.ffile { display: flex; flex-direction: column; gap: 6px; }
.ffile input[type=file] { padding: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #FAFBFC; width: 100%; }

/* 약관 */
.fterms { max-height: 160px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFC; font-size: .87em; color: var(--ink-2); margin-bottom: 10px; }

/* 합계 · 보내기 — 아래에 붙어 있다 */
.fbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(29,35,41,.06); }
.is-embed .fbar { position: sticky; }
.fbar__in { max-width: var(--fm-width); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.fbar__sum { flex: 1; min-width: 0; }
.fbar__sum small { display: block; font-size: 12.5px; color: var(--ink-3); }
.fbar__sum b { font-size: 1.35em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fbar__sum em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 6px; }
.fsumrows { margin: 0; padding: 0; list-style: none; }
.fsumrows li { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.fsumrows li.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.1em; }

.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 1em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.fbtn--primary { background: var(--fm-accent); color: #fff; }
.fbtn--primary:hover { background: var(--fm-accent-dark); color: #fff; }
.fbtn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.fbtn--ghost:hover { background: #F7F8FA; color: var(--ink); }
.fbtn--sm { height: 40px; padding: 0 14px; font-size: .9em; border-radius: 10px; }
.fbtn:disabled { opacity: .5; cursor: not-allowed; }
.fbtn img { max-height: 46px; }
.fbtn--img { padding: 0; border: 0; background: none; height: auto; }

.falert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid #FECACA; background: #FEF2F2; color: #B91C1C; font-size: .93em; }
.falert.ok { border-color: #BFDBF2; background: #EEF5FC; color: var(--fm-accent-dark); }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 큰 그림 보기 */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.zoom::backdrop { background: rgba(10,14,18,.75); }
dialog.zoom img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* 예약 달력 */
.cal { user-select: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__head b { font-size: 1.05em; }
.cal__nav { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.cal__dow:first-child { color: var(--danger); }
.cal__day { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; padding: 0; }
.cal__day small { font-size: 10.5px; color: var(--ink-3); }
.cal__day:hover:not(:disabled) { border-color: var(--fm-accent); }
.cal__day:disabled { background: #F4F5F7; color: #B5BBC2; cursor: not-allowed; }
.cal__day.is-sun { color: var(--danger); }
.cal__day.is-on { background: var(--fm-accent); border-color: var(--fm-accent); color: #fff; }
.cal__day.is-on small { color: #DCEBF7; }
.cal__day.is-full small { color: var(--danger); }
.cal__blank { visibility: hidden; }
.cal__times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cal__picked { margin-top: 10px; font-weight: 700; color: var(--fm-accent-dark); }

/* 접수 완료 */
.done { text-align: center; padding: 48px 20px 24px; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--fm-accent-soft); color: var(--fm-accent); display: grid; place-items: center; }
.done h1 { margin: 0 0 8px; font-size: 1.5em; letter-spacing: -.03em; }
.done p { margin: 0 0 6px; color: var(--ink-2); }
.done__no { display: inline-block; margin: 12px 0 18px; padding: 8px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
.done__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* 공개 목록(폼 목록 · 최근 접수) */

/* 오류 */
.err { max-width: 420px; margin: 18vh auto 0; text-align: center; padding: 0 20px; }
.err__code { font-size: 56px; font-weight: 700; color: var(--fm-accent); margin: 0; letter-spacing: -.04em; }
.err__msg { color: var(--ink-2); margin: 6px 0 22px; }

@media (max-width: 640px) {
  :root { --fm-font-size: 15px; }
  .fwrap { padding: 14px 12px 120px; }
  .fhead__title { font-size: 1.35em; }
  .fitem { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .fitem__ctl { justify-content: space-between; }
  .fcard__head, .fcard__body { padding-left: 14px; padding-right: 14px; }
  .fgrid2 { grid-template-columns: minmax(0, 1fr); }
  .faddr { grid-template-columns: minmax(0, 1fr) auto; }
  .fbar__in { padding: 10px 12px; }
  .fbtn { height: 48px; padding: 0 18px; }
}

/* ═════════ 견적서 · 주문서 인쇄(A4) ═════════ */
body.sheet-page { background: #E9ECEF; margin: 0; font-family: var(--font); color: #111; }
.sheet-tools { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; justify-content: center; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.sheet { width: 210mm; min-height: 297mm; margin: 16px auto; padding: 16mm 14mm; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.08); font-size: 12.5px; line-height: 1.5; }
.sheet h1 { text-align: center; font-size: 26px; letter-spacing: .6em; margin: 0 0 18px; padding-left: .6em; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { border: 1px solid #333; padding: 5px 7px; }
.sheet th { background: #F2F4F6; font-weight: 700; white-space: nowrap; }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .center { text-align: center; }
.sheet-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-bottom: 10px; align-items: stretch; }
.sheet-to td { border: 0; border-bottom: 1px solid #999; padding: 6px 2px; }
.sheet-to .big { font-size: 17px; font-weight: 700; }
.sheet-sup th { width: 26px; line-height: 1.9; text-align: center; }
.sheet-sup .lbl { width: 62px; background: #F7F8F9; text-align: center; white-space: nowrap; }
.sheet-sign { position: relative; }
.sheet-sign img { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); height: 46px; opacity: .9; }
.sheet-total { margin: 10px 0; border: 2px solid #333; }
.sheet-total td { border: 0; padding: 9px 12px; font-size: 14px; }
.sheet-total b { font-size: 16px; }
.sheet-items th { text-align: center; }
.sheet-items tfoot td { font-weight: 700; background: #FAFBFB; }
.sheet-note { margin-top: 10px; white-space: pre-line; }
.sheet-foot { margin-top: 14px; font-size: 11.5px; color: #555; }
@media print {
  body.sheet-page { background: #fff; }
  .sheet-tools { display: none; }
  .sheet { margin: 0; box-shadow: none; width: auto; min-height: 0; padding: 0; }
  @page { size: A4; margin: 14mm 12mm; }
}
@media (max-width: 820px) {
  .sheet { width: auto; min-height: 0; margin: 8px; padding: 14px; }
  .sheet-top { grid-template-columns: minmax(0, 1fr); }
}

/* ═════════ 칸 배치 · 품목 고르기 ═════════ */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fflow > .ffield { grid-column: 1 / -1; margin-bottom: 16px; }
.fflow > .ffield.is-half { grid-column: auto; }
.fflow > .ffield:last-child { margin-bottom: 0; }
.ffield.has-err .finput, .ffield.has-err .fselect, .ffield.has-err .ftextarea { border-color: var(--danger); }
.ffield__hint p { margin: 0; }
.row2 { display: flex; align-items: center; gap: 8px; }
.row2 .finput { flex: 1; min-width: 0; }
.fgroup { display: grid; gap: 8px; }
.fgroup .ffield { margin: 0; }
.fcard__title { font-weight: 700; }
.fcard__title p { margin: 0; }
.fcard__head--sec { background: #FAFBFC; }
.fitem__pick input { width: 22px; height: 22px; accent-color: var(--fm-accent); margin: 2px 0 0; cursor: pointer; }
.fitem__main > .fitem__pick { flex: none; }
.fitem__optlabel { display: grid; gap: 6px; font-size: .9em; color: var(--ink-2); }
.fitem__optlabel .req { color: var(--danger); }
.fcompany { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; padding: 14px 6px; font-size: 12.5px; color: var(--ink-3); }
.fcompany b { color: var(--ink-2); margin-right: 3px; }
.fdetail { display: flow-root; margin-bottom: 14px; }
.fdetail img { border-radius: 8px; max-width: 100%; cursor: zoom-in; }
.fdetail--left img { float: left; max-width: 45%; margin: 0 16px 8px 0; }
.fdetail--right img { float: right; max-width: 45%; margin: 0 0 8px 16px; }
.fboard { width: 100%; border-collapse: collapse; font-size: .93em; }
.fboard th { text-align: left; padding: 12px 14px; background: #FAFBFC; color: var(--ink-3); font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fboard td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fboard__empty { text-align: center; color: var(--ink-3); padding: 40px !important; }
.fst { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.fst::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.pager .is-on { background: var(--fm-accent); border-color: var(--fm-accent); color: #fff; }

/* ═════════ 사이트 틀(레이아웃편집) ═════════ */
.fhdr { background: #fff; border-bottom: 1px solid var(--line); }
.fhdr__in { max-width: 1200px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fhdr__logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.fhdr__logo img { display: block; max-height: 40px; width: auto; }
.fhdr__menu ul { list-style: none; display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 0; padding: 0; }
.fhdr__menu a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.fhdr__menu a:hover { color: var(--fm-accent); }
.fhdr__custom { max-width: 1200px; margin: 0 auto; padding: 0 16px 10px; }
.fbody { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 16px; }
.fbody.has-left { grid-template-columns: 220px minmax(0, 1fr); }
.fbody.has-right { grid-template-columns: minmax(0, 1fr) 200px; }
.fbody.has-left.has-right { grid-template-columns: 220px minmax(0, 1fr) 200px; }
.fbody > .fmain .fwrap { padding-left: 0; padding-right: 0; }
.fside { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.fside__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.fside__box h3 { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.fside__box p { margin: 0; }
.fside__menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fside__menu a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.fside__menu a:hover { background: #F5F7F9; color: var(--fm-accent); }
.fside__tel a { font-size: 20px; font-weight: 800; color: var(--fm-accent); text-decoration: none; }
.ffoot { border-top: 1px solid var(--line); background: #fff; margin-top: 24px; padding: 8px 16px 20px; }
.ffoot__custom { max-width: 1200px; margin: 0 auto; text-align: center; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .fbody, .fbody.has-left, .fbody.has-right, .fbody.has-left.has-right { grid-template-columns: minmax(0, 1fr); }
  .fside { padding-top: 0; order: 3; }
}
@media (max-width: 640px) {
  .fflow { grid-template-columns: minmax(0, 1fr); }
  .fdetail--left img, .fdetail--right img { float: none; max-width: 100%; margin: 0 0 8px; }
  .fboard th:nth-child(1), .fboard td:nth-child(1) { display: none; }
}

/* 단나누기 — 카드 사이의 제목 */
.fsec { margin: 22px 2px 10px; font-size: 1.05em; font-weight: 700; color: var(--ink); }
.fsec p { margin: 0; }
.fsec:first-child { margin-top: 4px; }
.fitem__optlabel > span:first-child { display: inline-flex; gap: 2px; }

/* 첫 화면 · 손님 로그인 · 내 계정 — 관리자 로그인과 같은 배경 그림(assets/img/login-bg.webp) 위에 흰 판을 가운데 */
body.fm-site.is-cover { display: flex; flex-direction: column; background: #023A66 url('../img/login-bg.webp') center / cover no-repeat fixed; }
.is-cover .fbody { flex: 1; width: 100%; align-content: center; }
.is-cover .fwrap--narrow, .is-cover .fbody > .fmain .fwrap--narrow { margin: 40px auto; padding: 26px 26px 22px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,22,44,.38), 0 2px 6px rgba(0,22,44,.12); }
.is-cover .flogin--bare { border: 0; margin: 0; overflow: visible; }
.is-cover .flogin--bare .fcard__body { padding: 0; }
.is-cover .fwrap--narrow .fhead__title { margin-top: 0; }
.is-cover .done { padding: 20px 8px 8px; }
.is-cover .ffoot { margin-top: 0; }
@media (max-width: 560px) { .is-cover .fwrap--narrow, .is-cover .fbody > .fmain .fwrap--narrow { margin: 20px 12px; padding: 20px 16px 16px; } }

