:root {
  --bg: #f5f6f2;
  --panel: #ffffff;
  --soft: #eef1ed;
  --ink: #20251f;
  --muted: #69716a;
  --line: #dde3dc;
  --accent: #0f8f7f;
  --accent-dark: #087266;
  --warn: #b7791f;
  --danger: #9f3954;
  --shadow: 0 16px 44px rgba(32, 37, 31, 0.08);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100svh;
}

.app-shell.customer-mode {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.customer-mode .sidebar {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a,
.button,
.ghost-button,
.danger-button,
.text-button {
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  background: var(--soft);
  color: var(--ink);
}

.sidebar-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.bd-workspace {
  padding: 20px 22px 24px;
}

.bd-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -20px -22px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.94);
  padding: 16px 22px;
  backdrop-filter: blur(10px);
}

.topbar-brand {
  display: flex;
  min-width: 240px;
  align-items: center;
  gap: 12px;
}

.topbar-brand strong,
.topbar-brand span {
  display: block;
}

.topbar-brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.topbar-brand span:not(.brand-mark) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.toolbar-search {
  width: min(340px, 32vw);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.button,
.ghost-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 800;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.danger-button {
  background: #fff1f4;
  color: var(--danger);
}

.text-button {
  min-height: auto;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
}

.grid-bd {
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(460px, 1fr) minmax(290px, 350px);
  gap: 16px;
  align-items: start;
}

.bd-left {
  display: grid;
  gap: 20px;
}

.login-shell {
  display: grid;
  min-height: calc(100svh - 56px);
  place-items: center;
}

.login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel,
.session-list,
.brief,
.side-panel,
.customer-form,
.chat,
.guide-card,
.guide-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(32, 37, 31, 0.055);
}

.panel {
  padding: 20px;
}

.form-help {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 127, 0.12);
}

.session-list {
  overflow: hidden;
}

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

.compact-header {
  padding: 0 0 10px;
  border-bottom: 0;
}

