:root {
  color-scheme: light;
  --ink: #1a221d;
  --muted: #5c665d;
  --soft: #929b92;
  --line: #e3e8e1;
  --page: #f5f7f3;
  --panel: #ffffff;
  --accent: #1f4b3f;
  --accent-2: #2e6b52;
  --danger: #a3341f;
  --shadow: 0 10px 30px rgba(16, 38, 28, 0.06);
  --shadow-soft: 0 4px 16px rgba(16, 38, 28, 0.05);
}

* {
  box-sizing: border-box;
}

/* 체크박스·라디오 기본 크기. 브라우저 기본값(13px)은 모바일에서 누르기 어렵다.
   선택자 우선순위를 가장 낮게 두어 컴포넌트별 규칙이 언제든 덮어쓸 수 있게 한다. */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

html {
  /* clip: hidden과 달리 스크롤 컨테이너를 만들지 않는다. hidden이면 페이지 안의
     position:sticky(리뷰 화면 좌측 섹션탭 등)가 붙지 않고 그냥 스크롤돼 버린다. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
  overflow-x: clip;
  /* 한국어는 기본값이면 단어 한가운데서 줄이 바뀐다("오늘의 업 / 무를", "찾지 말 / 고").
     어절(띄어쓰기) 단위로 끊고, URL·토큰처럼 끊을 자리가 없어 넘치는 문자열만 예외로 쪼갠다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1168px;
  margin: 0 auto 8px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-menu-toggle {
  display: none;
}

.site-header nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a {
  color: var(--muted);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: #eef3f8;
  color: var(--ink);
}

.site-header nav a.nav-launcher-cta {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  padding: 7px 14px;
}
.site-header nav a.nav-launcher-cta:hover,
.site-header nav a.nav-launcher-cta:focus-visible {
  color: #fff;
  background: var(--accent);
  filter: brightness(1.08);
}

.nav-logout-form {
  margin: 0;
}

.site-header nav .nav-logout-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 7px 9px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header nav .nav-logout-button:hover,
.site-header nav .nav-logout-button:focus-visible {
  background: #eef3f8;
  color: var(--ink);
}

.nav-notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-demo-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header nav .nav-demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 7px 9px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header nav .nav-demo-toggle[hidden] {
  display: none;
}

.site-header nav .nav-demo-toggle:hover,
.nav-demo-menu.is-open .nav-demo-toggle {
  background: #eef3f8;
  color: var(--ink);
}

.site-header nav .nav-demo-toggle:focus-visible {
  background: #eef3f8;
  color: var(--ink);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-demo-toggle span {
  font-size: 11px;
  transition: transform 0.15s ease;
}

.nav-demo-menu.is-open .nav-demo-toggle span {
  transform: rotate(180deg);
}

.nav-demo-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 20px 48px rgba(16, 38, 28, 0.18);
}

.nav-demo-list[hidden] {
  display: none;
}

.site-header nav .nav-demo-list a {
  display: block;
  border-radius: 0;
  padding: 10px 14px;
  white-space: nowrap;
}

.site-header nav .nav-demo-list a + a {
  border-top: 1px solid var(--line);
}

.site-header nav .nav-tool-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  padding: 7px 9px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header nav .nav-tool-notifications:hover,
.site-header nav .nav-tool-notifications:focus-visible,
.nav-notification-menu.is-open .nav-tool-notifications {
  background: #eef3f8;
  color: var(--ink);
  outline: none;
}

.nav-notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: flex;
  width: min(390px, calc(100vw - 28px));
  max-height: min(540px, calc(100vh - 104px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 20px 48px rgba(16, 38, 28, 0.18);
  color: var(--ink);
}

.nav-notification-popover[hidden] {
  display: none;
}

.nav-notification-popover-head,
.nav-notification-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}

.nav-notification-popover-head {
  border-bottom: 1px solid var(--line);
}

.nav-notification-popover-head strong {
  font-size: 15px;
}

.nav-notification-popover-head span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.nav-notification-preview-list {
  min-height: 0;
  overflow-y: auto;
}

.nav-notification-preview-item {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.nav-notification-preview-item button {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 12px 15px;
  text-align: left;
}

.nav-notification-preview-item button:hover,
.nav-notification-preview-item button:focus-visible {
  background: #f5f8f5;
  outline: none;
}

.nav-notification-preview-item.is-unread button {
  background: #f0f8f3;
}

.nav-notification-preview-item.is-unread button:hover,
.nav-notification-preview-item.is-unread button:focus-visible {
  background: #e5f3e9;
}

.nav-notification-preview-source {
  align-self: start;
  border-radius: 999px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 6px;
  white-space: nowrap;
}

.nav-notification-preview-source--pbc {
  background: #e0f3e6;
  color: #17633d;
}

.nav-notification-preview-source--dsd {
  background: #e8effa;
  color: #315b94;
}

.nav-notification-preview-source--board {
  background: #f6ebdf;
  color: #8a541a;
}

.nav-notification-preview-source--admin {
  background: #f1eafa;
  color: #6a458e;
}

.nav-notification-preview-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.nav-notification-preview-copy strong,
.nav-notification-preview-copy span,
.nav-notification-preview-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-notification-preview-copy strong {
  font-size: 13px;
  font-weight: 750;
}

.nav-notification-preview-copy span,
.nav-notification-preview-copy small {
  color: var(--muted);
  font-size: 12px;
}

.nav-notification-preview-copy small {
  color: var(--soft);
  font-size: 11px;
}

.nav-notification-unread-dot {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9382a;
}

.nav-notification-empty {
  margin: 0;
  padding: 28px 15px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.nav-notification-popover-footer {
  border-top: 1px solid var(--line);
}

.nav-notification-popover-footer form {
  margin: 0;
}

.nav-notification-popover-footer button,
.nav-notification-popover-footer a {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 7px;
  text-decoration: none;
}

.nav-notification-popover-footer button:hover,
.nav-notification-popover-footer button:focus-visible,
.nav-notification-popover-footer a:hover,
.nav-notification-popover-footer a:focus-visible {
  background: #edf4ef;
  outline: none;
}

.header-search input {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  min-width: 150px;
}

.header-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 87, 166, 0.12);
  outline: none;
}

.site-main {
  max-width: 1168px;
  margin: 0 auto;
  padding: 30px 24px 64px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.layout-blog-sidebar {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-program-focus {
  grid-template-columns: minmax(0, 2fr) 340px;
}

.layout-program-focus .side-panel {
  gap: 18px;
}

.layout-wide-feed {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.layout-wide-feed .side-panel {
  gap: 14px;
}

.content-feed,
.side-panel {
  display: grid;
  gap: 16px;
}

.post-card,
.side-box {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 24px;
}

.post-card h1,
.post-card h2,
.post-card p {
  margin-top: 0;
}

.lead-post h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
}

.lead-post p:last-child,
.post-card p:last-child,
.side-box p:last-child {
  margin-bottom: 0;
}

.post-card a {
  color: var(--ink);
  text-decoration: none;
}

.post-card a:hover,
.post-card a:focus-visible {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.external-link-list {
  display: grid;
  gap: 8px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.external-link:hover,
.external-link:focus-visible {
  color: var(--accent);
}

.site-footer {
  max-width: 1168px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.narrow {
  max-width: 520px;
  margin: 34px auto 0;
}

.post-card.narrow {
  box-shadow: var(--shadow);
  padding: 30px;
}

.post-card.narrow h1 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.3;
}

.auth-lead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.stack-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.inline-check {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  justify-content: flex-start;
  gap: 8px !important;
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.inline-check span {
  display: inline-block;
}

.ai-consent {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink) !important;
  display: grid !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  gap: 10px !important;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.55;
  padding: 12px 14px;
  width: 100%;
}

.ai-consent input[type="checkbox"] {
  accent-color: var(--accent);
  block-size: 18px;
  inline-size: 18px;
  margin: 2px 0 0;
  padding: 0;
  width: 17px;
}

.ai-consent a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-consent[hidden] {
  display: none !important;
}

.token-lock-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
  vertical-align: middle;
}

.token-lock-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  block-size: 16px;
  inline-size: 16px;
}

.token-lock-toggle:hover,
.token-lock-toggle:focus-within {
  border-color: var(--accent);
  color: var(--accent);
}

.token-lock-toggle:has(input:checked) {
  background: #eef3f8;
  border-color: var(--accent);
  color: var(--accent);
}

.consent-check {
  align-items: center;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px 10px;
  min-height: 24px;
  width: 100%;
}

.consent-check input[type="checkbox"] {
  block-size: 18px;
  inline-size: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-check label {
  color: var(--muted);
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  min-width: 0;
  user-select: none;
}

.consent-check a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  user-select: none;
  white-space: nowrap;
}

.consent-check a:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(36, 87, 166, 0.12);
  outline: none;
}

.availability-check {
  display: block;
  width: 100%;
}

.availability-check input {
  margin: 0;
}

.field-status {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 19px;
}

.field-status[data-state="available"] {
  color: #2e8b57;
}

.field-status[data-state="taken"],
.field-status[data-state="error"] {
  color: var(--danger);
}

.field-optional {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* The change-diff mapping has dense checkbox lists; do not inherit the
   full-width text-input rule used by the general stacked form. */
.change-diff .checks input[type="checkbox"],
.change-diff input[type="checkbox"] {
  width: auto;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 87, 166, 0.12);
  outline: none;
}

.stack-form textarea {
  min-height: 140px;
  resize: vertical;
}

.primary-button,
.secondary-button,
.ghost-button {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  color: #fff !important;
  cursor: pointer;
}

.secondary-button,
.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.primary-button:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--accent) 75%, transparent);
  transform: translateY(-1px);
}

.secondary-button:hover,
.ghost-button:hover {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  box-shadow: none;
  transform: translateY(0);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.primary-button.disabled,
.secondary-button.disabled,
.ghost-button.disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.inline-button {
  display: inline-flex;
  margin: 16px 8px 16px 0;
}

.hero-secondary-link {
  align-items: center;
  align-self: center;
  border-radius: 6px;
  color: var(--accent) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
  padding: 7px 4px;
  text-decoration: none;
}

.hero-secondary-link::after {
  content: "→";
  font-size: 14px;
  margin-left: 6px;
}

.hero-secondary-link:hover,
.hero-secondary-link:focus-visible {
  background: #eef3f8;
  color: var(--accent) !important;
}

.form-error {
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fff3f2;
  color: var(--danger);
  font-weight: 700;
  padding: 10px 12px;
}

.form-success {
  border: 1px solid #abefc6;
  border-radius: 8px;
  background: #f0fdf4;
  color: #2e8b57;
  font-weight: 700;
  padding: 10px 12px;
}

.auth-helper-links {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
}

.auth-helper-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.auth-helper-links a:hover,
.auth-helper-links a:focus-visible {
  text-decoration: underline;
}

.reset-token-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: #fbfcfe;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
}

