:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: #d7e0ea;
  --text: #17202a;
  --muted: #667585;
  --primary: #16794f;
  --primary-dark: #0f5e3c;
  --green: #1b7f5a;
  --amber: #a86200;
  --red: #b42318;
  --shadow: 0 12px 30px rgba(20, 35, 55, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: #f0b4ad;
  color: var(--red);
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.login-copy {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: #14324d;
  color: #fff;
}

.login-copy h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.08;
}

.login-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.login-panel {
  align-self: center;
  margin: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 0 0 22px;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #16231d;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e9f3ff;
  color: #102437;
  font-weight: 800;
}

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

.brand small {
  max-width: 168px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav button,
.ghost {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.nav button {
  padding: 10px 12px;
}

.nav button.active,
.nav button:hover,
.ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ghost {
  margin-top: auto;
  padding: 10px 12px;
}

.main {
  min-width: 0;
}

.page,
.deal-page {
  padding: 24px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-heading h1,
.deal-main h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

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

.muted {
  color: var(--muted);
}

.page-heading .muted {
  margin: 8px 0 0;
  line-height: 1.6;
}

.primary,
.secondary,
.danger {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
}

.primary {
  background: var(--primary);
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary:hover {
  border-color: #a9bacb;
}

.danger {
  background: var(--red);
}

.full {
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat,
.panel,
.list-panel,
.deal-main,
.conversation-card,
.asset-card,
.followup-card,
.insight,
.reply-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat {
  padding: 14px;
}

.stat span,
.status-pill,
.badge {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.conversation-list,
.asset-list,
.followup-list,
.turn-list {
  display: grid;
  gap: 10px;
}

.conversation-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.conversation-card.active {
  border-color: #8eb8dd;
  background: #f2f8ff;
}

.conversation-card strong,
.asset-card strong,
.followup-card strong {
  display: block;
  margin-bottom: 4px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.deal-page {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
}

.list-panel {
  align-self: start;
  padding: 12px;
}

.list-scroll {
  margin-top: 12px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.deal-main {
  min-height: calc(100vh - 48px);
  padding: 18px;
}

.deal-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.opportunity-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.opportunity-pill.high,
.badge.high {
  border-color: #acd8c6;
  background: #edf9f4;
  color: var(--green);
}

.opportunity-pill.low,
.badge.low {
  border-color: #ead2a8;
  background: #fff8e8;
  color: var(--amber);
}

.opportunity-pill.unfit,
.badge.unfit {
  border-color: #efb8b0;
  background: #fff1ef;
  color: var(--red);
}

.workspace {
  display: grid;
  gap: 16px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

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

.insight {
  padding: 12px;
}

.insight span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deal-grid {
  display: grid;
  grid-template-columns: 280px 300px minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.reply-box {
  min-height: 180px;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.75;
  background: #fbfdff;
}

.turn-card {
  border-left: 3px solid var(--primary);
  padding: 12px 0 12px 12px;
}

.turn-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.turn-card p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.6;
}

.skill-panel {
  margin-top: 16px;
}

.skill-panel.compact {
  margin-top: 0;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-groups.compact {
  grid-template-columns: 1fr;
}

.skill-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

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

.skill-group-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.skill-group p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.skill-list {
  display: grid;
  gap: 8px;
}

.skill-item {
  min-height: 42px;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
  background: #fff;
}

.skill-item strong {
  font-size: 13px;
}

.skill-item span,
.used-skills span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.used-skills {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
}

.priority-panel {
  margin-top: 16px;
}

.priority-list,
.coaching-list,
.variant-grid {
  display: grid;
  gap: 10px;
}

.priority-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.priority-card:hover {
  border-color: #8eb8dd;
  background: #f2f8ff;
}

.priority-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.priority-card small {
  color: var(--muted);
  line-height: 1.5;
}

.variant-grid {
  margin-top: 10px;
}

.variant-card,
.coaching-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.variant-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.variant-card pre,
.coaching-card pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.asset-suggestion {
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.mobile-shell {
  padding: 18px;
}

.mobile-head {
  margin-bottom: 14px;
}

.mobile-head h1 {
  margin: 0;
  font-size: 26px;
}

.mobile-grid {
  display: grid;
  grid-template-columns: 280px minmax(320px, 520px);
  gap: 14px;
  align-items: start;
}

.mobile-card {
  max-width: 520px;
}

.mobile-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.mobile-customer span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-replies {
  margin-top: 16px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.asset-card,
.followup-card {
  padding: 12px;
}

.asset-card p,
.followup-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.matched-evidence,
.proof-missing {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid var(--line);
}

.matched-evidence p {
  margin: 8px 0 0;
  display: grid;
  gap: 3px;
  color: var(--text);
}

.matched-evidence p span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.matched-evidence small,
.proof-missing {
  color: var(--muted);
  line-height: 1.5;
}

.proof-missing {
  border-color: #f3c98b;
  background: #fff8eb;
}

.assessment-list {
  display: grid;
  gap: 12px;
}

.assessment-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.assessment-card h3,
.assessment-card p {
  margin: 0;
}

.risk-note {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px;
}

.assessment-preview {
  width: min(100%, 320px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.assessment-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

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

.chat-deal-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: #e9edf0;
}

.chat-list-panel {
  border-right: 1px solid var(--line);
  background: #f8fafc;
  padding: 14px;
  min-height: 100vh;
}

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

.chat-list-head h2 {
  margin: 0;
  font-size: 20px;
}

.icon-action {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.chat-main {
  min-width: 0;
  padding: 0;
}

.chat-workspace {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.chat-topbar h1 {
  margin: 0;
  font-size: 26px;
}

.chat-topbar p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chat-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.chat-thread {
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: #eef1f3;
}

.chat-empty {
  max-width: 520px;
  margin: 12vh auto;
  text-align: center;
  color: var(--muted);
}

.chat-empty h2 {
  margin: 8px 0;
  color: var(--text);
}

.chat-turn {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.bubble-row {
  display: flex;
}

.bubble-row.customer {
  justify-content: flex-start;
}

.bubble-row.assistant {
  justify-content: flex-end;
}

.bubble,
.assistant-card {
  max-width: min(760px, 84%);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.customer-bubble {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
}

.customer-bubble span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-bubble pre,
.assistant-card pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font-family: inherit;
}

.assistant-card {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #cfd9d3;
}

.psychology {
  margin: 8px 0;
  color: #27533a;
  line-height: 1.6;
}

.recommended-reply {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.copy-reply {
  min-height: 32px;
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.best-reply {
  font-size: 15px;
  line-height: 1.8 !important;
}

.decision-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.decision-details summary {
  cursor: pointer;
  color: #4d6257;
  font-weight: 800;
}

.assistant-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.thinking-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(22, 121, 79, 0.12);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.82); }
}

.chat-side {
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
}

.side-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfdff;
}

.side-block h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.mini-proof,
.assessment-mini {
  display: grid;
  gap: 8px;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  margin-bottom: 8px;
}

.mini-proof {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.mini-proof img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mini-proof strong,
.assessment-mini strong {
  display: block;
  font-size: 13px;
}

.mini-proof span,
.assessment-mini p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-composer {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-composer textarea {
  min-height: 58px;
  border-radius: 8px;
  background: #f8fafc;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

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

.matched-proof {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.matched-proof img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.upload-panel {
  border-color: #bfe8cf;
}

.upload-drop {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #9ac7ad;
  border-radius: 8px;
  background: #f2fbf6;
  text-align: center;
  color: #27533a;
}

.evidence-upload-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-bottom: 18px;
}

.upload-drop.premium {
  min-height: 230px;
  align-content: center;
  border: 1px dashed #77ad91;
  background: #f5fbf7;
}

.upload-drop.premium input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-drop.premium strong {
  font-size: 18px;
}

.upload-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #dff3e8;
  color: var(--primary);
  font-size: 25px !important;
}

.upload-drop.dragging,
.upload-drop.uploading {
  border-color: var(--primary);
  background: #eaf7ef;
}

.recognition-note {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17251f;
  color: #fff;
}

.recognition-note span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.evidence-library .panel-head > div small {
  color: var(--muted);
}

.asset-list.visual-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.asset-list.visual-grid .asset-card {
  align-content: start;
}

.asset-list.visual-grid .asset-thumb {
  aspect-ratio: 4 / 3;
}

.assessment-share-panel {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #b9d8c8;
  border-radius: 8px;
  background: #f8fcfa;
}

.assessment-share-panel h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.assessment-share-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.assessment-share-panel code {
  display: block;
  max-width: 680px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assessment-share-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-frame svg {
  width: 220px;
  height: 220px;
}

.public-assessment-shell {
  min-height: 100vh;
  padding: 38px 18px;
  background: #eef2ef;
}

.public-assessment-card {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #ccd8d1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.public-assessment-card h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
}

.public-brand {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.public-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
}

.consent-row input {
  width: 18px;
  margin-top: 2px;
}

.public-assessment-card.complete {
  max-width: 560px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #e4f5eb;
  color: var(--primary);
  font-size: 32px;
  font-weight: 900;
}

.public-result {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.public-result span,
.public-assessment-card small {
  color: var(--muted);
}

.upload-drop input {
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.upload-drop span {
  font-size: 16px;
  font-weight: 900;
}

.asset-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: #f8fafc;
}

.asset-card.priority-proof {
  border-color: #9ac7ad;
  background: #fbfffc;
}

.badge.warning {
  border-color: #f3c98b;
  background: #fff8eb;
  color: var(--amber);
}

@media (max-width: 1100px) {
  .stat-grid,
  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .skill-groups,
  .deal-grid {
    grid-template-columns: 1fr;
  }

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

  .chat-side {
    display: none;
  }
}

@media (max-width: 820px) {
  .login,
  .layout,
  .deal-page,
  .chat-deal-page {
    grid-template-columns: 1fr;
  }

  .login-copy {
    min-height: auto;
    padding: 36px 20px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

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

  .page,
  .deal-page {
    padding: 14px;
  }

  .page-heading,
  .workspace-head {
    display: grid;
  }

  .stat-grid,
  .form-row,
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .deal-main {
    min-height: auto;
  }

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

  .chat-list-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-workspace {
    height: auto;
    min-height: 72vh;
  }

  .chat-topbar,
  .composer-actions {
    display: grid;
  }

  .bubble,
  .assistant-card {
    max-width: 100%;
  }

  .evidence-upload-hero,
  .assessment-share-panel,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .assessment-share-panel {
    padding: 18px;
  }

  .public-assessment-card {
    padding: 22px 18px;
  }

  .public-assessment-card h1 {
    font-size: 28px;
  }
}
