:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #102033;
  --muted: #5c6b7d;
  --line: #d9e2ec;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0f766e;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
  color-scheme: light;
}

[data-theme="green"] {
  --bg: #f3f8f4;
  --panel-soft: #f7fbf8;
  --line: #d4e3d8;
  --primary: #2f855a;
  --primary-strong: #276749;
  --accent: #0f766e;
  --shadow: 0 10px 30px rgba(24, 65, 43, 0.09);
}
[data-theme="orange"] {
  --bg: #fff8f1;
  --panel-soft: #fffaf5;
  --line: #eadccd;
  --primary: #ea7b27;
  --primary-strong: #c85f16;
  --accent: #9a3412;
  --shadow: 0 10px 30px rgba(112, 59, 25, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; max-width: 100%; margin: 0; padding: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; position: relative; }
button, input, select, textarea { max-width: 100%; font: inherit; }
.page { min-height: 100vh; padding: 20px 14px; }
.shell { width: 100%; max-width: 1180px; min-width: 0; margin: 0 auto; display: grid; gap: 16px; }
.hero { background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.05)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
[data-theme="green"] .hero { background: linear-gradient(180deg, rgba(47, 133, 90, 0.1), rgba(15, 118, 110, 0.05)); }
[data-theme="orange"] .hero { background: linear-gradient(180deg, rgba(234, 123, 39, 0.11), rgba(154, 52, 18, 0.04)); }
.brand-logo { display: block; width: auto; height: clamp(40px, 6.5vw, 60px); margin: 0; }
.title { margin: 16px 0 8px; color: var(--text); font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.2; text-align: left; }
/* Brand colors retained for future OfferBuddy text: Offer #1E3470, Buddy #3378ED. */
.brand-offer { color: #1E3470; }
.brand-buddy { color: #3378ED; }
.usage-notice-research { font-weight: 700; }
.hero-description { margin: 0; max-width: none; color: var(--muted); font-size: 16px; line-height: 1.7; text-align: left; white-space: nowrap; }
.feedback-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 12px; border: 1px solid rgba(37, 99, 235, 0.28); border-radius: 10px; background: rgba(255, 255, 255, 0.78); color: var(--primary-strong); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.feedback-link:hover { border-color: rgba(37, 99, 235, 0.5); background: #fff; color: var(--primary-strong); }
.feedback-link:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.2); outline-offset: 2px; }
.page-feedback { display: flex; justify-content: flex-end; align-items: end; gap: 8px; padding: 0 4px; }
.page-feedback .feedback-link,
.page-feedback .theme-toggle,
.page-feedback #save-submission-btn { min-height: 38px; padding: 8px 13px; border-radius: 999px; }
.page-feedback #save-submission-btn {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--panel)), var(--panel));
  color: var(--primary-strong);
  font-size: 13px;
}
.page-feedback #save-submission-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 65%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, var(--panel)), var(--panel));
}
.group-consultation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--line));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 25%, transparent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.group-consultation-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 35%, transparent);
  transform: translateY(-1px);
}
.subtitle { margin: 0; color: var(--muted); line-height: 1.6; max-width: 70ch; }
.grid { min-width: 0; display: grid; gap: 16px; }
#flow-root,
#submission-library-root { min-width: 0; }
.flow-layout { min-width: 0; display: grid; gap: 12px; }
.page-navigation { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.progress-steps { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.progress-step { display: inline-flex; align-items: center; gap: 3px; }
.progress-step { border: 0; padding: 2px 3px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.progress-step:hover { color: var(--primary-strong); }
.progress-icon { font-size: 16px; line-height: 1; }
.progress-step-active { color: var(--primary-strong); font-weight: 700; }
.progress-step-complete { color: var(--accent); font-weight: 700; }
.progress-step-current { padding-inline: 7px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 12%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--line)); }
.progress-separator { color: var(--line); font-size: 18px; line-height: 1; }
.desktop-progress { margin-right: auto; }
#mobile-progress-root { display: none; }
.account-menu, .offer-more-menu { position: relative; }
.account-menu summary, .offer-more-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker, .offer-more-menu summary::-webkit-details-marker { display: none; }
.account-menu-items, .offer-more-items { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: grid; gap: 6px; min-width: 140px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.account-menu-items .ghost-btn, .offer-more-items .ghost-btn, .offer-more-items .danger-btn { width: 100%; text-align: left; }
.page-jump { min-width: 0; display: flex; align-items: center; gap: 10px; }
.page-jump-select {
  min-width: 0;
  width: 150px;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 9px;
  background-color: var(--panel);
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  color-scheme: light;
  padding: 7px 28px 7px 10px;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.06);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.page-jump-select option {
  background: #fff;
  color: #102033;
}
.page-jump-select optgroup { background: #eef2f7; color: #102033; font-weight: 800; }
.page-jump-select:hover { border-color: var(--primary); background-color: var(--panel-soft); }
.page-jump-select:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.2); outline-offset: 2px; border-color: var(--primary); }
.page-navigation-actions { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.offer-navigation-buttons,
.page-navigation-buttons { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.page-navigation-actions .offer-navigation-buttons { order: 1; }
.page-navigation-actions .page-navigation-buttons { order: 2; }
.flow-layout > .page-navigation:last-child { width: 100%; }
.page-navigation .ghost-btn,
.page-navigation .primary-btn,
.page-navigation .danger-btn { min-height: 32px; padding: 6px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.page-navigation .danger-btn { color: var(--danger, #b42318); background: color-mix(in srgb, var(--danger, #b42318) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--danger, #b42318) 28%, var(--line)); }
.page-navigation .danger-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--danger, #b42318) 15%, var(--panel)); }
.page-meter { font-size: 12px; color: var(--muted); white-space: nowrap; }
.page-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.page-intro {
  min-height: 56vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}
.page-center {
  min-width: 0;
  max-width: 56ch;
  text-align: center;
  display: grid;
  gap: 12px;
}
.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.page-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.page-header { padding: 18px 18px 0; }
.page-body { padding: 18px; }
.form-page .page-body { padding-top: 16px; }
.result-page .page-body { padding-top: 0; }
.usage-notice-page { width: 100%; max-width: none; margin: 0; justify-self: stretch; }
.usage-notice-page .usage-notice-summary,
.usage-notice-page .report-example-card > summary { font-size: 16px; }
.usage-notice-body { color: var(--text); font-size: 15px; line-height: 1.85; }
.usage-notice-page .brand-offer { color: var(--primary-strong); }
.usage-notice-page .brand-buddy { color: var(--text); }
.usage-notice-body p { margin: 18px 0 0; }
.usage-notice-summary {
  margin: 0 !important;
  padding: 0 0 2px;
  color: var(--primary-strong);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.usage-notice-heading { margin: 0; font-size: 18px; }
.usage-notice-list { display: grid; gap: 12px; margin: 14px 0 0; padding-left: 1.5em; }
.usage-notice-list li { padding-left: 4px; }
.usage-notice-emphasis { color: var(--primary-strong); font-weight: 800; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.panel-header { padding: 16px 16px 0; }
.panel-title { margin: 0; font-size: 18px; }
.panel-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.panel-body { padding: 16px; }
.section { display: grid; gap: 12px; margin-bottom: 18px; }
.form-sections { display: grid; gap: 16px; }
.form-section-box { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.form-section-title { margin: 0; font-size: 22px; line-height: 1.3; }
.section-title { margin: 0; font-size: 16px; }
.group-title { font-size: 17px; }
.profile-group { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.profile-group + .profile-group { margin-top: 12px; }
.profile-group.is-collapsed .group-fields { display: none; }
.profile-description { margin: 0; }
.profile-description summary { width: fit-content; cursor: pointer; color: var(--primary-strong); font-size: 13px; }
.profile-description .section-note { margin-top: 8px; white-space: pre-line; }
.appearance-standard { border-top: 1px solid var(--line); padding-top: 12px; }
.appearance-standard summary { cursor: pointer; color: var(--primary-strong); font-size: 13px; }
.appearance-standard-content { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.appearance-standard-content p { margin: 10px 0; }
.appearance-table-wrap { overflow-x: auto; }
.appearance-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.appearance-table th, .appearance-table td { width: 25%; padding: 7px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.appearance-table th { background: var(--panel-soft); font-weight: 700; }
.offer-comparison-wrap { overflow-x: auto; }
.offer-comparison-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.offer-comparison-table th,
.offer-comparison-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}
.offer-comparison-table thead th,
.offer-comparison-table tbody th {
  background: var(--panel-soft);
  font-weight: 700;
}
.offer-comparison-table thead th:first-child,
.offer-comparison-table tbody th { width: 22%; }
.sample-offer-table thead th:first-child,
.sample-offer-table tbody th { width: 24%; }
.field[data-field-key="appearance_self_rating"] .input,
.field[data-field-key="appearance_preference"] .input { width: 220px; }
.field[data-field-key="marriage_plan_detail"] .textarea,
.field[data-field-key="fertility_plan_detail"] .textarea { width: min(400px, 100%); max-width: 100%; }
.field[data-field-key="education_history"] .textarea { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.field[data-field-key="age"] .input { width: 64px; min-height: 42px; padding: 9px 9px; text-align: left; }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-heading-actions { display: inline-flex; align-items: center; gap: 10px; }
.group-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.offer-heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.offer-required-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.collapse-btn { border: 0; background: transparent; color: var(--primary-strong); padding: 4px 0; cursor: pointer; font-size: 12px; }
.section-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-grid { min-width: 0; display: grid; gap: 12px; align-items: start; }
@media (min-width: 720px) { .field-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.relationship-fields { grid-template-columns: minmax(0, 1fr); }
.field { min-width: 0; display: grid; gap: 6px; align-content: start; }
.item-index { display: inline-block; min-width: 1.35em; color: var(--primary-strong); font-weight: 700; }
.label { font-size: 14px; font-weight: 600; }
.required-label { color: color-mix(in srgb, var(--primary) 58%, white); font-size: 11px; font-weight: 700; }
.field-error { color: var(--danger); font-size: 12px; line-height: 1.4; }
.field-invalid .input, .field-invalid .textarea { border-color: rgba(180, 35, 24, 0.65); }
.field-invalid .choice { border-color: rgba(180, 35, 24, 0.55); }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }
.input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); padding: 12px 13px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.textarea { min-height: 48px; resize: vertical; }
.offer-card [data-field-key="city"] .input { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
.offer-card [data-field-key="work_intensity"] .textarea { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.offer-card [data-field-key="salary"] .textarea,
.offer-card [data-field-key="work_content"] .textarea,
.offer-card [data-field-key="benefits"] .textarea,
.offer-card [data-field-key="career_path"] .textarea,
.offer-card [data-field-key="risk_stability"] .textarea,
.offer-card [data-field-key="probation_terms"] .textarea,
.offer-card [data-field-key="other_info"] .textarea,
.offer-card [data-field-key="raise_promotion"] .textarea { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.offer-card .offer-fields .textarea { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.field-collapsible { display: grid; gap: 8px; }
.field-collapsible > summary { width: fit-content; cursor: pointer; color: var(--primary-strong); font-size: 13px; }
.field-guidance { margin-top: 5px; }
.field-guidance > summary { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #2563eb; background: #eff6ff; border: 1px solid rgba(37, 99, 235, 0.3); border-radius: 50%; font-size: 15px; font-weight: 700; line-height: 1; list-style: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.field-guidance > summary::-webkit-details-marker { display: none; }
.field-guidance > summary::before { content: 'i'; display: block; font-family: Georgia, serif; font-style: italic; }
.field-guidance[open] > summary::before { content: 'i'; }
.field-guidance > summary:hover { color: #1d4ed8; background: #dbeafe; border-color: rgba(37, 99, 235, 0.48); }
.field-guidance-content { display: grid; gap: 3px; margin-top: 2px; }
.field-placeholder { color: var(--muted); }
.auto-fill-guidance { margin: 8px 0 0; }
.auto-fill-guidance + .textarea { margin-top: 4px; }
.input:focus, .textarea:focus { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.choice-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.choice {
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #334155;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.choice-label { display: block; }
.choice-description { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.choice.has-description { flex: 0 1 auto; min-width: 160px; max-width: 100%; }
.choice.stacked-option { width: 100%; flex: 0 0 100%; min-width: 0; padding: 10px 12px; }
.choice.stacked-option + .choice.stacked-option { margin-top: 2px; }
.choice.stacked-option .choice-description { max-width: 58ch; }
.choice:hover { border-color: #9fb1c7; background: #f8fafc; }
.choice.active {
  border-color: rgba(37, 99, 235, 0.7);
  background: #eff6ff;
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.choice.active .choice-description { color: var(--primary-strong); }
.stack { display: grid; gap: 10px; }
.offer-tabs { min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; margin: 14px 0 12px; }
.offer-tab { flex: 0 0 auto; display: grid; gap: 3px; min-width: 112px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--text); text-align: left; cursor: pointer; }
.offer-tab strong { font-size: 13px; }
.offer-tab span { color: var(--muted); font-size: 11px; }
.offer-tab.active { border-color: rgba(37, 99, 235, 0.55); background: rgba(37, 99, 235, 0.09); color: var(--primary-strong); }
.offer-tab.active span { color: var(--primary-strong); }
.offer-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel-soft); }
.offer-auto-fill { margin-top: 18px; margin-bottom: 24px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.offer-auto-fill-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-auto-fill.is-collapsed .offer-auto-fill-body { display: none; }
.offer-auto-fill.is-collapsed .offer-auto-fill-heading .hint { display: none; }
.offer-auto-fill-heading .hint { margin-top: 3px; }
.offer-auto-fill .textarea { min-height: 48px; margin-top: 8px; }
.offer-bottom-actions { margin-top: 10px; }
.offer-bottom-actions .row { display: flex; gap: 10px; flex-wrap: wrap; }
.offer-card-bottom-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.offer-card.is-collapsed .offer-auto-fill,
.offer-card.is-collapsed .offer-fields,
.offer-card.is-collapsed .offer-card-bottom-actions { display: none; }
.offer-field-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.field-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.field-hint { margin-top: 6px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; cursor: pointer; }
.offer-top { min-width: 0; display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.offer-top > * { min-width: 0; }
.offer-heading-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offer-heading-meta .offer-meta { min-width: 0; }
.offer-top .toolbar > .ghost-btn,
.offer-top .toolbar > .danger-btn,
.offer-card-bottom-actions .ghost-btn,
.offer-card-bottom-actions .danger-btn,
.offer-bottom-actions .primary-btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
}
.offer-title { margin: 0; font-size: 16px; }
.offer-meta { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.icon-btn, .primary-btn, .ghost-btn, .danger-btn { border: 0; border-radius: 12px; min-height: 42px; padding: 10px 14px; cursor: pointer; }
.primary-btn { background: var(--primary); color: white; font-weight: 700; }
.primary-btn:hover { background: var(--primary-strong); }
.primary-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--text); }
.danger-btn { background: rgba(180, 35, 24, 0.08); color: var(--danger); }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.toolbar { min-width: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hint { min-width: 0; font-size: 13px; color: var(--muted); }
.result-box { display: grid; gap: 12px; }
.result-main { padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--panel)), var(--panel)); }
.result-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-weight: 700; }
.result-company { margin: 8px 0 4px; font-size: 22px; }
.result-role { margin: 0; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #eef4ff; color: #1d4ed8; font-size: 12px; }
.list { margin: 0; padding-left: 0; list-style: none; color: var(--text); }
.list li + li { margin-top: 8px; }
.numbered-list { display: grid; gap: 8px; }
.numbered-list li + li { margin-top: 0; }
.numbered-item { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 6px; }
.list-number { color: var(--primary-strong); font-weight: 700; line-height: 1.55; }
.numbered-item-content { min-width: 0; }
.suggestion-item { padding-left: 2px; }
.suggestion-option { margin-bottom: 8px; font-weight: 700; color: var(--text); }
.suggestion-action { display: flex; align-items: start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.suggestion-action p { margin: 0; color: var(--text); line-height: 1.55; }
.suggestion-priority { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #eef4ff; color: var(--primary-strong); font-size: 12px; font-weight: 700; }
.priority-high { background: rgba(180, 35, 24, 0.08); color: var(--danger); }
.priority-medium { background: rgba(15, 118, 110, 0.08); color: var(--accent); }
.suggestion-columns { display: grid; gap: 8px; }
.suggestion-part { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.suggestion-part strong { display: block; font-size: 13px; }
.suggestion-part ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.suggestion-part li + li { margin-top: 4px; }
.suggestion-pros { border-color: rgba(15, 118, 110, 0.24); }
.suggestion-pros strong { color: var(--accent); }
.suggestion-cons { border-color: rgba(180, 35, 24, 0.2); }
.suggestion-cons strong { color: var(--danger); }
@media (min-width: 720px) { .suggestion-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tradeoff-item { padding-left: 2px; }
.tradeoff-dimension { margin-bottom: 8px; font-weight: 700; color: var(--text); }
.tradeoff-grid { display: grid; gap: 8px; }
.tradeoff-side { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.tradeoff-side strong { display: block; font-size: 13px; color: var(--primary-strong); }
.tradeoff-side p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.tradeoff-side ul { margin: 6px 0 0; padding-left: 0; list-style: none; color: var(--muted); line-height: 1.55; }
.tradeoff-side li + li { margin-top: 4px; }
.tradeoff-pros { border-color: rgba(15, 118, 110, 0.24); }
.tradeoff-pros strong { color: var(--accent); }
.tradeoff-cons { border-color: rgba(180, 35, 24, 0.2); }
.tradeoff-cons strong { color: var(--danger); }
@media (min-width: 720px) { .tradeoff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty-state { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, 0.7); }
.result-actions { display: block; padding: 12px 0; }
.token-redeem { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.account-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 13px; }
.account-status { min-width: 0; display: grid; gap: 3px; line-height: 1.35; }
.account-status > div:first-child { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-actions { display: flex; align-items: center; gap: 5px; }
.account-actions .ghost-btn { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.token-redeem-label { margin-bottom: 8px; color: var(--text); font-size: 13px; }
.token-redeem-row { display: flex; gap: 8px; align-items: center; }
.token-redeem-row .input { min-width: 0; }
.token-redeem-row .primary-btn { flex: 0 0 auto; }
.group-consultation-hint { display: block; max-width: 58ch; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.model-picker { display: grid; gap: 5px; min-width: min(280px, 100%); }
.model-picker-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.model-select { width: min(300px, 100%); min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); padding: 8px 10px; outline: none; }
.model-select:focus { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.followup-section { padding: 16px; border: 1px solid rgba(15, 118, 110, 0.2); border-radius: 14px; background: rgba(15, 118, 110, 0.04); }
.followup-field .label { line-height: 1.5; }
.final-concern-section { padding: 16px; border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 14px; background: rgba(37, 99, 235, 0.04); }
.loading-state { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; border: 1px solid rgba(37, 99, 235, 0.18); border-radius: 14px; background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 1)); text-align: center; }
.loading-state span { color: var(--muted); font-size: 13px; }
.loading-spinner { width: 32px; height: 32px; border: 3px solid rgba(37, 99, 235, 0.18); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.bottom-actions { min-width: 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.bottom-actions #save-submission-btn,
.bottom-actions #reset-btn {
  font-size: 13px;
  font-weight: 400;
}
.theme-switcher { position: relative; display: grid; justify-items: end; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); cursor: pointer; font-size: 13px; font-weight: 700; }
.theme-toggle-icon { color: var(--primary); font-size: 17px; line-height: 1; }
.theme-options { display: grid; gap: 4px; min-width: 132px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.theme-label { padding: 3px 8px 5px; color: var(--muted); font-size: 11px; }
.theme-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 12px; }
.theme-option:hover, .theme-option.active { background: var(--panel-soft); color: var(--primary-strong); }
.theme-swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.12); }
.theme-swatch-blue { background: #2563eb; }
.theme-swatch-green { background: #2f855a; }
.theme-swatch-orange { background: #ea7b27; }
.bottom-actions-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.submission-library { width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.submission-library .submission-select { flex: 1 1 240px; min-width: 0; max-width: none; }
.submission-library-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.submission-library .small,
.submission-library .submission-select,
.submission-library .ghost-btn,
.submission-library .danger-btn {
  font-size: 13px;
  font-weight: 400;
}
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(16, 32, 51, 0.42); }
.modal { width: min(100%, 420px); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 18px 50px rgba(16, 32, 51, 0.22); }
.welcome-modal { width: min(100%, 660px); }
.welcome-logo { max-width: 100%; margin: 0 auto 18px; }
.welcome-message { margin: 0 0 20px; color: var(--primary-strong); font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center; }
.welcome-modal .flow-overview-track { grid-template-columns: max-content auto max-content auto max-content; justify-content: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.welcome-modal .flow-overview-track .flow-overview-step { min-width: max-content; font-size: 15px; white-space: nowrap; }
.group-consultation-modal { width: min(100%, 460px); }
.group-consultation-image { display: block; width: min(100%, 360px); max-height: 62vh; margin: 16px auto 0; object-fit: contain; border-radius: 8px; }
.account-modal-form { display: grid; gap: 8px; margin-top: 18px; }
.account-modal-form .input { width: 100%; }
.modal-title { margin: 0; font-size: 18px; }
.modal-message { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.account-redeem-consultation-actions { justify-content: flex-end; margin-top: 12px; }
.submission-select { min-width: 0; max-width: min(100%, 520px); border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); padding: 8px 10px; text-overflow: ellipsis; }
.form-summary { margin-top: 10px; }
.small { font-size: 12px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  #mobile-progress-root { display: flex; justify-content: center; margin: -6px 0 2px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
  #mobile-progress-root .mobile-progress { display: inline-flex; max-width: 100%; overflow: hidden; font-size: 11px; }
  #mobile-progress-root .progress-icon { font-size: 14px; }
  #mobile-progress-root .progress-separator { font-size: 16px; }
  .desktop-progress { display: none; }
  .flow-layout { position: relative; overflow: visible; padding-bottom: var(--flow-navigation-space, 110px); }
  .flow-layout > .page-navigation,
  body > .mobile-page-navigation {
    position: fixed !important;
    left: 50%;
    right: auto;
    top: auto !important;
    bottom: 0 !important;
    inset-block-start: auto !important;
    inset-block-end: auto !important;
    margin: 0 !important;
    z-index: 10;
    width: calc(100vw - 20px);
    max-width: 1180px;
    min-height: 58px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    transform: translate3d(-50%, 0, 0);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow: 0 -6px 24px rgba(16, 32, 51, 0.1);
    backdrop-filter: blur(10px);
  }
  .flow-layout > .page-navigation.is-keyboard-open,
  body > .mobile-page-navigation.is-keyboard-open { display: none; }
  .page { padding: 12px 10px; }
  .hero,
  .page-body,
  .page-header,
  .profile-group,
  .offer-card,
  .bottom-actions { padding: 14px; }
  .page-feedback { padding: 0 2px; }
  .page-intro { min-height: 48vh; padding: 22px 16px; }
  .page-title { font-size: 24px; }
  .hero-description { white-space: normal; }
  .page-navigation { justify-content: stretch; gap: 8px; }
  .page-jump { flex: 1 1 100%; justify-content: space-between; gap: 8px; }
  .page-jump-select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    appearance: auto;
    background-image: none;
    color-scheme: light;
  }
  .page-navigation-actions { flex: 1 1 100%; display: grid; gap: 8px; }
  .page-navigation-actions .page-navigation-buttons { order: 1; }
  .page-navigation-actions .offer-navigation-buttons { order: 2; }
  .offer-navigation-buttons,
  .page-navigation-buttons { width: 100%; justify-content: stretch; }
  .page-navigation .ghost-btn,
  .page-navigation .primary-btn,
  .page-navigation .danger-btn { flex: 1 1 0; padding-right: 10px; padding-left: 10px; }
  .group-heading,
  .offer-top,
  .offer-field-meta,
  .toolbar { align-items: stretch; flex-direction: column; }
  .group-heading-actions,
  .toolbar[style] { justify-content: flex-start !important; }
  .offer-heading-meta { align-items: center; }
.offer-top .toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .offer-top .ghost-btn,
  .offer-top .danger-btn { min-height: 34px; padding: 7px 6px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
  .bottom-actions { align-items: stretch; flex-direction: column; }
  .bottom-actions-buttons { display: grid; grid-template-columns: 1fr; }
  .submission-library { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .submission-library .small { align-self: center; }
  .submission-library .submission-select { grid-column: 1; grid-row: auto; }
  .submission-library-actions {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    gap: 6px;
    align-self: stretch;
  }
  .submission-library-actions .ghost-btn,
  .submission-library-actions .danger-btn {
    width: auto;
    flex: 1 1 0;
    min-height: 32px;
    padding: 6px 10px;
  }
  .submission-select { width: 100%; height: 32px; padding: 4px 8px; font-size: 12px; }
}
.flow-overview { display: grid; gap: 14px; margin: 8px 0 18px; padding: 16px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--primary) 5%, var(--panel)); overflow: hidden; }
.flow-overview > summary { cursor: pointer; list-style-position: inside; }
.flow-overview-track { display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; align-items: center; gap: 10px; }
.flow-overview-step { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); font-size: 13px; text-align: center; }
.flow-overview-step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.flow-overview-arrow { color: var(--muted); }
.report-example-card { margin: 18px 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--primary) 4%, var(--panel)); color: var(--text); }
.report-example-card summary { cursor: pointer; color: var(--primary-strong); font-size: 16px; font-weight: 700; }
.report-example-card > .hint { margin: 10px 0; }
@media (max-width: 640px) { .flow-overview { padding: 14px; } .flow-overview-track { grid-template-columns: 1fr; gap: 6px; } .flow-overview-arrow { display: none; } .flow-overview-step { justify-content: flex-start; padding: 3px 0; text-align: left; } }
@media (max-width: 640px) { .welcome-modal .flow-overview-track { grid-template-columns: 1fr; justify-content: initial; } .welcome-modal .flow-overview-track .flow-overview-step { min-width: 0; white-space: normal; } }
.flow-overview-track .flow-overview-step { min-width: 0; }
.sample-report-content { display: grid; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.7; }
.sample-report-group { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.sample-report-group > summary { padding: 13px 15px; cursor: pointer; color: var(--text); font-size: 17px; font-weight: 700; }
.sample-report-group-body { padding: 0 15px 15px; }
.sample-offer-table tbody td:first-child { color: var(--text); font-weight: 700; }
.sample-report-group-body > .sample-report-section:first-child { padding-top: 0; }
.sample-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sample-profile-grid > div { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: var(--panel-soft); }
.sample-profile-span-2 { grid-column: span 1; }
.sample-profile-grid span { color: var(--text); font-size: 12px; font-weight: 700; }
.sample-profile-grid strong { color: var(--text); font-size: 13px; line-height: 1.5; font-weight: 500; }
.sample-report-analysis { display: grid; gap: 18px; }
.sample-report-section { padding-top: 14px; border-top: 1px solid var(--line); }
.sample-report-section:first-child { padding-top: 0; border-top: 0; }
.sample-report-section h3 { margin: 0 0 10px; font-size: 18px; }
.sample-report-section h4 { margin: 12px 0 6px; }
.sample-report-section ol { margin: 8px 0 0; padding-left: 1.4em; }
.sample-report-section li + li { margin-top: 7px; }
.sample-recommendation-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--panel)); }
.sample-report-conclusion { padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
@media (max-width: 640px) { .flow-overview-track { align-items: stretch; flex-direction: column; } .sample-recommendation-card { align-items: flex-start; flex-direction: column; } }
@media (min-width: 641px) { .sample-profile-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .sample-profile-grid > div { grid-column: span 6; } .sample-profile-grid > div:nth-child(-n + 4) { grid-column: span 3; } .sample-profile-grid > div:nth-child(n + 5):nth-child(-n + 7) { grid-column: span 4; } }
@media (max-width: 640px) { .sample-profile-grid { grid-template-columns: 1fr; } }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-items { position: absolute; right: 0; z-index: 3; display: grid; gap: 6px; min-width: 130px; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.account-menu-items .ghost-btn { width: 100%; text-align: left; }
.more-actions { position: relative; }
.more-actions > summary { list-style: none; cursor: pointer; }
.more-actions > summary::-webkit-details-marker { display: none; }
.more-actions-menu { position: absolute; right: 0; z-index: 3; display: grid; gap: 6px; min-width: 110px; margin-top: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.add-offer-btn { min-width: 112px; }