.reset-token-box code {
  background: #eef2f7;
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.program-link {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.program-link:hover,
.program-link:focus-visible {
  color: var(--accent);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.page-helper {
  color: var(--muted);
  margin: -4px 0 18px;
  max-width: 760px;
}

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-document h1 {
  margin-bottom: 0;
}

.legal-document section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.legal-document h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.trust-strip span,
.program-meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.program-summary-grid,
.today-task-grid,
.payment-guide,
.support-guide,
.program-fit-grid,
.process-steps {
  display: grid;
  gap: 10px;
}

.program-summary-grid,
.today-task-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-summary-card,
.today-task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 14px;
  text-decoration: none;
}

.program-summary-card:hover,
.program-summary-card:focus-visible,
.today-task-card:hover,
.today-task-card:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.program-summary-card span:last-child,
.today-task-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.today-task-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.program-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.payment-guide,
.support-guide,
.program-fit-grid,
.process-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.process-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-guide div,
.support-guide div,
.program-fit-grid div,
.process-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.payment-guide strong,
.support-guide strong,
.program-fit-grid strong,
.process-steps strong {
  display: block;
}

.payment-guide span,
.support-guide span,
.program-fit-grid span,
.process-steps p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.payment-policy-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: #fbfcfe;
  margin: 14px 0;
  padding: 12px;
}

.payment-policy-note strong {
  display: block;
  margin-bottom: 4px;
}

.payment-policy-note p {
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
}

.process-steps div > span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-bottom: 8px;
  width: 24px;
}

.program-link span,
.badge {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.badge.danger {
  color: var(--danger);
}

.article-detail {
  max-width: 820px;
}

.article-body {
  line-height: 1.8;
}

.release-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.stats-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.stats-grid strong.token-text {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
}

.token-copy-button {
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.token-copy-button:hover,
.token-copy-button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-app-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-app-content {
  min-width: 0;
}

.admin-page-title {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-page-title h1,
.admin-page-title p {
  margin: 0;
}

.admin-dashboard-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-side-nav {
  background: color-mix(in srgb, var(--panel) 94%, var(--page));
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  padding: 16px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-side-nav-heading {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.admin-side-nav-group {
  display: grid;
  gap: 4px;
}

.admin-side-nav-group > span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  margin: 0 0 3px 8px;
  text-transform: uppercase;
}

.admin-side-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  padding: 8px 10px;
  text-decoration: none;
}

.admin-side-nav a:hover,
.admin-side-nav a:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--accent);
  outline: none;
}

.admin-side-nav a.active {
  background: var(--accent);
  color: #fff;
}

.admin-key-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.admin-key-metrics a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  text-decoration: none;
}

.admin-key-metrics a:hover,
.admin-key-metrics a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  outline: none;
}

.admin-key-metrics span,
.admin-key-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-key-metrics strong {
  font-size: 28px;
  line-height: 1.1;
}

.admin-metrics-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.admin-metrics-details summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.admin-metrics-details summary::-webkit-details-marker { display: none; }

.admin-metrics-details summary::after {
  color: var(--muted);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  order: 3;
}

.admin-metrics-details[open] summary::after { content: "−"; }

.admin-metrics-details summary span { font-weight: 800; }
.admin-metrics-details summary small { color: var(--muted); font-size: 12px; margin-left: auto; }
.admin-metrics-details-body { border-top: 1px solid var(--line); display: grid; gap: 12px; padding: 14px; }

.article-slug-details {
  background: color-mix(in srgb, var(--page) 75%, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.article-slug-details summary {
  cursor: pointer;
  font-weight: 750;
  padding: 12px 0;
}

.article-slug-details summary span,
.article-slug-details p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.article-slug-details p { margin: 0 0 10px; }
.article-slug-details > label { margin-bottom: 12px; }

.section-heading-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 관리자 표 안의 행 액션 버튼은 작고 촘촘하게 */
.admin-shell table td .admin-actions {
  gap: 6px;
}
.admin-shell table td .admin-actions > form {
  margin: 0;
}
.admin-shell table td .admin-actions .primary-button,
.admin-shell table td .admin-actions .secondary-button,
.admin-shell table td .admin-actions button {
  min-height: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  white-space: nowrap;
}

.admin-shell table th {
  white-space: nowrap;
}

.admin-hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: 8px 0 0;
}
.muted-text {
  color: var(--soft);
  font-size: 12.5px;
}

.customer-bulk-actions {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.customer-bulk-actions textarea[name="notification_body"] {
  grid-column: span 3;
  min-height: 50px;
}

.customer-bulk-actions .secondary-button {
  min-height: 50px;
}

.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.event-credit-notice {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border: 1px solid #9ad8a7;
  border-radius: .7rem;
  background: #ecf9ee;
  color: #185c32;
  font-weight: 700;
}

.site-event-credit-notice {
  width: min(1120px, calc(100% - 32px));
  box-sizing: border-box;
  margin: 1rem auto -0.25rem;
}

.event-credit-card {
  border-left: 4px solid #2f855a;
}

.event-program-grid {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.event-program-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, .8fr) auto auto;
  align-items: center;
  gap: .75rem;
  padding: .65rem .8rem;
  border: 1px solid #dfe7e1;
  border-radius: .55rem;
}

.event-program-row > span {
  color: #64748b;
  font-size: .85rem;
}

@media (max-width: 720px) {
  .event-program-row {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid > * {
  min-width: 0;
}

.free-access-program-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
}

.free-access-program-card__header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.free-access-program-card__header strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.free-access-program-card__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.free-access-program-card__limit {
  color: var(--ink) !important;
  gap: 7px !important;
  min-width: 0;
}

.free-access-program-card__limit input {
  margin: 0;
  min-height: 42px;
}

.free-access-program-card__limit span,
.free-access-program-card__pbc-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.free-access-program-card__pbc-note {
  margin: 0;
}

.free-access-program-card__billing-toggle {
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-top: auto;
  padding-top: 13px;
}

.free-access-program-card__billing-toggle input[type="checkbox"] {
  flex: 0 0 auto;
}

.admin-link-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-link-grid a {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  text-decoration: none;
}

.priority-panel {
  display: grid;
  gap: 12px;
}

.priority-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.priority-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
  text-decoration: none;
}

.priority-item.danger {
  border-left-color: var(--danger);
}

.priority-item.warning {
  border-left-color: #f79009;
}

.priority-item.neutral {
  border-left-color: #475467;
}

.priority-item span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.operations-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-card {
  display: grid;
  gap: 14px;
}

.operations-card p {
  color: var(--muted);
  margin: 0;
}

.operations-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operations-metrics span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.plan-request-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 체크박스를 카드 폭만큼 늘리지 않고 제목과 같은 줄에 고정 크기로 둔다.
   (예전에는 grid 자식으로 늘어나 282x13px 짜리 납작한 체크박스가 됐다) */
.plan-request-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 6px 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.plan-request-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.plan-request-card > input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.plan-request-card > strong { grid-column: 2; grid-row: 1; align-self: center; }
.plan-request-card > span { grid-column: 2; }

/* 선택된 카드는 한눈에 구분되게 한다. */
.plan-request-card:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}

.plan-request-card:has(input[type="checkbox"]:disabled) {
  cursor: default;
  opacity: 0.72;
}

.plan-request-card:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.plan-request-card span {
  color: var(--muted);
  font-size: 13px;
}

/* 마지막 줄(월 요금)은 금액이므로 강조한다. */
.plan-request-card > span:last-child {
  margin-top: 2px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list a,
.compact-list div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding: 10px 0 0;
  text-decoration: none;
}

.compact-list span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.4;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
}

.status-pill.success {
  border-color: #abefc6;
  color: #2e8b57;
}

.compact-list .status-pill {
  justify-self: start;
  width: fit-content;
}

.search-form .primary-button {
  justify-self: start;
}

.ticket-form {
  display: grid;
  gap: 10px;
  min-width: 320px;
}

.ticket-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 5px;
}

.ticket-form select,
.ticket-form input,
.ticket-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

.ticket-form textarea {
  min-height: 58px;
  resize: vertical;
}

.ticket-note-cell {
  min-width: 180px;
}

