:root {
  /* 목양수첩 3차본: 짙은 먹색 틀 안에 밝은 작업면을 둔 관리 콘솔. 강조는 비취색 하나, 놋쇠색 가는 선은 화면마다 가장 중요한 한 곳에만. */
  --paper: #F0F2F6;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --surface-3: #E8ECF2;
  --ink: #0B1220;
  --ink-2: #485264;
  --ink-3: #8590A2;
  --line: #E1E5EC;
  --line-2: #CBD2DD;
  --accent: #0B7A62;
  --accent-2: #109A7B;
  --accent-ink: #FFFFFF;
  --accent-soft: #E0F3EC;
  --brass: #B2852C;
  --brass-soft: #F8F0DC;
  --warn: #A25E08;
  --warn-soft: #FCF0DA;
  --crit: #BF342A;
  --crit-soft: #FBE7E4;
  --info: #2A57CB;
  --info-soft: #E6ECFB;
  --shell: #090F1D;
  --shell-2: #0F192D;
  --shell-3: #1A2742;
  --shell-ink: #EDF1F7;
  --shell-mute: #8D99AF;
  --shell-line: rgba(255, 255, 255, .08);
  --shell-accent: #3AD6AA;
  --shell-brass: #E2BB6A;
  --font-display: 'Manrope', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --font-body: 'Manrope', 'Noto Sans KR', 'Malgun Gothic', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 6px 20px rgba(11, 18, 32, .05);
  --shadow-2: 0 2px 6px rgba(11, 18, 32, .08), 0 24px 56px rgba(11, 18, 32, .18);
  --tab-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #060A13;
    --surface: #0D1525;
    --surface-2: #131D31;
    --surface-3: #1B2740;
    --ink: #E9EEF6;
    --ink-2: #A5B0C4;
    --ink-3: #6C788F;
    --line: #1E2940;
    --line-2: #2C3A56;
    --accent: #2AC498;
    --accent-2: #46D9AE;
    --accent-ink: #04130E;
    --accent-soft: #0F2E27;
    --brass: #E2BB6A;
    --brass-soft: #2D2512;
    --warn: #E8B55F;
    --warn-soft: #33290F;
    --crit: #F08F82;
    --crit-soft: #3A1B18;
    --info: #8FB1F6;
    --info-soft: #162545;
    --shell: #04070E;
    --shell-2: #080D19;
    --shell-3: #152038;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #060A13;
  --surface: #0D1525;
  --surface-2: #131D31;
  --surface-3: #1B2740;
  --ink: #E9EEF6;
  --ink-2: #A5B0C4;
  --ink-3: #6C788F;
  --line: #1E2940;
  --line-2: #2C3A56;
  --accent: #2AC498;
  --accent-2: #46D9AE;
  --accent-ink: #04130E;
  --accent-soft: #0F2E27;
  --brass: #E2BB6A;
  --brass-soft: #2D2512;
  --warn: #E8B55F;
  --warn-soft: #33290F;
  --crit: #F08F82;
  --crit-soft: #3A1B18;
  --info: #8FB1F6;
  --info-soft: #162545;
  --shell: #04070E;
  --shell-2: #080D19;
  --shell-3: #152038;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { transition: background-color .12s, border-color .12s, color .12s, box-shadow .12s; }
img { max-width: 100%; }
a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.num { font-variant-numeric: tabular-nums; }

/* ── 틀 ─────────────────────────────────────────────────────────── */
.app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: 100%; }

