:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-green: #f0fdf8;
  --text: #111827;
  --muted: #5f6673;
  --subtle: #8b95a5;
  --border: #e5e7eb;
  --primary: #16a86f;
  --primary-dark: #0f7d55;
  --primary-faint: #ecfdf5;
  --notice: #d97706;
  --notice-bg: #fffbeb;
  --notice-border: #fde68a;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --shadow: 0 18px 40px rgba(15, 23, 42, .06);
  --radius: 8px;
  --header-height: 72px;
  --font-main: "Sarabun", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: geometricPrecision;
}

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

button {
  font: inherit;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  color: transparent;
}

.docs-icons-ready .material-symbols-rounded {
  color: currentColor;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand strong {
  color: var(--primary);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.top-links a:hover {
  color: var(--text);
}

.top-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: var(--radius);
  color: #fff !important;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(22, 168, 111, .18);
}

.icon-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.docs-shell {
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 42px;
  margin: 0 auto;
  padding: 54px 24px 90px;
  background: rgba(255, 255, 255, .74);
}

.docs-js .topbar,
.docs-js .docs-shell {
  opacity: 0;
}

.docs-js .topbar {
  transform: translateY(-6px);
}

.docs-js .docs-shell {
  transform: translateY(8px);
}

.docs-js.docs-ready .topbar,
.docs-js.docs-ready .docs-shell {
  opacity: 1;
  transform: none;
}

.docs-js.docs-leaving .topbar,
.docs-js.docs-leaving .docs-shell {
  pointer-events: none;
}

.sidebar,
.toc {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: auto;
}

.sidebar-section + .sidebar-section {
  margin-top: 32px;
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.primary-nav,
.toc nav {
  display: grid;
  gap: 5px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.primary-nav a,
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.primary-nav .nav-parent-link {
  position: relative;
}

.primary-nav .nav-parent-link::after {
  content: "expand_more";
  margin-left: auto;
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  font-weight: normal;
  color: var(--subtle);
  opacity: 0;
  transform: rotate(-90deg);
  transition: transform .18s ease, opacity .18s ease, color .18s ease;
}

.nav-group:has(.nav-submenu) .nav-parent-link::after {
  opacity: 1;
}

.nav-group.active .nav-parent-link::after {
  color: var(--primary-dark);
  transform: rotate(0deg);
}

.primary-nav .nav-parent-link > .material-symbols-rounded {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: transparent;
  background: var(--bg-soft);
  font-size: 19px;
  text-align: center;
}

.docs-icons-ready .primary-nav .nav-parent-link > .material-symbols-rounded {
  color: var(--primary-dark);
}

.primary-nav .nav-parent-link.active,
.primary-nav .nav-parent-link:hover {
  color: var(--primary-dark);
  background: var(--surface-green);
  outline: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
}

.primary-nav .nav-parent-link.active > .material-symbols-rounded,
.primary-nav .nav-parent-link:hover > .material-symbols-rounded {
  color: transparent;
  background: var(--primary);
}

.docs-icons-ready .primary-nav .nav-parent-link.active > .material-symbols-rounded,
.docs-icons-ready .primary-nav .nav-parent-link:hover > .material-symbols-rounded {
  color: #fff;
}

.nav-submenu {
  display: none;
  gap: 2px;
  margin: 2px 0 6px 27px;
  padding: 2px 0 2px 20px;
  border-left: 1px solid var(--border);
}

.nav-group.active .nav-submenu {
  display: grid;
}

.primary-nav .nav-submenu a {
  min-height: 34px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.primary-nav .nav-submenu a.active,
.primary-nav .nav-submenu a:hover {
  color: var(--primary-dark);
  background: var(--primary-faint);
  outline: 0;
}

.toc-card {
  padding-left: 8px;
}

.toc a {
  min-height: 38px;
  padding-left: 0;
  color: var(--muted);
}

.toc a.active,
.toc a:hover {
  color: var(--primary-dark);
}

.content {
  min-width: 0;
  max-width: 820px;
}

.doc-section {
  margin-bottom: 56px;
}

.intro {
  position: relative;
  padding-top: 4px;
}

.section-label,
.article-kicker {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  background: var(--primary-faint);
}

.section-label .material-symbols-rounded {
  font-size: 18px;
}

.intro h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.72;
  font-weight: 600;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  font-weight: 800;
}

.full-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--notice) 28%, var(--notice-border));
  border-radius: 999px;
  color: var(--notice);
  background: var(--notice-bg);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.full-badge .material-symbols-rounded {
  font-size: 15px;
  line-height: 1;
}

h2 .full-badge {
  transform: translateY(-3px);
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.feature-cards a {
  min-height: 150px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-cards a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: .9;
}

.feature-cards a:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .08);
}

