/* ==========================================================
 *  아차 디자인 시스템 — design-kit/clobe.css 기반
 *  메인 컬러: #F04D2E (--brand). 오류는 --red 로 따로 둔다.
 * ========================================================== */
:root {
  --font-ui: "Pretendard Variable", Pretendard, "Malgun Gothic", "맑은 고딕", -apple-system, BlinkMacSystemFont, Helvetica, "Apple SD Gothic Neo", sans-serif;
  --surface: #fff;
  --sidebar-surface: #f6f6f6;
  --ink: #1d2225;
  --text-secondary: #4c5053;
  --text-muted: #686b6d;
  --border: #e4e4e5;
  --surface-subtle: rgb(29 34 37 / 4%);
  --nav-selected: rgb(29 34 37 / 7%);
  --brand: #f04d2e;
  --brand-hover: #d93d20;
  --brand-tint: #feeeea;
  --brand-ink: #b8321a;
  --brand-ring: rgb(240 77 46 / 20%);
  --blue: var(--brand);
  --blue-light: var(--brand-tint);
  --red: #da2333;
  --red-tint: rgb(238 60 75 / 12%);
  --sidebar-width: 240px;
  --radius-sm: 8px;
  --radius-button: 10px;
  --radius-card: 12px;
  --radius-floating: 20px;
  --shadow-floating: 0 0 0 .5px rgb(29 34 37 / 22%), 0 8px 8px rgb(29 34 37 / 4%), 0 12px 32px rgb(29 34 37 / 12%);
  --ease: 150ms ease;
}

/* ---------- 기본 ---------- */
[hidden] { display: none !important; }
html body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 20px; letter-spacing: -.02em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
table { font-variant-numeric: tabular-nums; }
.font-mono { letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue-light); }
a, button { transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease); }

/* 입력 요소 — 포커스는 2px 파란 외곽선 하나로 통일 */
html input:not([type=checkbox]):not([type=radio]):focus,
html select:focus, html textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* 표 머리 — 작은 회색 라벨 */
html thead th { font-weight: 500; color: var(--text-muted); }

/* ---------- 앱 셸 ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }

.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--sidebar-surface); border-right: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.brand-sub { margin-left: auto; font-size: 11px; color: var(--text-muted); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 12px 12px; }
.quick-actions .btn { font-size: 13px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-group-title { padding: 6px 10px 4px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.nav-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px 0 10px; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; }
.nav-item svg { flex: none; width: 16px; height: 16px; stroke-width: 1.6; }
.nav-item:hover { background: var(--surface-subtle); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--nav-selected); color: var(--ink); font-weight: 500; }
.nav-item[aria-current="page"] svg { color: var(--brand); }
.nav-badge { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; }
.nav-badge.is-alert { background: var(--red-tint); color: var(--red); }
.nav-badge.is-muted { background: var(--nav-selected); color: var(--text-secondary); }
.nav-badge.is-warn  { background: rgb(245 158 11 / 16%); color: #b45309; }

.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 12px; font-weight: 600; }
.sidebar-foot .who { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { display: flex; flex-direction: column; min-width: 0; }
.page-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 65px; padding: 12px 20px; background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.page-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: -.36px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.page-body { flex: 1; padding: 20px; }

.btn.menu-toggle { display: none; }
.sidebar-scrim { display: none; }

/* ---------- 공통 컴포넌트 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 6px 10px; border: 0; border-radius: var(--radius-button); background: transparent; color: var(--ink); font-size: 14px; line-height: 20px; letter-spacing: -.28px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-subtle); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border: 1px solid var(--border); }
.btn-outline:hover { background: #fafafa; }
.btn-panel { width: 100%; height: 42px; padding: 0 16px; border-radius: 12px; font-size: 16px; line-height: 24px; letter-spacing: -.32px; }
.btn-icon { width: 32px; padding: 0; }
.btn svg { width: 16px; height: 16px; }

.banner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-card); border: 1px solid var(--border); font-size: 14px; }
.banner::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 999px; background: currentColor; }
.banner.is-ok   { background: #effaf4; border-color: #cdeedb; color: #0f6b3c; }
.banner.is-err  { background: #fdf0f1; border-color: #f7d3d7; color: #b3182a; }

/* ---------- 목록 화면 ---------- */
.list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head .spacer { flex: 1; }
.list-count { color: var(--text-muted); font-size: 13px; }
.list-count b { color: var(--ink); font-weight: 600; }

