* {
  box-sizing: border-box;
}

/* Expert Assist Cards V0.1: invitation-only layer below the original mentor answer. */
.eac-expert-badge {
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #ecfdf5;
  color: #115e59;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.eac-test-boundary-banner {
  margin: 8px 18px 0;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.eac-shell {
  margin-top: 12px;
  border-top: 1px solid #dbe7e5;
  padding-top: 10px;
}

.eac-entry-button {
  appearance: none;
  border: 1px solid #99c9c2;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.eac-entry-button:hover,
.eac-entry-button:focus-visible {
  border-color: #0f766e;
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.eac-entry-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.eac-panel {
  margin-top: 9px;
  border: 1px solid #b9d9d4;
  border-radius: 14px;
  background: #fbfffe;
  padding: 13px;
  box-shadow: 0 8px 24px rgba(19, 78, 74, 0.07);
}

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

.eac-choice-label,
.eac-status,
.eac-card-question,
.eac-action-editor-notice {
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.eac-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.eac-choice-button,
.eac-use-question-button,
.eac-accept-action-button,
.eac-dismiss-button,
.eac-save-action-button,
.eac-cancel-action-button {
  border: 1px solid #b9d9d4;
  border-radius: 10px;
  background: #ffffff;
  color: #134e4a;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.eac-choice-button {
  min-height: 54px;
  text-align: left;
}

.eac-choice-button:hover,
.eac-card-actions button:hover,
.eac-action-buttons button:hover {
  border-color: #0f766e;
  background: #f0fdfa;
}

.eac-card-title,
.eac-action-editor-title {
  margin: 0 0 9px;
  color: #134e4a;
  font-size: 16px;
  line-height: 1.45;
}

.eac-card-actions,
.eac-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eac-use-question-button,
.eac-save-action-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.eac-field-label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.eac-field-input,
.eac-field-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  color: #1f2937;
  padding: 9px 10px;
  font: inherit;
  font-weight: 400;
  line-height: 1.55;
}

.eac-field-textarea {
  min-height: 78px;
  resize: vertical;
}

.eac-hard-risk-warning {
  margin: 0;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  padding: 11px 12px;
  font-weight: 700;
  line-height: 1.6;
}

.eac-status-success {
  color: #047857;
}

.eac-status-error {
  color: #b91c1c;
}

.eac-action-source {
  display: block;
  color: #0f766e;
  font-size: 11px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .eac-expert-badge {
    max-width: 128px;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1.25;
  }

  .eac-test-boundary-banner {
    margin: 6px 10px 0;
    padding: 7px 9px;
    text-align: left;
  }

  .eac-panel {
    padding: 11px;
  }

  .eac-choice-list {
    grid-template-columns: 1fr;
  }

  .eac-card-actions,
  .eac-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .eac-card-actions button,
  .eac-action-buttons button {
    width: 100%;
  }
}

:root {
  --bg: #f7f3ec;
  --panel: #fffdf9;
  --line: #e5d8c8;
  --text: #24303a;
  --muted: #687685;
  --primary: #cf6b2f;
  --primary-soft: #fff0e4;
  --accent: #e58a3b;
  --soft: #f4ece1;
  --bluegray: #edf2f5;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

body.experience-open {
  overflow: hidden;
}

.experience-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(253, 251, 247, 0.98), rgba(255, 242, 229, 0.96));
}

.experience-card {
  width: min(100%, 430px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 24px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 18px 48px rgba(80, 60, 40, 0.14);
}

.experience-avatar {
  width: 72px;
  height: 72px;
}

.experience-card h1 {
  font-size: 26px;
}

.experience-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.experience-form {
  display: grid;
  gap: 14px;
}

.experience-form fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.experience-form legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 700;
}

.experience-form label {
  color: var(--text);
  font-size: 14px;
}

.experience-form input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--primary);
}

.experience-field {
  display: grid;
  gap: 7px;
}

.experience-field small {
  color: var(--muted);
  font-weight: 400;
}

.experience-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  outline-color: var(--primary);
}

.identity-update-form {
  display: grid;
  gap: 10px;
}

.identity-update-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.identity-update-form input,
.identity-update-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
}

.utility-saved {
  margin-top: 8px;
  color: var(--primary);
  font-size: 13px;
}

.experience-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}

.compliance-inline {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.compliance-inline a {
  color: inherit;
  text-decoration: none;
}

.compliance-inline a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: center;
}

.side-nav {
  border-right: 1px solid var(--line);
  background: #fff9f0;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

.brand-rail,
.title-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #f0c5a0;
  background: #fff4e8;
  color: var(--primary);
  font-weight: 700;
}

.avatar-mark.compact {
  width: 38px;
  height: 38px;
}

.avatar-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-weight: 700;
}

.brand-note,
.topbar p,
.asset-item small,
.empty-state {
  color: var(--muted);
}

