:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #16191F;
  --ink-2: #5B6270;
  --ink-3: #8B92A0;
  --line: #E3E6EB;
  --in: #1F8A5B;
  --in-dark: #176B46;
  --out: #2D4FD6;
  --out-dark: #213DA8;
  --neg: #C8372D;
  --neg-bg: #FDECEA;
  --warn-bg: #FFF6DB;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--out); }

/* ---------- 직원(모바일) 화면 ---------- */
.app {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 24px);
  display: flex; flex-direction: column; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .who { margin-left: auto; font-weight: 700; font-size: 28px; color: var(--ink); letter-spacing: -0.5px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.clock { text-align: center; padding: 26px 16px; }
.clock .date { color: var(--ink-2); font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
/* 상태(근무 중 등)를 크게, 현재 시각은 작게 아래 */
.clock .state { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-top: 6px; }
.clock .state.on { color: var(--in); }
.clock .state.done { color: var(--out); }
.clock .state.off { color: var(--ink-2); }
.clock .time { font-size: 40px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.15; margin-top: 2px; }
.clock .elapsed { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--in); }
.today-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.today-times div { background: var(--bg); border-radius: 12px; padding: 10px 12px; text-align: left; }
.today-times small { display: block; color: var(--ink-3); font-size: 12.5px; }
.today-times b { font-size: 20px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-top: 14px; }
.badge.on { background: #E3F4EC; color: var(--in-dark); }
.badge.off { background: #ECEEF2; color: var(--ink-2); }

.actions { display: flex; flex-direction: column; gap: 14px; }
.big-btn {
  border: 0; border-radius: var(--radius); padding: 26px 16px; font-size: 26px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .08s, filter .15s, opacity .15s;
}
.big-btn small { font-size: 14px; font-weight: 600; opacity: .85; }
.big-btn:active { transform: scale(.98); }
.big-btn.in { background: var(--in); }
.big-btn.out { background: var(--out); }
/* 다음에 누를 버튼이 아닌 쪽: 작고 흐리게, 아래로 (누를 수는 있음) */
.big-btn.minor { order: 2; padding: 12px 16px; font-size: 16px; font-weight: 700; opacity: .5; box-shadow: none; align-self: center; min-width: 60%; }
.big-btn.minor svg { width: 18px; height: 18px; }
.big-btn:disabled { opacity: .25; cursor: not-allowed; transform: none; }
.hint.lock { color: var(--in-dark); font-weight: 600; }
.big-btn svg { width: 30px; height: 30px; }
.hint { color: var(--ink-3); font-size: 13px; text-align: center; margin: 0; }
.notice { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* 로그인 */
.login h1 { font-size: 24px; margin: 8px 0 4px; }
.login p { color: var(--ink-2); margin: 0 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field input {
  width: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 22px; font-weight: 700; letter-spacing: 1px; outline: none;
}
.field input:focus { border-color: var(--out); }
.primary {
  width: 100%; border: 0; border-radius: 14px; padding: 16px; background: var(--ink); color: #fff;
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.error { background: var(--neg-bg); color: var(--neg); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; white-space: pre-line; }
.pw-guide { margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); font-size: 14.5px; color: var(--ink); }
.done { background: #E7F5EE; color: var(--in-dark); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; }

/* 홈 화면 추가 안내 */
[hidden] { display: none !important; }   /* display 지정한 요소(.install 등)도 hidden 이면 숨김 */
.install { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px dashed #C9CFDA; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.install b { display: block; }
.install button { margin-left: auto; flex: none; border: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.install .x { background: transparent; color: var(--ink-3); padding: 4px 6px; margin-left: 0; }

/* 로딩 / 결과 팝업 */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 30, .55); display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 50;
}
.overlay[hidden] { display: none; }
.sheet { background: #fff; border-radius: 22px; width: 100%; max-width: 360px; padding: 28px 22px 20px; text-align: center; }
.sheet .icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.sheet .icon svg { width: 34px; height: 34px; }
.sheet .icon.ok { background: #E3F4EC; color: var(--in); }
.sheet .icon.bad { background: var(--neg-bg); color: var(--neg); }
.sheet .icon.ask { background: #E8EDFC; color: var(--out); }
.sheet h2 { margin: 0 0 6px; font-size: 22px; }
.sheet h2.bad { color: var(--neg); }
.sheet p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }
.sheet .row { display: flex; gap: 10px; }
.on-choices { display: flex; flex-direction: column; gap: 10px; }
.on-choices button { width: 100%; }
#onMissedBox .field small { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 13.5px; }
#onMissedBox input { width: 100%; box-sizing: border-box; font-size: 17px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.link-cancel { margin-top: 12px; background: none; border: 0; color: var(--ink-3); font-size: 15px; text-decoration: underline; cursor: pointer; }
.sheet .row button { flex: 1; }
.ghost-btn { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.link-btn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 12px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #E3E6EB; border-top-color: var(--out); margin: 4px auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ios-steps { text-align: left; margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.ios-steps li { margin-bottom: 6px; }

/* ---------- 관리자 화면 ---------- */
.admin { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.admin header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin header h1 { font-size: 20px; margin: 0; }
.admin header a.logout { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 9px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.flash { background: #E3F4EC; color: var(--in-dark); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 16px; margin: 0 0 12px; }
.panel h2 small { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters label, .form-grid label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); gap: 4px; }
.admin input, .admin select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14.5px; }
.btn { border: 0; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: var(--neg); border: 1px solid #EBC3BF; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 12.5px; background: #FAFBFC; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { display: block; color: var(--ink-3); font-size: 12px; }
.pumcell .pum { display: block; font-size: 15px; }
.pumcell .pum.total { color: var(--out); font-size: 16px; }
.pmcell b.plus, .chip.pm b.plus { color: var(--in); }
.pmcell b.minus, .chip.pm b.minus { color: var(--neg); }
.pmcell b[title] { cursor: help; }
.note-btn { background: #FFF0D6; color: #A25B00; border-color: #F5C77E; white-space: nowrap; }
.ok-btn { color: var(--in-dark); border-color: #BFE3CF; white-space: nowrap; }
.faint-btn { opacity: .55; }
dialog.review-dlg { width: min(1240px, calc(100vw - 32px)); max-width: none; padding: 24px 28px; font-size: 15px; }
dialog.review-dlg h3 { font-size: 21px; }
dialog.review-dlg h4 { font-size: 16px; margin-top: 4px; }
dialog.review-dlg .note-list { font-size: 15.5px; }
.muted-list { color: var(--ink-2); font-size: 14.5px !important; }
.tl { margin: 12px 0 16px; padding: 16px 18px 8px; background: #FAFBFC; border: 1px solid var(--line); border-radius: 12px; }
.tl-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tl-name { width: 72px; flex: none; font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: right; }
.tl-track { position: relative; flex: 1; height: 40px; }
.tl-seg { position: absolute; top: 2px; bottom: 2px; border-radius: 7px; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; border: 1px solid #fff; box-sizing: border-box; cursor: help; }
.tl-seg.k-early { background: #7A5AF8; } .tl-seg.k-normal { background: var(--in); } .tl-seg.k-overtime { background: #E0902B; }
.tl-seg.k-night { background: var(--out); } .tl-seg.k-other { background: #8B92A0; }
.tl-seg.off { background: repeating-linear-gradient(45deg, #F1F3F6 0 5px, #E6E9EE 5px 10px) !important; color: var(--ink-2); border: 1px dashed #B9C0CB; font-weight: 600; }
.tl-work-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.tl-work { position: absolute; top: 13px; height: 14px; background: #16191F; border-radius: 6px; }
.tl-gap { position: absolute; top: 5px; height: 30px; border-radius: 6px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; white-space: nowrap; overflow: visible; }
.tl-gap.minus { background: repeating-linear-gradient(45deg, #FDECEA 0 4px, #F6C3BE 4px 8px); color: var(--neg); border: 1px solid #E7A39C; }
.tl-gap.plus { background: #E3F4EC; color: var(--in-dark); border: 1px solid #A9D9BF; }
.tl-vline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.tl-vline.in { background: var(--in); } .tl-vline.out { background: var(--out); }
.tl-mark-track { height: 44px; }
.tl-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 13.5px; white-space: nowrap; cursor: help; }
.tl-mark i { width: 13px; height: 13px; border-radius: 50%; background: var(--in); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--in); }
.tl-mark.out i { background: var(--out); box-shadow: 0 0 0 1px var(--out); }
.tl-mark.outside i { box-shadow: 0 0 0 2px var(--neg); }
.tl-mark span { margin-top: 2px; color: var(--ink-2); font-weight: 600; }
.tl-axis { height: 22px; border-top: 1px solid var(--line); }
.tl-axis span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.rv-log { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.rv-log-table { margin-top: 8px; font-size: 14.5px; }
.rv-log-table tr.muted td { color: var(--ink-3); }
.rv-times { display: flex; gap: 24px; font-size: 18px; margin-bottom: 6px; }
.rv-choice { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14.5px !important; color: var(--ink) !important; margin-bottom: 6px !important; }
.rv-manual { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px 26px; }
.rv-manual.off { opacity: .4; }
.note-list { margin: 8px 0 16px; padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.tag.late { background: #FFF0D6; color: #A25B00; }
.tag.miss { background: var(--neg-bg); color: var(--neg); }
.tag.edit { background: #ECEEF2; color: var(--ink-2); }
.tag.ok { background: #E3F4EC; color: var(--in-dark); }
.muted { color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.help { color: var(--ink-2); font-size: 13.5px; margin: 0 0 12px; }
dialog { border: 0; border-radius: 16px; padding: 20px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15, 20, 30, .45); }
dialog h3 { margin: 0 0 12px; }
dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
dialog .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* 근무지 지도 */
.site-editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 760px) { .site-editor { grid-template-columns: 1fr; } }
.site-map { height: 460px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
@media (max-width: 760px) { .site-map { height: 360px; } }
.map-search { display: flex; gap: 6px; margin-bottom: 8px; }
.map-search input { flex: 1; min-width: 0; }
.map-results { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; max-height: 220px; overflow: auto; background: #fff; }
.map-results button, .map-results div { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-size: 13.5px; cursor: pointer; }
.map-results button:hover { background: #F4F5F7; }
.site-form { display: flex; flex-direction: column; gap: 12px; }
.site-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.site-form input[readonly] { background: #F7F8FA; color: var(--ink-2); }
.site-form .latlng { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-form .latlng input { width: 100%; min-width: 0; }
.site-label { font-weight: 700; font-size: 12px; }

.phone-btn { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.phone-btn:hover { background: #F4F5F7; }
dialog select, dialog input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; background: #fff; }

/* 근무시간 설정 */
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.band { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; border-top-width: 4px; }
.band legend { font-weight: 700; font-size: 14.5px; padding: 0 6px; }
.band.normal { border-top-color: var(--in); }
.band.overtime { border-top-color: #E0902B; }
.band.night { border-top-color: var(--out); }
.band label, .plain-label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.band .help { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
.pum-band { display: block; margin-top: 14px; border-top-color: #7A5AF8; }
.pum-band .help { margin: 0 0 10px; }
.pum-table { border-collapse: collapse; margin-bottom: 10px; width: auto !important; }
.pum-table th { text-align: left; font-size: 12.5px; color: var(--ink-2); font-weight: 600; padding: 0 8px 4px 0; }
.pum-table td { padding: 3px 8px 3px 0; white-space: nowrap; }
.pum-table input { width: 170px !important; min-width: 170px; box-sizing: border-box; font-size: 15px; }
.pum-table input[name=pum_value] { width: 110px !important; min-width: 110px; font-weight: 700; }
.pum-table td:nth-child(2) { min-width: 250px; }
.pum-table .nextday { margin-left: 6px; font-size: 12px; color: var(--out); font-weight: 700; }

/* 출퇴근 기록 (일별/월별/개인별) */
.subtabs { display: flex; gap: 4px; margin: -4px 0 14px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 8px 16px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-label { font-size: 17px; margin: 0 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip { background: #F1F3F6; border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); }
.chip b { color: var(--ink); margin-left: 2px; }
.chip.warn { background: #FFF0D6; color: #A25B00; } .chip.warn b { color: #A25B00; }
.chip.bad { background: var(--neg-bg); color: var(--neg); } .chip.bad b { color: var(--neg); }
.stamp-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 4px; }
.kind { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.kind.in { background: #E3F4EC; color: var(--in-dark); }
.kind.out { background: #E6EBFB; color: var(--out-dark); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #ECEEF2; color: var(--ink-2); }
.status.working { background: #E3F4EC; color: var(--in-dark); }
.status.done { background: #E6EBFB; color: var(--out-dark); }
.status.check { background: var(--neg-bg); color: var(--neg); }
.row-absent td { color: var(--ink-3); }
.weekend-row td:first-child a { color: #C8372D; }
.plain-link { color: inherit; text-decoration: none; } .plain-link:hover { text-decoration: underline; }
tfoot td { border-top: 2px solid var(--ink); background: #FAFBFC; }

.month-wrap { max-height: 70vh; }
.month-grid { font-size: 12px; }
.month-grid th, .month-grid td { padding: 5px 4px; text-align: center; }
.month-grid th.day { min-width: 44px; } .month-grid th.day span { display: block; font-weight: 400; color: var(--ink-3); }
.month-grid th.weekend, .month-grid td.weekend { background: #FBF6F5; }
.month-grid th.today { background: #FFF6DB; }
.month-grid .sticky { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; padding-left: 8px; min-width: 64px; }
.month-grid thead .sticky { background: #FAFBFC; z-index: 3; }
.month-grid td.cell a { display: block; color: var(--ink); text-decoration: none; line-height: 1.35; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 2px 0; }
.month-grid td.cell a:hover { background: #EEF1F6; }
.month-grid td.cell a span { display: block; }
.month-grid td.noted a span:first-child { color: #A25B00; font-weight: 700; }
.month-grid td.working { box-shadow: inset 0 -3px 0 #E0902B; }
.month-grid td.check { box-shadow: inset 0 -3px 0 var(--neg); }
.month-grid td.outside a { outline: 1.5px dashed #E3B9B2; }
.month-grid .k-out, .month-grid .k-in { color: var(--neg) !important; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 3px 0 10px; background: #fff; border: 1px solid var(--line); }
.legend.noted { background: #FFF0D6; } .legend.working { box-shadow: inset 0 -3px 0 #E0902B; }
.legend.check { box-shadow: inset 0 -3px 0 var(--neg); } .legend.outside { outline: 1.5px dashed #E3B9B2; }

dialog.wide-dlg { width: min(560px, calc(100vw - 32px)); }
dialog h4 { margin: 0 0 10px; font-size: 14.5px; }
dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { dialog .two { grid-template-columns: 1fr; } }
.rec-box, .add-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.add-box { background: #FAFBFC; }

/* 홈 화면에 추가 안내 */
.install-tip { background: #F1F3F6; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.install-more { text-align: center; font-size: 14px; margin: 0 0 8px; }
.ico { display: inline-block; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 4px; font-size: 12px; line-height: 1.4; font-weight: 700; }
.guide-list details { border-top: 1px solid var(--line); padding: 10px 0; }
.guide-list summary { font-weight: 700; cursor: pointer; }
.guide-list .ios-steps { margin-top: 10px; }

/* 하루 수정 창: 로그(버튼 기록 원본)는 접어서 */
#dayLogWrap { margin-top: 4px; }
#dayLogs { margin-top: 10px; max-height: 45vh; overflow: auto; }
.log-row { border-top: 1px solid var(--line); padding: 8px 0; }
.log-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.log-line small { color: var(--ink-3); }
.log-actions { margin-left: auto; display: flex; gap: 6px; }
.log-edit { background: #FAFBFC; border-radius: 10px; padding: 10px; margin-top: 8px; }
