:root {
  --cream-0: #fffdf8;
  --cream-1: #fff8ed;
  --cream-2: #ffeed8;
  --ink: #173d30;
  --ink-soft: #577066;
  --line: #e7d9c8;
  --orange: #f57c28;
  --orange-dark: #d95f12;
  --orange-light: #fff0df;
  --green: #4ba35e;
  --green-dark: #28763e;
  --green-light: #e7f6e7;
  --yellow: #ffd35f;
  --danger: #ba4239;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(93, 62, 26, 0.1);
  --shadow-small: 0 8px 24px rgba(93, 62, 26, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 15%, rgba(255, 211, 95, 0.13), transparent 23rem),
    radial-gradient(circle at 95% 38%, rgba(91, 174, 102, 0.11), transparent 26rem),
    var(--cream-1);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: var(--green-dark); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(23, 61, 48, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(231, 217, 200, 0.8);
  background: rgba(255, 253, 248, 0.91);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark { width: 44px; height: 44px; }
.brand-mark svg { display: block; width: 100%; }
.brand strong { display: block; font-size: 19px; letter-spacing: 0.02em; }
.brand small { display: block; margin-top: -2px; color: var(--ink-soft); font-size: 10px; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-button {
  position: relative;
  padding: 12px 15px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-button:hover { color: var(--ink); background: var(--orange-light); }
.nav-button:active { transform: translateY(1px); }
.nav-button.is-active { color: var(--orange-dark); background: var(--orange-light); }

.nav-button.is-active::after {
  position: absolute;
  right: 18px;
  bottom: 5px;
  left: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
}

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.theme-toggle span { font-size: 16px; line-height: 1; }
.theme-toggle em { font-style: normal; }
.theme-toggle:hover { border-color: var(--orange); background: var(--orange-light); }

.demo-tag,
.safe-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #f0bf94;
  border-radius: 999px;
  background: #fff2e5;
  color: #a5480f;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  white-space: nowrap;
}

.demo-tag span { color: var(--green); font-size: 10px; }

main { min-height: calc(100vh - 158px); }

.global-notice {
  display: flex;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 11px 16px;
  gap: 11px;
  border: 1px solid #f3c99f;
  border-radius: 15px;
  background: #fff4e6;
  color: #8c4717;
  font-size: 13px;
}

.global-notice div { display: flex; gap: 9px; flex-wrap: wrap; }
.global-notice strong { color: #74360e; }
.notice-icon { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%; background: var(--orange); color: white; font-weight: 900; }

.page-view {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 24px auto 64px;
}

.page-view[hidden] { display: none !important; }

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  padding: 34px 48px;
  border: 1px solid #f0dcc3;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #fffaf1, #fff3df);
  box-shadow: var(--shadow-small);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  border: 2px dashed rgba(75, 163, 94, 0.24);
  border-radius: 50%;
  content: "";
}

.hero-panel::before { width: 90px; height: 90px; top: -43px; left: 45%; }
.hero-panel::after { width: 40px; height: 40px; right: 28px; bottom: 22px; }

.eyebrow,
.section-kicker,
.result-eyebrow {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy { position: relative; z-index: 1; max-width: 590px; }
.hero-copy h1, .tool-heading h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.hero-copy h1 span { color: var(--orange); }
.hero-copy p, .tool-heading p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 16px; }
.hero-chips { display: flex; flex-wrap: wrap; margin-top: 22px; gap: 9px; }
.hero-chips span { padding: 7px 12px; border: 1px solid #d2e8ce; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.hero-chips span::before { margin-right: 5px; content: "✓"; }
.hero-art { position: relative; z-index: 1; justify-self: end; width: min(100%, 440px); }
.hero-art svg { display: block; width: 100%; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  margin-top: 24px;
  gap: 22px;
}

.flow-card,
.status-card,
.single-form-card,
.tutorial-card,
.faq-section {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-small);
}

.flow-card { min-height: 620px; padding: 31px; border-radius: var(--radius-xl); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-heading h2, .status-card h2 { margin: 3px 0 0; font-size: 23px; }
.safe-label { border-color: #cee5cd; background: var(--green-light); color: var(--green-dark); }
.safe-label::before { content: "✓"; }

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.stepper li { position: relative; display: grid; justify-items: center; gap: 7px; color: #9b9e91; font-size: 12px; font-style: normal; font-weight: 800; }
.stepper li::before { position: absolute; z-index: 0; top: 17px; right: 50%; width: 100%; height: 3px; background: #eadfce; content: ""; }
.stepper li:first-child::before { display: none; }
.stepper span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid #eadfce; border-radius: 50%; background: var(--cream-0); }
.stepper em { font-style: normal; }
.stepper li.is-current, .stepper li.is-done { color: var(--ink); }
.stepper li.is-current span { border-color: var(--orange); background: var(--orange); color: white; box-shadow: 0 0 0 5px var(--orange-light); }
.stepper li.is-done span { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--green); }

.form-step[hidden] { display: none; }
.form-step.is-active { animation: appear 240ms ease both; }
.form-step h3 { margin: 0 0 4px; font-size: 22px; }
.field-help { margin: 0 0 24px; color: var(--ink-soft); font-size: 14px; }
.field-help.centered { text-align: center; }

.product-picker { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; padding: 0; gap: 14px; border: 0; }
.product-option { position: relative; display: flex; align-items: center; min-height: 88px; padding: 16px; gap: 13px; border: 2px solid var(--line); border-radius: 18px; background: var(--cream-0); cursor: pointer; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.product-option:hover { transform: translateY(-2px); border-color: #edbb8e; }
.product-option:has(input:focus-visible) { outline: 3px solid rgba(23, 61, 48, 0.35); outline-offset: 3px; }
.product-option:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.product-option input { position: absolute; opacity: 0; pointer-events: none; }
.product-option > span:nth-of-type(2) { display: grid; }
.product-option strong { font-size: 16px; }
.product-option small { color: var(--ink-soft); font-size: 12px; }
.product-option i { display: none; place-items: center; margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: white; font-size: 13px; font-style: normal; }
.product-option:has(input:checked) i { display: grid; }
.product-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 15px; color: white; font-size: 23px; font-weight: 900; }
.chatgpt-icon { background: var(--green); }
.claude-icon { background: var(--orange); }

.field-group { margin: 20px 0; }
.field-group > label, .label-row label, .details-body label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 850; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; gap: 12px; }
.label-row label { margin: 0; }
.tutorial-link { padding: 4px 0; border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-size: 12px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

input, select {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1.5px solid #d8ccbd;
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
  border: 1.5px solid #d8ccbd;
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea:hover { border-color: #bfab95; }
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(75, 163, 94, 0.13); }
textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(186, 66, 57, 0.09); }

input:hover, select:hover { border-color: #bfab95; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(75, 163, 94, 0.13); }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(186, 66, 57, 0.09); }
.input-with-action { display: flex; gap: 9px; }
.input-with-action input { flex: 1; min-width: 0; }
.field-group small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
code { padding: 2px 5px; border-radius: 5px; background: #f4eadd; color: #7e4f2f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.field-error { display: block; min-height: 20px; margin-top: 3px; color: var(--danger); font-size: 12px; font-weight: 700; }

.mini-button {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid #d9c8b5;
  border-radius: 13px;
  background: #fff8ed;
  color: var(--orange-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.mini-button:hover { border-color: var(--orange); background: var(--orange-light); }

.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; gap: 12px; }
.form-actions.align-end { justify-content: flex-end; }
.centered-actions { justify-content: center; flex-wrap: wrap; }
.primary-button, .secondary-button, .danger-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 11px 20px;
  gap: 8px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-button { border: 1px solid var(--orange); background: var(--orange); color: white; box-shadow: 0 8px 18px rgba(223, 101, 23, 0.22); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--orange-dark); box-shadow: 0 11px 22px rgba(223, 101, 23, 0.27); }
.secondary-button { border: 1.5px solid #c7b9a8; background: white; color: var(--ink); }
.secondary-button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--green); background: var(--green-light); }
.danger-link { border: 0; background: transparent; color: var(--danger); font-size: 13px; }
.danger-link:hover:not(:disabled) { background: #fff0ee; }
button:disabled { opacity: 0.52; cursor: not-allowed; box-shadow: none; }
.full-width { width: 100%; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.is-loading .button-spinner { display: inline-block; }
.is-loading .button-label { opacity: 0.85; }
.text-back { margin: 0 0 15px; padding: 4px 0; border: 0; background: none; color: var(--green-dark); cursor: pointer; font-size: 12px; font-weight: 800; }

.tip-box { display: flex; align-items: flex-start; margin-top: 25px; padding: 15px; gap: 12px; border: 1px solid #cde5cc; border-radius: 15px; background: var(--green-light); }
.tip-box > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 11px; background: var(--yellow); }
.tip-box strong { font-size: 13px; }
.tip-box p { margin: 2px 0 0; color: var(--ink-soft); font-size: 12px; }

.review-list, .result-details { margin: 20px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.review-list div, .result-details div { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 11px 15px; gap: 15px; border-bottom: 1px dashed var(--line); }
.review-list div:last-child, .result-details div:last-child { border: 0; }
.review-list dt, .result-details dt { color: var(--ink-soft); font-size: 12px; }
.review-list dd, .result-details dd { margin: 0; max-width: 68%; overflow-wrap: anywhere; text-align: right; font-size: 13px; font-weight: 800; }

.confirm-check { display: flex; align-items: flex-start; padding: 14px; gap: 10px; border: 1px solid #f0c698; border-radius: 14px; background: var(--orange-light); cursor: pointer; color: #704119; font-size: 13px; }
.confirm-check input { flex: 0 0 19px; width: 19px; min-height: 19px; margin: 1px 0 0; accent-color: var(--green); }

.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.status-pill.warning { background: var(--orange-light); color: var(--orange-dark); }
.status-pill.processing { background: #fff3c9; color: #8c6813; }
.status-pill.success { background: var(--green-light); color: var(--green-dark); }
.status-pill.stopped, .status-pill.error { background: #ffebe8; color: var(--danger); }

.result-illustration { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 5px auto 12px; border-radius: 34px 47px 32px 44px; background: var(--green-light); transform: rotate(-4deg); }
.result-illustration span { display: grid; place-items: center; width: 58px; height: 58px; border: 4px solid var(--ink); border-radius: 50%; background: var(--green); color: white; font-size: 30px; font-weight: 900; transform: rotate(4deg); }
.result-illustration i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.result-illustration i:nth-child(2) { top: 1px; right: -18px; }
.result-illustration i:nth-child(3) { bottom: 9px; left: -21px; width: 13px; height: 13px; background: var(--yellow); }
.result-illustration i:nth-child(4) { right: -7px; bottom: -9px; width: 6px; height: 6px; background: var(--green-dark); }
.result-eyebrow, .form-step[data-step-panel="4"] h3 { display: block; text-align: center; }
.form-step[data-step-panel="4"] h3 { font-size: 27px; }

.status-card { position: sticky; top: 98px; padding: 23px; border-radius: 24px; }
.status-card-title { display: flex; align-items: center; gap: 11px; }
.status-card-title p { margin: 2px 0 0; color: var(--ink-soft); font-size: 11px; }
.orbit-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: var(--orange-light); color: var(--orange-dark); font-size: 23px; font-weight: 900; }
.status-card details { margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.status-card summary { display: flex; align-items: center; justify-content: space-between; padding: 14px; cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; }
.status-card summary::-webkit-details-marker { display: none; }
.status-card details[open] summary span { transform: rotate(180deg); }
.details-body { padding: 0 14px 14px; }
.details-body input { margin-bottom: 10px; }
.inline-result { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.inline-result.is-error { background: #ffebe8; color: var(--danger); }
.privacy-note { display: flex; align-items: center; margin-top: 18px; padding: 13px; gap: 9px; border-radius: 14px; background: #f5efe6; }
.privacy-note svg { flex: 0 0 37px; width: 37px; }
.privacy-note p { margin: 0; color: var(--ink-soft); font-size: 10px; }
.privacy-note strong { color: var(--ink); font-size: 11px; }

.channel-list { display: grid; margin: 0 0 12px; padding: 0; gap: 8px; list-style: none; }
.channel-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 11px; }
.channel-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10px; font-style: normal; font-weight: 850; }
.channel-dot::before { width: 7px; height: 7px; border-radius: 50%; background: #aaa; content: ""; }
.channel-dot.online { color: var(--green-dark); }
.channel-dot.online::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.channel-dot.limited { color: #9b6810; }
.channel-dot.limited::before { background: var(--yellow); }
.channel-dot.offline { color: var(--danger); }
.channel-dot.offline::before { background: var(--danger); }

.compact-view { max-width: 920px; }
.tool-heading { display: flex; align-items: center; margin: 38px 0 22px; gap: 22px; }
.tool-heading h1 { margin: 3px 0; font-size: clamp(34px, 5vw, 48px); }
.tool-illustration { display: grid; place-items: center; flex: 0 0 86px; height: 86px; border: 4px solid var(--ink); border-radius: 31px 40px 29px 37px; color: white; font-size: 43px; font-weight: 900; transform: rotate(-4deg); box-shadow: 7px 7px 0 var(--ink); }
.tool-illustration.orange { background: var(--orange); }
.tool-illustration.green { background: var(--green); }
.tool-illustration.yellow { background: var(--yellow); color: var(--ink); }
.single-form-card { max-width: 720px; margin: 0 auto; padding: 32px; border-radius: var(--radius-xl); }
.single-form-card .primary-button { margin-top: 3px; }
.form-result { margin-top: 22px; padding: 16px; border: 1px solid #c9e3c7; border-radius: 15px; background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 750; white-space: pre-line; }
.form-result.is-error { border-color: #f0c4be; background: #ffebe8; color: var(--danger); }

.new-card-box { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 12px; gap: 10px; border: 1px dashed var(--green); border-radius: 12px; background: white; }
.new-card-box code { overflow-wrap: anywhere; color: var(--green-dark); font-weight: 900; }

.field-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-tools small { margin-top: 7px; }
.line-counter { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.line-counter.is-over { color: var(--danger); }
.query-results { margin-top: 25px; }
.result-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.stats-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.stats-chips span { padding: 5px 9px; border-radius: 999px; background: #f2eadf; color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.stats-chips span.valid { background: var(--green-light); color: var(--green-dark); }
.stats-chips span.used { background: var(--orange-light); color: var(--orange-dark); }
.stats-chips span.invalid { background: #ffebe8; color: var(--danger); }
.result-actions { display: flex; gap: 7px; }
.result-actions .mini-button { min-width: auto; }
.filter-buttons { display: flex; flex-wrap: wrap; margin: 16px 0 10px; gap: 6px; }
.filter-buttons button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 850; }
.filter-buttons button:hover, .filter-buttons button.is-active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; font-size: 12px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eee4d7; text-align: left; white-space: nowrap; }
th { background: #f7efe5; color: var(--ink-soft); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
tr:last-child td { border: 0; }
td:first-child { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.empty-filter { margin: 12px 0 0; padding: 15px; border-radius: 12px; background: #f5eee5; color: var(--ink-soft); text-align: center; font-size: 12px; }

.help-view { max-width: 1040px; }
.tutorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.tutorial-card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-xl); }
.tutorial-card::after { position: absolute; width: 120px; height: 120px; right: -48px; top: -48px; border: 18px solid rgba(245, 124, 40, 0.08); border-radius: 50%; content: ""; }
.tutorial-card.green-card::after { border-color: rgba(75, 163, 94, 0.1); }
.tutorial-number { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--orange-light); color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: 0.06em; }
.green-card .tutorial-number { background: var(--green-light); color: var(--green-dark); }
.tutorial-card h2 { margin: 13px 0 5px; font-size: 22px; }
.tutorial-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.tutorial-card ol { min-height: 126px; margin: 20px 0; padding-left: 20px; color: var(--ink-soft); font-size: 13px; }
.tutorial-card li { margin: 7px 0; padding-left: 4px; }
.tutorial-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.official-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--green-dark); font-size: 11px; font-weight: 900; text-underline-offset: 3px; }
.dialog-official-link { margin-top: 16px; }
.faq-section { margin-top: 22px; padding: 28px; border-radius: var(--radius-xl); }
.faq-section > h2 { margin: 0 0 16px; }
.faq-list { display: grid; gap: 9px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; cursor: pointer; font-size: 14px; font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--orange); font-size: 21px; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 17px 16px; color: var(--ink-soft); font-size: 13px; }

footer { display: flex; justify-content: center; align-items: center; min-height: 80px; padding: 20px; gap: 18px; border-top: 1px solid var(--line); background: rgba(255, 253, 248, 0.8); color: var(--ink-soft); font-size: 12px; }
footer strong { color: var(--ink); }
footer a { margin-left: 15px; font-weight: 800; }

dialog { width: min(680px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 28px; background: var(--cream-0); color: var(--ink); box-shadow: 0 28px 90px rgba(33, 42, 31, 0.28); }
dialog::backdrop { background: rgba(22, 42, 34, 0.55); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-shell h2 { margin: 12px 44px 7px 0; font-size: 27px; }
.dialog-shell > div > p { color: var(--ink-soft); font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.mock-window { overflow: hidden; margin: 22px 0; border: 3px solid var(--ink); border-radius: 18px; background: #fff8ef; box-shadow: 6px 6px 0 var(--orange); }
.green-mock { box-shadow: 6px 6px 0 var(--green); }
.mock-toolbar { display: flex; align-items: center; height: 36px; padding: 0 11px; gap: 6px; border-bottom: 2px solid var(--ink); background: var(--cream-2); }
.mock-toolbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mock-toolbar i:nth-child(2) { background: var(--yellow); }
.mock-toolbar i:nth-child(3) { background: var(--green); }
.mock-toolbar span { margin-left: 6px; color: var(--ink-soft); font-size: 9px; }
.mock-content { display: grid; grid-template-columns: 26% 1fr; min-height: 150px; }
.mock-sidebar { border-right: 2px solid var(--ink); background: #eaf3e6; }
.mock-main { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; gap: 10px; }
.mock-main b { font-size: 13px; }
.mock-main > span { width: 80%; height: 9px; border-radius: 9px; background: #e8dbca; }
.mock-main > span:nth-of-type(2) { width: 55%; }
.mock-main em { display: flex; justify-content: space-between; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid #e7c8a8; border-radius: 9px; background: white; font-size: 10px; font-style: normal; }
.mock-main strong { color: var(--orange-dark); }
.green-mock .mock-main strong { color: var(--green-dark); }
.dialog-steps { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; counter-reset: tutorial; }
.dialog-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 10px 12px; column-gap: 10px; border-radius: 12px; background: #f6efe6; counter-increment: tutorial; }
.dialog-steps li::before { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--orange); color: white; content: counter(tutorial); font-size: 12px; font-weight: 900; }
.dialog-steps b { font-size: 12px; }
.dialog-steps span { color: var(--ink-soft); font-size: 11px; }

.confirm-dialog-shell { text-align: center; }
.confirm-dialog-shell > p { color: var(--ink-soft); }
.confirm-art { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 25px 31px 23px 29px; background: var(--orange); color: white; font-size: 35px; font-weight: 900; box-shadow: 5px 5px 0 var(--green); }
.split-actions { justify-content: space-between; }

.toast-region { position: fixed; z-index: 80; top: 94px; right: 18px; display: grid; width: min(360px, calc(100% - 36px)); gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; padding: 13px 15px; gap: 9px; border: 1px solid #cce4c9; border-radius: 14px; background: white; color: var(--green-dark); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; animation: toast-in 200ms ease both; }
.toast::before { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--green); color: white; content: "✓"; }
.toast.is-error { border-color: #efc1bb; color: var(--danger); }
.toast.is-error::before { background: var(--danger); content: "!"; }

body.is-deep-warm {
  --cream-0: #362a23;
  --cream-1: #241d19;
  --cream-2: #443229;
  --ink: #fff3e4;
  --ink-soft: #d2bfae;
  --line: #665044;
  --orange-light: #523320;
  --green-light: #263f2d;
  --white: #392b24;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

body.is-deep-warm .site-header { background: rgba(36, 29, 25, 0.92); }
body.is-deep-warm .global-notice { border-color: #80502e; background: #3c2a20; color: #f4c194; }
body.is-deep-warm .global-notice strong { color: #ffd0aa; }
body.is-deep-warm .hero-panel { border-color: #674836; background: linear-gradient(120deg, #34271f, #402b20); }
body.is-deep-warm .flow-card,
body.is-deep-warm .status-card,
body.is-deep-warm .single-form-card,
body.is-deep-warm .tutorial-card,
body.is-deep-warm .faq-section,
body.is-deep-warm dialog { background: rgba(54, 42, 35, 0.98); }
body.is-deep-warm input,
body.is-deep-warm select,
body.is-deep-warm textarea,
body.is-deep-warm .secondary-button,
body.is-deep-warm .status-card details,
body.is-deep-warm .faq-list details,
body.is-deep-warm .review-list,
body.is-deep-warm .result-details,
body.is-deep-warm .filter-buttons button,
body.is-deep-warm table,
body.is-deep-warm .new-card-box,
body.is-deep-warm .toast { background: #2d241f; color: var(--ink); }
body.is-deep-warm th { background: #44342b; }
body.is-deep-warm th, body.is-deep-warm td { border-color: #5b473b; }
body.is-deep-warm .privacy-note,
body.is-deep-warm .dialog-steps li,
body.is-deep-warm .empty-filter { background: #46362c; }
body.is-deep-warm .mock-window { background: #31261f; }
body.is-deep-warm footer { background: #211a17; }

.error-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; text-align: center; }
.error-page main { display: grid; justify-items: center; max-width: 480px; min-height: 0; }
.error-page h1 { margin: 7px 0; font-size: clamp(34px, 8vw, 52px); }
.error-page p:not(.eyebrow) { margin: 0 0 24px; color: var(--ink-soft); }
.error-art { position: relative; display: grid; place-items: center; width: 110px; height: 100px; border: 4px solid var(--ink); border-radius: 40% 53% 43% 50%; background: var(--orange-light); box-shadow: 8px 8px 0 var(--green); }
.error-art span { font-size: 52px; font-weight: 950; }
.error-art i { position: absolute; top: -10px; right: -18px; color: var(--orange); font-size: 24px; font-style: normal; font-weight: 900; }
.error-art i:last-child { top: -34px; right: -31px; font-size: 18px; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .main-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; width: 100%; padding: 0 0 9px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-button { flex: 0 0 auto; }
  .hero-panel { grid-template-columns: 1fr; padding: 32px; }
  .hero-art { position: absolute; right: -45px; bottom: -20px; width: 350px; opacity: 0.18; }
  .hero-copy { z-index: 2; }
  .workspace-grid { grid-template-columns: 1fr; }
  .status-card { position: static; }
}

@media (max-width: 620px) {
  .header-inner, .global-notice, .page-view { width: min(100% - 24px, var(--max-width)); }
  .header-inner { gap: 10px; }
  .brand small { display: none; }
  .theme-toggle em { display: none; }
  .demo-tag { padding: 6px 9px; font-size: 10px; }
  .global-notice { align-items: flex-start; }
  .global-notice div { display: grid; gap: 1px; }
  .hero-panel { min-height: 320px; padding: 27px 23px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 14px; }
  .flow-card { min-height: 0; padding: 22px 17px; border-radius: 23px; }
  .card-heading { align-items: flex-start; }
  .safe-label { display: none; }
  .stepper { margin: 24px 0 30px; }
  .stepper span { width: 32px; height: 32px; }
  .stepper li::before { top: 15px; }
  .stepper em { font-size: 10px; }
  .product-picker { grid-template-columns: 1fr; }
  .input-with-action { align-items: stretch; }
  .mini-button { min-width: 76px; padding: 8px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .form-actions.align-end { flex-direction: column; }
  .centered-actions { flex-direction: column; }
  .review-list div, .result-details div { align-items: flex-start; }
  .tool-heading { align-items: flex-start; }
  .tool-illustration { flex-basis: 63px; height: 63px; border-width: 3px; border-radius: 23px 28px 21px 25px; font-size: 31px; box-shadow: 5px 5px 0 var(--ink); }
  .tool-heading h1 { font-size: 33px; }
  .single-form-card, .faq-section, .tutorial-card { padding: 22px 17px; border-radius: 23px; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tutorial-card ol { min-height: 0; }
  .dialog-shell { padding: 26px 18px 20px; }
  .mock-content { grid-template-columns: 22% 1fr; }
  footer { flex-wrap: wrap; gap: 8px 14px; }
  footer a { margin-left: 0; }
  .result-toolbar { align-items: stretch; flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .mini-button { flex: 1; }
  .table-scroll { overflow: visible; border: 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody { display: grid; gap: 9px; }
  tr { padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
  td { display: grid; grid-template-columns: 82px 1fr; padding: 5px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  td::before { color: var(--ink-soft); content: attr(data-label); font-family: Inter, ui-rounded, "PingFang SC", sans-serif; font-size: 10px; font-weight: 850; }
  body.is-deep-warm tr { background: #2d241f; }
  .split-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --line: #7c796e; --ink-soft: #354e45; }
  input, select, .secondary-button { border-width: 2px; }
}
