:root {
  --theme-header: #082f28; --theme-header-soft: #0d5c49; --theme-accent: #0f8a63;
  --theme-accent-strong: #0b6d53; --theme-accent-soft: #e2f6eb; --theme-bg: #f1f8f3;
  --theme-shadow: rgba(8, 63, 46, .18); --theme-action: #c6f36a; --theme-action-text: #0d2c24;
  --ink: #163129; --muted: #5f746b; --line: #d2e4da; --paper: #fff;
}
body[data-theme="carmine"] { --theme-header:#7a1020;--theme-header-soft:#a30f24;--theme-accent:#a30f24;--theme-accent-strong:#7a1020;--theme-accent-soft:#fde8ec;--theme-bg:#fff6f8;--theme-shadow:rgba(163,15,36,.2);--theme-action:#f4c430;--theme-action-text:#3b0a12 }
body[data-theme="blue"] { --theme-header:#163b73;--theme-header-soft:#2563eb;--theme-accent:#2563eb;--theme-accent-strong:#1d4ed8;--theme-accent-soft:#e7efff;--theme-bg:#f4f8ff;--theme-shadow:rgba(37,99,235,.2);--theme-action:#7dd3fc;--theme-action-text:#0f2544 }
body[data-theme="maroon"] { --theme-header:#4a1014;--theme-header-soft:#7f1d1d;--theme-accent:#7f1d1d;--theme-accent-strong:#5f1518;--theme-accent-soft:#f7e6e6;--theme-bg:#fbf4f4;--theme-shadow:rgba(127,29,29,.2);--theme-action:#f2c94c;--theme-action-text:#3d0c10 }
body[data-theme="green"] { --theme-header:#14532d;--theme-header-soft:#15803d;--theme-accent:#15803d;--theme-accent-strong:#166534;--theme-accent-soft:#e8f7ee;--theme-bg:#f3fbf6;--theme-shadow:rgba(21,128,61,.2);--theme-action:#bbf7d0;--theme-action-text:#0f3d22 }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); font-family: "Kanit", sans-serif; background: linear-gradient(rgba(126,151,196,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(126,151,196,.1) 1px,transparent 1px),var(--theme-bg); background-size: 28px 28px; }
.guide-header { position: sticky; top: 0; z-index: 20; min-height: 76px; padding: 12px clamp(18px,4vw,52px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: linear-gradient(135deg,var(--theme-header),var(--theme-header-soft) 68%,var(--theme-header)); box-shadow: 0 14px 34px var(--theme-shadow); }
.guide-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.guide-brand img { width: 50px; height: 50px; border-radius: 15px; background: #fff; }
.guide-brand span { display: grid; }.guide-brand strong { font-size: 18px; }.guide-brand small { color: rgba(255,255,255,.8); }
.guide-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.guide-nav a { min-height: 42px; padding: 9px 15px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.guide-nav a.primary { border-color: var(--theme-action); background: var(--theme-action); color: var(--theme-action-text); }
.theme-switcher { display: grid; grid-template-columns: auto minmax(112px,1fr); align-items: center; gap: 7px; min-height: 42px; padding: 4px 5px 4px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 12px; }
.theme-switcher select { height: 32px; min-width: 120px; border: 0; border-radius: 999px; padding: 0 10px; }
.guide-shell { width: min(1180px,calc(100% - 36px)); margin: 28px auto 70px; }
.guide-hero { padding: clamp(30px,5vw,62px); display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: end; gap: 32px; border-radius: 30px; color: #fff; background: radial-gradient(circle at 90% 20%,color-mix(in srgb,var(--theme-action) 24%,transparent),transparent 32%),linear-gradient(125deg,var(--theme-header),var(--theme-accent-strong)); box-shadow: 0 24px 60px var(--theme-shadow); }
.eyebrow { margin: 0; color: var(--theme-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-hero .eyebrow { color: var(--theme-action); }.guide-hero h1 { max-width: 850px; margin: 8px 0 14px; font-size: clamp(34px,5vw,64px); line-height: 1.04; }.guide-hero p:not(.eyebrow) { max-width: 760px; margin: 0; color: rgba(255,255,255,.86); font-size: 18px; }
.hero-actions,.final-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }.button { min-height: 46px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }.button.primary { border-color: var(--theme-action); background: var(--theme-action); color: var(--theme-action-text); }
.hero-note { padding: 20px; display: grid; gap: 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(255,255,255,.11); }.hero-note strong { font-size: 18px; }.hero-note span { color: rgba(255,255,255,.82); }
.guide-toc { position: sticky; top: 88px; z-index: 10; margin: 20px 0; padding: 10px; display: grid; grid-template-columns: 176px minmax(0,1fr); align-items: stretch; gap: 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 14px 34px rgba(24,54,46,.11); backdrop-filter: blur(14px); }
.guide-toc-heading { padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 15px; color: #fff; background: linear-gradient(135deg,var(--theme-accent-strong),var(--theme-accent)); }.guide-toc-heading > span:last-child { min-width: 0; display: grid; }.guide-toc-heading strong { font-size: 15px; line-height: 1.25; }.guide-toc-heading small { margin-top: 2px; color: rgba(255,255,255,.75); font-size: 11px; }.guide-toc-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: rgba(255,255,255,.12); }.guide-toc-icon svg,.toc-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guide-toc-links { min-width: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }.guide-toc a { min-width: 0; min-height: 58px; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); text-decoration: none; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }.guide-toc a:hover { transform: translateY(-2px); border-color: var(--line); background: var(--theme-accent-soft); box-shadow: 0 7px 16px rgba(24,54,46,.08); }.guide-toc a[aria-current="true"] { border-color: color-mix(in srgb,var(--theme-accent) 32%,var(--line)); background: var(--theme-accent-soft); color: var(--theme-accent-strong); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }.toc-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: color-mix(in srgb,var(--theme-accent-soft) 72%,#fff); color: var(--theme-accent-strong); }.guide-toc a[aria-current="true"] .toc-icon { background: var(--theme-accent); color: #fff; }.toc-label { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.guide-section { margin: 20px 0; padding: clamp(22px,4vw,42px); border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 18px 46px rgba(24,54,46,.08); }.guide-section > p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }.section-heading > span { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; background: var(--theme-accent-soft); color: var(--theme-accent-strong); font-size: 20px; font-weight: 800; }.section-heading h2 { margin: 3px 0 0; font-size: clamp(25px,3vw,36px); }
.steps { margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; list-style: none; counter-reset: step; }.steps li { position: relative; min-height: 104px; padding: 18px 18px 18px 60px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb,var(--theme-accent-soft) 32%,#fff); counter-increment: step; }.steps li::before { content: counter(step); position: absolute; left: 16px; top: 19px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--theme-accent); color: #fff; font-weight: 800; }.steps strong { font-size: 17px; }.steps span { color: var(--muted); line-height: 1.55; }.steps.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.guide-shot { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #f7faf9; }.guide-shot a { display: block; }.guide-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; }.guide-shot figcaption { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.callout { margin-top: 20px; padding: 16px 18px; border-left: 5px solid var(--theme-accent); border-radius: 12px; background: var(--theme-accent-soft); }.callout.warning { border-color: #d79b19; background: #fff6dc; }
.workflow { margin-top: 20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.workflow article { padding: 18px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 18px; }.workflow b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--theme-accent); color: #fff; }.workflow span { color: var(--muted); line-height: 1.55; }
.plan-phase { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 155px; }.plan-phase-heading { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 14px; }.plan-phase-heading > span { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--theme-accent); color: #fff; font-size: 13px; font-weight: 800; }.plan-phase-heading h3 { margin: 0; font-size: clamp(21px,2.4vw,28px); }.plan-phase-heading p { margin: 3px 0 0; color: var(--muted); }
.plan-steps { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }.plan-steps li { padding: 18px; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb,var(--theme-accent-soft) 25%,#fff); }.plan-step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--theme-accent-strong); color: #fff; font-size: 18px; font-weight: 800; }.plan-steps strong { font-size: 18px; }.plan-steps p { margin: 5px 0 0; color: var(--muted); line-height: 1.68; }.plan-checks { margin-top: 18px; }.export-workflow { margin-top: 22px; }
.check-list { display: grid; gap: 10px; padding-left: 24px; line-height: 1.75; }.guide-section details { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.guide-section summary { padding: 15px 18px; cursor: pointer; font-weight: 700; }.guide-section details p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.65; }
footer { padding: 24px; color: var(--muted); text-align: center; }
@media (max-width: 1100px) { .guide-toc { grid-template-columns: 150px minmax(0,1fr); }.guide-toc-links { grid-template-columns: repeat(4,minmax(0,1fr)); }.guide-toc a { min-height: 48px; }.guide-toc-links a:last-child { grid-column: span 2; } }
@media (max-width: 900px) { .guide-header { align-items: flex-start; flex-direction: column; }.guide-nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }.guide-hero { grid-template-columns: 1fr; }.guide-toc { position: static; grid-template-columns: 1fr; }.guide-toc-heading { justify-content: center; }.steps.compact,.workflow { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .guide-header { position: static; padding: 10px 14px; }.guide-brand img { width: 44px; height: 44px; }.guide-brand small { display: none; }.guide-shell { width: calc(100% - 20px); margin-top: 12px; }.guide-hero,.guide-section { padding: 20px; border-radius: 20px; }.guide-hero h1 { font-size: 34px; }.guide-hero p:not(.eyebrow) { font-size: 16px; }.guide-toc { padding: 8px; border-radius: 18px; }.guide-toc-heading { justify-content: flex-start; }.guide-toc-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }.guide-toc-links a:last-child { grid-column: span 2; }.guide-toc a { min-height: 52px; padding: 7px; justify-content: flex-start; }.toc-icon { width: 29px; height: 29px; }.toc-icon svg { width: 17px; height: 17px; }.toc-label { font-size: 12px; white-space: normal; word-break: keep-all; }.steps,.steps.compact,.shot-grid,.workflow { grid-template-columns: 1fr; }.guide-shot img { aspect-ratio: 4/3; }.plan-phase-heading { display: grid; }.plan-steps li { grid-template-columns: 38px minmax(0,1fr); padding: 15px; gap: 10px; }.plan-step-number { width: 36px; height: 36px; border-radius: 11px; }.theme-switcher { min-width: 220px; flex: 0 0 auto; } }
@media print { .guide-header,.guide-toc,.hero-actions,.final-actions { display: none !important; } body { background: #fff; }.guide-shell { width: 100%; margin: 0; }.guide-hero,.guide-section { break-inside: avoid; box-shadow: none; }.guide-shot img { max-height: 150mm; object-fit: contain; } }
