:root {
  --blue-50: #e8f3ff;
  --blue-500: #3182f6;
  --blue-600: #2272eb;
  --green-500: #03b26c;
  --red-500: #f04452;
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-400: #b0b8c1;
  --grey-500: #8b95a1;
  --grey-600: #6b7684;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;
  --white: #ffffff;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --motion-fast: 150ms;
  --motion-standard: 250ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--grey-50);
  color: var(--grey-900);
  font-family:
    "Toss Product Sans",
    "Tossface",
    "SF Pro KR",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    Roboto,
    sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

html,
body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--grey-900);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.28;
}

.home-title-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
}

.home-title-button:hover {
  color: var(--blue-600);
}

.home-title-button:focus-visible {
  border-radius: var(--radius-8);
  outline: 3px solid var(--blue-50);
  outline-offset: 4px;
}

.header-account-box {
  min-width: 360px;
  max-width: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.calculator-category-nav {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-2);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}

.calculator-category-nav::-webkit-scrollbar {
  display: none;
}

.calculator-category-nav button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-12);
  background: transparent;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.calculator-category-nav button:hover,
.calculator-category-nav button:focus-visible {
  background: var(--grey-100);
  color: var(--grey-900);
  outline: none;
}

.calculator-category-nav button.is-active {
  background: var(--blue-50);
  color: var(--blue-600);
}

.session-bar {
  margin-bottom: var(--space-6);
}

.product-box {
  min-width: 0;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.product-head h2 {
  margin-bottom: 0;
  color: var(--grey-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.product-save-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  text-align: right;
}

.saved-count-pill,
.product-mode-pill,
.account-saved-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.product-mode-pill {
  background: var(--grey-100);
  color: var(--grey-700);
}

.account-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.account-title-row p {
  margin-bottom: 0;
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.save-status {
  min-width: min(380px, 100%);
  margin-bottom: 0;
  color: var(--grey-600);
  font-size: 13px;
  line-height: 20px;
}

.account-status > span {
  display: block;
  margin-top: var(--space-1);
  color: var(--grey-500);
  font-size: 12px;
  line-height: 18px;
}

.coming-soon-section {
  margin-bottom: var(--space-6);
}

.coming-soon-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.coming-soon-copy h2 {
  margin-bottom: var(--space-3);
  color: var(--grey-900);
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
}

.coming-soon-copy p {
  max-width: 560px;
  margin-bottom: var(--space-5);
  color: var(--grey-600);
  font-size: 15px;
  line-height: 24px;
}

.coming-soon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.coming-soon-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.coming-soon-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--grey-50);
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.04);
}

.coming-window {
  position: relative;
  width: min(240px, 100%);
  min-height: 140px;
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.coming-window span {
  display: block;
  height: 12px;
  margin-bottom: var(--space-4);
  border-radius: 999px;
  background: var(--grey-200);
}

.coming-window span:first-child {
  width: 72%;
  background: var(--grey-400);
}

.coming-window span:nth-child(2) {
  width: 88%;
}

.coming-window span:nth-child(3) {
  width: 58%;
}

.coming-window i {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-50);
}

.coming-window i::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--blue-500);
}

.coming-progress {
  width: min(260px, 100%);
  height: 10px;
  border-radius: 999px;
  background: var(--grey-200);
  overflow: hidden;
}

.coming-progress b {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-500);
}

body.wc-save-lock {
  overflow: hidden;
}