.search-field { display: flex; align-items: center; gap: 8px; width: 320px; max-width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-button); background: #fff; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--brand-ring); }
.search-field svg { flex: none; width: 16px; height: 16px; color: var(--text-muted); }
html .search-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; }
html .search-field input:focus { box-shadow: none; }
.search-field input::placeholder { color: #9b9d9f; }
.search-clear { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; color: var(--text-muted); text-decoration: none; }
.search-clear:hover { background: var(--nav-selected); color: var(--ink); }

.table-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.table-scroll { position: relative; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { height: 38px; padding: 0 14px; background: #fafafa; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.data-table td { height: 52px; padding: 8px 14px; border-bottom: 1px solid #efeff0; color: var(--text-secondary); vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-subtle); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .mono { font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.data-table .actions { width: 1%; text-align: right; white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.cell-main:hover .cell-title { text-decoration: underline; text-underline-offset: 3px; }
.cell-sub { display: block; margin-top: 1px; color: var(--text-muted); font-size: 12px; font-weight: 400; }
.initial { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--nav-selected); color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.dim { color: #b5b7b9; }

.btn-sm { min-height: 28px; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 13px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-tint); }
.row-actions { display: inline-flex; align-items: center; gap: 2px; }
.row-actions form { display: inline; margin: 0; }

.empty-state { padding: 64px 16px; text-align: center; color: var(--text-muted); }
.empty-state .btn { margin-top: 12px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.pager-pages { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-button); background: var(--surface-subtle); }
.pager-pages a, .pager-pages span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; color: var(--text-secondary); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager-pages a:hover { color: var(--ink); background: rgb(255 255 255 / 60%); }
.pager-pages [aria-current="page"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 .5px rgb(29 34 37 / 12%), 0 1px 2px rgb(29 34 37 / 6%); }

@media (max-width: 640px) {
  .list-head form { flex: 1 1 100%; }
  .search-field { width: 100%; }
  .list-head .spacer { flex: 1; display: block; }
}

/* ---------- 공용 블록 (모든 화면) ---------- */
/* 세그먼트 전환 — 상태 탭 등. 링크면 aria-current, 버튼이면 aria-selected */
.segments { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--radius-button); background: var(--surface-subtle); }
.segment { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 3px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); font-size: 13px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.segment:hover { color: var(--ink); }
.segment[aria-current="page"], .segment[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 .5px rgb(29 34 37 / 12%), 0 1px 2px rgb(29 34 37 / 6%); }
.segment .count { padding: 0 5px; border-radius: 999px; background: var(--red-tint); color: var(--red); font-size: 11px; line-height: 16px; }

/* 카드 — 그림자 없이 1px 선 */
.panel { position: relative; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.panel-head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.panel-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); }
.panel-head .more { margin-left: auto; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.panel-head .more:hover { color: var(--ink); }
.panel-body { padding: 16px; }
.panel-body.is-form { display: grid; gap: 22px; padding: 20px; }
.panel-foot { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.panel.is-subtle { background: var(--surface-subtle); }
.stack { display: grid; gap: 16px; align-content: start; }

/* 지표 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; color: inherit; text-decoration: none; }
a.stat:hover { background: #fcfcfc; border-color: #d3d4d5; }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-value { margin-top: 6px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.stat-value small { margin-left: 2px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.stat.is-alert .stat-value { color: var(--red); }
.stat.is-warn  .stat-value { color: #b45309; }

/* 배지 — 상태 표시. 색 + 글자 둘 다로 의미 전달 */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--nav-selected); color: var(--text-secondary); }
.badge.is-blue  { background: var(--brand-tint); color: var(--brand-ink); }
.badge.is-green { background: #e7f6ee; color: #0f6b3c; }
.badge.is-amber { background: #fdf3e2; color: #a35a05; }
.badge.is-red   { background: var(--red-tint); color: var(--red); }

/* 폼 화면 하단 저장 줄 — 스크롤해도 바닥에 붙는다 */
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 16px -20px -20px; padding: 12px 20px; background: rgb(255 255 255 / 94%); backdrop-filter: blur(6px); border-top: 1px solid var(--border); }
.form-actions .btn { height: 38px; min-width: 84px; }
.form-actions .left { margin-right: auto; color: var(--text-muted); font-size: 13px; }
select.input { padding-right: 28px; }
.input:disabled, .input[readonly] { background: var(--surface-subtle); color: var(--text-secondary); }

/* 정보 안내 */
.note { padding: 12px 14px; border-radius: var(--radius-card); background: var(--surface-subtle); border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.note.is-blue { background: var(--brand-tint); border-color: #fcd5cc; color: var(--brand-ink); }
.note.is-amber { background: #fdf6e9; border-color: #f5dfb5; color: #8a4b04; }

/* 정의 목록 (상세 화면) */
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1024px) { .form-actions { margin: 16px -16px -16px; padding: 12px 16px; } }

/* ---------- 우측 드로어 (오른쪽 → 왼쪽으로 열린다) ----------
 * <dialog class="drawer"> 를 showModal() 로 연다. 포커스 가두기·Esc·배경 비활성은 브라우저가 맡는다.
 * 닫을 때는 .is-closing 을 붙여 밀려 나가는 애니메이션이 끝난 뒤 close() 한다 */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-floating); overflow: hidden; }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 220ms cubic-bezier(.2, .8, .2, 1); }
.drawer.is-closing { animation: drawer-out 180ms ease-in forwards; }
.drawer::backdrop { background: rgb(29 34 37 / 28%); animation: fade-in 220ms ease; }
.drawer.is-closing::backdrop { animation: fade-out 180ms ease forwards; }
@keyframes drawer-in  { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes fade-in  { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer.is-closing, .drawer::backdrop { animation-duration: 1ms; } }

.drawer form { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.drawer-head { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border); }
.drawer-head .page-title { flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: grid; align-content: start; gap: 22px; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--border); background: #fff; }
.drawer-foot .btn { min-width: 84px; height: 40px; }

.fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
.fieldset legend { grid-column: 1 / -1; float: left; width: 100%; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.is-wide { grid-column: 1 / -1; }
.field-label { font-size: 13px; color: var(--text-secondary); }
.field-label .req { color: var(--red); margin-left: 2px; }
.field-label .hint { color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-button); background: #fff; color: var(--ink); font-size: 14px; }
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 20px; }
.input.mono { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.input::placeholder { color: #9b9d9f; }
.input:user-invalid { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red); }
@media (max-width: 480px) { .fieldset { grid-template-columns: 1fr; } }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(280px, 86vw); transform: translateX(-100%); transition: transform 180ms ease; box-shadow: var(--shadow-floating); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgb(29 34 37 / 28%); }
  .btn.menu-toggle { display: inline-flex; margin-left: -6px; }
  .page-toolbar { padding: 10px 16px; min-height: 56px; }
  .page-body { padding: 16px; }
  .toolbar-date { display: none; }
}

/* 인쇄 시 셸은 숨긴다 */
@media print {
  .sidebar, .page-toolbar { display: none !important; }
  .app-shell { display: block; }
  .page-body { padding: 0; }
}

/* ==========================================================
 *  아차 전용
 * ========================================================== */

/* D-day 칩 — 긴급도: ≤1 메인 꽉 참, ≤7 메인 연함, ≤30 짙은 회색, 그 외 연한 회색 */
.dday { display: inline-grid; place-items: center; min-width: 56px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; background: var(--nav-selected); color: var(--text-secondary); }
.dday.is-red   { background: var(--brand); color: #fff; }
.dday.is-amber { background: var(--brand-tint); color: var(--brand-ink); }
.dday.is-brand { background: rgb(29 34 37 / 10%); color: var(--ink); }
.dday.is-none  { background: transparent; color: #b5b7b9; font-weight: 500; }

.cell-date { display: flex; align-items: center; gap: 8px; }
.cell-date .date { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cell-err { color: var(--red); font-size: 12px; white-space: normal; }

/* 다가오는 일정 타임라인 (홈) */
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #efeff0; }
.upcoming li:last-child { border-bottom: 0; }
.upcoming .what { min-width: 0; flex: 1; }
.upcoming .what b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming .what span { color: var(--text-muted); font-size: 12px; }
.kind-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--nav-selected); color: var(--text-secondary); }
.kind-ico svg { width: 16px; height: 16px; }
.kind-ico.is-brand { background: var(--brand-tint); color: var(--brand); }

/* 인라인 추가 폼 */
.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; }
.add-row .btn { height: 38px; }

/* 확인·입력 모달 (닫기 아이콘 있음, 바깥 클릭으로 닫히지 않음) */
.modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-floating); box-shadow: var(--shadow-floating); color: var(--ink); }
.modal::backdrop { background: rgb(29 34 37 / 28%); }
.modal form { margin: 0; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 12px 8px 20px; }
.modal-head .page-title { flex: 1; font-size: 16px; }
.modal-body { padding: 4px 20px 16px; color: var(--text-secondary); display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; }
.modal-foot .btn { min-width: 76px; height: 38px; }

