:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-dark: #1c1e54;
  --text: #061b31;
  --text-muted: #64748d;
  --border: #e5edf5;
  --purple: #533afd;
  --purple-hover: #4434d4;
  --soft-purple: #eef0ff;
  --success-bg: rgba(21,190,83,0.12);
  --shadow: rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #eef3ff 0%, #f6f8fc 220px, #f6f8fc 100%);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; text-decoration: none; }

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero-card,
.offer-section,
.process-section,
.content-grid,
.intake-section,
.process-highlight {
  margin-top: 28px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.content-grid,
.offer-section,
.process-section,
.intake-section,
.process-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.content-grid,
.offer-section,
.process-section,
.intake-section,
.process-highlight {
  padding: 32px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-purple);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}

h1 {
  margin-top: 16px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.3px;
  white-space: pre-line;
}

h2 {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  white-space: pre-line;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.landing-page h1 {
  font-weight: 800;
}

.landing-page h2 {
  font-weight: 700;
}

p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-subtitle {
  margin-top: 18px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--purple);
  color: #fff;
}
.button-primary:hover { background: var(--purple-hover); }

.button-secondary {
  background: #fff;
  color: var(--purple);
  border: 1px solid #cfd4ff;
}
.button-secondary:hover { background: #f7f8ff; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-strip span,
.offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.hero-panel {
  background: linear-gradient(180deg, #1c1e54 0%, #22266f 100%);
  color: #fff;
}

.panel-label {
  font-size: 14px;
  font-weight: 700;
  color: #bfc7ff;
}

.bullet-panel {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.bullet-panel li {
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}

.mini-code {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'Source Code Pro', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #eef0ff;
}

.section-intro {
  max-width: 760px;
}

.section-intro p,
.section-intro.compact p {
  margin-top: 14px;
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.compact-icons {
  align-items: stretch;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.offer-card,
.step-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-mark {
  font-size: 26px;
  line-height: 1;
}

.info-card p,
.offer-card p,
.step-card p {
  margin-top: 10px;
  font-size: 16px;
}

.offer-card.featured {
  border-color: #cbd0ff;
  box-shadow: 0 18px 30px -20px rgba(83,58,253,0.35);
}

.offer-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.price-line {
  margin-top: 10px;
  font-size: 18px;
  color: var(--purple);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.step-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft-purple);
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card strong {
  display: block;
  font-size: 18px;
}

.intake-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.section-intro.light {
  max-width: 860px;
}

.intake-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr auto 1.3fr;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.flow-step {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.flow-step small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.flow-arrow {
  color: var(--purple);
  font-size: 28px;
  font-weight: 700;
}

.sample-card {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.sample-footer {
  padding: 14px 18px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: #fbfcff;
}

.trust-copy-strong {
  margin-top: 14px;
  color: var(--text);
  font-weight: 700;
}

.sample-header {
  padding: 14px 18px;
  background: #f7f8ff;
  color: var(--purple);
  font-weight: 700;
}

.sample-body {
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.simple-form {
  max-width: 760px;
}

.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #8897ab;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.smart-form {
  max-width: 760px;
}

.upload-label input[type="file"] {
  padding: 14px;
  background: #f9fbff;
}

.upload-help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}

.form-submit {
  width: fit-content;
}

.result-box {
  margin-top: 16px;
  padding: 16px;
  min-height: 56px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #c6cffc;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.kakao-demo-phone {
  margin-top: 20px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.kakao-phone-shell {
  width: min(100%, 380px);
  border-radius: 32px;
  background: #111;
  padding: 10px;
  box-shadow: 0 28px 50px -28px rgba(0, 0, 0, 0.45);
}

.kakao-status-bar,
.kakao-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kakao-status-bar {
  padding: 6px 14px 10px;
  color: #fff;
  font-size: 12px;
}

.kakao-chat-header {
  background: #fee500;
  border-radius: 22px 22px 0 0;
  padding: 16px 18px 14px;
  color: #191919;
}

.kakao-chat-header strong,
.kakao-chat-header span {
  display: block;
}

.kakao-chat-header strong {
  font-size: 18px;
}

.kakao-chat-header span {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.72;
}

.kakao-chat-body {
  background: #b2c7d9;
  border-radius: 0 0 22px 22px;
  padding: 16px;
  min-height: 420px;
}

.kakao-date-chip {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.16);
  color: #fff;
  font-size: 12px;
}

.kakao-bubble {
  max-width: 92%;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.35);
}

.kakao-bubble + .kakao-bubble {
  margin-top: 12px;
}

.kakao-bubble-incoming,
.kakao-bubble-actions {
  background: #fff;
}

.kakao-bubble-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 8px;
}

.kakao-bubble p {
  margin: 0;
  color: #191919;
  font-size: 15px;
  line-height: 1.55;
}

.kakao-action-buttons {
  display: grid;
  gap: 10px;
}

.kakao-action-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #fee500;
  color: #191919;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.kakao-action-button:nth-child(2) {
  background: #fff7bf;
}

.kakao-action-button:nth-child(3) {
  background: #f7f7f7;
}

.kakao-toast {
  position: sticky;
  bottom: 20px;
  max-width: 380px;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  background: rgba(25, 25, 25, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease;
}

.kakao-toast.show {
  opacity: 1;
  transform: translateY(0);
  padding: 14px 16px;
}

@media (max-width: 980px) {
  .hero-card,
  .three-up,
  .steps,
  .two-up,
  .process-flow,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  h1 { font-size: 42px; }
  h2 { font-size: 30px; }

  .hero-copy,
  .hero-panel,
  .content-grid,
  .offer-section,
  .process-section,
  .intake-section,
  .process-highlight {
    padding: 24px;
  }
}


/* ===== Root index page ===== */
body.root-page {
  margin: 0;
  background: #f5f7fb;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

.root-page .wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.root-page h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.root-page p {
  line-height: 1.6;
  color: #4b5563;
}

.root-page .card {
  margin-top: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .25);
}

.root-page .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
}

.root-page .title {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.root-page .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.root-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.root-page ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.7;
}

/* ===== Unified item page system ===== */
body.item-page {
  --page-bg-start: #eef3ff;
  --page-bg-end: #f4f7fb;
  --page-surface: #ffffff;
  --page-surface-soft: #f8fafc;
  --page-text: #111827;
  --page-muted: #4b5563;
  --page-line: #e5e7eb;
  --page-primary: #4338ca;
  --page-primary-soft: #eef2ff;
  --page-primary-deep: #4338ca;
  --page-shadow: 0 18px 36px -28px rgba(15, 23, 42, .28);
  --page-warning: #b45309;
  --page-warning-soft: #fff7ed;
  --page-success: #047857;
  --page-success-soft: #ecfdf5;
  margin: 0;
  background: linear-gradient(180deg, var(--page-bg-start) 0, var(--page-bg-end) 260px);
  color: var(--page-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

body.item-page.theme-brand {
  --page-bg-start: #eaf2ff;
  --page-bg-end: #f3f7ff;
  --page-text: #10233f;
  --page-muted: #4f647f;
  --page-line: #dbe5f2;
  --page-primary: #2f6df6;
  --page-primary-soft: #e9f1ff;
  --page-primary-deep: #1c4ecf;
  --page-shadow: 0 18px 36px -28px rgba(16, 35, 63, .28);
}

body.item-page *,
body.item-page *::before,
body.item-page *::after,
body.landing-page .topbar,
body.landing-page .tabs,
body.landing-page .quick-links,
body.landing-page .crumb,
body.landing-page .tab,
body.landing-page .quick-link {
  box-sizing: border-box;
}

body.item-page a {
  color: inherit;
  text-decoration: none;
}

.item-page .wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 18px 72px;
}

.item-page .wrap.wrap--compact {
  max-width: 920px;
  padding: 20px 16px 64px;
}

.item-page .topbar,
.item-page .tabs,
.item-page .quick-links,
.item-page .summary-grid,
.item-page .two-col,
.item-page .next-actions,
.item-page .sections,
.item-page .story-grid,
.item-page .grid,
.item-page .palette-grid,
.item-page .logo-grid,
.item-page .type-grid,
.item-page .point-grid,
.item-page .content-grid {
  display: grid;
  gap: 12px;
}

.item-page .topbar {
  margin-bottom: 16px;
  position: sticky;
  top: 8px;
  z-index: 30;
  background: rgba(244, 247, 251, .88);
  backdrop-filter: blur(10px);
  padding: 8px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 18px;
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, .28);
}

.item-page.theme-brand .topbar {
  background: rgba(244, 247, 251, .88);
  border-color: rgba(229, 231, 235, .9);
}

.item-page .tabs,
.item-page .quick-links,
.item-page .summary-grid,
.item-page .two-col,
.item-page .palette-grid,
.item-page .logo-grid,
.item-page .type-grid,
.item-page .point-grid {
  grid-template-columns: 1fr;
}

.item-page .crumb,
.item-page .tab,
.item-page .quick-link,
.item-page .artifact-button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--page-line);
  background: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-page .tab.active {
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
  border-color: #bfdbfe;
}

.item-page .quick-links {
  margin-top: 18px;
}

.item-page .quick-links--spaced {
  margin-bottom: 18px;
}

.item-page .quick-link,
.item-page .artifact-button {
  justify-content: flex-start;
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
  border-color: #bfdbfe;
}

.item-page .artifact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.item-page .artifact-button.sub,
.item-page .artifact-button--sub {
  background: #fff;
  color: var(--page-text);
  border-color: var(--page-line);
}

.item-page .hero,
.item-page .card,
.item-page .mini-card,
.item-page .subcard,
.item-page .action-item,
.item-page .toc-card,
.item-page .section-card,
.item-page .status-card,
.item-page .type-card,
.item-page .point-card,
.item-page .swatch,
.item-page .logo-card {
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: 20px;
  box-shadow: var(--page-shadow);
}

.item-page .hero,
.item-page .card {
  padding: 22px;
}

.item-page .hero {
  border-radius: 24px;
}

.item-page .card,
.item-page .story-grid,
.item-page .grid,
.item-page .content-grid {
  margin-top: 14px;
}

.item-page .mini-card,
.item-page .subcard,
.item-page .action-item,
.item-page .toc-card,
.item-page .section-card,
.item-page .type-card,
.item-page .point-card,
.item-page .logo-card {
  padding: 18px;
}

.item-page .eyebrow,
.item-page .status-pill,
.item-page .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.item-page .eyebrow {
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
}

.item-page .status-pill {
  gap: 6px;
  margin-bottom: 14px;
  background: var(--page-warning-soft);
  color: var(--page-warning);
}

.item-page h1,
.item-page h2,
.item-page h3 {
  color: var(--page-text);
}

.item-page h1 {
  margin: 14px 0 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
}

.item-page h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.item-page h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.item-page p,
.item-page li,
.item-page span {
  color: var(--page-muted);
}

.item-page p,
.item-page li {
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.item-page ul,
.item-page ol {
  margin: 0;
  padding-left: 20px;
}

.item-page .lead,
.item-page .meta,
.item-page .note,
.item-page .signal-box,
.item-page .swatch-label,
.item-page .sample-footer {
  color: var(--page-muted);
}

.item-page .lead {
  font-size: 18px;
  line-height: 1.7;
}

.item-page .lead + .summary-grid,
.item-page .lead--compact {
  margin-top: 12px;
}

.item-page .meta {
  font-size: 14px;
}

.item-page .summary-grid {
  margin-top: 18px;
}

.item-page .summary-grid--tight {
  margin-top: 16px;
}

.item-page .mini-label,
.item-page .type-label {
  color: var(--page-primary-deep);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.item-page .mini-card strong,
.item-page .action-item strong,
.item-page .swatch-label strong,
.item-page .logo-card strong {
  display: block;
  color: var(--page-text);
  font-size: 16px;
  line-height: 1.55;
}

.item-page .content-grid--sidebar {
  gap: 16px;
  align-items: start;
}

.item-page .toc-card {
  background: var(--page-surface-soft);
}

.item-page .toc-card p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.item-page .toc-card ul {
  line-height: 1.8;
}

.item-page .sections {
  gap: 14px;
}

.item-page .section-card--split {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
}

.item-page .section-number,
.item-page .step-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
  font-weight: 800;
  font-size: 18px;
}

.item-page .section-body h2 {
  margin-top: 0;
}

.item-page .section-body p + p {
  margin-top: 10px;
}

.item-page .story-grid {
  gap: 16px;
  margin-top: 18px;
}

.item-page .step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}

.item-page .subcard,
.item-page .action-item {
  background: var(--page-surface-soft);
}

.item-page .signal-box {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--page-success-soft);
  color: var(--page-success);
  font-weight: 700;
  line-height: 1.7;
}

.item-page .note {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
  font-weight: 700;
  line-height: 1.6;
}

.item-page .evidence-link {
  display: block;
  margin-top: 6px;
  color: var(--page-primary-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.item-page .evidence-note {
  display: block;
  margin-top: 6px;
  color: var(--page-muted);
  font-size: 14px;
  line-height: 1.6;
}

.item-page .system-diagram {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
  overflow-x: auto;
}

.item-page .system-diagram svg {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
}

.item-page .appendix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.item-page .appendix-block {
  margin-top: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: var(--page-surface-soft);
  overflow: hidden;
}

.item-page .appendix-block summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 800;
  color: var(--page-text);
}

.item-page .appendix-block summary::-webkit-details-marker {
  display: none;
}

.item-page .appendix-block summary::after {
  content: "펼치기";
  float: right;
  color: var(--page-muted);
  font-size: 13px;
  font-weight: 700;
}

.item-page .appendix-block[open] summary::after {
  content: "접기";
}

.item-page .appendix-body {
  padding: 0 18px 18px;
}

.item-page .diagram-box {
  stroke: #3b4a67;
  stroke-width: 2.5;
}

.item-page .diagram-box--server {
  fill: #dbeafe;
}

.item-page .diagram-box--agent {
  fill: #e9d5ff;
}

.item-page .diagram-box--channel {
  fill: #ffedd5;
}

.item-page .diagram-box--user {
  fill: #fde68a;
}

.item-page .diagram-box--result {
  fill: #d1fae5;
}

.item-page .diagram-title {
  fill: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.item-page .diagram-text {
  fill: #334155;
  font-size: 18px;
  font-weight: 600;
}

.item-page .diagram-label {
  fill: #475569;
  font-size: 16px;
  font-weight: 700;
}

.item-page .diagram-arrow {
  stroke: #3b4a67;
  stroke-width: 3;
  fill: none;
  marker-end: url(#arrowhead);
}

.item-page .diagram-arrow--dashed {
  stroke-dasharray: 10 8;
}

@media (max-width: 820px) {
  .item-page .appendix-grid {
    grid-template-columns: 1fr;
  }
}

.item-page .chips,
.item-page .palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.item-page .chip {
  padding: 7px 11px;
  background: var(--page-primary-soft);
  color: var(--page-primary-deep);
}

.item-page .logo {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.item-page .logo-image {
  width: min(100%, 360px);
  height: auto;
}

.item-page .swatch {
  overflow: hidden;
  min-width: 150px;
  padding: 0;
}

.item-page .swatch-color {
  height: 72px;
}

.item-page .swatch-color--soft-blue { background: #E9F1FF; }
.item-page .swatch-color--bright-blue { background: #7AB0FF; }
.item-page .swatch-color--primary-blue { background: #2F6DF6; }
.item-page .swatch-color--deep-blue { background: #1C4ECF; }
.item-page .swatch-color--ink-navy { background: #10233F; }

.item-page .swatch-label {
  padding: 12px 14px;
  font-size: 14px;
}

.item-page .grid {
  gap: 16px;
  margin-top: 18px;
}

.item-page .logo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--page-line);
}

.item-page .status-card {
  background: linear-gradient(180deg, #fff 0, #fcfcff 100%);
}

.item-page .next-actions {
  margin-top: 14px;
}

.item-page .action-item strong {
  margin-bottom: 6px;
}

body.landing-page .topbar,
body.landing-page .tabs,
body.landing-page .quick-links {
  display: grid;
  gap: 12px;
}

body.landing-page .topbar {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

body.landing-page .tabs,
body.landing-page .quick-links {
  grid-template-columns: 1fr;
}

body.landing-page .crumb,
body.landing-page .tab,
body.landing-page .quick-link {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.landing-page .tab.active {
  background: rgba(255,255,255,.18);
}

body.landing-page .quick-links {
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

body.landing-page .quick-link {
  justify-content: flex-start;
  background: rgba(255,255,255,.16);
}

@media (min-width: 760px) {
  .item-page .topbar {
    grid-template-columns: 180px 1fr;
  }

  .item-page .tabs.tabs--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-page .tabs.tabs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .item-page .tabs.tabs--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-page .quick-links.quick-links--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-page .summary-grid.summary-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-page .summary-grid.summary-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .item-page .summary-grid.summary-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-page .two-col,
  .item-page .type-grid,
  .item-page .point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-page .palette-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-page .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.landing-page .topbar {
    grid-template-columns: 180px 1fr;
  }

  body.landing-page .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .item-page .content-grid.content-grid--sidebar {
    grid-template-columns: 280px 1fr;
  }

  .item-page .toc-card {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 860px) {
  .item-page h1 {
    font-size: 28px;
  }

  .item-page .lead {
    font-size: 17px;
  }

  .item-page .step,
  .item-page .section-card--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