.brand-note {
  font-size: 12px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-section-label {
  margin: 12px 4px 2px;
  font-size: 12px;
  color: var(--muted);
}

.nav-item,
.secondary-item,
.ghost-button,
.text-button,
.mini-button,
.starter-chip,
.action-entry,
.feedback-bar button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.nav-item {
  text-align: left;
  padding: 9px 10px;
}

.nav-item.active,
.nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-item.disabled {
  color: #b6a99c;
  background: transparent;
}

.workspace {
  min-width: 0;
  width: min(100%, 430px);
  height: min(100vh - 28px, 860px);
  overflow: hidden;
  margin: 14px auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(36, 48, 58, 0.12);
}

.chat-view,
.my-view {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.my-view {
  grid-template-rows: auto 1fr auto;
}

.topbar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.drawer-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(36, 48, 58, 0.34);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.2;
}

.topbar p {
  margin-top: 4px;
  font-size: 13px;
}

.ghost-button {
  padding: 8px 12px;
  border-color: var(--line);
  background: #fff;
}

.starter-band {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff9f0;
}

.starter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.text-button {
  color: var(--primary);
  padding: 4px 6px;
}

.starter-list,
.action-entry-points,
.feedback-bar,
.secondary-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.starter-chip {
  background: #fff;
  border-color: var(--line);
  padding: 8px 12px;
  color: var(--primary);
}

.starter-chip:hover,
.action-entry:hover,
.ghost-button:hover,
.mini-button:hover {
  border-color: var(--primary);
}

.messages {
  padding: 18px 16px;
  overflow: auto;
}

.message {
  max-width: 100%;
  width: fit-content;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user {
  margin-left: auto;
  background: var(--bluegray);
}

.message.assistant {
  background: #fff;
  border: 1px solid var(--line);
}

.answer-nail {
  padding: 10px 11px;
  border-radius: 8px;
  background: #fff6ed;
  border-left: 3px solid var(--primary);
  font-weight: 650;
}

.answer-paragraph + .answer-paragraph,
.answer-nail + .answer-paragraph,
.answer-heading + .answer-paragraph,
.answer-list + .answer-paragraph,
.answer-paragraph + .answer-list,
.answer-nail + .answer-list {
  margin-top: 10px;
}

.answer-heading {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.answer-list {
  margin: 8px 0 0;
  padding-left: 22px;
  line-height: 1.65;
}

.answer-list li + li {
  margin-top: 5px;
}

.message.assistant strong {
  font-weight: 700;
}

.message.loading {
  color: var(--muted);
  font-style: italic;
}

.context-fold {
  max-width: 100%;
  margin: -4px 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9f0;
  color: var(--muted);
  font-size: 13px;
}

.context-trigger {
  max-width: 100%;
  margin: -8px 0 12px;
}

.context-fold summary,
.context-panel-summary {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.context-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 2px 0;
  color: var(--primary);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.context-fold summary::-webkit-details-marker {
  display: none;
}

.context-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 2px 0;
  color: var(--primary);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
}

.context-arrow {
  transition: transform 0.18s ease;
}

.context-fold[open] .context-arrow,
.context-fold.is-open .context-arrow {
  transform: rotate(180deg);
}

.context-panel-body {
  display: none;
}

.context-fold.is-open .context-panel-body {
  display: block;
}

.context-fold p {
  margin-top: 8px;
  line-height: 1.55;
}

.action-entry-points {
  max-width: 100%;
  margin: -4px 0 12px;
}

.action-entry {
  background: var(--primary);
  color: #fff;
  padding: 7px 10px;
}

.action-entry.done {
  background: #f0e3d5;
  color: var(--muted);
}

.feedback-bar {
  max-width: 100%;
  margin: -6px 0 14px;
}

.feedback-bar button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

textarea {
  width: 100%;
  min-height: 72px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid #d9cbbd;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  outline-color: var(--primary);
}

#sendButton {
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
}

.asset-grid {
  min-height: 0;
  overflow: auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.asset-group {
  display: grid;
  gap: 12px;
}

.asset-group-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.asset-panel {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.asset-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-panel.focus-section {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.asset-head h3 {
  font-size: 17px;
}

.asset-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}

.asset-body {
  display: grid;
  gap: 10px;
}

.asset-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  line-height: 1.55;
}

.asset-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.asset-item p,
.asset-item ol {
  margin: 6px 0 0;
}

.asset-item ol {
  padding-left: 20px;
}

.empty-state {
  padding: 18px 0;
  line-height: 1.5;
}

.action-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.action-row input {
  margin-top: 4px;
}

.mini-button {
  padding: 6px 9px;
  border-color: var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
}

.sub-asset {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sub-asset h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.sub-asset h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.weekly-card strong {
  display: block;
  margin-top: 10px;
}

.weekly-card strong:first-child {
  margin-top: 0;
}

.secondary-assets {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.secondary-assets.grouped {
  display: grid;
  gap: 12px;
}

.secondary-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.secondary-group .asset-group-title {
  flex: 0 0 100%;
}

.secondary-item {
  border-color: var(--line);
  background: #fff;
  padding: 8px 10px;
}

.utility-panel,
.history-panel {
  margin: 14px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.utility-panel p,
.history-panel small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.history-panel {
  display: grid;
  gap: 10px;
}

.history-item {
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.history-item small {
  display: block;
}

.footprint-draft-panel {
  margin: 8px 0 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff9f0;
  line-height: 1.55;
}

.footprint-draft-panel h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.footprint-draft-panel p + p {
  margin-top: 6px;
}

.footprint-draft-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-button.subtle {
  color: var(--muted);
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(250px, 82vw);
    transform: translateX(-104%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 32px rgba(36, 48, 58, 0.16);
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .drawer-toggle {
    display: inline-flex;
  }

  body.drawer-open {
    overflow: hidden;
  }

  .workspace {
    width: 100%;
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar,
  .starter-band,
  .messages,
  .composer,
  .asset-grid,
  .secondary-assets,
  .utility-panel,
  .history-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-content: flex-start;
  }

  .topbar .ghost-button {
    margin-left: auto;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  #sendButton {
    width: 100%;
  }

  .message,
  .context-fold,
  .action-entry-points,
  .feedback-bar {
    max-width: 100%;
  }
}

/* LC1.1.3 mobile-first visual rebuild. The rules below intentionally override
   the earlier LC1.1 shell without changing the mentor runtime contract. */
:root {
  --bg: #fdfbf7;
  --bg-soft: #f4efe6;
  --panel: #ffffff;
  --panel-warm: #fffaf5;
  --primary: #f28e2b;
  --primary-deep: #b85a2a;
  --primary-soft: #fff2e5;
  --text: #332d27;
  --muted: #8c8275;
  --line: #eadfd2;
  --user-bubble: #f3ede6;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(210, 190, 160, 0.15);
  --shadow-card: 0 4px 16px rgba(80, 60, 40, 0.08);
  --shadow-floating: 0 12px 32px rgba(80, 60, 40, 0.12);
  --composer-height: 112px;
}

html {
  background: linear-gradient(150deg, #fffdf9 0%, #fbf2e5 58%, #f6ead8 100%);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 10%, rgba(242, 142, 43, 0.13), transparent 34%),
    linear-gradient(155deg, #fffdf9 0%, #fdf7ef 48%, #f3eadf 100%);
  line-height: 1.65;
}

.app-shell {
  min-height: 100vh;
  display: block;
  padding: 18px 0;
}

.workspace {
  position: relative;
  width: min(100%, 430px);
  height: min(100vh - 36px, 900px);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(234, 223, 210, 0.72);
  border-radius: 30px;
  background: linear-gradient(180deg, #fffdf9 0%, #f9f1e7 100%);
  box-shadow: 0 24px 64px rgba(80, 60, 40, 0.14);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: min(360px, 80vw);
  min-height: 100vh;
  padding: 42px 22px 22px;
  border: 0;
  border-radius: 0 28px 28px 0;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 24px 0 60px rgba(49, 38, 28, 0.18);
  transform: translateX(-104%);
  transition: transform 220ms ease;
  overflow: auto;
}

.side-nav.open {
  transform: translateX(0);
}

.drawer-backdrop {
  background: rgba(51, 45, 39, 0.42);
  backdrop-filter: blur(3px);
}

.drawer-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(234, 223, 210, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.drawer-toggle span {
  width: 17px;
  height: 2px;
  background: var(--text);
}

.brand-rail {
  gap: 18px;
  margin-bottom: 32px;
}

.avatar-mark {
  border: 0;
  background: radial-gradient(circle at 40% 28%, #fff 0%, #fff1df 100%);
  box-shadow: 0 6px 18px rgba(222, 149, 79, 0.22);
}

.avatar-mark.compact {
  width: 42px;
  height: 42px;
}

.avatar-mark.tiny {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

.brand-note {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 2px;
}

.nav-section-label {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 223, 210, 0.78);
  color: var(--muted);
  font-size: 15px;
}

.nav-section-label:first-child {
  padding-top: 0;
  border-top: 0;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  min-height: 50px;
  padding: 8px 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 19px;
}

.nav-item::before {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
}

.nav-item::after {
  content: "›";
  color: #aa9e91;
  font-size: 30px;
  line-height: 1;
}

.nav-item[data-icon="chat"]::before { content: "+"; }
.nav-item[data-icon="clock"]::before { content: "◷"; }
.nav-item[data-icon="history"]::before { content: "≡"; }
.nav-item[data-icon="search"]::before { content: "⌕"; color: #a69a8e; }
.nav-item[data-icon="calendar"]::before { content: "▣"; }
.nav-item[data-icon="chart"]::before { content: "▥"; }
.nav-item[data-icon="footprint"]::before { content: "⌁"; }
.nav-item[data-icon="bag"]::before { content: "⌂"; }
.nav-item[data-icon="user"]::before { content: "○"; color: #9c9186; }
.nav-item[data-icon="shield"]::before { content: "◇"; color: #9c9186; }
.nav-item[data-icon="message"]::before { content: "□"; color: #9c9186; }
.nav-item[data-icon="gear"]::before { content: "⚙"; color: #9c9186; }

.nav-item.active,
.nav-item:hover {
  background: transparent;
  color: var(--primary-deep);
}

.nav-item.disabled {
  color: #b9ada1;
}

.drawer-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
}

.drawer-account-card strong {
  display: block;
  font-size: 18px;
}

.drawer-account-card span {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
}

.drawer-account-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chat-view,
.my-view {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 84% 9%, rgba(242, 142, 43, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 239, 229, 0.96));
}

.my-view {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.topbar {
  min-height: 64px;
  padding: 13px 18px;
  border: 0;
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(16px);
}

.title-block {
  min-width: 0;
  gap: 10px;
}

h1 {
  color: var(--text);
  font-size: 21px;
  letter-spacing: 0;
}

.topbar p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ghost-button {
  padding: 8px 12px;
  border-color: rgba(234, 223, 210, 0.78);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-deep);
  box-shadow: var(--shadow-card);
}

.chat-view:not(.home-empty) .starter-band {
  display: none;
}

.chat-view.home-empty .messages {
  display: none;
}

.starter-band {
  padding: 18px 22px 12px;
  border: 0;
  background: transparent;
}

.home-hero {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 28px 12px 22px;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 18px 12px 12px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 28%, rgba(242, 142, 43, 0.13), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 231, 0.86));
  box-shadow: var(--shadow-soft);
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.home-hero h2 {
  color: var(--text);
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.18;
  font-weight: 760;
}

.hero-line {
  width: 44px;
  height: 4px;
  margin: 12px auto 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #ffc06f);
}

.home-hero p {
  color: var(--muted);
  font-size: 15px;
}

.starter-title {
  margin: 4px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.text-button {
  color: var(--primary);
  border-radius: var(--radius-pill);
  background: transparent;
}

.starter-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.starter-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.starter-chip::after {
  content: "›";
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.starter-chip strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.starter-chip span {
  display: block;
  grid-column: 1;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.messages {
  min-height: 0;
  padding: 18px 18px 10px;
  overflow: auto;
  scroll-behavior: smooth;
}

.message {
  max-width: 90%;
  margin-bottom: 16px;
  padding: 0;
  border-radius: 0;
  line-height: 1.75;
  white-space: normal;
  word-break: break-word;
}

.message.user {
  width: fit-content;
  max-width: 78%;
  margin-left: auto;
  padding: 12px 15px;
  border-radius: 20px 20px 6px 20px;
  background: var(--user-bubble);
  color: var(--text);
  box-shadow: var(--shadow-card);
  white-space: pre-wrap;
}

.user-message-content {
  white-space: pre-wrap;
}

.message-delivery {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
  color: #7d6f63;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.message-delivery-failed_retryable {
  color: #9a4f18;
}

.message-retry-button {
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(178, 92, 25, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #9a4f18;
  font: inherit;
  font-weight: 700;
}

.message.assistant {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border: 0;
  background: transparent;
}

.assistant-body {
  padding: 15px;
  border: 1px solid rgba(234, 223, 210, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.message-avatar {
  margin-top: 4px;
}

.answer-nail {
  margin-bottom: 12px;
  padding: 12px 12px 12px 14px;
  border: 0;
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: linear-gradient(90deg, #fff2e5, rgba(255, 250, 245, 0.95));
  color: var(--primary-deep);
  font-weight: 760;
  line-height: 1.62;
}

.answer-paragraph {
  color: var(--text);
  font-size: 15px;
}

.answer-paragraph + .answer-paragraph,
.answer-nail + .answer-paragraph,
.answer-heading + .answer-paragraph,
.answer-list + .answer-paragraph,
.answer-paragraph + .answer-list,
.answer-nail + .answer-list {
  margin-top: 12px;
}

.answer-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 760;
}

.answer-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.answer-list {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--text);
}

.message.loading {
  width: fit-content;
  max-width: 86%;
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(234, 223, 210, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  box-shadow: var(--shadow-card);
}

.context-trigger,
.context-fold,
.action-entry-points,
.feedback-bar,
.footprint-draft-panel {
  margin-left: 44px;
  max-width: calc(100% - 44px);
}

.context-trigger {
  margin-top: -8px;
  margin-bottom: 14px;
}

.context-trigger .text-button {
  padding: 7px 11px;
  border: 1px solid rgba(234, 223, 210, 0.8);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: var(--shadow-card);
}

.context-trigger .text-button::before {
  content: "⌁ ";
  color: var(--primary);
}

.context-fold {
  margin-top: -6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-color: rgba(234, 223, 210, 0.82);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.86);
  box-shadow: var(--shadow-card);
  color: var(--muted);
}

.context-fold summary,
.context-panel-summary {
  color: var(--primary-deep);
  font-weight: 700;
}

.save-judgement-button.saved {
  border-color: rgba(86, 128, 92, 0.26);
  background: rgba(232, 244, 234, 0.86);
  color: #52775b;
}

.action-entry-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 14px;
}

.action-entry {
  justify-self: start;
  padding: 9px 12px;
  border: 1px solid rgba(242, 142, 43, 0.32);
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 650;
}

.action-entry[data-entry-label="当日可做"]::before,
.action-entry[data-entry-label="当周可做"]::before,
.action-entry[data-entry-label="近月可做"]::before { content: none; }

.action-entry.done {
  border-color: transparent;
  background: #eee2d5;
  color: var(--muted);
  box-shadow: none;
}

.feedback-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 18px;
}

.feedback-bar button {
  padding: 6px 9px;
  border: 1px solid rgba(234, 223, 210, 0.88);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.feedback-bar .save-judgement-button {
  color: var(--primary-deep);
  background: #fff8f0;
}

.feedback-bar .text-feedback-button {
  color: var(--primary-deep);
  background: rgba(255, 248, 240, 0.78);
}

.text-feedback-form {
  flex: 1 0 100%;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(234, 223, 210, 0.84);
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.88);
}

.text-feedback-form textarea {
  width: 100%;
  min-height: 58px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid rgba(234, 223, 210, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.text-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-feedback-done {
  flex: 1 0 100%;
  margin: 0;
  color: var(--primary-deep);
  font-size: 12px;
  line-height: 1.5;
}

.feedback-recalibration-card {
  flex: 1 0 100%;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(242, 142, 43, 0.2);
  border-radius: 16px;
  background: rgba(255, 248, 240, 0.72);
}

.feedback-recalibration-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.feedback-recalibration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feedback-recalibration-custom {
  display: grid;
  gap: 8px;
}

.feedback-recalibration-custom textarea {
  width: 100%;
  min-height: 54px;
  max-height: 110px;
  resize: vertical;
  padding: 9px 11px;
  border: 1px solid rgba(234, 223, 210, 0.92);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.composer {
  display: block;
  padding: 10px 16px 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(249, 241, 231, 0), rgba(249, 241, 231, 0.96) 22%);
}

.composer-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 42px;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(234, 223, 210, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(18px);
}

.composer-icon-button,
#sendButton {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
}

.composer-icon-button {
  background: var(--panel-warm);
  color: var(--primary-deep);
  font-size: 20px;
}

.composer-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.mic-button {
  color: #3f3932;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mic-button svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mic-button svg rect {
  fill: currentColor;
  stroke: currentColor;
}

.mic-button.listening {
  background: var(--primary-soft);
  color: var(--primary-deep);
  box-shadow: 0 0 0 3px rgba(242, 142, 43, 0.14);
  transform: scale(1.04);
}

textarea {
  min-height: 34px;
  max-height: 120px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 6px 2px;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 15px;
  line-height: 1.45;
}

textarea::placeholder {
  color: #b4a89c;
}

#sendButton {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #b96b28);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(242, 142, 43, 0.25);
}

.composer-hint {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.voice-status {
  display: none;
  margin: 8px 8px 0;
  color: var(--primary-deep);
  font-size: 12px;
  line-height: 1.5;
}

.voice-status.visible {
  display: block;
}

.asset-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 16px 10px;
  padding: 14px 12px;
  border: 1px solid rgba(234, 223, 210, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.asset-dashboard div {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.asset-dashboard strong {
  color: var(--primary-deep);
  font-size: 20px;
  line-height: 1.1;
}

.asset-dashboard span {
  color: var(--muted);
  font-size: 12px;
}

.asset-grid {
  padding: 8px 16px 16px;
  gap: 14px;
}

.asset-group {
  gap: 10px;
}

.asset-group-title {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.asset-panel {
  min-height: auto;
  padding: 15px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.asset-head {
  margin-bottom: 10px;
}

.asset-head h3 {
  color: var(--text);
  font-size: 17px;
}

.asset-count {
  min-width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.asset-item {
  border-top: 1px solid rgba(234, 223, 210, 0.58);
  padding-top: 10px;
  color: var(--text);
}

.asset-item p {
  color: var(--muted);
}

.empty-state {
  padding: 16px 0;
  color: var(--muted);
}

.action-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
}

.action-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.action-row input:checked + div {
  color: var(--muted);
}

.action-row input:checked + div strong,
.action-row input:checked + div p {
  color: #a79a8d;
  text-decoration: line-through;
}

.mini-button,
.secondary-item {
  border-color: rgba(234, 223, 210, 0.82);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-deep);
}

.week-timeline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.week-timeline-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.week-timeline-item span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.week-timeline-item p {
  margin: 4px 0 0;
}

.weekly-card strong {
  color: var(--primary-deep);
}

.secondary-assets.grouped {
  padding: 12px 16px 16px;
  border: 0;
  background: transparent;
}

.secondary-group {
  padding: 13px;
  border: 1px solid rgba(234, 223, 210, 0.75);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.utility-panel,
.history-panel {
  border-color: rgba(234, 223, 210, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.my-view.utility-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

.my-view.utility-mode .asset-dashboard,
.my-view.utility-mode .asset-grid,
.my-view.utility-mode .secondary-assets,
.my-view.utility-mode .my-compliance {
  display: none;
}

.my-view.utility-mode .utility-panel {
  min-height: 0;
  margin: 0;
  padding: 14px 16px calc(32px + env(safe-area-inset-bottom));
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.utility-return-bar {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: -4px 0 8px;
  padding: 6px 0;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 252, 247, 0.78));
  backdrop-filter: blur(12px);
}

.utility-back-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(234, 223, 210, 0.88);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-deep);
  font-size: 13px;
  box-shadow: var(--shadow-card);
}

.developer-tools-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 32px;
}

.developer-tools-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 250, 245, 0.96), rgba(255, 242, 229, 0.88));
  box-shadow: var(--shadow-card);
}

.developer-tools-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
}

.developer-tools-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.developer-tool-list {
  display: grid;
  gap: 10px;
}

.developer-tool-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(234, 223, 210, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(80, 60, 40, 0.05);
  text-align: left;
}

.developer-tool-card::after {
  content: "›";
  justify-self: end;
  margin-top: -28px;
  color: var(--primary);
  font-size: 24px;
}

.developer-tool-card strong {
  color: var(--text);
  font-size: 16px;
}

.developer-tool-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.history-item {
  border-color: rgba(234, 223, 210, 0.82);
  border-radius: 16px;
}

.footprint-draft-panel {
  border-color: rgba(242, 142, 43, 0.22);
  border-radius: 20px;
  background: #fff8f0;
  box-shadow: var(--shadow-card);
}

@media (max-width: 820px) {
  .app-shell {
    padding: 0;
  }

  .workspace {
    width: 100%;
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .side-nav {
    width: min(360px, 80vw);
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .starter-band,
  .messages,
  .asset-grid,
  .secondary-assets.grouped {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message.user {
    max-width: 82%;
  }

  .context-trigger,
  .context-fold,
  .action-entry-points,
  .feedback-bar,
  .footprint-draft-panel {
    margin-left: 0;
    max-width: 100%;
  }
}

/* LC1.1.3-R2 high-fidelity polish and interaction stabilization. */
:root {
  --primary: #e07a2a;
  --primary-deep: #b85a2a;
  --primary-soft: #fff2e5;
}

.workspace {
  isolation: isolate;
}

.chat-view {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.chat-view:not(.home-empty) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-view.home-empty {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.topbar {
  position: relative;
  z-index: 6;
  box-shadow: 0 4px 18px rgba(80, 60, 40, 0.04);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.ghost-button-home {
  display: none;
}

.chat-view:not(.home-empty) .ghost-button-home {
  display: inline-flex;
}

.chat-view.home-empty .drawer-toggle {
  display: inline-flex;
}

.chat-view.home-empty .topbar {
  justify-content: space-between;
}

.chat-view.home-empty .title-block {
  margin-right: auto;
}

.home-hero {
  min-height: 282px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.home-hero::before {
  inset: 8px 4px 10px;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 78% 22%, rgba(224, 122, 42, 0.14), transparent 28%),
    radial-gradient(ellipse at 14% 18%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 224, 0.94));
  box-shadow: 0 12px 36px rgba(210, 190, 160, 0.18);
}

.home-hero::after {
  content: "◦";
  position: absolute;
  right: 42px;
  top: 58px;
  z-index: 1;
  width: 54px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 70% 40% 70% 40%;
  background: linear-gradient(135deg, rgba(255, 186, 98, 0.38), rgba(255, 255, 255, 0.14));
  color: rgba(217, 106, 0, 0.38);
  transform: rotate(-18deg);
  box-shadow: 22px 7px 0 rgba(255, 186, 98, 0.22);
}

.home-hero h2 {
  max-width: 280px;
}

.home-hero h2 span {
  color: var(--primary);
}

.starter-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.starter-list::-webkit-scrollbar {
  display: none;
}

.starter-chip {
  position: relative;
  flex: 0 0 112px;
  min-height: 118px;
  align-content: start;
  grid-template-columns: 1fr;
  padding: 13px;
  scroll-snap-align: start;
}

.starter-chip::before {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 800;
}

.starter-chip:nth-child(1)::before,
.starter-chip:nth-child(2)::before,
.starter-chip:nth-child(3)::before { content: none; }

.starter-chip::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 24px;
}

.starter-chip strong {
  font-size: 15px;
}

.starter-chip span {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.messages {
  padding-bottom: 28px;
}

.composer {
  position: relative;
  bottom: auto;
  z-index: 7;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.composer-box {
  align-items: end;
}

textarea {
  min-height: 46px;
  max-height: 168px;
  overflow-y: hidden;
  line-height: 1.5;
  padding-top: 11px;
  padding-bottom: 9px;
}

.message.user {
  border-radius: 22px 22px 8px 22px;
  line-height: 1.65;
}

.assistant-body {
  padding: 16px;
}

.answer-heading {
  padding-top: 12px;
  border-top: 1px solid rgba(234, 223, 210, 0.54);
}

.answer-heading:first-child {
  padding-top: 0;
  border-top: 0;
}

.answer-heading::before {
  content: "◆";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
}

.message.loading::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 12px 0 0 rgba(224, 122, 42, 0.42), 24px 0 0 rgba(224, 122, 42, 0.2);
}

.action-entry {
  border-color: rgba(224, 122, 42, 0.36);
  background: rgba(255, 242, 229, 0.82);
}

.feedback-bar .save-judgement-button::before { content: none; }

.side-nav {
  max-width: 420px;
}

.nav-section-label {
  margin-top: 20px;
  font-size: 12px;
}

.nav-item {
  min-height: 46px;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  font-size: 16px;
}

.nav-item::before {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.nav-item[data-icon="search"] {
  opacity: 0.48;
}

.brand-name {
  font-size: 23px;
}

.brand-note {
  font-size: 13px;
}

.asset-grid {
  overflow: auto;
}

.asset-panel {
  overflow: hidden;
}

.asset-body {
  gap: 9px;
}

.asset-item {
  line-height: 1.48;
}

.asset-item strong {
  display: block;
  line-height: 1.38;
}

.asset-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.asset-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.asset-more-button {
  justify-self: start;
  margin-top: 4px;
}

.week-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0;
}

.week-progress span {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: var(--radius-pill);
  background: #f4eadf;
  color: #a99c90;
  font-size: 11px;
  font-weight: 700;
}

.week-progress span.done {
  background: var(--primary);
  color: #fff;
}

.week-progress span.active {
  box-shadow: inset 0 0 0 1px var(--primary);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.history-panel h2 {
  font-size: 22px;
}

.history-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.history-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.45;
}

.history-item small {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 390px) {
  .topbar-actions {
    gap: 5px;
  }

  .ghost-button {
    padding: 7px 10px;
  }

  .home-hero {
    min-height: 268px;
  }

  .starter-chip {
    flex-basis: 108px;
  }
}

/* LC1.1.3-R3.1 demo-readiness polish. */
:root {
  --primary: #e07a2a;
  --primary-deep: #b85a2a;
  --primary-soft: #fff2e5;
  --accent: #f2a65a;
}

.no-scrollbar,
.starter-list,
.action-entry-points {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar,
.starter-list::-webkit-scrollbar,
.action-entry-points::-webkit-scrollbar {
  display: none;
}

.avatar-mark,
.xiaodie-avatar {
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 4px 12px rgba(224, 122, 42, 0.15);
}

.avatar-mark img,
.xiaodie-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-avatar {
  width: 78px;
  height: 78px;
}

.topbar {
  gap: 10px;
}

.title-home-link {
  cursor: pointer;
  border-radius: var(--radius-pill);
}

.title-home-link:focus-visible {
  outline: 2px solid rgba(224, 122, 42, 0.35);
  outline-offset: 3px;
}

.topbar-actions {
  flex: 0 0 auto;
}

.ghost-button-home {
  display: none !important;
}

.topbar p {
  max-width: 145px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}

.ui-icon svg,
.nav-icon svg,
.starter-icon svg,
.asset-icon svg,
.action-entry-icon svg,
.feedback-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-item {
  grid-template-columns: 32px minmax(0, 1fr) 14px;
}

.nav-item::before {
  content: none !important;
  display: none !important;
}

.nav-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-item[data-icon="user"] .nav-icon,
.nav-item[data-icon="shield"] .nav-icon,
.nav-item[data-icon="message"] .nav-icon,
.nav-item[data-icon="database"] .nav-icon,
.nav-item[data-icon="gear"] .nav-icon,
.nav-item[data-icon="search"] .nav-icon {
  color: #9c9186;
}

.starter-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.starter-chip {
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: 102px;
  min-height: 104px;
  grid-template-columns: 1fr;
  padding: 12px 10px 13px;
}

.starter-chip::before {
  content: none !important;
  display: none !important;
}

.starter-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.starter-chip strong {
  font-size: 14px;
}

.starter-chip span {
  font-size: 11px;
}

.home-hero::before {
  background:
    radial-gradient(ellipse at 78% 22%, rgba(224, 122, 42, 0.14), transparent 28%),
    radial-gradient(ellipse at 14% 18%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 242, 229, 0.94));
}

.home-hero::after {
  color: rgba(184, 90, 42, 0.28);
  background: linear-gradient(135deg, rgba(242, 166, 90, 0.34), rgba(255, 255, 255, 0.14));
  box-shadow: 22px 7px 0 rgba(242, 166, 90, 0.18);
}

.answer-nail {
  border-left-color: var(--primary);
  background: linear-gradient(90deg, rgba(255, 242, 229, 0.96), rgba(255, 250, 245, 0.96));
  color: var(--primary-deep);
}

.message.loading {
  display: grid;
  gap: 10px;
}

.loading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-entry-points {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.action-readiness-title {
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.action-entry {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-color: rgba(224, 122, 42, 0.34);
  background: rgba(255, 242, 229, 0.82);
  color: var(--primary-deep);
  white-space: nowrap;
}

.action-entry-icon svg {
  width: 16px;
  height: 16px;
}

.feedback-bar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.history-panel {
  width: 100%;
  padding: 18px;
}

.history-panel .empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px 4px;
}

.history-empty-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.history-empty-mark svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 390px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .title-block {
    gap: 8px;
  }

  .avatar-mark.compact {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 19px;
  }

  .topbar p {
    max-width: 132px;
    font-size: 10.5px;
  }

  .ghost-button {
    padding: 7px 10px;
    font-size: 13px;
  }

  .starter-list {
    gap: 7px;
  }

  .starter-chip {
    min-width: 98px;
    min-height: 100px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .starter-chip strong {
    font-size: 13px;
  }

  .starter-chip span {
    font-size: 10.5px;
  }

  .action-entry {
    padding: 7px 9px;
    font-size: 12px;
  }
}

.datacenter-panel {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 18px 18px calc(44px + env(safe-area-inset-bottom));
}

.datacenter-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 250, 245, 0.96), rgba(255, 242, 229, 0.88));
  box-shadow: var(--shadow-card);
}

.datacenter-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.datacenter-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.datacenter-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.datacenter-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.datacenter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.datacenter-card {
  min-height: 94px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(80, 60, 40, 0.05);
}

.datacenter-card.wide {
  grid-column: 1 / -1;
}

.datacenter-card span,
.datacenter-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.datacenter-card strong {
  color: var(--primary-deep);
  font-size: 18px;
  line-height: 1.3;
}

.datacenter-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.datacenter-insight-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(80, 60, 40, 0.04);
}

.datacenter-insight-card strong {
  color: var(--primary-deep);
  font-size: 17px;
  line-height: 1.35;
}

.datacenter-insight-card span,
.datacenter-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.datacenter-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.datacenter-mini-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}

.datacenter-mini-table th,
.datacenter-mini-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(234, 223, 210, 0.7);
  text-align: left;
  color: var(--text);
  white-space: nowrap;
}

.datacenter-mini-table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 250, 245, 0.74);
}

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

.datacenter-section {
  display: grid;
  gap: 10px;
}

.datacenter-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.datacenter-session {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(234, 223, 210, 0.84);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(80, 60, 40, 0.05);
}

.datacenter-session strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.datacenter-session small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.datacenter-session dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.datacenter-session dt,
.datacenter-session dd {
  margin: 0;
  min-width: 0;
  font-size: 11px;
}

.datacenter-session dt {
  color: var(--muted);
}

.datacenter-session dd {
  color: var(--text);
  font-weight: 700;
}

.datacenter-chip-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.datacenter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 650;
}

.datacenter-feedback-texts {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.82);
}

.datacenter-feedback-texts p,
.datacenter-summary-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.datacenter-summary-detail {
  padding: 9px 10px;
  border: 1px solid rgba(234, 223, 210, 0.76);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.datacenter-summary-detail summary {
  cursor: pointer;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.datacenter-boundary {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.74);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.settings-panel {
  display: grid;
  gap: 14px;
}

.settings-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.settings-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.model-switch-group {
  display: grid;
  gap: 10px;
}

.model-switch-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-card);
}

.model-switch-option.selected {
  border-color: rgba(224, 122, 42, 0.42);
  background: rgba(255, 242, 229, 0.72);
}

.model-switch-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.model-switch-option strong,
.model-switch-option small {
  display: block;
}

.model-switch-option strong {
  color: var(--text);
  font-size: 15px;
}

.model-switch-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.82);
  font-size: 13px;
}

@media (max-width: 430px) {
  .datacenter-panel {
    padding: 14px 14px calc(46px + env(safe-area-inset-bottom));
  }

  .datacenter-grid {
    grid-template-columns: 1fr;
  }

  .datacenter-insight-grid {
    grid-template-columns: 1fr;
  }

  .datacenter-session dl {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* The invitation boundary is a real grid row, not an overlay on the first turn. */
.eac-expert-mode .chat-view:not(.home-empty),
.eac-expert-mode .chat-view.home-empty {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

/* LC1.1.16A-2 candidate-only tester and co-creation controls */
.tester-runtime-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 8px 18px 0;
}

.chat-view.tester-tools-visible,
.chat-view.tester-tools-visible:not(.home-empty) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.tester-runtime-tools .text-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(196, 105, 32, 0.26);
  border-radius: 6px;
  background: #fff;
}

.cocreation-mode-badge {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

.chengwen-cocreation-mode .topbar {
  gap: 6px;
  padding-left: 10px;
  padding-right: 10px;
}

.chengwen-cocreation-mode .topbar .title-block {
  gap: 6px;
}

.chengwen-cocreation-mode .topbar .title-block p {
  display: none;
}

.chengwen-cocreation-mode .tester-mode-badge {
  margin-left: 2px;
}

.chengwen-cocreation-mode .starter-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cocreation-feedback-panel {
  width: min(100%, 660px);
  margin: 8px 0 12px 44px;
  border: 1px solid rgba(196, 105, 32, 0.24);
  border-radius: 8px;
  background: #fff;
}

.cocreation-feedback-panel summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #7b3d10;
  font-weight: 600;
}

.cocreation-feedback-body {
  padding: 0 12px 12px;
}

.cocreation-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cocreation-feedback-option {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(196, 105, 32, 0.28);
  border-radius: 6px;
  background: #fff;
  color: #5d4030;
}

.cocreation-feedback-option.selected {
  border-color: #d96b19;
  background: #fff4ea;
  color: #9b4308;
}

.cocreation-feedback-note {
  width: 100%;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #ded7d1;
  border-radius: 6px;
  resize: vertical;
  font: inherit;
}

.cocreation-feedback-hint {
  margin: 7px 0 0;
  color: #81766e;
  font-size: 12px;
}

.request-error-actions {
  margin-top: 8px;
}

@media (max-width: 540px) {
  .chengwen-cocreation-mode .starter-list {
    grid-template-columns: 1fr;
  }

  .tester-runtime-tools {
    justify-content: stretch;
  }

  .tester-runtime-tools .text-button {
    flex: 1 1 0;
  }

  .cocreation-feedback-panel {
    width: 100%;
    margin-left: 0;
  }
}

/* LC1.1.10 Chat answer card polish: visual layer only. */
.assistant-body {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid rgba(236, 224, 211, 0.82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 142, 43, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 253, 250, 0.95));
  box-shadow:
    0 16px 40px rgba(80, 60, 40, 0.10),
    0 2px 10px rgba(184, 90, 42, 0.05);
}

.answer-nail {
  margin: 1px 0 19px;
  padding: 13px 15px 13px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  background:
    radial-gradient(circle at 94% 50%, rgba(255, 184, 91, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(255, 236, 217, 0.99), rgba(255, 248, 239, 0.97));
  color: #e66d16;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.66;
  box-shadow: 0 8px 22px rgba(224, 122, 42, 0.10);
}

.answer-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 16px 0 8px;
  padding: 15px 0 0;
  border-top: 1px dashed rgba(224, 122, 42, 0.18);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.answer-section-title:first-child,
.answer-nail + .answer-section-title {
  padding-top: 0;
  border-top: 0;
}

.answer-section-title::before {
  content: none !important;
  display: none !important;
}

.answer-section-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 242, 229, 0.96);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(224, 122, 42, 0.08);
}

.answer-section-icon svg {
  width: 17px;
  height: 17px;
}

.answer-section-title.action .answer-section-icon {
  background: rgba(255, 239, 220, 0.98);
  color: #e66d16;
}

.answer-section-title.question .answer-section-icon {
  background: rgba(246, 240, 232, 0.96);
  color: #9a7d64;
}

.answer-paragraph {
  color: #3a332d;
  font-size: 15.5px;
  line-height: 1.82;
}

.answer-list {
  margin-top: 8px;
  padding-left: 24px;
  color: #3a332d;
  line-height: 1.78;
}

ol.answer-list {
  list-style-type: decimal;
}

ul.answer-list {
  list-style-type: disc;
}

.answer-list li + li {
  margin-top: 6px;
}

.answer-section-title + .answer-paragraph,
.answer-section-title + .answer-list {
  margin-top: 4px;
}

.feedback-bar {
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 17px;
  padding: 0 2px;
}

.feedback-bar button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(234, 223, 210, 0.84);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  color: #7c7167;
  box-shadow: 0 6px 15px rgba(80, 60, 40, 0.06);
  font-size: 13.5px;
  font-weight: 650;
}

.feedback-bar .save-judgement-button {
  border-color: rgba(224, 122, 42, 0.22);
  background: rgba(255, 248, 240, 0.92);
  color: var(--primary-deep);
}

.feedback-bar .text-feedback-button {
  border-color: rgba(224, 122, 42, 0.18);
  background: rgba(255, 250, 245, 0.92);
  color: var(--primary-deep);
}

.feedback-bar .save-judgement-button.saved,
.feedback-bar .save-judgement-button.saving {
  border-color: rgba(86, 128, 92, 0.24);
  background: rgba(233, 244, 235, 0.9);
  color: #54765b;
}

.feedback-bar .save-judgement-button.saving {
  opacity: 0.82;
}

.action-entry-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  margin-top: 3px;
  margin-bottom: 18px;
  padding: 1px 2px 0;
}

.action-readiness-title {
  display: none;
}

.action-entry {
  min-width: 0;
  min-height: 38px;
  justify-content: center;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid rgba(224, 122, 42, 0.58);
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.9);
  color: var(--primary-deep);
  box-shadow: 0 8px 18px rgba(224, 122, 42, 0.08);
  font-size: 12.5px;
  font-weight: 720;
}

.action-entry-icon svg {
  width: 14px;
  height: 14px;
}

.action-entry.done {
  border-color: rgba(170, 153, 135, 0.22);
  background: rgba(238, 226, 213, 0.82);
  color: #8f8377;
}

.context-trigger,
.context-fold {
  margin-top: 2px;
}

.context-trigger .text-button,
.context-panel-summary {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(80, 60, 40, 0.06);
}

.context-trigger .text-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
}

.context-fold {
  padding: 8px 10px 12px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.84);
}

.context-panel-summary {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  color: #8a7767;
}

.context-panel-body {
  padding: 10px 5px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 430px) {
  .assistant-body {
    padding: 18px 16px 16px;
    border-radius: 26px;
  }

  .answer-nail {
    padding: 12px 13px 12px 14px;
    font-size: 14.5px;
  }

  .answer-section-title {
    font-size: 15px;
  }

  .feedback-bar,
  .action-entry-points,
  .context-trigger,
  .context-fold,
  .footprint-draft-panel {
    margin-left: 44px;
    max-width: calc(100% - 44px);
  }
}

.messages {
  scrollbar-width: none;
}

.messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 44px));
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 15px;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #5f544b;
  box-shadow: 0 14px 30px rgba(80, 60, 40, 0.13);
  font-size: 13px;
  font-weight: 680;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-toast.success {
  border-color: rgba(86, 128, 92, 0.22);
  color: #54765b;
}

.app-toast.warn,
.app-toast.error {
  border-color: rgba(224, 122, 42, 0.22);
  color: var(--primary-deep);
}

/* LC1.1.11-R2 server preview: My Growth Dashboard and Drawer only. */
.my-view.my-preview-v2-mode {
  display: block;
  min-height: 100%;
  overflow: auto;
  padding: 28px 28px 36px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff6ec 100%);
}

.my-view.my-preview-v2-mode > .topbar,
.my-view.my-preview-v2-mode > .asset-dashboard,
.my-view.my-preview-v2-mode > .asset-grid,
.my-view.my-preview-v2-mode > .secondary-assets,
.my-view.my-preview-v2-mode > .utility-panel,
.my-view.my-preview-v2-mode > .my-compliance {
  display: none;
}

.my-dashboard-v2 {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
}

.my-dashboard-v2.hidden {
  display: none;
}

.my-v2-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 6px 0 10px;
}

.my-v2-hero .avatar-mark.large {
  width: 78px;
  height: 78px;
  box-shadow: 0 10px 26px rgba(180, 120, 70, 0.14);
}

.my-v2-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.my-v2-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.my-v2-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(242, 142, 43, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(80, 60, 40, 0.06);
}

.my-v2-chat-button svg {
  width: 18px;
  height: 18px;
}

.my-v2-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 22px 18px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(80, 60, 40, 0.08);
}