.wc-result-hero {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid rgba(49, 130, 246, 0.12);
  border-radius: var(--radius-16);
  background:
    linear-gradient(180deg, rgba(232, 243, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
    var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.wc-result-hero[data-tone="danger"] {
  border-color: rgba(240, 68, 82, 0.22);
  background: linear-gradient(180deg, #fff1f3 0%, #ffffff 100%);
}

.wc-result-hero[data-tone="amber"],
.wc-result-hero[data-tone="yellow"] {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.wc-result-hero[data-tone="green"] {
  border-color: rgba(3, 178, 108, 0.22);
  background: linear-gradient(180deg, #ecfdf3 0%, #ffffff 100%);
}

.wc-result-hero-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.wc-result-hero-head span {
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
}

.wc-result-hero-head b {
  min-width: 62px;
  padding: 5px var(--space-3);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.wc-result-hero[data-tone="danger"] .wc-result-hero-head b,
.wc-result-hero[data-tone="danger"] > strong,
.wc-result-hero[data-tone="danger"] .wc-margin-message {
  color: #d92d3f;
}

.wc-result-hero[data-tone="amber"] .wc-result-hero-head b,
.wc-result-hero[data-tone="yellow"] .wc-result-hero-head b,
.wc-result-hero[data-tone="amber"] .wc-margin-message,
.wc-result-hero[data-tone="yellow"] .wc-margin-message {
  color: #9a5b00;
}

.wc-result-hero[data-tone="green"] .wc-result-hero-head b,
.wc-result-hero[data-tone="green"] .wc-margin-message {
  color: #027a48;
}

.wc-result-hero > strong {
  min-width: 0;
  color: var(--grey-900);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.wc-margin-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--grey-200);
  overflow: hidden;
}

.wc-margin-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--red-500);
  transition:
    width var(--motion-standard) var(--ease-standard),
    background-color var(--motion-standard) var(--ease-standard);
}

.wc-result-hero[data-tone="amber"] .wc-margin-progress i {
  background: #f97316;
}

.wc-result-hero[data-tone="yellow"] .wc-margin-progress i {
  background: #f59e0b;
}

.wc-result-hero[data-tone="green"] .wc-margin-progress i {
  background: var(--green-500);
}

.wc-margin-message {
  margin: 0;
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
}

.wc-margin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wc-margin-actions button {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid rgba(49, 130, 246, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
}

.wc-step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 42px;
  padding: 0 var(--space-5);
  border: 0;
  border-bottom: 1px solid var(--grey-200);
  border-radius: 0;
  background: var(--white);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  box-shadow: none;
}

.quick-switch button.is-done:not(.is-active) {
  border-color: rgba(3, 178, 108, 0.2);
  background: #ecfdf3;
  color: #027a48;
}

.quick-switch button.is-done:not(.is-active)::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-500);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.quick-switch button.is-done:not(.is-active)::after {
  background: var(--green-500);
}

.wc-field-hint {
  display: none;
  margin: -2px 0 0;
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.wc-field-valid:not(.computed-field) .input-with-unit:not(.disabled) input[data-field] {
  border-color: rgba(3, 178, 108, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(3, 178, 108, 0.08),
    0 0 0 3px rgba(3, 178, 108, 0.08);
}

.wc-field-warning:not(.computed-field) .input-with-unit:not(.disabled) input[data-field],
.wc-field-error:not(.computed-field) .input-with-unit:not(.disabled) input[data-field] {
  box-shadow: none;
}

.wc-field-warning:not(.computed-field) .input-with-unit:not(.disabled) input[data-field] {
  border-color: rgba(245, 158, 11, 0.72);
  background: #fffaf0;
}

.wc-field-error:not(.computed-field) .input-with-unit:not(.disabled) input[data-field] {
  border-color: rgba(240, 68, 82, 0.72);
  background: #fff1f3;
}

.wc-field-warning .wc-field-hint,
.wc-field-error .wc-field-hint {
  display: block;
}

.wc-field-warning .wc-field-hint {
  color: #9a5b00;
}

.wc-field-error .wc-field-hint {
  color: #d92d3f;
}

.quick-home-inputs label.wc-field-valid input {
  border-color: rgba(3, 178, 108, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(3, 178, 108, 0.08),
    0 0 0 3px rgba(3, 178, 108, 0.08);
}

.quick-home-inputs label.wc-field-warning input {
  border-color: rgba(245, 158, 11, 0.72);
  background: #fffaf0;
}

.quick-home-inputs label.wc-field-error input {
  border-color: rgba(240, 68, 82, 0.72);
  background: #fff1f3;
}

.quick-home-inputs label.wc-field-warning .wc-field-hint,
.quick-home-inputs label.wc-field-error .wc-field-hint {
  display: block;
  grid-column: 1 / -1;
}

.save-status {
  max-width: 360px;
  text-align: right;
}

.save-status[data-tone="success"] {
  color: var(--green-500);
  font-weight: 700;
}

.save-status[data-tone="warning"] {
  color: var(--grey-800);
  font-weight: 700;
}

.save-toast {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(25, 31, 40, 0.16);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity var(--motion-normal) var(--ease-standard),
    transform var(--motion-normal) var(--ease-standard);
  pointer-events: none;
}

.save-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.save-toast strong {
  color: var(--grey-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
}

.save-toast p {
  margin: 0;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 600;
  line-height: 23px;
}

.save-toast[data-tone="success"] {
  border-color: rgba(3, 178, 108, 0.24);
  background: #ecfdf3;
}

.save-toast[data-tone="success"] strong,
.save-toast[data-tone="success"] p {
  color: #027a48;
}

.save-toast[data-tone="warning"] {
  border-color: rgba(249, 115, 22, 0.26);
  background: #fff7ed;
}

.save-toast[data-tone="warning"] strong,
.save-toast[data-tone="warning"] p {
  color: #9a3412;
}

.save-confirm {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.save-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.36);
}

.save-confirm-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(25, 31, 40, 0.18);
}

.save-confirm-card h2 {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.save-confirm-card p:not(.eyebrow) {
  margin: 0;
  color: var(--grey-600);
  font-size: 14px;
  line-height: 22px;
}

.save-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.login-controls,
.product-controls {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.login-controls {
  justify-content: end;
  grid-template-columns: auto;
}

.product-controls {
  align-items: end;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
}

.product-box input,
.product-controls select {
  height: 42px;
  text-align: left;
}

#saved-products,
#load-product-button {
  display: none;
}

.product-name-field {
  gap: var(--space-2);
}

.saved-list-panel {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-100);
}

.saved-list-toggle {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-14);
  background: var(--grey-50);
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}

.saved-list-toggle:hover,
.saved-list-toggle:focus-visible {
  border-color: rgba(49, 130, 246, 0.28);
  background: var(--white);
  outline: none;
}

.saved-list-toggle > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.saved-list-toggle strong {
  color: var(--grey-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.saved-list-toggle em,
.saved-empty-message {
  margin: 0;
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 20px;
}

.saved-list-toggle b {
  position: relative;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 32px 0 var(--space-3);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 30px;
}

.saved-list-toggle b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--motion-fast) var(--ease-standard);
}

.saved-list-toggle.is-expanded b::after {
  transform: translateY(-30%) rotate(225deg);
}

.saved-products-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.saved-products-list[hidden] {
  display: none;
}

.saved-products-list > .saved-empty-message {
  grid-column: 1 / -1;
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.saved-product-card {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-14);
  background: var(--white);
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.saved-product-card.is-current {
  border-color: rgba(49, 130, 246, 0.34);
  background: var(--blue-50);
}

.saved-product-card:hover {
  border-color: rgba(49, 130, 246, 0.22);
  box-shadow: 0 8px 18px rgba(25, 31, 40, 0.06);
}

.saved-product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.saved-product-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.saved-product-card time {
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.saved-current-pill {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: var(--blue-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 24px;
}

.saved-card-pills {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.saved-loss-pill {
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: #fff1f3;
  color: #d92d3f;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

.saved-product-metrics {
  display: grid;
  gap: 6px;
  padding: var(--space-3);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.saved-product-metrics span {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.saved-product-metrics strong {
  color: var(--grey-900);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.saved-product-metrics[data-tone="green"] strong:first-of-type {
  color: #027a48;
}

.saved-product-metrics[data-tone="amber"] strong:first-of-type {
  color: #9a5b00;
}

.saved-product-metrics[data-tone="danger"] strong:first-of-type {
  color: #d92d3f;
}

.saved-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-product-tags span {
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

.saved-product-actions {
  display: flex;
  gap: var(--space-2);
}

.saved-product-actions button {
  min-width: 0;
  height: 36px;
  flex: 1 1 0;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-10);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.saved-product-actions button:disabled {
  cursor: default;
  opacity: 1;
}

.saved-load-button {
  background: var(--grey-100);
  color: var(--grey-800);
}

.saved-load-button:hover,
.saved-load-button:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
}

.saved-product-card.is-current .saved-load-button {
  background: var(--white);
  color: var(--blue-600);
}

.saved-delete-button {
  background: #fff1f2;
  color: #be123c;
}

.saved-delete-button:hover,
.saved-delete-button:focus-visible {
  background: #ffe4e6;
  outline: none;
}

.saved-copy-button {
  background: var(--grey-100);
  color: var(--grey-700);
}

.saved-copy-button:hover,
.saved-copy-button:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
}

.wc-save-list-page {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.wc-save-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.wc-save-flow span {
  color: var(--grey-900);
}

.wc-save-flow b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 800;
}

.wc-save-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.wc-save-list-head h2 {
  margin: var(--space-1) 0 0;
  color: var(--grey-900);
  font-size: 24px;
  font-weight: 900;
  line-height: 34px;
}

.wc-save-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.wc-save-list-actions .is-active {
  background: var(--blue-50);
  color: var(--blue-600);
}

.wc-save-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.wc-save-list-toolbar > span {
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 900;
  line-height: 20px;
}

.wc-save-list-toolbar label {
  width: min(220px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
}

.wc-save-list-toolbar label span {
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 900;
}

.wc-save-list-toolbar select {
  height: 38px;
  font-size: 13px;
  font-weight: 800;
}

.wc-save-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.wc-save-list-page.is-compare-mode .wc-save-list-grid {
  grid-template-columns: 1fr;
}

.wc-save-page-card {
  cursor: pointer;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) auto;
  align-items: center;
}

.wc-save-page-card .saved-product-card-head,
.wc-save-page-card .saved-product-metrics,
.wc-save-page-card .saved-product-tags,
.wc-save-page-card .saved-product-actions {
  min-width: 0;
}

.wc-save-page-card .saved-product-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.wc-save-page-card .saved-product-metrics span {
  display: grid;
  gap: 2px;
}

.wc-save-page-card .saved-product-actions {
  min-width: 220px;
}

.wc-save-page-card .saved-product-tags {
  grid-column: 1 / -1;
}

.wc-save-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-16);
  background: var(--grey-50);
  text-align: center;
}

.wc-save-empty > span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-50);
  position: relative;
}

.wc-save-empty > span::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 3px solid var(--blue-500);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.wc-save-empty strong {
  color: var(--grey-800);
  font-size: 18px;
  font-weight: 900;
  line-height: 27px;
}

.final-save-button {
  min-width: 104px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-12);
  background: var(--blue-500);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
}

.quick-home-results .wc-result-hero {
  margin: var(--space-3) 0 var(--space-3);
}

.quick-home-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-home-roas-row {
  grid-column: 1 / -1;
  min-height: 54px;
}

.final-profit-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.final-profit-card .final-profit-hero {
  margin-bottom: 0;
}

.final-profit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.final-profit-grid div {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--grey-50);
}

.final-profit-grid div[data-tone="danger"] {
  background: #fff1f3;
}

.final-profit-grid span {
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.final-profit-grid strong {
  overflow: hidden;
  color: var(--grey-900);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-profit-grid div[data-tone="danger"] span,
.final-profit-grid div[data-tone="danger"] strong {
  color: #d92d3f;
}

.final-profit-roas {
  grid-column: 1 / -1;
}

.wc-save-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.wc-save-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.42);
  backdrop-filter: blur(2px);
}

.wc-save-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  font-family: inherit;
  box-shadow: 0 22px 64px rgba(25, 31, 40, 0.22);
}

.wc-save-card-wide {
  width: min(560px, 100%);
}

.wc-save-card h2 {
  margin: 0;
  color: var(--grey-900);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.wc-save-description {
  margin: calc(var(--space-3) * -1) 0 0;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.42);
  backdrop-filter: blur(2px);
}

.help-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  color: var(--grey-800);
  font-family: inherit;
  box-shadow: 0 22px 64px rgba(25, 31, 40, 0.22);
}

.help-modal-card h2 {
  margin: 0;
  padding-right: var(--space-8);
  color: var(--grey-900);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.help-modal-card p {
  margin: 0;
}

#field-help-body {
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 500;
  line-height: 25px;
}

.help-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--grey-100);
}

.help-modal-close::before,
.help-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--grey-600);
}

