/* ═══════════════════════════════════════════════════════════════
   WAC 인트라넷 — 현장에서 폰으로 보는 도구.
   원칙 셋:
     1) 색은 '표시'에만 쓴다. 면 전체를 칠하면 글씨가 안 읽힌다.
     2) 상자 안의 상자를 만들지 않는다. 경계선 대신 여백으로 나눈다.
     3) 폰에서 손가락이 닿는 곳(하단 탭)에 이동 수단을 둔다.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --ink: #16181d;          /* 상단바·하단탭 */
  --ink-2: #262b34;
  --text: #1b1f27;
  --muted: #6f7681;
  --faint: #9aa1ac;
  --line: #e7e7e1;
  --line-2: #f0f0ec;
  --accent: #d93a2b;       /* WAC 레드 — 오늘·긴급에만 */

  --shoot: #c93c33;
  --edit: #6249b4;
  --meet: #2b6cb0;
  --deliver: #2f7d4f;
  --etc: #7d838d;
  --warn: #b06f10;

  --r: 12px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 1px 3px rgba(22, 24, 29, .04);
  --mono: ui-monospace, "SF Mono", Menlo, "Noto Sans Mono", monospace;
  --tab-h: 58px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums;
        letter-spacing: -.01em; }
.dim { color: var(--muted); }
.faint { color: var(--faint); }

/* ── 상단바 ─────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 52px;
  background: var(--ink); color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.brand { font-weight: 800; letter-spacing: .16em; font-size: 15px; flex: none; }
.brand-dot { color: var(--accent); font-size: 9px; vertical-align: 3px; margin-left: 1px; }
.top nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.top nav a {
  color: #b9bfca; font-size: 14px; padding: 7px 11px; border-radius: 7px;
  white-space: nowrap;
}
.top nav a:hover { color: #fff; }
.top nav a.on { background: var(--ink-2); color: #fff; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 6px; flex: none; }
.bell { position: relative; display: grid; place-items: center;
        width: 34px; height: 34px; border-radius: 8px; font-size: 17px;
        line-height: 1; }
.bell:hover, .bell.on { background: var(--ink-2); }
.badge {
  position: absolute; top: 3px; right: 2px; background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 700; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
  border: 1.5px solid var(--ink); box-sizing: content-box;
}
.logout { color: #8b929d; font-size: 13px; padding: 6px 8px; }

main { padding: 18px 16px 28px; max-width: 1120px; margin: 0 auto; }

/* ── 하단 탭 (폰 전용) ───────────────────────────────────────── */
.tabbar { display: none; }

