:root {
  --bg: #F6F1EA;
  --surface: #FFFDFC;
  --surface-2: #E7DED2;
  --panel: rgba(255, 253, 252, 0.88);
  --line: #D8CFC4;
  --line-strong: #C6B9AA;
  --text: #3F4A42;
  --muted: #7A746D;
  --accent: #8FA58F;
  --accent-strong: #738A74;
  --accent-soft: rgba(143, 165, 143, 0.16);
  --user-bubble: #8FA58F;
  --user-bubble-text: #FFFDFC;
  --assistant-bubble: #FFFDFC;
  --system-bubble: #E7DED2;
  --shadow-lg: 0 24px 60px rgba(63, 74, 66, 0.12);
  --shadow-md: 0 12px 30px rgba(63, 74, 66, 0.10);
  --shadow-sm: 0 6px 16px rgba(63, 74, 66, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 26rem),
    radial-gradient(circle at bottom right, rgba(143,165,143,.18), transparent 28rem),
    linear-gradient(180deg, #F8F4EE 0%, #F6F1EA 100%);
}
button, input, textarea { font: inherit; }
button { color: inherit; }

.site-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto;
  min-height: calc(100vh - 36px);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-lg);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  background: linear-gradient(180deg, rgba(255,253,252,.96) 0%, rgba(246,241,234,.94) 100%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #8FA58F 0%, #738A74 100%);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px rgba(63,74,66,.20);
}