.help-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.help-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.help-modal-list {
  display: grid;
  gap: var(--space-3);
}

.help-modal-list div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.help-modal-list strong {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.help-modal-list span {
  color: var(--grey-800);
  font-size: 14px;
  font-weight: 600;
  line-height: 23px;
}

.help-modal-highlight {
  padding: var(--space-4);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-left: 4px solid #f97316;
  border-radius: var(--radius-12);
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  line-height: 23px;
}

.wc-save-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--grey-100);
}

.wc-save-close::before,
.wc-save-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--grey-600);
}

.wc-save-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wc-save-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wc-save-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--grey-50);
}

.wc-save-preview div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wc-save-preview span {
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.wc-save-preview strong {
  color: var(--grey-900);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 27px;
  overflow-wrap: anywhere;
}

.wc-save-preview strong[data-tone="danger"] {
  color: #d92d3f;
}

.wc-save-preview strong[data-tone="green"] {
  color: #027a48;
}

.wc-save-kakao,
.wc-save-secondary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-12);
  font-size: 15px;
  font-weight: 900;
  line-height: 22px;
}

.wc-save-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: #fee500;
  color: #191919;
}

.wc-save-kakao span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #191919;
  color: #fee500;
  font-size: 13px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.wc-save-kakao:disabled {
  background: var(--grey-200);
  color: var(--grey-500);
  cursor: not-allowed;
}

.wc-save-kakao:disabled span {
  background: var(--grey-400);
  color: var(--grey-100);
}

.wc-save-secondary {
  background: var(--grey-100);
  color: var(--grey-800);
}

.wc-save-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
  color: var(--grey-500);
  font-size: 12px;
  font-weight: 800;
}

.wc-save-divider::before,
.wc-save-divider::after {
  content: "";
  height: 1px;
  background: var(--grey-200);
}

.wc-save-footnote {
  margin: 0;
  color: var(--grey-500);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.wc-save-field {
  display: grid;
  gap: var(--space-2);
}

.wc-save-field label {
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
}

.wc-save-field input,
.wc-save-field textarea {
  width: 100%;
  border: 1px solid rgba(2, 32, 71, 0.14);
  border-radius: var(--radius-12);
  background: var(--white);
  color: var(--grey-900);
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
  text-align: left;
}

.wc-save-field input {
  height: 46px;
}

.wc-save-field textarea {
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.wc-save-field[data-error="true"] input {
  border-color: rgba(240, 68, 82, 0.72);
  background: #fff1f3;
}

.wc-save-field p {
  margin: 0;
  color: #d92d3f;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.wc-save-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wc-save-tags button {
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
}

.wc-save-tags button.is-selected {
  border-color: rgba(49, 130, 246, 0.3);
  background: var(--blue-50);
  color: var(--blue-600);
}

.wc-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.wc-save-submit-loading {
  opacity: 0.72;
  pointer-events: none;
}

.wc-save-submit-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: var(--white);
  border-radius: 50%;
  vertical-align: -2px;
  animation: wcSaveSpin 700ms linear infinite;
}

@keyframes wcSaveSpin {
  to {
    transform: rotate(360deg);
  }
}

.wc-save-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf3de;
  position: relative;
}

.wc-save-success-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 17px;
  height: 27px;
  border-right: 4px solid #27500a;
  border-bottom: 4px solid #27500a;
  transform: rotate(45deg);
}

.wc-save-saved-summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-left: 3px solid #27500a;
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.wc-save-saved-summary strong {
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 24px;
}

.wc-save-saved-summary p {
  margin: 0;
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.wc-save-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wc-save-tag-list span {
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

.wc-save-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3);
  border-radius: var(--radius-12);
  background: var(--blue-50);
}

.wc-save-info span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-500);
  position: relative;
}

.wc-save-info span::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--white);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.wc-save-info p {
  margin: 0;
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.primary-small-button,
.ghost-small-button {
  min-width: 78px;
  height: 42px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-12);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.primary-small-button {
  background: var(--blue-500);
  color: var(--white);
}

.primary-small-button:hover,
.primary-small-button:focus-visible {
  background: var(--blue-600);
  outline: none;
}

.ghost-small-button {
  background: var(--grey-100);
  color: var(--grey-700);
}

.ghost-small-button:hover,
.ghost-small-button:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
}

.home-guide-strip {
  display: flex;
  justify-content: flex-end;
  margin: calc(var(--space-3) * -1) 0 var(--space-6);
}

.home-guide-strip[hidden],
.quick-home-calculator[hidden],
.home-seo-explain-section[hidden],
.overview-section[hidden],
.seo-content-section[hidden] {
  display: none;
}

.home-guide-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.home-guide-strip a:hover,
.home-guide-strip a:focus-visible {
  border-color: rgba(49, 130, 246, 0.35);
  background: var(--blue-50);
  outline: none;
}

.quick-home-calculator {
  margin: 0 0 var(--space-6);
}

.quick-home-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: var(--space-6);
  align-items: stretch;
  padding: var(--space-6);
  border: 1px solid rgba(2, 32, 71, 0.04);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.quick-home-copy h2,
.home-seo-main h2,
.home-faq-card h2 {
  margin-bottom: var(--space-3);
  color: var(--grey-900);
  font-size: 26px;
  font-weight: 700;
  line-height: 36px;
}

.quick-home-copy p {
  max-width: 760px;
  margin-bottom: var(--space-5);
  color: var(--grey-600);
  font-size: 15px;
  line-height: 24px;
}