.ticket-note-cell strong {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.ticket-note-cell p {
  color: var(--muted);
  margin: 4px 0 10px;
  white-space: pre-wrap;
}

.ticket-history {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

.ticket-history p {
  font-size: 12px;
  margin: 5px 0;
}

.ticket-history span {
  color: var(--muted);
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  contain: paint;
  max-width: 100%;
  min-width: 0;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.social-login {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.social-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.social-button:hover,
.social-button:focus-visible {
  border-color: #c9ced8;
  box-shadow: var(--shadow-soft);
}

.social-button:active {
  transform: translateY(1px);
}

.social-button.google {
  color: var(--ink);
  background: #fff;
}

.social-button.kakao {
  color: #181600;
  background: #fee500;
}

.compact-check {
  margin: 0;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
}

.table-select-all {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.table-select-all input {
  margin: 0;
}

/* 관리자 표의 선택 영역은 마우스·터치 모두에서 누르기 쉽게 통일한다.
   별도 규격을 가진 .inline-check, .board-admin-row, .plan-request-card는
   이 표 전용 선택자 밖에 두어 기존 컴포넌트 크기를 보존한다. */
.admin-shell .table-wrap :is(input[type="checkbox"], input[type="radio"]),
.admin-shell .customer-bulk-actions :is(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
}

.admin-shell .table-wrap td:has(:is(input[type="checkbox"], input[type="radio"])) {
  vertical-align: middle;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.inline-form {
  display: inline;
}

.admin-actions > .inline-form {
  align-items: center;
  display: inline-flex;
}

.admin-actions > .inline-form .inline-button {
  margin: 16px 8px 16px 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  padding: 0 0 0 8px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  padding: 18px;
  text-decoration: none;
}

.board-card:hover,
.board-card:focus-visible {
  border-color: #c9ced8;
  color: var(--accent);
}

.board-card span,
.board-row span {
  color: var(--muted);
  font-size: 13px;
}

.board-list {
  display: grid;
}

.board-intro-card {
  overflow: hidden;
}

.board-intro-card .section-heading-row {
  align-items: flex-start;
}

.board-intro-card .inline-button {
  flex: 0 0 auto;
  margin: 0;
}

.board-filter-card {
  padding-block: 18px;
}

.compact-board-filter {
  gap: 12px;
}

.compact-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 320px) repeat(3, minmax(120px, 180px));
}

.compact-filter-grid--simple {
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 220px));
}

.compact-filter-grid label {
  font-size: 13px;
}

.compact-filter-grid input,
.compact-filter-grid select {
  min-height: 40px;
}

.compact-filter-actions {
  margin-top: 2px;
}

.compact-filter-actions .primary-button,
.compact-filter-actions .secondary-button {
  min-height: 40px;
  padding: 9px 14px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.pagination .primary-button,
.pagination .secondary-button {
  min-height: 38px;
  min-width: 38px;
  padding: 8px 12px;
}

.pagination-current {
  cursor: default;
}

.pagination-gap {
  color: var(--muted);
  font-weight: 700;
  padding: 0 4px;
}

.board-post-bulk-actions {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.board-management-panel {
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.board-page:has(.board-management-panel:not([open])) .board-admin-row > input[type="checkbox"] {
  display: none;
}

.board-management-panel summary,
.support-admin-panel summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
}

.board-management-panel summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.danger-button {
  color: var(--danger) !important;
}

.notice-badge {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
  vertical-align: middle;
}

.notice-pin-check {
  align-self: flex-start;
}

.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 0;
  text-decoration: none;
}

.board-admin-row {
  justify-content: flex-start;
}

.board-admin-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.board-admin-row a {
  color: var(--ink);
  text-decoration: none;
}

.board-row-main {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.board-row-main > a {
  color: var(--ink);
  text-decoration: none;
}

.board-row-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.support-list-status,
.support-answer-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.support-list-status {
  background: #eef3f8;
  color: var(--accent) !important;
}

.support-list-status--resolved,
.support-list-status--closed,
.support-answer-badge {
  background: #ecfdf3;
  color: #28734b !important;
}

.board-empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 180px;
  padding: 28px;
  text-align: center;
}

.board-empty-state strong {
  color: var(--ink);
}

.inline-author-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.inline-author-link:hover,
.inline-author-link:focus-visible,
.board-row-main > a:hover,
.board-row-main > a:focus-visible {
  text-decoration: underline;
}

.bulk-select-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.board-admin-row a:hover,
.board-admin-row a:focus-visible {
  color: var(--accent);
}

.board-row:last-child {
  border-bottom: 0;
}

.editor-shell {
  max-width: 860px;
  margin: 0 auto;
}

.board-editor-card > h1 {
  margin-bottom: 6px;
}

.editor-lead {
  color: var(--muted);
  margin-bottom: 18px;
}

.blog-editor {
  gap: 18px;
}

.editor-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  margin: 0;
  min-width: 0;
  padding: 18px;
}

.editor-fieldset legend {
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  padding: 0 8px;
}

.fieldset-help {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 0;
}

.support-privacy-notice {
  align-items: flex-start;
  background: #eff8f4;
  border: 1px solid #cce4d8;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.support-privacy-notice strong {
  color: var(--accent);
}

.support-privacy-notice span {
  color: var(--muted);
  font-size: 13px;
}

.support-context-grid,
.support-result-grid {
  display: grid;
  gap: 14px;
}

.support-context-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-result-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-result-grid label,
.support-result-grid textarea {
  height: 100%;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.editor-toolbar span,
.editor-toolbar button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 12px;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.editor-body {
  min-height: 360px !important;
  line-height: 1.8;
}

.editor-surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  padding: 14px;
  white-space: normal;
}

.editor-surface:empty::before {
  color: var(--soft);
  content: attr(data-placeholder);
  pointer-events: none;
}

.editor-surface:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.editor-surface blockquote {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  margin: 14px 0;
  padding: 8px 0 8px 14px;
}

.editor-inline-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 14px 0;
  max-height: 160px;
  max-width: 220px;
  object-fit: contain;
}

.editor-help {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.editor-validation-error {
  margin: 0;
}

.editor-draft-status {
  color: var(--accent);
  font-size: 12px;
  min-height: 20px;
  margin: 0;
}

.editor-file-picker > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.editor-file-list {
  border: 1px dashed var(--line);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
}

.editor-existing-files {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.editor-existing-file {
  align-items: center;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.editor-existing-file input {
  height: 20px;
  margin: 0;
  width: 20px;
}

.editor-existing-file-action {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.editor-file-empty,
.editor-file-summary {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.editor-file-summary {
  color: var(--ink);
  font-weight: 800;
}

.editor-file-row {
  align-items: center;
  background: #f8fafc;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.editor-file-type {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
  white-space: nowrap;
}

.editor-file-type.is-image {
  background: #e8f3ee;
  color: var(--accent);
}

.editor-file-type.is-document {
  background: #eef3f8;
  color: #315f8f;
}

.editor-file-name {
  display: grid;
  min-width: 0;
}

.editor-file-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-file-name small {
  color: var(--muted);
}

.editor-file-remove {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 12px;
}

.editor-submit-actions .primary-button,
.editor-submit-actions .secondary-button {
  min-height: 44px;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.editor-preview {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.editor-preview img {
  display: block;
  max-width: 240px;
  border-radius: 8px;
}

.board-body img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 18px 0;
}

.board-body img.zoomable-image {
  border: 1px solid var(--line);
  cursor: zoom-in;
  max-height: 180px;
  max-width: 260px;
  object-fit: contain;
}

.board-body img.zoomable-image:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.image-lightbox {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 1000;
}

.image-lightbox img {
  background: #fff;
  border-radius: 8px;
  max-height: 86vh;
  max-width: 92vw;
  object-fit: contain;
}

.image-lightbox-close {
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  min-width: 60px;
  padding: 9px 12px;
  position: fixed;
  right: 24px;
  top: 24px;
}

.has-image-lightbox {
  overflow: hidden;
}

.comments-panel {
  margin-top: 18px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comment-item div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-item span {
  color: var(--muted);
  font-size: 12px;
}

.comment-item p {
  margin: 8px 0 0;
}

.comment-form {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.attachment-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
}

.attachment-list h2 {
  font-size: 18px;
  margin: 0;
}

.attachment-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
}

.attachment-item:hover,
.attachment-item:focus-visible {
  border-color: var(--accent);
}

.admin-state-form {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.board-detail-page {
  max-width: 960px;
  margin: 0 auto;
}

.board-detail-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px;
}

.board-detail-meta time {
  margin-left: auto;
}

.support-report-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 22px 0;
  padding: 20px 0;
}

.support-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.support-section-heading h2,
.support-section-heading .eyebrow {
  margin-bottom: 0;
}

.privacy-chip {
  background: #eff8f4;
  border: 1px solid #cce4d8;
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.support-report-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.support-report-grid > div {
  background: var(--panel);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
}

.support-report-grid .is-wide {
  grid-column: 1 / -1;
}

.support-report-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.support-report-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-status-timeline {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 22px 0 10px;
  padding: 0;
}

.support-status-timeline li {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}

.support-status-timeline li::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 50%;
  top: 15px;
}

.support-status-timeline li::after {
  background: var(--line);
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  right: 0;
  top: 15px;
}

.support-status-timeline li:first-child::before,
.support-status-timeline li:last-child::after {
  display: none;
}

.support-status-timeline li > span {
  align-items: center;
  background: #f1f4f1;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
  z-index: 1;
}

.support-status-timeline li.is-complete,
.support-status-timeline li.is-current {
  color: var(--accent);
}

.support-status-timeline li.is-complete::before,
.support-status-timeline li.is-complete::after,
.support-status-timeline li.is-current::before {
  background: var(--accent-2);
}

.support-status-timeline li.is-complete > span,
.support-status-timeline li.is-current > span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.support-updated-at {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.support-admin-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 8px;
}

.support-conversation {
  margin-top: 0;
}

.support-thread {
  margin-top: 18px;
}

.support-thread-item {
  border: 0;
  border-radius: 9px;
  background: #f7f8f6;
  padding: 14px;
}

.support-thread-item.is-official-reply,
.support-thread-item.is-support-team {
  background: #eff8f4;
  border-left: 3px solid var(--accent-2);
}

.status-pill--resolved,
.status-pill--closed {
  background: #ecfdf3;
  color: #28734b;
}

.menu-dnd-list {
  display: grid;
  gap: 10px;
}

.menu-dnd-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(96px, 0.7fr) minmax(180px, 1.2fr) auto;
  min-height: 58px;
  padding: 10px;
}

.menu-dnd-row.is-dragging {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  opacity: 0.78;
}

.drag-handle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: grab;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  user-select: none;
  width: 34px;
}

.menu-dnd-row:active .drag-handle {
  cursor: grabbing;
}

.menu-dnd-key {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.menu-dnd-kind,
.menu-dnd-label {
  display: grid;
  gap: 3px;
}

.menu-dnd-kind strong {
  color: var(--accent);
  font-size: 0.78rem;
}

.menu-dnd-label {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.menu-dnd-label a {
  color: var(--accent);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.billing-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.billing-tabs a {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.billing-tabs a[aria-current="page"] {
  background: #fff;
  border-color: var(--line);
  color: var(--accent);
  margin-bottom: -1px;
}

.payment-action-cell {
  min-width: 230px;
  vertical-align: top;
}

.plan-action-cell {
  min-width: 280px;
  vertical-align: top;
}

.payment-action-panel,
.plan-action-panel {
  display: grid;
  gap: 10px;
}

.payment-action-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-quick-actions form {
  margin: 0;
}

.payment-quick-actions button {
  min-height: 34px;
}

.payment-edit-panel,
.plan-edit-panel {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.payment-edit-panel summary,
.plan-edit-panel summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style-position: outside;
}

.payment-edit-panel[open] summary,
.plan-edit-panel[open] summary {
  margin-bottom: 8px;
}

.payment-edit-form,
.plan-edit-form {
  display: grid;
  gap: 8px;
}

.payment-edit-form label,
.plan-edit-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
}

.payment-edit-form input,
.payment-edit-form select,
.plan-edit-form input,
.plan-edit-form select {
  min-height: 34px;
}

@media (max-width: 860px) {
  .blog-layout,
  .stats-grid,
  .admin-grid,
  .operations-grid,
  .plan-request-grid,
  .priority-list,
  .program-summary-grid,
  .today-task-grid,
  .payment-guide,
  .support-guide,
  .program-fit-grid,
  .process-steps,
  .board-grid,
  .support-context-grid,
  .support-result-grid,
  .support-report-grid {
    grid-template-columns: 1fr;
  }

  .compact-filter-grid,
  .compact-filter-grid--simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-status-timeline {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .support-status-timeline li {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .support-status-timeline li::before {
    bottom: 50%;
    height: auto;
    left: 15px;
    right: auto;
    top: -12px;
    width: 2px;
  }

  .support-status-timeline li::after {
    bottom: -12px;
    height: auto;
    left: 15px;
    right: auto;
    top: 50%;
    width: 2px;
  }

  .admin-page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-app-layout,
  .admin-dashboard-layout { grid-template-columns: 1fr; }
  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    position: static;
  }
  .admin-side-nav-heading { grid-column: 1 / -1; }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    position: sticky;
  }

  .site-header nav {
    grid-column: 1 / -1;
    width: 100%;
    gap: 4px;
  }

  .site-header.nav-collapsible nav {
    display: none;
  }

  .site-header.nav-collapsible.nav-open nav {
    display: flex;
  }

  .nav-menu-toggle {
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
  }

  .nav-menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .site-header.nav-open .nav-menu-toggle {
    background: #eef3f8;
  }

  .site-header nav a,
  .site-header nav .nav-logout-button,
  .site-header nav .nav-tool-notifications,
  .site-header nav .nav-demo-list a {
    padding: 5px 7px;
  }

  .nav-demo-menu {
    display: grid;
    width: 100%;
    align-items: stretch;
  }

  .site-header nav .nav-demo-toggle {
    display: none;
  }

  .nav-demo-list,
  .nav-demo-list[hidden] {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header nav .nav-demo-list a {
    padding-left: 22px;
  }

  .site-header nav .nav-demo-list a + a {
    border-top: 0;
  }

  .nav-notification-popover {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    max-height: min(72vh, 560px);
    border-radius: 18px;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .layout-program-focus,
  .layout-wide-feed,
  .layout-blog-sidebar,
  .blog-layout,
  .site-main {
    padding-inline: 14px;
  }

  .site-footer {
    padding: 16px 14px;
  }

  .customer-bulk-actions {
    grid-template-columns: 1fr;
  }

  .customer-bulk-actions textarea[name="notification_body"] {
    grid-column: auto;
  }

  .menu-dnd-row {
    grid-template-columns: 34px 1fr;
  }

  .menu-dnd-row input,
  .menu-dnd-row label {
    grid-column: 1 / -1;
  }

  .compact-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Home visual refresh — hierarchy, accent, depth
   ============================================================ */

body {
  background:
    radial-gradient(150% 110% at 50% -12%,
      color-mix(in srgb, var(--accent) 7%, var(--page)) 0%,
      var(--page) 58%);
  background-attachment: fixed;
}

/* --- Hero (lead post) gets real weight --- */
.lead-post {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 13%, #fff) 0%,
      #ffffff 58%);
  box-shadow: 0 18px 44px rgba(18, 32, 56, 0.09);
}

.lead-post::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 18%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
}

.lead-post > * {
  position: relative;
  z-index: 1;
}

.lead-post .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  letter-spacing: 0.02em;
}

.lead-post h1 {
  font-size: 42px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lead-post > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.lead-post .primary-button {
  padding: 12px 22px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 32%, transparent);
}

/* --- Trust strip becomes solid chips with icons --- */
.trust-strip {
  gap: 10px;
  margin-top: 20px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.trust-strip span svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* --- Typographic hierarchy across cards --- */
.post-card h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
}

.side-box h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 800;
}

.section-heading-row a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* --- Program summary cards: lift + accent badge --- */
.program-summary-card {
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.program-summary-card:hover,
.program-summary-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.program-summary-card strong {
  font-size: 15px;
}

.program-summary-card .badge,
.today-task-card .badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--accent);
}

/* --- Sidebar program links: subtle accent on hover --- */
.side-panel .side-box {
  box-shadow: var(--shadow-soft);
}

.program-link {
  border-radius: 8px;
  padding: 12px 10px;
  margin: 0 -10px;
  transition: background-color 0.15s ease;
}

.program-link:first-of-type {
  border-top: 0;
}

.program-link:hover,
.program-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}

/* --- 사업자등록 상태조회: 그리드 입력 --- */
.bno-grid-field {
  display: grid;
  gap: 6px;
}

.bno-grid-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bno-grid-help {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.bno-grid-wrap {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bno-grid {
  width: 100%;
  border-collapse: collapse;
}

.bno-grid th,
.bno-grid td {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.bno-grid thead th {
  position: sticky;
  top: 0;
  background: var(--page);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  z-index: 1;
}

.bno-grid-no {
  width: 44px;
  color: var(--soft);
  font-size: 12px;
  text-align: center !important;
}

.bno-grid td.bno-grid-no {
  padding: 0 6px;
  background: var(--page);
}

.bno-grid-state {
  width: 72px;
  font-size: 12px;
  font-weight: 700;
  text-align: center !important;
}

.bno-grid-state.ok { color: var(--accent-2); }
.bno-grid-state.bad { color: var(--danger); }

.bno-grid td input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  outline: none;
}

.bno-grid tbody tr:focus-within {
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}

.bno-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bno-grid-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bno-grid-clear {
  padding: 5px 12px;
  font-size: 13px;
}

/* --- 프로그램 카탈로그: 역할·업무 중심 탐색 --- */
.catalog-page {
  display: grid;
  gap: 52px;
  min-width: 0;
}

.catalog-page [hidden] { display: none !important; }
.catalog-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 18px 0 4px;
}

.catalog-intro-copy { max-width: 720px; }
.catalog-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.catalog-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-wrap: balance;
}
.catalog-intro-copy > p:last-child {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.catalog-role-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}
.catalog-role-panel > strong { font-size: 16px; }
.catalog-role-panel > p { margin: -4px 0 2px; color: var(--muted); font-size: 12.5px; }
.catalog-role-buttons { display: grid; gap: 8px; }
.catalog-role-button,
.catalog-task-chip,
.catalog-search-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.catalog-role-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 750;
  text-align: left;
}
.catalog-role-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--soft);
  border-radius: 50%;
}
.catalog-role-button:hover,
.catalog-role-button:focus-visible { border-color: var(--accent); outline: none; }
.catalog-role-button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.catalog-role-button.active .catalog-role-dot { border-color: #fff; background: #fff; }

.catalog-search-zone {
  display: grid;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catalog-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.catalog-search-wrap label { display: grid; gap: 7px; }
.catalog-search-wrap label strong { font-size: 14px; }
.catalog-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.catalog-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
  outline: none;
}
.catalog-search-button {
  min-height: 48px;
  padding: 10px 22px;
  border-color: var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
}
.catalog-search-button:hover { filter: brightness(1.08); }
.catalog-task-scroller { min-width: 0; }
.catalog-task-scroller[hidden] { display: none !important; }
.catalog-task-group { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-task-chip {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
}
.catalog-task-chip:hover { border-color: var(--accent); color: var(--accent); }
.catalog-task-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.catalog-featured,
.catalog-all-tools { min-width: 0; }
.catalog-featured-head,
.catalog-all-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.catalog-featured-head h2,
.catalog-all-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; line-height: 1.25; }
.catalog-featured-head p,
.catalog-all-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.catalog-persona-badge {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}
.catalog-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.29fr);
  gap: 18px;
  align-items: stretch;
}
.catalog-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 100%; }
.catalog-core-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.catalog-core-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 800;
}
.catalog-core-kicker > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 11%, var(--page));
  font-size: 10px;
}
.catalog-core-card h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; }
.catalog-core-card > p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-highlight-row { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-highlight-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--page));
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 750;
}
.catalog-core-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-core-meta { display: flex; flex-wrap: wrap; gap: 5px; color: var(--soft); font-size: 10.5px; }

