
body.app {
  --c-cream: #f5f7f5; --c-cream-2: #eef2ef; --c-paper: #ffffff;
  --c-ink: #18201c; --c-ink-2: #3b4540; --c-muted: #5a6560;
  --c-line: #e2e7e3; --c-line-2: #cfd7d1; --c-radius: 10px; --c-shadow: none;
  --c-sage-50: #f2f7f4; --c-sage-100: #e7f0ea; --c-sage-300: #a9c4b4; --c-sage-500: #3d6b55; --c-sage-700: #3d6b55; --c-sage-800: #2f5543;
  --c-wood-100: #f7efe6; --c-wood-300: #d9bfa3; --c-wood-500: #8a5a32; --c-wood-700: #8a5a32;
  --c-rose-50: #fdecec; --c-rose-700: #b42318;
  --app-head: 56px;
  margin: 0; background: #f5f7f5; color: #18201c; font-family: var(--lr-font-sans); font-size: 15px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { body.app { padding-bottom: 0; } }
body.app h1, body.app h2, body.app h3 { font-family: var(--lr-font-sans); color: #18201c; word-break: keep-all; } 
body.app img, body.app svg { max-width: 100%; }


.app-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e2e7e3; }
.app-bar { display: flex; align-items: center; gap: 10px; min-height: var(--app-head); padding: 0 12px; }
@media (min-width: 768px) { .app-bar { padding: 0 20px; gap: 16px; } }
.app-bar .brand { min-width: 44px; min-height: 44px; justify-content: center; }
.app-bar .grow { flex: 1 1 auto; min-width: 0; }
.role-switch { display: flex; background: #eef2ef; border: 1px solid #e2e7e3; border-radius: 10px; padding: 3px; gap: 2px; flex: 0 1 auto; min-width: 0; }
.role-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: #3b4540; font-weight: 700; font-size: 14px; white-space: nowrap; }
.role-switch a:hover { color: #2f5543; }
.role-switch a[aria-current="true"] { background: #fff; color: #2f5543; box-shadow: 0 1px 2px rgba(16, 24, 20, .12); }
@media (min-width: 1024px) { .role-switch a { min-height: 36px; } }
.app-links { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.app-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: #3b4540; white-space: nowrap; }
.app-links a:hover { background: #f2f7f4; color: #2f5543; }
.app-links .ico { width: 18px; height: 18px; }
.app-links a.kakao { background: #fee500; color: #191919; }
.app-links a.kakao:hover { background: #f5da00; color: #191919; }
.app-links .lbl { display: none; }
@media (min-width: 768px) { .app-links .lbl { display: inline; } }
@media (min-width: 1024px) { .app-links a { min-height: 38px; } }
@media (max-width: 767px) { .app-links a.home { display: none; } }
@media (max-width: 480px) { .app-bar .brand-text { display: none; } .role-switch .rs-x { display: none; } .role-switch a { padding: 0 10px; } }


.app-body { display: block; min-width: 0; }
@media (min-width: 1024px) { .app-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); } }
.app-side { display: none; }
@media (min-width: 1024px) {
  .app-side { display: flex; flex-direction: column; position: sticky; top: var(--app-head); align-self: start; height: calc(100vh - var(--app-head)); overflow-y: auto; background: #fff; border-right: 1px solid #e2e7e3; padding: 16px 12px; }
}
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px; background: #f5f7f5; border: 1px solid #e2e7e3; border-radius: 10px; margin-bottom: 14px; }
.who .who-role { width: 100%; font-size: 13px; color: #5a6560; font-weight: 700; }
.who b { font-family: var(--lr-font-round); font-size: 16px; }
.nav-cap { margin: 4px 10px 6px; font-size: 13px; font-weight: 700; color: #5a6560; }
.app-nav { display: grid; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: #3b4540; font-weight: 700; font-size: 15px; }
.app-nav a:hover { background: #f2f7f4; color: #2f5543; }
.app-nav a[aria-current="page"] { background: #e7f0ea; color: #2f5543; box-shadow: inset 3px 0 0 #3d6b55; }
.app-nav .ico { width: 19px; height: 19px; }
.side-links { display: grid; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e2e7e3; }
.side-links a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; color: #3b4540; font-size: 14px; text-decoration: none; border-radius: 8px; }
.side-links a:hover { background: #f2f7f4; color: #2f5543; }
.side-links a.kakao { color: #191919; background: #fee500; font-weight: 700; margin-top: 6px; }

.app-main { padding: 16px 12px 40px; min-height: 60vh; outline: none; min-width: 0; max-width: 1164px; margin: 0 auto; width: 100%; box-sizing: border-box; }
@media (min-width: 768px) { .app-main { padding: 24px 24px 56px; } }
@media (min-width: 1024px) { .app-main { padding: 28px 32px 72px; } }


.app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-top: 1px solid #e2e7e3; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.app-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; min-width: 44px; border-radius: 8px; text-decoration: none; color: #3b4540; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; }
.app-tabbar a .ico { width: 22px; height: 22px; }
.app-tabbar a[aria-current="page"] { color: #2f5543; background: #e7f0ea; }
@media (min-width: 1024px) { .app-tabbar { display: none; } }


body.app .card { background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; padding: 16px; box-shadow: none; min-width: 0; }
body.app .card + .card, body.app .card + section, body.app section + .card { margin-top: 14px; }
@media (min-width: 768px) { body.app .card { padding: 18px 20px; } }
body.app .card.sage { background: #f2f7f4; border-color: #cfe0d5; }
body.app .card.wood { background: #f7efe6; border-color: #ead8c4; }
body.app .badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap; background: #e7f0ea; color: #2f5543; }
body.app .badge.wood { background: #f7efe6; color: #7a4e2a; }
body.app .badge.amber, body.app .badge.warn { background: #fdf2dc; color: #7a4a00; }
body.app .badge.rose, body.app .badge.danger { background: #fdecec; color: #b42318; }
body.app .badge.gray { background: #eef2ef; color: #3b4540; }
body.app .badge.info { background: #e8f0fb; color: #1e4f8a; }
body.app .badge.example, body.app .badge.ex { background: #fff; color: #7a4e2a; border: 1px dashed #c9a27e; }
body.app .badge.kakao { background: #fee500; color: #191919; }
body.app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-family: var(--lr-font-sans); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
body.app .btn-primary { background: #3d6b55; color: #fff; }
body.app .btn-primary:hover { background: #2f5543; color: #fff; }
body.app .btn-ghost, body.app .btn-line { background: #fff; color: #18201c; border-color: #cfd7d1; }
body.app .btn-ghost:hover, body.app .btn-line:hover { border-color: #3d6b55; color: #2f5543; }
body.app .btn-danger { background: #fff; color: #b42318; border-color: #f0b8b3; }
body.app .btn-danger:hover { background: #fdecec; color: #b42318; }
body.app .btn-kakao { background: #fee500; color: #191919; }
body.app .btn-sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
@media (min-width: 769px) { body.app .btn-sm { min-height: 36px; } }
body.app .btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
body.app .btn[disabled], body.app .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.example-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; padding: 10px 12px; background: #fff; border: 1px dashed #d9bfa3; border-radius: 8px; font-size: 13px; color: #5a6560; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: 14px; font-weight: 700; }
.form-error:empty { display: none; }


.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; max-width: 100%; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e2e7e3; }
.table-wrap thead th { background: #f5f7f5; color: #3b4540; font-size: 13px; font-weight: 700; white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody tr:hover { background: #fafcfa; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }


.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #3b4540; text-decoration: none; font-weight: 700; font-size: 14px; }
.back-link:hover { color: #2f5543; }
.back-link .ico { width: 18px; height: 18px; }
.view-head { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e2e7e3; }
.view-head h1 { font-size: clamp(21px, 3vw, 26px); line-height: 1.35; margin: 0 0 4px; outline: none; }
.view-head p { margin: 0; font-size: 15px; color: #5a6560; }
.view-sec { margin-top: 22px; }
.view-sec > h2 { font-size: 18px; margin-bottom: 10px; }


.stagebar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.stagebar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 700; color: #5a6560; line-height: 1.3; min-width: 0; }
.stagebar li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: #e2e7e3; z-index: 0; }
.stagebar li:first-child::before { display: none; }
.stagebar li.done::before, .stagebar li.now::before { background: #3d6b55; }
.stagebar .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid #cfd7d1; font-size: 12px; font-weight: 700; color: #3b4540; }
.stagebar li.done .dot { background: #3d6b55; border-color: #3d6b55; color: #fff; }
.stagebar li.now .dot { background: #2f5543; border-color: #2f5543; color: #fff; box-shadow: 0 0 0 4px #e7f0ea; }
.stagebar li.now { color: #2f5543; }
@media (min-width: 768px) { .stagebar li { font-size: 13px; } }


.case-list { display: grid; gap: 10px; }
@media (min-width: 1280px) { .case-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-card { display: block; background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; padding: 14px 16px; text-decoration: none; color: #18201c; transition: border-color .15s, box-shadow .15s; min-width: 0; }
a.case-card:hover { border-color: #a9c4b4; color: #18201c; box-shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 4px 12px rgba(16, 24, 20, .05); }
.case-card .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.case-card .cid { font-size: 13px; font-weight: 700; color: #5a6560; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.case-card h2, .case-card h3 { font-size: 17px; margin: 6px 0 4px; }
.case-card .next { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 12px; background: #f2f7f4; border: 1px solid #e2ede6; border-radius: 8px; font-size: 14px; font-weight: 700; color: #2f5543; }
.case-card .next .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: #5a6560; }


.subtabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid #e2e7e3; scrollbar-width: thin; }
.subtabs a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; color: #3b4540; font-weight: 700; font-size: 14px; white-space: nowrap; }
.subtabs a:hover { color: #2f5543; }
.subtabs a[aria-current="page"] { color: #2f5543; border-bottom-color: #3d6b55; }


.next-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: 10px; background: #f2f7f4; border: 1px solid #cfe0d5; border-left: 4px solid #3d6b55; color: #18201c; }
.next-box h2, .next-box h3 { color: #18201c; margin: 0; font-size: 17px; }
.next-box p { margin: 0; color: #3b4540; }
.next-box .btn-primary { background: #3d6b55; color: #fff; }
.next-box .btn-ghost { background: #fff; color: #18201c; border-color: #cfd7d1; }
.next-box.wood { background: #f7efe6; border-color: #ead8c4; border-left-color: #8a5a32; }
.next-box.wood .btn-primary { background: #8a5a32; color: #fff; }


.empty-state { text-align: center; padding: 40px 16px; max-width: 560px; margin: 24px auto; background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 12px; background: #e7f0ea; color: #3d6b55; display: grid; place-items: center; }
.empty-ico .ico { width: 28px; height: 28px; }
.empty-state h1 { font-size: 22px; margin: 0 0 6px; }
.center-row { justify-content: center; }


.role-list { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .role-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; text-decoration: none; color: #18201c; min-height: 80px; }
.role-card:hover { border-color: #3d6b55; color: #18201c; }
.role-card .ico { width: 26px; height: 26px; color: #3d6b55; flex-shrink: 0; }
.role-card b { display: block; font-family: var(--lr-font-round); font-size: 17px; }
.role-card .muted { font-size: 14px; color: #5a6560; }


.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #18201c; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }


.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; }
.log-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e2e7e3; font-size: 15px; }
.log-list li:last-child { border-bottom: 0; }
.log-list .tm { font-weight: 700; color: #2f5543; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .log-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }


.calc { display: grid; gap: 4px; }
.calc .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e2e7e3; font-size: 15px; }
.calc .line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .line.total { border-bottom: 0; font-size: 17px; font-weight: 700; color: #2f5543; }
.calc .line.total b { font-size: 20px; }


.flow-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: fs; }
@media (min-width: 768px) { .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow-steps li { counter-increment: fs; position: relative; padding: 10px 12px 10px 42px; background: #f5f7f5; border: 1px solid #e2e7e3; border-radius: 8px; font-size: 14px; color: #3b4540; min-width: 0; }
.flow-steps li::before { content: counter(fs); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #3d6b55; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.flow-steps li b { display: block; color: #18201c; font-size: 14px; }
.kakao-mark { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: #fee500; color: #191919; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap; }


body.app p { margin: 0 0 8px; }
body.app p:last-child { margin-bottom: 0; }
body.app .small, body.app .hint { font-size: 13px; color: #5a6560; }
body.app .notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; background: #f2f7f4; border: 1px solid #cfe0d5; border-radius: 10px; font-size: 14px; color: #18201c; }
body.app .notice > .ico { width: 20px; height: 20px; color: #3d6b55; margin-top: 2px; flex-shrink: 0; }
body.app .notice.wood { background: #f7efe6; border-color: #ead8c4; }
body.app .notice.wood > .ico { color: #8a5a32; }
body.app .notice.rose, body.app .notice.danger { background: #fdecec; border-color: #f3c7c3; }
body.app .notice.rose > .ico, body.app .notice.danger > .ico { color: #b42318; }
body.app .notice.amber, body.app .notice.warn { background: #fdf2dc; border-color: #f0dcb0; }
body.app .notice > p, body.app .notice > div { min-width: 0; margin: 0; }
body.app dl.kv { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 0; margin: 0; font-size: 14px; }
body.app dl.kv dt, body.app dl.kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #eef2ef; min-width: 0; }
body.app dl.kv dt { color: #5a6560; font-weight: 700; padding-right: 12px; }
body.app dl.kv dd { color: #18201c; overflow-wrap: anywhere; }
body.app dl.kv dt:last-of-type, body.app dl.kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 480px) { body.app dl.kv { grid-template-columns: minmax(0, 1fr); } body.app dl.kv dt { border-bottom: 0; padding-bottom: 0; } }
body.app .acc details { background: #fff; border: 1px solid #e2e7e3; border-radius: 10px; margin-top: 10px; }
body.app .acc summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 700; font-size: 14px; cursor: pointer; color: #2f5543; }
body.app .acc-body { padding: 0 14px 12px; font-size: 14px; color: #3b4540; }
body.app table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
body.app table.t th, body.app table.t td { padding: 9px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e2e7e3; }
body.app table.t thead th { background: #f5f7f5; font-size: 13px; color: #3b4540; }
body.app .card.flat { background: #f5f7f5; }
body.app .hl { background: #f2f7f4; }
body.app .input, body.app .select, body.app .textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd7d1; border-radius: 8px; background: #fff; color: #18201c; font: inherit; font-size: 15px; }
body.app .input:focus, body.app .select:focus, body.app .textarea:focus { outline: 2px solid #3d6b55; outline-offset: 1px; border-color: #3d6b55; }
body.app :focus-visible { outline: 2px solid #3d6b55; outline-offset: 2px; }
.xp-kakao { margin: 6px 0 0; }
.cu-noti-meta .kakao-mark { margin-right: 4px; }
.stagebar .lbl { overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 479px) { .stagebar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); overflow-x: auto; padding-top: 4px; scrollbar-width: thin; } }