.quick-home-inputs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.quick-home-inputs label {
  position: relative;
  gap: var(--space-2);
}

.quick-home-inputs span {
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.quick-home-inputs input {
  height: 48px;
  padding-right: 44px;
  border-color: rgba(49, 130, 246, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(49, 130, 246, 0.08),
    0 1px 2px rgba(2, 32, 71, 0.04);
}

.quick-home-inputs em {
  position: absolute;
  right: var(--space-4);
  bottom: 14px;
}

.quick-home-results {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-16);
  background: var(--grey-50);
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.04);
}

.quick-home-result-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}

.quick-home-result-head .eyebrow {
  margin-bottom: 0;
}

.quick-home-result-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.quick-home-result-head span.is-loss {
  background: #fff1f2;
  color: var(--red-500);
}

.quick-home-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.quick-home-result-grid div {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--white);
}

.quick-home-result-grid span {
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.quick-home-result-grid strong {
  min-width: 0;
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.quick-home-detail-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-12);
  background: var(--blue-500);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.18);
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.quick-home-detail-button:hover,
.quick-home-detail-button:focus-visible {
  background: var(--blue-600);
  box-shadow: 0 10px 22px rgba(49, 130, 246, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.home-seo-explain-section {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
}

.home-seo-main,
.home-faq-card {
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.home-seo-main p {
  margin-bottom: var(--space-4);
  color: var(--grey-600);
  font-size: 15px;
  line-height: 24px;
}

.home-seo-main ul {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding-left: 18px;
  color: var(--grey-700);
  font-size: 14px;
  line-height: 22px;
}

.home-seo-main a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
}

.home-seo-main a:hover,
.home-seo-main a:focus-visible {
  background: #dcecff;
  outline: none;
}

.home-faq-card details {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--grey-200);
}

.home-faq-card details:last-child {
  padding-bottom: 0;
}

.home-faq-card summary {
  color: var(--grey-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 24px;
  cursor: pointer;
}

.home-faq-card details p {
  margin: var(--space-2) 0 0;
  color: var(--grey-600);
  font-size: 14px;
  line-height: 22px;
}

.calc-banner {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-16);
  background: var(--blue-500);
  color: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.calc-banner span {
  position: relative;
  z-index: 2;
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(23px, 2vw, 34px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.calc-banner:hover,
.calc-banner:focus-visible {
  background: var(--blue-600);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.banner-grid .calc-banner[data-calculator="china"] {
  animation: startBannerGlow 2.8s ease-in-out infinite;
}

.banner-grid .calc-banner[data-calculator="china"]::before {
  content: "1단계";
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  box-shadow: 0 6px 18px rgba(0, 60, 160, 0.18);
}

.banner-grid .calc-banner[data-calculator="china"]::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 31%,
    rgba(255, 255, 255, 0.24) 45%,
    transparent 59%,
    transparent 100%
  );
  transform: translateX(-110%);
  animation: startBannerSweep 2.8s ease-in-out infinite;
}

.overview-section {
  min-width: 0;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.overview-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-6);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.overview-copy,
.overview-hero > *,
.explain-card > * {
  min-width: 0;
}

.overview-copy h2 {
  max-width: 840px;
  margin-bottom: var(--space-3);
  color: var(--grey-900);
  font-size: 26px;
  font-weight: 700;
  line-height: 36px;
}

.overview-copy p:last-child {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--grey-600);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.overview-hero img,
.explain-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.overview-hero img {
  border-radius: var(--radius-16);
}

.category-explain-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

.category-explain-grid[hidden] {
  display: none;
}

.explain-card {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.explain-card img {
  border-radius: var(--radius-12);
  background: var(--grey-100);
}

.explain-card h3 {
  margin-bottom: var(--space-2);
  color: var(--grey-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.explain-card p:last-child {
  margin-bottom: 0;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.seo-content-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: var(--space-5);
  padding-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.knowledge-hub-teaser {
  display: block;
}

.knowledge-hub-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.knowledge-hub-card h2 {
  margin-bottom: var(--space-2);
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.knowledge-hub-card p:last-child {
  margin-bottom: 0;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 25px;
}

.seo-answer-card,
.seo-faq-card {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: rgba(255, 255, 255, 0.72);
}

.seo-answer-card h2,
.seo-faq-card h2 {
  margin-bottom: var(--space-3);
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.seo-answer-card > p {
  margin-bottom: var(--space-5);
  color: var(--grey-700);
  font-size: 15px;
  line-height: 25px;
}

.seo-definition-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.seo-definition-list div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.seo-definition-list dt {
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.seo-definition-list dd {
  margin: 0;
  color: var(--grey-700);
  font-size: 14px;
  line-height: 23px;
}

.knowledge-link-panel {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-200);
}

.knowledge-hub-card .knowledge-link-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.knowledge-link-panel p {
  margin-bottom: 0;
  color: var(--grey-900);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.knowledge-link-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.knowledge-link-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-8);
  background: var(--white);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}

.knowledge-link-panel a:hover,
.knowledge-link-panel a:focus-visible {
  border-color: rgba(49, 130, 246, 0.42);
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
}

.knowledge-main-link {
  width: fit-content;
  min-height: 44px !important;
  padding: 0 var(--space-4) !important;
  border-color: transparent !important;
  background: var(--blue-500) !important;
  color: var(--white) !important;
  font-size: 14px !important;
}

.knowledge-main-link:hover,
.knowledge-main-link:focus-visible {
  background: var(--blue-600) !important;
  color: var(--white) !important;
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-list article {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--white);
}

.faq-list h3 {
  margin-bottom: var(--space-2);
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--grey-700);
  font-size: 14px;
  line-height: 23px;
}

.guide-page-shell {
  width: calc(100% - 40px);
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.guide-article {
  padding: var(--space-8);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
  color: var(--grey-500);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.guide-breadcrumb a {
  color: var(--grey-600);
  text-decoration: none;
}

.guide-breadcrumb a:hover,
.guide-breadcrumb a:focus-visible {
  color: var(--blue-600);
  outline: none;
}

.guide-article h1 {
  max-width: 760px;
  margin-bottom: var(--space-4);
  font-size: 36px;
  line-height: 48px;
}

.guide-lede {
  max-width: 760px;
  margin-bottom: var(--space-6);
  color: var(--grey-700);
  font-size: 18px;
  font-weight: 500;
  line-height: 31px;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-8);
}

.guide-primary-link,
.guide-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-8);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}

.guide-primary-link {
  background: var(--blue-500);
  color: var(--white);
}

.guide-primary-link:hover,
.guide-primary-link:focus-visible {
  background: var(--blue-600);
  outline: none;
}

.guide-secondary-link {
  border: 1px solid var(--grey-200);
  background: var(--grey-50);
  color: var(--grey-700);
}

.guide-secondary-link:hover,
.guide-secondary-link:focus-visible {
  border-color: rgba(49, 130, 246, 0.42);
  color: var(--blue-600);
  outline: none;
}

.guide-section-list {
  display: grid;
  gap: var(--space-5);
}

.guide-section-list section {
  padding: var(--space-5);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.guide-section-list h2,
.guide-faq-block h2 {
  margin-bottom: var(--space-3);
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.guide-section-list p {
  margin-bottom: var(--space-3);
  color: var(--grey-700);
  font-size: 16px;
  line-height: 27px;
}

.guide-section-list p:last-child {
  margin-bottom: 0;
}

.guide-faq-block {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--grey-200);
}

.guide-faq-list {
  display: grid;
  gap: var(--space-3);
}

.guide-faq-list article {
  padding: var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--white);
}

.guide-faq-list h3 {
  margin-bottom: var(--space-2);
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
}

.guide-faq-list p {
  margin-bottom: 0;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 25px;
}

.guide-related {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border-radius: var(--radius-12);
  background: var(--blue-50);
}

.guide-related div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.guide-related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-8);
  background: var(--white);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.guide-related a:hover,
.guide-related a:focus-visible {
  color: var(--grey-900);
  outline: none;
}

.guide-link-stack {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-6) 0 0;
  list-style: none;
}

.guide-link-stack a {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--grey-50);
  color: inherit;
  text-decoration: none;
}

.guide-link-stack strong {
  color: var(--grey-900);
  font-size: 16px;
  line-height: 24px;
}

.guide-link-stack span {
  color: var(--grey-700);
  font-size: 14px;
  line-height: 23px;
}

.guide-link-stack a:hover,
.guide-link-stack a:focus-visible {
  border-color: rgba(49, 130, 246, 0.42);
  background: var(--blue-50);
  outline: none;
}

.cost-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: var(--space-4);
}

.cost-summary-list,
.final-total-card {
  border-radius: var(--radius-16);
}

.cost-summary-list {
  display: grid;
  background: var(--grey-50);
  overflow: hidden;
}

.cost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--grey-200);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.cost-summary-row:last-child {
  border-bottom: 0;
}

.cost-summary-row:hover,
.cost-summary-row:focus-visible,
.cost-summary-row.is-help-selected {
  border-left-color: var(--blue-500);
  background: rgba(232, 243, 255, 0.52);
  outline: none;
}

.cost-summary-row span {
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.cost-summary-row strong,
.final-total-card strong,
.final-business-card strong {
  color: var(--grey-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cost-summary-row strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.final-summary-panel.is-direct-mode .cost-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  min-height: 84px;
  background: var(--white);
}

.final-summary-panel.is-direct-mode .cost-summary-row:hover,
.final-summary-panel.is-direct-mode .cost-summary-row:focus-visible,
.final-summary-panel.is-direct-mode .cost-summary-row.is-help-selected {
  background: var(--white);
}

.final-direct-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

.final-direct-field[hidden] {
  display: none;
}

.final-direct-field input {
  height: 42px;
  padding: 0 var(--space-3);
  font-size: 16px;
  font-weight: 600;
}

.final-direct-field em {
  color: var(--grey-700);
}

.final-total-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--blue-50);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.final-total-card:hover,
.final-total-card:focus-visible,
.final-total-card.is-help-selected {
  border-color: rgba(49, 130, 246, 0.34);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
  outline: none;
}

.final-total-card span {
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.final-total-card strong {
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
}

.final-total-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.final-business-card {
  min-width: 0;
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.02);
}

.final-business-card span {
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.final-business-card strong {
  overflow: hidden;
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
  text-overflow: ellipsis;
}

.final-business-card em {
  color: var(--grey-600);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
}

.final-business-card[data-tone="danger"] {
  border-color: rgba(217, 45, 63, 0.24);
  background: #fff1f3;
}

.final-business-card[data-tone="danger"] span,
.final-business-card[data-tone="danger"] strong,
.final-business-card[data-tone="danger"] em {
  color: #d92d3f;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(2, 32, 71, 0.08);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.selected-banner {
  display: block;
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50);
}

.workspace.is-standalone .selected-banner {
  grid-template-columns: 1fr;
}

.workspace.is-standalone .calc-banner-active {
  min-height: 88px;
}

.calc-banner-active {
  display: none;
}

.quick-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quick-switch button {
  position: relative;
  min-width: 0;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--space-3);
  border: 0;
  border-right: 1px solid var(--grey-200);
  border-radius: 0;
  background: transparent;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.quick-switch button:last-child {
  border-right: 0;
}

.quick-switch button::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: var(--grey-400);
  opacity: 0.72;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.quick-switch button:hover,
.quick-switch button:focus-visible {
  border-color: var(--grey-200);
  background: var(--white);
  color: var(--grey-900);
  box-shadow: inset 0 -2px 0 rgba(49, 130, 246, 0.18);
  outline: none;
  transform: none;
}

.quick-switch button:hover::after,
.quick-switch button:focus-visible::after {
  background: var(--blue-500);
  opacity: 1;
  transform: translateX(2px);
}

.quick-switch button.is-active {
  border-color: var(--grey-200);
  background: var(--white);
  color: var(--blue-600);
  box-shadow: inset 0 -3px 0 var(--blue-500);
  animation: none;
}

.quick-switch button.is-active::after {
  background: var(--blue-500);
  opacity: 1;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  align-items: stretch;
}

.workspace.is-final .calculator-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.workspace.is-final .preview-panel {
  min-height: auto;
}

.workspace.is-final .preview-visual {
  min-height: 268px;
  padding: var(--space-6);
}

.form-panel,
.preview-panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.form-panel {
  border-right: 1px solid var(--grey-200);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.panel-header h2 {
  margin-bottom: 0;
  color: var(--grey-900);
  font-size: 26px;
  font-weight: 700;
  line-height: 36px;
}

.stage-summary {
  margin: var(--space-2) 0 0;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.ghost-button {
  min-width: 88px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(2, 32, 71, 0.05);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 600;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
}

.result-card {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.result-card.result-card-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-summary-panel {
  padding: var(--space-6);
}

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

.final-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--grey-50);
}

.final-mode-bar strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.final-mode-toggle {
  min-width: 112px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-12);
  background: rgba(100, 168, 255, 0.15);
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.final-mode-toggle:hover,
.final-mode-toggle:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
  outline: none;
  transform: translateY(-1px);
}

.final-profit-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.final-profit-card div {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--grey-50);
}

.final-profit-card div[data-tone="danger"] {
  background: #fff1f3;
}

.final-profit-card span {
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.final-profit-card strong {
  overflow: hidden;
  color: var(--grey-900);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-profit-card div[data-tone="danger"] span,
.final-profit-card div[data-tone="danger"] strong {
  color: #d92d3f;
}

.final-summary-panel .cost-summary-card {
  grid-template-columns: 1fr;
}

.final-summary-panel .final-total-card {
  min-height: 148px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
  align-items: center;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.result-card-multi .result-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: var(--space-2);
  min-height: 92px;
  padding: var(--space-3);
  border-radius: var(--radius-12);
  background: var(--white);
}

.result-card-multi .result-row.is-wide {
  grid-column: 1 / -1;
}

.result-row span,
.result-row strong {
  min-width: 0;
}

.result-row span {
  overflow-wrap: anywhere;
}

.result-row strong {
  max-width: 100%;
  color: var(--grey-900);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.result-card-multi .result-row strong {
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.result-row[data-tone="danger"] {
  background: #fff1f3;
  color: #d92d3f;
}

.result-row[data-tone="danger"] strong {
  color: #d92d3f;
}

.result-row[data-tone="warning"] {
  background: #fff7ed;
  color: #c05621;
}

.result-row[data-tone="warning"] strong {
  color: #c05621;
}

.result-row[data-tone="safe"] {
  background: #ecfdf3;
  color: #027a48;
}

.result-row[data-tone="safe"] strong {
  color: #027a48;
}

.mock-form {
  padding: var(--space-6);
}

.stage-help-summary {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-8) var(--space-6) var(--space-6);
  padding: var(--space-6);
  border: 1px solid rgba(2, 32, 71, 0.08);
  border-radius: var(--radius-16);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--white) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.stage-help-summary[hidden] {
  display: none;
}

.stage-help-summary-head h3 {
  margin: var(--space-1) 0 0;
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 800;
  line-height: 31px;
}

.stage-help-summary-head p:not(.eyebrow) {
  max-width: 920px;
  margin: var(--space-3) 0 0;
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
}

.stage-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.stage-keyword-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  border: 1px solid rgba(49, 130, 246, 0.16);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.stage-help-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.stage-help-summary-item {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--grey-50);
  text-align: left;
}

.stage-help-summary-item:hover,
.stage-help-summary-item:focus-visible {
  border-color: rgba(49, 130, 246, 0.26);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(25, 31, 40, 0.06);
  outline: none;
}

.stage-help-summary-item strong {
  color: var(--grey-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 21px;
}

.stage-help-summary-item span {
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 21px;
}

fieldset {
  margin: 0 0 var(--space-8);
  padding: 0;
  border: 0;
}

fieldset:last-child {
  margin-bottom: 0;
}

legend {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
  color: var(--grey-900);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.field-grid {
  display: grid;
  gap: var(--space-3);
}

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

label,
.full-field {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.helpable-field {
  position: relative;
  cursor: pointer;
}

.field-label-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.computed-field .field-label-text {
  color: var(--grey-500);
}

.computed-field .input-with-unit {
  position: relative;
  padding-left: 10px;
  border-left: 3px solid rgba(49, 130, 246, 0.32);
  border-radius: 14px;
  background: var(--grey-50);
}

.computed-field .input-with-unit::before {
  content: none;
}

.computed-field .input-with-unit::after {
  content: none;
}

.computed-field .input-with-unit input::selection {
  background: transparent;
}

.computed-field input {
  padding-left: var(--space-3);
}

.helpable-field > .field-label-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.helpable-field:hover > .field-label-text,
.helpable-field.is-help-selected > .field-label-text {
  color: var(--blue-600);
}

.field-help-button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(49, 130, 246, 0.22);
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.field-help-button:hover,
.field-help-button:focus-visible {
  border-color: rgba(49, 130, 246, 0.48);
  background: var(--blue-500);
  color: var(--white);
  outline: none;
}

label span,
.full-field span {
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

input,
select {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(2, 32, 71, 0.12);
  border-radius: 14px;
  background: var(--white);
  color: var(--grey-800);
  font-size: 17px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  text-align: right;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

input {
  padding: 0 var(--space-4);
}

input:focus,
select:focus {
  border-color: rgba(49, 130, 246, 0.58);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
  outline: none;
}

input:disabled,
.input-with-unit.disabled input {
  border-color: var(--grey-200);
  background: var(--grey-50);
  color: var(--grey-600);
  opacity: 1;
}

.input-with-unit:not(.disabled) input[data-field],
.final-direct-field input {
  border-color: rgba(49, 130, 246, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(49, 130, 246, 0.08),
    0 1px 2px rgba(2, 32, 71, 0.04);
}

.input-with-unit:not(.disabled):hover input[data-field],
.final-direct-field:hover input {
  border-color: rgba(49, 130, 246, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(49, 130, 246, 0.12),
    0 2px 6px rgba(49, 130, 246, 0.08);
}

.input-with-unit:not(.disabled) input[data-field]:focus,
.final-direct-field input:focus {
  border-color: var(--blue-500);
  box-shadow:
    inset 0 0 0 1px rgba(49, 130, 246, 0.18),
    0 0 0 3px rgba(49, 130, 246, 0.16);
}

select {
  padding: 0 var(--space-4);
  text-align: left;
}

em {
  color: var(--grey-600);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.full-field {
  margin-top: var(--space-3);
}

.preview-panel {
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  background: var(--grey-50);
}

.live-result-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50);
}

.workspace.is-final .live-result-panel {
  display: none;
}

.live-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.live-result-head strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--grey-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.live-result-head > span {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.preview-panel .result-card {
  padding: 0;
  background: transparent;
}

.preview-panel .result-card.result-card-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-panel .result-row,
.preview-panel .result-card-multi .result-row {
  min-height: 84px;
  display: grid;
  gap: var(--space-1);
  align-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--white);
}

.preview-panel .result-row strong,
.preview-panel .result-card-multi .result-row strong {
  font-size: 22px;
  line-height: 30px;
  text-align: left;
  white-space: normal;
}

.computed-output-panel {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.computed-output-panel[hidden] {
  display: none;
}

.computed-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.computed-output-head strong {
  color: var(--grey-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.computed-output-head span {
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.computed-output-list {
  display: grid;
  gap: var(--space-2);
}

.computed-output-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 62px;
  padding: var(--space-3);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--white);
  color: inherit;
  text-align: left;
}

.computed-output-item:not(:disabled):hover,
.computed-output-item:not(:disabled):focus-visible {
  border-color: rgba(49, 130, 246, 0.28);
  box-shadow: 0 6px 16px rgba(49, 130, 246, 0.08);
  outline: none;
}

.computed-output-item:disabled {
  cursor: default;
  opacity: 1;
}

.live-result-save-button {
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-2);
  border-radius: var(--radius-12);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.18);
}

.computed-output-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  line-height: 19px;
}

.computed-output-item em {
  color: var(--grey-500);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}

.computed-output-item strong {
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  text-align: right;
  white-space: nowrap;
}

.workspace:not(.is-final) .preview-visual,
.workspace:not(.is-final) .preview-panel > .formula-card {
  display: none;
}

.preview-visual {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--grey-50);
}

.help-visual-card {
  position: relative;
  width: min(620px, 100%);
  border-radius: var(--radius-16);
  background: var(--grey-50);
  overflow: hidden;
  animation: helpCardEnter 260ms var(--ease-standard) both;
}

.help-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(49, 130, 246, 0.14), transparent);
  transform: translateX(-110%);
  animation: helpSweep 820ms var(--ease-standard) 120ms both;
  pointer-events: none;
}

.help-visual-card svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.06));
}

.help-visual-card svg > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: helpElementIn 420ms var(--ease-standard) both;
}

.help-visual-card svg > *:nth-child(2) {
  animation-delay: 60ms;
}

.help-visual-card svg > *:nth-child(3) {
  animation-delay: 110ms;
}

.help-visual-card svg > *:nth-child(4) {
  animation-delay: 160ms;
}

.help-visual-card svg > *:nth-child(n + 5) {
  animation-delay: 220ms;
}

.help-visual-card svg path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation:
    helpElementIn 360ms var(--ease-standard) both,
    helpStrokeDraw 780ms var(--ease-standard) 120ms both;
}