.catalog-quick-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.catalog-quick-kicker { margin: 0; color: var(--accent-2); font-size: 10.5px; font-weight: 850; letter-spacing: 0.1em; }
.catalog-quick-panel h3 { margin: 4px 0 0; font-size: 17px; }
.catalog-quick-copy { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.catalog-quick-list { display: grid; }
.catalog-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
}
.catalog-quick-item:first-child { border-top: 0; }
.catalog-quick-item > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-quick-mark { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.catalog-quick-item:hover { color: var(--accent-2); }

.catalog-all-head { align-items: center; }
.catalog-advanced-filters {
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.catalog-advanced-filters summary {
  padding: 11px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
}
.catalog-advanced-filters[open] summary { border-bottom: 1px solid var(--line); color: var(--ink); }
/* 접힌 <details> 안의 요소에 display를 지정하면 브라우저의 '접기'가 무시된다.
   이 때문에 '세부 필터'를 접어도 칩이 남아 카테고리 편집 버튼과 겹쳤다. */
.catalog-advanced-filters:not([open]) .catalog-toolbar { display: none; }
.catalog-toolbar { display: grid; gap: 10px; padding: 14px; }
.catalog-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-chip-label { width: 62px; color: var(--soft); font-size: 11.5px; font-weight: 800; }
.catalog-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 12px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.catalog-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.catalog-filter-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.fav-chip.active { border-color: #b72c57; background: #b72c57; color: #fff; }

.catalog-sections { display: flex; flex-direction: column; }
.catalog-section[hidden] { display: none !important; }
.catalog-section { margin-top: 28px; }
.catalog-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.catalog-section-head h2 { margin: 0; font-size: 16px; letter-spacing: -0.025em; }
.catalog-section-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
}
.catalog-section-rule { flex: 1; height: 1px; background: var(--line); }
.catalog-section-grid { display: grid; border-top: 1px solid var(--line); }

.catalog-card[hidden] { display: none !important; }
.catalog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) 176px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 15px 44px 15px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.catalog-card:hover,
.catalog-card:focus-within { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.catalog-card-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.catalog-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--page));
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.05em;
}
.catalog-card-title { min-width: 0; }
.catalog-card-title strong { display: block; font-size: 14px; line-height: 1.35; letter-spacing: -0.015em; }
.catalog-card-kind { display: block; margin-top: 3px; color: var(--soft); font-size: 10.5px; font-weight: 700; }
.catalog-card-desc {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-card-foot { display: grid; justify-items: end; gap: 5px; }
.catalog-card-price { color: var(--muted); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.catalog-card .badge {
  align-self: auto;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.catalog-card .badge-sub { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent-2); }
.catalog-card .badge-credit { background: color-mix(in srgb, #b8791f 12%, var(--panel)); color: #8a5a14; }
.catalog-card .badge-free { background: color-mix(in srgb, #1f7a52 12%, var(--panel)); color: #1f7a52; }
.catalog-card-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.catalog-card-btn {
  flex: 1 1 72px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.catalog-card-btn.ghost { border-color: var(--line); background: var(--panel); color: var(--muted); }
.catalog-card-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.catalog-card-btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.catalog-card-btn.primary:hover { filter: brightness(1.08); }
/* 가입 없이 체험 — primary(실행·가입)와 구분되되 ghost보다 눈에 띄는 중간 톤 */
.catalog-card-btn.demo {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  color: var(--accent-2, var(--accent));
  font-weight: 800;
}
.catalog-card-btn.demo:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }

/* 요금 저장 등 짧은 완료 안내. 하단 중앙, 잠깐 떴다 사라진다. */
#catalog-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(20, 30, 45, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#catalog-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { #catalog-toast { transition: none; } }

.fav-btn {
  position: absolute;
  top: 14px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}
.fav-btn:hover { background: var(--page); color: #b72c57; }
.fav-btn.active { color: #b72c57; }
.fav-btn:active { transform: scale(1.16); }
.card-admin-btn {
  position: absolute;
  top: 14px;
  right: 42px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.card-admin-btn:hover { background: var(--page); color: var(--accent); }
.catalog-empty { padding: 32px 0; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .catalog-intro { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr); gap: 30px; }
  .catalog-featured-layout { grid-template-columns: 1fr; }
  .catalog-quick-panel { grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr); align-items: start; }
  .catalog-quick-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-quick-item { padding: 10px 12px; border-top: 0; border-left: 1px solid var(--line); }
  .catalog-quick-item:first-child { border-left: 0; }
  .catalog-card { grid-template-columns: minmax(0, 1fr) auto; padding-right: 44px; }
  .catalog-card-main { grid-column: 1 / -1; }
  .catalog-card-foot { justify-items: start; }
  .catalog-card-actions { min-width: 176px; }
}

@media (max-width: 760px) {
  .catalog-page { gap: 40px; }
  .catalog-intro { grid-template-columns: 1fr; padding-top: 4px; }
  .catalog-intro h1 { font-size: clamp(34px, 10vw, 48px); }
  .catalog-role-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-role-button { align-items: flex-start; justify-content: center; min-height: 62px; flex-direction: column; gap: 5px; }
  .catalog-core-grid { grid-template-columns: 1fr; }
  .catalog-core-card > p { -webkit-line-clamp: 2; }
  .catalog-quick-panel,
  .catalog-quick-list { grid-template-columns: 1fr; }
  .catalog-quick-item { padding: 11px 0; border-top: 1px solid var(--line); border-left: 0; }
  .catalog-quick-item:first-child { border-top: 0; }
  .catalog-card-main { grid-template-columns: 1fr; gap: 8px; }
  .catalog-all-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .admin-side-nav { grid-template-columns: 1fr; padding: 12px; }
  .admin-metrics-details summary { align-items: flex-start; flex-wrap: wrap; }
  .admin-metrics-details summary small { margin-left: 0; width: 100%; }
  .catalog-page { gap: 34px; }
  .catalog-intro h1 { font-size: 36px; }
  .catalog-role-buttons { grid-template-columns: 1fr; }
  .catalog-role-button { min-height: 42px; align-items: center; justify-content: flex-start; flex-direction: row; }
  .catalog-search-wrap { grid-template-columns: 1fr; }
  .catalog-search-button { width: 100%; }
  .catalog-featured-head,
  .catalog-all-head { align-items: flex-start; flex-direction: column; }
  .catalog-task-scroller { position: relative; margin-right: -24px; }
  .catalog-task-scroller::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--page) 76%);
  }
  .catalog-task-group {
    flex-wrap: nowrap;
    padding-right: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-right: 48px;
  }
  .catalog-task-group::-webkit-scrollbar { display: none; }
  .catalog-task-group:focus-visible {
    border-radius: 999px;
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 4px;
  }
  .catalog-task-chip { flex: none; }
  .catalog-chip-label { width: 100%; }
  .catalog-card { grid-template-columns: 1fr; gap: 11px; padding: 15px 42px 15px 4px; }
  .catalog-card-main,
  .catalog-card-foot,
  .catalog-card-actions { grid-column: auto; }
  .catalog-card-foot { display: flex; justify-content: flex-start; }
  .catalog-card-actions { min-width: 0; }
  .catalog-card-desc { -webkit-line-clamp: 3; }
  .catalog-core-actions .catalog-card-btn,
  .catalog-card-actions .catalog-card-btn { min-height: 38px; }
}

/* ============================================================
   Program detail page (pd-*)  ·  프로그램 소개 전용
   사이트 --accent 변수를 따르며 다른 페이지에 영향 없음
   ============================================================ */
.pd { --pd-accent: var(--accent); }
.pd * { box-sizing: border-box; }

/* ---------- HERO ---------- */
.pd-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 60px) clamp(34px, 5vw, 60px);
  background:
    radial-gradient(120% 130% at 88% -10%,
      color-mix(in srgb, var(--pd-accent) 42%, #0d1f17) 0%,
      #10281e 46%, #0a1a13 100%);
  color: #eef4ef;
  box-shadow: 0 24px 60px -30px rgba(10, 26, 19, 0.55);
}
.pd-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 8%, #000 22%, transparent 74%);
          mask-image: radial-gradient(120% 90% at 82% 8%, #000 22%, transparent 74%);
  pointer-events: none;
}
.pd-hero-inner { position: relative; z-index: 1; max-width: 40em; }
.pd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--pd-accent), #ffffff 55%);
}
.pd-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.pd-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.03em; text-wrap: balance; color: #fff;
}
.pd-lead {
  margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.62;
  color: rgba(238, 242, 248, 0.82); max-width: 34em;
}
.pd-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pd-mi { display: flex; flex-direction: column; gap: 3px; }
.pd-mi b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.pd-mi span { font-size: 12.5px; color: rgba(238, 242, 248, 0.6); }

/* ---------- buttons ---------- */
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pd-btn svg { width: 16px; height: 16px; }
.pd-btn-primary {
  background: var(--pd-accent); color: #fff;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--pd-accent) 80%, transparent);
}
.pd-btn-primary:hover { background: color-mix(in srgb, var(--pd-accent) 88%, #000); transform: translateY(-1px); box-shadow: 0 16px 28px -12px color-mix(in srgb, var(--pd-accent) 85%, transparent); color: #fff; }
.pd-btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #eef2f8; }
.pd-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.4); }
.pd-btn-outline { background: var(--panel); border-color: var(--line); color: var(--ink); }
.pd-btn-outline:hover { background: color-mix(in srgb, var(--pd-accent) 8%, #fff); border-color: var(--pd-accent); color: var(--pd-accent); transform: translateY(-1px); box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--pd-accent) 75%, transparent); }
.pd-btn-block { width: 100%; }
.pd-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--pd-accent) 45%, transparent); outline-offset: 2px; }
.pd-btn:active { box-shadow: none; transform: translateY(0); }
.pd-btn:disabled,
.pd-btn.disabled { cursor: not-allowed; opacity: 0.55; pointer-events: none; transform: none; }