.feature-cards span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-size: 24px;
  font-weight: 800;
}

.feature-cards strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.feature-cards p {
  margin-top: 8px;
  font-size: 15px;
}

.home-hero-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(255, 255, 255, .98) 54%),
    var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.home-hero-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.home-hero-icon .material-symbols-rounded {
  font-size: 28px;
}

.home-hero-cta h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.home-hero-cta p {
  max-width: 560px;
  margin-top: 6px;
  font-size: 15px;
}

.hero-start-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(22, 168, 111, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(22, 168, 111, .24);
}

.hero-start-btn .material-symbols-rounded {
  font-size: 18px;
}

.flow-panel {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.flow-panel-head {
  max-width: 760px;
}

.flow-panel-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.flow-panel-head p:not(.article-kicker) {
  margin-top: 10px;
  color: var(--muted);
}

.flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 22px;
}

.flow-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.flow-path-base,
.flow-path-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-path-base {
  stroke: color-mix(in srgb, var(--primary) 18%, var(--border));
  stroke-width: 2;
  stroke-dasharray: 4 9;
}

.flow-path-active {
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-dasharray: 1 12;
  animation: flowDash 1.05s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(22, 168, 111, .18));
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -52;
  }
}

.flow-step-card {
  position: relative;
  z-index: 1;
  min-height: 104px;
  display: block;
  padding: 14px 58px 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, var(--primary-faint));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.flow-step-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  background: var(--surface-green);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.flow-step-card > .material-symbols-rounded {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-size: 20px;
}

.flow-index {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.flow-step-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 800;
}

.flow-step-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 30px;
  padding: 24px 0 34px 22px;
  border-left: 3px solid color-mix(in srgb, var(--primary) 46%, var(--border));
  border-bottom: 1px solid var(--border);
}

.guide-card:last-child {
  border-bottom: 0;
}

.guide-copy > p:not(.article-kicker) {
  max-width: 720px;
}

.procedure-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.procedure-list li {
  position: relative;
  padding: 18px 0 18px 62px;
  border-top: 1px solid var(--border);
  counter-increment: step;
}

.procedure-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.procedure-list li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(22, 168, 111, .18);
}

.procedure-list strong,
.procedure-list span {
  display: block;
}

.procedure-list strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.procedure-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.procedure-list .full-badge,
.update-list .full-badge {
  display: inline-flex;
  margin-top: 0;
  color: var(--notice);
  font-size: 12px;
  line-height: 1.2;
}