.compact-header h3 {
  margin: 0;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.session-items {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.session-item {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.session-item:hover,
.session-item.is-selected {
  border-color: var(--accent);
}

.session-item:hover {
  transform: translateY(-1px);
}

.session-item.is-selected {
  background: #f2fbf8;
  box-shadow: inset 3px 0 0 var(--accent);
}

.session-item strong {
  display: block;
  line-height: 1.35;
}

.session-title-block {
  display: grid;
  gap: 4px;
}

.session-title-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 99px;
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.warn {
  background: #fff6df;
  color: var(--warn);
}

.badge.ok {
  background: #edf7f5;
  color: var(--accent-dark);
}

.badge.danger {
  background: #fff1f0;
  color: #b42318;
}

.badge.muted {
  background: var(--soft);
  color: var(--muted);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-row {
  padding: 10px 14px 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  background: rgba(22, 27, 23, 0.28);
  animation: fade-in 160ms ease both;
}

.create-drawer {
  display: grid;
  width: min(560px, 100%);
  max-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -18px 0 50px rgba(32, 37, 31, 0.16);
  animation: drawer-in 180ms ease both;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.drawer-header h2 {
  margin: 2px 0 0;
}

.drawer-body {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px;
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.created-state {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.created-state h3 {
  margin: 0;
  font-size: 20px;
}

.drawer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-copy {
  display: grid;
  gap: 12px;
}

.share-copy article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  padding: 12px;
}

.share-copy p {
  margin: 0;
  color: #303730;
  line-height: 1.6;
}

.side-panel {
  overflow: hidden;
}

.side-actions {
  display: grid;
  gap: 10px;
}

.side-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button-grid .ghost-button:last-child {
  grid-column: 1 / -1;
}

.profile-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.profile-box summary,
.detail-fold summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.profile-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-box summary .text-button {
  min-height: 30px;
}

.profile-edit-form {
  display: grid;
  gap: 12px;
}

.profile-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  width: 100%;
}

.profile-edit-form textarea {
  min-height: 84px;
  resize: vertical;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.profile-list div {
  display: grid;
  gap: 4px;
}

.profile-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-list dd {
  margin: 0;
  color: #303730;
  line-height: 1.55;
}

.session-actions {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 180px) repeat(3, auto);
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.session-actions > div {
  display: grid;
  gap: 6px;
}

.session-actions small {
  color: var(--muted);
  font-weight: 700;
}

.session-actions label {
  gap: 6px;
  font-size: 12px;
}

.brief {
  min-height: 680px;
}

.brief-empty,
.empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.brief-empty.full,
.empty.full {
  grid-column: 1 / -1;
}

.empty.compact {
  min-height: 120px;
  padding: 14px;
}

.access-state {
  display: grid;
  min-height: 360px;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.access-state h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.access-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.brief-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.hero-summary {
  border-bottom-color: var(--accent);
}

.comprehensive-brief {
  min-height: auto;
  border: 1px solid #cbd9d2;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.comprehensive-brief p {
  margin-top: 10px;
  color: #1f271f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.brief-logic {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.brief-logic section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.brief-logic .logic-primary {
  border-top: 0;
  padding-top: 0;
}

.brief-logic small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.brief-logic ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.brief-logic li {
  color: #303730;
  line-height: 1.58;
}

.brief-logic li strong {
  color: var(--ink);
}

.brief-conclusion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.brief-conclusion-row strong {
  display: inline-flex;
  border-radius: 8px;
  background: #f2f5f1;
  color: #303730;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.45;
}

.hero-summary p {
  font-size: 18px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.info-chip {
  display: inline-flex;
  max-width: 100%;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--accent-dark);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.field {
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field p,
.field ul,
.field ol {
  margin: 8px 0 0;
  color: #303730;
  line-height: 1.62;
}

.field ul,
.field ol {
  padding-left: 20px;
}

.detail-fold {
  min-height: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.detail-fold ul {
  margin-top: 12px;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.signal-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  padding: 12px;
}

.signal-card strong,
.signal-card span {
  display: block;
}

.signal-card span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.signal-card p {
  margin: 0;
  color: #303730;
  line-height: 1.55;
}

.payment-panel {
  min-height: auto;
  border: 1px solid #cfe3dc;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.payment-tags {
  margin-top: 10px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.payment-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.payment-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.payment-block p,
.payment-block ul,
.payment-risks p,
.payment-risks ul {
  margin-top: 8px;
  color: #303730;
  font-size: 13px;
  line-height: 1.58;
}

.payment-risks {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.payment-risks strong {
  display: block;
  font-size: 13px;
}

.customer-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.customer-layout.is-complete {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}

.customer-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.guide-card {
  min-height: 680px;
  padding: 24px;
}

.guide-side {
  overflow: hidden;
}

.side-content {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.side-content p {
  color: #303730;
  line-height: 1.65;
}

.live-summary {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.live-summary h3 {
  margin-bottom: 0;
}

.live-summary p {
  margin-bottom: 0;
}

.guide-form {
  display: grid;
  gap: 20px;
}

.question-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.guide-form h2,
.complete-state h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.question-helper,
.complete-state p {
  color: var(--muted);
  line-height: 1.65;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.option-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.option-card:has(input:checked) {
  border-color: var(--accent);
  background: #edf7f5;
}

.option-card input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

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

.option-card small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.custom-answer {
  margin-top: 4px;
}

.complete-state,
.review-state {
  display: grid;
  gap: 18px;
  min-height: 360px;
  align-content: center;
  justify-items: start;
}

.review-state {
  min-height: auto;
}

.summary-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.summary-list.compact {
  gap: 8px;
}

.summary-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  padding: 12px;
}

.summary-list.compact .summary-item {
  padding: 10px;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-item strong {
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.answer-item {
  border-left: 3px solid var(--accent);
  background: #f8faf7;
  padding: 10px 12px;
}

.answer-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.answer-item p {
  margin: 6px 0 0;
  color: #303730;
  line-height: 1.55;
}

.chat {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  overflow: hidden;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 20px;
}

.message {
  max-width: 86%;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.58;
  animation: in 180ms ease both;
}

.message.assistant {
  align-self: flex-start;
  background: var(--soft);
}

.message.customer {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.progress {
  display: grid;
  gap: 8px;
  width: min(240px, 34vw);
}

.progress span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--soft);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}

.link-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

code {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  transform: translateY(16px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.loading {
  padding: 28px;
  color: var(--muted);
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1320px) {
  .grid-bd {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .bd-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-bd,
  .customer-layout {
    grid-template-columns: 1fr;
  }

  .bd-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-brand {
    min-width: 0;
  }

  .brief {
    min-height: auto;
  }

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

  .toolbar-search {
    width: min(360px, 100%);
  }

  .session-actions {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .sidebar-note {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .bd-workspace {
    padding: 14px;
  }

  .bd-topbar {
    margin: -14px -14px 14px;
    padding: 14px;
  }

  .customer-mode .workspace {
    padding: 16px;
  }

  .header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar-search {
    width: 100%;
  }

  .header-actions .button,
  .header-actions .ghost-button {
    width: 100%;
  }

  .create-drawer {
    width: 100%;
  }

  .drawer-action-row {
    display: grid;
  }

  .customer-shell .header h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .progress {
    width: 100%;
  }

  .brief-body {
    grid-template-columns: 1fr;
  }

  .filter-row,
  .session-actions {
    grid-template-columns: 1fr;
  }

  .form-grid-two,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .button-grid .ghost-button:last-child {
    grid-column: auto;
  }

  .session-actions .ghost-button {
    width: 100%;
  }

  .chat {
    min-height: 560px;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: auto;
    padding: 18px;
  }

  .customer-layout.is-complete {
    max-width: none;
  }

  .complete-state,
  .review-state {
    min-height: 300px;
    justify-items: stretch;
  }

  .complete-state .ghost-button,
  .action-row .button,
  .action-row .ghost-button {
    width: 100%;
  }

  .guide-form h2,
  .complete-state h2,
  .review-state h2 {
    font-size: 24px;
  }

  .action-row {
    display: grid;
  }

  .option-card {
    padding: 13px;
  }
}