/* ── 공통 요소 ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 9px;
}
.page-head { margin-bottom: 16px; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.page-help { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 62ch; }
.head-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 15px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  white-space: nowrap; box-shadow: var(--shadow);
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.btn.danger { color: var(--accent); border-color: #f0c9c4; background: #fff; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.ghost { box-shadow: none; background: transparent; border-color: transparent;
             color: var(--muted); }
:focus-visible { outline: 2px solid var(--meet); outline-offset: 2px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.section { margin-top: 20px; }
.section > .eyebrow { display: flex; align-items: center; gap: 8px; }
.section > .eyebrow .more-link { margin-left: auto; color: var(--muted);
                                 text-transform: none; letter-spacing: 0; font-weight: 500; }
.count { color: var(--muted); font-weight: 600; }
.empty {
  color: var(--muted); font-size: 14px; padding: 18px 16px; text-align: center;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
}
.empty a { color: var(--meet); font-weight: 600; }

/* 태그 — 옅은 배경 + 진한 글씨. 면을 통째로 칠하지 않는다. */
.tag {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; line-height: 1.35;
}
.t-shoot   { background: #fbeceb; color: var(--shoot); }
.t-edit    { background: #efecfa; color: var(--edit); }
.t-meet    { background: #e9f1fa; color: var(--meet); }
.t-deliver { background: #e8f4ec; color: var(--deliver); }
.t-etc     { background: #f0f1f3; color: var(--etc); }
.t-warn    { background: #fdf2e2; color: var(--warn); }
.t-dark    { background: #eceef1; color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.d-shoot { background: var(--shoot); } .d-edit { background: var(--edit); }
.d-meet { background: var(--meet); } .d-deliver { background: var(--deliver); }
.d-etc { background: var(--etc); } .d-dark { background: var(--ink); }
.d-warn { background: var(--warn); }

/* ── 목록 행 (모든 목록의 기본형) ────────────────────────────── */
.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
        overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  border-top: 1px solid var(--line-2); position: relative;
}
.row:first-child { border-top: 0; }
.row-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em;
             overflow-wrap: anywhere; }
.row-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
            font-size: 12.5px; color: var(--muted); }
.row-act { flex: none; display: flex; gap: 6px; }
.row.muted { opacity: .55; }
.chip { font-size: 11.5px; padding: 2px 7px; border-radius: 5px;
        background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.chip.out { background: #fbeceb; border-color: #f3d5d2; color: var(--shoot); }
.chip.in { background: #e8f4ec; border-color: #cfe7d7; color: var(--deliver); }
.path { font-family: var(--mono); font-size: 11.5px; color: var(--faint);
        overflow-wrap: anywhere; }

/* ── 알림 배너 ──────────────────────────────────────────────── */
.alerts { display: grid; gap: 7px; margin-top: 16px; }
.alert {
  display: flex; gap: 9px; align-items: baseline; padding: 11px 14px;
  border-radius: var(--r-sm); font-size: 13.5px; background: #fdf6e9;
  border-left: 3px solid var(--warn); color: #5c4408;
}
.alert.hot { background: #fdeeec; border-left-color: var(--accent); color: #7a2018; }
.alert b { flex: none; font-size: 12.5px; }
.alert span { min-width: 0; }

/* ── 홈 ─────────────────────────────────────────────────────── */
.hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-date { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.hero-day { color: var(--muted); font-size: 15px; }
.me {
  margin-top: 14px; background: var(--ink); border-radius: var(--r);
  padding: 15px 16px; color: #fff;
}
.me-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.me-head b { font-size: 14px; font-weight: 600; }
.me-head span { color: #8f97a3; font-size: 12px; }
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
            margin-bottom: 12px; }
.me-stat { background: #1f242c; border-radius: var(--r-sm); padding: 9px 4px;
           text-align: center; }
.me-stat b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 700; }
.me-stat span { font-size: 11px; color: #8f97a3; }
.me-stat.has b { color: #ffd9a0; }
.me-list { display: grid; gap: 2px; }
.me-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
           background: #1f242c; border-radius: var(--r-sm); font-size: 13.5px; }
.me-item .lbl { color: #8f97a3; font-size: 11px; flex: none; }
.me-item .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                white-space: nowrap; }
.me-item .when { color: #8f97a3; font-size: 11.5px; flex: none;
                 font-family: var(--mono); }
.me-none { color: #767e8a; font-size: 12.5px; padding: 6px 2px; }

/* 이번 주 스트립 */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wday {
  background: var(--surface); border-radius: var(--r-sm); padding: 8px 2px 9px;
  text-align: center; box-shadow: var(--shadow);
}
.wday .dow { display: block; font-size: 10.5px; color: var(--faint); }
.wday .num { display: block; font-family: var(--mono); font-size: 16px;
             font-weight: 700; margin: 1px 0 4px; }
.wday.today { background: var(--ink); }
.wday.today .dow { color: #9aa3b0; }
.wday.today .num { color: #fff; }
.wday .dots { display: flex; gap: 2px; justify-content: center; min-height: 6px;
              flex-wrap: wrap; }
.wday .dots i { width: 5px; height: 5px; border-radius: 50%; }

/* 단계 요약 */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stage {
  background: var(--surface); border-radius: var(--r-sm); padding: 11px 3px;
  text-align: center; box-shadow: var(--shadow);
}
.stage b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 700; }
.stage span { font-size: 11px; color: var(--muted); }
.stage.zero b { color: var(--faint); }

/* ── 캘린더 ─────────────────────────────────────────────────── */
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; flex: 1; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav a { width: 34px; height: 34px; display: grid; place-items: center;
             border-radius: 8px; background: var(--surface); box-shadow: var(--shadow);
             font-size: 16px; color: var(--muted); }

/* 필터: 한 줄 칩 + 접히는 상세 */
.filters { margin-bottom: 14px; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
             scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.pill {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  box-shadow: var(--shadow); cursor: pointer;
}
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pill b { font-family: var(--mono); margin-left: 4px; }
.filter-more { margin-top: 9px; display: none; gap: 10px; align-items: center;
               flex-wrap: wrap; }
.filter-more.open { display: flex; }
.filter-more select { padding: 7px 10px; border: 1px solid var(--line);
                      border-radius: 8px; background: var(--surface); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
         color: var(--muted); }

/* 월 그리드 */
.grid { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
        overflow: hidden; }
.grid-dow { display: grid; grid-template-columns: repeat(7, 1fr);
            background: var(--surface-2); border-bottom: 1px solid var(--line); }
.grid-dow span { text-align: center; padding: 8px 0; font-size: 11px; font-weight: 600;
                 color: var(--faint); }
.grid-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.cell { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
        padding: 6px 6px 8px; min-height: 92px; }
.cell:nth-child(7n) { border-right: 0; }
.cell.out { background: var(--surface-2); }
.cell.out .cell-num { color: var(--faint); }
.cell-num { font-family: var(--mono); font-size: 12.5px; font-weight: 600;
            display: block; margin-bottom: 4px; }
.cell.today .cell-num { background: var(--accent); color: #fff; border-radius: 6px;
                        display: inline-block; padding: 1px 6px; }
.ev {
  display: block; font-size: 11.5px; padding: 3px 6px 3px 8px; border-radius: 5px;
  margin-top: 3px; background: var(--surface-2); position: relative;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 3px solid var(--etc);
}
.ev.e-shoot { border-left-color: var(--shoot); background: #fdf4f3; }
.ev.e-edit { border-left-color: var(--edit); background: #f5f3fc; }
.ev.e-meet { border-left-color: var(--meet); background: #eff5fb; }
.ev.e-deliver { border-left-color: var(--deliver); background: #eff7f2; }
.ev.e-etc { border-left-color: var(--etc); background: #f4f5f6; }
.ev.e-due { border-left-color: var(--ink); background: #f1f2f4; font-weight: 600; }
.ev.e-loan { border-left-color: var(--faint); background: var(--surface-2);
             color: var(--muted); }
.ev .t { font-family: var(--mono); color: var(--muted); margin-right: 3px; }
.cell-dots { display: none; }
.day-panel { display: none; }
.legend { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* ── 보드 ───────────────────────────────────────────────────── */
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; }
.col { min-width: 230px; flex: 1; background: #eeeeea; border-radius: var(--r);
       padding: 9px; }
.col h2 { font-size: 12px; font-weight: 700; color: var(--muted); padding: 3px 5px 7px;
          letter-spacing: .04em; }
.pcard { background: var(--surface); border-radius: var(--r-sm); padding: 11px 12px;
         margin-top: 7px; box-shadow: var(--shadow); }
.pcard.due-soon { border-left: 3px solid var(--accent); }
.pcard .cl { font-size: 12.5px; color: var(--muted); }
.pcard .mt { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.move-btn { margin-top: 9px; font-size: 12px; padding: 5px 9px; border-radius: 7px;
            border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }

/* ── 폼 ─────────────────────────────────────────────────────── */
.form { background: var(--surface); border-radius: var(--r); padding: 18px;
        box-shadow: var(--shadow); display: grid; gap: 13px; max-width: 540px; }
.form.wide { max-width: 780px; }
.form h1 { font-size: 18px; font-weight: 700; }
.form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted);
              font-weight: 600; }
.form input, .form select, .form textarea {
  padding: 11px 12px; font-size: 16px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); font-weight: 400;
  color: var(--text);
}
.form textarea { resize: vertical; line-height: 1.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.danger-zone { max-width: 540px; margin-top: 12px; text-align: right; }
.error { color: var(--accent); font-size: 13.5px; background: #fdeeec;
         padding: 9px 12px; border-radius: var(--r-sm); }

/* 사람 선택 */
.people { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px;
          background: var(--surface-2); }
.people legend { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 5px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
               gap: 5px; }
.form label.person, .person {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 400; color: var(--text);
}
.person:has(input:checked) { border-color: var(--ink); background: #eef0f3; }
.form .person input, .person input { width: 17px; height: 17px; flex: none; margin: 0;
                                     padding: 0; accent-color: var(--ink); }
.person-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.person-name em { font-style: normal; font-size: 11px; color: var(--faint); }

/* ── 로그인 ─────────────────────────────────────────────────── */
.login { display: grid; place-items: center; min-height: 100vh; background: var(--ink);
         padding: 20px; }
.login-box { display: grid; gap: 12px; width: min(340px, 100%); background: var(--surface);
             padding: 28px 24px; border-radius: 16px; }
.login-box h1 { font-size: 19px; letter-spacing: .1em; font-weight: 800; }
.login-box input { padding: 13px; font-size: 16px; border: 1px solid var(--line);
                   border-radius: var(--r-sm); }
.login-box button { padding: 13px; font-size: 16px; background: var(--ink); color: #fff;
                    border: 0; border-radius: var(--r-sm); font-weight: 700;
                    cursor: pointer; }

/* ── 외장하드 ───────────────────────────────────────────────── */
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
              gap: 11px; }
.drive { background: var(--surface); border-radius: var(--r); padding: 14px;
         box-shadow: var(--shadow); }
.drive-head { display: flex; align-items: center; gap: 8px; }
.drive-label { font-family: var(--mono); font-size: 15px; font-weight: 700; flex: 1;
               overflow-wrap: anywhere; }
.drive-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden;
       margin-top: 9px; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.bar i.full { background: var(--accent); }
.drive-items { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 3px; }
.drive-items li a { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.drive-items .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-memo { font-size: 11.5px; color: var(--muted); margin-top: 9px;
              border-top: 1px solid var(--line-2); padding-top: 8px; }

/* ── 공지·정보 ──────────────────────────────────────────────── */
.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
              gap: 9px; margin-bottom: 18px; }
.info-card { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px;
             display: grid; gap: 4px; }
.info-card b { font-size: 14px; }
.info-card span { font-size: 11.5px; color: #8f97a3; overflow: hidden;
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice { background: var(--surface); border-radius: var(--r); padding: 15px;
          box-shadow: var(--shadow); }
.notice.pinned { border-left: 3px solid var(--ink); }
.notice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-title { font-size: 15.5px; font-weight: 700; flex: 1; }
.notice-body { margin-top: 8px; white-space: pre-wrap; font-size: 14px; color: #333a45; }
.doc { white-space: pre-wrap; font-size: 15px; line-height: 1.75; padding: 18px; }

/* 계정 */
.users { width: 100%; background: var(--surface); border-collapse: collapse;
         border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
         margin-bottom: 18px; }
.users th, .users td { padding: 10px 12px; text-align: left; font-size: 13.5px;
                       border-bottom: 1px solid var(--line-2); }
.users th { background: var(--surface-2); color: var(--muted); font-size: 11.5px;
            font-weight: 700; }
.inline-form select { padding: 5px 7px; font-size: 12.5px; border: 1px solid var(--line);
                      border-radius: 6px; background: var(--surface); }

/* 알림 */
.notif.unread { background: #fffaf2; }
.notif.unread .row-bar { background: var(--accent); }
.push-box { padding: 15px; display: grid; gap: 10px; }
.push-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* 더보기 (폰) */
.more-list { display: grid; gap: 2px; }
.more-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px;
             background: var(--surface); font-size: 15px; font-weight: 500;
             border-top: 1px solid var(--line-2); }
.more-item:first-child { border-top: 0; }
.more-item .ico { font-size: 17px; width: 22px; text-align: center; }
.more-item .arrow { margin-left: auto; color: var(--faint); }

/* ── 폰 ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  main { padding: 14px 13px calc(var(--tab-h) + 22px); }
  .top nav { display: none; }              /* 이동은 하단 탭이 맡는다 */
  .top { gap: 10px; }
  .top-right { margin-left: auto; }
  .logout { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); height: var(--tab-h);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: grid; place-items: center; gap: 2px; color: #868e9b;
              font-size: 10.5px; padding-top: 8px; }
  .tabbar a .ti { font-size: 18px; line-height: 1; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .ti { transform: translateY(-1px); }

  .page-title { font-size: 19px; }
  .hero-date { font-size: 21px; }
  .me-stats { gap: 6px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .drive-grid, .info-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .board { flex-direction: column; }
  .col { min-width: 0; }
  .row { padding: 12px 14px; }
  .row-act .btn { padding: 7px 12px; }

  /* 캘린더: 월 조망(점) + 아래 하루 상세 */
  .cell { min-height: 0; padding: 5px 2px 6px; text-align: center; }
  .cell.out { opacity: .45; }
  .cell-num { font-size: 13px; margin-bottom: 3px; }
  .cell .ev { display: none; }
  .cell-dots { display: flex; gap: 2px; justify-content: center; min-height: 6px; }
  .cell-dots i { width: 5px; height: 5px; border-radius: 50%; }
  .cell.sel { background: #eef0f3; box-shadow: inset 0 0 0 2px var(--ink); }
  .day-panel { display: block; margin-top: 12px; }
  .day-panel h3 { font-size: 13px; font-weight: 700; color: var(--muted);
                  margin-bottom: 8px; display: flex; align-items: baseline; gap: 7px; }
  .legend { display: none; }

  /* 화면마다 주된 동작 하나를 손 닿는 곳에 */
  .fab {
    position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px); z-index: 35;
    width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff;
    display: grid; place-items: center; font-size: 24px; font-weight: 300;
    box-shadow: 0 4px 14px rgba(22, 24, 29, .28);
  }
  /* 폰에선 같은 동작이 FAB에 있으므로 헤더 버튼은 숨긴다 */
  .hide-phone { display: none !important; }
  /* 검색줄이 세 줄로 흩어지지 않게: 입력은 한 줄 통으로, 아래에 하드+찾기 */
  .filter-more input[name="q"] { flex: 1 0 100%; }
  .filter-more select { flex: 1; min-width: 0; }
  .badge { top: -1px; right: -1px; }
}

@media (min-width: 761px) {
  .fab { display: none; }
  .page-head { display: flex; justify-content: space-between; align-items: flex-start;
               gap: 14px; }
  .head-actions { margin-top: 0; }
  .home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .home-cols .section { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