.procedure-list .full-badge .material-symbols-rounded,
.update-list .full-badge .material-symbols-rounded {
  display: inline-block;
  margin-top: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.procedure-list .nav-path {
  max-width: min(100%, 620px);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 5px 0 0;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

.procedure-list .nav-path .nav-sep {
  display: inline;
  margin: 0;
  color: color-mix(in srgb, var(--primary-dark) 48%, var(--muted));
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}

.step-thumb {
  width: min(520px, 100%);
  margin: 14px 0 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.step-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-soft);
}

.step-thumb figcaption {
  margin: 8px 2px 0;
  padding: 9px 10px;
  border-radius: calc(var(--radius) - 4px);
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.step-thumb-stack {
  width: min(480px, 100%);
  padding: 10px;
}

.step-image-stack {
  position: relative;
  min-height: 0;
  padding: 4px 0 16px;
}

.step-image-stack .stack-image {
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.step-image-stack .stack-image-back {
  width: 78%;
}

.step-image-stack .stack-image-front {
  position: absolute;
  top: 42px;
  right: 0;
  width: 48%;
  z-index: 2;
}

.method-choice-list {
  width: min(660px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.method-choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, .9fr);
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, var(--primary-faint));
}

.method-choice-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.method-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-size: 23px;
}

.procedure-list .method-choice-icon {
  display: grid;
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 23px;
  line-height: 1;
}

.method-choice-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.method-choice-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.method-choice-thumb {
  width: min(230px, 100%);
  justify-self: center;
  margin: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.method-choice-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.expense-config-list {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.expense-config-card {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, var(--primary-faint));
}

.expense-config-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.expense-config-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-size: 22px;
}

.procedure-list .expense-config-icon {
  display: grid;
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1;
}

.expense-config-copy strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.expense-config-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.expense-example-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.expense-example-list li {
  padding: 0 0 0 18px;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.expense-example-list li::before {
  content: "";
  top: .78em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: none;
}

.expense-example-list strong {
  display: inline;
  margin: 0;
  color: var(--text);
  font-size: inherit;
  line-height: inherit;
}

.expense-example-list .inline-tip {
  width: min(520px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--notice-border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--notice);
  background: var(--notice-bg);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 800;
}

.expense-example-list .inline-tip .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1.25;
}

.expense-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.expense-image-grid .step-thumb {
  width: 100%;
  margin-top: 0;
}

.step-table-wrap {
  width: min(520px, 100%);
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.step-table th,
.step-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.step-table th {
  color: var(--primary-dark);
  background: var(--primary-faint);
  font-weight: 800;
}

.step-table tr:last-child td {
  border-bottom: 0;
}

.step-table td:last-child {
  color: var(--text);
  font-weight: 800;
}

.step-notice {
  width: min(520px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  color: var(--notice);
  background: var(--notice-bg);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.step-notice .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.15;
}

.procedure-list .step-notice span {
  display: inline;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.procedure-list .step-notice .material-symbols-rounded {
  display: inline-block;
  font-size: 18px;
  line-height: 1.15;
}

.procedure-list .step-notice .nav-path {
  display: inline-flex;
  margin: 0 3px;
  border-color: var(--notice-border);
  color: var(--notice);
  background: rgba(255, 255, 255, .62);
}

.procedure-list .step-notice .nav-path .nav-sep {
  color: color-mix(in srgb, var(--notice) 54%, var(--muted));
}

.step-notice strong {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.step-notice-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.step-notice-link:hover {
  transform: translateY(-1px);
  border-color: var(--notice-border);
  background: var(--notice-bg);
  box-shadow: 0 10px 24px rgba(217, 119, 6, .1);
}

.update-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.update-list article {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 18px 16px;
  border-left: 3px solid var(--primary-faint);
  border-top: 1px solid var(--border);
}

.update-list article:last-child {
  border-bottom: 1px solid var(--border);
}

.update-list strong {
  font-size: 17px;
}

.update-list span {
  color: var(--muted);
}

.doc-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pager {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.pager:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: var(--surface-green);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pager strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.pager small {
  max-width: 100%;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.pager.next {
  align-items: flex-end;
  text-align: right;
}

.pager.prev::before,
.pager.next::before {
  font-family: "Material Symbols Rounded";
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

.pager.prev::before {
  content: "arrow_back";
}

.pager.next::before {
  content: "arrow_forward";
}

.pager-empty {
  min-height: 92px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, .52);
}

@media (max-width: 1240px) {
  .docs-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .top-links {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .brand {
    min-width: 0;
    font-size: 19px;
  }

  .docs-shell {
    display: block;
    padding: 30px 18px 70px;
  }

  .content {
    max-width: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, calc(100vw - 42px));
    max-height: none;
    padding: 22px 18px;
    overflow: auto;
    background: var(--bg);
    transform: translateX(-105%);
    transition: transform .18s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .home-hero-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .flow-panel {
    padding: 22px;
  }

  .flow-stage {
    grid-template-columns: 1fr;
  }

  .hero-start-btn {
    width: max-content;
  }

  .update-list article {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .intro h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  h2 {
    font-size: 30px;
  }

  .procedure-list li {
    padding-left: 50px;
  }

  .doc-pagination {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 34px;
    padding-top: 16px;
  }

  .pager {
    min-height: 74px;
    gap: 1px;
    padding: 11px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  }

  .pager span {
    font-size: 12px;
  }

  .pager strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .pager small {
    font-size: 11px;
    line-height: 1.35;
  }

  .pager.prev::before,
  .pager.next::before {
    font-size: 17px;
  }

  .pager.next {
    align-items: flex-end;
    text-align: right;
  }

  .pager-empty {
    display: none;
  }

  .home-hero-cta {
    padding: 20px;
  }

  .home-hero-cta h2 {
    font-size: 21px;
  }

  .home-hero-cta p {
    font-size: 14px;
  }

  .method-choice-card {
    grid-template-columns: 1fr;
  }

  .method-choice-thumb {
    width: min(260px, 100%);
  }

  .method-choice-icon {
    margin-bottom: 8px;
  }

  .expense-config-card {
    padding: 14px;
  }

  .expense-config-copy {
    grid-template-columns: 1fr;
  }

  .expense-image-grid {
    grid-template-columns: 1fr;
  }


  .flow-panel {
    padding: 18px;
  }

  .flow-panel-head h2 {
    font-size: 24px;
  }

  .flow-step-card {
    min-height: 98px;
    padding: 13px;
  }

  .flow-step-card strong {
    font-size: 16px;
  }

  .flow-step-card small {
    font-size: 13px;
  }

  .step-thumb-stack {
    width: min(440px, 100%);
  }

  .step-image-stack .stack-image-back {
    width: 76%;
  }

  .step-image-stack .stack-image-front {
    top: 30px;
    width: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