.my-v2-overview > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 0 18px;
  border-right: 1px solid rgba(234, 223, 210, 0.9);
}

.my-v2-overview > div:last-child {
  border-right: 0;
}

.my-v2-overview-icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.my-v2-overview-icon svg {
  width: 27px;
  height: 27px;
}

.my-v2-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.my-v2-overview strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.my-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.my-v2-card,
.my-v2-wide-card,
.my-v2-kit-card,
.my-v2-system-list {
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.06);
}

.my-v2-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
}

.my-v2-card-flag::after,
.my-v2-kit-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 145px;
  height: 90px;
  border-radius: 60% 40% 0 0;
  background: linear-gradient(135deg, rgba(242, 142, 43, 0.09), rgba(255, 242, 229, 0.24));
  transform: rotate(-9deg);
}

.my-v2-card header,
.my-v2-wide-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.my-v2-card header > span,
.my-v2-wide-card header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}

.my-v2-card svg,
.my-v2-wide-card svg,
.my-v2-system-list svg {
  width: 20px;
  height: 20px;
}

.my-v2-card h3,
.my-v2-wide-card h3,
.my-v2-kit-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.my-v2-action-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 0;
}

.my-v2-action-row + .my-v2-action-row {
  border-top: 1px solid rgba(234, 223, 210, 0.72);
}

.my-v2-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(172, 151, 132, 0.55);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
}

.my-v2-action-row.done .my-v2-check {
  border-color: var(--primary);
  background: var(--primary);
}

.my-v2-action-row strong,
.my-v2-footprint-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.my-v2-action-row small,
.my-v2-footprint-row small,
.my-v2-card-summary,
.my-v2-empty {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.my-v2-action-row button,
.my-v2-link,
.my-v2-wide-card header button,
.my-v2-kit-card button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
}

.my-v2-link {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(234, 223, 210, 0.72);
  text-align: left;
}

.my-v2-link::after,
.my-v2-kit-card button::after {
  content: "›";
}

.my-v2-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 14px;
}

.my-v2-week-days span {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
}

.my-v2-week-days i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4ebe2;
}

.my-v2-week-days .done i,
.my-v2-week-days .active i {
  background: var(--primary);
}

.my-v2-week-days .done i::after {
  content: "✓";
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  line-height: 20px;
}

.my-v2-bullet-list {
  display: grid;
  gap: 12px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}

.my-v2-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.my-v2-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.my-v2-status {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.my-v2-review-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
}

.my-v2-review-rows p {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.my-v2-review-rows b {
  color: var(--text);
  font-weight: 700;
}

.my-v2-wide-card {
  padding: 20px;
}

.my-v2-wide-card header {
  margin-bottom: 12px;
}

.my-v2-wide-card header h3 {
  flex: 1;
}

.my-v2-footprint-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 10px 0;
  border-top: 1px solid rgba(234, 223, 210, 0.68);
}

.my-v2-footprint-row > span {
  width: 74px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(242, 142, 43, 0.18), rgba(255, 242, 229, 0.9));
}

.my-v2-footprint-row time {
  color: var(--muted);
  font-size: 13px;
}

.my-v2-kit-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 18px 24px;
  overflow: hidden;
}

.my-v2-kit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.my-v2-kit-illustration {
  width: 104px;
  height: 76px;
  border-radius: 28px 28px 18px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(145deg, rgba(242, 142, 43, 0.2), rgba(255, 242, 229, 0.95));
  box-shadow: inset 0 -10px 18px rgba(242, 142, 43, 0.1);
}

.my-v2-system-list {
  display: grid;
  overflow: hidden;
}

.my-v2-system-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid rgba(234, 223, 210, 0.72);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 16px;
}

.my-v2-system-list button:last-child {
  border-bottom: 0;
}

.my-v2-system-list svg {
  color: #6b6259;
}

.my-v2-system-list b {
  color: #aa9e91;
  font-size: 22px;
}

.drawer-v2 {
  width: min(82vw, 520px);
  max-width: 520px;
  border-radius: 0 34px 34px 0;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 16px 0 42px rgba(50, 40, 32, 0.13);
}

.drawer-v2 .brand-rail {
  padding: 26px 14px 72px;
}

.drawer-v2 .brand-name {
  font-size: 25px;
}

.drawer-v2 .brand-note {
  font-size: 14px;
}

.drawer-v2 .nav-list {
  gap: 6px;
}

.drawer-v2 .nav-section-label {
  margin: 22px 0 10px;
  padding-top: 18px;
  font-size: 14px;
}

.drawer-v2 .nav-item {
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  min-height: 56px;
  font-size: 20px;
}

.drawer-v2 .nav-item::after {
  color: #aa9e91;
}

.drawer-v2 .drawer-account-card {
  margin-top: 34px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 80%, rgba(242, 142, 43, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.82);
}