.boot { grid-area: 1 / 1 / -1 / -1; display: grid; place-content: center; gap: 6px; text-align: center; padding: 24px; }
.boot-name { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.boot-sub { color: var(--ink-2); }

.test-gate {
  grid-area: 1 / 1 / -1 / -1;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
}
.test-login { width: min(100%, 390px); padding: 28px; gap: 16px; }
.test-login h1, .test-login p { margin: 0; }
.test-login .btn { justify-content: center; min-height: 42px; }
.test-login-error { color: var(--ink); font-weight: 700; }
.test-sync { color: var(--ink-2); display: flex; align-items: center; gap: 5px; font-size: 12px; }

.brand-mark { --s: 32px; width: var(--s); height: var(--s); flex: none; display: grid; border-radius: 30%; background: linear-gradient(145deg, #14A886, #075A49); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px rgba(11, 122, 98, .35); }
.brand-mark .rib { fill: var(--shell-brass); }

.topbar { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.topbar .spacer { flex: 1; }
.crumbs { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; }
.crumbs b { color: var(--ink); font-weight: 600; }
.today-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }

.role-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 62vw; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; box-shadow: 0 1px 2px rgba(11, 18, 32, .04); }
.role-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.role-chip .who { display: grid; text-align: left; line-height: 1.2; min-width: 0; }
.role-chip .who b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-chip .who small { font-size: 11.5px; color: var(--ink-3); }

.sidebar { display: none; }

.main { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; background: radial-gradient(880px 420px at 100% -80px, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--paper); }
.page { max-width: 1240px; margin: 0 auto; padding: 20px 16px 36px; display: grid; gap: 16px; }

.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.tabbar button { height: var(--tab-h); display: grid; place-content: center; justify-items: center; gap: 4px; border: 0; background: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; cursor: pointer; position: relative; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar button[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 34%; right: 34%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar .dot { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--crit); color: #fff; font-size: 10.5px; line-height: 16px; text-align: center; }

.preview-bar { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--info-soft); color: var(--info); font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--line); }
.preview-bar .btn { margin-left: auto; }

@media (min-width: 900px) {
  .app { grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .tabbar { display: none; }
  .topbar { grid-column: 2; grid-row: 1; padding: 0 32px; min-height: 60px; background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .main { grid-column: 2; grid-row: 2; }
  .sidebar { position: relative; display: flex; flex-direction: column; gap: 2px; grid-column: 1; grid-row: 1 / -1; padding: 18px 12px 14px; overflow-y: auto; scrollbar-width: none; color: var(--shell-ink); background: radial-gradient(130% 46% at 0% 0%, rgba(58, 214, 170, .13), transparent 62%), linear-gradient(180deg, var(--shell-2), var(--shell)); }
  .sidebar .brand-lock { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
  .sidebar .brand-lock .txt { display: grid; line-height: 1.2; min-width: 0; }
  .sidebar .brand-lock b { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
  .sidebar .brand-lock small { color: var(--shell-mute); font-size: 12px; }
  .sidebar nav { display: grid; gap: 2px; }
  .sidebar .nav-cap { padding: 14px 12px 6px; color: var(--shell-mute); font-size: 11px; font-weight: 600; letter-spacing: .08em; opacity: .8; }
  .sidebar .nav-cap:first-child { padding-top: 2px; }
  .sidebar nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius-s); background: none; text-align: left; font-size: 14.5px; font-weight: 500; color: var(--shell-mute); cursor: pointer; }
  .sidebar nav button:hover { background: rgba(255, 255, 255, .05); color: var(--shell-ink); }
  .sidebar nav button[aria-current="page"] { background: linear-gradient(90deg, rgba(58, 214, 170, .18), rgba(58, 214, 170, .04)); color: #fff; font-weight: 600; }
  .sidebar nav button[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--shell-accent); }
  .sidebar nav button[aria-current="page"] .ico { color: var(--shell-accent); }
  .sidebar nav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--crit); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
  .sidebar .foot { margin-top: auto; display: grid; gap: 10px; padding: 16px 8px 0; border-top: 1px solid var(--shell-line); }
  .sidebar .foot-note { color: var(--shell-mute); font-size: 12px; line-height: 1.5; }
  .sidebar .foot-links { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--shell-mute); }
  .sidebar .link-btn { color: var(--shell-mute); }
  .sidebar .link-btn:hover { color: var(--shell-ink); }
  .page { padding: 28px 32px 56px; gap: 20px; }
}

/* ── 제목 줄 ────────────────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.page-head h1 { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.page-head .lede { color: var(--ink-2); font-size: 14px; }
.page-head .title { display: grid; gap: 4px; min-width: 0; flex: 1 1 240px; }
.page-head .title::before { content: ''; width: 28px; height: 3px; margin-bottom: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--brass), color-mix(in srgb, var(--brass) 25%, transparent)); }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; justify-self: start; }
.back:hover { color: var(--ink); }

@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }

/* ── 카드 ───────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.card-head h2 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.card-head .meta { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.card.flat { box-shadow: none; }

.grid-2 { display: grid; gap: 16px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
  .card { padding: 22px; }
}

/* ── 버튼·칩 ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgba(11, 18, 32, .04); }
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(11, 122, 98, .3), 0 4px 12px rgba(11, 122, 98, .16); }
.btn.primary:hover { filter: brightness(1.06); background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); box-shadow: none; }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-content: center; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.ico { display: inline-grid; place-content: center; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.accent:not(:has(.ico))::before, .chip.warn:not(:has(.ico))::before, .chip.crit:not(:has(.ico))::before, .chip.info:not(:has(.ico))::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.chip-btn:hover { border-color: var(--line-2); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.chip-btn .n { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }
.chip-btn[aria-pressed="true"] .n { background: color-mix(in srgb, var(--surface) 22%, transparent); color: var(--surface); }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.link-btn:hover { color: var(--accent); text-decoration-color: currentColor; }
.matrix .link-btn { color: var(--accent); display: block; margin-top: 2px; }
.locked { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px; }

/* ── 얼굴 ───────────────────────────────────────────────────────── */
.avatar { --s: 44px; width: var(--s); height: var(--s); flex: none; display: block; border-radius: 50%; overflow: hidden; background: var(--surface-3); }
.avatar svg, .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.square { border-radius: 26%; }
.avatar.ini { --h: #2A57CB; display: grid; place-content: center; background: color-mix(in srgb, var(--h) 13%, var(--surface)); color: color-mix(in srgb, var(--h) 76%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 18%, transparent); font-family: var(--font-display); font-size: calc(var(--s) * .34); font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.avatar.ini.one { font-size: calc(var(--s) * .42); }
.avatar.av0 { --h: #2A57CB; }
.avatar.av1 { --h: #0B7A62; }
.avatar.av2 { --h: #6B46C6; }
.avatar.av3 { --h: #BE3F68; }
.avatar.av4 { --h: #A6650A; }
.avatar.av5 { --h: #0D7392; }
.avatar.av6 { --h: #4A5568; }
.avatar.av7 { --h: #8B3E8E; }
.avatar.mono { display: grid; place-content: center; background: linear-gradient(145deg, var(--shell-3), var(--shell)); color: var(--shell-brass); font-family: var(--font-display); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(226, 187, 106, .35); }

.person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-s); background: none; text-align: left; cursor: pointer; min-width: 0; }
.person-row:hover { background: var(--surface-2); }
.person-row .name { font-weight: 600; }
.person-row .sub { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .txt { display: grid; min-width: 0; flex: 1; }
.person-row .side { color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-align: right; flex: none; }

.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.face { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: center; min-width: 0; }
.face:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.face .name { font-weight: 600; font-size: 14.5px; }
.face .sub { color: var(--ink-3); font-size: 12px; line-height: 1.35; }

/* ── 오늘의 목양 ────────────────────────────────────────────────── */
.today-date { font-family: var(--font-display); }
.signal { display: grid; gap: 8px; padding: 13px 14px 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 12px; background: var(--surface-2); }
.signal.high { border-left-color: var(--crit); background: linear-gradient(90deg, var(--crit-soft), var(--surface) 62%); }
.signal.medium { border-left-color: var(--warn); background: linear-gradient(90deg, var(--warn-soft), var(--surface) 62%); }
.signal h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.signal .desc { font-size: 13px; color: var(--ink-2); }
.signal .who { display: grid; gap: 2px; }
.signal .person-row { padding: 6px; }
.signal .person-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

.event-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 6px 4px; }
.event-kind { width: 42px; height: 42px; border-radius: 12px; display: grid; place-content: center; font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.event-kind.k-funeral { background: var(--shell-3); color: var(--shell-ink); }
.event-kind.k-wedding { background: var(--crit-soft); color: var(--crit); }
.event-kind.k-birth { background: var(--info-soft); color: var(--info); }
.event-kind.k-hospital { background: var(--warn-soft); color: var(--warn); }
.event-kind.k-birthday { background: var(--accent-soft); color: var(--accent); }

.att-total { display: flex; align-items: baseline; gap: 10px; }
.att-total .big { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar i.absent { background: var(--ink-3); opacity: .45; }
.att-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }

.feed { display: grid; gap: 2px; }
.feed-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 9px 6px; border-radius: var(--radius-s); align-items: start; text-align: left; border: 0; background: none; width: 100%; cursor: pointer; }
.feed-item:hover { background: var(--surface-2); }
.feed-item .ico-wrap { width: 34px; height: 34px; border-radius: 10px; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent); }
.feed-item .ico-wrap.k-visit { background: var(--info-soft); color: var(--info); }
.feed-item .ico-wrap.k-prayer { background: var(--warn-soft); color: var(--warn); }
.feed-item .ico-wrap.k-life_event { background: var(--crit-soft); color: var(--crit); }
.feed-item .ico-wrap.k-thanks { background: var(--brass-soft); color: var(--brass); }
.feed-item .line1 { font-size: 14px; }
.feed-item .line1 b { font-weight: 700; }
.feed-item .line2 { color: var(--ink-3); font-size: 12px; }

.todo { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; }
.todo input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.todo .t { font-weight: 600; }
.todo.done .t { text-decoration: line-through; color: var(--ink-3); }

/* ── 교인 찾기 ──────────────────────────────────────────────────── */
.searchbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink-3); box-shadow: 0 1px 2px rgba(11, 18, 32, .04); }
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbar input[type], .searchbar input[type]:focus { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; font-size: 15.5px; color: var(--ink); }
.facets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.facets::-webkit-scrollbar { display: none; }

.people-layout { display: grid; gap: 16px; align-items: start; }
.filters { display: none; }
.filters h3 { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 6px; }
.filter-group { display: grid; gap: 6px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .count { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.toolbar .spacer { flex: 1; }

.list { display: grid; gap: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .01em; color: var(--ink-3); padding: 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.wrap { white-space: normal; min-width: 180px; }
.tbl td.addr { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.tbl .name-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl th button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 3px; }
.tbl th button:hover { color: var(--ink); }

@media (min-width: 900px) {
  .people-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 20px; }
  .filters { display: grid; gap: 16px; position: sticky; top: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .only-narrow { display: none !important; }
}
@media (max-width: 899px) { .only-wide { display: none !important; } }

/* ── 폼 ─────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; min-width: 0; }
.filter-group, .filters > *, .pair > *, .toolbar > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint, .hint { font-size: 12px; color: var(--ink-3); }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); outline: none; font-size: 16px; transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (min-width: 900px) {
  input[type="text"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], select, textarea { font-size: 14.5px; }
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; }
.seg-item label { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg-item input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.seg-item input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkline input { width: 17px; height: 17px; accent-color: var(--accent); }
.copy-area { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px !important; white-space: pre; }

/* ── 시트 ───────────────────────────────────────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(6, 10, 20, .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-height: 92%; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-2); outline: none; animation: rise .18s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 22px; }
.sheet-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.sheet-body { overflow-y: auto; padding: 4px 22px 22px; display: grid; gap: 14px; align-content: start; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 22px 22px; }
.sheet-foot .btn { flex: 1; }
.confirm-msg { color: var(--ink-2); }
@keyframes rise { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .sheet-backdrop { align-items: center; }
  .sheet { width: min(540px, 92vw); border-radius: 22px; max-height: 86%; }
  .sheet.wide { width: min(880px, 94vw); }
  .sheet-foot .btn { flex: none; min-width: 96px; }
}
@media (max-width: 899px) { .sheet-foot { border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .main { scroll-behavior: auto; } button { transition: none; } }

.menu-list { display: grid; gap: 6px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.menu-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.menu-item[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.menu-item .txt { display: grid; min-width: 0; flex: 1; }
.menu-item .txt b { font-weight: 700; }
.menu-item .txt small { color: var(--ink-2); font-size: 12.5px; }
.menu-item > .ico { color: var(--ink-3); }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + 14px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; padding: 11px 18px; border-radius: 12px; background: var(--shell-2); color: var(--shell-ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-2); border: 1px solid var(--shell-line); transition: opacity .4s; }
.toast.bad { background: var(--crit); color: #fff; border-color: transparent; }
.toast.out { opacity: 0; }
@media (min-width: 900px) { .toasts { bottom: 28px; } }

.empty { padding: 26px 12px; text-align: center; color: var(--ink-2); font-size: 14px; }
.empty .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ── 한 사람 ────────────────────────────────────────────────────── */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.profile .photo { position: relative; }
.profile .photo .cam { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink); color: var(--surface); display: grid; place-content: center; cursor: pointer; }
.profile h1 { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.profile h1 small { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.profile .meta { color: var(--ink-2); font-size: 13.5px; }

.person-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .person-layout { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 300px); gap: 20px; } }
@media (min-width: 900px) and (max-width: 1099px) { .person-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.briefing { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(58, 214, 170, .2), transparent 55%), linear-gradient(150deg, var(--shell-3), var(--shell)); border-color: transparent; color: var(--shell-ink); box-shadow: var(--shadow-2); }
.briefing h2 { color: var(--shell-brass); }
.briefing .meta { color: var(--shell-mute); }
.briefing ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.briefing li::marker { color: var(--shell-accent); }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.subhead { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }
.subhead:first-child { border-top: 0; padding-top: 0; }

.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot-a { width: 16px; height: 16px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line); }
.dot-a.present { background: var(--accent); border-color: var(--accent); }
.dot-a.absent { background: var(--crit-soft); border-color: var(--crit); }
.dots.s .dot-a { width: 11px; height: 11px; border-radius: 3px; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 62px 18px 1fr; gap: 0 8px; }
.tl-item .when { text-align: right; color: var(--ink-3); font-size: 12px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl-item .rail { position: relative; }
.tl-item .rail::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item .rail i { position: absolute; left: 3px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink-3); }
.tl-item.t-visit .rail i { border-color: var(--info); }
.tl-item.t-note .rail i { border-color: var(--accent); }
.tl-item.t-prayer .rail i { border-color: var(--warn); }
.tl-item.t-life_event .rail i { border-color: var(--crit); }
.tl-item.t-thanks .rail i { border-color: var(--brass); }
.tl-item .what { padding-bottom: 16px; min-width: 0; }
.tl-item .what h3 { font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-item .what p { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.tl-item .what .by { font-size: 12px; color: var(--ink-3); }

.fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px); z-index: 30; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 24px rgba(11, 122, 98, .35); cursor: pointer; }
@media (min-width: 900px) { .fab { position: static; height: 40px; border-radius: var(--radius-s); font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(11, 122, 98, .3); } }

.gen { display: grid; gap: 8px; }
.gen-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gen-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fam { display: flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; text-align: left; }
.fam:hover { border-color: var(--line-2); }
.fam[disabled] { cursor: default; opacity: .7; }
.fam.self { border-color: var(--accent); background: var(--accent-soft); }
.fam .t { display: grid; line-height: 1.25; }
.fam .t b { font-size: 13.5px; font-weight: 700; }
.fam .t small { font-size: 11.5px; color: var(--ink-2); }

.record-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.record-kinds button { display: grid; justify-items: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; }
.record-kinds button:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.record-kinds b { font-weight: 700; }
.record-kinds small { color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.record-kinds .ico { color: var(--accent); }

/* ── 내 담당·출석 ───────────────────────────────────────────────── */
.flock-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.flock-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.flock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

.att-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.att-tile { position: relative; display: grid; justify-items: center; gap: 7px; padding: 16px 6px 11px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.att-tile .name { font-weight: 700; }
.att-tile .state { font-size: 12px; color: var(--ink-3); min-height: 18px; }
.att-tile.present { border-color: var(--accent); background: var(--accent-soft); }
.att-tile.present .state { color: var(--accent); font-weight: 700; }
.att-tile.absent { border-color: var(--crit); background: var(--crit-soft); }
.att-tile.absent .state { color: var(--crit); font-weight: 700; }
.att-tile.absent .avatar { filter: grayscale(.85); opacity: .7; }
.att-tile.new { border-style: dashed; color: var(--accent); align-content: center; min-height: 128px; }
.att-tile .mark { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center; color: #fff; }
.att-tile.present .mark { background: var(--accent); color: var(--accent-ink); }
.att-tile.absent .mark { background: var(--crit); }
.att-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); }
.reason-link { border: 0; background: none; padding: 0; font-size: 12px; color: var(--crit); text-decoration: underline; cursor: pointer; }

.grid-att td, .grid-att th { text-align: center; padding: 6px 8px; }
.grid-att td.who, .grid-att th.who { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.grid-att th.who { background: var(--surface-2); }
.cell-btn { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 700; cursor: pointer; }
.cell-btn.present { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cell-btn.absent { background: var(--crit-soft); border-color: var(--crit); color: var(--crit); }
.cell-btn.dirty { box-shadow: 0 0 0 2px var(--brass); }
.cell-btn:disabled { cursor: default; opacity: .7; }
.grid-att th.this-week { color: var(--accent); }
.org-tree { display: grid; gap: 4px; }
.org-node { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); text-align: left; cursor: pointer; }
.org-node:hover { border-color: var(--line-2); background: var(--surface-2); }
.org-children { display: grid; gap: 4px; padding-left: 18px; }

/* ── 달력 ───────────────────────────────────────────────────────── */
.cal-head { display: flex; align-items: center; gap: 8px; }
.cal-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.03em; min-width: 132px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal .wd { background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 7px 0; }
.cal .wd.sun { color: var(--crit); }
.cal .day { background: var(--surface); min-height: 58px; padding: 5px; display: grid; align-content: start; gap: 3px; border: 0; text-align: left; cursor: pointer; min-width: 0; }
.cal .day:hover { background: var(--surface-2); }
.cal .day.out { background: var(--paper); color: var(--ink-3); }
.cal .day .n { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 8px; }
.cal .day.sun .n { color: var(--crit); }
.cal .day.today .n { background: var(--ink); color: var(--surface); font-weight: 700; }
.cal .day.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal .marks { display: flex; flex-wrap: wrap; gap: 3px; }
.cal .mk { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.cal .ev { display: none; }
.mk.k-birthday, .ev.k-birthday { background: #0E8F71; }
.mk.k-life_event, .ev.k-life_event { background: #C2392F; }
.mk.k-follow_up, .ev.k-follow_up { background: #B4741A; }
.mk.k-visit_plan, .ev.k-visit_plan { background: #2F5FD3; }
.mk.k-church, .ev.k-church { background: #4A5568; }
.mk.k-anniversary, .ev.k-anniversary { background: #9A4D97; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-row { display: grid; grid-template-columns: 54px 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .mk { width: 10px; height: 10px; border-radius: 50%; }
.agenda-row .d { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.agenda-row.done .t { text-decoration: line-through; color: var(--ink-3); }
@media (min-width: 900px) {
  .cal .day { min-height: 106px; padding: 6px; }
  .cal .marks { display: none; }
  .cal .ev { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.35; padding: 1px 7px; border-radius: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal .more { font-size: 11px; color: var(--ink-3); }
}

/* ── 확인 대기함·권한 ───────────────────────────────────────────── */
.change { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.diff { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; font-size: 14px; }
.diff dt { color: var(--ink-3); font-size: 13px; }
.diff dd { margin: 0; overflow-wrap: anywhere; }
.diff del { color: var(--ink-3); }
.diff ins { text-decoration: none; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.suggest { padding: 10px 12px; border-radius: var(--radius-s); background: var(--info-soft); color: var(--info); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }

.matrix td, .matrix th { text-align: center; }
.matrix td.pos, .matrix th.pos { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.matrix th.pos { background: var(--surface-2); }
.matrix .yes { color: var(--accent); font-weight: 700; }
.matrix .no { color: var(--line-2); }
.matrix .lvl { font-size: 11.5px; color: var(--warn); font-weight: 700; }
.matrix tr.out td { color: var(--ink-3); background: var(--surface-2); }
.matrix tr.out td.pos { background: var(--surface-2); }
.matrix tbody tr { cursor: default; }
.scope-box { display: grid; gap: 4px; padding: 13px 15px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.scope-box.out { background: var(--crit-soft); color: var(--crit); border-color: transparent; }
.scope-box.in { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.perm { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; padding: 7px 10px; border-radius: var(--radius-s); background: var(--surface-2); }
.perm.on { background: var(--accent-soft); color: var(--accent); }
.perm.off { color: var(--ink-3); }

.blocked { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 44px 16px; }
.blocked .ico { color: var(--ink-3); }
.blocked h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }

.tel { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }

/* ── 헌금 ───────────────────────────────────────────────────────── */
.suggest-pop[hidden], .entry-warn[hidden] { display: none; }
.entry-line { display: grid; gap: 10px; align-items: start; }
.entry-line .cell { display: grid; gap: 5px; min-width: 0; position: relative; align-content: start; }
.entry-line label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.entry-line input { font-size: 17px; min-height: 50px; border-radius: 12px; }
.entry-line .amount input { text-align: right; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.entry-line .under { min-height: 18px; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-line .go .btn { width: 100%; min-height: 50px; border-radius: 12px; font-size: 15px; }
@media (min-width: 900px) {
  .entry-line { grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.25fr) auto; }
  .entry-line .go { padding-top: 22px; }
  .entry-line .go .btn { padding: 0 22px; }
}
.suggest-pop { position: absolute; left: 0; right: 0; top: 78px; z-index: 20; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); }
.suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; min-width: 0; }
.suggest-item.hi, .suggest-item:hover { background: var(--accent-soft); }
.suggest-item .txt { display: grid; min-width: 0; flex: 1; }
.suggest-item .name { font-weight: 700; }
.suggest-item .sub { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .side { color: var(--ink-2); font-size: 12.5px; font-weight: 500; flex: none; }
.suggest-empty { padding: 10px; color: var(--ink-2); font-size: 13px; }
.entry-warn { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 600; }

.tbl.give td.amt, .tbl.give th.amt { text-align: right; font-variant-numeric: tabular-nums; }
.tbl.give tbody tr { cursor: default; }
.tbl.give tbody tr.pick { cursor: pointer; }
.tbl.give tr.fresh td { background: var(--accent-soft); }
.tbl.give tr.sel td { background: var(--accent-soft); }
.tbl.give tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl.give tr.voided td { color: var(--ink-3); text-decoration: line-through; }
.tbl.give tfoot td, .tbl.give tfoot th { padding: 10px 14px; font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); white-space: nowrap; }
.diff-ok { color: var(--accent); font-weight: 700; }
.diff-short { color: var(--warn); font-weight: 700; }
.diff-over { color: var(--crit); font-weight: 700; }
.money-input { width: 148px !important; min-height: 36px !important; padding: 5px 10px !important; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.three { display: grid; gap: 8px; align-items: center; }
.three .box { position: relative; overflow: hidden; display: grid; gap: 3px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(150deg, var(--shell-3), var(--shell)); color: var(--shell-ink); min-width: 0; }
.three .box::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg, var(--shell-brass), transparent 70%); }
.three .box .lbl { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--shell-mute); }
.three .box .big { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.three .box .sub { font-size: 12px; color: var(--shell-mute); }
.three .eq { justify-self: center; width: 34px; height: 34px; display: grid; place-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.three .eq.no { background: var(--crit-soft); color: var(--crit); }
@media (min-width: 900px) {
  .three { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; }
  .three .box .big { font-size: 34px; }
}

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); border-radius: 14px; background: var(--warn-soft); }
.check.ok { background: var(--surface); border-color: var(--line); }
.check > .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--warn); color: #fff; }
.check.ok > .ico { background: var(--accent); color: var(--accent-ink); }
.check b { font-weight: 700; }
.check p { font-size: 13.5px; color: var(--ink-2); }
.check .table-wrap { background: var(--surface); }

.bulletin { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.7; user-select: text; }
.bulletin b { font-weight: 700; color: var(--accent); }
.bank-line { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.bank-line .lbl { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; overflow-wrap: anywhere; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; overflow: hidden; display: grid; gap: 3px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.tile::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 72%); }
.tile .lbl { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.tile .big { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--ink-3); }
.tile.warn { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.tile.warn::before { background: linear-gradient(90deg, var(--warn), transparent 72%); }
.tile.warn .big, .tile.warn .sub, .tile.warn .lbl { color: var(--warn); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tile .big { font-size: 27px; }
}

.month-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 136px; padding-top: 4px; }
.month-bars .mb { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; justify-items: center; min-width: 0; }
.month-bars .col { width: 100%; height: 100%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.month-bars i { display: block; width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.month-bars i.zero { background: var(--line-2); border-radius: 2px; }
.month-bars span { font-size: 11.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.step-n { display: inline-grid; place-content: center; width: 24px; height: 24px; margin-right: 9px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 800; vertical-align: 1px; }

.receipt { position: relative; display: grid; gap: 10px; padding: 26px 22px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); overflow: hidden; }
.receipt h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-align: center; letter-spacing: .22em; }
.receipt .stamp { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-family: var(--font-display); font-size: 96px; font-weight: 800; color: var(--crit); opacity: .1; pointer-events: none; white-space: nowrap; }
.receipt .rc-head { font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--line); }
.receipt .kv { grid-template-columns: 104px 1fr; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.receipt th, .receipt td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.receipt thead th { background: var(--surface-2); font-weight: 600; }
.receipt td.amt, .receipt th.amt { text-align: right; font-variant-numeric: tabular-nums; }
.receipt .rc-foot { text-align: center; font-size: 14px; padding-top: 10px; }

/* ── 보고·입력 (4차본 시안) ─────────────────────────────────────── */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.flow li { display: inline-flex; align-items: center; }
.flow .step-n { width: 22px; height: 22px; margin-right: 7px; font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.form-card { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; min-width: 0; }
.form-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card b { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.form-card small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.fc-ico { width: 40px; height: 40px; margin-bottom: 4px; display: grid; place-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.fc-makes { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--ink-3); font-size: 12px; line-height: 1.4; }

.rp-ico { width: 34px; height: 34px; flex: none; display: grid; place-content: center; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); }
.rp-ico.info { background: var(--info-soft); color: var(--info); }
.rp-ico.warn { background: var(--warn-soft); color: var(--warn); }
.rp-ico.ok { background: var(--accent-soft); color: var(--accent); }

.draft { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.draft.ready { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: linear-gradient(90deg, var(--warn-soft), var(--surface) 70%); }
.draft .txt { display: grid; min-width: 0; flex: 1 1 150px; }
.draft .txt b { font-weight: 700; }
.draft .txt small { color: var(--ink-3); font-size: 12.5px; }
.wait { display: inline-flex; align-items: center; gap: 4px; color: var(--info); font-size: 13px; font-weight: 600; white-space: nowrap; }
.wait i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: wait-blink 1.2s infinite both; }
.wait i:nth-of-type(1) { margin-left: 4px; }
.wait i:nth-of-type(2) { animation-delay: .2s; }
.wait i:nth-of-type(3) { animation-delay: .4s; }
@keyframes wait-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.msg { display: flex; align-items: flex-start; gap: 8px; justify-self: start; max-width: 100%; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-3); font-size: 13.5px; }
.msg .ico { color: var(--ink-3); margin-top: 2px; }

.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ask { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500; }
.ask-n { width: 24px; height: 24px; flex: none; display: grid; place-content: center; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 800; }
.ask-ok { width: 22px; height: 22px; flex: none; display: grid; place-content: center; border-radius: 50%; color: transparent; }
.ask.said { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.ask.said .ask-n, .ask.said .ask-ok { background: var(--accent); color: var(--accent-ink); }

.recorder { gap: 16px; }
.rec-main { display: flex; align-items: center; gap: 18px; }
.mic-btn { width: 84px; height: 84px; flex: none; display: grid; place-content: center; border: 0; border-radius: 50%; cursor: pointer; color: #04130E; background: linear-gradient(145deg, #5CE6BF, #1FB38C); box-shadow: 0 0 0 6px rgba(58, 214, 170, .16), 0 10px 28px rgba(0, 0, 0, .35); }
.mic-btn:hover { filter: brightness(1.06); }
.mic-btn:focus-visible { outline-color: #fff; border-radius: 50%; }
.mic-btn.live { color: #fff; background: linear-gradient(145deg, #F2685B, #C7362B); box-shadow: 0 0 0 6px rgba(242, 104, 91, .22), 0 10px 28px rgba(0, 0, 0, .35); animation: mic-pulse 1.4s infinite; }
.mic-btn.done { cursor: default; filter: none; color: var(--shell-accent); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(58, 214, 170, .5); }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(242, 104, 91, .22), 0 10px 28px rgba(0, 0, 0, .35); } 50% { box-shadow: 0 0 0 14px rgba(242, 104, 91, .08), 0 10px 28px rgba(0, 0, 0, .35); } }
.rec-read { display: grid; gap: 4px; min-width: 0; }
.rec-time { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.rec-status { color: var(--shell-mute); font-size: 13.5px; }
.rec-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rec-bar i { display: block; height: 100%; background: var(--shell-accent); }
.rec-caption { min-height: 132px; max-height: 240px; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--shell-line); font-size: 14.5px; line-height: 1.65; scrollbar-width: thin; }
.rec-caption b { color: var(--shell-brass); font-weight: 600; }
.rec-caption .ph { color: var(--shell-mute); }
.rec-actions { justify-content: flex-end; min-height: 40px; }
.rec-note { margin-right: auto; color: var(--shell-mute); font-size: 12.5px; }
.recorder .btn:not(.primary) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--shell-ink); box-shadow: none; }
.recorder .btn:not(.primary):hover { background: rgba(255, 255, 255, .12); }

.ai-q { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); border-radius: 14px; background: var(--info-soft); min-width: 0; }
.ai-q .q-mark { width: 28px; height: 28px; flex: none; display: grid; place-content: center; border-radius: 50%; background: var(--info); color: var(--surface); }
.ai-q .q-text { font-weight: 600; }
.ai-q.answered { align-items: center; padding: 10px 14px; background: var(--surface); border-color: var(--line); }
.ai-q.answered .q-mark { width: 24px; height: 24px; background: var(--accent); color: var(--accent-ink); }
.ai-q.answered .grow { display: grid; gap: 1px; min-width: 0; }
.ai-q.answered .q-text { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.q-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.q-who .txt { display: grid; min-width: 0; }
.q-who small { color: var(--ink-3); font-size: 12.5px; }
.q-input { min-width: 150px; }
.q-input input { width: 100%; }
.ai-q input[type="date"] { width: auto; }

.rv-item { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.rv-item.off { background: var(--surface-2); }
.rv-item.off textarea, .rv-item.off .rv-src, .rv-item.off .rv-meta { opacity: .5; }
.rv-item.off textarea { text-decoration: line-through; }
.rv-item textarea { min-height: 0; padding: 9px 11px; font-size: 14.5px; }
.rv-head { gap: 8px; }
.rv-who { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; cursor: pointer; }
.rv-who:hover { border-color: var(--line-2); background: var(--surface-2); }
.rv-meta { gap: 8px; }
.rv-meta input[type="text"], .rv-meta input[type="date"] { width: auto; min-height: 34px; padding: 4px 10px; font-size: 13.5px; }
.rv-meta .wide-in { flex: 1 1 220px; }
.rv-src { display: grid; gap: 2px; padding-left: 10px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.rv-src span { color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.rv-foot { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 -16px -36px; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.rv-warn { display: block; color: var(--warn); font-size: 12.5px; font-weight: 600; }
@media (min-width: 900px) { .rv-foot { margin: 0 -32px -56px; padding: 14px 32px; } }

.player { display: flex; align-items: center; gap: 10px; padding: 2px 14px 2px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.player .bar { flex: 1; height: 4px; }
.transcript { display: grid; gap: 8px; font-size: 14px; line-height: 1.7; }
.transcript b { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.write-area { min-height: 220px; font-size: 15.5px; line-height: 1.7; }
.report-doc .ttl { font-weight: 700; }
.report-doc .grp { margin-top: 2px; font-weight: 700; color: var(--accent); }
.report-doc .gap { height: 4px; }
@media (prefers-reduced-motion: reduce) { .wait i, .mic-btn.live { animation: none; } }

/* ── 바꾸면 달라지는 것 ─────────────────────────────────────────── */
.why-hero { gap: 16px; padding: 24px 20px; }
.why-hero .kicker { color: var(--shell-brass); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.why-hero h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; color: #fff; }
.why-hero .lede { color: var(--shell-mute); font-size: 14.5px; max-width: 44em; }
.why-stats { display: grid; gap: 10px; margin-top: 4px; }
.why-stat { display: grid; gap: 3px; align-content: start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--shell-line); min-width: 0; }
.why-stat b { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; color: var(--shell-accent); }
.why-stat span { font-size: 14.5px; font-weight: 600; }
.why-stat small { color: var(--shell-mute); font-size: 12.5px; }
.why-lead { font-size: 15px; font-weight: 500; line-height: 1.6; }

.shifts { display: grid; gap: 10px; }
.shift { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.shift-what { display: flex; align-items: center; gap: 8px; }
.shift-what .ico { color: var(--accent); }
.shift-what b { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.shift-pair { display: grid; gap: 8px; min-width: 0; }
.shift-now, .shift-then { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.shift-now { background: var(--surface-2); color: var(--ink-2); }
.shift-then { background: var(--accent-soft); font-weight: 500; }
.shift .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.shift-then .tag { color: var(--accent); }
.shift .act { justify-self: start; }

.cost { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
.cost-box { display: grid; gap: 2px; align-content: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); min-width: 0; }
.cost-box.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.cost-box .lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cost-box b { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.cost-box.on b { color: var(--accent); }
.cost-box small { color: var(--ink-2); font-size: 12.5px; }
.cost-arrow { display: grid; place-content: center; color: var(--ink-3); transform: rotate(90deg); }
@media (min-width: 1200px) { .cost { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; } .cost-arrow { transform: none; } }

.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.55; }
.plain-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.plain-list li > .ico { margin-top: 3px; color: var(--accent); }
.plain-list .chip { margin-left: 8px; vertical-align: 1px; }
.open-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: 13.5px; }
.fine { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }

.move-steps { margin: 0; padding: 0; list-style: none; display: grid; }
.move-steps li { display: grid; grid-template-columns: 104px 18px minmax(0, 1fr); gap: 0 8px; }
.move-steps .when { text-align: right; padding-top: 2px; font-size: 13.5px; font-weight: 700; }
.move-steps .rail { position: relative; }
.move-steps .rail::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.move-steps .rail i { position: absolute; left: 3px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.move-steps .what { padding-bottom: 16px; font-size: 14.5px; line-height: 1.55; }
.move-steps li:last-child .what { padding-bottom: 0; }
.move-steps li:last-child .rail::before { bottom: auto; height: 10px; }

@media (min-width: 900px) {
  .why-hero { padding: 32px; }
  .why-hero h1 { font-size: 36px; }
  .why-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shift { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; }
  .shift-pair { grid-template-columns: 1fr 1fr; }
  .why-page .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