.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-rule {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.page-stage {
  padding: 28px;
  min-height: calc(100vh - 114px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
}

.view { animation: fadeIn .28s ease both; }
.is-hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Intro */
.intro-view {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}

.intro-copy,
.intro-visual,
.question-view,
.summary-view {
  background: rgba(255,253,252,.78);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.intro-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.intro-copy::before {
  content: "HELLO !";
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.eyebrow,
.question-kicker,
.chat-overline,
.final-decision-kicker,
.signature-label,
.final-decision-copy > span {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.intro-copy h1,
.question-header h2,
.summary-heading h2,
.final-decision h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.intro-copy h1 { font-size: clamp(34px, 4vw, 56px); }
.intro-lead {
  margin: 22px 0 30px;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-line;
  font-size: 15px;
  max-width: 44rem;
}

.primary-action {
  border: 0;
  min-height: 54px;
  min-width: 210px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8FA58F 0%, #738A74 100%);
  color: white;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(63,74,66,.16);
  transition: transform .18s ease, filter .18s ease;
}
.primary-action:hover { transform: translateY(-1px); filter: brightness(1.02); }

.intro-visual {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.intro-profile-link {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFFDFC;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}

.intro-profile-link[href]:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.intro-image-link {
  display: flex;
  justify-content: center;
  width: 100%;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.intro-image-link[href] {
  cursor: pointer;
}

.intro-visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(55vh, 560px);
  object-fit: contain;
  border-radius: 22px;
  display: block;
}

.intro-visual figcaption {
  color: var(--muted);
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 8px;
  padding: 16px 18px;
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
}

/* Question */
.question-view {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.question-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.question-header > div:first-child {
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 24px 24px 24px 10px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.question-header > div:first-child::before {
  content: attr(data-chat-name);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.question-header > div:first-child::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #FFFDFC;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(35deg);
  border-bottom-right-radius: 4px;
}

.question-header h2 { font-size: clamp(28px, 3.2vw, 42px); }
.question-description {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.question-index {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.option {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,253,252,.96);
  border-radius: 22px;
  padding: 18px 18px 18px 16px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 14px;
  align-items: start;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.option:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.option.is-selected {
  border-color: rgba(143,165,143,.55);
  background: linear-gradient(180deg, rgba(143,165,143,.14) 0%, rgba(231,222,210,.28) 100%);
  box-shadow: 0 10px 24px rgba(63,74,66,.10);
}
.option-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 12px;
}
.option-copy { display: grid; gap: 6px; }
.option-copy strong {
  font-size: 17px;
  line-height: 1.45;
}
.option-copy span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.option-check {
  min-width: 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: white;
  background: transparent;
  margin-top: 2px;
  font-weight: 800;
}
.option.is-selected .option-check {
  background: var(--accent);
  border-color: var(--accent);
}
.option[data-multi="true"] .option-check { border-radius: 10px; }

.question-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.circle-action {
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8FA58F 0%, #738A74 100%);
  color: white;
  border: 0;
  box-shadow: 0 10px 20px rgba(63,74,66,.16);
}
.circle-action:disabled,
.primary-action:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Summary */
.summary-view {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px;
}
.summary-heading {
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.summary-heading h2 { font-size: clamp(28px, 3.2vw, 42px); }
.summary-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.summary-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.summary-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(220px, auto);
  gap: 16px;
  align-items: start;
  background: rgba(255,253,252,.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.summary-row-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 800;
}
.summary-row-question { font-weight: 700; line-height: 1.65; }
.summary-row-answer {
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1.65;
  text-align: right;
}
.summary-note {
  margin-top: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.summary-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.summary-note p {
  margin: 10px 0 0;
  line-height: 1.8;
  color: var(--text);
}
.summary-chat-action { margin-top: 18px; }




@keyframes chatBadgePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  55% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Floating launcher */
.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  border: 0;
  border-radius: 999px;
  min-height: 58px;
  padding: 0 18px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #FFFDFC 0%, #F6F1EA 100%);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 35;
}

.chat-launcher-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: visible;
  flex: 0 0 auto;
  position: relative;
}

.chat-launcher-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}


.chat-badge.is-popping {
  animation: chatBadgePop .34s ease-out 1;
}
.chat-launcher-label { font-weight: 800; letter-spacing: .05em; }
.chat-badge {
  position: absolute;
  right: -8px;
  bottom: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #E24A4A;
  color: #FFFDFC;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #FFFDFC;
  box-shadow: var(--shadow-sm);
}
.chat-badge.is-hidden { display: none; }

.chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(63, 74, 66, .22);
  backdrop-filter: blur(4px);
  z-index: 38;
}
.chat-backdrop.is-hidden { display: none; }

/* Chat panel */
.chat-panel {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  width: 430px;
  height: 720px;
  min-width: 380px;
  min-height: 560px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  background: linear-gradient(180deg, rgba(255,253,252,.97) 0%, rgba(231,222,210,.96) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow-lg);
  border-radius: 28px;
  transform: translateX(calc(100% + 32px));
  transition: transform .26s ease;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  overflow: hidden;
}
.chat-panel.is-open { transform: translateX(0); }
.chat-header {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,252,.88);
}
.chat-overline { margin-bottom: 6px; }
.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.chat-title-link {
  color: inherit;
  text-decoration: none;
}
.chat-title-link[href]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chat-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFDFC;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.56), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.message {
  max-width: 86%;
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  align-self: flex-start;
}
.message.is-user {
  margin-left: auto;
  align-self: flex-end;
}
.message-meta {
  font-size: 11px;
  color: var(--muted);
  padding: 0 6px;
  font-weight: 700;
}
.message.is-user .message-meta { text-align: right; }
.message-bubble {
  padding: 12px 14px;
  border-radius: 22px 22px 22px 8px;
  background: var(--assistant-bubble);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
  white-space: pre-line;
  word-break: break-word;
}
.message.is-user .message-bubble {
  background: var(--user-bubble);
  color: var(--user-bubble-text);
  border: 0;
  border-radius: 22px 22px 8px 22px;
}
.message.is-system {
  max-width: 92%;
  align-self: left;
}
.message.is-system .message-bubble {
  background: var(--system-bubble);
  color: var(--muted);
  border-radius: 16px;
  text-align: center;
}
.message-read-receipt {
  justify-self: end;
  align-self: end;
  margin-top: -1px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
}

/* Composer */
.chat-composer {
  border-top: 1px solid var(--line);
  padding: 12px 14px 10px;
  background: rgba(246,241,234,.94);
}
.chat-composer.is-hidden { display: none !important; }
.chat-composer-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: end;
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.chat-composer-shell:focus-within {
  border-color: rgba(143,165,143,.45);
  box-shadow: 0 0 0 3px rgba(143,165,143,.08);
}
.chat-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  border: 0;
  background: transparent;
  resize: none;
  outline: 0;
  color: var(--text);
  line-height: 1.6;
}
.chat-composer textarea::placeholder { color: #A39B92; }
.chat-composer button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #8FA58F 0%, #738A74 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(63,74,66,.16);
}
.chat-composer button:hover { filter: brightness(1.03); }
.chat-composer button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.chat-composer p {
  margin: 10px 2px 0;
  font-size: 11px;
  color: var(--muted);
}

/* Final decision */
.final-decision {
  border-top: 1px solid var(--line);
  padding: 16px 14px 16px;
  background: linear-gradient(180deg, rgba(255,253,252,.96) 0%, rgba(246,241,234,.96) 100%);
}
.final-decision.is-hidden { display: none !important; }
.final-decision-heading { margin-bottom: 14px; }
.final-decision h4 { font-size: 24px; }
.final-decision-heading > p,
.final-decision-copy p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}
.signature-field {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.signature-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.final-decision .signature-line input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}
.signature-line > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.final-decision-rule {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.final-decision-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.decline-submit,
.chat-submit {
  border: 0;
  border-radius: 20px;
  padding: 14px 14px;
  display: grid;
  gap: 4px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.decline-submit {
  background: #C6B9AA;
  color: var(--text);
}
.chat-submit {
  background: linear-gradient(180deg, #8FA58F 0%, #738A74 100%);
  color: white;
}
.decline-submit span,
.chat-submit span { font-weight: 800; }
.decline-submit small,
.chat-submit small { opacity: .9; }
.chat-submit:disabled,
.decline-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.submit-status {
  margin: 12px 2px 0;
  min-height: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.submit-status:not(:empty) { padding-right: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .intro-view { grid-template-columns: 1fr; }
  .intro-image-link {
  display: block;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.intro-image-link[href] {
  cursor: pointer;
}

.intro-visual img { max-height: min(50vh, 440px); }
  .summary-row {
    grid-template-columns: 42px 1fr;
  }
  .summary-row-answer {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  .topbar {
    padding: 14px 16px;
    min-height: 70px;
  }
  .topbar-meta {
    gap: 8px;
    font-size: 11px;
  }
  .topbar-rule { width: 20px; }
  .page-stage { padding: 16px; }
  .intro-copy,
  .intro-visual,
  .question-view,
  .summary-view { border-radius: 24px; }
  .question-view,
  .summary-view { padding: 16px; }
  .intro-copy { padding: 20px; }
  .intro-copy::before { position: static; width: fit-content; margin-bottom: 12px; }
  .intro-copy h1 { font-size: 30px; }
  .intro-lead { font-size: 14px; }
  .question-header { grid-template-columns: 1fr; }
  .question-header > div:first-child { padding: 18px; }
  .question-index { width: 48px; height: 48px; }
  .option { padding: 14px; grid-template-columns: auto minmax(0,1fr) auto; }
  .option-copy strong { font-size: 16px; }
  .chat-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
  }
  .chat-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 86vh;
    min-height: 520px;
    max-height: 760px;
    border-radius: 28px 28px 0 0;
    transform: translateY(calc(100% + 20px));
  }
  .chat-panel.is-open { transform: translateY(0); }
  .final-decision-actions { grid-template-columns: 1fr; }
  .signature-line { grid-template-columns: 1fr; }
}

/* Compact final send bar: exactly two rows at the bottom */
.final-decision {
  position: relative;
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: rgba(255,253,252,.94);
}

.final-name-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFDFC;
}

.final-name-row > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.final-name-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.final-name-row small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.final-action-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.final-action-row .decline-submit,
.final-action-row .chat-submit {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
}

.final-action-row .decline-submit {
  background: var(--surface-2);
}

.submit-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  margin: 0;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,253,252,.96);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
}

.submit-status:empty {
  display: none;
}

@media (max-width: 720px) {
  .final-decision-actions { grid-template-columns: 1fr 1fr; }
  .signature-line { grid-template-columns: minmax(0,1fr) auto; }
  .final-name-row {
    grid-template-columns: auto minmax(0,1fr) auto;
  }
}

/* v1.6 — compact required-name submit row */
.final-decision {
  padding: 10px 12px 12px;
}

.final-name-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFDFC;
}

.final-name-row > span {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.required-star {
  color: #d64545;
  font-size: 14px;
}

.final-name-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.final-name-row .chat-submit {
  min-width: 82px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-align: center;
}

.submit-status {
  left: 12px;
  right: 12px;
}