/* ---------- body layout ---------- */
.pd-body { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); margin-top: clamp(40px, 6vw, 60px); }
.pd-section { scroll-margin-top: 80px; }
.pd-head { max-width: 40em; margin-bottom: 26px; }
.pd-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pd-accent);
}
.pd-head h2 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }

/* ---------- prose (관리자 입력 설명) ---------- */
.pd-prose .pd-article {
  font-size: 16px; line-height: 1.75; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-soft);
}
.pd-article :is(h2, h3) { margin: 1.2em 0 0.4em; color: var(--ink); }

/* ---------- feature cards ---------- */
.pd-cards { display: grid; gap: 16px; }
.pd-cards-3 { grid-template-columns: repeat(3, 1fr); }
.pd-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px; box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pd-accent) 55%, var(--line)); box-shadow: var(--shadow); }
.pd-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--pd-accent) 12%, var(--panel));
  color: var(--pd-accent);
}
.pd-ic svg { width: 22px; height: 22px; }
.pd-card h3 { margin: 0; font-size: 17.5px; font-weight: 750; color: var(--ink); }
.pd-card p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* ---------- stat row ---------- */
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pd-stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.pd-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pd-accent); opacity: 0.8; }
.pd-stat span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.pd-stat strong { display: block; margin-top: 7px; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- flow steps ---------- */
.pd-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-step {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; box-shadow: var(--shadow-soft);
}
.pd-step-n {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--pd-accent);
  font-variant-numeric: tabular-nums;
}
.pd-step h4 { margin: 0; font-size: 16px; font-weight: 750; color: var(--ink); }
.pd-step p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.pd-step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -9px; width: 18px; height: 2px; background: var(--line); z-index: 1;
}

/* ---------- operation notes ---------- */
.pd-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pd-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-soft);
}
.pd-note-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pd-accent) 12%, var(--panel)); color: var(--pd-accent);
}
.pd-note-ic svg { width: 20px; height: 20px; }
.pd-note strong { display: block; font-size: 14.5px; font-weight: 750; color: var(--ink); }
.pd-note span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- pricing plans ---------- */
.pd-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pd-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow-soft);
}
.pd-plan-featured {
  border-color: color-mix(in srgb, var(--pd-accent) 55%, var(--line));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--pd-accent) 70%, transparent);
}
.pd-plan-flag {
  position: absolute; top: -11px; left: 24px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--pd-accent);
  padding: 4px 12px; border-radius: 20px;
}
.pd-plan h3 { margin: 0; font-size: 18px; font-weight: 750; color: var(--ink); }
.pd-plan-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); min-height: 2.4em; }
.pd-plan-price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 0; }
.pd-plan-price strong { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-plan-price span { font-size: 14px; color: var(--muted); }
.pd-plan-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pd-plan-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink); }
.pd-plan-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 9px;
  border-left: 2px solid var(--pd-accent); border-bottom: 2px solid var(--pd-accent);
  transform: rotate(-45deg);
}
.pd-plan .pd-btn { margin-top: 22px; }
.pd-hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.pd-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  border-radius: 20px; padding: clamp(28px, 4vw, 44px) clamp(26px, 4vw, 48px);
  background:
    radial-gradient(120% 160% at 6% 0%,
      color-mix(in srgb, var(--pd-accent) 40%, #0e2419) 0%, #10281e 55%, #0a1a13 100%);
  color: #eef4ef;
}
.pd-cta-copy { max-width: 34em; }
.pd-cta-copy h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.pd-cta-copy p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(238, 242, 248, 0.82); }
.pd-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-cta-actions .pd-btn-outline { background: rgba(255, 255, 255, 0.95); border-color: transparent; }
.pd-cta-pending { font-size: 13px; color: rgba(238, 242, 248, 0.6); align-self: center; }

/* ---------- release timeline ---------- */
.pd-timeline { position: relative; padding-left: 8px; }
.pd-rel { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding-bottom: 22px; }
.pd-rel:not(:last-child)::before {
  content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line);
}
.pd-rel-dot { width: 20px; height: 20px; border-radius: 50%; margin-top: 2px; background: var(--panel); border: 3px solid var(--pd-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pd-accent) 14%, transparent); }
.pd-rel-head { display: flex; align-items: center; gap: 10px; }
.pd-rel-head strong { font-size: 15.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-rel-body p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pd-flag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.pd-flag.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--panel)); }
.pd-empty { color: var(--muted); }

/* ---------- 산출물 미리보기 갤러리 ---------- */
.pd-gallery { margin-top: clamp(24px, 4vw, 36px); }
.pd-gallery-inner { max-width: 100%; }
.pd-gallery-grid {
  display: flex; flex-direction: column; gap: 22px; max-width: 1000px; margin: 0 auto;
}
.pd-gallery-item {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.pd-gallery-item img {
  display: block; width: 100%; height: auto; background: var(--panel); cursor: zoom-in;
}
.pd-gallery-item figcaption {
  padding: 12px 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line);
}
.pd-gallery-empty {
  background: color-mix(in srgb, var(--pd-accent) 6%, var(--panel));
  border: 1px dashed color-mix(in srgb, var(--pd-accent) 40%, var(--line));
  border-radius: 16px; padding: 20px 24px;
}
.pd-gallery-empty p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pd-gallery-empty a { color: var(--pd-accent); font-weight: 700; }

/* ---------- 이런 업무에 적합합니다 (간소화) ---------- */
.pd-fit-simple .pd-head { margin-bottom: 16px; }
.pd-fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-fit-list li {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.pd-fit-list li strong { color: var(--ink); margin-right: 8px; }

/* ---------- 관리자: 산출물 관리 그리드 ---------- */
.screenshot-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.screenshot-admin-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-soft); padding: 0 0 14px;
}
.screenshot-admin-card img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); margin-bottom: 12px;
}
.screenshot-admin-card form { padding: 0 14px; }
.screenshot-admin-card .admin-actions { padding: 0 14px; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pd-cards-3 { grid-template-columns: 1fr; }
  .pd-stats { grid-template-columns: 1fr 1fr; }
  .pd-flow { grid-template-columns: 1fr 1fr; }
  .pd-step:not(:last-child)::after { display: none; }
  .pd-notes { grid-template-columns: 1fr; }
  .pd-plans { grid-template-columns: 1fr; }
  .pd-cta { flex-direction: column; align-items: flex-start; }
  .pd-gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pd-stats { grid-template-columns: 1fr; }
  .pd-flow { grid-template-columns: 1fr; }
  .pd-hero-meta { gap: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-card, .pd-btn { transition: none; }
}

/* 홈 사이드바 '내 프로그램' 바로 실행 */
.launch-box .launch-list { display: grid; gap: 8px; margin-top: 10px; }
.launch-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.launch-item:hover, .launch-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(36, 87, 166, .12);
}
.launch-item:active { transform: translateY(1px); }
.launch-item strong { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.launch-run, .launch-open {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.launch-run { background: var(--accent); color: #fff; }
.launch-run svg { width: 13px; height: 13px; }
.launch-open { background: rgba(32, 37, 45, .07); color: var(--muted); }

/* ============================================================
   Home · 역할별 업무 대시보드 / 비회원 랜딩
   ============================================================ */
.home-dash,
.home-landing {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.home-dash a,
.home-landing a {
  text-decoration: none;
}

.home-layout-marker { display: none; }

.home-dash-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.home-dash-status-date { margin: 0; }
.home-dash-status-date strong { color: var(--ink); }
.home-dash-status-items { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.home-dash-status-items span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}
.home-dash-status-items strong { color: var(--accent-2); }

.home-dash-hero,
.home-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, .58fr);
  min-height: 326px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-dash-hero-copy,
.home-landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 5vw, 58px);
}

.home-dash-eyebrow,
.home-landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-dash-eyebrow::before,
.home-landing-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.home-dash-hero h1,
.home-landing-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(37px, 4.6vw, 54px);
  font-weight: 870;
  letter-spacing: -.055em;
  line-height: 1.14;
  text-wrap: balance;
}