.help-visual-card svg circle,
.help-visual-card svg text {
  animation:
    helpElementIn 420ms var(--ease-standard) both,
    helpPulse 960ms var(--ease-standard) 320ms both;
}

.visual-window {
  width: min(480px, 100%);
  min-height: 252px;
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.visual-toolbar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-5);
  border-bottom: 1px solid var(--grey-200);
}

.visual-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey-200);
}

.visual-lines {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
}

.visual-lines i {
  display: block;
  height: 18px;
  border-radius: var(--radius-8);
  background: var(--grey-100);
}

.visual-lines i:first-child {
  width: 86%;
  background: var(--blue-50);
}

.visual-lines i:nth-child(2) {
  width: 74%;
}

.visual-lines i:nth-child(3) {
  width: 82%;
}

.visual-lines i:nth-child(4) {
  width: 58%;
}

.final-chart-visual {
  width: 100%;
  display: grid;
}

.final-breakdown-panel {
  width: 100%;
  display: grid;
  gap: var(--space-4);
  animation: helpCardEnter 260ms var(--ease-standard) both;
}

.final-reading-card,
.final-selected-cost,
.final-share-row,
.final-key-metric {
  min-width: 0;
  border-radius: var(--radius-12);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.05);
}

.final-reading-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.final-reading-card[data-tone="danger"] {
  background: #fff1f3;
  box-shadow: inset 0 0 0 1px rgba(217, 45, 63, 0.18);
}