/* 체크박스 칩 (알림 시점) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.chip input:checked + span { background: var(--brand-tint); border-color: #fbc4b8; color: var(--brand-ink); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.radio-row { display: flex; flex-wrap: wrap; gap: 6px; }
.switch-row { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }

/* ---------- 랜딩 / 로그인 ---------- */
.landing { min-height: 100dvh; display: flex; flex-direction: column; background: var(--sidebar-surface); }
.landing-top { display: flex; align-items: center; height: 64px; padding: 0 24px; }
.landing-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }
.landing-card { width: min(920px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-floating); background: #fff; overflow: hidden; }
.landing-copy { padding: 40px; border-right: 1px solid var(--border); }
.landing-copy h1 { margin: 0 0 10px; font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.6px; }
.landing-copy h1 em { font-style: normal; color: var(--brand); }
.landing-copy p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 24px; }
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list b { display: block; font-weight: 600; color: var(--ink); }
.feature-list span { color: var(--text-muted); font-size: 13px; }
.landing-login { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--surface); }
.landing-login h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.landing-login .muted { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.btn-login { width: 100%; height: 44px; border: 1px solid var(--border); background: #fff; font-size: 15px; gap: 10px; border-radius: 12px; }
.btn-login:hover { background: #fafafa; }
.btn-login svg { width: 18px; height: 18px; }
.btn-login.is-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-login.is-dark:hover { background: #000; }
.landing-foot { display: flex; gap: 16px; justify-content: center; padding: 16px; color: var(--text-muted); font-size: 12px; }
.landing-foot a { color: inherit; }

.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; color: var(--text-secondary); line-height: 24px; }
.doc h1 { color: var(--ink); font-size: 22px; }
.doc h2 { color: var(--ink); font-size: 16px; margin-top: 28px; }

@media (max-width: 760px) {
  .landing-card { grid-template-columns: 1fr; }
  .landing-copy { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 22px; }
  .landing-login { padding: 28px 22px; }
  .hide-sm { display: none; }
  .add-row { flex-wrap: wrap; }
  .add-row .btn { flex: 1 1 100%; }
}

a { color: var(--brand-ink); }
.landing-foot a, .nav-item, .cell-main, .btn, .stat, .upcoming a, .sidebar-brand { color: inherit; }
.btn-primary, .btn-dark, .btn-login.is-dark { color: #fff; }

/* 템플릿 갤러리 (생활 알림 추가) */
.tpl-group + .tpl-group { margin-top: 18px; }
.tpl-group h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-button); background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.tpl:hover { border-color: #fbc4b8; background: #fffaf8; }
.tpl b { font-weight: 500; }
.tpl span { font-size: 12px; color: var(--text-muted); }
.tpl.is-custom { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 6px; border-style: dashed; color: var(--text-secondary); }
.tpl-tip { margin: 0; }
.cat-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); margin-right: 6px; vertical-align: middle; }

/* 랜딩 하단 소개·FAQ (SEO·AEO 용 본문) */
.landing-more { width: min(920px, calc(100% - 32px)); margin: 0 auto 48px; }
.landing-more h2 { margin: 32px 0 12px; font-size: 18px; font-weight: 600; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.more-grid > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.more-grid b { font-weight: 600; }
.more-grid p { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 21px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--text-muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 18px 14px; color: var(--text-secondary); line-height: 22px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-table th { text-align: left; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 8px 6px; }
.guide-table td { border-bottom: 1px solid #efeff0; padding: 10px 6px; vertical-align: top; color: var(--text-secondary); }
.guide-table td:first-child { color: var(--ink); }
.guide-tip { margin-top: 2px; font-size: 12px; color: var(--text-muted); line-height: 18px; }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } .tpl-grid { grid-template-columns: 1fr; } }

/* ==========================================================
 *  공개 페이지 공통 폭 (.lp-wrap: 꼬리말)
 * ========================================================== */
.lp-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.lp-narrow { width: min(760px, calc(100% - 32px)); }

/* ==========================================================
 *  애플 스타일 레이어 — 위 토큰·컴포넌트를 덮어쓴다.
 *  시스템 글꼴 · #f5f5f7 바탕 · 테두리 없는 흰 카드 · 큰 모서리 · 알약 버튼 · 반투명 바
 * ========================================================== */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  --ink: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --border: #e5e5ea;
  --sidebar-surface: #f5f5f7;
  --surface-subtle: rgb(0 0 0 / 4%);
  --nav-selected: rgb(0 0 0 / 6%);
  --radius-sm: 10px;
  --radius-button: 980px;
  --radius-card: 18px;
  --radius-floating: 24px;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 4%), 0 4px 16px rgb(0 0 0 / 4%);
  --shadow-floating: 0 2px 6px rgb(0 0 0 / 6%), 0 18px 48px rgb(0 0 0 / 12%);
  --ease: 200ms cubic-bezier(.25, .1, .25, 1);
}
html body { font-size: 15px; line-height: 22px; letter-spacing: -.01em; }

/* 버튼: 알약 */
.btn { min-height: 34px; padding: 7px 16px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.btn-sm { min-height: 28px; padding: 4px 12px; border-radius: 980px; }
.btn-icon { width: 34px; padding: 0; border-radius: 999px; }
.btn-outline { background: #fff; border: 1px solid #d2d2d7; }
.btn-primary { box-shadow: 0 1px 2px rgb(240 77 46 / 30%); }
.btn-login { border-radius: 980px; height: 48px; font-weight: 500; border-color: #d2d2d7; }

/* 입력 */
.input { height: 42px; border-radius: 12px; border-color: #d2d2d7; font-size: 15px; }
textarea.input { border-radius: 12px; }
.search-field { border-radius: 12px; }
.chip span { height: 34px; padding: 0 14px; border-color: #d2d2d7; }

/* 앱 셸 */
.app-shell { background: #f5f5f7; }
.sidebar { background: rgb(245 245 247 / 82%); backdrop-filter: saturate(1.8) blur(20px); border-right: 1px solid rgb(0 0 0 / 6%); }
.sidebar-brand { height: 64px; padding: 0 18px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 1px 2px rgb(240 77 46 / 35%); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.nav-item { min-height: 34px; border-radius: 10px; font-size: 14px; color: var(--text-secondary); }
.nav-item[aria-current="page"] { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); font-weight: 600; }
.nav-group-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.sidebar-foot { border-top-color: rgb(0 0 0 / 6%); }

.main { background: #f5f5f7; }
.page-toolbar { min-height: 72px; padding: 14px 28px; background: rgb(245 245 247 / 80%); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgb(0 0 0 / 5%); }
.page-title { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.03em; }
.page-body { padding: 24px 28px 40px; }

/* 카드: 테두리 대신 그림자 */
.panel, .table-card, .stat, .note, .banner, .faq, .more-grid > div { border-color: transparent; }
.panel, .table-card, .stat { box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.panel-head { border-bottom-color: #f0f0f2; min-height: 54px; padding: 12px 20px; }
.panel-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.panel-body { padding: 20px; }
.panel-foot { border-top-color: #f0f0f2; padding: 12px 20px; }
.stat { padding: 20px 22px; }
.stat-value { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.03em; }
.note { background: #fff; box-shadow: var(--shadow-card); border-radius: 14px; color: var(--text-muted); }
.note.is-blue { background: var(--brand-tint); box-shadow: none; }
.banner { border-radius: 14px; }

.data-table th { background: #fff; height: 44px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-bottom-color: #f0f0f2; }
.data-table td { height: 60px; border-bottom-color: #f2f2f4; }
.data-table tbody tr:hover td { background: #fafafa; }
.upcoming li { padding: 14px 20px; border-bottom-color: #f2f2f4; }
.kind-ico { width: 36px; height: 36px; border-radius: 10px; background: #f5f5f7; }
.initial { width: 34px; height: 34px; border-radius: 10px; background: #f5f5f7; }
.dday { height: 26px; min-width: 60px; border-radius: 999px; font-weight: 600; }

.segments { background: rgb(0 0 0 / 5%); border-radius: 10px; padding: 2px; }
.segment { border-radius: 8px; min-height: 28px; padding: 4px 12px; }

.drawer { border-radius: 24px 0 0 24px; }
.drawer-head .page-title, .modal-head .page-title { font-size: 20px; }
.modal { border-radius: 24px; }
.tpl { border: 0; background: #f5f5f7; border-radius: 14px; padding: 12px 14px; }
.tpl:hover { background: var(--brand-tint); }
.tpl.is-custom { background: #fff; border: 1px dashed #d2d2d7; }

.faq { border-radius: 22px; box-shadow: var(--shadow-card); }
.faq details + details { border-top-color: #f0f0f2; }
.faq summary { padding: 18px 22px; font-size: 16px; }
.faq details p { padding: 0 22px 18px; font-size: 15px; }

@media (max-width: 900px) {
  .page-toolbar { padding: 10px 16px; min-height: 60px; }
  .page-title { font-size: 22px; }
  .page-body { padding: 16px; }
}

/* 가이드 상세 (SEO·AEO) */
.doc .crumbs { font-size: 13px; color: var(--text-muted); }
.doc .crumbs a { color: inherit; }
.doc .answer { font-size: 19px; line-height: 30px; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
.doc .guide-facts { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: #f5f5f7; }
.doc .faq { margin-top: 8px; }
.doc .related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doc .related li { padding: 12px 14px; border-radius: 14px; background: #f5f5f7; }
.doc .related span { display: block; font-size: 12px; color: var(--text-muted); }
.doc .guide-fine { margin-top: 32px; font-size: 12px; color: var(--text-muted); }
.doc .btn-primary { color: #fff; text-decoration: none; }
@media (max-width: 600px) { .doc .related { grid-template-columns: 1fr; } }

/* 사이트 정보 푸터 */
.site-foot { padding: 36px 0 44px; background: #f5f5f7; border-top: 1px solid rgb(0 0 0 / 6%); color: var(--text-muted); font-size: 12px; line-height: 20px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-foot-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.site-foot-links a:hover { text-decoration: underline; }
.site-foot-links b { font-weight: 600; color: var(--ink); }
.site-foot-biz { margin: 0; word-break: keep-all; }
.site-foot-biz i { font-style: normal; margin: 0 6px; color: #c7c7cc; }
.site-foot-biz a { color: inherit; }
.site-foot-copy { margin: 10px 0 0; }
.doc + .site-foot { margin-top: 24px; }

/* 약관·방침 모달 */
.doc-modal { width: min(680px, calc(100vw - 32px)); max-height: min(80dvh, 760px); }
.doc-modal[open] { display: flex; flex-direction: column; }
.doc-modal .modal-head { border-bottom: 1px solid #f0f0f2; padding-bottom: 12px; }
.doc-modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 24px; display: block; color: var(--text-secondary); line-height: 24px; }
.doc-modal-body h2 { margin: 22px 0 6px; font-size: 16px; color: var(--ink); }
.doc-modal-body p { margin: 6px 0; }

.doc-modal.is-wide { width: min(880px, calc(100vw - 32px)); max-height: min(86dvh, 860px); }
.doc-modal-body .faq details p { padding: 0 18px 14px; }
.doc-modal-body .guide-table { font-size: 13px; }
.doc-modal-body .btn-primary { color: #fff; text-decoration: none; }
.doc-modal-body .related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doc-modal-body .related li { padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
.doc-modal-body .related span { display: block; font-size: 12px; color: var(--text-muted); }
.doc-modal-body .answer { font-size: 17px; line-height: 27px; color: var(--ink); font-weight: 500; }
.doc-modal-body .guide-facts { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: #f5f5f7; }
.withdraw-form { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border-radius: 14px; background: #fff5f3; }
.withdraw-form .btn { justify-self: start; border-color: #f3c1b6; }
@media (max-width: 600px) { .doc-modal-body .related { grid-template-columns: 1fr; } }

/* 로고 마크 (public/logo-56.png) */
.brand-mark { background: none !important; box-shadow: none !important; padding: 0; border-radius: 0; object-fit: contain; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 정렬 */
.sort-control .segment { font-size: 12px; }
@media (max-width: 640px) { .sort-control { width: 100%; overflow-x: auto; flex-wrap: nowrap; } }

/* 상세 드로어 (목록에서 우측으로 열림) */
.drawer { width: min(560px, 100vw); }
.drawer-head .drawer-actions { display: flex; gap: 6px; }
.drawer-head .drawer-actions form { margin: 0; }
.drawer-detail { display: block; padding: 20px; background: #f5f5f7; }
.drawer-detail > .stack { max-width: none !important; }
.drawer-detail .kv { grid-template-columns: 104px minmax(0, 1fr); }

/* 템플릿 고르기: 검색 · 분류 이동 */
.tpl-top { position: sticky; top: -20px; z-index: 2; display: flex; gap: 8px; margin: -20px -20px 0; padding: 16px 20px 10px; background: rgb(255 255 255 / 94%); backdrop-filter: blur(10px); }
.tpl-search { flex: 1; width: auto; height: 40px; }
.tpl-search input { font-size: 15px; }
.tpl-custom { height: 40px; }
.tpl-custom svg, .tpl-empty .btn svg { width: 16px; height: 16px; flex: none; }
.tpl-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tpl-cats a { padding: 5px 11px; border-radius: 999px; background: #f5f5f7; color: var(--text-secondary); font-size: 12px; text-decoration: none; }
.tpl-cats a:hover { background: var(--brand-tint); color: var(--brand-ink); }
.tpl-group { scroll-margin-top: 70px; }
.tpl-empty { padding: 32px 0; text-align: center; color: var(--text-muted); }
.tpl-empty p { margin: 0 0 12px; }
.tpl.is-custom { display: none; }

/* freegrid.app 를 아차 스타일로 (테마 클래스 안쪽까지) */
.fg-host, .fg-host [class*="fg-theme-"] {
  --fg-font: var(--font-ui); --fg-font-size: 14px; --fg-accent: var(--brand); --fg-accent-fg: #fff; --fg-focus: var(--brand);
  --fg-bg: #fff; --fg-fg: var(--ink); --fg-muted: var(--text-muted);
  --fg-header-bg: #fff; --fg-header-fg: var(--text-muted); --fg-header-weight: 600; --fg-header-border: #f0f0f2; --fg-header-line: transparent;
  --fg-border: transparent; --fg-row-border: #f2f2f4; --fg-col-line: transparent; --fg-row-odd: #fff; --fg-row-hover: #fafafa;
  --fg-row-selected: var(--brand-tint); --fg-radius: 18px; --fg-cell-px: 16px; --fg-shadow: none;
}
.fg-host [role="gridcell"], .fg-host .fg-cell { cursor: pointer; }
.fg-host .cell-main, .fg-host .cell-date { pointer-events: none; }
.fg-host .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-host .cell-err { display: block; font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-input, textarea.input.add-input { resize: none; min-height: 42px; height: 42px; padding-top: 10px; line-height: 20px; overflow-y: auto; }
.fg-host, .fg-host [class*="fg-theme-"] { --fg-focus: transparent; --fg-range-bg: transparent; }
.fg-host :focus-visible { outline: none; }

/* ==========================================================
 *  랜딩 (.ld) — 넓은 화면용 편집 디자인
 *  종이 바탕 · 짙은 남색 글씨 · 강조색은 브랜드 코랄 하나 · 사진은 makePhoto
 * ========================================================== */
.ld {
  --ld-ink: #1c2230;
  --ld-soft: #4a5263;
  --ld-faint: #8a91a0;
  --ld-proof: #f4f1ee;
  --ld-rule: #e2ddd9;
  --ld-linen: 241, 236, 229;
  --ld-gutter: clamp(16px, 4vw, 48px);
  --ld-measure: 34em;
  --ld-h2: clamp(1.9rem, 3.6vw, 2.5rem);
  margin: 0;
  background: #fff;
  color: var(--ld-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  word-break: keep-all;
}
.ld img { max-width: 100%; display: block; }
.ld a { color: inherit; }
.ld h1, .ld h2, .ld h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
.ld p { margin: 0; }
.ld-wrap { width: min(100% - 2 * var(--ld-gutter), 1180px); margin-inline: auto; }

/* 머리말 */
.ld-head { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--ld-rule); }
.ld-head .ld-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.ld-wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.ld-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 14px; }
.ld-nav a { text-decoration: none; color: var(--ld-soft); }
.ld-nav a:hover { color: var(--ld-ink); }
.ld-nav .ld-nav-cta { padding: 7px 16px; border-radius: 999px; background: var(--ld-ink); color: #fff; font-weight: 600; }
.ld-nav .ld-nav-cta:hover { color: #fff; background: #2c3446; }

/* 첫 화면: 거실 탁자 사진 위 왼쪽에 글 */
.ld-hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center; padding-block: clamp(48px, 8vw, 112px); background: rgb(var(--ld-linen)); overflow: hidden; }
.ld-hero-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ld-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ld-linen), .94) 0%, rgba(var(--ld-linen), .8) 38%, rgba(var(--ld-linen), 0) 64%); }
.ld-hero-copy { max-width: 36rem; }
.ld-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; }
.ld-hero h1 em { font-style: normal; color: var(--brand); }
.ld-lede { margin-top: 20px !important; max-width: var(--ld-measure); font-size: 1.2rem; color: var(--ld-soft); line-height: 1.6; }
.ld-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ld-actions .btn-login { width: auto; height: 48px; padding: 0 22px; border: 1.5px solid var(--ld-ink); background: #fff; color: var(--ld-ink); font-size: 15px; font-weight: 600; box-shadow: none; }
.ld-actions .btn-login:hover { background: var(--ld-proof); }
.ld-actions .btn-login.is-dark { background: var(--ld-ink); color: #fff; }
.ld-actions .btn-login.is-dark:hover { background: #2c3446; }
.ld-note { margin-top: 14px !important; font-size: 13px; color: var(--ld-soft); }
@media (max-width: 760px) {
  .ld-hero { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 0 48px; }
  .ld-hero::before { display: none; }
  .ld-hero-photo img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .ld-hero .ld-wrap { margin-top: 32px; }
  .ld-actions .btn-login { width: 100%; }
}

/* 공통 구획 */
.ld-section { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--ld-rule); }
.ld-section h2 { font-size: var(--ld-h2); font-weight: 800; letter-spacing: -0.035em; max-width: 18em; }
.ld-intro { margin-top: 16px !important; max-width: var(--ld-measure); color: var(--ld-soft); font-size: 1.2rem; }

/* 메일 견본 + 설명 */
.ld-anatomy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .ld-anatomy-grid { grid-template-columns: 1fr; } }
.ld-proof { margin: 0; background: var(--ld-proof); padding: clamp(24px, 4vw, 48px); border-radius: 4px; }
.ld-mail { max-width: 420px; margin-inline: auto; background: #fff; border-radius: 6px; box-shadow: 0 1px 0 rgb(28 34 48 / 8%), 0 18px 40px -24px rgb(28 34 48 / 35%); overflow: hidden; }
.ld-mail-head { padding: 14px 18px; border-bottom: 1px solid var(--ld-rule); }
.ld-mail-head b { display: block; font-size: 14px; line-height: 1.4; }
.ld-mail-head span { font-size: 12px; color: var(--ld-faint); }
.ld-mail-body { padding: 18px; }
.ld-mail-body small { color: var(--ld-faint); font-size: 12px; }
.ld-mail-body p { margin: 2px 0 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.ld-mail-body em { font-style: normal; color: var(--brand-ink); }
.ld-mail-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #efeff0; }
.ld-mail-row b { display: block; font-size: 14px; line-height: 1.4; }
.ld-mail-row div span { font-size: 12px; color: var(--ld-faint); }
.ld-proof figcaption { display: flex; justify-content: space-between; gap: 12px; max-width: 420px; margin: 20px auto 0; font-size: 13px; color: var(--ld-faint); }
.ld-proof figcaption b { color: var(--brand-ink); font-weight: 600; }
.ld-anatomy { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ld-ink); }
.ld-anatomy div { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--ld-rule); }
.ld-anatomy h3 { font-size: 1.2rem; font-weight: 700; }
.ld-anatomy p { margin-top: 8px !important; color: var(--ld-soft); max-width: 22em; }

/* 사용 순서 */
.ld-steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.ld-steps li { counter-increment: step; }
.ld-steps li::before { content: counter(step); display: block; font-size: var(--ld-h2); font-weight: 200; line-height: 1; color: var(--brand); margin-bottom: 14px; }
.ld-steps h3 { font-size: 1.2rem; }
.ld-steps p { margin-top: 8px !important; color: var(--ld-soft); }
@media (max-width: 760px) { .ld-steps { grid-template-columns: 1fr; } }

/* 템플릿 목록 */
.ld-band { background: var(--ld-proof); }
.ld-kinds { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px clamp(24px, 4vw, 48px); }
.ld-kinds h3 { font-size: 14px; font-weight: 700; color: var(--brand-ink); padding-bottom: 12px; border-bottom: 2px solid var(--ld-ink); }
.ld-kinds ul { margin: 0; padding: 0; list-style: none; }
.ld-kinds li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ld-rule); }
.ld-kinds li a { text-decoration: none; font-weight: 500; }
.ld-kinds li a:hover { text-decoration: underline; }
.ld-kinds li span { color: var(--ld-faint); font-size: 13px; text-align: right; white-space: nowrap; }
.ld-more { margin-top: 28px !important; font-weight: 600; }

/* 장면 사진 3장 */
.ld-scenes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.ld-scenes figure { margin: 0; }
.ld-scenes img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: var(--ld-proof); }
.ld-scenes figcaption { margin-top: 18px; }
.ld-scenes h3 { font-size: 1.2rem; }
.ld-scenes p { margin-top: 8px !important; color: var(--ld-soft); }
@media (max-width: 760px) { .ld-scenes { grid-template-columns: 1fr; } }
.ld-checks { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: clamp(24px, 4vw, 48px); border-top: 2px solid var(--ld-ink); }
.ld-checks li { padding: 14px 0; border-bottom: 1px solid var(--ld-rule); }
.ld-checks b { display: block; font-weight: 700; }
.ld-checks span { color: var(--ld-soft); }

/* 자주 묻는 질문 */
.ld-faq { margin-top: 40px; max-width: 48rem; border-top: 2px solid var(--ld-ink); }
.ld-faq details { border-bottom: 1px solid var(--ld-rule); }
.ld-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 24px; color: var(--ld-faint); }
.ld-faq details[open] summary::after { content: "−"; }
.ld-faq details p { padding: 0 0 22px; color: var(--ld-soft); max-width: 40em; }

/* 맺음: 현관 선반 사진 */
.ld-closing { position: relative; isolation: isolate; padding-block: clamp(80px, 12vw, 160px); background: rgb(var(--ld-linen)); overflow: hidden; }
.ld-closing-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ld-closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ld-linen), .94) 0%, rgba(var(--ld-linen), .8) 40%, rgba(var(--ld-linen), .1) 70%); }
.ld-closing h2 { font-size: var(--ld-h2); font-weight: 800; letter-spacing: -0.035em; }
.ld-closing p { margin-top: 14px !important; max-width: 26em; font-size: 1.2rem; color: var(--ld-soft); }
@media (max-width: 760px) { .ld-closing::before { background: rgba(var(--ld-linen), .86); } }

.ld .site-foot { border-top: 1px solid var(--ld-rule); }

/* 약관·개인정보처리방침: 항목 사이 간격 */
.doc, .doc-modal-body { line-height: 25px; }
.doc h2, .doc-modal-body h2 { margin: 40px 0 4px; }
.doc h2 + p, .doc h2 + .guide-table, .doc-modal-body h2 + p, .doc-modal-body h2 + .guide-table { margin-top: 4px; }
.doc p, .doc-modal-body p { margin: 8px 0; }
.doc .guide-table, .doc-modal-body .guide-table { margin: 14px 0 18px; }
.doc .guide-table td, .doc-modal-body .guide-table td { line-height: 22px; }
.doc .guide-table td:first-child, .doc-modal-body .guide-table td:first-child { white-space: nowrap; }

/* 랜딩: 직접 입력 소개 · 메일 견본의 '변경' 칩 */
.ld-custom { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ld-custom-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-custom-photos img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) { .ld-custom { grid-template-columns: 1fr; } }
.ld-anatomy code { font-size: .92em; padding: 1px 5px; border-radius: 4px; background: var(--ld-proof); }
.dday.is-change { background: #da2333; color: #fff; }

/* 랜딩: 기능 꼬리표 · 서버/크론 견본 · 푸시 견본 · 요금 */
.ld-hero-tags { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-hero-tags li { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 78%); border: 1px solid var(--ld-rule); font-size: 13px; font-weight: 600; color: var(--ld-ink); }
.ld-anatomy-grid.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .ld-anatomy-grid.is-flip { grid-template-columns: 1fr; } }
.ld-link { margin-top: 10px !important; font-size: 14px; font-weight: 600; }
.ld-link a { color: var(--brand-ink); text-decoration: none; }
.ld-link a:hover { text-decoration: underline; }
.ld-board { max-width: 420px; margin-inline: auto; background: #fff; border-radius: 6px; box-shadow: 0 1px 0 rgb(28 34 48 / 8%), 0 18px 40px -24px rgb(28 34 48 / 35%); overflow: hidden; font-size: 14px; }
.ld-board-head { display: flex; justify-content: space-between; padding: 12px 18px; background: #faf8f6; border-bottom: 1px solid var(--ld-rule); font-size: 13px; }
.ld-board-head span { color: var(--ld-faint); }
.ld-board-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f0ece8; }
.ld-board-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-board-row span { display: block; font-size: 12px; color: var(--ld-faint); }
.ld-board-row em { font-style: normal; font-size: 12px; font-weight: 700; color: #0f6b3c; }
.ld-board-row.is-down { background: #fff5f5; }
.ld-board-row.is-down em { color: #da2333; }
.ld-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.ld-dot.is-down { background: #da2333; box-shadow: 0 0 0 3px #fde2e4; }
.ld-phone { display: grid; gap: 10px; max-width: 400px; margin-inline: auto; padding: 28px 18px; border-radius: 32px; background: linear-gradient(160deg, #2c3446, #1c2230); box-shadow: 0 24px 48px -28px rgb(28 34 48 / 60%); }
.ld-push { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 18px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(8px); }
.ld-push img { border-radius: 9px; background: #fff; }
.ld-push b { display: block; font-size: 14px; line-height: 1.35; }
.ld-push span { display: block; font-size: 13px; color: var(--ld-soft); line-height: 1.4; margin-top: 2px; }
.ld-push small { font-size: 11px; color: var(--ld-faint); white-space: nowrap; }
.ld-plans { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; }
.ld-plan { padding: 28px; border: 1.5px solid var(--ld-ink); border-radius: 6px; background: #fff; display: flex; flex-direction: column; }
.ld-plan.is-soon { border-color: var(--ld-rule); background: var(--ld-proof); }
.ld-plan h3 { font-size: 15px; color: var(--brand-ink); }
.ld-price { margin-top: 6px !important; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.ld-plan ul { margin: 16px 0 24px; padding: 0; list-style: none; flex: 1; }
.ld-plan li { padding: 7px 0; border-bottom: 1px solid var(--ld-rule); color: var(--ld-soft); }
.ld-plan-cta { align-self: flex-start; padding: 10px 20px; border-radius: 999px; background: var(--ld-ink); color: #fff !important; font-weight: 600; text-decoration: none; }
.ld-plan.is-soon .ld-plan-cta { background: #fff; color: var(--ld-ink) !important; border: 1.5px solid var(--ld-ink); }

/* 문서: 코드 블록 */
.doc pre.api-code { margin: 10px 0 18px; padding: 14px 16px; border-radius: 12px; background: #1c2230; color: #e8ebf0; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; letter-spacing: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; letter-spacing: 0; }
.doc h3 { color: var(--ink); font-size: 15px; margin: 22px 0 2px; }

/* 요금제 카드 3장 */
.ld-plans { max-width: 1000px; }
.ld-plan.is-pick { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ld-plan-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.ld-price small { font-size: 15px; font-weight: 600; color: var(--ld-faint); }
.ld-plan-cta.is-wait { background: #fff; color: var(--ld-faint) !important; border: 1.5px solid var(--ld-rule); cursor: default; }
.doc-plans { margin: 20px 0 8px; }
.doc-plans .ld-plans { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.doc-plans .ld-plan { padding: 20px; font-family: inherit; }
.doc-plans .ld-plan h3 { margin: 0; }
.doc-plans .ld-price { margin: 4px 0 0; color: var(--ink); }
.doc-plans .ld-plan ul { margin: 12px 0 16px; }
.doc-plans .ld-plan li { padding: 5px 0; font-size: 13px; }
.doc-plans .ld-plan-cta { font-size: 14px; }
.ld-plan-cta.is-sub { background: var(--brand); }
.ld-plan.is-pick .ld-plan-cta.is-sub { background: var(--brand); }
.ld-plan:not(.is-pick) .ld-plan-cta.is-sub { background: var(--ld-ink); }
.doc-plans { --ld-ink: #1c2230; --ld-soft: #4a5263; --ld-faint: #8a91a0; --ld-proof: #f4f1ee; --ld-rule: #e2ddd9; }
.doc-plans .ld-plan ul { list-style: none; padding: 0; }
.doc-plans .ld-plan-cta { display: inline-block; text-decoration: none; }

/* 엔터프라이즈 카드 */
.ld-plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1180px; }
.ld-plan.is-ent { background: var(--ld-ink); color: #fff; border-color: var(--ld-ink); }
.ld-plan.is-ent h3 { color: #ffb4a3; }
.ld-plan.is-ent li { color: rgb(255 255 255 / 78%); border-color: rgb(255 255 255 / 16%); }
.ld-plan-cta.is-ent { background: #fff; color: var(--ld-ink) !important; }
.doc-plans .ld-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .doc-plans .ld-plans { grid-template-columns: 1fr; } }
.ld-plan.is-ent .ld-price, .ld-plan.is-ent b { color: #fff; }

/* ==========================================================
 *  공개 페이지 공통 머리말 · 기능 카드 · 기능 소개 페이지 · 로그인
 * ========================================================== */
.ld-head {
  --ld-ink: #1c2230; --ld-soft: #4a5263; --ld-faint: #8a91a0; --ld-proof: #f4f1ee; --ld-rule: #e2ddd9; --ld-gutter: clamp(16px, 4vw, 48px);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ld-ink); line-height: 1.65; word-break: keep-all;
}
.ld-head .ld-wordmark { color: var(--ld-ink); }
.ld-nav a.is-on { color: var(--ld-ink); font-weight: 700; }
@media (max-width: 760px) { .ld-nav { gap: 12px; font-size: 13px; } }
/* 모바일: 주 메뉴는 햄버거 안으로 */
.ld-menu { display: none; position: relative; }
.ld-menu > summary { list-style: none; display: grid; place-content: center; gap: 4px; width: 40px; height: 40px; margin-right: -8px; border-radius: 10px; cursor: pointer; }
.ld-menu > summary::-webkit-details-marker { display: none; }
.ld-menu > summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ld-ink); transition: transform .2s, opacity .2s; }
.ld-menu[open] > summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ld-menu[open] > summary span:nth-child(2) { opacity: 0; }
.ld-menu[open] > summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.ld-menu-panel { position: absolute; right: -8px; top: calc(100% + 12px); width: min(260px, calc(100vw - 32px)); display: grid; padding: 8px; background: #fff; border: 1px solid var(--ld-rule); border-radius: 14px; box-shadow: 0 12px 32px rgb(28 34 48 / 14%); }
.ld-menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ld-ink); font-size: 15px; }
.ld-menu-panel a:hover, .ld-menu-panel a.is-on { background: rgb(var(--ld-linen)); font-weight: 700; }
.ld-menu-panel .ld-nav-cta { margin-top: 6px; text-align: center; background: var(--ld-ink); color: #fff; font-weight: 600; }
.ld-menu-panel .ld-nav-cta:hover { background: #2c3446; }
@media (max-width: 760px) {
  .ld-nav .optional { display: none; }
  .ld-menu { display: block; }
  .ld-head .ld-wrap { gap: 10px; }
  .ld-nav { margin-left: auto; }
}

/* 첫 화면 기능 꼬리표는 링크 */
.ld-hero-tags li { padding: 0; }
.ld-hero-tags a { display: block; padding: 4px 12px; text-decoration: none; }
.ld-hero-tags a:hover { color: var(--brand-ink); }

/* 기능 카드 */
.ld-features { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ld-features li { display: flex; }
.ld-features a { display: flex; flex-direction: column; flex: 1; padding: 24px; border: 1px solid var(--ld-rule); border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ld-features a:hover { border-color: var(--ld-ink); box-shadow: 0 12px 28px -20px rgb(28 34 48 / 45%); }
.ld-feature-icon { display: block; width: 48px; height: 48px; object-fit: contain; }
.ld-features h3 { margin-top: 16px !important; font-size: 1.15rem; }
.ld-features p { margin-top: 6px !important; color: var(--ld-soft); flex: 1; }
.ld-feature-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }

/* 요금 한 줄 */
.ld-price-line { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ld-link-row { display: flex; gap: 20px; font-weight: 600; }
.ld-link-row a { color: var(--brand-ink); text-decoration: none; }
.ld-link-row a:hover { text-decoration: underline; }

/* 버튼 */
.ld-cta { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ld-ink); color: #fff !important; font-weight: 600; text-decoration: none; }
.ld-cta:hover { background: #2c3446; }
.ld-cta.is-ghost { background: #fff; color: var(--ld-ink) !important; border: 1.5px solid var(--ld-ink); }
.ld-cta.is-ghost:hover { background: var(--ld-proof); }

/* 기능 소개 페이지 머리 */
.ld-page-head { padding-block: clamp(48px, 8vw, 96px); background: rgb(var(--ld-linen)); }
.ld-page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15; }
.ld-page-head h1 em { font-style: normal; color: var(--brand); }
.ld-crumb { margin-bottom: 14px !important; font-size: 14px; color: var(--ld-soft); }
.ld-crumb a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.ld-start { text-align: center; }
.ld-start h2 { margin-inline: auto; }
.ld-start .ld-intro { margin-inline: auto; }
.ld-start .ld-actions { justify-content: center; }
.ld-checks a { color: var(--brand-ink); text-decoration: none; }
.ld-code { margin: 24px 0 0; padding: 16px 18px; border-radius: 8px; background: var(--ld-ink); color: #e8ebf0; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; max-width: 860px; }

/* 로그인 */
.ld-login-body { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: rgb(var(--ld-linen)); }
.ld-login { box-sizing: border-box; width: min(100%, 420px); padding: clamp(28px, 6vw, 44px); border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgb(28 34 48 / 6%), 0 24px 48px -32px rgb(28 34 48 / 45%); }
.ld-login .ld-wordmark { margin-bottom: 28px; }
.ld-login h1 { font-size: 1.7rem; font-weight: 800; }
.ld-login-sub { margin-top: 6px !important; color: var(--ld-soft); }
.ld-login .banner { margin-top: 16px; }
.ld-login-buttons { margin-top: 24px; display: grid; gap: 10px; }
.ld-login-buttons .btn-login { box-sizing: border-box; width: 100%; height: 50px; padding: 0 16px; border-radius: 999px; justify-content: center; border: 1.5px solid var(--ld-ink); background: #fff; color: var(--ld-ink); font-size: 15px; font-weight: 600; box-shadow: none; }
.ld-login-buttons .btn-login:hover { background: var(--ld-proof); }
.ld-login-buttons .btn-login.is-dark { background: var(--ld-ink); color: #fff; }
.ld-login-buttons .btn-login.is-dark:hover { background: #2c3446; }
.ld-login-points { margin: 24px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--ld-rule); color: var(--ld-soft); font-size: 14px; }
.ld-login-points li { padding: 3px 0 3px 20px; position: relative; }
.ld-login-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-ink); font-weight: 700; }
.ld-login-fine { margin-top: 16px !important; font-size: 12px; color: var(--ld-faint); }
.ld-login-fine a { text-decoration: underline; }
.ld-login-back { margin-top: 20px !important; font-size: 14px; }
.ld-login-back a { text-decoration: none; color: var(--ld-soft); }

/* 페이지 첫 화면: 왼쪽 글 · 오른쪽 사진 (사진은 makePhoto hero) */
.ld-page-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ld-page-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px -36px rgb(28 34 48 / 55%); }
@media (max-width: 900px) {
  .ld-page-grid { grid-template-columns: 1fr; }
  .ld-page-photo { order: -1; }
  .ld-page-photo img { aspect-ratio: 16 / 10; }
}
.ld-doc-hero .ld-page-head { padding-block: clamp(36px, 6vw, 72px); }
.ld-doc-hero .ld-page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ld-doc-hero + .doc { padding-top: 40px; }
@media (max-width: 600px) {
  .doc .guide-table td:first-child { white-space: normal; }
  .doc .guide-table { display: block; overflow-x: auto; }
}

/* 생활 기한 가이드 (/guide) */
.ld-guide-stats { border-bottom: 1px solid var(--ld-rule); background: #fff; }
.ld-guide-stats .ld-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-guide-stats .ld-wrap > div { padding: 22px 0; display: flex; flex-direction: column; gap: 2px; }
.ld-guide-stats .ld-wrap > div + div { padding-left: clamp(12px, 3vw, 32px); border-left: 1px solid var(--ld-rule); }
.ld-guide-stats b { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ld-ink); }
.ld-guide-stats span { font-size: 13px; color: var(--ld-faint); }
@media (max-width: 640px) { .ld-guide-stats .ld-wrap { grid-template-columns: 1fr 1fr; } .ld-guide-stats .ld-wrap > div:nth-child(3) { padding-left: 0; border-left: 0; } .ld-guide-stats .ld-wrap > div:nth-child(n+3) { border-top: 1px solid var(--ld-rule); } }

.ld-guide-bar { position: sticky; top: 64px; z-index: 10; background: rgb(255 255 255 / 94%); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--ld-rule); }
.ld-guide-bar .ld-wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.ld-guide-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.ld-guide-chips::-webkit-scrollbar { display: none; }
.ld-guide-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 1px solid var(--ld-rule); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ld-guide-chips a:hover { border-color: var(--ld-ink); }
.ld-guide-chips a.is-on { background: var(--ld-ink); border-color: var(--ld-ink); color: #fff; }
.ld-guide-chips img { width: 20px; height: 20px; }
.ld-guide-chips small { font-size: 12px; font-weight: 500; color: var(--ld-faint); }
.ld-guide-chips a.is-on small { color: rgb(255 255 255 / 70%); }
.ld-guide-search { flex: none; display: flex; align-items: center; gap: 8px; width: 240px; height: 38px; padding: 0 12px; border: 1px solid var(--ld-rule); border-radius: 999px; background: #fff; color: var(--ld-faint); }
.ld-guide-search:focus-within { border-color: var(--ld-ink); }
.ld-guide-search svg { width: 16px; height: 16px; flex: none; }
.ld-guide-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ld-ink); width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .ld-guide-bar { top: 64px; }
  .ld-guide-bar .ld-wrap { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .ld-guide-search { width: auto; }
}

.ld-guide-cat { padding-block: clamp(32px, 4.5vw, 56px); scroll-margin-top: 140px; }
.ld-guide-cat + .ld-guide-cat { border-top: 1px solid var(--ld-rule); }
.ld-guide-cat-head { display: flex; align-items: center; gap: 16px; }
.ld-guide-cat-head img { width: 56px; height: 56px; flex: none; }
.ld-guide-cat-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; }
.ld-guide-cat-head h2 small { margin-left: 6px; font-size: 15px; font-weight: 600; color: var(--ld-faint); }
.ld-guide-cat-head p { margin-top: 4px !important; color: var(--ld-soft); }
.ld-guide-grid { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ld-guide-grid li { display: flex; }
.ld-guide-grid li[hidden] { display: none; }
.ld-guide-grid a { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--ld-rule); border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ld-guide-grid a:hover { border-color: var(--ld-ink); box-shadow: 0 12px 28px -22px rgb(28 34 48 / 45%); }
.ld-guide-grid h3 { font-size: 1.05rem; font-weight: 700; }
.ld-guide-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fdeae5; color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.ld-chip.is-soft { background: var(--ld-proof); color: var(--ld-soft); }
.ld-guide-when { font-size: 13px; color: var(--ld-faint); }
.ld-guide-when b { color: var(--ld-soft); font-weight: 600; }
.ld-guide-tip { font-size: 13px; line-height: 1.55; color: var(--ld-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-guide-cat[hidden] { display: none; }
.ld-guide-empty { padding: 48px 0; text-align: center; color: var(--ld-soft); }
.ld-guide-fine { margin-top: 28px !important; font-size: 13px; color: var(--ld-faint); }
@media (max-width: 760px) { .ld-guide-cat { scroll-margin-top: 190px; } }

/* 푸터: 위(브랜드 · 기능 링크) / 아래(사업자 정보 · 약관) */
.site-foot { padding: 40px 0 36px; }
.site-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; padding-bottom: 24px; border-bottom: 1px solid rgb(0 0 0 / 7%); }
.site-foot-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.site-foot-brand p { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.site-foot .site-foot-links { margin: 4px 0 0; gap: 8px 22px; }
.site-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; padding-top: 20px; }
.site-foot-legal { display: flex; gap: 16px; font-size: 13px; }
.site-foot-legal a { color: var(--text-secondary); text-decoration: none; }
.site-foot-legal a:hover { text-decoration: underline; }
.site-foot-legal b { font-weight: 600; color: var(--ink); }

/* 공개 상태 페이지 /status/<slug> */
.sp-body { background: rgb(var(--ld-linen)); min-height: 100dvh; }
.sp { width: min(100% - 32px, 760px); margin: 0 auto; padding: clamp(32px, 6vw, 64px) 0 40px; }
.sp-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.sp-updated { margin-top: 4px !important; font-size: 13px; color: var(--ld-faint); }
.sp-overall { margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 10px; font-weight: 700; color: #fff; background: #16a34a; }
.sp-overall.is-slow { background: #c27803; }
.sp-overall.is-down { background: #da2333; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 30%); }
.sp-note { margin-top: 14px !important; padding: 12px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--ld-rule); color: var(--ld-soft); }
.sp-list { list-style: none; margin: 20px 0 0; padding: 0; background: #fff; border: 1px solid var(--ld-rule); border-radius: 10px; }
.sp-list li { padding: 16px 20px; }
.sp-list li + li { border-top: 1px solid var(--ld-rule); }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-row b { font-weight: 700; word-break: break-all; }
.sp-right { display: flex; align-items: center; gap: 12px; }
.sp-pct { font-size: 13px; color: var(--ld-faint); }
.sp-state { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #dcfce7; color: #0f6b3c; }
.sp-state.is-slow { background: #fdf3e2; color: #a35a05; }
.sp-state.is-down { background: #fde2e4; color: #b4151f; }
.sp-state.is-paused { background: var(--ld-proof); color: var(--ld-soft); }
.sp-bars { margin-top: 12px; display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 28px; }
.sp-bars span { border-radius: 2px; background: #16a34a; }
.sp-bars span.is-slow { background: #e8a33c; }
.sp-bars span.is-down { background: #da2333; }
.sp-bars span.is-none { background: #e4e0dc; }
.sp-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ld-faint); }
.sp-foot { margin-top: 28px; text-align: center; font-size: 13px; }
.sp-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--ld-soft); text-decoration: none; }
.sp-foot img { width: 20px; height: 20px; }
@media (max-width: 520px) { .sp-bars { gap: 1px; height: 24px; } }

/* 상태 페이지 공지 · 최근 장애 (/status/<slug>) */
.sp-notices { margin-top: 14px; display: grid; gap: 10px; }
.sp-notice { padding: 14px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--ld-rule); border-left: 4px solid #2563eb; }
.sp-notice.is-maint { border-left-color: #c27803; }
.sp-notice.is-incident { border-left-color: #da2333; }
.sp-notice b { display: block; font-weight: 700; }
.sp-notice p { margin: 6px 0 0 !important; color: var(--ld-soft); white-space: pre-line; }
.sp-notice small { display: block; margin-top: 6px; font-size: 12px; color: var(--ld-faint); }
.sp-sub { margin: 28px 0 10px !important; font-size: 15px; font-weight: 700; }
.sp-history { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--ld-rule); border-radius: 10px; }
.sp-history li { padding: 12px 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-history li + li { border-top: 1px solid var(--ld-rule); }
.sp-history span { color: var(--ld-faint); }
/* 로그인: 이메일 링크 */
.ld-login-or { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--ld-faint); font-size: 13px; }
.ld-login-or::before, .ld-login-or::after { content: ""; flex: 1; height: 1px; background: var(--ld-rule); }
.ld-login-email { position: relative; margin-top: 14px; display: grid; gap: 10px; }
.ld-login-email .input { box-sizing: border-box; width: 100%; height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ld-rule); font-size: 15px; }
.ld-login-email .input:focus { border-color: var(--ld-ink); outline: none; }
.ld-login-email .btn-login { box-sizing: border-box; width: 100%; height: 50px; padding: 0 16px; border-radius: 999px; justify-content: center; border: 1.5px solid var(--ld-ink); background: var(--ld-ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: none; }
.ld-login-email .btn-login:hover { background: #2c3446; }
.ld-login-hint { margin: 0 !important; font-size: 13px; color: var(--ld-soft); }