.home-dash-hero-description,
.home-landing-hero-copy > p:not(.home-landing-eyebrow) {
  max-width: 620px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.home-dash-hero-actions,
.home-landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.home-dash-button,
.home-landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  transition: border-color .15s ease, color .15s ease, filter .15s ease, transform .15s ease;
}

.home-dash-button:hover,
.home-dash-button:focus-visible,
.home-landing-button:hover,
.home-landing-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.home-dash-button--primary,
.home-landing-button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.home-dash-button--primary:hover,
.home-dash-button--primary:focus-visible,
.home-landing-button--primary:hover,
.home-landing-button--primary:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.home-dash-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 700;
}

.home-dash-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.home-dash-hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

.home-dash-hero-focus,
.home-landing-role-summary {
  position: relative;
  display: grid;
  align-content: center;
  gap: 19px;
  min-width: 0;
  padding: 30px;
  background: var(--accent);
  color: #fff;
}

.home-dash-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .1;
}
.home-dash-hero-focus > *:not(.home-dash-hero-image) { position: relative; z-index: 1; }

.home-dash-focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-dash-focus-head p,
.home-dash-focus-empty > p,
.home-landing-role-summary > p {
  margin: 0 0 4px;
  color: rgba(255,255,255,.65);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .11em;
}

.home-dash-focus-head h2,
.home-dash-focus-empty h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  letter-spacing: -.03em;
  line-height: 1.3;
}

