/* 지안 현장 앱 — 홈페이지와 같은 톤(잉크·샌드·브라운) */
:root {
  --ink: #1d1b19;
  --ink-2: #3a3632;
  --muted: #7d766e;
  --line: #e4ded6;
  --paper: #ffffff;
  --ground: #f6f3ef;
  --sand: #c6b6a4;
  --accent: #8c7458;
  --danger: #b2452f;
  --ok: #3f7a55;
  --radius: 12px;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--ground); word-break: keep-all; overflow-wrap: anywhere;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 4px 0; }
svg { vertical-align: -2px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.empty-box { text-align: center; padding: 48px 16px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.hello { margin: 4px 0 8px; }
.link { color: var(--accent); background: none; border: 0; padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.warn { background: #fbf1e3; border: 1px solid #ecd3ad; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-top: 12px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.line { background: transparent; border-color: var(--ink-2); }
.btn.danger { color: var(--danger); border-color: #e6c3bb; background: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; position: relative; font-size: 24px; }

/* 입력 */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; }
.label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 11px 12px; font-size: 16px; font-weight: 400; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 116, 88, .15); }
textarea { resize: vertical; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-pick input { padding: 10px; background: var(--ground); }
.cust-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 8px; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px; }
.top h1 { flex: 1; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 19px; letter-spacing: .12em; padding: 0 8px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.tabs { max-width: 760px; margin: 0 auto; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 10px 12px 11px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.pill { display: inline-block; font-style: normal; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
main > section, main > .card { min-width: 0; }
.sec { font-size: 16px; margin: 10px 0 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar .sec { margin: 0; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: block; }
.cards { display: grid; gap: 10px; }
.site-card { display: grid; gap: 6px; }
.site-card:active, .task-card:active { background: #fbfaf8; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--ground); color: var(--ink-2); white-space: nowrap; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.line { background: transparent; border: 1px solid var(--sand); color: var(--accent); }
.memo { background: var(--ground); border-radius: 8px; padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; font-size: 14.5px; }

/* 진행률 */
.prog { display: flex; align-items: center; gap: 10px; }
.prog-bar { flex: 1; height: 8px; background: var(--ground); border-radius: 4px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.prog b { font-size: 15px; min-width: 44px; text-align: right; }
.prog.big { margin: 12px 0 6px; }
.prog.big .prog-bar { height: 14px; border-radius: 7px; }
.prog.big b { font-size: 26px; min-width: 70px; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.task-chip { display: inline-grid; padding: 8px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--c); font-size: 14px; }
.task-chip span { font-size: 12.5px; color: var(--muted); }
.task-chip.done { opacity: .6; }
.small-chips { margin: 10px 0; }
.small-chips .task-chip { padding: 5px 10px; font-size: 13px; }
.links { display: flex; justify-content: space-around; gap: 8px; text-align: center; font-size: 14px; padding: 12px; }
.links a { display: inline-flex; align-items: center; gap: 5px; }
.admin-box { border-style: dashed; }
.admin-box h3 { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* 목록 */
.list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list:empty { display: none; }
.list-row { background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
details.past summary { cursor: pointer; color: var(--muted); padding: 10px 0; }

/* 일지 */
.post { display: grid; gap: 10px; }
.post-body { white-space: pre-wrap; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph { position: relative; display: block; padding: 0; border: 0; background: var(--ground); aspect-ratio: 1; overflow: hidden; border-radius: 6px; width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px; font-weight: 700; }
.ph-wrap { position: relative; }
.ph-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px; line-height: 1; }
.upload-prog { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.upload-prog .prog-bar { height: 8px; }

/* 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0d0c0b; display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: calc(100vh - 60px); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-bar { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 18px; color: #ccc; font-size: 14px; }
.lb-orig { text-decoration: underline; }

/* 일정: 달력 */
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg a.on { background: var(--ink); color: #fff; }
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.cal-head b { font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-wd.sun { color: var(--danger); }
.cal-cell { min-height: 74px; border: 1px solid transparent; background: none; border-radius: 6px; padding: 3px 2px; display: flex; flex-direction: column; gap: 2px; text-align: left; overflow: hidden; min-width: 0; }
.cal-cell.other { opacity: .35; }
.cal-cell.today .cal-num { background: var(--ink); color: #fff; border-radius: 10px; padding: 0 6px; }
.cal-cell.sel { border-color: var(--accent); background: #faf6f1; }
.cal-num { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; padding-left: 2px; }
.cal-num .cam { color: var(--accent); display: inline-flex; font-style: normal; }
.cal-num .cam svg { width: 11px; height: 11px; }
.cal-bar { display: block; font-size: 10.5px; line-height: 1.5; background: var(--c); color: #fff; border-radius: 3px; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cal-bar.done { opacity: .45; text-decoration: line-through; }
.cal-more { font-size: 10px; color: var(--muted); padding-left: 2px; }
.day-detail { display: grid; gap: 8px; }
.day-detail .sec { margin-bottom: 0; }
.day-post { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.day-post img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }

/* 일정: 목록 */
.task-list { display: grid; gap: 8px; }
.task-row { display: flex; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; }
.task-row.done .task-main b { text-decoration: line-through; color: var(--muted); }
.task-main { flex: 1; display: grid; gap: 1px; padding: 11px 12px 11px 4px; min-width: 0; }
.task-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--accent); }
.task-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.task-meta:empty { display: none; }
.check { display: flex; align-items: center; padding: 0 10px 0 12px; cursor: pointer; font-weight: 400; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { width: 26px; height: 26px; border: 2px solid var(--sand); border-radius: 7px; display: grid; place-items: center; background: #fff; }
.check input:checked + span, .check.ro.on span { background: var(--ok); border-color: var(--ok); }
.check input:checked + span::after, .check.ro.on span::after { content: "✓"; color: #fff; font-weight: 700; font-size: 16px; }
.check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(140, 116, 88, .3); }
.check.ro { cursor: default; }
.task-detail { border-left: 5px solid var(--c); }

/* 도면 */
.doc-grid, .page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.doc-card { display: grid; gap: 6px; padding: 10px; }
.doc-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: contain; background: var(--ground); border-radius: 6px; }
.page-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.page-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: contain; background: var(--ground); border-radius: 6px; }
.pg-no { font-weight: 700; font-size: 14px; }
.pg-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--accent); }
.pg-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.pg-meta .memo-dot { background: var(--ground); color: var(--ink-2); padding: 0 6px; border-radius: 4px; }
.page-head { margin-bottom: -4px; }
.page-img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; display: block; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumbs a { display: grid; gap: 4px; font-size: 12.5px; }
.thumbs img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pick-doc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.pick-doc summary { cursor: pointer; font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.pick { position: relative; gap: 2px; font-weight: 500; font-size: 12px; text-align: center; }
.pick input { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; }
.pick img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: contain; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.pick input:checked ~ img { border-color: var(--accent); }
.check-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.check-list label { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 8px; border-radius: 8px; }
.check-list label:hover { background: var(--ground); }
.check-list input { width: 20px; height: 20px; flex: none; }

/* 코멘트 */
.comments { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.comments h3 { margin-bottom: 8px; }
.cm { padding: 12px 0; border-top: 1px solid var(--line); }
.cm-list > .cm:first-child { border-top: 0; }
.cm.reply { margin-left: 16px; padding: 10px 0 4px 12px; border-top: 0; border-left: 3px solid var(--sand); }
.cm.sys { background: #faf6f1; border-radius: 8px; padding: 10px 12px; border-top: 0; margin: 6px 0; }
.cm-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.cm-head .muted { font-size: 12.5px; }
.cm-body { white-space: pre-wrap; margin: 4px 0 2px; }
.cm-actions { display: flex; gap: 12px; }
.cm-actions button { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--muted); }
.cm-actions:empty { display: none; }
.reply-form, .cm-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.reply-form { margin-left: 16px; }
.cm-form textarea, .reply-form textarea { flex: 1; }
.feed-item { padding: 12px 16px; }
.feed-item .cm { border-top: 0; padding-top: 6px; }
.feed-target { font-size: 13.5px; color: var(--accent); }
.cm-feed { display: grid; gap: 10px; }

/* 알림 */
.noti-list { display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.noti-list:has(.empty) { background: none; border: 0; }
.noti { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); font-size: 14.5px; }
.noti.unread { background: #fbf6ef; }
.noti.unread span:first-child { font-weight: 600; }
.push-box { display: grid; gap: 8px; justify-items: start; }

/* 모달 */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(20, 18, 16, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal { position: relative; background: var(--paper); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.modal.wide { max-width: 640px; }
.modal h2 { padding-right: 36px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: var(--ground); border-radius: 50%; font-size: 22px; line-height: 1; }
@media (min-width: 640px) {
  .modal-wrap { align-items: center; }
  .modal { border-radius: 16px; }
}
.menu-who { display: flex; align-items: baseline; gap: 8px; font-size: 17px; }
.menu-who span { color: var(--muted); font-size: 14px; }
.menu-list { display: grid; }
.menu-list a, .menu-list button { text-align: left; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); background: none; font-size: 16px; }
.menu-list button { color: var(--danger); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: .25s; z-index: 200; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14.5px; max-width: calc(100vw - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: var(--danger); }

/* 로그인 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.auth-box { width: 100%; max-width: 380px; background: var(--paper); border-radius: 16px; padding: 32px 22px; }
.auth-logo { text-align: center; display: grid; gap: 2px; }
.auth-logo b { font-family: Georgia, "Times New Roman", serif; font-size: 34px; letter-spacing: .18em; font-weight: 400; }
.auth-logo span { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.auth-sub { text-align: center; color: var(--accent); margin: 10px 0 24px; font-weight: 600; }

/* 보고서 */
.rp-bar { max-width: 820px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-bar p { flex-basis: 100%; }
.report { max-width: 820px; margin: 0 auto 60px; background: #fff; padding: 32px 28px; }
.rp-cover { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.rp-logo { display: grid; gap: 2px; margin-bottom: 40px; }
.rp-logo b { font-family: Georgia, serif; font-size: 28px; letter-spacing: .18em; font-weight: 400; }
.rp-logo span { font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.rp-cover h1 { font-size: 34px; }
.rp-sub { color: var(--accent); font-size: 18px; margin-bottom: 24px; }
.rp-cover dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.rp-cover dt { color: var(--muted); }
.rp-cover dd { margin: 0; }
.rp-foot { margin-top: auto; padding-top: 40px; color: var(--muted); font-size: 13px; }
.rp-sec { padding-top: 32px; }
.rp-sec h2 { font-size: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rp-table th, .rp-table td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; }
.rp-table th { background: var(--ground); }
.rp-block { margin-top: 16px; break-inside: avoid; }
.rp-block h4 { font-size: 14px; }
.rp-post { margin-bottom: 26px; }
.rp-post h3 { font-size: 16px; margin-bottom: 4px; }
.rp-post > p { white-space: pre-wrap; }
.rp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.rp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; break-inside: avoid; }
.rp-page { margin-bottom: 28px; break-inside: avoid; }
.rp-page h3 { font-size: 15px; margin-bottom: 6px; }
.rp-page img { width: 100%; border: 1px solid var(--line); }
.rp-memo { background: var(--ground); padding: 8px 10px; margin-top: 6px; font-size: 13.5px; white-space: pre-wrap; }
.rp-cms { margin-top: 8px; display: grid; gap: 6px; }
.rp-cm { font-size: 13px; border-left: 3px solid var(--sand); padding: 2px 0 2px 10px; break-inside: avoid; }
.rp-cm span { color: var(--muted); font-size: 12px; }
.rp-cm p { white-space: pre-wrap; margin: 2px 0 0; }
.rp-cm.reply { margin: 6px 0 0 12px; }
.rp-cm.sys { border-color: var(--accent); }
body.print-mode { background: var(--ground); }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body, body.print-mode { background: #fff; }
  .no-print { display: none !important; }
  .report { max-width: none; margin: 0; padding: 0; }
  .rp-cover { min-height: 250mm; border: 0; }
  .rp-sec { break-before: page; padding-top: 0; }
  .rp-post { break-inside: avoid-page; }
}

/* 앱 설치 안내 */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.gate-box { width: 100%; max-width: 380px; background: var(--paper); border-radius: 16px; padding: 28px 22px; display: grid; gap: 12px; text-align: center; }
.gate-box h1 { font-size: 21px; }
.gate-box p { color: var(--ink-2); }
.gate-icon { width: 72px; height: 72px; border-radius: 18px; justify-self: center; }
.gate-help { text-align: left; background: var(--ground); border-radius: 10px; padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.gate-help p { margin: 0; }
.ico { display: inline-flex; vertical-align: -4px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 1px 3px; color: #1a73e8; }
.install-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(20, 18, 16, .5); display: flex; align-items: flex-end; justify-content: center; }
.install-sheet { position: relative; background: var(--paper); width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; text-align: center; animation: sheet-up .25s ease-out; }
.install-sheet h2 { font-size: 20px; }
.install-wrap.ios .install-sheet { margin-bottom: 70px; border-radius: 18px; width: calc(100% - 24px); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.steps { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 1px; }
.warn-line { background: #fbf1e3; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.point-down { position: absolute; left: 50%; bottom: -62px; transform: translateX(-50%); font-size: 44px; color: #fff; animation: bob 1s ease-in-out infinite; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
@keyframes bob { 50% { transform: translate(-50%, 10px); } }
.menu-list .install-item { color: var(--accent); font-weight: 600; }
@media (min-width: 640px) { .install-wrap { align-items: center; } .install-sheet { border-radius: 18px; } }

/* 대표 첫 화면: 일자별 공정 */
.agenda { display: grid; gap: 12px; }
.week { display: grid; grid-template-columns: 32px repeat(7, minmax(0, 1fr)) 32px; align-items: center; gap: 2px; }
.week .icon-btn { width: 32px; }
.wd { display: grid; justify-items: center; gap: 1px; padding: 6px 0 4px; border: 1px solid transparent; border-radius: 10px; background: none; }
.wd span { font-size: 11.5px; color: var(--muted); }
.wd.sun span { color: var(--danger); }
.wd b { font-size: 16px; }
.wd i { font-style: normal; font-size: 10.5px; color: var(--accent); min-height: 15px; }
.wd.today b { text-decoration: underline; text-underline-offset: 3px; }
.wd.on { background: var(--ink); border-color: var(--ink); }
.wd.on span, .wd.on b, .wd.on i { color: #fff; }
.agenda-day { border-top: 1px solid var(--line); padding-top: 12px; }
.agenda-site { display: grid; gap: 6px; }
.agenda-site-name { font-weight: 700; font-size: 14px; color: var(--accent); }

/* 달력 끌기 */
.cal-grid, .pick-cal { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cal-cell { cursor: pointer; }
.cal-cell.drag { background: rgba(140, 116, 88, .22); border-color: var(--accent); }
.hint.center { text-align: center; margin-top: -4px; }
.btn-row.tight { margin-top: 0; }

/* 일정 입력: 날짜 고르기 달력 */
.date-picker { border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 10px; }
.pick-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; touch-action: none; }
.pc { display: grid; place-items: center; height: 40px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.pc.other { color: #c5beb5; }
.pc.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pc.on { background: var(--accent); color: #fff; font-weight: 700; }
.pick-sum { margin-top: 8px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

/* 토요일·일요일·공휴일 */
.cal-wd.sat, .sat, .sat .cal-num { color: #2f6fb3; }
.holi, .holi .cal-num, .cal-wd.sun { color: var(--danger); }
.cal-cell.holi { background: #fdf5f3; }
.cal-cell.holi.other, .cal-cell.sat.other { background: none; }
.holi-name { font-size: 9.5px; line-height: 1.2; color: var(--danger); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
.pc { position: relative; }
.pc.sat { color: #2f6fb3; }
.pc.holi { color: var(--danger); }
.pc.other.sat, .pc.other.holi { opacity: .45; }
.pc.on.sat, .pc.on.holi { color: #fff; }
.holi-dot { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--danger); }
.pc.on .holi-dot { background: #fff; }
.wd.sat span, .wd.sat b { color: #2f6fb3; }
.wd.holi span, .wd.holi b { color: var(--danger); }
.wd.on span, .wd.on b { color: #fff; }

/* 메모 입력칸 크게 */
.memo-input { min-height: 10.5em; line-height: 1.5; }

/* 올릴 파일 목록 */
.file-list { margin: -6px 0 0; padding-left: 20px; }
.file-list:empty { display: none; }