@media (max-width: 520px) {
  .my-view.my-preview-v2-mode {
    padding: 24px 18px 30px;
  }

  .my-v2-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .my-v2-chat-button {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .my-v2-overview {
    padding: 16px 10px;
  }

  .my-v2-overview > div {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0 8px;
  }

  .my-v2-overview-icon {
    width: 42px;
    height: 42px;
  }

  .my-v2-overview strong {
    font-size: 20px;
  }

  .my-v2-card-grid {
    grid-template-columns: 1fr;
  }

  .my-v2-card {
    min-height: 190px;
  }

  .my-v2-kit-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .my-v2-kit-card button {
    grid-column: 2;
    justify-self: start;
  }

  .my-v2-kit-illustration {
    width: 62px;
    height: 54px;
  }

  .my-v2-footprint-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .my-v2-footprint-row > span {
    width: 54px;
    height: 46px;
  }

  .drawer-v2 {
    width: 82vw;
  }
}

/* LC1.1.11-R2 preview fix: prevent narrow card wrapping and weekly overlap. */
.my-dashboard-v2 {
  max-width: min(760px, calc(100vw - 32px));
}

.my-v2-overview > div {
  min-width: 0;
}

.my-v2-overview p,
.my-v2-overview strong {
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.my-v2-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.my-v2-card header {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.my-v2-card-summary,
.my-v2-bullet-list,
.my-v2-review-rows {
  margin-bottom: 0;
}

.my-v2-link {
  position: static;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 223, 210, 0.72);
}

.my-v2-week-days {
  gap: 6px;
  margin-bottom: 8px;
}

.my-v2-week-days span {
  min-width: 0;
  white-space: nowrap;
}

.my-v2-card .my-v2-empty {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .my-v2-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .my-dashboard-v2 {
    max-width: none;
  }

  .my-v2-overview > div {
    min-width: 0;
  }

  .my-v2-card {
    min-height: 0;
  }
}

/* LC1.1.11-R2 default My V2 polish: typography and container-aware layout. */
.my-dashboard-v2 {
  max-width: min(820px, calc(100vw - 36px));
  container-type: inline-size;
}

.my-v2-hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.my-v2-hero .avatar-mark.large {
  width: 70px;
  height: 70px;
}

.my-v2-hero h2 {
  font-size: 28px;
  line-height: 1.15;
}

.my-v2-hero p {
  font-size: 15px;
  line-height: 1.45;
}

.my-v2-overview {
  padding: 18px 14px;
}

.my-v2-overview > div {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
  padding: 0 14px;
}

.my-v2-overview-icon {
  width: 46px;
  height: 46px;
}

.my-v2-overview-icon svg {
  width: 23px;
  height: 23px;
}

.my-v2-overview p {
  font-size: 13.5px;
}

.my-v2-overview strong {
  font-size: 21px;
}

.my-v2-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.my-v2-card h3,
.my-v2-wide-card h3,
.my-v2-kit-card h3 {
  font-size: 19px;
  line-height: 1.25;
}

.my-v2-card header > span,
.my-v2-wide-card header > span {
  width: 30px;
  height: 30px;
}

.my-v2-card svg,
.my-v2-wide-card svg,
.my-v2-system-list svg {
  width: 17px;
  height: 17px;
}

.my-v2-status {
  top: 18px;
  right: 18px;
  font-size: 12px;
  padding: 4px 9px;
}

.my-v2-action-row strong,
.my-v2-footprint-row strong {
  font-size: 14px;
}

.my-v2-action-row small,
.my-v2-footprint-row small,
.my-v2-card-summary,
.my-v2-empty,
.my-v2-review-rows p,
.my-v2-kit-card p {
  font-size: 12.5px;
}

.my-v2-link,
.my-v2-wide-card header button,
.my-v2-kit-card button {
  font-size: 14px;
}

.my-v2-review-rows p {
  grid-template-columns: 66px minmax(0, 1fr);
}

.my-v2-kit-card {
  grid-template-columns: 94px minmax(0, 1fr) auto;
}

.my-v2-kit-illustration {
  width: 82px;
  height: 62px;
}

@container (max-width: 640px) {
  .my-v2-card-grid {
    grid-template-columns: 1fr;
  }

  .my-v2-overview > div {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0 8px;
  }

  .my-v2-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .my-v2-chat-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .my-v2-hero h2 {
    font-size: 25px;
  }

  .my-v2-hero p {
    font-size: 13.5px;
  }

  .my-v2-overview strong {
    font-size: 19px;
  }

  .my-v2-card h3,
  .my-v2-wide-card h3,
  .my-v2-kit-card h3 {
    font-size: 18px;
  }

  .my-v2-system-list button {
    font-size: 15px;
  }
}

/* LC1.1.11 history auto title and editable title. */
.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.history-item-main {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.history-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.45;
}

.history-title-edit {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(234, 223, 210, 0.72);
  border-radius: 50%;
  background: rgba(255, 250, 245, 0.86);
  color: #9b8d7f;
}

.history-title-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-title-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  width: 100%;
}

.history-title-form input {
  min-width: 0;
  border: 1px solid rgba(234, 223, 210, 0.88);
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.history-title-form input:focus {
  border-color: rgba(242, 142, 43, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 142, 43, 0.12);
}

/* LC1.1.11-R2 drawer compact polish */
.drawer-v2 {
  width: min(80vw, 430px);
  max-width: 430px;
  border-radius: 0 28px 28px 0;
}

.drawer-v2 .brand-rail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 20px 12px 30px;
}

.drawer-v2 .brand-rail .avatar {
  width: 42px;
  height: 42px;
}

.drawer-v2 .brand-name {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.drawer-v2 .brand-note {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
}

.drawer-v2 .nav-list {
  gap: 1px;
}

.drawer-v2 .nav-section-label {
  margin: 13px 0 6px;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.25;
}

.drawer-v2 .nav-item {
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  min-height: 44px;
  padding: 5px 0;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.25;
}

.drawer-v2 .nav-item::before {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 16px;
}

.drawer-v2 .nav-item::after {
  font-size: 22px;
}

.drawer-v2 .drawer-account-card {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 16px;
}

.drawer-v2 .drawer-account-card .avatar {
  width: 40px;
  height: 40px;
}

.drawer-v2 .drawer-account-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.drawer-v2 .drawer-account-card span {
  padding: 1px 6px;
  font-size: 11px;
}

.drawer-v2 .drawer-account-card p {
  display: none;
}

@media (max-width: 520px) {
  .drawer-v2 {
    width: 80vw;
  }

  .drawer-v2 .brand-rail {
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .drawer-v2 .nav-item {
    min-height: 43px;
    font-size: 15.5px;
  }
}

/* LC1.1.11-R2 drawer top gap fix */
.drawer-v2 {
  padding-top: 28px;
  padding-left: 20px;
  padding-right: 20px;
}

.drawer-v2 .brand-rail {
  margin-bottom: 0;
  padding: 8px 4px 12px;
}

.drawer-v2 .nav-section-label:first-child {
  margin-top: 8px;
}

.drawer-v2 .nav-section-label {
  margin-top: 11px;
  margin-bottom: 4px;
  padding-top: 10px;
}

.drawer-v2 .nav-item {
  min-height: 42px;
  padding-top: 4px;
  padding-bottom: 4px;
}

@media (max-width: 520px) {
  .drawer-v2 {
    padding-top: 24px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .drawer-v2 .brand-rail {
    padding-top: 6px;
    padding-bottom: 10px;
  }

  .drawer-v2 .nav-section-label:first-child {
    margin-top: 6px;
  }
}

/* LC1.1.14B grounded guidance and rehearsal micro-actions */
.home-grounded-guide {
  max-width: 250px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(224, 122, 42, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.7);
  color: #8c7c70;
  font-size: 13px;
  line-height: 1.55;
}

.ordinary-ai-comparison-card {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(234, 223, 210, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.ordinary-ai-comparison-title {
  flex: 1 1 180px;
  color: #83766c;
  font-size: 12.5px;
  line-height: 1.45;
}

.ordinary-ai-comparison-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ordinary-ai-comparison-card .mini-button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ordinary-ai-comparison-done {
  color: #7f9a68;
  font-size: 12px;
  font-weight: 650;
}

.rehearsal-entry-points {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin: -7px 0 16px 42px;
  padding: 0 2px;
}

.rehearsal-entry-title {
  padding-top: 8px;
  color: #9a8d82;
  font-size: 12px;
  white-space: nowrap;
}

.rehearsal-entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rehearsal-entry-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(234, 223, 210, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #83766c;
  box-shadow: 0 6px 14px rgba(80, 60, 40, 0.05);
  font-size: 12px;
  font-weight: 650;
}

.rehearsal-entry-button.primary {
  border-color: rgba(224, 122, 42, 0.32);
  background: rgba(255, 248, 240, 0.94);
  color: var(--primary-deep);
}

.tester-mode-badge {
  align-self: center;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(242, 142, 43, 0.42);
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(255, 248, 240, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.feedback-bar-lite {
  align-items: center;
  margin-left: 42px;
}

.feedback-bar-lite .lite-feedback-button {
  min-width: 88px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
  color: #75695f;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 650;
}

.feedback-more-toggle {
  margin-left: auto;
  color: #8f8175;
  background: transparent !important;
  border-color: transparent !important;
}

.feedback-save-hint,
.feedback-more-panel {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(234, 223, 210, 0.78);
  border-radius: 10px;
  background: rgba(255, 250, 245, 0.84);
}

.feedback-save-hint span {
  color: #83766c;
  font-size: 12px;
}

.feedback-recalibration-card.is-collapsed {
  padding: 8px 10px;
  border-radius: 10px;
}

.feedback-recalibration-done {
  margin: 0;
  color: var(--primary-deep);
  font-size: 12px;
  line-height: 1.5;
}

.rehearsal-entry-points.user-primary-action {
  display: block;
  margin: -7px 0 16px 42px;
  padding: 0;
}

.rehearsal-entry-points.user-primary-action .rehearsal-entry-list {
  display: block;
}

.rehearsal-entry-points.user-primary-action .rehearsal-entry-button.primary {
  width: min(360px, 100%);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a1d, #f26f18);
  color: #fff;
  box-shadow: 0 12px 26px rgba(242, 111, 24, 0.22);
  font-size: 16px;
  font-weight: 750;
}

.rehearsal-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

@media (max-width: 430px) {
  .rehearsal-entry-points {
    margin-left: 36px;
  }

  .feedback-bar-lite,
  .rehearsal-entry-points.user-primary-action {
    margin-left: 36px;
  }

  .feedback-more-toggle {
    margin-left: 0;
  }

  .home-grounded-guide {
    max-width: 230px;
  }
}

/* LC1.1.16A-2 formal co-creation entry: final responsive overrides. */
.chengwen-cocreation-mode .chat-view > *,
.chengwen-cocreation-mode .starter-band,
.chengwen-cocreation-mode .tester-runtime-tools,
.chengwen-cocreation-mode .composer,
.chengwen-cocreation-mode .composer-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.chengwen-cocreation-mode .topbar {
  gap: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow: hidden;
}

.chengwen-cocreation-mode .drawer-toggle,
.chengwen-cocreation-mode .topbar-actions {
  flex: 0 0 auto;
}

.chengwen-cocreation-mode .topbar .title-block {
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}

.chengwen-cocreation-mode .topbar .title-block > div {
  flex: 0 1 auto;
  min-width: 0;
}

.chengwen-cocreation-mode .topbar .title-block p {
  display: none;
}

.chengwen-cocreation-mode .topbar h1,
.chengwen-cocreation-mode .tester-mode-badge,
.chengwen-cocreation-mode .topbar-actions .ghost-button {
  white-space: nowrap;
}

.chengwen-cocreation-mode .tester-mode-badge {
  flex: 0 0 auto;
  margin-left: 2px;
  padding: 2px 6px;
  font-size: 10.5px;
}

.chengwen-cocreation-mode .tester-runtime-tools {
  width: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 12px 0;
}

.chengwen-cocreation-mode .tester-runtime-tools .text-button {
  width: 100%;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chengwen-cocreation-mode .starter-band {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.chengwen-cocreation-mode .starter-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 1px 2px 10px;
  scroll-snap-type: none;
}

.chengwen-cocreation-mode .starter-chip {
  width: 100%;
  min-width: 0;
  min-height: 100px;
  flex: none;
  padding: 10px 9px 11px;
  overflow: hidden;
}

.chengwen-cocreation-mode .starter-chip strong,
.chengwen-cocreation-mode .starter-chip span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chengwen-cocreation-mode .composer {
  width: 100%;
  overflow: hidden;
}

.chengwen-cocreation-mode .composer-box {
  width: 100%;
}

.chengwen-cocreation-mode .composer textarea {
  min-width: 0;
}

@media (max-width: 430px) {
  .chengwen-cocreation-mode .home-hero {
    min-height: 228px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .chengwen-cocreation-mode .hero-avatar {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 359px) {
  .chengwen-cocreation-mode .starter-list {
    grid-template-columns: 1fr;
  }

  .chengwen-cocreation-mode .topbar .avatar-mark.compact {
    width: 34px;
    height: 34px;
  }

  .chengwen-cocreation-mode .topbar h1 {
    font-size: 17px;
  }
}

/* LC1.1.17 RC1 unified 4+1 home and co-creation safety controls. */
.unified-core-mode .starter-band,
.unified-core-mode .starter-list,
.unified-core-mode .secondary-scene-panel,
.unified-core-mode .secondary-scene-groups,
.unified-core-mode .composer,
.unified-core-mode .composer-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.unified-core-mode .starter-band {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.unified-core-mode .composer {
  min-height: 0;
}

.unified-core-mode .messages {
  min-height: 0;
  padding-bottom: calc(var(--composer-height, 112px) + env(safe-area-inset-bottom) + 16px);
  scroll-padding-top: 12px;
  scroll-padding-bottom: calc(var(--composer-height, 112px) + env(safe-area-inset-bottom) + 16px);
  overscroll-behavior: contain;
}

.unified-core-mode .composer textarea {
  max-height: 168px;
  overflow-y: auto;
}

.unified-core-mode .home-hero {
  min-height: 220px;
  padding-top: 20px;
  padding-bottom: 16px;
}

.unified-core-mode .home-hero h2 {
  max-width: 360px;
  font-size: 29px;
  line-height: 1.3;
}

.unified-core-mode .home-hero h2 span {
  color: var(--primary);
}

.unified-core-mode .starter-title {
  margin-bottom: 8px;
}

.unified-core-mode .starter-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.unified-core-mode .starter-chip {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 11px 10px;
  overflow: hidden;
}

.unified-core-mode .starter-chip strong {
  font-size: 15px;
}

.unified-core-mode .starter-chip span {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.secondary-scene-panel {
  margin-top: 10px;
  border-top: 1px solid rgba(234, 223, 210, 0.76);
}

.secondary-scene-panel > summary {
  padding: 10px 2px 6px;
  color: var(--primary-deep);
  font-size: 13px;
  cursor: pointer;
  list-style-position: inside;
}

.secondary-scene-groups {
  display: grid;
  gap: 10px;
  padding: 4px 0 10px;
}

.secondary-scene-group {
  display: grid;
  gap: 6px;
}

.secondary-scene-group h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.secondary-scene-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.secondary-scene-button,
.secondary-scene-more {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(234, 223, 210, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 12px;
}

.secondary-scene-more-global {
  margin-top: 2px;
}

.secondary-scene-more {
  justify-self: start;
  color: var(--primary-deep);
  background: transparent;
}

.cocreation-clear-dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 20px 60px rgba(65, 44, 27, 0.22);
}

.cocreation-clear-dialog::backdrop {
  background: rgba(43, 34, 28, 0.46);
}

.cocreation-clear-card {
  padding: 22px;
}

.cocreation-clear-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.cocreation-clear-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cocreation-clear-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.cocreation-clear-actions button {
  min-height: 42px;
  border: 1px solid rgba(234, 223, 210, 0.95);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.cocreation-clear-actions button:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 430px) {
  .unified-core-mode .starter-band {
    padding: 10px 14px 8px;
    overflow-x: hidden;
  }

  .unified-core-mode .composer textarea {
    max-height: 128px;
  }

  .unified-core-mode .home-hero {
    min-height: 205px;
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .unified-core-mode .hero-avatar {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
  }

  .unified-core-mode .home-hero h2 {
    max-width: 330px;
    font-size: 24px;
  }

  .unified-core-mode .home-hero p {
    max-width: 320px;
    font-size: 13px;
  }

  .unified-core-mode .home-grounded-guide {
    max-width: 300px;
  }

  .unified-core-mode .starter-chip {
    min-height: 80px;
    padding: 9px 8px;
  }

  .secondary-scene-button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* LC1.1.17 compact home and private attachment recognition. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.unified-core-mode .topbar {
  min-height: 52px;
  padding: 7px 12px;
  gap: 8px;
}

.unified-core-mode .topbar .avatar-mark.compact {
  width: 34px;
  height: 34px;
}

.unified-core-mode .topbar .title-block {
  gap: 7px;
}

.unified-core-mode .topbar h1 {
  font-size: 18px;
}

.unified-core-mode .topbar p {
  margin-top: 0;
  font-size: 10px;
}

.unified-core-mode .topbar .ghost-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.unified-core-mode .starter-band,
.chengwen-cocreation-mode .starter-band {
  padding: 7px 14px 5px;
  overflow: hidden;
}

.unified-core-mode .home-hero,
.chengwen-cocreation-mode .home-hero {
  min-height: 166px;
  padding: 11px 10px 9px;
}

.unified-core-mode .home-hero::before {
  inset: 2px 0 4px;
  border-radius: 24px;
}

.unified-core-mode .home-hero::after {
  right: 34px;
  top: 30px;
  transform: scale(0.72) rotate(-18deg);
}

.unified-core-mode .hero-avatar,
.chengwen-cocreation-mode .hero-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
}

.unified-core-mode .home-hero h2,
.chengwen-cocreation-mode .home-hero h2 {
  max-width: 370px;
  font-size: 24px;
  line-height: 1.22;
}

.unified-core-mode .home-hero h2 > span,
.unified-core-mode .home-hero h2 > strong {
  display: block;
  white-space: nowrap;
  font: inherit;
  font-weight: 760;
}

.unified-core-mode .hero-line {
  width: 38px;
  height: 3px;
  margin: 7px auto;
}

.unified-core-mode .home-hero p {
  max-width: 390px;
  font-size: 12px;
  line-height: 1.4;
}

.unified-core-mode .starter-title {
  margin: 2px 2px 5px;
  font-size: 12px;
}

.unified-core-mode .starter-list,
.chengwen-cocreation-mode .starter-list {
  gap: 6px;
  padding: 0;
}

.unified-core-mode .starter-chip,
.chengwen-cocreation-mode .starter-chip {
  min-height: 70px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
}

.unified-core-mode .starter-chip .starter-icon {
  width: 30px;
  height: 30px;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  border-radius: 8px;
}

.unified-core-mode .starter-chip strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.25;
}

.unified-core-mode .starter-chip span {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  padding-right: 4px;
  font-size: 10.5px;
  line-height: 1.25;
}

.unified-core-mode .starter-chip::after {
  right: 7px;
  bottom: 21px;
  font-size: 19px;
}

.unified-core-mode .secondary-scene-panel {
  margin-top: 5px;
}

.unified-core-mode .secondary-scene-panel > summary {
  padding: 6px 2px 3px;
  font-size: 12px;
}

.unified-core-mode .composer,
.chengwen-cocreation-mode .composer {
  position: relative;
  overflow: visible;
}

.unified-core-mode .chat-view.home-empty .composer {
  padding: 6px 12px max(6px, env(safe-area-inset-bottom));
}

.unified-core-mode .chat-view.home-empty .composer-hint {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.25;
}

.unified-core-mode .chat-view.home-empty .composer-compliance {
  font-size: 9.5px;
  line-height: 1.3;
}

.attachment-menu {
  position: absolute;
  left: 16px;
  bottom: calc(100% - 8px);
  z-index: 20;
  width: min(320px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(221, 201, 180, 0.92);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 16px 38px rgba(65, 44, 27, 0.2);
}

.attachment-menu > button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.attachment-menu > button:hover,
.attachment-menu > button:focus-visible {
  background: var(--primary-soft);
}

.attachment-menu-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--panel-warm);
  color: var(--primary-deep);
  font-size: 17px;
}

.attachment-menu strong,
.attachment-menu small {
  display: block;
}

.attachment-menu strong {
  font-size: 14px;
}

.attachment-menu small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.attachment-menu > p {
  margin: 5px 8px 2px 42px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.attachment-tray {
  display: flex;
  gap: 6px;
  margin: 0 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.attachment-item {
  flex: 0 0 min(230px, 78vw);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 5px;
  padding: 6px 7px 6px 9px;
  border: 1px solid rgba(221, 201, 180, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.96);
}

.attachment-item > span,
.attachment-item strong,
.attachment-item small {
  min-width: 0;
  display: block;
}

.attachment-item strong,
.attachment-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item strong {
  font-size: 12px;
}

.attachment-item small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.attachment-item.error {
  border-color: rgba(177, 72, 52, 0.44);
}

.attachment-item > button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
}

.attachment-recording-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff3ee;
  color: #8f3c2d;
  font-size: 12px;
}

.attachment-recording-status button {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(143, 60, 45, 0.25);
  border-radius: 6px;
  background: #fff;
  color: #8f3c2d;
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7472f;
  box-shadow: 0 0 0 3px rgba(215, 71, 47, 0.12);
}

@media (max-width: 430px) {
  .unified-core-mode .topbar {
    min-height: 48px;
    padding: 5px 9px;
  }

  .unified-core-mode .topbar .avatar-mark.compact {
    width: 31px;
    height: 31px;
  }

  .unified-core-mode .topbar h1 {
    font-size: 17px;
  }

  .unified-core-mode .topbar p {
    max-width: 126px;
    font-size: 9.5px;
  }

  .unified-core-mode .topbar .ghost-button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .unified-core-mode .home-hero,
  .chengwen-cocreation-mode .home-hero {
    min-height: 148px;
    padding: 8px 8px 7px;
  }

  .unified-core-mode .hero-avatar,
  .chengwen-cocreation-mode .hero-avatar {
    width: 43px;
    height: 43px;
    margin-bottom: 5px;
  }

  .unified-core-mode .home-hero h2,
  .chengwen-cocreation-mode .home-hero h2 {
    max-width: 320px;
    font-size: 21px;
    line-height: 1.2;
  }

  .unified-core-mode .hero-line {
    margin: 5px auto;
  }

  .unified-core-mode .home-hero p {
    max-width: 315px;
    font-size: 11px;
  }

  .unified-core-mode .starter-chip,
  .chengwen-cocreation-mode .starter-chip {
    min-height: 64px;
    padding: 6px 7px;
  }

  .unified-core-mode .starter-chip strong {
    font-size: 13px;
  }

  .unified-core-mode .starter-chip span {
    font-size: 10px;
  }

  .unified-core-mode .starter-chip::after {
    bottom: 19px;
  }

  .chengwen-cocreation-mode .tester-runtime-tools {
    gap: 6px;
    margin: 5px 10px 0;
  }

  .chengwen-cocreation-mode .tester-runtime-tools .text-button {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .attachment-menu {
    left: 10px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 430px) and (max-height: 720px) {
  .unified-core-mode .home-hero,
  .chengwen-cocreation-mode .home-hero {
    min-height: 128px;
  }

  .unified-core-mode .hero-avatar,
  .chengwen-cocreation-mode .hero-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 3px;
  }

  .unified-core-mode .home-hero h2,
  .chengwen-cocreation-mode .home-hero h2 {
    font-size: 19px;
  }

  .unified-core-mode .starter-chip,
  .chengwen-cocreation-mode .starter-chip {
    min-height: 58px;
  }
}

/* Expert RC keeps the established shell and adds only the workflow controls. */
.rc-expert-badge {
  border: 1px solid rgba(161, 112, 42, 0.28);
  border-radius: 999px;
  background: #fff8ea;
  color: #80571f;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rc-decisive-question,
.rc-action-draft {
  margin-top: 12px;
  border-radius: 14px;
  padding: 13px 14px;
}

.rc-decisive-question {
  border-left: 3px solid #c79649;
  background: #fffaf1;
}

.rc-decisive-question strong,
.rc-decisive-question p,
.rc-action-draft h3,
.rc-action-draft p {
  margin: 0;
}

.rc-decisive-question p {
  margin-top: 6px;
  line-height: 1.65;
}

.rc-action-draft {
  border: 1px solid rgba(57, 96, 76, 0.18);
  background: #f7fbf8;
}

.rc-action-meta,
.rc-action-status {
  display: inline-flex;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #e9f3ed;
  color: #37644d;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.rc-action-draft h3 {
  font-size: 16px;
}

.rc-action-draft ol {
  margin: 9px 0;
  padding-left: 20px;
}

.rc-action-draft .rc-save-action {
  margin-top: 11px;
}

.rc-saved-action {
  align-items: flex-start;
}

.rc-saved-action > div:first-child {
  flex: 1;
  min-width: 0;
}

.rc-saved-action ol {
  margin: 8px 0;
  padding-left: 20px;
}

.rc-saved-action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rc-action-result {
  margin: 9px 0 0;
  border-top: 1px solid rgba(28, 55, 44, 0.1);
  padding-top: 8px;
}

.rc-action-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(25, 36, 31, 0.28);
}

.rc-action-dialog::backdrop {
  background: rgba(24, 31, 28, 0.42);
}

.rc-action-dialog-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.rc-action-dialog-card h2,
.rc-action-dialog-card p {
  margin: 0;
}

.rc-action-dialog-card label,
.rc-action-dialog-card fieldset {
  display: grid;
  gap: 7px;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.rc-action-dialog-card fieldset label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.rc-action-dialog-card input[type="text"],
.rc-action-dialog-card input:not([type]),
.rc-action-dialog-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(35, 58, 48, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  color: inherit;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.rc-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

@media (max-width: 600px) {
  .rc-expert-badge {
    max-width: 78px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.15;
  }

  .rc-decisive-question,
  .rc-action-draft {
    padding: 11px 12px;
  }

  .rc-saved-action {
    display: grid;
  }

  .rc-action-dialog-card {
    padding: 18px;
  }
}

/* V0.1 mobile closure: keep saved RC/EAC actions and bottom controls readable. */
:root {
  --visual-viewport-height: 100vh;
  --visual-viewport-width: 100vw;
  --visual-viewport-offset-top: 0px;
  --keyboard-inset: 0px;
}

@supports (height: 100dvh) {
  :root {
    --visual-viewport-height: 100dvh;
  }
}

.action-row.rc-saved-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.action-row.rc-saved-action > div:first-child {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.action-row.rc-saved-action > div:first-child > strong,
.action-row.rc-saved-action > div:first-child > small {
  display: block;
  max-width: 100%;
}

.action-row.rc-saved-action .eac-action-source {
  overflow-wrap: break-word;
  word-break: normal;
}

.rc-action-dialog {
  max-height: calc(var(--visual-viewport-height, 100vh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
}

.rc-action-dialog-card {
  max-height: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: max(22px, calc(12px + env(safe-area-inset-bottom)));
}

.rc-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-top: 10px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
}

@media (max-width: 820px) {
  .workspace {
    height: var(--visual-viewport-height, 100vh);
  }

  .unified-core-mode .messages {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    scroll-padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .action-row.rc-saved-action {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rc-saved-action-controls {
    justify-content: flex-start;
  }

  .rc-saved-action-controls .mini-button,
  .eac-card-actions button,
  .eac-action-buttons button,
  .rc-dialog-actions button {
    min-height: 44px;
  }

  .rc-action-dialog {
    width: calc(100vw - 20px);
  }

  .rc-action-dialog-card {
    padding: 18px 16px max(18px, calc(10px + env(safe-area-inset-bottom)));
  }

  .rc-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Xiaodie vNext V0.2 frozen mobile visual layer.
   Source: _inputs/xiaodie_vnext_v02_package/expected_vnext + 07_DESIGN_SYSTEM.md.
   Keep every rule scoped to the V0.2 body so ordinary/legacy shells remain unchanged. */
body.vnext-v02 {
  --xd-title: #203A5F;
  --xd-ink: #243044;
  --xd-muted: #6B7685;
  --xd-bg: #F6F3ED;
  --xd-surface: #FFFFFF;
  --xd-surface-subtle: #FBF8F3;
  --xd-line: #D9D4CC;
  --xd-cta: #A95416;
  --xd-cta-active: #8F4612;
  --xd-cta-soft: #FFF1E6;
  --xd-expert: #176F68;
  --xd-expert-line: #9CCFC8;
  --xd-expert-soft: #E8F4F1;
  --xd-error: #B84E3C;
  --xd-error-soft: #FFF2EF;
  --xd-warning: #8A5A14;
  --xd-warning-soft: #FFF7E8;
  --vnext-bg: var(--xd-bg);
  --vnext-surface: var(--xd-surface);
  --vnext-surface-warm: var(--xd-surface-subtle);
  --vnext-surface-expert: var(--xd-expert-soft);
  --vnext-ink: var(--xd-ink);
  --vnext-muted: var(--xd-muted);
  --vnext-line: var(--xd-line);
  --vnext-accent: var(--xd-cta);
  --vnext-accent-deep: var(--xd-cta-active);
  --vnext-teal: var(--xd-expert);
  --vnext-teal-soft: var(--xd-expert-soft);
  --vnext-success: #2e8a65;
  --vnext-warning: var(--xd-warning);
  --vnext-danger: var(--xd-error);
  --vnext-shadow: 0 14px 38px rgba(83, 62, 34, 0.1);
  --vnext-shadow-light: 0 6px 18px rgba(79, 58, 34, 0.06);
  --vnext-radius-xl: 24px;
  --vnext-radius-lg: 22px;
  --vnext-radius-md: 16px;
  --vnext-radius-sm: 12px;
  --bg: var(--vnext-bg);
  --panel: var(--vnext-surface);
  --panel-warm: var(--vnext-surface-warm);
  --text: var(--vnext-ink);
  --muted: var(--vnext-muted);
  --line: var(--vnext-line);
  --primary: var(--vnext-accent);
  --primary-deep: var(--vnext-accent-deep);
  --primary-soft: var(--xd-cta-soft);
  min-width: 0;
  overflow-x: hidden;
  color: var(--vnext-ink);
  background: var(--xd-bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

body.vnext-v02 .app-shell,
body.vnext-v02 .workspace,
body.vnext-v02 .chat-view,
body.vnext-v02 .my-view,
body.vnext-v02 .topbar,
body.vnext-v02 .starter-band,
body.vnext-v02 .messages,
body.vnext-v02 .composer,
body.vnext-v02 .composer-box,
body.vnext-v02 .asset-grid,
body.vnext-v02 .asset-panel,
body.vnext-v02 .eac-panel,
body.vnext-v02 .rc-action-draft,
body.vnext-v02 .vnext-lifecycle-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vnext-v02 .workspace {
  width: min(100%, 430px);
  border-color: rgba(234, 223, 206, 0.88);
  border-radius: 28px;
  background: var(--xd-bg);
  box-shadow: 0 22px 58px rgba(83, 62, 34, 0.14);
}

body.vnext-v02 .chat-view,
body.vnext-v02 .my-view {
  color: var(--vnext-ink);
  background: var(--xd-bg);
}

body.vnext-v02 .chat-view.home-empty {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.vnext-v02 .chat-view:not(.home-empty) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.vnext-v02.eac-expert-mode .chat-view:not(.home-empty),
body.vnext-v02 .chat-view.tester-tools-visible {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

body.vnext-v02.eac-expert-mode .chat-view:not(.home-empty).tester-tools-visible {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

body.vnext-v02 .topbar {
  min-height: calc(58px + env(safe-area-inset-top));
  padding: max(8px, env(safe-area-inset-top)) 14px 8px;
  gap: 9px;
  border-bottom: 1px solid rgba(180, 150, 110, 0.18);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body.vnext-v02 .drawer-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--vnext-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

body.vnext-v02 .drawer-toggle span {
  width: 17px;
  background: #463d34;
}

body.vnext-v02 .title-block {
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

body.vnext-v02 .topbar .avatar-mark.compact {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 119, 24, 0.18);
  background: linear-gradient(145deg, #fff2dc, #f5c88d);
  box-shadow: none;
}

body.vnext-v02 .topbar h1 {
  color: var(--xd-title);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
}

body.vnext-v02 .topbar p {
  max-width: 150px;
  margin-top: 3px;
  color: var(--vnext-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.vnext-v02 .topbar-actions {
  flex: 0 0 auto;
  gap: 6px;
}

body.vnext-v02 .topbar .ghost-button,
body.vnext-v02 .eac-expert-badge,
body.vnext-v02 .rc-expert-badge,
body.vnext-v02 .tester-mode-badge {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 999px;
  background: var(--xd-expert-soft);
  color: var(--vnext-teal);
  box-shadow: none;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

body.vnext-v02 .topbar .ghost-button {
  border-color: var(--vnext-line);
  background: #fff;
  color: #705d48;
}

body.vnext-v02.eac-expert-mode.rc-expert-mode .rc-expert-badge {
  display: none;
}

body.vnext-v02 .eac-test-boundary-banner {
  margin: 6px 16px 0;
  padding: 6px 10px;
  border-color: rgba(181, 107, 23, 0.24);
  border-radius: 12px;
  background: rgba(255, 249, 240, 0.88);
  color: #8f672f;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}

body.vnext-v02 .eac-boundary-details,
body.vnext-v02 details.eac-test-boundary-banner {
  justify-self: end;
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vnext-muted);
}

body.vnext-v02 .eac-boundary-details > summary,
body.vnext-v02 details.eac-test-boundary-banner > summary {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 3px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vnext-muted);
  font-size: 9px;
  font-weight: 680;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

body.vnext-v02 .eac-boundary-details > summary::-webkit-details-marker,
body.vnext-v02 details.eac-test-boundary-banner > summary::-webkit-details-marker {
  display: none;
}

body.vnext-v02 .eac-boundary-details > :not(summary),
body.vnext-v02 details.eac-test-boundary-banner > :not(summary) {
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(181, 107, 23, 0.2);
  border-radius: 12px;
  background: rgba(255, 249, 240, 0.94);
  color: #8f672f;
  font-size: 10px;
  line-height: 1.45;
}

body.vnext-v02 .chat-view.home-empty > .eac-boundary-details {
  display: none;
}

body.vnext-v02 .vnext-storage-recovery-alert {
  margin: 8px 16px 0;
  padding: 10px 12px;
  border: 1px solid #d8a56a;
  border-radius: 14px;
  background: #fff7ec;
  color: #7d4c1f;
  font-size: 12px;
  line-height: 1.45;
}

body.vnext-v02 .vnext-storage-recovery-alert strong,
body.vnext-v02 .vnext-storage-recovery-alert span {
  display: block;
}

/* Home: one closed first screen at 390 x 844, using the frozen 2 x 2 scene rhythm. */
body.vnext-v02 .chat-view.home-empty .starter-band {
  min-height: 0;
  padding: 14px 16px 8px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

body.vnext-v02 .home-hero {
  position: relative;
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 18px 18px 16px;
  overflow: hidden;
  text-align: left;
}

body.vnext-v02 .home-hero::before {
  inset: 0;
  border: 1px solid #f0ddc4;
  border-radius: var(--vnext-radius-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(225, 145, 64, 0.16), transparent 35%),
    linear-gradient(145deg, #fffdf9, #f8ebdb);
  box-shadow: var(--vnext-shadow);
}

body.vnext-v02 .home-hero::after,
body.vnext-v02 .home-hero .hero-avatar,
body.vnext-v02 .home-hero .hero-line {
  display: none;
}

body.vnext-v02 .home-hero h2 {
  max-width: 330px;
  color: var(--vnext-ink);
  font-size: 25px;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body.vnext-v02 .home-hero h2 > span,
body.vnext-v02 .home-hero h2 > strong {
  display: block;
  color: inherit;
  white-space: normal;
  font: inherit;
  font-weight: inherit;
}

body.vnext-v02 .home-hero p {
  max-width: 320px;
  margin-top: 8px;
  color: #756b62;
  font-size: 12px;
  line-height: 1.5;
}

body.vnext-v02 .starter-title {
  margin: 12px 2px 8px;
  color: #6f655c;
  font-size: 12px;
  font-weight: 800;
}

body.vnext-v02 .starter-list,
body.vnext-v02.unified-core-mode .starter-list,
body.vnext-v02.chengwen-cocreation-mode .starter-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

body.vnext-v02 .starter-chip,
body.vnext-v02.unified-core-mode .starter-chip,
body.vnext-v02.chengwen-cocreation-mode .starter-chip {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  padding: 11px 10px;
  overflow: hidden;
  border: 1px solid var(--vnext-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--vnext-shadow-light);
  color: var(--vnext-ink);
  text-align: left;
}

body.vnext-v02 .starter-chip::after {
  display: none;
  content: none;
}

body.vnext-v02 .starter-chip .starter-icon,
body.vnext-v02.unified-core-mode .starter-chip .starter-icon {
  width: 30px;
  height: 30px;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  margin: 0;
  border-radius: 11px;
  background: #fff3e4;
  color: var(--vnext-accent);
}

body.vnext-v02 .starter-chip strong,
body.vnext-v02.unified-core-mode .starter-chip strong {
  grid-column: 2;
  grid-row: 1;
  color: var(--vnext-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

body.vnext-v02 .starter-chip span,
body.vnext-v02.unified-core-mode .starter-chip span {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box;
  margin-top: 3px;
  padding: 0;
  overflow: hidden;
  color: #8a7d70;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.vnext-v02 .secondary-scene-panel {
  margin-top: 7px;
  border-top: 1px solid rgba(234, 223, 206, 0.68);
}

body.vnext-v02 .secondary-scene-panel > summary {
  min-height: 30px;
  padding: 6px 2px 3px;
  color: #998c80;
  font-size: 10px;
  line-height: 1.4;
}

/* Conversation hierarchy: light user context, white B-Lite judgment, teal Expert layer. */
body.vnext-v02 .messages {
  padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  scroll-padding: 12px 0 calc(var(--composer-height, 112px) + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

body.vnext-v02 .chat-view.has-visible-toast .messages {
  padding-bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--toast-clearance, 68px));
  scroll-padding-bottom: calc(var(--composer-height, 112px) + env(safe-area-inset-bottom) + var(--toast-clearance, 68px));
}

body.vnext-v02.vnext-my-view-active.vnext-toast-visible .my-view {
  padding-bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--toast-clearance, 68px));
}

body.vnext-v02 .message.user {
  max-width: 88%;
  padding: 11px 14px;
  border: 1px solid #e9d5bd;
  border-radius: 20px 20px 6px 20px;
  background: #f2e5d6;
  box-shadow: none;
  color: #493e35;
  font-size: 13px;
  line-height: 1.55;
}

body.vnext-v02 .message.assistant {
  gap: 8px;
}

body.vnext-v02 .message.assistant.message-plain {
  width: fit-content;
  max-width: calc(100% - 42px);
  display: block;
  margin-left: 42px;
  padding: 10px 12px;
  border: 1px solid var(--vnext-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #5f5145;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: 0 6px 16px rgba(80, 57, 31, 0.05);
}

body.vnext-v02 .assistant-body {
  padding: 16px;
  border: 1px solid var(--vnext-line);
  border-radius: var(--vnext-radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(80, 57, 31, 0.06);
}

body.vnext-v02 .answer-nail {
  margin: 0 0 12px;
  padding: 12px 13px;
  border-left: 4px solid #d9a14c;
  border-radius: 14px;
  background: #fff9f0;
  box-shadow: none;
  color: var(--vnext-ink);
  font-size: 15px;
  line-height: 1.62;
}

body.vnext-v02 .answer-section-title,
body.vnext-v02 .answer-heading {
  color: var(--vnext-accent-deep);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

body.vnext-v02 .answer-paragraph,
body.vnext-v02 .answer-list {
  color: var(--vnext-ink);
  font-size: 14px;
  line-height: 1.65;
}

body.vnext-v02 .answer-paragraph + .answer-paragraph {
  margin-top: 12px;
}

body.vnext-v02 .rc-structured-answer .answer-lead {
  color: #3f352c;
  font-weight: 500;
}

body.vnext-v02 .message.loading {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--vnext-line);
  border-radius: var(--vnext-radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--vnext-shadow-light);
  color: #71685f;
  font-size: 13px;
  font-style: normal;
}

body.vnext-v02 .message.loading::before {
  flex: 0 0 auto;
  background: #d39a5a;
  box-shadow: 11px 0 0 rgba(211, 154, 90, 0.72), 22px 0 0 rgba(211, 154, 90, 0.42);
}

body.vnext-v02 .vnext-judgment-label {
  margin-bottom: 7px;
  color: var(--vnext-accent-deep);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

body.vnext-v02 .my-v2-action-row.has-lifecycle-cta {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

body.vnext-v02 .my-v2-action-row .my-v2-action-cta {
  min-height: 36px;
  max-width: 112px;
  padding: 7px 10px;
  border: 1px solid var(--vnext-accent);
  border-radius: 999px;
  background: var(--vnext-accent);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

body.vnext-v02 .my-v2-action-row .my-v2-action-cta:disabled {
  border-color: var(--vnext-line);
  background: var(--vnext-surface-warm);
  color: var(--vnext-muted);
}

body.vnext-v02 .rc-decisive-question {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 4px solid #d9a14c;
  border-radius: 14px;
  background: #fff9f0;
  color: var(--vnext-ink);
}

body.vnext-v02 .eac-shell > .vnext-lifecycle-card,
body.vnext-v02 .action-row.rc-saved-action > .vnext-lifecycle-card {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--vnext-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.vnext-v02 .rc-decisive-question strong {
  color: #98713b;
  font-size: 11px;
  font-weight: 820;
}

body.vnext-v02 .rc-decisive-question p {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.58;
}

body.vnext-v02 .rc-decisive-question-use {
  margin-top: 10px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--xd-cta);
  border-radius: 17px;
  background: transparent;
  color: var(--xd-cta);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

body.vnext-v02 .rc-decisive-question-use:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--xd-cta) 38%, transparent);
  outline-offset: 2px;
}

body.vnext-v02 .rc-decisive-question.vnext-question-suspended,
body.vnext-v02 .eac-card-question.vnext-question-suspended {
  display: none;
}

/* Four-step product flow and the exact eleven-state lifecycle share one visual grammar. */
body.vnext-v02 .vnext-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  overflow: hidden;
}

body.vnext-v02 .vnext-progress-step {
  min-width: 0;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 2px;
  border-radius: 0;
  background: transparent;
  color: #a09589;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

body.vnext-v02 .vnext-progress-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.vnext-v02 .vnext-progress-step.active,
body.vnext-v02 .vnext-progress-step.is-current,
body.vnext-v02 .vnext-progress-step[aria-current="step"] {
  background: transparent;
  color: var(--vnext-accent-deep);
}

body.vnext-v02 .vnext-progress-step.done,
body.vnext-v02 .vnext-progress-step.is-complete,
body.vnext-v02 .vnext-progress-step[data-state="done"] {
  background: transparent;
  color: var(--vnext-success);
}

body.vnext-v02 .vnext-progress-dot {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eee6dc;
  color: #958777;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

body.vnext-v02 .vnext-progress-step.is-current .vnext-progress-dot,
body.vnext-v02 .vnext-progress-step[aria-current="step"] .vnext-progress-dot {
  background: var(--vnext-accent);
  color: #fff;
}

body.vnext-v02 .vnext-progress-step.is-complete .vnext-progress-dot,
body.vnext-v02 .vnext-progress-step[data-state="done"] .vnext-progress-dot {
  background: #dff0e9;
  color: var(--vnext-success);
}

/* Expert selection is secondary and low-saturation; selected content replaces the four-card list. */
body.vnext-v02 .eac-shell {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

body.vnext-v02 .eac-entry-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 18px;
  background: var(--vnext-teal-soft);
  color: var(--vnext-teal);
  font-size: 13px;
  font-weight: 820;
}

body.vnext-v02 .eac-entry-button::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: currentColor;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s ease;
}

body.vnext-v02 .eac-entry-button[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

body.vnext-v02 .eac-panel {
  margin-top: 9px;
  padding: 14px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 20px;
  background: var(--vnext-surface-expert);
  box-shadow: none;
}

body.vnext-v02 .eac-choice-label,
body.vnext-v02 .eac-status,
body.vnext-v02 .eac-card-question,
body.vnext-v02 .eac-action-editor-notice {
  margin: 0 0 10px;
  color: #5f716d;
  font-size: 12px;
  line-height: 1.55;
}

body.vnext-v02 .eac-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.vnext-v02 .eac-choice-button {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 14px;
  background: #fff;
  color: #2c5f5b;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

body.vnext-v02 .eac-card {
  padding: 0;
}

body.vnext-v02 .eac-question-preview {
  margin: 0 0 12px;
  padding: 10px 0 10px 12px;
  border-left: 3px solid #8fc7be;
}

body.vnext-v02 .eac-question-preview-label {
  display: block;
  margin-bottom: 5px;
  color: var(--vnext-teal);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
}

body.vnext-v02 .eac-question-preview .eac-card-question {
  margin: 0;
  color: var(--vnext-ink);
  font-size: 13px;
  font-weight: 700;
}

body.vnext-v02 .eac-question-preview.vnext-question-suspended {
  display: none;
}

body.vnext-v02 .eac-card-title,
body.vnext-v02 .eac-action-editor-title {
  margin: 0 0 8px;
  color: var(--vnext-teal);
  font-size: 16px;
  line-height: 1.4;
}

body.vnext-v02 .eac-selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--xd-expert-line);
  border-radius: 0;
  background: transparent;
  color: var(--vnext-teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

body.vnext-v02 .eac-selected-summary > span,
body.vnext-v02 .eac-selected-summary > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.vnext-v02 .eac-change-selection-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7c6d5c;
  font-size: 11px;
  font-weight: 700;
}

body.vnext-v02 .eac-card-actions,
body.vnext-v02 .eac-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

body.vnext-v02 .eac-card-actions .eac-use-question-button {
  grid-column: 1 / -1;
}

body.vnext-v02 .eac-card-actions button,
body.vnext-v02 .eac-action-buttons button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 15px;
  background: #fff;
  color: #5f5144;
  font-size: 12px;
  font-weight: 760;
}

body.vnext-v02 .eac-use-question-button,
body.vnext-v02 .eac-save-action-button {
  border-color: var(--vnext-teal);
  background: var(--vnext-teal);
  color: #fff;
}

body.vnext-v02 .eac-use-question-button:disabled,
body.vnext-v02 .eac-save-action-button:disabled {
  border-color: var(--xd-expert-line);
  background: var(--xd-expert-soft);
  color: var(--vnext-teal);
  opacity: 1;
  cursor: default;
}

body.vnext-v02 .eac-dismiss-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--vnext-muted) !important;
}

body.vnext-v02 .eac-status.eac-status-success {
  color: var(--vnext-success);
}

body.vnext-v02 .eac-status.eac-status-error,
body.vnext-v02 .rc-field-error {
  color: var(--vnext-danger);
}

body.vnext-v02 .eac-shell.eac-question-adopted > .eac-entry-button {
  border-color: var(--xd-expert-line);
  background: var(--xd-expert-soft);
}

/* Once the single task advances to action or execution, retire the completed
   Expert branch completely so an earlier verification cannot compete with it. */
body.vnext-v02 .chat-view:is(
  [data-r5-task-state="CHOOSE_ACTION_WINDOW"],
  [data-r5-task-state="CONFIRM_ACTION_PLAN"],
  [data-r5-task-state="WAITING_FOR_EXECUTION"],
  [data-r5-task-state="SUBMIT_EXECUTION_FEEDBACK"],
  [data-r5-task-state="CHOOSE_AFTER_REJUDGMENT"]
) .eac-shell {
  display: none !important;
}

/* The question is a read-only quote; only the independent textarea is editable. */
body.vnext-v02 .vnext-active-question {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 11px 12px;
  border: 1px solid #e3cfb2;
  border-left: 4px solid #d9a14c;
  border-radius: 14px;
  background: #fff9f0;
  color: var(--vnext-ink);
  box-shadow: var(--vnext-shadow-light);
}

body.vnext-v02 .vnext-active-question[data-question-source="expert"],
body.vnext-v02 .vnext-active-question[data-source="expert"] {
  border-color: var(--xd-expert-line);
  border-left-color: var(--vnext-teal);
  background: var(--vnext-teal-soft);
}

body.vnext-v02 .vnext-question-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #98713b;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
}

body.vnext-v02 .vnext-active-question[data-question-source="expert"] .vnext-question-label,
body.vnext-v02 .vnext-active-question[data-source="expert"] .vnext-question-label {
  color: var(--vnext-teal);
}

body.vnext-v02 .vnext-question-quote {
  margin: 0;
  color: var(--vnext-ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.vnext-v02 .vnext-question-switch {
  justify-self: start;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(132, 122, 112, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7c6d5c;
  font-size: 11px;
  font-weight: 700;
}

/* Action, feedback, rejudgment, review and footprint are one card lifecycle. */
body.vnext-v02 .rc-action-draft,
body.vnext-v02 .vnext-lifecycle-card {
  margin-top: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #ead8bf;
  border-radius: var(--vnext-radius-lg);
  background: linear-gradient(180deg, #fff, #fffaf4);
  box-shadow: var(--vnext-shadow);
  color: var(--vnext-ink);
}

body.vnext-v02 .rc-action-meta,
body.vnext-v02 .rc-action-status,
body.vnext-v02 .vnext-lifecycle-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0dc;
  color: #a85c10;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
  white-space: nowrap;
}

body.vnext-v02 .vnext-lifecycle-card[data-state="RESULT_SAVED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-state="REJUDGED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-state="REVIEWED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-state="FOOTPRINT_SAVED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-vnext-lifecycle-state="RESULT_SAVED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-vnext-lifecycle-state="REJUDGED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-vnext-lifecycle-state="REVIEWED"] .vnext-lifecycle-state,
body.vnext-v02 .vnext-lifecycle-card[data-vnext-lifecycle-state="FOOTPRINT_SAVED"] .vnext-lifecycle-state {
  background: #e5f4ee;
  color: var(--vnext-success);
}

body.vnext-v02 .rc-action-draft h3,
body.vnext-v02 .vnext-lifecycle-card h2,
body.vnext-v02 .vnext-lifecycle-card h3 {
  margin: 0;
  color: var(--vnext-ink);
  font-size: 18px;
  line-height: 1.35;
}

body.vnext-v02 .rc-action-draft ol,
body.vnext-v02 .vnext-lifecycle-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
  color: #4f453c;
  font-size: 13px;
  line-height: 1.5;
}

body.vnext-v02 .rc-action-draft p,
body.vnext-v02 .vnext-lifecycle-card p {
  color: #62574d;
  font-size: 12px;
  line-height: 1.55;
}

body.vnext-v02 .rc-action-draft p:last-of-type {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #edf7f3;
  color: #305d54;
}

body.vnext-v02 .rc-save-action,
body.vnext-v02 .vnext-primary-cta {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--vnext-accent);
  border-radius: 15px;
  background: var(--vnext-accent);
  color: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
}

body.vnext-v02 .rc-action-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}

body.vnext-v02 .rc-action-cta-row .rc-save-action {
  margin-top: 0;
}

body.vnext-v02 .rc-skip-action {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--vnext-line);
  border-radius: 15px;
  background: #fff;
  color: #5f5144;
  font-size: 12px;
  font-weight: 740;
}

body.vnext-v02 .rc-action-skip-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f0eb;
  color: var(--vnext-muted);
}

body.vnext-v02 .vnext-primary-cta[data-vnext-action="generate_weekly_review"],
body.vnext-v02 .vnext-primary-cta[data-action="generate_weekly_review"],
body.vnext-v02 .vnext-primary-cta[data-vnext-cta="generate_weekly_review"] {
  border-color: var(--vnext-accent);
  background: var(--vnext-accent);
}

body.vnext-v02 .vnext-primary-cta:disabled,
body.vnext-v02 .vnext-primary-cta[aria-disabled="true"] {
  border-color: #ddd3c6;
  background: #eee8df;
  color: #94897e;
  opacity: 1;
}

body.vnext-v02 .action-row.rc-saved-action {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--vnext-line);
  border-radius: 18px;
  background: #fff;
}

body.vnext-v02 .rc-saved-action-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

body.vnext-v02 .rc-saved-action-controls .mini-button {
  min-height: 44px;
  border: 1px solid var(--vnext-line);
  border-radius: 14px;
  background: #fff;
  color: #5f5144;
}

body.vnext-v02 .rc-saved-action-controls .vnext-primary-cta {
  min-height: 44px;
  margin: 0;
  border-color: var(--vnext-accent);
  background: var(--vnext-accent);
  color: #fff;
}

body.vnext-v02 .rc-action-result {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(46, 138, 101, 0.16);
  color: #3f6455;
}

body.vnext-v02 .rc-weekly-prerequisites,
body.vnext-v02 .weekly-card,
body.vnext-v02 .footprint-draft-panel {
  padding: 14px;
  border: 1px solid var(--vnext-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--vnext-shadow-light);
}

body.vnext-v02 .footprint-draft-panel {
  border-color: #ead9c3;
  background: #f6eee4;
}

body.vnext-v02 .footprint-save-receipt {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e5f4ee;
  color: var(--vnext-success);
  font-size: 10px;
  font-weight: 780;
}

/* The archive remains secondary: rounded cards, no internal ID pressure or one-character columns. */
body.vnext-v02 .asset-dashboard,
body.vnext-v02 .asset-panel,
body.vnext-v02 .secondary-group {
  border-color: var(--vnext-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--vnext-shadow-light);
}

body.vnext-v02 .asset-panel {
  border-radius: 20px;
}

body.vnext-v02 .asset-item,
body.vnext-v02 .asset-item > *,
body.vnext-v02 .action-row,
body.vnext-v02 .rc-saved-action {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* Composer is a safe-area-aware floating surface, with the active question above it. */
body.vnext-v02 .composer,
body.vnext-v02.unified-core-mode .composer {
  position: relative;
  z-index: 8;
  display: block;
  padding: 8px 14px max(10px, env(safe-area-inset-bottom));
  overflow: visible;
  border: 0;
  background: linear-gradient(180deg, rgba(248, 243, 235, 0), rgba(248, 243, 235, 0.98) 24%);
}

body.vnext-v02 .composer-box {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(225, 209, 189, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 36px rgba(85, 62, 35, 0.17);
  backdrop-filter: blur(18px);
}

body.vnext-v02 .composer textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 132px;
  padding: 10px 2px 8px;
  overflow-y: auto;
  color: var(--vnext-ink);
  font-size: 14px;
  line-height: 1.45;
}

body.vnext-v02 .composer textarea::placeholder {
  color: #a69c92;
}

body.vnext-v02 .composer-icon-button,
body.vnext-v02 #sendButton {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

body.vnext-v02 #sendButton {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vnext-accent);
  box-shadow: none;
}

body.vnext-v02 #sendButton:disabled {
  background: #e5ddd3;
  color: #8c8176;
  opacity: 1;
  cursor: not-allowed;
}

body.vnext-v02 .composer-hint {
  margin-top: 4px;
  color: #998c80;
  font-size: 9px;
  line-height: 1.25;
}

body.vnext-v02 .composer-compliance {
  margin-top: 2px;
  color: #a3978c;
  font-size: 9px;
  line-height: 1.25;
}

body.vnext-v02 .attachment-menu {
  border-color: var(--vnext-line);
  border-radius: 16px;
  background: var(--vnext-surface);
}

body.vnext-v02 .app-toast {
  bottom: calc(var(--composer-height, 112px) + env(safe-area-inset-bottom) + 16px);
  max-width: min(340px, calc(100vw - 32px));
  border-radius: 16px;
  line-height: 1.4;
  text-align: left;
}

/* Access, action, result and footprint dialogs use one bounded mobile surface. */
body.vnext-v02 .experience-gate {
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(47, 42, 37, 0.42);
  backdrop-filter: blur(4px);
}

body.vnext-v02 .experience-card,
body.vnext-v02 .rc-action-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(var(--visual-viewport-height, 100vh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid var(--vnext-line);
  border-radius: 22px;
  background: var(--vnext-surface);
  box-shadow: 0 24px 70px rgba(47, 42, 37, 0.28);
}

body.vnext-v02 .experience-card {
  overflow-y: auto;
  padding: 22px 20px max(18px, env(safe-area-inset-bottom));
}

body.vnext-v02 .rc-action-dialog::backdrop {
  background: rgba(47, 42, 37, 0.46);
  backdrop-filter: blur(3px);
}

body.vnext-v02 .rc-action-dialog-card {
  gap: 14px;
  max-height: inherit;
  padding: 22px 20px max(18px, calc(10px + env(safe-area-inset-bottom)));
  overflow: auto;
  background: var(--vnext-surface);
  overscroll-behavior: contain;
}

body.vnext-v02 .rc-action-dialog-card h2 {
  color: var(--vnext-ink);
  font-size: 20px;
  line-height: 1.3;
}

body.vnext-v02 .rc-action-dialog-card input[type="text"],
body.vnext-v02 .rc-action-dialog-card input[type="password"],
body.vnext-v02 .rc-action-dialog-card input:not([type]),
body.vnext-v02 .rc-action-dialog-card textarea,
body.vnext-v02 .experience-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ddd2c2;
  border-radius: 12px;
  background: #fff;
  color: var(--vnext-ink);
  font-size: 16px;
  line-height: 1.4;
}

body.vnext-v02 .rc-result-detail-field {
  display: grid;
  gap: 7px;
}

body.vnext-v02 .rc-result-detail-field > span:first-child {
  color: var(--vnext-ink);
  font-weight: 760;
}

body.vnext-v02 .rc-result-detail-field > span:first-child strong {
  color: var(--vnext-danger);
  font-size: 12px;
}

body.vnext-v02 .rc-field-help,
body.vnext-v02 .rc-field-error {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

body.vnext-v02 .rc-field-help {
  color: var(--vnext-muted);
}

body.vnext-v02 .rc-result-detail-field textarea[aria-invalid="true"] {
  border-color: var(--vnext-danger);
  box-shadow: 0 0 0 3px rgba(184, 78, 60, 0.12);
}

body.vnext-v02 .rc-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 9px;
  padding-top: 10px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--vnext-surface);
}

body.vnext-v02 .rc-dialog-actions button,
body.vnext-v02 .experience-submit {
  min-height: 44px;
  border-radius: 14px;
}

body.vnext-v02 .rc-dialog-actions .mini-button,
body.vnext-v02 .experience-submit {
  border-color: var(--vnext-accent);
  background: var(--vnext-accent);
  color: #fff;
}

body.vnext-v02 :where(button, textarea, input, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(23, 111, 104, 0.28);
  outline-offset: 2px;
}

body.vnext-v02 :where(
  .drawer-toggle,
  .topbar .ghost-button,
  .eac-entry-button,
  .eac-change-selection-button,
  .eac-dismiss-button,
  .vnext-question-switch,
  .secondary-scene-panel > summary,
  .attachment-item > button,
  #stopAttachmentRecording
) {
  min-height: 44px;
}

body.vnext-v02 .attachment-item > button {
  min-width: 44px;
  width: 44px;
  height: 44px;
}

@media (max-width: 820px) {
  body.vnext-v02 .app-shell {
    min-height: var(--visual-viewport-height, 100vh);
    padding: 0;
  }

  body.vnext-v02 .workspace {
    width: 100%;
    height: var(--visual-viewport-height, 100vh);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 430px) {
  body.vnext-v02 .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.vnext-v02 .topbar p {
    max-width: 126px;
  }

  body.vnext-v02 .chat-view.home-empty .starter-band,
  body.vnext-v02 .messages,
  body.vnext-v02 .asset-grid,
  body.vnext-v02 .secondary-assets.grouped {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.vnext-v02 .home-hero {
    min-height: 142px;
    padding: 16px;
  }

  body.vnext-v02 .home-hero h2 {
    font-size: 24px;
  }

  body.vnext-v02 .starter-chip,
  body.vnext-v02.unified-core-mode .starter-chip,
  body.vnext-v02.chengwen-cocreation-mode .starter-chip {
    min-height: 76px;
    padding: 10px 9px;
  }

  body.vnext-v02 .composer {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.vnext-v02 .composer-box {
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  body.vnext-v02 .eac-card-actions,
  body.vnext-v02 .eac-action-buttons {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 380px) {
  body.vnext-v02 .topbar {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  body.vnext-v02 .topbar .avatar-mark.compact {
    width: 32px;
    height: 32px;
  }

  body.vnext-v02 .topbar h1 {
    font-size: 17px;
  }

  body.vnext-v02 .topbar p {
    display: none;
  }

  body.vnext-v02 .topbar .ghost-button,
  body.vnext-v02 .eac-expert-badge,
  body.vnext-v02 .rc-expert-badge,
  body.vnext-v02 .tester-mode-badge {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }

  body.vnext-v02 .chat-view.home-empty .starter-band {
    padding-top: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.vnext-v02 .home-hero {
    min-height: 134px;
    padding: 14px;
  }

  body.vnext-v02 .home-hero h2 {
    font-size: 22px;
  }

  body.vnext-v02 .home-hero p {
    font-size: 11px;
  }

  body.vnext-v02 .starter-list,
  body.vnext-v02.unified-core-mode .starter-list,
  body.vnext-v02.chengwen-cocreation-mode .starter-list {
    gap: 7px;
  }

  body.vnext-v02 .starter-chip,
  body.vnext-v02.unified-core-mode .starter-chip,
  body.vnext-v02.chengwen-cocreation-mode .starter-chip {
    min-height: 72px;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 7px;
    padding: 8px;
  }

  body.vnext-v02 .starter-chip .starter-icon,
  body.vnext-v02.unified-core-mode .starter-chip .starter-icon {
    width: 28px;
    height: 28px;
  }

  body.vnext-v02 .starter-chip strong,
  body.vnext-v02.unified-core-mode .starter-chip strong {
    font-size: 13px;
  }

  body.vnext-v02 .composer-box {
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    gap: 4px;
  }

  body.vnext-v02 .composer-icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  body.vnext-v02 #sendButton {
    width: 44px;
    height: 44px;
  }

  body.vnext-v02 .vnext-progress-step {
    gap: 3px;
    font-size: 9px;
  }
}

@media (max-width: 430px) and (max-height: 720px) {
  body.vnext-v02 .chat-view.home-empty .starter-band {
    padding-top: 7px;
  }

  body.vnext-v02 .home-hero {
    min-height: 116px;
    padding: 12px 14px;
  }

  body.vnext-v02 .home-hero h2 {
    font-size: 20px;
  }

  body.vnext-v02 .home-hero p {
    margin-top: 5px;
    font-size: 10px;
  }

  body.vnext-v02 .starter-title {
    margin-top: 7px;
    margin-bottom: 5px;
  }

  body.vnext-v02 .starter-chip,
  body.vnext-v02.unified-core-mode .starter-chip,
  body.vnext-v02.chengwen-cocreation-mode .starter-chip {
    min-height: 62px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body.vnext-v02 .secondary-scene-panel {
    margin-top: 3px;
  }
}

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

/* Expert Assist single-line progressive enhancement: one Xiaodie, one current task. */
body.vnext-v02 .eac-entry-wrap {
  display: grid;
  gap: 4px;
}

body.vnext-v02 .eac-entry-button {
  min-height: 44px;
  padding: 9px 12px;
  border-color: var(--xd-expert-line);
  border-radius: 14px;
  background: var(--xd-expert-soft);
  font-size: 12px;
}

body.vnext-v02 .eac-entry-hint,
body.vnext-v02 .eac-card-intro {
  margin: 0;
  color: #72807d;
  font-size: 11px;
  line-height: 1.45;
}

body.vnext-v02 .eac-entry-hint {
  padding: 0 4px;
}

body.vnext-v02 .eac-zero-card-message {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 14px;
  background: var(--xd-expert-soft);
  color: #476a65;
  font-size: 12px;
  line-height: 1.55;
}

body.vnext-v02 .eac-choice-list-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.vnext-v02 .eac-choice-list-compact .eac-choice-button {
  min-height: 44px;
  padding: 8px 10px;
}

body.vnext-v02 .eac-card-title {
  margin-bottom: 2px;
  font-size: 15px;
}

body.vnext-v02 .eac-card-intro {
  margin-bottom: 10px;
}

body.vnext-v02 .eac-selected-summary {
  min-height: 0;
  padding-bottom: 8px;
}

body.vnext-v02 .eac-cannot-infer {
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid var(--xd-expert-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #5e6866;
  font-size: 11px;
  line-height: 1.55;
}

body.vnext-v02 .eac-cannot-infer strong {
  color: #355f5a;
}

body.vnext-v02 .eac-card-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.vnext-v02 .eac-card-actions .eac-use-question-button {
  grid-column: 1 / -1;
  border-color: var(--vnext-accent);
  background: var(--vnext-accent);
  color: #fff;
}

body.vnext-v02 .eac-card-actions .eac-change-selection-button,
body.vnext-v02 .eac-card-actions .eac-dismiss-button {
  width: 100%;
  min-height: 44px !important;
  grid-column: auto;
  justify-self: stretch;
  border: 1px solid var(--xd-expert-line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #5f6b68 !important;
}

body.vnext-v02 .eac-card-actions .eac-change-selection-button[hidden] ~ .eac-dismiss-button {
  grid-column: 1 / -1;
}

body.vnext-v02 .vnext-question-adopted-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(23, 111, 104, 0.15);
  color: var(--vnext-teal);
  font-size: 10px;
  font-weight: 760;
}

body.vnext-v02 .vnext-question-adopted-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.vnext-v02 .vnext-question-adopted-summary button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--vnext-teal);
}

body.vnext-v02 .vnext-question-title {
  color: var(--vnext-ink);
  font-size: 13px;
  line-height: 1.35;
}

body.vnext-v02 .vnext-question-label {
  justify-content: flex-start;
  color: #806f5b;
  font-size: 10px;
  font-weight: 600;
}

body.vnext-v02 .vnext-judgment-hint,
body.vnext-v02 .vnext-update-helper,
body.vnext-v02 .eac-update-helper {
  margin: -2px 0 10px;
  color: var(--vnext-muted);
  font-size: 11px;
  line-height: 1.45;
}

body.vnext-v02 .vnext-judgment-more,
body.vnext-v02 .vnext-update-original {
  margin-top: 10px;
  border-top: 1px solid var(--vnext-line);
}

body.vnext-v02 .vnext-judgment-more > summary,
body.vnext-v02 .vnext-update-original > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #776b60;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

body.vnext-v02 .vnext-current-judgment-preview,
body.vnext-v02 .vnext-current-judgment-full,
body.vnext-v02 .vnext-completed-question,
body.vnext-v02 .vnext-update-question-trace,
body.vnext-v02 .rc-action-question-trace {
  overflow-wrap: anywhere;
  color: #51483f;
  font-size: 13px;
  line-height: 1.6;
}

body.vnext-v02 .vnext-current-judgment-preview {
  margin: 0;
}

body.vnext-v02 .vnext-completed-stage,
body.vnext-v02 .eac-action-history {
  width: 100%;
  border: 1px solid #e5ddd3;
  border-radius: 14px;
  background: #faf7f2;
}

body.vnext-v02 .vnext-completed-stage > summary,
body.vnext-v02 .eac-action-history > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: #776b60;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.4;
  cursor: pointer;
}

body.vnext-v02 .vnext-completed-stage-content,
body.vnext-v02 .eac-action-history-content {
  padding: 0 12px 12px;
}

body.vnext-v02 .vnext-completed-question,
body.vnext-v02 .vnext-update-question-trace,
body.vnext-v02 .rc-action-question-trace {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #8fc5bb;
  border-radius: 8px;
  background: #f4faf8;
  color: #476a65;
  font-size: 11px;
}

body.vnext-v02 .vnext-judgment-update {
  border-color: #d9ddd8;
  background: #fff;
}

body.vnext-v02 .vnext-judgment-update > :where(section, details) + :where(section, details) {
  margin-top: 12px;
}

body.vnext-v02 .vnext-update-fact,
body.vnext-v02 .vnext-update-current,
body.vnext-v02 .vnext-update-boundary {
  padding: 0 0 12px;
  border-bottom: 1px solid #ece6de;
}

body.vnext-v02 .vnext-update-fact h3,
body.vnext-v02 .vnext-update-current h3,
body.vnext-v02 .vnext-update-boundary h3,
body.vnext-v02 .eac-update-action > h3 {
  margin: 0 0 7px;
  color: #62564b;
  font-size: 12px;
  font-weight: 820;
}

body.vnext-v02 .vnext-update-fact p,
body.vnext-v02 .vnext-update-boundary p,
body.vnext-v02 .vnext-update-original p {
  margin: 0;
  color: #51483f;
  font-size: 13px;
  line-height: 1.6;
}

body.vnext-v02 .vnext-update-boundary {
  border-bottom: 0;
}

body.vnext-v02 .vnext-update-boundary p {
  color: #536b67;
}

body.vnext-v02 .eac-update-action {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e6d7c4;
  border-radius: 16px;
  background: #fffaf3;
}

body.vnext-v02 .eac-update-action-candidate {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e6d7c4;
  border-radius: 16px;
  background: #fffaf3;
}

body.vnext-v02 .eac-update-action-candidate h3,
body.vnext-v02 .eac-update-action-candidate p {
  margin: 0;
}

body.vnext-v02 .r31-plan-affordance {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(184, 106, 25, 0.2);
  border-radius: 16px;
  background: rgba(255, 249, 239, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.vnext-v02 .r31-plan-affordance p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

body.vnext-v02 .r31-organize-plan {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(181, 88, 8, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #a44d07;
  font: inherit;
  font-weight: 750;
}

body.vnext-v02 .r31-organize-plan:disabled {
  opacity: 0.55;
}

@media (max-width: 480px) {
  body.vnext-v02 .r31-plan-affordance {
    align-items: stretch;
    flex-direction: column;
  }

  body.vnext-v02 .r31-organize-plan {
    align-self: flex-start;
  }
}

body.vnext-v02 .eac-update-action-candidate h3 {
  color: #62564b;
  font-size: 12px;
}

body.vnext-v02 .eac-update-action-candidate p {
  color: var(--vnext-ink);
  font-size: 14px;
  line-height: 1.5;
}

body.vnext-v02 .eac-organize-plan {
  min-height: 44px;
  border: 1px solid var(--vnext-accent);
  border-radius: 14px;
  background: #fff;
  color: var(--vnext-accent-deep);
  font-weight: 780;
}

body.vnext-v02 .eac-update-action.is-stale {
  padding: 0;
  border-color: #e5ddd3;
  background: #faf7f2;
}

body.vnext-v02 .eac-update-action.is-stale .eac-action-history {
  border: 0;
  background: transparent;
}

body.vnext-v02 .eac-update-action > h4 {
  margin: 0;
  color: var(--vnext-ink);
  font-size: 16px;
  line-height: 1.4;
}

body.vnext-v02 .eac-update-action ol {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding-left: 20px;
  color: #4f453c;
  font-size: 12px;
  line-height: 1.55;
}

body.vnext-v02 .eac-update-signal,
body.vnext-v02 .eac-update-horizon,
body.vnext-v02 .eac-update-skip-note {
  margin: 7px 0 0;
  color: #665b50;
  font-size: 11px;
  line-height: 1.5;
}

body.vnext-v02 .eac-update-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

body.vnext-v02 .eac-update-action-buttons button {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 780;
}

body.vnext-v02 .eac-update-save {
  border: 1px solid var(--vnext-accent);
  background: var(--vnext-accent);
  color: #fff;
}

body.vnext-v02 .eac-update-save:disabled {
  border-color: #d9d0c5;
  background: #eee8e0;
  color: #80766d;
}

body.vnext-v02 .eac-update-skip {
  border: 1px solid #ded4c7;
  background: #fff;
  color: #786d62;
}

/* 2026-08-31 conversation orchestration closure: one compact current task. */
body.vnext-v02 .vnext-active-question {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 4px 6px 4px 9px;
  border-left-width: 3px;
  border-radius: 11px;
  box-shadow: none;
}

body.vnext-v02 .vnext-current-task-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex: 1 1 auto;
}

body.vnext-v02 .vnext-current-task-copy .vnext-question-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 9px;
}

body.vnext-v02 .vnext-current-task-copy .vnext-question-quote {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #554a40;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.vnext-v02 .vnext-current-task-copy.is-complete-question {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  padding: 3px 2px;
}

body.vnext-v02 .vnext-current-task-copy.is-complete-question .vnext-question-quote {
  overflow: visible;
  color: var(--xd-ink, #243044);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
}

/* Action/review phases have their only operation inside the current card.
   Remove the inactive composer so it cannot read as a competing task. */
body.vnext-v02 #chatView:is(
  [data-r5-task-state="CHOOSE_ACTION_WINDOW"],
  [data-r5-task-state="CONFIRM_ACTION_PLAN"],
  [data-r5-task-state="WAITING_FOR_EXECUTION"],
  [data-r5-task-state="SUBMIT_EXECUTION_FEEDBACK"],
  [data-r5-task-state="CHOOSE_AFTER_REJUDGMENT"]
) > .composer {
  display: none;
}

body.vnext-v02 .vnext-voice-fallback-dialog .rc-dialog-actions {
  grid-template-columns: minmax(0, 1fr);
}

body.vnext-v02 .vnext-current-task-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

body.vnext-v02 .vnext-current-task-actions button {
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #76695d;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

body.vnext-v02 .vnext-current-task-actions .vnext-direct-advice {
  color: var(--vnext-accent-deep);
}

body.vnext-v02 .rc-decisive-question.vnext-question-current-in-flow,
body.vnext-v02 .eac-question-preview.vnext-question-current-in-flow {
  outline: 2px solid rgba(217, 119, 24, 0.16);
  outline-offset: 3px;
}

body.vnext-v02 .eac-question-preview.vnext-question-current-in-flow {
  outline-color: rgba(23, 111, 104, 0.18);
}

body.vnext-v02 .rc-skip-action,
body.vnext-v02 .eac-update-skip {
  display: none !important;
}

body.vnext-v02 .rc-action-cta-row,
body.vnext-v02 .eac-update-action-buttons {
  grid-template-columns: minmax(0, 1fr);
}

body.vnext-v02 .vnext-completed-message-stage {
  margin: 0;
  box-shadow: none;
}

body.vnext-v02 .vnext-voice-fallback-dialog::backdrop {
  background: rgba(47, 42, 37, 0.38);
  backdrop-filter: blur(3px);
}

body.vnext-v02 .vnext-voice-fallback-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

body.vnext-v02 .vnext-voice-fallback-card p {
  margin: 0;
  color: #5f554c;
  font-size: 13px;
  line-height: 1.65;
}

body.vnext-v02 .vnext-voice-fallback-card .vnext-voice-fallback-note {
  margin-top: 8px;
  color: var(--vnext-muted);
  font-size: 11px;
}

@media (max-width: 820px) {
  body.vnext-v02 .chat-view:not(.home-empty) .composer,
  body.vnext-v02.unified-core-mode .chat-view:not(.home-empty) .composer {
    padding: 3px 10px max(4px, env(safe-area-inset-bottom));
  }

  body.vnext-v02 .chat-view:not(.home-empty) .composer-box {
    min-height: 50px;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 20px;
  }

  body.vnext-v02 .chat-view:not(.home-empty) .composer textarea {
    min-height: 44px;
    max-height: 92px;
    padding: 8px 1px 6px;
    font-size: 13px;
  }

  body.vnext-v02 .chat-view:not(.home-empty) .composer-icon-button,
  body.vnext-v02 .chat-view:not(.home-empty) #sendButton {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  body.vnext-v02 .chat-view:not(.home-empty) .composer-hint,
  body.vnext-v02 .chat-view:not(.home-empty) .composer-compliance {
    display: none;
  }

  body.vnext-v02.vnext-keyboard-open .eac-shell,
  body.vnext-v02.vnext-keyboard-open .feedback-bar-lite,
  body.vnext-v02.vnext-keyboard-open .rehearsal-entry-points,
  body.vnext-v02.vnext-keyboard-open .eac-test-boundary-banner,
  body.vnext-v02.vnext-keyboard-open .voice-status:not(.visible) {
    display: none !important;
  }

  body.vnext-v02.vnext-keyboard-open .messages {
    scroll-padding-bottom: calc(var(--composer-height, 80px) + 8px);
  }
}

@media (max-width: 380px) {
  body.vnext-v02 .vnext-current-task-copy .vnext-question-quote {
    max-width: 84px;
  }

  body.vnext-v02 .vnext-current-task-actions button {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  body.vnext-v02 .eac-choice-list-compact {
    grid-template-columns: 1fr;
  }

  body.vnext-v02 .eac-update-action-buttons {
    grid-template-columns: 1fr;
  }
}

/* MVP V0.3 · one event, one action, one next step */
.v03-action-card,
.v03-rejudgment-card,
.v03-due-reminder,
[data-v03-my-section] {
  color: var(--xd-ink);
  background: var(--xd-surface);
  border: 1px solid rgba(38, 62, 89, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(42, 48, 56, 0.06);
}

.v03-action-card,
.v03-rejudgment-card {
  margin-top: 14px;
  padding: 16px;
}

.v03-action-eyebrow,
.v03-rejudgment-eyebrow {
  margin: 0 0 5px;
  color: var(--xd-cta);
  font-size: 12px;
  font-weight: 700;
}

.v03-action-card h3,
.v03-rejudgment-card h3 {
  margin: 0;
  color: var(--xd-title);
  font-size: 18px;
}

.v03-action-card h4 {
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.45;
}

.v03-action-card ol {
  margin: 8px 0 10px;
  padding-left: 22px;
  color: var(--xd-ink);
  line-height: 1.65;
}

.v03-action-signal,
.v03-action-question-trace,
.v03-action-receipt,
.v03-rejudgment-question,
.v03-rejudgment-receipt {
  margin: 9px 0 0;
  color: var(--xd-muted);
  font-size: 13px;
  line-height: 1.6;
}

.v03-action-question-trace {
  padding: 9px 11px;
  color: var(--xd-expert);
  background: var(--xd-expert-soft);
  border-radius: 11px;
}

.v03-action-window-picker {
  display: block;
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.v03-action-window-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.v03-action-window-picker legend {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  margin-bottom: 7px;
  color: var(--xd-muted);
  font-size: 12px;
}

.v03-action-window-picker button,
.v03-rejudgment-choices button,
.v03-due-reminder-actions button,
[data-v03-my-section] button,
.v03-my-more button {
  min-height: 44px;
  padding: 7px 10px;
  color: var(--xd-ink);
  background: var(--xd-surface);
  border: 1px solid rgba(38, 62, 89, 0.16);
  border-radius: 11px;
  font: inherit;
  cursor: pointer;
}

.v03-action-window-picker button[aria-pressed="true"] {
  color: var(--xd-cta-active);
  background: var(--xd-cta-soft);
  border-color: var(--xd-cta);
}

.v03-action-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.v03-primary-cta,
.v03-action-card .v03-primary-cta,
.v03-rejudgment-card .v03-primary-cta,
.v03-due-reminder .v03-primary-cta {
  min-height: 44px;
  padding: 9px 18px;
  color: #fff;
  background: var(--xd-cta);
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(169, 84, 22, 0.2);
}

.v03-primary-cta:not(:disabled):active {
  background: var(--xd-cta-active);
}

.v03-primary-cta:disabled {
  color: var(--xd-muted);
  background: var(--xd-bg);
  box-shadow: none;
  cursor: not-allowed;
}

.v03-related-methods,
.v03-event-timeline,
.v03-retired-action {
  margin-top: 12px;
  padding-top: 9px;
  color: var(--xd-muted);
  border-top: 1px solid rgba(38, 62, 89, 0.1);
  font-size: 12px;
}

.v03-event-timeline ol {
  margin: 8px 0 0;
  padding-left: 21px;
}

.v03-event-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}

.v03-action-card.is-retired {
  padding: 10px 14px;
  background: var(--xd-bg);
  box-shadow: none;
}

.v03-rejudgment-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v03-rejudgment-choices button:last-child {
  color: var(--xd-expert);
  border-color: var(--xd-expert-line);
}

.v03-due-reminder {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 14px 0;
  padding: 10px 12px;
  background: var(--xd-bg);
}

.v03-due-reminder strong,
.v03-due-reminder p {
  display: block;
  margin: 0;
}

.v03-due-reminder p {
  margin-top: 2px;
  color: var(--xd-muted);
  font-size: 12px;
}

.v03-due-reminder-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.v03-my-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

[data-v03-my-section] {
  min-width: 0;
  padding: 16px;
}

[data-v03-my-section] header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

[data-v03-my-section] h3 {
  margin: 0;
  color: var(--xd-title);
  font-size: 16px;
}

[data-v03-my-section] header > span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--xd-muted);
  background: var(--xd-bg);
  border-radius: 999px;
  font-size: 12px;
}

.v03-my-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(38, 62, 89, 0.08);
}

.v03-my-row > div {
  min-width: 0;
}

.v03-my-row strong,
.v03-my-row small {
  display: block;
  overflow-wrap: anywhere;
}

.v03-my-row small,
.v03-my-empty,
[data-v03-my-section] > p {
  margin: 3px 0 0;
  color: var(--xd-muted);
  font-size: 12px;
  line-height: 1.55;
}

.v03-my-more {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--xd-bg);
  border-radius: 14px;
  color: var(--xd-muted);
}

.v03-my-more > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v03-my-more button {
  text-align: left;
}

.v03-feedback-dialog {
  width: min(92vw, 520px);
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.v03-feedback-dialog::backdrop {
  background: rgba(36, 48, 68, 0.42);
  backdrop-filter: blur(2px);
}

.v03-feedback-dialog .rc-action-dialog-card {
  max-height: inherit;
  padding: 18px;
  overflow: auto;
  color: var(--xd-ink);
  background: var(--xd-surface);
  border: 1px solid rgba(32, 58, 95, 0.14);
  border-radius: 18px;
  overscroll-behavior: contain;
}

.v03-feedback-dialog h2,
.v03-dialog-action-title {
  color: var(--xd-title);
}

.v03-dialog-action-title {
  margin: 4px 0 12px;
  font-size: 13px;
}

.v03-completion-picker,
.v03-signal-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(32, 58, 95, 0.12);
  border-radius: 13px;
}

.v03-completion-picker legend,
.v03-signal-picker legend {
  padding: 0 4px;
  color: var(--xd-title);
  font-weight: 700;
}

.v03-signal-picker legend small {
  margin-left: 5px;
  color: var(--xd-muted);
  font-weight: 400;
}

.v03-completion-picker label,
.v03-signal-picker label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.v03-signal-picker textarea,
.v03-feedback-detail textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  color: var(--xd-ink);
  background: var(--xd-surface);
  border: 1px solid rgba(32, 58, 95, 0.18);
  border-radius: 11px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.v03-signal-picker textarea {
  grid-column: 1 / -1;
}

.v03-feedback-detail {
  display: grid;
  gap: 6px;
  color: var(--xd-title);
  font-size: 13px;
  font-weight: 700;
}

.v03-voice-secondary {
  min-height: 38px;
  margin-top: 8px;
  padding: 7px 12px;
  color: var(--xd-expert);
  background: var(--xd-surface);
  border: 1px solid var(--xd-expert-line);
  border-radius: 11px;
}

.v03-feedback-actions {
  display: grid;
  grid-template-columns: auto 1fr 1.35fr;
  gap: 8px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.v03-feedback-actions button {
  min-width: 0;
  white-space: normal;
}

.v03-form-error {
  margin: 8px 0 0;
  padding: 8px 10px;
  color: var(--xd-error);
  background: var(--xd-error-soft);
  border-radius: 9px;
  font-size: 12px;
}

.v03-form-error.hidden {
  display: none;
}

body.vnext-v02.vnext-keyboard-open .v03-due-reminder,
body.vnext-v02.vnext-keyboard-open .v03-action-card:not([data-action-id]),
body.vnext-v02.vnext-keyboard-open .v03-event-timeline {
  display: none !important;
}

@media (max-width: 820px) {
  .v03-action-card,
  .v03-rejudgment-card {
    margin-top: 10px;
    padding: 13px;
    border-radius: 15px;
  }

  .v03-action-window-options,
  .v03-rejudgment-choices {
    grid-template-columns: 1fr;
  }

  .v03-action-window-picker button,
  .v03-rejudgment-choices button,
  .v03-primary-cta {
    width: 100%;
  }

  .v03-due-reminder {
    align-items: stretch;
    flex-direction: column;
    margin: 6px 9px 0;
  }

  .v03-due-reminder-actions button {
    flex: 1;
  }

  .v03-my-sections {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  [data-v03-my-section] {
    padding: 13px;
  }

  .v03-feedback-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  }

  .v03-feedback-dialog .rc-action-dialog-card {
    padding: 14px;
    border-radius: 16px;
  }

  .v03-feedback-actions {
    grid-template-columns: 1fr;
  }
}

/* MVP V0.3 role-color authority: one warm Xiaodie, one CTA, one Expert layer. */
body.vnext-v02 #sendButton,
body.vnext-v02 .v03-primary-cta,
body.vnext-v02 .rc-save-action,
body.vnext-v02 .vnext-primary-cta {
  border-color: var(--xd-cta);
  background: var(--xd-cta);
  color: var(--xd-surface);
}

body.vnext-v02 #sendButton:not(:disabled):active,
body.vnext-v02 .v03-primary-cta:not(:disabled):active,
body.vnext-v02 .rc-save-action:not(:disabled):active,
body.vnext-v02 .vnext-primary-cta:not(:disabled):active {
  border-color: var(--xd-cta-active);
  background: var(--xd-cta-active);
}

body.vnext-v02 .eac-card-actions .eac-use-question-button {
  border-color: var(--xd-expert);
  background: var(--xd-expert);
  color: var(--xd-surface);
}

body.vnext-v02 .eac-card-actions .eac-use-question-button:not(:disabled):active {
  border-color: #105d57;
  background: #105d57;
}

body.vnext-v02 .v03-feedback-actions button,
body.vnext-v02 .v03-feedback-actions .ghost-button,
body.vnext-v02 .v03-feedback-actions .mini-button,
body.vnext-v02 .v03-feedback-actions .v03-primary-cta {
  margin-top: 0;
  border: 1px solid var(--xd-line);
  background: var(--xd-surface);
  color: var(--xd-title);
  box-shadow: none;
}

body.vnext-v02 .v03-feedback-actions button:not(:disabled):hover,
body.vnext-v02 .v03-feedback-actions button:not(:disabled):focus-visible {
  border-color: var(--xd-title);
  background: var(--xd-surface-subtle);
}

body.vnext-v02 .v03-feedback-actions .v03-primary-cta {
  border-color: var(--xd-cta);
  background: var(--xd-cta);
  color: var(--xd-surface);
}

body.vnext-v02 .v03-feedback-actions .v03-primary-cta:not(:disabled):hover,
body.vnext-v02 .v03-feedback-actions .v03-primary-cta:not(:disabled):focus-visible {
  border-color: var(--xd-cta-active);
  background: var(--xd-cta-active);
}

body.vnext-v02 .feedback-bar-lite .lite-feedback-button,
body.vnext-v02 .feedback-bar-lite .feedback-more-toggle {
  border: 1px solid var(--xd-line) !important;
  background: var(--xd-surface) !important;
  color: var(--xd-title);
  box-shadow: none;
}

body.vnext-v02 .feedback-bar-lite .lite-feedback-button:not(:disabled):hover,
body.vnext-v02 .feedback-bar-lite .lite-feedback-button:not(:disabled):focus-visible,
body.vnext-v02 .feedback-bar-lite .feedback-more-toggle:not(:disabled):hover,
body.vnext-v02 .feedback-bar-lite .feedback-more-toggle:not(:disabled):focus-visible {
  border-color: var(--xd-title) !important;
  background: var(--xd-surface-subtle) !important;
}

body.vnext-v02 .message-delivery-failed_retryable,
body.vnext-v02 .eac-status.eac-status-error,
body.vnext-v02 .rc-field-error {
  color: var(--xd-error);
}

body.vnext-v02 .message-retry-button,
body.vnext-v02 .attachment-item.error,
body.vnext-v02 .rc-result-detail-field textarea[aria-invalid="true"] {
  border-color: var(--xd-error);
}

body.vnext-v02 .message-retry-button,
body.vnext-v02 .attachment-item.error {
  color: var(--xd-error);
  background: var(--xd-error-soft);
}

body.vnext-v02 .app-toast.error {
  border-color: var(--xd-error);
  background: var(--xd-error-soft);
  color: var(--xd-error);
}

body.vnext-v02 .app-toast.warn,
body.vnext-v02 .eac-hard-risk-warning {
  border-color: var(--xd-warning);
  background: var(--xd-warning-soft);
  color: var(--xd-warning);
}

/* Current-question surfaces share the same restrained orange role as the
   single primary action; historical amber values must not form a fifth role. */
body.vnext-v02 .answer-nail,
body.vnext-v02 .rc-decisive-question,
body.vnext-v02 .vnext-active-question:not([data-question-source="expert"]):not([data-source="expert"]) {
  border-color: var(--xd-line);
  border-left-color: var(--xd-cta);
  background: var(--xd-cta-soft);
}

body.vnext-v02 .rc-decisive-question strong,
body.vnext-v02 .vnext-active-question:not([data-question-source="expert"]):not([data-source="expert"]) .vnext-question-label {
  color: var(--xd-cta);
}

/* Deep navy is the reading skeleton across both sides of the conversation. */
body.vnext-v02 .message.user {
  border-color: var(--xd-line);
  background: var(--xd-surface-subtle);
  color: var(--xd-ink);
}

body.vnext-v02 .message.assistant.message-plain,
body.vnext-v02 .rc-structured-answer .answer-lead {
  color: var(--xd-ink);
}

/* This is a 9px interactive disclosure on the warm page background; use the
   title tone so it remains legible without changing the frozen muted token. */
body.vnext-v02 .eac-boundary-details > summary,
body.vnext-v02 details.eac-test-boundary-banner > summary {
  color: var(--xd-title);
}

/* MVP V0.3 mobile input closure: iOS zooms focused form controls below 16px.
   Keep user zoom available; prevent the unintended focus zoom at the control. */
@media (max-width: 820px) {
  body.vnext-v02 :where(a, button, input, textarea, select, summary, [role="button"], [tabindex]) {
    -webkit-tap-highlight-color: transparent;
  }

  body.vnext-v02 input,
  body.vnext-v02 textarea,
  body.vnext-v02 select,
  body.vnext-v02 .composer textarea,
  body.vnext-v02 .chat-view:not(.home-empty) .composer textarea {
    font-size: 16px;
  }
}

/* R6J REV1: preserve the original HOME; style only the added journey surfaces. */
body[data-r6j-surface] { --r6j-ink:#203A5F; --r6j-text:#243044; --r6j-muted:#6D7785; --r6j-border:#DED8CF; --r6j-accent:#A95416; }
.r6j-continue-card,.r6j-fact-task,.r6j-event-list { color:var(--r6j-text); background:#fff; border:1px solid var(--r6j-border); border-radius:16px; }
.r6j-continue-card { padding:16px; margin:16px 0; text-align:left; }
.r6j-continue-heading,.r6j-continue-actions,.r6j-list-heading,.r6j-action-controls { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.r6j-continue-heading { font-size:13px; color:var(--r6j-muted); }
.r6j-continue-heading small { color:var(--r6j-accent); }
.r6j-continue-card h3 { margin:8px 0; color:var(--r6j-ink); font-size:16px; line-height:1.5; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.r6j-continue-card p { margin:4px 0 12px; color:var(--r6j-muted); font-size:13px; line-height:1.5; }
.r6j-primary,.r6j-secondary,.r6j-link { min-height:44px; border-radius:10px; padding:10px 14px; font:inherit; line-height:1.4; cursor:pointer; }
.r6j-primary { background:#A95416; border:1px solid #A95416; color:#fff; font-weight:600; }
.r6j-secondary { background:#fff; border:1px solid #DED8CF; color:#203A5F; }
.r6j-link { background:transparent; border:0; color:#6D7785; text-decoration:none; }
.r6j-primary:focus-visible,.r6j-secondary:focus-visible,.r6j-link:focus-visible { outline:3px solid #d6a17a; outline-offset:2px; }
body:not([data-r6j-surface="HOME_START"]) [data-r6j-home-continue] { display:none; }
body[data-r6j-surface="EVENT_LIST"] #composer,body[data-r6j-surface="EVENT_LIST"] .composer { display:none; }
body[data-r6j-surface="EVENT_LIST"] #messages { padding-bottom:24px; }
.r6j-event-list { padding:24px; margin:8px auto; width:min(100%,760px); box-sizing:border-box; }
.r6j-list-heading h2,.r6j-fact-task h2 { margin:4px 0 12px; font-size:22px; line-height:1.4; color:#203A5F; }
.r6j-list-heading small,.r6j-local-note,.r6j-fact-note { font-size:13px; line-height:1.6; color:#6D7785; }
.r6j-event-tabs { display:flex; gap:8px; margin:16px 0; border-bottom:1px solid #DED8CF; }
.r6j-event-tabs button { min-height:44px; padding:10px; background:transparent; border:0; color:#6D7785; font:inherit; }
.r6j-event-tabs button[aria-selected="true"] { color:#A95416; border-bottom:2px solid #A95416; font-weight:600; }
.r6j-event-row { padding:16px 0; border-bottom:1px solid #eee9e2; }
.r6j-event-row h3 { color:#203A5F; margin:8px 0; font-size:17px; overflow-wrap:anywhere; }
.r6j-event-row p { color:#6D7785; margin:8px 0; font-size:14px; line-height:1.6; }
.r6j-event-row small { display:block; margin:8px 0; color:#6D7785; }
.r6j-event-status { color:#A95416; font-size:13px; }
.r6j-records-entry { width:100%; margin:8px 0 24px; }
.r6j-action-controls { justify-content:flex-start; margin-top:16px; flex-wrap:wrap; }
.r6j-held-note { color:#6D7785; padding:12px; background:#F6F3ED; border-radius:8px; }
.r6j-fact-task { max-width:760px; margin:16px auto; padding:24px; box-sizing:border-box; width:100%; }
.r6j-fact-task p { line-height:1.65; overflow-wrap:anywhere; }
.r6j-fact-modes { border:0; padding:0; margin:16px 0; display:flex; flex-direction:column; gap:8px; }
.r6j-fact-modes legend { font-size:13px; color:#6D7785; margin-bottom:8px; }
.r6j-fact-modes label { padding:10px 12px; display:flex; align-items:center; gap:8px; min-height:44px; box-sizing:border-box; border:1px solid #DED8CF; border-radius:10px; font-size:14px; }
.r6j-fact-modes label:has(input:checked) { background:#F6E7DA; border-color:#A95416; }
.r6j-fact-modes input { accent-color:#A95416; }
.r6j-fact-source { font-size:14px; display:block; }
.r6j-fact-source select { width:100%; min-height:44px; margin-top:8px; background:#fff; border:1px solid #DED8CF; border-radius:8px; color:#243044; font:inherit; padding:8px; }
.r6j-fact-original,.r6j-message-correction { background:#F6F3ED; padding:12px; border-radius:8px; margin:12px 0; color:#6D7785; font-size:13px; }
.r6j-fact-original summary,.r6j-message-correction summary { cursor:pointer; min-height:28px; }
.r6j-fact-evidence,.r6j-held-action { background:#F6F3ED; border-radius:12px; padding:16px; margin:16px 0; }
.r6j-fact-evidence h3,.r6j-held-action h3,.r6j-fact-judgment h3 { color:#203A5F; font-size:16px; margin:0 0 8px; }
.r6j-held-action span,.r6j-held-action small { color:#6D7785; font-size:13px; }
.r6j-fact-choices { display:grid; gap:8px; margin-top:16px; }
body.r6j-fact-active #messages > :not([data-r6j-fact-task]) { display:none !important; }
body.r6j-fact-active #messages { padding-bottom:24px; }
body.r6j-fact-active .r6j-fact-composer .composer-box { display:flex; flex-wrap:wrap; padding:12px; gap:8px; }
body.r6j-fact-active .r6j-fact-composer #input { flex:1 1 100%; width:100%; min-height:76px; max-height:160px; }
body.r6j-fact-active .r6j-fact-composer #sendButton { width:auto; min-width:160px; height:44px; min-height:44px; border-radius:10px; font-size:15px; margin-left:auto; }
body.r6j-fact-active .r6j-fact-composer #attachmentButton,body.r6j-fact-active .r6j-fact-composer #voiceInputButton,body.r6j-fact-active .composer-hint,body.r6j-fact-active .composer-compliance { display:none; }
.r6j-message-menu { margin-left:auto; color:#6D7785; font-size:13px; width:max-content; max-width:100%; }
.r6j-message-menu summary { list-style:none; cursor:pointer; min-height:32px; min-width:44px; text-align:right; padding:4px; box-sizing:border-box; }
.r6j-message-menu button { min-height:44px; padding:8px 12px; border:1px solid #DED8CF; color:#243044; background:#fff; border-radius:8px; font:inherit; }
.r6j-message-menu[open] { position:relative; z-index:2; }
body.vnext-v02 .eac-natural-offer { margin-top:16px; }
body.vnext-v02 .eac-natural-offer .eac-panel { border:0; padding:0; background:transparent; }
body.vnext-v02 .eac-natural-offer .eac-card { border:1px solid #cde2dc; background:#E8F4F1; border-radius:16px; padding:16px; box-shadow:none; }
body.vnext-v02 .eac-natural-offer .eac-natural-heading { color:#176F68; font-size:17px; margin:0 0 8px; }
body.vnext-v02 .eac-natural-offer .eac-natural-intro { color:#526e68; font-size:14px; line-height:1.6; }
body.vnext-v02 .eac-natural-offer .eac-question-preview { background:#fff; border:0; border-radius:10px; padding:16px; }
body.vnext-v02 .eac-natural-offer .eac-card-question { color:#203A5F; line-height:1.7; }
body.vnext-v02 .eac-natural-offer .eac-use-question-button { background:#176F68; color:#fff; border:1px solid #176F68; min-height:44px; }
body.vnext-v02 .eac-natural-offer .eac-dismiss-button { background:transparent; color:#526e68; border:0; min-height:44px; }
body.vnext-v02 .eac-natural-offer .eac-entry-wrap { display:none !important; }
@media (max-width:600px) {
 .r6j-continue-card { padding:12px 16px; margin:12px 0; }
 .r6j-continue-card h3 { -webkit-line-clamp:1; }
 .r6j-continue-actions { gap:8px; }
 .r6j-continue-actions button { font-size:14px; padding:10px 12px; }
 .r6j-event-list,.r6j-fact-task { padding:16px; margin:8px 0; }
 .r6j-action-controls { align-items:stretch; }
 .r6j-action-controls .r6j-primary { flex:1; }
 body.r6j-fact-active #messages { padding-left:16px; padding-right:16px; }
}
/* In a choice task, the original question remains in history but is not presented as a second current task. */
#chatView[data-r5-task-state="CHOOSE_OR_SKIP_EXPERT"] .rc-decisive-question { display:none; }
body[data-r6j-surface="EVENT"] .r5-composer-suspended .composer-box,
body[data-r6j-surface="EVENT"] .r5-composer-suspended .composer-hint,
body[data-r6j-surface="EVENT"] .r5-composer-suspended .composer-compliance { display:none; }
body.vnext-v02 .eac-natural-offer .eac-question-preview { background:transparent; padding:12px 0; border-radius:0; }
.r6j-event-tabs button[aria-pressed="true"] { color:#A95416; border-bottom:2px solid #A95416; font-weight:600; }
[data-r6j-continue],[data-r6j-event-list] { min-height:44px; }
.r6j-event-row > button { display:block; width:100%; text-align:left; font:inherit; border:0; background:transparent; padding:0 4px; position:relative; cursor:pointer; color:#243044; }
.r6j-row-chevron { position:absolute; right:0; top:50%; color:#6D7785; font-size:22px; }
.r6j-event-closed #form { display:none; }
body[data-r6j-surface="EVENT_LIST"] #form { display:none; }
.r6j-message-menu summary,.r6j-fact-original summary,.r6j-message-correction summary { min-height:44px; display:flex; align-items:center; }
.r6j-message-menu summary { justify-content:flex-end; }
/* The fact task uses a full-width text area and a readable text CTA at every breakpoint. */
body.vnext-v02.r6j-fact-active #form.r6j-fact-composer .composer-box { display:flex; flex-wrap:wrap; grid-template-columns:none; gap:8px; padding:12px; }
body.vnext-v02.r6j-fact-active #form.r6j-fact-composer #input { flex:1 1 100%; width:100%; min-width:0; min-height:76px; max-height:140px; box-sizing:border-box; }
body.vnext-v02.r6j-fact-active #form.r6j-fact-composer #sendButton { flex:0 0 auto; width:auto; min-width:160px; height:44px; min-height:44px; white-space:nowrap; padding:10px 16px; border-radius:10px; font-size:15px; line-height:1.4; margin-left:auto; }
body.vnext-v02.r6j-fact-active #form.r6j-fact-composer #attachmentButton,
body.vnext-v02.r6j-fact-active #form.r6j-fact-composer #voiceInputButton { display:none; }
/* The existing desktop shell is phone-width, so MY keeps one readable column. */
#myView .v03-my-sections { grid-template-columns:minmax(0,1fr); }
#myView .v03-my-row > button { flex:0 0 auto; white-space:nowrap; min-height:44px; padding:10px 12px; }
#myView .r6j-records-entry { min-height:48px; text-align:left; background:#fff; border:1px solid #DED8CF; border-radius:12px; padding:12px 16px; color:#203A5F; font:inherit; }
#myView .r6j-records-entry span { float:right; }

/* R6J P0: explicit same-event discussion; action and fact controls retain their flows. */
#r6jDiscussionEntry[hidden] { display:none; }
#r6jDiscussionEntry { padding:0 0 4px; }
#r6jDiscussionEntry button { display:block; width:100%; min-height:44px; border:1px solid #ded8cf; border-radius:12px; background:#fff; color:#203A5F; font-size:15px; white-space:nowrap; }
body.vnext-v02.r6j-discussion-available #chatView #form { display:block; }
body.r6j-discussion-available #form.r5-composer-suspended { padding-top:8px; padding-bottom:max(10px,env(safe-area-inset-bottom)); }
#r6jDiscussionPanel { margin:0 0 8px; padding:10px 12px; border:1px solid #ded8cf; border-radius:12px; background:#fff; color:#203A5F; font-size:13px; }
#r6jDiscussionPanel > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#r6jDiscussionPanel strong { font-size:15px; }
#r6jDiscussionPanel p { margin:0; color:#6d7785; font-size:12px; line-height:1.6; }
#r6jDiscussionPanel button { min-height:44px; padding:6px 10px; border:0; border-radius:8px; background:#fff; color:#203A5F; font-size:13px; }
#r6jDiscussionPanel [data-r6j-discussion-fact] { padding-left:0; text-decoration:underline; }
body.r6j-discussion-active #form .vnext-active-question { display:none; }
body.r6j-discussion-active #form .composer-box { display:flex; flex-wrap:wrap; gap:8px; padding:10px; }
body.r6j-discussion-active #form .composer-box > * { order:2; }
body.r6j-discussion-active #form #input { flex:1 1 100%; width:100%; min-width:0; min-height:76px; max-height:132px; padding:8px; font-size:16px; line-height:1.55; }
body.r6j-discussion-active #form #input { order:1; }
body.r6j-discussion-active #form #sendButton { width:auto; min-width:88px; height:44px; min-height:44px; border-radius:10px; margin-left:auto; font-size:15px; white-space:nowrap; }
body.r6j-discussion-active #form .composer-hint { display:none; }
body.r6j-discussion-active [data-v03-action-card] :is([data-v03-save-action],.v03-action-window-picker,.r6j-action-controls) { display:none; }
.r6j-discussion-suggestion { margin-top:12px; padding:10px; border:1px solid #ded8cf; border-radius:10px; font-size:13px; }
.r6j-discussion-suggestion summary { min-height:44px; display:flex; align-items:center; color:#6d7785; cursor:pointer; }

/* R6J_REV2_CURRENT_TASK: original HOME and legacy entry styles stay scoped out. */
body.r6j-rev2-shell .chat-view { grid-template-rows:auto auto minmax(0,1fr) auto; }
.r6j-rev2-scroll-region { min-height:0; overflow:auto; padding:8px 16px max(24px,env(safe-area-inset-bottom)); overscroll-behavior:contain; scroll-behavior:auto; color:#243044; }
body.r6j-rev2-shell #messages { display:block; overflow:visible; height:auto; max-height:none; padding:0; margin:0; scroll-padding:0; }
body.r6j-rev2-shell #messages > .message { margin:8px 0; max-width:100%; }
body.r6j-rev2-shell #messages > .message.assistant { display:block; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.r6j-rev2-shell #messages > .message.assistant > .avatar-mark { display:none; }
body.r6j-rev2-shell #messages > .message.assistant > .assistant-body { width:100%; padding:0; min-width:0; }
.r6j-rev2-record { border:1px solid #DED8CF; border-radius:12px; background:#fff; font-size:13px; line-height:1.6; }
.r6j-rev2-record > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; padding:8px 12px; list-style:none; cursor:pointer; color:#203A5F; font-weight:600; box-sizing:border-box; }
.r6j-rev2-record > summary span { font-size:11px; font-weight:400; color:#6D7785; }
.r6j-rev2-record-body { padding:0 12px 16px; }
.r6j-rev2-record-body:empty { padding:0; }
body.r6j-rev2-shell.r6j-fact-active #messages > :not([data-r6j-fact-task]) { display:block !important; }
body.r6j-rev2-shell.r6j-fact-active #messages > .message.user { display:flex !important; }
body.r6j-rev2-shell #messages .message.user { font-size:13px; line-height:1.6; border-radius:12px; background:#f5f1eb; }
.r6j-rev2-current-task { min-width:0; width:100%; margin-top:12px; min-height:calc(var(--r6j-rev2-visible-height,0px) - 24px); scroll-margin:12px 0; }
.r6j-rev2-current-task[hidden] { display:none; }
.r6j-rev2-phase { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 0; margin-bottom:8px; border-bottom:1px solid #DED8CF; color:#203A5F; font-size:13px; line-height:1.5; }
.r6j-rev2-phase span { font-size:11px; color:#6D7785; text-align:right; }
.r6j-rev2-task-content { min-width:0; width:100%; }
body.r6j-rev2-shell .r5-composer-suspended { display:none; }
body.r6j-rev2-shell .r6j-rev2-task-content :is(.v03-action-card,.r6j-fact-task,.v03-rejudgment-card) { width:100%; max-width:none; margin:0; padding:16px; border:1px solid #DED8CF; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(36,48,68,.05); box-sizing:border-box; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-card { border-left:3px solid #A95416; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-card > h3 { display:none; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-card > h4 { margin:8px 0 16px; font-size:20px; line-height:1.5; color:#203A5F; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-eyebrow { margin:0; font-size:12px; color:#A95416; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-card ol { font-size:15px; line-height:1.65; margin:12px 0; padding-left:22px; }
body.r6j-rev2-shell .r6j-rev2-task-content .v03-action-signal { padding:12px; border:1px solid #DED8CF; border-radius:10px; background:#faf8f5; font-size:13px; line-height:1.6; }
body.r6j-rev2-shell .r6j-rev2-task-content :is(.v03-action-receipt,.v03-action-waiting-note) { margin:8px 0; font-size:13px; line-height:1.6; color:#6D7785; }
.r6j-rev2-task-content :is(.r6j-action-controls,.v03-action-controls,.r6j-fact-choices) { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin-top:16px; }
.r6j-rev2-task-content :is(button.r6j-primary,button.r6j-secondary,button.r6j-link,button.v03-primary-cta,.eac-dismiss-button,.eac-use-question-button) { width:100%; min-height:44px; white-space:nowrap; font-size:15px; border-radius:10px; }
.r6j-rev2-task-content .r6j-list-heading { align-items:flex-start; gap:8px; }
.r6j-rev2-task-content .r6j-list-heading .r6j-link { width:auto; padding:8px; font-size:13px; }
.r6j-rev2-task-content .r6j-fact-task h2 { font-size:22px; line-height:1.4; margin:4px 0 8px; }
.r6j-rev2-task-content .r6j-fact-task > p { margin:8px 0; font-size:13px; color:#6D7785; }
.r6j-rev2-task-content .r6j-fact-modes { margin:12px 0; gap:8px; }
.r6j-rev2-task-content .r6j-fact-modes label { min-height:44px; padding:8px 12px; font-size:14px; }
.r6j-rev2-task-content .r6j-fact-original { padding:8px 12px; margin:12px 0; }
.r6j-rev2-task-content .r6j-fact-original summary { min-height:36px; }
.r6j-rev2-task-content .r6j-fact-original p { max-height:96px; overflow:auto; margin:8px 0; font-size:13px; white-space:pre-wrap; }
.r6j-rev2-task-content .r6j-fact-evidence { margin:12px 0; padding:12px; font-size:13px; }
.r6j-rev2-task-content .r6j-fact-evidence p { max-height:96px; overflow:auto; margin:8px 0; }
.r6j-rev2-task-content .r6j-held-action { margin:12px 0; padding:12px; border-left:2px solid #A95416; background:#faf8f5; }
.r6j-rev2-task-content .r6j-fact-judgment { margin:12px 0; font-size:14px; line-height:1.65; }
.r6j-rev2-task-content .r6j-fact-judgment > summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; gap:8px; color:#203A5F; cursor:pointer; list-style:none; font-weight:600; }
.r6j-rev2-task-content .r6j-fact-judgment > summary span { font-size:11px; font-weight:400; color:#6D7785; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input { padding:0; margin:0; z-index:auto; background:transparent; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input .composer-box { display:flex; flex-wrap:wrap; gap:8px; padding:12px; border:1px solid #DED8CF; border-radius:12px; box-shadow:none; background:#fff; min-height:0; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input #input { flex:1 1 100%; min-width:0; width:100%; min-height:112px; max-height:200px; padding:12px; font-size:16px; line-height:1.6; border:1px solid #DED8CF; border-radius:10px; box-sizing:border-box; overflow:auto; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input #sendButton { flex:1 1 100%; width:100%; min-width:0; min-height:44px; height:44px; margin:0; padding:8px 12px; border-radius:10px; font-size:15px; line-height:1.4; white-space:nowrap; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input :is(.composer-hint,.composer-compliance) { display:none; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input .vnext-active-question { position:static; margin:0 0 12px; padding:16px; border:1px solid #DED8CF; border-left:3px solid #A95416; border-radius:12px; background:#fff; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input .vnext-current-task-copy { display:block; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input .vnext-question-label { display:block; margin-bottom:8px; font-size:12px; color:#A95416; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input .vnext-question-quote { display:block; max-width:none; width:auto; overflow:visible; white-space:normal; text-overflow:clip; font-size:18px; font-weight:600; line-height:1.5; color:#203A5F; }
body.vnext-v02.r6j-rev2-shell [data-current-task="FACT_REVISION"] #form.r6j-rev2-task-input .composer-box { padding:0; border:0; }
body.vnext-v02.r6j-rev2-shell [data-current-task="EXPERT_OFFER"] .eac-natural-offer { margin:0; }
body.vnext-v02.r6j-rev2-shell [data-current-task="EXPERT_OFFER"] .eac-card { margin:0; padding:16px; border-color:#badbd4; background:#E8F4F1; }
body.vnext-v02.r6j-rev2-shell [data-current-task="EXPERT_OFFER"] .eac-card-actions { display:grid; grid-template-columns:1fr; gap:8px; }
body.vnext-v02.r6j-rev2-shell [data-current-task="EXPERT_OFFER"] .eac-question-preview { padding:12px; border:1px solid #badbd4; border-radius:10px; background:#fff; }
body.vnext-v02.r6j-rev2-shell [data-current-task="ANSWER_EXPERT_QUESTION"] #form.r6j-rev2-task-input .vnext-active-question { border-left-color:#176F68; }
body.vnext-v02.r6j-rev2-shell [data-current-task="ANSWER_EXPERT_QUESTION"] #form.r6j-rev2-task-input .vnext-question-label { color:#176F68; }
body.vnext-v02.r6j-rev2-shell [data-current-task="ANSWER_EXPERT_QUESTION"] #sendButton:not(:disabled) { background:#176F68; border-color:#176F68; }
.r6j-rev2-task-content > .eac-dismiss-button { margin-top:8px; background:#fff; border:1px solid #DED8CF; color:#203A5F; padding:8px 12px; }
@media (prefers-reduced-motion:reduce) { .r6j-rev2-scroll-region,.r6j-rev2-task-content * { scroll-behavior:auto; animation:none; transition:none; } }

/* R6J_REV2_EVENT_DENSITY: three read-only views of the same management event. */
body[data-r6j-surface="HOME_START"] [data-r6j-home-continue].r6j-rev2-density-home {
  box-sizing:border-box;
  height:84px;
  min-height:84px;
  max-height:84px;
  margin:12px 0;
  padding:0;
  border-radius:14px;
  box-shadow:none;
}
.r6j-rev2-density-home > .r6j-rev2-event-home {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) 14px;
  grid-template-rows:16px 20px 18px;
  align-content:center;
  column-gap:10px;
  row-gap:3px;
  width:100%;
  height:82px;
  margin:0;
  padding:8px 14px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:#243044;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.r6j-rev2-event-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  color:#6D7785;
  font-size:12px;
  line-height:16px;
}
.r6j-rev2-event-meta small { font:inherit; }
.r6j-rev2-event-meta time { flex:0 0 auto; }
.r6j-rev2-event-title,
.r6j-rev2-event-task {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.r6j-rev2-event-title { color:#203A5F; font-size:16px; font-weight:600; line-height:22px; }
.r6j-rev2-event-task { color:#6D7785; font-size:13px; line-height:18px; }
.r6j-rev2-event-home > .r6j-rev2-event-meta,
.r6j-rev2-event-home > .r6j-rev2-event-title,
.r6j-rev2-event-home > .r6j-rev2-event-task { grid-column:1; }
.r6j-rev2-event-home > .r6j-rev2-event-meta { font-size:11px; white-space:nowrap; }
.r6j-rev2-event-home > .r6j-rev2-event-title { font-size:15px; line-height:20px; }
.r6j-rev2-event-chevron { color:#6D7785; font-size:22px; line-height:24px; }
.r6j-rev2-event-home > .r6j-rev2-event-chevron { grid-column:2; grid-row:1 / 4; align-self:center; }
.r6j-rev2-event-home:focus-visible,
.r6j-rev2-event-list-row:focus-visible { outline:2px solid #203A5F; outline-offset:-3px; }
#myView .r6j-rev2-density-my { margin:16px 0; padding:16px; }
#myView .r6j-rev2-density-my h3 { -webkit-line-clamp:2; margin:10px 0 6px; }
#myView .r6j-rev2-density-my .r6j-continue-actions { margin-top:12px; }
#myView .r6j-rev2-density-my .r6j-continue-actions .r6j-primary { width:100%; }
#myView .r6j-rev2-density-my .r6j-rev2-event-due { margin:4px 0 0; font-size:12px; line-height:18px; }
#myView .v03-my-sections > .r6j-rev2-upcoming-summary {
  padding:12px 0;
  border:0;
  border-bottom:1px solid #DED8CF;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#myView .r6j-rev2-upcoming-summary header { margin:0; padding:0; border:0; }
#myView .r6j-rev2-upcoming-summary h3 { color:#6D7785; font-size:14px; font-weight:500; }
#myView .r6j-rev2-upcoming-summary p { margin:6px 0 0; color:#6D7785; font-size:12px; line-height:18px; overflow-wrap:anywhere; }
.r6j-event-row.r6j-rev2-density-list { padding:0; }
.r6j-event-row.r6j-rev2-density-list > .r6j-rev2-event-list-row,
#myView .v03-my-row.r6j-rev2-secondary-event > .r6j-rev2-event-list-row {
  position:relative;
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:12px 24px 12px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#243044;
  text-align:left;
  white-space:normal;
  font:inherit;
  cursor:pointer;
}
.r6j-rev2-event-list-row > .r6j-rev2-event-title { margin:6px 0 4px; }
.r6j-rev2-event-list-row > .r6j-rev2-event-task { margin:0; }
.r6j-rev2-event-fragment {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:6px;
  color:#6D7785;
  font-size:12px;
  line-height:18px;
  overflow-wrap:anywhere;
}
.r6j-rev2-event-list-row > .r6j-rev2-event-due { display:block; margin-top:6px; color:#6D7785; font-size:12px; line-height:16px; }
.r6j-rev2-event-list-row > .r6j-rev2-event-chevron { position:absolute; right:0; top:50%; transform:translateY(-50%); }
#myView .v03-my-row.r6j-rev2-secondary-event { display:block; padding:0; }
/* R6J_REV2_EVENT_DENSITY end. */

/* The original P0 discussion entry keeps its real handler in the task footer. */
body.vnext-v02.r6j-rev2-shell.r6j-discussion-available #chatView #form.r5-composer-suspended { display:none; }
.r6j-rev2-task-content > #r6jDiscussionEntry { margin:12px 0 0; padding:0; }
.r6j-rev2-task-content > #r6jDiscussionEntry button { width:100%; min-height:44px; white-space:nowrap; font-size:15px; }
/* Hide the whole inactive composer, including its old question/status strip. */
body.vnext-v02.r6j-rev2-shell #chatView #form.r5-composer-suspended { display:none; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input #input { order:1; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input :is(#attachmentButton,#voiceInputButton) { order:2; flex:0 0 44px; }
body.vnext-v02.r6j-rev2-shell #form.r6j-rev2-task-input #sendButton { order:3; }

/* Owner acceptance correction: EVENT remains a chronological conversation.
   Judgment text starts expanded, and the reader controls any later scrolling. */
body.r6j-natural-chat #messages .vnext-judgment-more[open] > summary { display:none; }
body.r6j-natural-chat #messages [data-r6j-message-menu] { display:none !important; }
body.r6j-natural-chat #messages .vnext-completed-question { display:none; }
body.r6j-natural-chat #messages .message.assistant > .avatar-mark { display:flex; }
body.r6j-natural-chat #messages .message.assistant > .assistant-body { width:auto; }
body.r6j-natural-chat #messages > .message.user { max-width:88%; }
body.r6j-natural-chat #form .vnext-active-question[data-question-source="base"] { display:none; }
body.r6j-natural-chat.r6j-fact-active #messages > .message.assistant:not(.message-plain) { display:grid !important; }
body.r6j-natural-chat.r6j-fact-active #messages > .message.assistant.message-plain,
body.r6j-natural-chat.r6j-fact-active #messages > .message.user { display:block !important; }
body.r6j-natural-chat.r6j-fact-active #messages > .feedback-bar { display:flex !important; }

/* R6J REV3: one VisualViewport coordinate system for every mobile composer. */
@media (max-width:820px) {
  body.vnext-v02.experience-open.vnext-visual-viewport-active .experience-gate {
    position:fixed;
    top:var(--visual-viewport-offset-top,0px);
    right:auto;
    bottom:auto;
    left:0;
    width:var(--visual-viewport-width,100vw);
    height:var(--visual-viewport-height,100vh);
    min-height:0;
  }
  body.vnext-v02.experience-open.vnext-visual-viewport-active.vnext-experience-keyboard-open .experience-gate {
    place-items:start center;
    overflow:hidden;
    padding-top:max(8px,env(safe-area-inset-top));
    padding-bottom:8px;
  }
  body.vnext-v02.experience-open.vnext-visual-viewport-active .experience-card {
    width:min(520px,calc(var(--visual-viewport-width,100vw) - 28px));
    max-height:calc(100% - 16px);
    scroll-padding-block:16px;
    overscroll-behavior:contain;
  }
  body.vnext-v02.experience-open.vnext-visual-viewport-active .experience-field {
    scroll-margin-block:16px;
  }
  body.vnext-v02.vnext-visual-viewport-active .app-shell {
    position:fixed;
    top:var(--visual-viewport-offset-top,0px);
    right:auto;
    bottom:auto;
    left:0;
    width:var(--visual-viewport-width,100vw);
    height:var(--visual-viewport-height,100vh);
    min-height:var(--visual-viewport-height,100vh);
    overflow:hidden;
  }
  body.vnext-v02.vnext-visual-viewport-active .workspace {
    height:100%;
    min-height:0;
  }
  body.vnext-v02.vnext-visual-viewport-active .chat-view {
    position:relative;
  }
  body.vnext-v02.vnext-visual-viewport-active.vnext-keyboard-open .chat-view:not(.home-empty) .composer {
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    max-height:calc(var(--visual-viewport-height,100vh) - 64px);
    overflow-y:auto;
  }
  body.vnext-v02.vnext-visual-viewport-active.vnext-keyboard-open .chat-view:not(.home-empty) .messages {
    padding-bottom:calc(var(--composer-height,80px) + 8px);
  }
}

.r6j-event-restore-status {
  margin:10px 0 14px;
  padding:10px 12px;
  border:1px solid #e8c7ac;
  border-radius:10px;
  background:#fff7ef;
  color:#8b4314;
  font-size:13px;
  line-height:1.5;
}

.r6j-fact-question-guard {
  margin-top:14px;
  padding:12px;
  border:1px solid #d6c7b7;
  border-radius:12px;
  background:#fffaf4;
}
.r6j-fact-question-guard p { margin:0 0 10px; color:#203A5F; font-size:14px; line-height:1.55; }
.r6j-fact-question-guard > div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.r6j-fact-question-guard button { width:100%; min-width:0; }

body.vnext-v02 .vnext-base-question-placeholder {
  margin:10px 0 0;
  padding:9px 11px;
  border:1px solid var(--xd-line);
  border-radius:10px;
  background:var(--xd-surface-subtle);
  color:var(--xd-muted);
  font-size:12px;
  line-height:1.4;
}

body.vnext-v02 .vnext-expert-complete-receipt {
  margin:0 0 10px;
  padding:8px 10px;
  border-left:3px solid var(--xd-expert);
  border-radius:8px;
  background:var(--xd-expert-soft);
  color:var(--xd-expert);
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

body.vnext-v02 .r6j-expert-qa-trace {
  position:absolute;
  top:72px;
  right:12px;
  z-index:24;
  width:min(210px,calc(100% - 24px));
  padding:9px 10px;
  border-radius:9px;
  background:rgba(31,46,58,.92);
  box-shadow:0 8px 20px rgba(22,34,45,.2);
  color:#e8f4f1;
  font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;
  pointer-events:none;
}
body.vnext-v02 .r6j-expert-qa-trace strong { display:block; margin-bottom:4px; color:#fff; }
body.vnext-v02 .r6j-expert-qa-trace ul { margin:0; padding:0; list-style:none; }
body.vnext-v02 .r6j-expert-qa-trace li { overflow-wrap:anywhere; }

@media (max-width:380px) {
  .r6j-fact-question-guard > div { grid-template-columns:1fr; }
}

@media (max-width:380px) {
  body.vnext-v02.r6j-rev2-shell [data-current-task="REJUDGMENT_CHOICE"] .r6j-rev2-phase {
    padding-block:8px;
    margin-bottom:4px;
  }
  body.vnext-v02.r6j-rev2-shell [data-current-task="REJUDGMENT_CHOICE"] .r6j-rev2-task-content .r6j-fact-task {
    padding:12px 16px;
  }
  body.vnext-v02.r6j-rev2-shell [data-current-task="REJUDGMENT_CHOICE"] .r6j-rev2-task-content :is(.r6j-fact-evidence,.r6j-fact-judgment,.r6j-held-action) {
    margin-block:8px;
  }
  body.vnext-v02.r6j-rev2-shell [data-current-task="REJUDGMENT_CHOICE"] .r6j-rev2-task-content .r6j-fact-choices {
    margin-top:8px;
  }
}

/* P0: explicit page navigation, inside the existing fixed-height header. */
.topbar .p0-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #203a5f;
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.topbar .p0-nav-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar .p0-nav-button:hover { background: #eeeae3; }
.topbar .p0-nav-button:focus-visible { outline: 2px solid #203a5f; outline-offset: 2px; }
.topbar .p0-nav-button[hidden] { display: none !important; }
.topbar.p0-navigation-active .ghost-button-home:not([hidden]) { display: inline-flex !important; }
.topbar.p0-navigation-active { gap: 6px; }
.topbar.p0-navigation-active .title-block { flex: 1 1 auto; min-width: 0; }
#chatView .topbar.p0-navigation-active .drawer-toggle { display: none; }
#chatView .topbar.p0-navigation-active .title-block .avatar-mark,
#chatView .topbar.p0-navigation-active .title-block p { display: none; }
#chatView .topbar.p0-navigation-active .title-block h1 { font-size: 18px; }
.my-view.my-preview-v2-mode > .topbar.p0-navigation-active {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 8px 0;
  margin-bottom: 14px;
  min-height: 60px;
  background: #f7f4ed;
  box-shadow: none;
  border-bottom: 1px solid #e7e1d8;
}
#myView > .topbar.p0-navigation-active .avatar-mark,
#myView > .topbar.p0-navigation-active p { display: none; }
#myView > .topbar.p0-navigation-active h1 { font-size: 18px; }
#myView:has(.p0-back-button:not([hidden])) > .topbar .drawer-toggle { display: none; }
#myView .utility-return-bar { display: none; }
#myView[data-p0-my-section="today"] #myPreviewV2 > :not(.v03-my-sections),
#myView[data-p0-my-section="sevenDay"] #myPreviewV2 > :not(.v03-my-sections),
#myView[data-p0-my-section="weekly"] #myPreviewV2 > :not(.v03-my-sections),
#myView[data-p0-my-section="footprints"] #myPreviewV2 > :not(.v03-my-sections) { display: none; }
#myView .v03-my-sections > [hidden] { display: none; }
#myView .v03-my-row > div { min-width: 0; }
#myView .v03-my-row strong { overflow-wrap: anywhere; }

/* Decisive Bridge visual contract V1. Keep this authority local to the natural
   offer so generic Expert, Case, Reference, Experience and assistant styles
   cannot change the bridge when its surrounding task shell changes. */
body.vnext-v02 .eac-natural-offer {
  width: 100%;
  min-width: 0;
  margin: 16px 0 0;
}

body.vnext-v02 .eac-natural-offer .eac-panel {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.vnext-v02 .eac-natural-offer .eac-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #cde2dc;
  border-radius: 16px;
  background: #e8f4f1;
  box-shadow: none;
}

body.vnext-v02 .eac-natural-offer .eac-natural-heading {
  margin: 0 0 8px;
  color: #176f68;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

body.vnext-v02 .eac-natural-offer .eac-natural-intro {
  margin: 0;
  color: #526e68;
  font-size: 14px;
  line-height: 1.6;
}

body.vnext-v02 .eac-natural-offer .eac-question-preview {
  min-width: 0;
  margin: 12px 0 14px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.vnext-v02 .eac-natural-offer .eac-question-preview .eac-card-question {
  margin: 0;
  color: #203a5f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.vnext-v02 .eac-natural-offer .eac-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.vnext-v02 .eac-natural-offer .eac-card-actions button {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.4;
  white-space: nowrap;
}

body.vnext-v02 .eac-natural-offer .eac-card-actions .eac-use-question-button {
  border: 1px solid #176f68;
  background: #176f68;
  color: #fff;
}

body.vnext-v02 .eac-natural-offer .eac-card-actions .eac-dismiss-button {
  border: 1px solid #9ccfc8 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #203a5f !important;
}

@media (max-width: 480px) {
  body.vnext-v02 .eac-natural-offer .eac-card { padding: 14px; }
  body.vnext-v02 .eac-natural-offer .eac-natural-heading { font-size: 16px; }
  body.vnext-v02 .eac-natural-offer .eac-natural-intro { font-size: 13px; }
  body.vnext-v02 .eac-natural-offer .eac-card-actions button { padding-inline: 10px; }
}

/* Decisive Bridge on the real Group Pilot path. The source remains the
   existing base decisive_question; only its isolated presentation and the
   affordances for the existing focus/Soft-Gate actions are defined here. */
body.vnext-v02 .rc-decisive-question.rc-decisive-bridge {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid #cde2dc;
  border-radius: 16px;
  background: #e8f4f1;
  color: #203a5f;
  box-shadow: none;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge.vnext-question-current-in-flow {
  outline: 0;
  outline-offset: 0;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-title {
  margin: 0 0 8px;
  color: #176f68;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-intro {
  margin: 0;
  color: #526e68;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-question {
  min-width: 0;
  margin: 12px 0 14px;
  color: #203a5f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-actions button {
  grid-column: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-primary {
  border: 1px solid #176f68;
  background: #176f68;
  color: #fff;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-secondary {
  border: 1px solid #9ccfc8;
  background: rgba(255, 255, 255, 0.86);
  color: #203a5f;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-actions button:focus-visible {
  outline: 2px solid color-mix(in srgb, #176f68 38%, transparent);
  outline-offset: 2px;
}

body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 480px) {
  body.vnext-v02 .rc-decisive-question.rc-decisive-bridge { padding: 14px; }
  body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-title { font-size: 16px; }
  body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-intro { font-size: 13px; }
  body.vnext-v02 .rc-decisive-question.rc-decisive-bridge .rc-decisive-bridge-actions button { padding-inline: 10px; }
}