.home-dash-focus-head > span {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.home-dash-focus-subtitle {
  margin: -8px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 11.5px;
  line-height: 1.6;
}

.home-dash-focus-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: rgba(255,255,255,.72);
  font-size: 10.5px;
}
.home-dash-focus-progress strong { color: #fff; font-size: 12px; }
.home-dash-focus-progress progress,
.home-dash-work-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
}
.home-dash-focus-progress progress { background: rgba(255,255,255,.14); }
.home-dash-focus-progress progress::-webkit-progress-bar { background: rgba(255,255,255,.14); border-radius: 999px; }
.home-dash-focus-progress progress::-webkit-progress-value { background: #b7d4c2; border-radius: 999px; }
.home-dash-focus-progress progress::-moz-progress-bar { background: #b7d4c2; border-radius: 999px; }

.home-dash-focus-metrics { display: grid; margin: 0; }
.home-dash-focus-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
}
.home-dash-focus-metrics > div:first-child { border-top: 0; padding-top: 0; }
.home-dash-focus-metrics dt { color: rgba(255,255,255,.67); }
.home-dash-focus-metrics dd { margin: 0; color: #fff; font-weight: 800; }
.home-dash-focus-link,
.home-dash-focus-empty a {
  justify-self: start;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.home-dash-focus-link:hover,
.home-dash-focus-empty a:hover { color: #d9ebdf; }
.home-dash-focus-empty { display: grid; gap: 10px; }
.home-dash-focus-empty > span { color: rgba(255,255,255,.67); font-size: 11.5px; }

.home-dash-section,
.home-landing-section { min-width: 0; }

.home-dash-section-head,
.home-landing-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.home-dash-section-head p,
.home-landing-section-head p {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .1em;
}
.home-dash-section-head h2,
.home-landing-section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.home-dash-section-head div > span,
.home-landing-section-head div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}
.home-dash-section-head > a,
.home-landing-section-head > a {
  flex: none;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}
.home-dash-section-head > a:hover,
.home-landing-section-head > a:hover { color: var(--accent); }

.home-dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-dash-quick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: border-color .15s ease, transform .15s ease;
}
.home-dash-quick-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-1px); }
.home-dash-quick-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 850;
}
.home-dash-quick-copy { min-width: 0; }
.home-dash-quick-source {
  display: block;
  color: var(--soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.home-dash-quick-source--favorite { color: #9c3155; }
.home-dash-quick-source--recent { color: var(--accent-2); }
.home-dash-quick-card h3 {
  overflow: hidden;
  margin: 2px 0 3px;
  font-size: 14px;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-dash-quick-card p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-dash-quick-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent) !important;
  font-weight: 850;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.home-dash-quick-link:hover,
.home-dash-quick-link:focus-visible { border-color: var(--accent); background: var(--accent); color: #fff !important; outline: none; }

.home-dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(286px, .52fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.home-dash-main-column,
.home-dash-side-stack { display: grid; gap: 18px; min-width: 0; }
.home-dash-work-panel,
.home-dash-alert-panel,
.home-dash-account-panel,
.home-dash-core-panel,
.home-dash-updates,
.home-landing-updates {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.home-dash-panel-head,
.home-dash-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 21px 14px;
}
.home-dash-panel-head h2,
.home-dash-side-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.home-dash-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.home-dash-panel-head > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 850;
}
.home-dash-panel-head > a,
.home-dash-side-head > a { color: var(--muted); font-size: 10.5px; font-weight: 800; }
.home-dash-panel-head > a:hover,
.home-dash-side-head > a:hover { color: var(--accent); }

.home-dash-work-list { padding: 0 21px 6px; }
.home-dash-work-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, .8fr) 86px auto;
  gap: 17px;
  align-items: center;
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.home-dash-work-name { min-width: 0; }
.home-dash-work-name > span {
  display: block;
  color: var(--soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.home-dash-work-name h3 {
  overflow: hidden;
  margin: 2px 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-dash-work-name p { overflow: hidden; margin: 0; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.home-dash-work-progress { min-width: 0; }
.home-dash-work-progress > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 9.5px; }
.home-dash-work-progress strong { color: var(--ink); }
.home-dash-work-progress progress { background: #edf0ec; }
.home-dash-work-progress progress::-webkit-progress-bar { background: #edf0ec; border-radius: 999px; }
.home-dash-work-progress progress::-webkit-progress-value { background: var(--accent-2); border-radius: 999px; }
.home-dash-work-progress progress::-moz-progress-bar { background: var(--accent-2); border-radius: 999px; }
.home-dash-work-due { display: grid; justify-items: end; color: var(--muted); font-size: 9.5px; text-align: right; }
.home-dash-work-due strong { color: var(--ink); font-size: 10.5px; }
.home-dash-work-link {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.home-dash-work-link:hover,
.home-dash-work-link:focus-visible { border-color: var(--accent); color: var(--accent) !important; outline: none; }

.home-dash-core-panel { padding-bottom: 21px; }
.home-dash-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 21px;
}
.home-dash-core-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.home-dash-core-card:hover,
.home-dash-core-card:focus-visible { border-color: var(--accent); background: #fbfcfb; outline: none; }
.home-dash-core-card > span { color: var(--accent-2); font-size: 9.5px; font-weight: 850; }
.home-dash-core-card > strong { margin-top: 8px; font-size: 13.5px; letter-spacing: -.02em; }
.home-dash-core-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: auto 0 0;
  padding-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-dash-alert-panel { padding-bottom: 16px; }
.home-dash-side-head h2 { font-size: 16px; }
.home-dash-side-head > span { color: var(--danger); font-size: 10px; font-weight: 850; }
.home-dash-alert-list { padding: 0 19px; }
.home-dash-alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.home-dash-alert-item:first-child { border-top: 0; }
.home-dash-alert-item > i { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #a96a17; }
.home-dash-alert-item--notice > i,
.home-dash-alert-item--neutral > i { background: var(--accent-2); }
.home-dash-alert-item--danger > i { background: var(--danger); }
.home-dash-alert-item > span { min-width: 0; }
.home-dash-alert-item strong { display: block; font-size: 11.5px; line-height: 1.45; }
.home-dash-alert-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.home-dash-alert-item > b { color: var(--soft); font-size: 13px; }
.home-dash-alert-item:hover strong { color: var(--accent-2); }
.home-dash-side-link { display: inline-block; margin: 5px 19px 0; color: var(--muted) !important; font-size: 10.5px; font-weight: 800; }
.home-dash-side-link:hover { color: var(--accent) !important; }

.home-dash-account-panel { overflow: hidden; }
.home-dash-account-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.home-dash-account-stat { min-width: 0; padding: 16px 18px; }
.home-dash-account-stat + .home-dash-account-stat { border-left: 1px solid var(--line); }
.home-dash-account-stat span { display: block; color: var(--soft); font-size: 9.5px; font-weight: 800; }
.home-dash-account-stat strong { display: block; overflow: hidden; margin-top: 3px; font-size: 14px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.home-dash-account-stat small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.home-dash-updates,
.home-landing-updates { padding: 21px; }
.home-dash-update-grid,
.home-landing-update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-dash-update-item,
.home-landing-update-item { min-width: 0; padding: 4px 18px 4px 0; }
.home-dash-update-item + .home-dash-update-item,
.home-landing-update-item + .home-landing-update-item { padding-left: 18px; border-left: 1px solid var(--line); }
.home-dash-update-item > span,
.home-landing-update-item > span { color: var(--accent-2); font-size: 9.5px; font-weight: 850; }
.home-dash-update-item strong,
.home-landing-update-item strong { display: block; overflow: hidden; margin-top: 5px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-dash-update-item small,
.home-landing-update-item small { display: block; margin-top: 4px; color: var(--soft); font-size: 9.5px; }
.home-dash-update-item:hover strong,
.home-landing-update-item:hover strong { color: var(--accent); }

.home-dash-empty,
.home-landing-empty { padding: 24px; color: var(--muted); text-align: center; }
.home-dash-empty strong,
.home-landing-empty strong { color: var(--ink); }
.home-dash-empty p,
.home-landing-empty p { margin: 5px 0 10px; font-size: 12px; }
.home-dash-empty a,
.home-landing-empty a { color: var(--accent); font-size: 11.5px; font-weight: 800; }
.home-dash-empty--compact { padding: 18px; }
.home-dash-links,
.home-landing-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 2px; border-top: 1px solid var(--line); }
.home-dash-links a,
.home-landing-links a { color: var(--muted); font-size: 11px; }

/* 비회원 랜딩 */
.home-landing-role-summary { position: relative; overflow: hidden; }
.home-landing-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .1;
}
.home-landing-role-summary > *:not(.home-landing-hero-image) { position: relative; z-index: 1; }
.home-landing-role-summary article { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); }
.home-landing-role-summary article > span { display: block; color: #b7d4c2; font-size: 10px; font-weight: 800; }
.home-landing-role-summary article > strong { display: block; margin-top: 3px; color: #fff; font-size: 14px; }
.home-landing-role-summary article > small { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 10px; }
.home-landing-proofs { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 22px; }
.home-landing-brand-line {
  margin-top: 9px;
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 700;
}
.home-landing-proofs span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.home-landing-proofs b { color: var(--accent-2); font-size: 9px; }
.home-landing-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-landing-role-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.home-landing-role-number { color: var(--accent-2); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.home-landing-role-card h3 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -.03em; }
.home-landing-role-card > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; }
.home-landing-role-programs { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.home-landing-role-programs a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 750; }
.home-landing-role-programs b { color: var(--soft); }
.home-landing-role-programs a:hover { color: var(--accent); }
.home-landing-role-link { display: inline-block; margin-top: 15px; color: var(--accent) !important; font-size: 11.5px; font-weight: 800; }
.home-landing-featured { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.home-landing-featured-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.home-landing-featured-head h3 { margin: 0; font-size: 16px; }
.home-landing-featured-head span { color: var(--muted); font-size: 11px; }
.home-landing-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-landing-core-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 164px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  transition: border-color .15s ease, transform .15s ease;
}
.home-landing-core-card:hover,
.home-landing-core-card:focus-visible { border-color: var(--accent); outline: none; transform: translateY(-1px); }
.home-landing-program-policy { align-self: flex-start; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 9%, var(--panel)); color: var(--accent-2); font-size: 9px; font-weight: 800; }
.home-landing-core-card strong { margin-top: 10px; font-size: 14px; }
.home-landing-core-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.home-landing-core-card small { margin-top: auto; padding-top: 10px; color: var(--soft); font-size: 9.5px; }

/* 관리자 홈 레이아웃 설정 */
.home-dash-layout--program-focus .home-dash-hero {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
}
.home-dash-layout--program-focus .home-dash-quick-grid {
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .85fr));
}
.home-dash-layout--wide-feed .home-dash-main-grid {
  grid-template-columns: minmax(0, 1fr);
}
.home-dash-layout--wide-feed .home-dash-side-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-landing-layout--program-focus .home-landing-role-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.home-landing-layout--wide-feed .home-landing-hero {
  grid-template-columns: minmax(0, 1fr);
}
.home-landing-layout--wide-feed .home-landing-role-summary {
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .home-dash-hero,
  .home-landing-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); }
  .home-dash-hero-copy,
  .home-landing-hero-copy { padding: 36px; }
  .home-dash-hero-focus,
  .home-landing-role-summary { padding: 26px; }
  .home-dash-quick-grid { grid-template-columns: 1fr; }
  .home-dash-main-grid { grid-template-columns: 1fr; }
  .home-dash-side-stack { grid-template-columns: 1.2fr .8fr; }
  .home-dash-layout--program-focus .home-dash-hero,
  .home-landing-layout--wide-feed .home-landing-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); }
  .home-dash-layout--program-focus .home-dash-quick-grid { grid-template-columns: 1fr; }
  .home-dash-layout--wide-feed .home-dash-side-stack { grid-template-columns: 1.2fr .8fr; }
  .home-landing-layout--wide-feed .home-landing-role-summary { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .home-dash,
  .home-landing { gap: 34px; }
  .home-dash-status-strip { align-items: flex-start; flex-direction: column; gap: 9px; }
  .home-dash-status-items { justify-content: flex-start; }
  .home-dash-hero,
  .home-landing-hero { grid-template-columns: 1fr; border-radius: 17px; }
  .home-dash-layout--program-focus .home-dash-hero,
  .home-landing-layout--wide-feed .home-landing-hero { grid-template-columns: 1fr; }
  .home-dash-hero-copy,
  .home-landing-hero-copy { min-height: 340px; padding: 35px 28px; }
  .home-dash-hero h1,
  .home-landing-hero h1 { font-size: clamp(35px, 10vw, 47px); }
  .home-dash-hero-focus,
  .home-landing-role-summary { padding: 28px; }
  .home-dash-section-head,
  .home-landing-section-head { align-items: flex-start; }
  .home-dash-work-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .home-dash-work-progress { grid-column: 1 / -1; grid-row: 2; }
  .home-dash-work-due { display: none; }
  .home-dash-side-stack { grid-template-columns: 1fr; }
  .home-dash-layout--wide-feed .home-dash-side-stack { grid-template-columns: 1fr; }
  .home-dash-core-grid,
  .home-landing-core-grid { grid-template-columns: 1fr; }
  .home-dash-core-card { min-height: 105px; }
  .home-landing-role-grid { grid-template-columns: 1fr; }
  .home-landing-layout--program-focus .home-landing-role-grid { grid-template-columns: 1fr; }
  .home-dash-update-grid,
  .home-landing-update-grid { grid-template-columns: 1fr; }
  .home-dash-update-item,
  .home-dash-update-item + .home-dash-update-item,
  .home-landing-update-item,
  .home-landing-update-item + .home-landing-update-item { padding: 12px 0; border-top: 1px solid var(--line); border-left: 0; }
  .home-dash-update-item:first-child,
  .home-landing-update-item:first-child { border-top: 0; }
}

@media (max-width: 520px) {
  .home-dash-hero-copy,
  .home-landing-hero-copy { min-height: 0; padding: 31px 23px 33px; }
  .home-dash-hero h1,
  .home-landing-hero h1 { font-size: 35px; }
  .home-dash-hero-description,
  .home-landing-hero-copy > p:not(.home-landing-eyebrow) { font-size: 13px; }
  .home-dash-hero-actions,
  .home-landing-hero-actions { width: 100%; }
  .home-dash-button,
  .home-landing-button { flex: 1; min-height: 44px; }
  .home-dash-hero-focus,
  .home-landing-role-summary { padding: 24px 22px; }
  .home-dash-section-head,
  .home-landing-section-head { flex-direction: column; }
  .home-dash-quick-card { padding: 14px; }
  .home-dash-work-list,
  .home-dash-core-grid { padding-inline: 17px; }
  .home-dash-panel-head,
  .home-dash-side-head { padding-inline: 17px; }
  .home-dash-account-grid { grid-template-columns: 1fr; }
  .home-dash-account-stat + .home-dash-account-stat { border-top: 1px solid var(--line); border-left: 0; }
  .home-landing-featured-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .home-dash *,
  .home-landing * { transition-duration: .01ms !important; }
}

/* ============================================================
   Program detail v2 · 업무결정형 공통 제품 소개
   ============================================================ */
.program-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 94%, var(--accent) 6%);
}
.program-context-path,
.program-context-state {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.program-context-path {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.program-context-path a { color: var(--accent-2); font-weight: 800; text-decoration: none; }
.program-context-path strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.program-context-state { flex: none; }
.program-context-status,
.program-context-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.program-context-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.program-context-status--ready { background: #eaf5ee; color: #25704b; }
.program-context-status--attention { background: #fff5dd; color: #9c6510; }
.program-context-status--danger { background: #fdecec; color: #a74141; }
.program-context-admin { background: #eff1f4; color: #555f6b; }
.program-context-state > a {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.program-context-state > a:hover,
.program-context-state > a:focus-visible { background: color-mix(in srgb, var(--accent) 88%, #000); color: #fff; }
.program-context-state > a.program-context-intro {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: #fff;
  color: var(--accent);
}
.program-context-state > a.program-context-intro:hover,
.program-context-state > a.program-context-intro:focus-visible {
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  color: var(--accent);
}
.program-context-state > a.program-context-demo {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  color: var(--accent-2, var(--accent));
}
.program-context-state > a.program-context-demo:hover,
.program-context-state > a.program-context-demo:focus-visible {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  color: var(--accent-2, var(--accent));
}

.pd,
.program-detail-custom { --pd-accent: var(--accent); }
.pd { display: grid; gap: 0; }
.pd a { text-decoration: none; }
.pd-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(315px, .72fr);
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 4% 6%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 33%),
    var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.pd-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(38px, 5vw, 68px);
}
.pd-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-hero-tags span,
.pd-task-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, var(--page) 12%);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
}
.pd-eyebrow {
  margin-top: 25px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.pd-eyebrow::before { width: 18px; background: currentColor; }
.pd-hero h1 {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 870;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.pd-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.7;
}
.pd-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.pd-hero-highlights li {
  position: relative;
  padding-left: 15px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.pd-hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}
.pd-task-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.pd-task-row span { border-color: transparent; background: var(--page); }

.pd-decision {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4vw, 45px);
  background:
    radial-gradient(circle at 100% 0, rgba(255,255,255,.09), transparent 38%),
    linear-gradient(150deg, #123526, #0b2419);
  color: #fff;
}
.pd-decision-status { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.pd-decision-status > span { display: flex; align-items: center; gap: 7px; color: #b7d2c2; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.pd-decision-status i { width: 7px; height: 7px; border-radius: 50%; background: #9eaaa3; box-shadow: 0 0 0 4px rgba(158,170,163,.13); }
.pd-decision-status--ready i { background: #78d49c; box-shadow: 0 0 0 4px rgba(120,212,156,.13); }
.pd-decision-status--attention i { background: #f4be56; box-shadow: 0 0 0 4px rgba(244,190,86,.13); }
.pd-decision-status--danger i { background: #f07d7d; box-shadow: 0 0 0 4px rgba(240,125,125,.13); }
.pd-decision-status strong { display: block; margin-top: 10px; color: #fff; font-size: 20px; letter-spacing: -.025em; }
.pd-decision-status p,
.pd-decision-price p { margin: 7px 0 0; color: rgba(236,245,239,.66); font-size: 11.5px; line-height: 1.6; }
.pd-decision-price { padding: 24px 0 20px; }
.pd-decision-price > span { color: #b7d2c2; font-size: 10px; font-weight: 800; }
.pd-decision-price strong { display: block; margin-top: 5px; color: #fff; font-size: clamp(22px, 2.7vw, 31px); letter-spacing: -.035em; }
.pd-decision-facts { display: grid; gap: 0; margin: 0 0 23px; }
.pd-decision-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.pd-decision-facts dt { color: rgba(236,245,239,.55); font-size: 10px; }
.pd-decision-facts dd { margin: 0; color: #fff; font-size: 10.5px; font-weight: 800; text-align: right; }
.pd-decision-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; }
.pd-btn {
  min-height: 43px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
}
.pd-btn-primary { background: var(--accent); color: #fff; }
.pd-decision .pd-btn-primary { background: #f5faf7; color: #123526; box-shadow: none; }
.pd-decision .pd-btn-primary:hover { background: #fff; color: #123526; }
.pd-decision .pd-btn-outline { border-color: rgba(255,255,255,.18); background: transparent; color: #e5f0e9; }
.pd-decision .pd-btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); color: #fff; }

.pd-section-nav {
  position: sticky;
  top: 68px;
  z-index: 8;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-top: 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 93%, transparent);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.pd-section-nav::-webkit-scrollbar { display: none; }
.pd-section-nav a { flex: none; padding: 8px 11px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.pd-section-nav a:hover,
.pd-section-nav a:focus-visible { background: var(--page); color: var(--accent); }

.pd-body { display: grid; gap: clamp(56px, 7vw, 88px); margin-top: clamp(54px, 7vw, 78px); }
.pd-section { min-width: 0; scroll-margin-top: 128px; }
.pd-head { max-width: 720px; margin: 0 0 25px; }
.pd-kicker { color: var(--accent-2); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.pd-head h2 { margin: 8px 0 0; color: var(--ink); font-size: clamp(25px, 3.2vw, 36px); font-weight: 850; line-height: 1.17; letter-spacing: -.04em; }
.pd-head > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.pd-fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pd-fit-grid article { min-width: 0; padding: 24px 24px 26px 0; }
.pd-fit-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.pd-fit-grid span,
.pd-operation-grid > article > span,
.pd-plan > span { color: var(--accent-2); font-size: 9.5px; font-weight: 900; letter-spacing: .08em; }
.pd-fit-grid strong { display: block; margin-top: 11px; color: var(--ink); font-size: 16px; line-height: 1.35; letter-spacing: -.02em; }
.pd-fit-grid p { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

.pd-overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; align-items: stretch; }
.pd-prose .pd-article {
  min-height: 100%;
  padding: clamp(25px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
  box-shadow: none;
}
.pd-outcomes { display: grid; gap: 10px; }
.pd-outcomes article { position: relative; min-height: 126px; padding: 23px 24px 21px 62px; border-radius: 15px; background: #edf4ef; }
.pd-outcomes article > span { position: absolute; top: 24px; left: 22px; color: var(--accent-2); font-size: 10px; font-weight: 900; }
.pd-outcomes strong { color: var(--ink); font-size: 15px; letter-spacing: -.02em; }
.pd-outcomes p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.pd-gallery { margin-top: 0; }
.pd-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: none; margin: 0; }
.pd-gallery-item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow-soft); }
.pd-gallery-item--featured { grid-column: 1 / -1; }
.pd-gallery-item a { display: block; background: var(--page); }
.pd-gallery-item img { display: block; width: 100%; height: auto; object-fit: contain; }
.pd-gallery-item figcaption { display: grid; gap: 4px; padding: 13px 16px 14px; border-top: 1px solid var(--line); }
.pd-gallery-item figcaption span { color: var(--accent-2); font-size: 8.5px; font-weight: 900; letter-spacing: .12em; }
.pd-gallery-item figcaption strong { color: var(--ink); font-size: 11.5px; }
.pd-gallery-empty { padding: 24px; border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 15px; background: #f3f7f4; }
.pd-gallery-empty > strong { color: var(--ink); font-size: 14px; }
.pd-gallery-empty > p { margin: 5px 0 10px; color: var(--muted); font-size: 11.5px; }
.pd-gallery-empty > a { color: var(--accent); font-size: 11px; font-weight: 850; }
.program-detail-custom > .pd-gallery { max-width: 1100px; margin: 42px auto; padding: 0 22px; }

.pd-flow { counter-reset: pd-flow; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.pd-flow li { position: relative; min-width: 0; padding: 25px 24px 8px 0; }
.pd-flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pd-flow li > span { display: block; color: var(--accent-2); font-size: 10px; font-weight: 900; }
.pd-flow strong { display: block; margin-top: 14px; color: var(--ink); font-size: 15px; }
.pd-flow p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.pd-flow li:not(:last-child)::after { display: none; }

.pd-operation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-operation-grid article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pd-operation-grid strong { display: block; margin-top: 10px; color: var(--ink); font-size: 14px; }
.pd-operation-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.pd-operation-grid a { display: inline-block; margin-top: 11px; color: var(--accent); font-size: 10.5px; font-weight: 850; }

.pd-billing-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.pd-billing-summary > div { min-width: 0; padding: 20px; }
.pd-billing-summary > div + div { border-left: 1px solid var(--line); }
.pd-billing-summary span { display: block; color: var(--muted); font-size: 9.5px; font-weight: 750; }
.pd-billing-summary strong { display: block; margin-top: 7px; color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.pd-plan-intro { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-plan-intro strong { color: var(--ink); font-size: 13px; }
.pd-plan-intro p { max-width: 560px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; text-align: right; }
.pd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.pd-plan { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: none; }
.pd-plan h3 { margin: 8px 0 0; color: var(--ink); font-size: 15px; }
.pd-plan > p { min-height: 3.2em; margin: 7px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.pd-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.pd-plan-price strong { color: var(--ink); font-size: 27px; letter-spacing: -.04em; }
.pd-plan-price small { color: var(--muted); font-size: 10px; }
.pd-plan ul { display: flex; flex-wrap: wrap; gap: 6px 16px; min-height: 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.pd-plan li { padding: 0; color: var(--muted); font-size: 10px; }
.pd-plan li::before { display: none; }
.pd-plan > a { margin-top: auto; padding-top: 17px; color: var(--accent); font-size: 10.5px; font-weight: 850; }
.pd-hint { margin: 12px 0 0; color: var(--muted); font-size: 10.5px; }

.pd-release-list { display: grid; border-top: 1px solid var(--ink); }
.pd-release-list details { border-bottom: 1px solid var(--line); }
.pd-release-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 2px; cursor: pointer; list-style: none; }
.pd-release-list summary::-webkit-details-marker { display: none; }
.pd-release-list summary span { color: var(--ink); font-size: 14px; font-weight: 850; }
.pd-release-list summary small { color: var(--accent-2); font-size: 9.5px; font-weight: 850; }
.pd-release-list details > p { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.pd-release-list details > a { display: inline-block; margin-bottom: 17px; color: var(--accent); font-size: 10.5px; font-weight: 850; }

.pd-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(255,255,255,.1), transparent 34%),
    #102d20;
}
.pd-final-cta > div:first-child { max-width: 650px; }
.pd-final-cta > div:first-child > span { color: #9cc7ab; font-size: 9.5px; font-weight: 900; letter-spacing: .11em; }
.pd-final-cta h2 { margin: 8px 0 0; color: #fff; font-size: clamp(23px, 3vw, 34px); line-height: 1.2; letter-spacing: -.04em; }
.pd-final-cta p { margin: 9px 0 0; color: rgba(235,245,239,.67); font-size: 11.5px; }
.pd-final-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-final-cta .pd-btn-primary { background: #f5faf7; color: #123526; box-shadow: none; }
.pd-final-cta .pd-btn-primary:hover { background: #fff; color: #123526; }
.pd-final-cta .pd-btn-ghost { border-color: rgba(255,255,255,.18); background: transparent; color: #fff; }

.pd-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-related-grid > a { position: relative; min-width: 0; min-height: 150px; padding: 20px 43px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: inherit; }
.pd-related-grid span { color: var(--accent-2); font-size: 9px; font-weight: 850; }
.pd-related-grid strong { display: block; margin-top: 8px; color: var(--ink); font-size: 14px; }
.pd-related-grid p { overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pd-related-grid b { position: absolute; right: 18px; bottom: 18px; color: var(--accent); }
.pd-related-grid > a:hover,
.pd-related-grid > a:focus-visible { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }

@media (max-width: 980px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); }
  .pd-hero-copy { padding: 42px 36px; }
  .pd-decision { padding: 32px 28px; }
  .pd-overview-grid { grid-template-columns: 1fr; }
  .pd-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-billing-summary > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .pd-billing-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .program-context-bar { align-items: flex-start; flex-direction: column; }
  .program-context-path { width: 100%; }
  .program-context-state { width: 100%; justify-content: space-between; }
  .pd-hero { grid-template-columns: 1fr; min-height: 0; }
  .pd-hero-copy { padding: 38px 28px; }
  .pd-decision { padding: 30px 28px; }
  .pd-section-nav { top: 58px; }
  .pd-fit-grid { grid-template-columns: 1fr; }
  .pd-fit-grid article { padding: 21px 0; }
  .pd-fit-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .pd-gallery-grid,
  .pd-outcomes,
  .pd-operation-grid,
  .pd-plans,
  .pd-related-grid { grid-template-columns: 1fr; }
  .pd-gallery-item--featured { grid-column: auto; }
  .pd-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-flow li:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .pd-flow li:nth-child(4) { border-top: 1px solid var(--line); }
  .pd-plan-intro,
  .pd-final-cta { align-items: flex-start; flex-direction: column; }
  .pd-plan-intro p { text-align: left; }
  .pd-final-cta > div:last-child { width: 100%; }
  .pd-final-cta .pd-btn { flex: 1; }
}

@media (max-width: 520px) {
  .program-context-state { align-items: stretch; flex-wrap: wrap; }
  .program-context-state > a { justify-content: center; flex: 1 0 100%; min-height: 38px; }
  .pd-hero-copy { padding: 33px 22px; }
  .pd-hero h1 { font-size: 38px; }
  .pd-decision { padding: 27px 22px; }
  .pd-body { gap: 56px; }
  .pd-flow { grid-template-columns: 1fr; }
  .pd-flow li,
  .pd-flow li + li { padding: 20px 0; border-top: 1px solid var(--line); border-left: 0; }
  .pd-flow li:first-child { border-top-color: var(--ink); }
  .pd-billing-summary { grid-template-columns: 1fr; }
  .pd-billing-summary > div + div,
  .pd-billing-summary > div:nth-child(3),
  .pd-billing-summary > div:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .pd-final-cta > div:last-child { flex-direction: column; }
  .program-detail-custom > .pd-gallery { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd *,
  .program-context-bar * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 관리자 백업 관리 */
.backup-summary-grid { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.backup-summary-grid .post-card { display:grid; gap:7px; }
.backup-summary-grid strong { font-size:clamp(22px,2.5vw,34px); }
.backup-summary-grid p,.backup-summary-grid span,.backup-admin small { color:var(--muted); }
.backup-summary-grid p { margin:0; }
.backup-state.is-on { color:#067647; }
.backup-state.is-off,.status-pill.backup-failed { color:var(--danger); }
.backup-settings-grid { grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); }
.backup-toggle-row { align-items:center; background:color-mix(in srgb,var(--accent) 6%,var(--panel)); border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line)); border-radius:10px; display:flex!important; flex-direction:row!important; justify-content:space-between; padding:14px; }
.backup-toggle-row span,.backup-scope-fieldset label span { display:grid; gap:3px; }
.backup-toggle-row input { height:24px; width:44px; }
.backup-number-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.backup-number-grid small,.backup-scope-fieldset small { display:block; font-weight:400; line-height:1.45; }
.backup-scope-fieldset { border:1px solid var(--line); border-radius:10px; display:grid; gap:8px; margin:0; padding:14px; }
.backup-scope-fieldset legend { font-weight:800; padding:0 6px; }
.backup-scope-fieldset label { align-items:flex-start; border-bottom:1px solid var(--line); display:flex; flex-direction:row; gap:10px; padding:8px 0 12px; }
.backup-scope-fieldset label:last-child { border:0; padding-bottom:4px; }
.backup-scope-fieldset input { height:18px; margin-top:2px; width:18px; }
.backup-schedule-preview { align-items:center; background:var(--page); border-radius:9px; display:flex; flex-wrap:wrap; gap:8px 16px; justify-content:space-between; padding:12px 14px; }
.backup-schedule-preview span { color:var(--muted); font-size:13px; }
.backup-manual-card { align-content:start; display:grid; gap:12px; }
.backup-manual-card h2,.backup-manual-card p { margin:0; }
.backup-manual-card ul { color:var(--muted); display:grid; gap:8px; margin:0; padding-left:20px; }
.backup-message { max-width:420px; min-width:260px; }
.backup-message summary { cursor:pointer; }
.backup-message pre { background:#101828; border-radius:8px; color:#f2f4f7; margin:8px 0 0; max-height:220px; overflow:auto; padding:10px; white-space:pre-wrap; word-break:break-word; }
@media (max-width:840px) {
  .backup-summary-grid,.backup-settings-grid,.backup-number-grid { grid-template-columns:1fr; }
}

/* API 토큰 카드: 좁은 stats 칸(약 178px)에서 입력칸·버튼이 넘치지 않게 세로로 쌓는다. */
#api-token.token-card {
  scroll-margin-top: 96px; /* sticky 헤더에 가리지 않도록 */
}
#api-token .token-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
#api-token .token-action-form input[type="password"] {
  flex: 1 1 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 34px;
  padding: 4px 8px;
}
#api-token .token-action-form button {
  height: 34px;
  white-space: nowrap;
}
#api-token .token-flash {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
}
#api-token .token-flash-error { color: #c0392b; }
#api-token .token-flash-ok { color: #1e824c; }
#api-token .token-locked-note { display: block; margin-top: 6px; color: #8a6d3b; }