.final-reading-card span,
.final-selected-cost span {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.final-reading-card strong,
.final-selected-cost strong {
  color: var(--grey-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 25px;
}

.final-reading-card em,
.final-selected-cost em {
  color: var(--grey-600);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.final-reading-card[data-tone="danger"] span,
.final-reading-card[data-tone="danger"] strong,
.final-reading-card[data-tone="danger"] em {
  color: #d92d3f;
}

.final-selected-cost {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
}

.final-share-bars {
  display: grid;
  gap: var(--space-2);
}

.final-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3);
}

.final-share-row.is-selected {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.16);
}

.final-share-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.final-share-row span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
}

.final-share-row strong,
.final-share-row em {
  color: var(--grey-600);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}

.final-share-row b {
  height: 8px;
  border-radius: 999px;
  background: var(--grey-100);
  overflow: hidden;
}

.final-share-row b i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.final-insight-card {
  display: grid;
  gap: var(--space-5);
  width: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.04);
  animation: helpCardEnter 260ms var(--ease-standard) both;
}

.final-insight-heading {
  display: grid;
  gap: var(--space-1);
}

.final-insight-heading span,
.final-key-metric span {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.final-insight-heading strong {
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.final-insight-amount {
  margin: 0;
  color: var(--grey-900);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 38px;
  word-break: keep-all;
}

.final-insight-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.donut-chart {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  padding: 14px;
  border-radius: 50%;
  background: var(--donut-background);
  box-shadow:
    0 4px 12px rgba(25, 31, 40, 0.06),
    inset 0 0 0 1px rgba(2, 32, 71, 0.04);
}

.donut-hole {
  min-width: 0;
  display: grid;
  place-content: center;
  gap: var(--space-1);
  border-radius: 50%;
  background: var(--white);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, 0.04);
}

.donut-hole span {
  max-width: 80px;
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.donut-hole strong {
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 30px;
}

.final-key-metric {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.final-key-metric strong {
  overflow: hidden;
  color: var(--grey-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-key-metric em {
  overflow: hidden;
  color: var(--grey-600);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-insight-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.final-insight-meta span {
  min-width: 0;
  padding: 7px var(--space-2);
  border-radius: 999px;
  background: var(--grey-50);
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.formula-card {
  padding: var(--space-8) var(--space-10);
  border-top: 1px solid var(--grey-200);
}

.preview-panel .formula-card {
  padding: var(--space-5);
  background: var(--white);
}

.formula-card h3 {
  margin-bottom: var(--space-4);
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.formula-card ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: 18px;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.formula-card.help-card ul {
  padding-left: 0;
  list-style: none;
}

.formula-card.help-card li {
  position: relative;
  padding-left: 18px;
}

.formula-card.help-card li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.formula-card.help-card .help-meaning {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-12);
  background: var(--grey-50);
}

.formula-card.help-card .help-meaning::before {
  content: none;
}

.formula-card.help-card .help-meaning strong {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.formula-card.help-card .help-meaning span {
  color: var(--grey-800);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.formula-card.help-card .help-body {
  padding-left: 0;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 24px;
}

.formula-card.help-card .help-body::before {
  content: none;
}

.formula-card.help-card .help-highlight {
  margin: var(--space-2) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-left: 4px solid #f97316;
  border-radius: var(--radius-12);
  background: #fff7ed;
  color: #9a3412;
  font-size: 15px;
  font-weight: 800;
  line-height: 24px;
}

.formula-card.help-card .help-highlight::before {
  content: none;
}

.formula-card.help-card .help-formula {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-12);
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 700;
}

.formula-card.help-card .help-formula::before {
  content: none;
}

.formula-card.final-chart-card .chart-legend-list {
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.chart-legend-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--grey-200);
  background: transparent;
}

.chart-legend-item.is-selected {
  margin: 0 calc(var(--space-3) * -1);
  padding: var(--space-3);
  border-bottom-color: transparent;
  border-radius: var(--radius-12);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.12);
}

.chart-legend-item:last-child {
  border-bottom: 0;
}

.chart-legend-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.chart-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.chart-color-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot-color);
}

.chart-legend-item strong {
  color: var(--grey-900);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
}

.chart-legend-amount {
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.chart-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--grey-100);
  overflow: hidden;
}

.chart-progress-track i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
  transition: width var(--motion-normal) var(--ease-standard);
}

.ai-analysis-button {
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-5);
  border: 0;
  border-radius: var(--radius-16);
  background: var(--blue-500);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.ai-analysis-button:hover,
.ai-analysis-button:focus-visible {
  background: var(--blue-600);
  box-shadow: 0 6px 16px rgba(49, 130, 246, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.ai-analysis-status {
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(49, 130, 246, 0.2);
  border-radius: var(--radius-12);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

@keyframes helpCardEnter {
  from {
    opacity: 0.86;
    transform: translateY(6px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes helpElementIn {
  from {
    opacity: 0.55;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes helpStrokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes helpPulse {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.055);
  }
}

@keyframes helpSweep {
  to {
    transform: translateX(110%);
  }
}

@keyframes startBannerSweep {
  0%,
  20% {
    transform: translateX(-110%);
  }

  58%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes startBannerGlow {
  0%,
  100% {
    box-shadow:
      var(--shadow-2),
      0 0 0 0 rgba(49, 130, 246, 0);
  }

  50% {
    box-shadow:
      var(--shadow-2),
      0 0 0 6px rgba(49, 130, 246, 0.16),
      0 0 26px rgba(49, 130, 246, 0.22);
  }
}

@keyframes activeStepGlow {
  0%,
  100% {
    box-shadow:
      var(--shadow-1),
      0 0 0 2px rgba(49, 130, 246, 0.1),
      0 0 16px rgba(49, 130, 246, 0.18),
      inset 0 0 0 1px rgba(49, 130, 246, 0.08);
  }

  50% {
    box-shadow:
      var(--shadow-1),
      0 0 0 2px rgba(49, 130, 246, 0.18),
      0 0 26px rgba(49, 130, 246, 0.3),
      inset 0 0 0 1px rgba(49, 130, 246, 0.1);
  }
}

.quick-home-results .wc-result-hero {
  margin: var(--space-3) 0 var(--space-3);
}

.quick-home-results .quick-home-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-home-results .quick-home-roas-row {
  grid-column: 1 / -1;
  min-height: 54px;
}

.final-summary-panel .final-profit-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.final-summary-panel .final-profit-card .final-profit-hero {
  margin-bottom: 0;
}

.final-summary-panel .final-profit-card .wc-result-hero-head,
.final-summary-panel .final-profit-card .wc-margin-actions {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.final-summary-panel .final-profit-card .wc-result-hero-head {
  display: flex;
}

.final-summary-panel .final-profit-card .wc-margin-actions {
  display: flex;
}

.final-summary-panel .final-profit-card .wc-margin-progress {
  display: block;
  padding: 0;
  border-radius: 999px;
  background: var(--grey-200);
}

.final-summary-panel .final-profit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.final-summary-panel .final-profit-grid div {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-16);
  background: var(--grey-50);
}

.final-summary-panel .final-profit-grid .final-profit-roas {
  grid-column: 1 / -1;
}

.final-summary-panel .final-profit-grid span {
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.final-summary-panel .final-profit-grid strong {
  overflow: hidden;
  color: var(--grey-900);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-summary-panel .final-profit-grid div[data-tone="danger"] {
  background: #fff1f3;
}

.final-summary-panel .final-profit-grid div[data-tone="danger"] span,
.final-summary-panel .final-profit-grid div[data-tone="danger"] strong {
  color: #d92d3f;
}

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

@media (max-width: 980px) {
  .intro {
    align-items: start;
    flex-direction: column;
  }

  .header-account-box {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .product-head {
    align-items: start;
    flex-direction: column;
  }

  .product-save-meta {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .save-status {
    max-width: none;
    text-align: left;
  }

  .saved-list-toggle {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-list-toggle b {
    width: fit-content;
  }

  .saved-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-save-list-grid,
  .wc-save-list-page.is-compare-mode .wc-save-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-save-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .wc-save-list-actions {
    justify-content: flex-start;
  }

  .quick-home-card,
  .home-seo-explain-section {
    grid-template-columns: 1fr;
  }

  .quick-home-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-controls {
    justify-content: start;
    grid-template-columns: auto;
  }

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

  .overview-hero {
    grid-template-columns: 1fr;
  }

  .coming-soon-card {
    grid-template-columns: 1fr;
  }

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

  .seo-content-section {
    grid-template-columns: 1fr;
  }

  .knowledge-hub-card {
    grid-template-columns: 1fr;
  }

  .cost-summary-card {
    grid-template-columns: 1fr;
  }

  .final-total-stack {
    grid-template-columns: 1fr;
  }

  .selected-banner,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .form-panel {
    border-right: 0;
    border-bottom: 1px solid var(--grey-200);
  }

  .workspace.is-final .calculator-layout {
    grid-template-columns: 1fr;
  }

  .final-profit-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .preview-panel {
    min-height: 0;
  }

  .wc-save-page-card {
    grid-template-columns: 1fr;
  }

  .wc-save-page-card .saved-product-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-top: 24px;
  }

  .calculator-category-nav {
    width: 100%;
    max-width: none;
    display: flex;
    margin-right: 0;
    margin-left: 0;
    padding-right: var(--space-3);
    padding-left: var(--space-3);
    border-radius: var(--radius-16);
    overflow-x: auto;
  }

  .calculator-category-nav button {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .intro {
    gap: var(--space-4);
  }

  .header-account-box {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .header-account-box .login-controls,
  .header-account-box button {
    width: 100%;
  }

  .header-account-box p,
  .product-head h2,
  .save-status {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .product-box {
    padding: var(--space-4);
  }

  .product-head {
    gap: var(--space-3);
  }

  .product-save-meta {
    width: 100%;
  }

  .banner-grid,
  .category-explain-grid,
  .seo-content-section,
  .quick-home-inputs,
  .quick-home-result-grid,
  .login-controls,
  .product-controls,
  .saved-products-list,
  .wc-save-list-grid,
  .wc-save-list-page.is-compare-mode .wc-save-list-grid,
  .result-card.result-card-multi,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .quick-switch {
    display: flex;
    overflow-x: auto;
  }

  .quick-switch button {
    min-width: 128px;
  }

  .wc-save-list-page {
    padding: var(--space-5);
  }

  .wc-save-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .wc-save-list-toolbar label {
    width: 100%;
  }

  .final-save-button {
    width: 100%;
  }

  .overview-section {
    margin-top: var(--space-4);
  }

  .overview-hero {
    padding: var(--space-5);
  }

  .coming-soon-card {
    padding: var(--space-5);
  }

  .coming-soon-copy h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .cost-summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-1);
    min-height: 0;
    padding: var(--space-4);
  }

  .final-mode-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .final-mode-toggle {
    width: 100%;
  }

  .final-summary-panel.is-direct-mode .cost-summary-row,
  .final-profit-card,
  .final-summary-panel .final-profit-grid,
  .quick-home-results .quick-home-result-grid {
    grid-template-columns: 1fr;
  }

  .wc-save-modal {
    align-items: end;
    padding: 0;
  }

  .wc-save-card,
  .wc-save-card-wide {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-16) var(--radius-16) 0 0;
  }

  .wc-save-preview {
    grid-template-columns: 1fr;
  }

  .wc-save-actions {
    flex-direction: column-reverse;
  }

  .final-total-card {
    min-height: 136px;
  }

  .final-business-card {
    min-height: 124px;
  }

  .final-total-card strong {
    font-size: 30px;
    line-height: 40px;
  }

  .save-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .overview-copy h2 {
    font-size: 22px;
    line-height: 30px;
    overflow-wrap: anywhere;
  }

  .overview-hero img {
    content: url("./assets/site-flow-mobile.svg");
  }

  .overview-copy p:last-child,
  .explain-card p:last-child {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .calc-banner {
    min-height: 92px;
  }

  .calc-banner span {
    font-size: 28px;
  }

  .panel-header {
    align-items: start;
    flex-direction: column;
  }

  .result-card {
    margin-right: var(--space-4);
    margin-left: var(--space-4);
  }

  .preview-panel .result-card {
    margin-right: 0;
    margin-left: 0;
  }

  .result-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .mock-form,
  .panel-header,
  .stage-help-summary {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .stage-help-summary-list {
    grid-template-columns: 1fr;
  }

  .input-with-unit {
    position: relative;
    display: block;
  }

  .input-with-unit input {
    width: calc(100% - 34px);
    text-align: left;
  }

  .input-with-unit em {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .preview-visual,
  .formula-card {
    padding: var(--space-6);
  }

  .guide-page-shell {
    width: calc(100% - 24px);
    padding: 24px 0 48px;
  }

  .guide-article {
    padding: var(--space-5);
  }

  .guide-article h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .guide-lede {
    font-size: 16px;
    line-height: 27px;
  }

  .guide-section-list section,
  .guide-related {
    padding: var(--space-4);
  }

  .guide-cta,
  .guide-related div,
  .knowledge-link-panel div {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-primary-link,
  .guide-secondary-link,
  .guide-related a,
  .knowledge-link-panel a {
    width: 100%;
  }
}
