/* 현장대장 — 공사 칠판 녹색 + 안전 노랑. 큰 글씨·큰 버튼 중심 */
:root {
  --bg: #f1f2ef; --surface: #fff; --line: #e1e4df; --line2: #cbd1ca;
  --text: #1b1f1d; --muted: #5c6660; --primary: #1f4d3a; --primary-d: #173b2c; --primary-l: #e5efe9;
  --safety: #f2b705; --safety-d: #d9a404;
  --ok: #1f7a46; --ok-l: #e3f2e8; --warn: #a15c07; --warn-l: #fdf3df; --err: #b42318; --err-l: #fdecea;
  --board: #1f4d3a; --r: 12px; --r-s: 8px; --shadow: 0 1px 2px rgba(27,31,29,.05);
  --focus: rgba(31,77,58,.35);
  --side: 236px; --font: "Pretendard Variable", "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h2 small { font-size: 14px; font-weight: 400; }
h3 { font-size: 16px; margin: 16px 0 8px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ico { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); } .center { text-align: center; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hint { color: var(--muted); font-size: 15px; background: #f6f7f4; border-left: 3px solid var(--line2); padding: 8px 12px; border-radius: 4px; margin: 0 0 14px; }
.spacer { flex: 1; }

/* 레이아웃 */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side); background: #fbfbfa; border-right: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 14px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--board); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; box-shadow: inset 0 0 0 3px var(--board), inset 0 0 0 4.5px rgba(255,255,255,.75); }
.side nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #3b443f; font-size: 16.5px; font-weight: 500; }
.side nav a .ico { color: #7a847e; }
.side nav a:hover { background: #eef0ec; text-decoration: none; }
.side nav a.on { background: var(--primary-l); color: var(--primary); font-weight: 700; }
.side nav a.on .ico { color: var(--primary); }
.nav-group { font-size: 13px; color: #5c6660; font-weight: 600; padding: 14px 12px 4px; }
.side-foot { padding: 14px 18px 20px; border-top: 1px solid var(--line); font-size: 14.5px; display: flex; flex-direction: column; gap: 0; }
.side-foot a, .side-foot .linkbtn { color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.me { display: flex; flex-direction: column; } .me strong { color: var(--text); } .me small { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn .ico { width: 18px; height: 18px; }
.main { flex: 1; margin-left: var(--side); min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(241,242,239,.92); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 22px; letter-spacing: -.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.content { padding: 22px 28px 60px; max-width: 1280px; }
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.scrim { display: none; }
.tabbar { display: none; }

/* 카드 · 그리드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 760px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-main > * { margin-bottom: 0; } .grid-main > aside > .card, .grid-main > div > .card { margin-bottom: 18px; }
.grid-main + .card, .grid-main + .grid-main { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--text); font: 600 16.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: #f5f7fa; text-decoration: none; border-color: #b9c2ce; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .slot:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: transparent; }
.btn.safety { background: var(--safety); border-color: var(--safety-d); color: #1b1f1d; font-weight: 800; }
.btn.safety:hover { background: var(--safety-d); }
.btn.danger { color: var(--err); border-color: #f0c2c2; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14.5px; border-radius: 8px; }
.btn.lg { min-height: 56px; padding: 0 24px; font-size: 17.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 20px; }
.iconbtn:hover { background: #f3f5f8; color: var(--text); text-decoration: none; }
.iconbtn.danger:hover { color: var(--err); border-color: #f0c2c2; }
.iconbtn .ico { width: 20px; height: 20px; }
form.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.actions.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 18px 0 4px; }

/* 폼 */
.form label { display: block; font-size: 15px; font-weight: 600; color: #384252; margin-bottom: 14px; }
.form label em { color: var(--err); font-style: normal; }
input, select, textarea { font: 17px var(--font); color: var(--text); width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; margin-top: 6px; }
textarea { min-height: 90px; line-height: 1.55; resize: vertical; }
input:disabled, fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select { background: #f3f5f8; color: var(--muted); }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--primary); flex: none; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
legend { font-weight: 800; font-size: 17px; margin-bottom: 10px; padding: 0; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--primary); list-style: none; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '▸'; transition: transform .15s; } details[open] > summary::before { transform: rotate(90deg); }
details > *:not(summary) { margin-top: 12px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-form input { width: auto; flex: 1 1 140px; margin: 0; }
.inline-form .w-s { flex: 0 0 70px; }
.w-m { max-width: 140px; }

/* 툴바 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.picker select, .picker input { margin: 0; min-width: 220px; font-weight: 700; }
.picker { margin: 0; }
.search { margin: 0; } .search input { margin: 0; min-width: 240px; }
.search.wide { margin-bottom: 14px; } .search.wide input { width: 100%; }
.seg { display: inline-flex; background: #e8ecf1; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { padding: 9px 14px; border-radius: 8px; color: var(--muted); font: 600 15.5px var(--font); border: 0; background: none; cursor: pointer; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg .on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.seg b { color: var(--primary); margin-left: 2px; }
.stat-inline { color: var(--muted); font-size: 15.5px; } .stat-inline b { color: var(--text); }
.monthnav { display: inline-flex; align-items: center; gap: 8px; } .monthnav b { min-width: 110px; text-align: center; font-size: 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; font-size: 16.5px; }
.tabs a.on { color: var(--primary); border-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.more { margin-left: auto; font-size: 15px; font-weight: 600; }

/* 배지 · 알림 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: #eef1f5; color: #475467; white-space: nowrap; }
.badge .ico { width: 15px; height: 15px; }
.badge.ok, .s-active, .r-approved { background: var(--ok-l); color: var(--ok); }
.s-planned, .r-submitted { background: var(--warn-l); color: var(--warn); }
.s-done { background: #eceef2; color: #475467; }
.r-draft { background: var(--primary-l); color: var(--primary); }
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; border: 1px solid; }
.flash.ok { background: var(--ok-l); color: #11602f; border-color: #bfe3cb; }
.flash.err { background: var(--err-l); color: #8f1515; border-color: #f2c4c4; }
.flash.warn { background: var(--warn-l); color: #7a3e06; border-color: #f2d8ae; }
.flash a { margin-right: 10px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state.big { padding: 70px 16px; }
.empty-state h2 { justify-content: center; color: var(--text); font-size: 22px; }
.empty-state p { max-width: 520px; margin: 8px auto 22px; }
.empty-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--primary-l); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; font-weight: 800; }
.empty-icon .ico { width: 36px; height: 36px; }
.danger-zone { margin-top: 30px; text-align: right; }

/* 표 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { font-size: 14px; color: var(--muted); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl.compact th, .tbl.compact td { padding: 8px 6px; font-size: 15.5px; }
.tbl.compact th { color: var(--muted); font-weight: 600; }
.tbl tr.sum th, .tbl tr.sum td { font-weight: 800; border-top: 2px solid var(--line2); }
.tbl tr.off td { color: #9aa4b2; }
.tbl th.r, .tbl td.r { text-align: right; }

/* 공사 */
.pcard { color: inherit; display: block; margin: 0; transition: border-color .15s, transform .15s; }
.pcard:hover { text-decoration: none; border-color: #a8b8d8; transform: translateY(-1px); }
.pcard h3 { color: var(--text); font-size: 19px; margin: 10px 0 4px; }
.pcard p { margin: 0 0 12px; font-size: 15px; }
.pcard-top { display: flex; gap: 6px; }
.mini { margin: 0 0 12px; display: grid; gap: 4px; font-size: 15px; }
.mini div { display: flex; gap: 10px; } .mini dt { color: var(--muted); width: 72px; flex: none; } .mini dd { margin: 0; }
.bar { height: 10px; background: #e7ebf0; border-radius: 99px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; min-width: 0; }
.bar.ok i { background: var(--ok); } .bar.warn i { background: #d97706; }
.meter { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15.5px; }
.meter b { text-align: right; }
.info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.info div { display: flex; flex-direction: column; } .info dt { font-size: 14px; color: var(--muted); } .info dd { margin: 0; font-weight: 600; }
.info.roles { grid-template-columns: 1fr; margin-top: 18px; font-size: 15px; } .info.roles div { flex-direction: row; gap: 12px; } .info.roles dt { width: 70px; flex: none; } .info.roles dd { font-weight: 400; }
.memo { background: #f7f9fb; padding: 12px 14px; border-radius: 8px; margin: 16px 0 0; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.qbtn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text); box-shadow: var(--shadow); }
.qbtn:hover { text-decoration: none; border-color: var(--primary); }
.qbtn .ico { width: 30px; height: 30px; color: var(--primary); margin-bottom: 6px; }
.qbtn b { font-size: 17.5px; } .qbtn small { color: var(--muted); font-size: 14.5px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.list a { color: var(--text); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feed li { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-size: 15.5px; }
.feed time { margin-left: auto; color: var(--muted); font-size: 13.5px; }

/* 사진대장 */
.addspot summary, .addrec summary { font-size: 17px; }
.addrec > summary::before { content: none; } .addrec summary .ico { width: 20px; height: 20px; } .addspot summary .ico { width: 20px; height: 20px; }
.addspot > summary::before { content: none; }
details.sub { margin-top: 6px; } details.sub summary { font-size: 15.5px; color: var(--muted); }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.spot.done { border-color: #b7dcc4; }
.spot header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.spot-no { width: 34px; height: 34px; border-radius: 9px; background: #edf1f7; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; color: #344054; }
.spot.done .spot-no { background: var(--ok-l); color: var(--ok); }
.spot-title { flex: 1; min-width: 0; color: var(--text); display: flex; flex-direction: column; }
.spot-title b { font-size: 17px; } .spot-title small { color: var(--muted); font-size: 14.5px; }
.spot-move { display: flex; gap: 4px; } .spot-move .iconbtn { width: 36px; height: 36px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.slot.empty { border: 2px dashed #b9c4d3; background: #f7f9fc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--primary); font: 700 16px var(--font); cursor: pointer; padding: 6px; width: 100%; }
.slot.empty:hover { background: var(--primary-l); border-color: var(--primary); }
.slot.empty .ico { width: 30px; height: 30px; }
.slot.empty small { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.slot.has { background: #dfe4ea; }
.slot.has a { display: block; height: 100%; }
.slot.has img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-label { position: absolute; left: 6px; top: 6px; background: rgba(15,23,42,.72); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.more-n { position: absolute; right: 6px; top: 6px; background: rgba(15,23,42,.72); color: #fff; font-size: 13px; padding: 2px 7px; border-radius: 6px; }
.slot-add { position: absolute; right: 6px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.slot-add .ico { width: 20px; height: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery figure.main { border: 2px solid var(--ok); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #dfe4ea; }
.gallery figcaption { display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 14px; }
.gallery figcaption .muted { margin-right: auto; }
.gallery .slot.empty { aspect-ratio: auto; min-height: 165px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.outbtns { display: grid; gap: 10px; margin: 8px 0 14px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #dfe4ea; }

/* 촬영 모달 */
body.modal-open { overflow: hidden; }
.cam-modal { position: fixed; inset: 0; background: rgba(10,15,25,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cam-modal[hidden] { display: none; }
.cam-box { background: #fff; border-radius: 16px; width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.cam-box > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.cam-box > header b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-body { padding: 18px; overflow-y: auto; flex: 1; }
.cam-box > footer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); justify-content: flex-end; }
.cam-box > footer .btn { flex: 1; max-width: 260px; }
.cam-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bigpick { border: 2px solid var(--line2); border-radius: 14px; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 18px; background: #f8fafc; }
.bigpick.primary { border-color: var(--primary); background: var(--primary-l); color: var(--primary); }
.bigpick small { color: var(--muted); font-size: 14px; }
.bp-ico { font-size: 44px; line-height: 1; }
.cam-preview canvas { width: 100%; height: auto; max-height: 46vh; object-fit: contain; border-radius: 10px; background: #111; display: block; }
.cam-count { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.cam-opts { margin-top: 14px; }
.cam-opts label { display: block; font-size: 14.5px; font-weight: 600; color: #384252; margin-bottom: 10px; }
.cam-opts label.check.big { font-size: 17px; display: flex; margin-bottom: 14px; }
.cam-opts input { min-height: 46px; }
.board-fields { transition: opacity .15s; }
.seg-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg-row > span { font-size: 14.5px; font-weight: 600; color: #384252; width: 72px; }
.cam-progress { margin-top: 12px; } .cam-progress p { margin: 8px 0 0; font-weight: 600; }

/* 작업일보 달력 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-weight: 700; color: var(--muted); font-size: 14.5px; padding: 4px; }
.cal-d { min-height: 96px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; color: var(--text); font-size: 13.5px; }
.cal-d:hover { border-color: var(--primary); text-decoration: none; }
.cal-d.blank { background: transparent; border: 0; }
.cal-d .dn { font-weight: 800; font-size: 16px; }
.cal-d.sun .dn { color: #c2410c; } .cal-d.sat .dn { color: #1d5fa8; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-d .badge { font-size: 12px; padding: 2px 6px; align-self: flex-start; }
.cal-d small { color: var(--muted); } .cal-d .md { color: var(--ok); font-weight: 700; }

/* 출역 */
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.att { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.att.on { border-color: var(--primary); background: var(--primary-l); }
.att-main { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; min-width: 0; padding: 4px 0; }
.att-name { display: flex; flex-direction: column; min-width: 0; } .att-name b { font-size: 17.5px; } .att-name small { color: var(--muted); font-size: 14px; }
.att select { width: 76px; margin: 0; padding: 6px 8px; }
.att input.w-m { width: 110px; margin: 0; text-align: right; }
.grid-att th, .grid-att td { padding: 8px 4px; font-size: 14px; text-align: center; }
.grid-att .stick { position: sticky; left: 0; background: #fff; text-align: left; z-index: 1; white-space: nowrap; padding-left: 8px; }
.grid-att thead .stick { background: #f8fafc; }
.grid-att td.mk { color: var(--primary); font-weight: 800; }
.grid-att th.sun a { color: #c2410c; } .grid-att th.sat a { color: #1d5fa8; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 15px; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 대시보드 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: var(--text); box-shadow: var(--shadow); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.kpi:hover { text-decoration: none; border-color: var(--primary); }
.kpi small { width: 100%; color: var(--muted); font-size: 15px; font-weight: 600; }
.kpi b { font-size: 34px; letter-spacing: -.5px; line-height: 1.2; } .kpi span { color: var(--muted); }
.kpi.alert { border-color: #f2d8ae; background: var(--warn-l); } .kpi.alert b { color: var(--warn); }
.todo-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(140px, .8fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.todo-row:last-child { border: 0; }
.todo-name { color: var(--text); display: flex; flex-direction: column; min-width: 0; } .todo-name b { font-size: 17px; } .todo-name small { color: var(--muted); }
.todo-prog { display: flex; flex-direction: column; gap: 4px; } .todo-prog small { color: var(--muted); font-size: 13.5px; }
.todo-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line2); color: var(--text); font-weight: 600; font-size: 15px; background: #fff; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--primary); }
.chip .ico { width: 18px; height: 18px; }
.chip.need { border-color: #f2d8ae; background: var(--warn-l); color: #7a3e06; }
.chip.done { border-color: #bfe3cb; background: var(--ok-l); color: #11602f; }
.trend { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 190px; align-items: end; }
.tcol { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.tbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line2); }
.tb { display: inline-block; width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.tb.ph { background: var(--primary); } .tb.md { background: var(--safety); }
.tcol small { font-size: 13px; color: var(--muted); } .tcol .tv { font-size: 12px; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend .tb { height: 10px; width: 10px; border-radius: 2px; }

/* 로그인 */
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 10px 30px rgba(16,24,40,.08); }
.auth-card.wide { width: min(620px, 100%); }
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.auth-brand .brand-mark { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
.auth-brand h1 { font-size: 24px; } .auth-brand p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* 문서(인쇄) */
.doc-body { background: #e5e8ec; }
.doc-toolbar { position: sticky; top: 0; z-index: 5; background: var(--board); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 18px; }
.doc-toolbar .btn { margin-left: auto; }
.doc-toolbar .btn + .btn { margin-left: 0; }
.doc-toolbar span { color: #aebbcb; font-size: 15px; }
.a4 { width: 210mm; min-height: 297mm; margin: 16px auto; background: #fff; padding: 14mm 14mm 12mm; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: #000; font-family: "Malgun Gothic", "맑은 고딕", sans-serif; display: flex; flex-direction: column; }
.cover { align-items: center; text-align: center; justify-content: flex-start; padding-top: 50mm; }
.cv-year { font-size: 22px; margin: 0 0 18mm; letter-spacing: 2px; }
.cv-title { font-size: 54px; letter-spacing: 18px; margin: 0 0 40mm; font-weight: 800; }
.cv-name { font-size: 22px; margin: 0 0 6mm; font-weight: 700; }
.cv-client { font-size: 20px; margin: 0; }
.cv-company { font-size: 24px; font-weight: 800; margin-top: auto; padding-bottom: 20mm; letter-spacing: 2px; }
.sheet-head { width: 100%; border-collapse: collapse; margin-bottom: 3mm; font-size: 14px; }
.sheet-head th, .sheet-head td { border: 1px solid #555; padding: 2.4mm 3mm; }
.sheet-head th { background: #f0f2f5; width: 16mm; white-space: nowrap; }
.sheet-head td { width: 40%; }
.sheet-head .no { width: 12mm; text-align: center; }
.sheet-row { display: grid; grid-template-columns: 16mm 1fr; border: 1px solid #555; border-top: 0; flex: 1; min-height: 0; }
.sheet-row:first-of-type { border-top: 1px solid #555; }
.sheet-label { border-right: 1px solid #555; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3mm; background: #f7f8fa; }
.sheet-label b { font-size: 20px; } .sheet-label small { font-size: 10.5px; writing-mode: vertical-rl; letter-spacing: 1px; }
.sheet-photo { display: flex; align-items: center; justify-content: center; padding: 2mm; height: var(--ph, 83mm); }
.sheet-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nophoto { color: #999; font-size: 15px; }
.report { font-size: 13.5px; gap: 4mm; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2mm; }
.rp-head h1 { font-size: 30px; letter-spacing: 12px; }
.sign { border-collapse: collapse; } .sign th, .sign td { border: 1px solid #444; padding: 1.5mm 4mm; text-align: center; font-size: 12.5px; }
.sign td { height: 14mm; min-width: 20mm; }
.rp { width: 100%; border-collapse: collapse; }
.rp th, .rp td { border: 1px solid #444; padding: 2mm 3mm; vertical-align: top; }
.rp th { background: #f0f2f5; width: 24mm; text-align: center; vertical-align: middle; white-space: nowrap; }
.rp th.tall + td { height: 50mm; } .rp th.mid + td { height: 20mm; }
.rp .pre { white-space: pre-wrap; }
.rp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.rp-2 .rp th { width: auto; }
.rp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.rp-photos figure { margin: 0; border: 1px solid #aaa; } .rp-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.rp-photos figcaption { font-size: 11px; padding: 1mm 2mm; }

/* 사진대장 양식 선택 */
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.layout-opt { position: relative; border: 2px solid var(--line2); border-radius: 12px; padding: 14px 12px; display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer; margin: 0 !important; background: #fff; }
.layout-opt input { position: absolute; opacity: 0; pointer-events: none; }
.layout-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-l); }
.layout-opt:has(input:focus-visible) { outline: 3px solid var(--focus); }
.layout-opt b { font-size: 17px; color: var(--text); }
.layout-opt small { font-weight: 400; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.lo-pic svg { width: 52px; height: 62px; display: block; margin-bottom: 4px; }
.checks { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.checks.col { flex-direction: column; gap: 10px; }
.checks label.check { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--text); }

/* 인쇄: 공통 머리말 */
.page-title { margin: 0 0 3mm; font-size: 12px; color: #333; }
/* 인쇄: 비교형 */
.cmp-head { display: grid; border: 1px solid #555; background: #f0f2f5; font-weight: 700; font-size: 14px; text-align: center; }
.cmp-head span { padding: 2.2mm; border-left: 1px solid #555; } .cmp-head span:first-child { border-left: 0; }
.cmp-row { display: grid; border: 1px solid #555; border-top: 0; flex: 0 0 82mm; height: 82mm; min-height: 0; }
.cmp-3 .cmp-row { flex-basis: 62mm; height: 62mm; }
.cmp-2 .cmp-head, .cmp-2 .cmp-row { grid-template-columns: 30mm 1fr 1fr; }
.cmp-3 .cmp-head, .cmp-3 .cmp-row { grid-template-columns: 26mm 1fr 1fr 1fr; }
.cmp-1 .cmp-head, .cmp-1 .cmp-row { grid-template-columns: 30mm 1fr; }
.cmp-info { display: flex; flex-direction: column; justify-content: center; gap: 1.5mm; padding: 2mm; background: #f7f8fa; font-size: 12.5px; text-align: center; }
.cmp-info b { font-size: 13.5px; } .cmp-info small { color: #444; }
.cmp-row figure { margin: 0; border-left: 1px solid #555; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2mm; min-height: 0; }
.cmp-row figure img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; flex: 1; }
.cmp-row figcaption { font-size: 10.5px; color: #333; padding-top: 1mm; }
/* 인쇄: 6장형 */
.g6-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 4mm; flex: 1; min-height: 0; }
.g6-cell { border: 1px solid #555; display: flex; flex-direction: column; min-height: 0; }
.g6-photo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5mm; min-height: 0; }
.g6-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.g6-cell table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.g6-cell th, .g6-cell td { border-top: 1px solid #555; padding: 1.2mm 2mm; text-align: left; }
.g6-cell th { width: 13mm; background: #f0f2f5; border-right: 1px solid #555; text-align: center; white-space: nowrap; }
@media (max-width: 820px) { .layouts { grid-template-columns: 1fr; } .layout-opt { flex-direction: row; text-align: left; gap: 12px; } .layout-opt b { min-width: 60px; } }

/* 올리기 대기열 */
.q-pill { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 18px 12px 38px; border-radius: 14px; border: 0; background: var(--board); color: #fff; font: 600 16px var(--font); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; text-align: left; }
.q-pill small { color: #aebbcb; font-size: 13.5px; font-weight: 500; }
.q-pill.warn { background: #92400e; } .q-pill.warn small { color: #fde7c4; }
.q-dot { position: absolute; left: 16px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: #f59e0b; }
.q-pill.busy .q-dot { background: #22c55e; animation: qpulse 1s infinite; }
@keyframes qpulse { 50% { opacity: .3; } }
.q-panel { position: fixed; inset: 0; z-index: 110; background: rgba(10,15,25,.55); display: flex; align-items: flex-end; justify-content: center; }
.q-box { background: #fff; width: min(560px, 100%); max-height: 85vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; }
.q-box header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 18px; } .q-box header b { flex: 1; }
.q-help { margin: 0; padding: 12px 18px; font-size: 14.5px; color: var(--muted); background: #f7f9fb; }
.q-list { list-style: none; margin: 0; padding: 6px 18px; overflow-y: auto; flex: 1; }
.q-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.q-list li img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #dfe4ea; flex: none; }
.q-list li div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .q-list li small { color: var(--muted); font-size: 13.5px; }
.q-list li .q-err { color: var(--err); font-weight: 600; }
.q-list li.failed { background: var(--err-l); margin: 0 -18px; padding: 10px 18px; }
.q-empty { justify-content: center; color: var(--muted); }
.q-box footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); } .q-box footer .btn { width: 100%; }
.q-badge { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: #f59e0b; color: #111; font-size: 12.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; white-space: nowrap; z-index: 2; pointer-events: none; }
.q-badge.warn { background: var(--err); color: #fff; }
.slot.pending { background-size: cover; background-position: center; border-style: solid; border-color: #f59e0b; }
.slot.pending > .ico, .slot.pending > span:not(.q-badge), .slot.pending > small { visibility: hidden; }
.slot.empty { position: relative; }
@media (max-width: 820px) { .q-pill { right: 12px; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* 준공 서류 */
.checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); }
.checklist li.ok { background: var(--ok-l); border-color: #bfe3cb; } .checklist li.warn { background: var(--warn-l); border-color: #f2d8ae; }
.ck-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; color: #fff; background: var(--ok); }
.checklist li.warn .ck-ico { background: #d97706; }
.checklist b { margin-right: 6px; } .ck-items { margin: 6px 0 0; font-size: 15px; line-height: 1.8; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.sec-opt { display: flex !important; gap: 12px; align-items: flex-start; border: 2px solid var(--line2); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0 !important; }
.sec-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-l); }
.sec-opt input { margin-top: 2px; }
.sec-opt span { display: flex; flex-direction: column; } .sec-opt b { font-size: 17px; color: var(--text); }
.form .sec-opt em { font-style: normal; color: var(--primary); font-size: 14.5px; font-weight: 700; } .sec-opt small { color: var(--muted); font-weight: 400; font-size: 14px; }
.closing-cover { padding-top: 40mm; }
.closing-cover .cv-title { margin-bottom: 26mm; }
.closing-cover .cv-client { margin-bottom: 3mm; }
.cv-toc { text-align: left; font-size: 16px; line-height: 2; margin: 16mm auto 0; padding: 6mm 10mm 6mm 16mm; border: 1px solid #999; min-width: 90mm; }
.a4.landscape { width: 297mm; min-height: 210mm; page: land; }
.landscape .att-print th, .landscape .att-print td { font-size: 11px; padding: 1.2mm .8mm !important; }
.a4.flow { height: auto; }
.doc { gap: 0; font-size: 12.5px; }
.doc-h { font-size: 20px; margin: 0 0 4mm; padding-bottom: 2mm; border-bottom: 2px solid #222; display: flex; gap: 10px; align-items: baseline; }
.doc-h small, .doc-h3 small { font-size: 12px; font-weight: 400; color: #555; }
.doc-h3 { font-size: 14px; color: #111; margin: 6mm 0 2mm; }
.doc .rp th, .doc .rp td { padding: 1.5mm 2mm; vertical-align: middle; }
.doc .rp thead th { background: #e9edf2; }
.doc .rp tr { break-inside: avoid; }
.att-print th, .att-print td { padding: 1mm .6mm !important; font-size: 9px; text-align: center; width: auto !important; }
.doc-note { font-size: 11px; color: #555; margin: 2mm 0 0; }
@media (max-width: 820px) { .sec-list { grid-template-columns: 1fr; } }

/* 촬영: 같은 구도로 찍기 · 자주 쓰는 문구 */
.cam-pick:has(.ghostpick:not([hidden])) { grid-template-columns: 1fr 1fr; }
.ghostpick { grid-column: 1 / -1; min-height: 110px !important; border-style: dashed !important; border-color: var(--primary) !important; background: var(--primary-l) !important; font: inherit; cursor: pointer; }
.cam-live { display: flex; flex-direction: column; gap: 10px; }
.live-wrap { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.live-wrap video, .live-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-ghost { pointer-events: none; mix-blend-mode: normal; }
.live-ctrl { display: flex; align-items: center; gap: 16px; }
.live-range { flex: 1; font-size: 14.5px !important; margin: 0 !important; } .live-range input { min-height: 0; padding: 0; margin-top: 8px; accent-color: var(--primary); }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--board); background: var(--safety); cursor: pointer; flex: none; box-shadow: 0 0 0 3px #fff inset; }
.shutter:active { transform: scale(.95); }
.live-msg { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-sm { border: 1px solid var(--line2); background: #fff; border-radius: 99px; padding: 6px 12px; font: 600 14px var(--font); color: var(--text); cursor: pointer; }
.chip-sm:hover, .chip-sm:focus-visible { border-color: var(--primary); color: var(--primary); }

/* 작업일보: 날씨 버튼 · 날씨 영향 */
.field-label { font-size: 15px; font-weight: 600; color: #384252; margin: 0 0 8px; }
.wx { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.wx-opt { margin: 0 !important; cursor: pointer; }
.wx-opt input, .impact input { position: absolute; opacity: 0; pointer-events: none; }
.wx-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 2px solid var(--line2); border-radius: 12px; background: #fff; font-weight: 700; font-size: 15px; color: var(--text); }
.wx-opt i { font-style: normal; font-size: 24px; line-height: 1.2; }
.wx-opt input:checked + span { border-color: var(--primary); background: var(--primary-l); color: var(--primary); }
.wx-opt input:focus-visible + span, .impact input:focus-visible + span { outline: 3px solid var(--focus); }
.seg.wide { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; width: 100%; }
.impact label { margin: 0 !important; cursor: pointer; }
.impact span { display: block; text-align: center; padding: 11px 6px; border-radius: 8px; font-weight: 700; color: var(--muted); font-size: 15.5px; }
.impact input:checked + span { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.impact label:nth-child(2) input:checked + span { color: var(--warn); } .impact label:nth-child(3) input:checked + span { color: var(--err); }
.impact-note { display: none !important; }
form:has(.impact input[value="partial"]:checked) .impact-note, form:has(.impact input[value="full"]:checked) .impact-note { display: block !important; }
.cal-d .stop { color: var(--err); font-weight: 700; }
@media (max-width: 820px) { .wx { grid-template-columns: repeat(3, 1fr); } }

.install-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px dashed var(--primary); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.install-card > div { flex: 1; display: flex; flex-direction: column; } .install-card b { font-size: 17px; } .install-card small { color: var(--muted); font-size: 14.5px; }
/* 순서 바꾸기는 켰을 때만 */
.spot-move { display: none; } body.reorder .spot-move { display: flex; }
/* 현장직원 홈 */
.field { max-width: 640px; }
.field-project { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.field .picker { margin-bottom: 14px; } .field .picker select { width: 100%; }
.field-actions { display: grid; gap: 12px; margin-bottom: 18px; }
.field-btn { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 22px 22px; border-radius: 16px; color: var(--text); border: 2px solid transparent; }
.field-btn:hover { text-decoration: none; filter: brightness(.97); }
.field-btn .ico { grid-row: 1 / 3; width: 48px; height: 48px; }
.field-btn b { font-size: 24px; letter-spacing: -.5px; } .field-btn small { font-size: 15.5px; }
.field-btn.shoot { background: var(--safety); border-color: var(--safety-d); }
.field-btn.note { background: var(--board); color: #fff; } .field-btn.note small { color: #cfe0d6; }
.miss-list { list-style: none; margin: 0; padding: 0; }
.miss-list li { border-bottom: 1px solid var(--line); } .miss-list li:last-child { border: 0; }
.miss-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--text); }
.miss-stages { display: flex; gap: 5px; } .miss-stages i { font-style: normal; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14.5px; }
.miss-stages .have { background: var(--primary-l); color: var(--primary); } .miss-stages .need { background: #fff; border: 2px dashed var(--warn); color: var(--warn); }

/* ───────── 서비스 소개 (로그인 전 첫 화면) ───────── */
.lp { background: var(--bg); }
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - 1160px) / 2)); background: rgba(241,242,239,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.3px; }
.lp-brand:hover { text-decoration: none; }
.lp-nav { display: flex; gap: 22px; margin-left: auto; }
.lp-nav a { color: var(--muted); font-weight: 600; font-size: 16px; }
.lp-hero { max-width: 1160px; margin: 0 auto; padding: 64px 20px 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.18; letter-spacing: -1.6px; font-weight: 800; margin: 0 0 22px; }
.lp-lead { font-size: 19px; line-height: 1.7; color: #3b443f; margin: 0 0 22px; max-width: 34em; }
.lp-checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 34px; font-size: 17.5px; font-weight: 600; }
.lp-checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px; background: var(--board); box-shadow: inset 0 0 0 2px var(--board), inset 0 0 0 3.5px rgba(255,255,255,.8); }
.lp-checks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* 핵심 장면: A4 사진대장 위에 겹친 휴대폰 */
.lp-visual { position: relative; height: 540px; }
.lp-sheet { position: absolute; left: 4%; top: 30px; width: 58%; aspect-ratio: 210 / 297; background: #fff; border: 1px solid #d5d9d3; box-shadow: 0 18px 40px rgba(27,31,29,.12); transform: rotate(-4deg); padding: 5% 5% 4%; display: flex; flex-direction: column; gap: 0; font-size: 10px; }
.lp-sheet-head { display: grid; grid-template-columns: auto 1fr auto 1fr; border: 1px solid #777; }
.lp-sheet-head span { background: #eef0ec; padding: 3px 5px; border-right: 1px solid #777; font-weight: 700; }
.lp-sheet-head b { padding: 3px 5px; border-right: 1px solid #777; font-weight: 500; white-space: nowrap; overflow: hidden; }
.lp-sheet-head b:last-child { border-right: 0; }
.lp-sheet-row { flex: 1; display: grid; grid-template-columns: 9% 1fr; border: 1px solid #777; border-top: 0; }
.lp-sheet-row span { display: grid; place-items: center; background: #f6f7f4; border-right: 1px solid #777; font-weight: 800; font-size: 12px; }
.lp-sheet-row .ph { margin: 6% 12%; border-radius: 1px; }
.ph1 { background: linear-gradient(#b9cad8 0 38%, #7d6d5c 38%); } .ph2 { background: linear-gradient(#b9cad8 0 38%, #6f675f 38%); } .ph3 { background: linear-gradient(#b9cad8 0 38%, #8a8277 38%); }
.lp-phone { position: absolute; right: 2%; top: 0; width: 56%; max-width: 320px; aspect-ratio: 9 / 18.5; background: #1b1f1d; border-radius: 38px; padding: 12px; box-shadow: 0 30px 60px rgba(27,31,29,.28); }
.lp-screen { width: 100%; height: 100%; background: #0f1211; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.lp-photo { position: relative; flex: 1; background: linear-gradient(#a9c2d6 0 36%, #8e8070 36% 100%); }
.lp-photo::after { content: ''; position: absolute; inset: 36% 0 0; background: radial-gradient(circle at 30% 70%, rgba(0,0,0,.12) 0 6%, transparent 7%), radial-gradient(circle at 75% 40%, rgba(0,0,0,.1) 0 5%, transparent 6%), radial-gradient(circle at 15% 30%, rgba(255,255,255,.08) 0 4%, transparent 5%); }
.lp-manhole { position: absolute; left: 50%; top: 48%; width: 46%; aspect-ratio: 1.6; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, #3a3f3c 0 52%, #2a2e2c 53% 64%, #545a56 65% 100%); z-index: 1; }
.lp-board { position: absolute; left: 6%; right: 6%; bottom: 5%; z-index: 2; border-collapse: collapse; background: rgba(31,77,58,.95); color: #fff; font-size: clamp(9px, 1vw, 12px); outline: 2px solid rgba(255,255,255,.9); outline-offset: -5px; }
.lp-board th, .lp-board td { border-top: 1px solid rgba(255,255,255,.55); padding: 4px 8px; text-align: left; white-space: nowrap; }
.lp-board tr:first-child th, .lp-board tr:first-child td { border-top: 0; }
.lp-board th { width: 26%; text-align: center; border-right: 1px solid rgba(255,255,255,.55); font-weight: 700; padding-top: 6px; }
.lp-board tr:first-child th, .lp-board tr:first-child td { padding-top: 9px; }
.lp-board tr:last-child th, .lp-board tr:last-child td { padding-bottom: 9px; }
.lp-shot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 10px 16px; background: #0f1211; }
.lp-shot span { text-align: center; color: #c9d1cc; font-size: 12px; padding: 8px 0; border-radius: 8px; background: #252a28; font-weight: 600; }
.lp-shot span.on { background: var(--safety); color: #1b1f1d; }
/* 본문 섹션 */
.lp-sec { max-width: 1160px; margin: 0 auto; padding: 56px 20px; border-top: 1px solid var(--line); }
.lp-h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.9px; font-weight: 800; margin: 0 0 30px; display: block; }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-compare > div { border-radius: 14px; padding: 26px 28px; }
.lp-old { background: #fff; border: 1px solid var(--line); color: #4d5651; }
.lp-new { background: var(--board); color: #fff; }
.lp-compare h3 { font-size: 19px; margin: 0 0 14px; color: inherit; }
.lp-compare ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: 17px; line-height: 1.55; }
.lp-new ol li::marker { color: var(--safety); font-weight: 800; }
.lp-day { list-style: none; counter-reset: d; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--board); }
.lp-day li { counter-increment: d; padding: 22px 22px 6px 0; position: relative; }
.lp-day li::before { content: counter(d); position: absolute; top: -17px; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--board); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 4px var(--bg); }
.lp-day b { display: block; font-size: 19px; margin: 6px 0 8px; }
.lp-day p { margin: 0; color: #4d5651; line-height: 1.6; }
.lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-roles h3 { color: var(--text); font-size: 19px; margin: 0 0 8px; }
.lp-roles p { margin: 0; color: #4d5651; line-height: 1.65; }
.lp-forms { display: flex; gap: 28px; flex-wrap: wrap; }
.lp-forms figure { margin: 0; display: flex; gap: 14px; align-items: center; flex: 1 1 280px; }
.lp-forms svg { width: 64px; height: 77px; flex: none; }
.lp-forms figcaption { display: flex; flex-direction: column; } .lp-forms b { font-size: 18px; } .lp-forms span { color: #4d5651; }
.lp-note { color: var(--muted); margin: 22px 0 0; }
.lp-faq { display: grid; gap: 10px; max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.lp-faq summary { color: var(--text); font-size: 17.5px; }
.lp-faq summary::before { color: var(--board); }
.lp-faq p { margin: 10px 0 0; color: #4d5651; line-height: 1.7; }
.lp-end { background: var(--board); color: #fff; text-align: center; padding: 64px 20px; }
.lp-end h2 { display: block; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.8px; margin: 0 0 24px; }
.lp-end .lp-cta { justify-content: center; }
.lp-end .lp-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lp-foot { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 26px 20px 40px; color: var(--muted); font-size: 14.5px; }
.lp-foot span:first-child { font-weight: 800; color: var(--text); }
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-top { justify-content: space-between; }
  .lp-hero { grid-template-columns: 1fr; padding: 36px 20px 48px; gap: 30px; }
  .lp-visual { height: 470px; }
  .lp-compare, .lp-roles { grid-template-columns: 1fr; }
  .lp-day { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--board); padding-left: 0; }
  .lp-day li { padding: 0 0 26px 30px; }
  .lp-day li::before { top: 0; left: -17px; }
  .lp-day b { margin-top: 2px; }
  .lp-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-phone { animation: lp-in .7s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes lp-in { from { transform: translateY(24px); opacity: 0; } }
}

/* 사진 원본 확인표 */
.integ th, .integ td { font-size: 11px; }
.integ .hash { font-family: "SF Mono", Consolas, "D2Coding", monospace; font-size: 9.5px; word-break: break-all; line-height: 1.35; }
.integ td { padding: 4px 6px; }
.integ tr.bad td { background: #fdecea; }
.integ small { color: #666; }
@media print {
  @page { size: A4; margin: 0; }
  @page land { size: A4 landscape; margin: 0; }
  .no-print { display: none !important; }
  .doc-body { background: #fff; }
  .a4 { margin: 0; box-shadow: none; page-break-after: always; break-after: page; height: 297mm; overflow: hidden; }
  .a4:last-child { page-break-after: auto; break-after: auto; }
  .a4.flow { height: auto; min-height: 0; overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 태블릿 */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .quick, .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
/* 모바일 */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .side { transform: translateX(-100%); transition: transform .2s; width: 270px; }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .main { margin-left: 0; }
  .top { padding: 10px 16px; }
  .top h1 { font-size: 19px; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--text); margin-left: -8px; }
  .menu-btn .ico { width: 26px; height: 26px; }
  .content { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .card { padding: 16px; border-radius: 12px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .spots { grid-template-columns: 1fr; }
  .toolbar > .picker, .toolbar > .search { flex: 1 1 100%; }
  .picker select, .picker input, .search input { min-width: 0; width: 100%; }
  .toolbar .btn { flex: 1 1 auto; }
  .info { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 90px 1fr 70px; }
  .todo-row { grid-template-columns: 1fr; gap: 8px; }
  .todo-acts { justify-content: flex-start; }
  .cal { gap: 3px; } .cal-d { min-height: 64px; padding: 5px; font-size: 11.5px; } .cal-d .badge { display: none; } .cal-d.has { background: var(--primary-l); } .cal-d.has.r-approved { background: var(--ok-l); } .cal-d .dn { font-size: 15px; }
  .att-list { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; color: var(--muted); font-size: 13px; font-weight: 600; gap: 2px; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .ico { width: 26px; height: 26px; }
  .cam-modal { padding: 0; align-items: stretch; }
  .cam-box { border-radius: 0; max-height: none; height: 100%; width: 100%; }
  .cam-pick { grid-template-columns: 1fr; }
  .bigpick { min-height: 130px; }
  .a4 { transform-origin: top left; }
  .actions .btn { flex: 1; }
}

/* ---------- 공유 링크 (1.6.0) ---------- */
.share-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:10px}
.share-list li{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid var(--line,#dfe2dc);border-radius:12px;background:#fafbf9}
.share-list li.expired{opacity:.6}
.share-main{min-width:0;flex:1;display:grid;gap:4px}
.share-main small{color:var(--muted,#667)}
.share-link{width:100%;font:13px/1.4 ui-monospace,Consolas,monospace;padding:6px 8px;border:1px solid var(--line,#dfe2dc);border-radius:8px;background:#fff;color:#334}
.share-acts{display:flex;gap:6px;flex-shrink:0}
.share-acts form{margin:0}
@media (max-width:640px){.share-list li{flex-direction:column;align-items:stretch}.share-acts{justify-content:flex-end}}
.share-body{background:var(--bg,#f1f2ef);margin:0;font-family:Pretendard,'Malgun Gothic',sans-serif;color:var(--text,#17202c)}
.share-wrap{max-width:1040px;margin:0 auto;padding:16px}
.share-top{background:var(--primary,#1f4d3a);color:#fff}
.share-top h1{margin:4px 0 6px;font-size:24px;line-height:1.3}
.share-from{margin:0;font-size:14px;opacity:.8}
.share-meta{margin:0 0 6px;font-size:14px;opacity:.9}
.share-tabs{display:flex;gap:4px;margin-top:12px}
.share-tabs a{color:#fff;text-decoration:none;padding:10px 18px;border-radius:10px 10px 0 0;font-weight:600;opacity:.75}
.share-tabs a.on{background:var(--bg,#f1f2ef);color:var(--primary,#1f4d3a);opacity:1}
.share-spot h2{font-size:18px;margin:0 0 10px}
.share-spot .no{display:inline-block;min-width:28px;text-align:center;background:var(--primary,#1f4d3a);color:#fff;border-radius:6px;font-size:14px;padding:2px 6px}
.share-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:720px){.share-stages{gap:6px}.share-stage figcaption{font-size:12px}.share-stage b{font-size:14px}}
.share-stage{display:grid;gap:6px;align-content:start}
.share-stage figure{margin:0}
.share-stage img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#e5e7e2;display:block}
.share-stage figcaption{font-size:13px;color:var(--muted,#667);margin-top:2px}
.share-stage .nophoto{display:grid;place-items:center;aspect-ratio:4/3;border:1px dashed #c9cdc5;border-radius:8px;color:#99a;font-size:14px}
.share-daily li a{display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.share-gate,.share-gone{max-width:420px;margin:48px auto;text-align:center;display:grid;gap:12px}
.share-gate .big,.share-gone .big{font-size:48px}
.share-gate h1,.share-gone h1{font-size:20px;margin:0}
.share-gate label{text-align:left;display:grid;gap:6px}
.share-gate input{font-size:18px;padding:12px;border:1px solid var(--line,#ccd);border-radius:10px}
.share-foot{font-size:13px;text-align:center;margin:28px 0 12px}

/* ---------- 1.7.0: 날씨 불러오기 · 현장 좌표 · 내 출역 ---------- */
.field-label .wx-fetch { margin-left: 8px; vertical-align: middle; }
.field-label [data-wx-msg] { font-weight: 400; font-size: 14px; }
.coord-row { display: flex; gap: 8px; align-items: center; }
.coord-row input { flex: 1; min-width: 0; }
.coord-row .btn { flex-shrink: 0; }
.month-nav { justify-content: center; }
.month-nav .month-title { font-size: 20px; min-width: 130px; text-align: center; }
.my-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 10px; }
.my-kpi > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; display: grid; gap: 4px; }
.my-kpi small { color: var(--muted); font-size: 14px; }
.my-kpi b { font-size: 24px; color: var(--primary); font-variant-numeric: tabular-nums; }
.my-days { list-style: none; margin: 0; padding: 0; }
.my-days li { display: flex; gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.my-days li:last-child { border-bottom: 0; }
.my-date { width: 48px; text-align: center; display: grid; line-height: 1.15; }
.my-date b { font-size: 22px; }
.my-date small { color: var(--muted); font-size: 13px; }
.my-work { flex: 1; display: grid; gap: 2px; font-size: 16px; }
.my-md { font-size: 20px; font-weight: 700; color: var(--primary); text-align: right; }
.my-md small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
a.my-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
a.my-mini span:first-child { display: grid; gap: 2px; }
a.my-mini small { color: var(--muted); font-size: 14px; }
.my-mini-n { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }
@media (max-width: 520px) { .my-kpi b { font-size: 20px; } }
/* 접근성: 문장 속 링크는 밑줄로 구분 (색만으로 구분하지 않음) */
p a:not(.btn), .hint a:not(.btn), .muted a:not(.btn), li small a:not(.btn), label small a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
