:root {
  --ink: #151c1b;
  --muted: #6d746f;
  --line: #e2ded5;
  --paper: #ffffff;
  --paper-soft: #f7f6f1;
  --soft: #f0f1ed;
  --teal: #0b746b;
  --teal-ink: #064941;
  --teal-soft: #edf4f1;
  --gold: #8d6b3d;
  --danger: #9f3f35;
  --shadow: 0 18px 44px rgba(21, 28, 27, 0.08);
  --shadow-soft: 0 8px 22px rgba(21, 28, 27, 0.055);
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3f3ef;
  overscroll-behavior-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f3ef;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

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

button {
  touch-action: manipulation;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

button:hover {
  border-color: rgba(23, 108, 98, 0.45);
  box-shadow: 0 8px 20px rgba(24, 32, 30, 0.05);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  border-right: 1px solid rgba(21, 28, 27, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 26px 22px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background: #17211f;
  color: #f5dca8;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(20, 32, 30, 0.1);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.brand p {
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

.account-toggle-host[hidden],
.account-panel[hidden] {
  display: none;
}

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

.account-toggle-host,
.account-panel {
  display: grid;
}

.account-avatar-toggle {
  padding: 0;
  transition:
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.account-avatar-toggle:hover {
  border-color: rgba(13, 130, 118, 0.45);
  background: #20312d;
  box-shadow: 0 10px 22px rgba(20, 32, 30, 0.12);
  transform: translateY(-1px);
}

.account-avatar-toggle span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.account-avatar-toggle img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-avatar-toggle[aria-expanded="true"] {
  border-color: rgba(13, 130, 118, 0.72);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 130, 118, 0.13), 0 12px 24px rgba(13, 130, 118, 0.18);
  outline: 2px solid rgba(13, 130, 118, 0.18);
  outline-offset: 2px;
}

.account-drawer {
  display: grid;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  animation: accountDrawerEnter 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top left;
}

@keyframes accountDrawerEnter {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-context-card {
  display: grid;
  gap: 8px;
}

.account-context-head {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 2px 2px 0;
}

.account-context-head > div,
.account-context-block,
.account-drawer-section {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-drawer-section label {
  display: grid;
  gap: 6px;
}

.account-context-head small,
.account-context-block small,
.account-drawer-section small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-context-head strong,
.account-context-head span,
.account-context-block strong,
.account-context-block span,
.account-drawer-section strong,
.account-drawer-section span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-context-head strong,
.account-context-block strong,
.account-drawer-section strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.identity-dropdown-button,
.corp-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background: rgba(13, 130, 118, 0.07);
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 850;
  padding: 0 10px;
}

.identity-dropdown-button span,
.corp-dropdown-button span {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-dropdown-button b,
.corp-dropdown-button b {
  color: var(--teal);
  font-size: 9px;
  line-height: 1;
}

.identity-dropdown-button:disabled,
.corp-dropdown-button:disabled {
  opacity: 1;
  cursor: default;
}

.account-context-head span,
.account-context-block span,
.account-drawer-section span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.account-drawer-section select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 0 9px;
}

.basic-info-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border-color: rgba(141, 107, 61, 0.14);
  background: #fbfaf7;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  padding: 8px 10px;
}

.basic-info-entry span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.basic-info-entry small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basic-info-entry b {
  color: var(--teal);
  font-size: 9px;
}

.basic-info-form {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(13, 130, 118, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.basic-info-form label {
  display: grid;
  gap: 5px;
}

.basic-info-form label > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.basic-info-form input,
.basic-info-form select {
  min-height: 36px;
  font-size: 13px;
}

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

.basic-info-form button[type="submit"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.corp-choice-list {
  display: grid;
  gap: 5px;
}

.corp-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  border-color: rgba(13, 130, 118, 0.1);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  padding: 4px 7px;
}

.corp-choice:hover {
  border-color: rgba(13, 130, 118, 0.42);
  background: #eef8f5;
  box-shadow: none;
  transform: none;
}

.corp-choice.active {
  border-color: rgba(13, 130, 118, 0.48);
  background: var(--teal-soft);
}

.corp-choice > span:not(.corp-icon) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.corp-icon {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.corp-choice.active .corp-icon {
  background: var(--teal);
  color: #ffffff;
}

.account-context-card .usage-section {
  border-top: 1px solid rgba(13, 130, 118, 0.12);
  padding-top: 8px;
}

.usage-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.usage-section strong {
  color: var(--teal);
  font-size: 15px;
}

.usage-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.11);
}

.usage-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.account-logout {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border-color: rgba(159, 63, 53, 0.18);
  background: #fff8f7;
  color: var(--danger);
  font-size: 13px;
}

.account-context-card .workspace-section {
  border-top: 1px solid rgba(13, 130, 118, 0.12);
  padding-top: 8px;
}

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

.nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  color: rgba(24, 33, 31, 0.78);
  padding: 0 12px;
}

.nav button.active {
  border-color: rgba(13, 130, 118, 0.18);
  background: var(--teal-soft);
  color: var(--teal);
  box-shadow: none;
}

.tab-icon {
  position: relative;
  display: inline-block;
  width: 21px;
  min-width: 21px;
  height: 21px;
  color: currentColor;
}

.tab-icon-dashboard {
  border: 2px solid currentColor;
  border-radius: 6px;
}

.tab-icon-dashboard::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    7px 0 0 currentColor,
    0 7px 0 currentColor,
    7px 7px 0 currentColor;
}

.tab-icon-train {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon-train::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.tab-icon-contacts::before,
.tab-icon-contacts::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon-contacts::before {
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  box-shadow: 10px 0 0 -1px currentColor;
}

.tab-icon-contacts::after {
  left: 1px;
  bottom: 2px;
  width: 15px;
  height: 8px;
  border-radius: 9px 9px 4px 4px;
  border-top-color: transparent;
}

.tab-icon-conversation {
  border: 2px solid currentColor;
  border-radius: 7px;
}

.tab-icon-conversation::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: #ffffff;
  transform: rotate(-20deg);
}

.tab-icon-opportunities {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon-opportunities::before,
.tab-icon-opportunities::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.tab-icon-opportunities::before {
  left: 7px;
  top: 3px;
  width: 3px;
  height: 11px;
}

.tab-icon-opportunities::after {
  left: 3px;
  top: 7px;
  width: 11px;
  height: 3px;
}

.tab-icon-memory {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.tab-icon-memory::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.composer-nav {
  justify-content: center;
  gap: 8px;
  border-color: rgba(24, 33, 31, 0.08);
  background: rgba(246, 249, 248, 0.8);
  color: rgba(24, 33, 31, 0.82);
  padding: 0 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.64),
    0 1px 0 rgba(24, 33, 31, 0.04);
}

.composer-nav.composer-active {
  border-color: rgba(23, 33, 31, 0.2);
  background: #17211f;
  color: #f5dca8;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.12);
}

.composer-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.composer-tag-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  min-width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.composer-tag-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.composer-tag-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.main {
  position: relative;
  min-width: 0;
  padding: 28px;
}

.language-toggle,
.help-toggle {
  min-width: 48px;
  min-height: 30px;
  border-color: rgba(141, 107, 61, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0 10px;
}

.help-toggle {
  display: grid;
  place-items: center;
  min-width: 30px;
  width: 30px;
  padding: 0;
  font-size: 13px;
}

.language-toggle:hover,
.help-toggle:hover,
.help-toggle.active {
  border-color: rgba(141, 107, 61, 0.32);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(21, 28, 27, 0.08);
}

.help-toggle.active {
  background: var(--teal);
  color: #ffffff;
}

.view {
  min-width: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.help-bubble-host {
  position: sticky;
  top: 18px;
  z-index: 6;
  width: min(1240px, 100%);
  height: 0;
  margin: 0 auto;
  pointer-events: none;
}

.help-bubble {
  display: grid;
  gap: 10px;
  width: min(380px, 100%);
  margin-left: auto;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 32, 30, 0.12);
  padding: 12px;
  pointer-events: auto;
  animation: helpBubbleEnter 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes helpBubbleEnter {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.help-bubble-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.help-bubble-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.help-bubble-head span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.help-bubble-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.help-close {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  color: var(--muted);
}

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

.help-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 33, 31, 0.07);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 8px;
}

.help-steps li > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 11px;
}

.help-steps span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.help-steps strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.help-steps button {
  min-height: 28px;
  border-color: rgba(13, 130, 118, 0.16);
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  padding: 0 9px;
}

.system-notice-host {
  width: min(1240px, 100%);
  margin: 0 auto 12px;
}

.system-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(154, 116, 63, 0.26);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(25, 35, 31, 0.06);
  padding: 12px 14px;
}

.system-notice.danger {
  border-color: rgba(159, 63, 53, 0.28);
  background: #fff5f3;
}

.system-notice.success {
  border-color: rgba(13, 130, 118, 0.18);
  background: #f8faf7;
}

.system-notice-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(154, 116, 63, 0.14);
  color: #755a31;
  font-weight: 900;
}

.system-notice.danger .system-notice-icon {
  background: rgba(159, 63, 53, 0.12);
  color: var(--danger);
}

.system-notice.success .system-notice-icon {
  background: rgba(13, 130, 118, 0.12);
  color: var(--teal);
}

.system-notice strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.system-notice p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.system-notice button {
  min-height: 34px;
  white-space: nowrap;
}

.system-notice button:not(.system-notice-close) {
  border-color: rgba(154, 116, 63, 0.22);
  background: #ffffff;
  color: #755a31;
}

.system-notice-close {
  width: 34px;
  padding: 0;
  color: var(--muted);
}

.login-recovery,
.connection-issue {
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 250, 248, 0.92)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(24, 32, 30, 0.06);
}

.login-recovery {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.login-recovery strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.login-recovery p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.login-recovery button {
  justify-self: start;
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.2);
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  box-shadow: none;
}

.connection-issue {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  margin: 72px auto;
  padding: 24px;
}

.connection-issue-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-soft);
}

.connection-issue-icon::before,
.connection-issue-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  border: 3px solid var(--teal);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.connection-issue-icon::before {
  top: 15px;
  height: 11px;
  opacity: 0.5;
}

.connection-issue-icon::after {
  top: 22px;
  height: 8px;
}

.connection-issue span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.connection-issue h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.connection-issue p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.connection-issue ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connection-issue li {
  position: relative;
  color: rgba(23, 33, 31, 0.78);
  font-size: 13px;
  line-height: 1.45;
  padding-left: 18px;
}

.connection-issue li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.connection-issue button {
  justify-self: start;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.content-grid.relationship-workspace {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: start;
}

body[data-auth="guest"],
body[data-auth="corp-selection"] {
  background: #f3f3ef !important;
}

body[data-auth="guest"] .app,
body[data-auth="corp-selection"] .app {
  display: block;
  min-height: 100vh;
}

body[data-auth="guest"] .sidebar,
body[data-auth="corp-selection"] .sidebar {
  display: none;
}

body[data-auth="guest"] .main,
body[data-auth="corp-selection"] .main {
  min-height: 100vh;
  padding: 0;
}

body[data-auth="guest"] .view,
body[data-auth="corp-selection"] .view {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
}

body[data-view="embed-name-card"] {
  background: transparent;
}

body[data-view="embed-name-card"] .app {
  display: block;
  min-height: 100vh;
}

body[data-view="embed-name-card"] .sidebar {
  display: none;
}

body[data-view="embed-name-card"] .main {
  min-height: 100vh;
  padding: 0;
}

body[data-view="embed-name-card"] .view {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
}

.login-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.visitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 28px;
}

.visitor-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.visitor-brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.visitor-brand p {
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: start;
  gap: 24px;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0;
}

.visitor-portal {
  display: grid;
  gap: 18px;
}

.visitor-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.portal-hero {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.portal-hero span,
.section-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.portal-actions,
.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.portal-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  padding: 0 16px;
}

.portal-actions a.secondary {
  border-color: rgba(13, 130, 118, 0.18);
  background: var(--teal-soft);
  color: var(--teal);
}

.login-points strong {
  border: 1px solid rgba(13, 130, 118, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  padding: 8px 10px;
  font-size: 13px;
}

.audience-split,
.portal-flow {
  display: grid;
  gap: 10px;
}

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

.portal-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-split article,
.portal-flow article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}

.audience-split article {
  border-color: rgba(13, 130, 118, 0.13);
}

.audience-split span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.audience-split h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.portal-flow strong {
  color: var(--teal);
  font-size: 14px;
}

.audience-split p,
.portal-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portal-card-section {
  display: grid;
  gap: 12px;
}

.trust-panel {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.trust-panel strong {
  color: var(--teal-ink);
  font-size: 14px;
}

.trust-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-head {
  display: grid;
  gap: 4px;
}

.section-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.public-name-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(25, 35, 31, 0.08);
  padding: 16px;
}

.public-name-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(141, 107, 61, 0.68), rgba(13, 130, 118, 0.22), transparent);
  animation: public-card-accent 5.8s ease-in-out infinite;
}

.public-name-card.is-embedded {
  width: min(100%, 460px);
  margin: 0;
  box-shadow: 0 14px 36px rgba(25, 35, 31, 0.1);
}

.public-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.public-card-main-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.public-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.public-card-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #17211f;
  color: #f5dca8;
  font-size: 22px;
  font-weight: 900;
}

.public-card-top p,
.public-card-body p {
  margin: 0;
}

.public-card-top p {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.public-card-top h3 {
  margin: 3px 0 2px;
  font-size: 25px;
  line-height: 1.12;
}

.public-card-top strong {
  color: var(--muted);
  font-size: 13px;
}

.public-card-body {
  display: grid;
  gap: 7px;
  padding-top: 0;
}

.public-card-body h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.public-card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.public-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-card-tags span {
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--teal-ink);
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 850;
}

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

.public-card-sections.is-simplified {
  grid-template-columns: 1fr;
}

.public-card-sections section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 10px;
  background: #fbfaf7;
  padding: 9px 12px;
}

.public-card-sections h5 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.public-card-sections p {
  position: relative;
  flex: 0 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  padding-left: 12px;
}

.public-card-sections p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.public-card-promise {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border-top: 1px solid rgba(141, 107, 61, 0.16);
  background: linear-gradient(180deg, rgba(251, 250, 247, 0), rgba(251, 250, 247, 0.48));
  padding: 9px 0 0;
}

.public-card-promise-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.public-card-promise p {
  margin: 0;
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.public-card-promise div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.public-card-promise span {
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--teal);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 850;
}

.public-card-qr {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 108px;
  min-width: 108px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal-ink);
  padding: 7px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.public-card-qr::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: linear-gradient(180deg, transparent, rgba(13, 130, 118, 0.08), transparent);
  opacity: 0;
  transform: translateY(-34px);
  animation: public-card-qr-scan 4.8s ease-in-out infinite;
  pointer-events: none;
}

.public-card-qr:hover {
  border-color: rgba(13, 130, 118, 0.32);
  box-shadow: 0 8px 20px rgba(13, 130, 118, 0.08);
  transform: translateY(-1px);
}

.public-card-qr svg {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  fill: var(--teal-ink);
}

.public-card-qr small,
.public-card-qr span {
  position: relative;
  z-index: 1;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
}

@keyframes public-card-accent {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@keyframes public-card-qr-scan {
  0%,
  62% {
    opacity: 0;
    transform: translateY(-34px);
  }

  72% {
    opacity: 1;
  }

  88% {
    opacity: 0;
    transform: translateY(34px);
  }

  100% {
    opacity: 0;
    transform: translateY(34px);
  }
}

.public-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.public-card-actions.is-single {
  grid-template-columns: 1fr;
}

.public-card-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.public-card-actions a.secondary {
  border-color: rgba(13, 130, 118, 0.18);
  background: var(--teal-soft);
  color: var(--teal);
}

.public-card-chat {
  display: grid;
  gap: 10px;
}

.public-card-chat strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.public-card-chat p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.public-card-chat textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px;
}

.public-card-chat button {
  min-height: 38px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.public-chat-status {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background: var(--teal-soft);
  padding: 10px;
}

.public-chat-status strong {
  color: var(--teal-ink);
  font-size: 12px;
}

.public-chat-status p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: rgba(23, 33, 31, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.public-chat-status p b {
  color: var(--gold);
  font-size: 10.5px;
  line-height: 1;
}

.public-chat-status a {
  justify-self: start;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.public-share-panel {
  gap: 12px;
}

.public-share-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.public-share-qr {
  display: grid;
  place-items: center;
  width: 148px;
  min-width: 148px;
  min-height: 148px;
  border: 1px solid rgba(13, 130, 118, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  text-decoration: none;
}

.public-share-qr svg {
  width: 132px;
  height: 132px;
  fill: #17211f;
}

.public-share-qr span {
  padding: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.public-share-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.public-share-copy > a {
  overflow-wrap: anywhere;
  border: 1px solid rgba(141, 107, 61, 0.14);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--teal-ink);
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
  text-decoration: none;
}

.public-share-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-share-copy button,
.public-share-copy .button-link {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
}

.embed-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 16px;
}

.public-card-embed-screen {
  align-content: center;
  gap: 12px;
}

.public-chat-entry {
  display: grid;
  width: min(100%, 460px);
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 35, 31, 0.08);
  padding: 16px;
}

.intent-card,
.login-card {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.intent-card h3,
.login-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.intent-card {
  border-color: rgba(13, 130, 118, 0.22);
}

.intent-card h3 {
  font-size: 22px;
}

.login-card p,
.intent-card p,
.login-card small {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-card input,
.login-card select {
  font-size: 16px;
}

.login-only {
  width: min(460px, 100%);
  margin: 0 auto;
}

.intent-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intent-permission-list span {
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--teal-ink);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.login-error {
  border-radius: 8px;
  background: #fff0ee;
  color: var(--danger);
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.login-primary,
.login-wechat {
  width: 100%;
  min-height: 46px;
}

.login-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.login-wechat {
  border-color: rgba(13, 130, 118, 0.18);
  background: var(--teal-soft);
  color: var(--teal);
}

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

.hero-panel,
.panel,
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  grid-column: 1 / -1;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(13, 130, 118, 0.68);
  pointer-events: none;
}

.hero-panel h2,
.panel h3,
.contact-card h3 {
  margin: 0;
}

.hero-panel h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-panel p,
.panel p,
.contact-card p,
.memory p,
.opportunity p,
.task-list p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-panel p {
  max-width: 620px;
  margin-bottom: 0;
}

.meter-block {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 16px;
}

.meter-block strong {
  font-size: 38px;
  line-height: 1;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe7;
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #80a76c);
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 240px;
  padding: 26px 28px;
}

.dashboard-report {
  display: grid;
  gap: 18px;
}

.report-head {
  display: grid;
  gap: 6px;
  max-width: 780px;
}

.report-head span,
.report-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.report-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

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

.dashboard-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.dashboard-brief-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-brief-main span,
.dashboard-brief-side small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-brief-main strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.dashboard-brief-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-brief-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-brief-metrics b {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(141, 107, 61, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  font-size: 16px;
  font-weight: 950;
  padding: 0 9px;
}

.dashboard-brief-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-brief-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.dashboard-brief-items em {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-brief-side {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: stretch;
  min-width: 0;
}

.report-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.report-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(13, 130, 118, 0.28);
}

.report-card.is-primary {
  border-color: rgba(23, 33, 31, 0.2);
  background: #17211f;
  color: #ffffff;
}

.report-card.is-primary::before {
  background: #f5dca8;
}

.report-card-top {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.report-card strong {
  display: block;
  color: inherit;
  font-size: 21px;
  line-height: 1.25;
}

.report-card-top .report-card-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(13, 130, 118, 0.11);
}

.report-card-top .report-card-icon::before,
.report-card-top .report-card-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--teal);
}

.report-card-top .report-card-icon::before {
  left: 6px;
  top: 6px;
  width: 10px;
  height: 3px;
}

.report-card-top .report-card-icon::after {
  left: 6px;
  top: 12px;
  width: 7px;
  height: 3px;
}

.report-card.is-primary .report-card-icon {
  background: rgba(245, 220, 168, 0.16);
}

.report-card.is-primary .report-card-icon::before,
.report-card.is-primary .report-card-icon::after {
  background: #f5dca8;
}

.report-card-top em {
  color: rgba(23, 33, 31, 0.26);
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.report-card.is-primary .report-card-top em {
  color: rgba(245, 220, 168, 0.34);
}

.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.report-card.is-primary p {
  color: rgba(255, 255, 255, 0.74);
}

.report-card button {
  justify-self: start;
}

.report-card.is-primary button {
  border-color: rgba(245, 220, 168, 0.42);
  background: #f5dca8;
  color: #17211f;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.dashboard-hero-actions button:first-child,
.dashboard-ai .panel-head button {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.dashboard-next,
.dashboard-ai,
.dashboard-preview {
  box-shadow: var(--shadow-soft);
}

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

.judgment-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 13px;
}

.judgment-item > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.judgment-item strong,
.recent-task strong,
.compact-row strong {
  display: block;
  color: var(--ink);
  line-height: 1.28;
}

.judgment-item p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-ai {
  align-content: start;
}

.desktop-composer-entry {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 98px;
  justify-items: start;
  border-color: rgba(141, 107, 61, 0.2);
  background: #fbfaf7;
  color: var(--ink);
  text-align: left;
  padding: 16px;
}

.desktop-composer-entry span,
.recent-task span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.desktop-composer-entry strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.55;
}

.quick-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quick-prompts button {
  min-height: 38px;
  border-color: rgba(13, 130, 118, 0.14);
  background: #ffffff;
  color: var(--teal);
  padding: 0 8px;
  font-size: 12px;
}

.recent-task {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
}

.recent-task p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-preview {
  min-height: 260px;
}

.compact-list {
  display: grid;
  gap: 9px;
}

.compact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border-color: rgba(23, 32, 31, 0.08);
  background: var(--paper-soft);
  text-align: left;
  padding: 10px;
}

.compact-row.is-plain {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-row span:not(.avatar) {
  min-width: 0;
}

.compact-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row b {
  color: var(--teal);
  font-size: 13px;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(13, 130, 118, 0.26);
}

.stat span,
.panel-head span,
.memory span,
.opportunity small {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.stat p {
  margin: 5px 0 0;
  font-size: 12px;
}

.panel {
  padding: 20px;
}

.main-panel {
  min-height: 520px;
}

.panel-head,
.card-title,
.opportunity div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.train-form,
.opp-form,
.composer {
  display: grid;
  gap: 10px;
}

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

.opp-commerce-grid label {
  display: grid;
  gap: 6px;
}

.opp-commerce-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 720px) {
  .opp-commerce-grid {
    grid-template-columns: 1fr;
  }
}

.train-panel {
  min-height: auto;
}

@media (min-width: 1280px) {
  .view,
  .system-notice-host,
  .help-bubble-host {
    max-width: 1480px;
  }

  .system-notice-host,
  .help-bubble-host {
    width: min(1480px, 100%);
  }

  .train-panel .train-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .train-panel .draft-builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
  }

  .train-panel .draft-builder-head,
  .train-panel .draft-builder .selection-guide,
  .train-panel .draft-builder-note {
    grid-column: 1 / -1;
  }

  .train-panel .draft-builder .selection-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .train-panel .draft-builder .profile-guide-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .train-panel .train-form textarea[name="message"] {
    min-height: clamp(220px, 28vh, 340px);
  }
}

@media (min-width: 760px) and (max-width: 1279px) {
  .content-grid.relationship-workspace {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .relationship-workspace .conversation-side {
    grid-column: 2;
  }

  .draft-builder .selection-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .draft-builder .draft-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-guide {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  align-items: end;
  gap: 12px;
}

.profile-guide-head > div,
.profile-guide-head label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-guide-head strong {
  font-size: 14px;
}

.profile-guide-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-guide-head label > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-guide-head select {
  min-height: 38px;
  font-size: 13px;
}

.profile-guide-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 130, 118, 0.13);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.profile-guide-card > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(180, 121, 47, 0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.profile-guide-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-guide-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.profile-guide-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-guide-card button {
  min-height: 34px;
  border-color: rgba(13, 130, 118, 0.14);
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  padding: 0 12px;
}

.draft-builder {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px;
}

.draft-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.draft-builder-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.draft-builder-head strong {
  color: var(--ink);
  font-size: 13px;
}

.draft-builder-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-builder-head button {
  min-height: 30px;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  font-size: 12px;
  padding: 0 11px;
  white-space: nowrap;
}

.draft-builder .profile-guide {
  margin-bottom: 0;
  border: 1px solid rgba(13, 130, 118, 0.11);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.draft-builder .selection-guide {
  margin-bottom: 0;
  border-color: rgba(13, 130, 118, 0.11);
  background: #ffffff;
  padding: 6px 8px;
}

.draft-builder .selection-guide[data-open="false"] {
  background: #ffffff;
}

.draft-builder .selection-guide-copy strong {
  font-size: 12px;
}

.draft-builder .selection-guide-copy span {
  font-size: 10.5px;
}

.draft-builder .selection-options button {
  min-height: 22px;
  font-size: 10.5px;
  padding: 0 6px;
}

.draft-builder .profile-guide-head {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 8px;
}

.draft-builder .profile-guide-head select {
  min-height: 34px;
}

.draft-builder .profile-guide-card {
  background: #fbfdfc;
}

.draft-builder-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.selection-guide {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.92)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(24, 32, 30, 0.035);
  padding: 10px;
}

.selection-guide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 86px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 116, 63, 0.7), rgba(13, 130, 118, 0.3));
}

.selection-guide[data-open="false"] {
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 252, 0.95)),
    #ffffff;
}

.selection-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.selection-guide-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.selection-guide-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.selection-guide-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-guide-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.selection-guide-actions b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.07);
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  padding: 0 7px;
  white-space: nowrap;
}

.selection-guide-head button {
  min-height: 24px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #fff;
  color: var(--teal);
  font-size: 11px;
  padding: 0 7px;
  white-space: nowrap;
}

.selection-toggle span {
  display: inline-block;
  margin-right: 4px;
  font-size: 13px;
  line-height: 1;
}

button.selection-guide-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 130, 118, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 255, 255, 0.96)) !important;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 46px;
  appearance: none;
  padding: 7px 8px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

button.selection-guide-foot > span {
  position: relative;
  display: block;
  color: rgba(105, 115, 111, 0.86);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  padding-left: 10px;
}

.selection-guide[data-open="false"] button.selection-guide-foot > span {
  animation: selectionHintBlink 2200ms ease-in-out infinite;
}

button.selection-guide-foot > span::before {
  content: "";
  position: absolute;
  top: 0.22em;
  bottom: 0.22em;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: rgba(154, 116, 63, 0.48);
}

button.selection-guide-foot b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

button.selection-guide-foot b span {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
}

.selection-guide[data-open="false"] button.selection-guide-foot {
  border-color: rgba(154, 116, 63, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: 0 8px 18px rgba(24, 32, 30, 0.035);
  animation: selectionMorePulse 2400ms ease-in-out infinite;
}

.selection-guide[data-open="false"] button.selection-guide-foot b {
  color: #17211f;
}

button.selection-guide-foot:hover {
  border-color: rgba(13, 130, 118, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 255, 255, 1)) !important;
  transform: translateY(-1px);
}

@keyframes selectionHintBlink {
  0%,
  100% {
    color: rgba(105, 115, 111, 0.82);
  }

  45% {
    color: rgba(154, 116, 63, 0.96);
  }
}

@keyframes selectionMorePulse {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(24, 32, 30, 0.035);
  }

  45% {
    box-shadow:
      0 8px 18px rgba(24, 32, 30, 0.04),
      0 0 0 3px rgba(154, 116, 63, 0.14);
  }
}

.selection-groups {
  display: grid;
  gap: 2px;
}

.selection-group-row {
  display: grid;
  grid-template-columns: minmax(78px, 96px) minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border-bottom: 1px solid rgba(13, 130, 118, 0.075);
  padding: 5px 0;
}

.selection-group-row:last-child {
  border-bottom: 0;
}

.selection-group-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 23px;
  padding-top: 1px;
}

.selection-group-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.8px;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: normal;
}

.selection-group-title b {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal);
  font-size: 8.5px;
  font-weight: 900;
  padding: 0 4px;
}

@media (hover: hover) and (pointer: fine) {
  .selection-group-title[data-description]:not([data-description=""]):hover::after {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    max-width: 280px;
    border: 1px solid rgba(154, 116, 63, 0.18);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(22, 31, 29, 0.12);
    color: rgba(23, 33, 31, 0.76);
    content: attr(data-description);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    padding: 7px 8px;
  }
}

.selection-group-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selection-options {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.selection-options button {
  position: relative;
  min-height: 23px;
  border-radius: 999px;
  border-color: rgba(22, 31, 29, 0.12);
  background: rgba(247, 248, 246, 0.86);
  color: rgba(23, 33, 31, 0.72);
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 7px;
  box-shadow: none;
}

.selection-options button.active {
  border-color: rgba(13, 130, 118, 0.95);
  background: #0d8276;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 130, 118, 0.16);
}

.selection-hint {
  display: grid;
  gap: 3px;
  margin-top: 3px;
  border: 1px solid rgba(154, 116, 63, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: rgba(23, 33, 31, 0.78);
  max-width: 520px;
  padding: 6px 8px;
}

.selection-hint.subtle {
  border-color: rgba(13, 130, 118, 0.1);
  background: rgba(248, 251, 250, 0.78);
  color: rgba(105, 115, 111, 0.9);
}

.selection-hint b {
  color: var(--gold);
  font-size: 10.5px;
}

.selection-hint span {
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .selection-options button[data-description]::after {
    content: attr(data-description);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 12;
    width: max-content;
    max-width: 280px;
    border: 1px solid rgba(23, 33, 31, 0.12);
    border-radius: 8px;
    background: #17211f;
    color: #fffdf8;
    box-shadow: 0 14px 30px rgba(24, 32, 30, 0.16);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    padding: 8px 9px;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
    white-space: normal;
  }

  .selection-options button[data-description]:hover::after,
  .selection-options button[data-description]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(13, 130, 118, 0.12);
  padding-top: 7px;
  min-width: 0;
}

.selection-summary strong,
.train-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.train-field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.selection-summary p {
  overflow: hidden;
  margin: 0;
  color: rgba(23, 33, 31, 0.78);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-summary {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.94)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(24, 32, 30, 0.06);
  padding: 14px;
}

.executive-summary::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(154, 116, 63, 0.72), rgba(13, 130, 118, 0.28), transparent);
}

.executive-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.executive-summary-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.executive-summary-head strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.executive-summary-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.executive-summary-head button,
.summary-back button {
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.2);
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 6px 16px rgba(24, 32, 30, 0.04);
  font-size: 12px;
  padding: 0 12px;
  white-space: nowrap;
}

.summary-scenarios {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid rgba(13, 130, 118, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 4px;
  scrollbar-width: none;
}

.summary-scenarios::-webkit-scrollbar {
  display: none;
}

.summary-scenarios button {
  min-height: 30px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: rgba(23, 33, 31, 0.72);
  box-shadow: none;
  font-size: 12px;
  padding: 0 12px;
  white-space: nowrap;
}

.summary-scenarios button.active {
  border-color: rgba(13, 130, 118, 0.3);
  background: #ffffff;
  color: var(--teal);
  box-shadow:
    inset 0 -2px 0 rgba(154, 116, 63, 0.55),
    0 8px 18px rgba(13, 130, 118, 0.08);
}

.summary-flip-shell {
  perspective: 1200px;
}

.summary-flip-card {
  position: relative;
  min-height: 250px;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.executive-summary[data-prompt-open="true"] .summary-flip-card,
.executive-summary[data-prompt-open="true"] .summary-face {
  min-height: 390px;
}

.executive-summary[data-flipped="true"] .summary-flip-card {
  transform: rotateY(180deg);
}

.summary-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 250px;
  backface-visibility: hidden;
  border: 1px solid rgba(13, 130, 118, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  padding: 18px 22px 20px;
}

.summary-back {
  transform: rotateY(180deg);
  border-color: rgba(180, 121, 47, 0.2);
  background:
    linear-gradient(180deg, #fffdf8, #ffffff);
}

.summary-face-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-face-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.summary-face-label span {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-face-label strong {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.summary-face-label strong::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 9px 0 2px;
  background: rgba(154, 116, 63, 0.32);
  vertical-align: -0.12em;
}

.summary-face-top b {
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal);
  font-size: 11px;
  padding: 5px 9px;
}

.summary-face-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.summary-front[data-generating="true"] {
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.summary-face h4 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.summary-face p,
.summary-face dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.72;
}

.summary-generated p {
  position: relative;
  max-width: 1000px;
  padding-left: 16px;
  color: rgba(23, 33, 31, 0.94);
  font-size: 16px;
  line-height: 1.78;
  animation: summaryContentIn 260ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.summary-front[data-prompt-open="true"] .summary-generated p,
.summary-front[data-prompt-open="true"] .summary-empty,
.summary-front[data-prompt-open="true"] .summary-loading {
  margin-top: 210px;
}

.summary-generated p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 3px;
  border-radius: 999px;
  background: rgba(154, 116, 63, 0.52);
}

.summary-face small,
.summary-face dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.summary-empty {
  display: grid;
  gap: 8px;
  max-width: 1040px;
  border: 1px solid rgba(154, 116, 63, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  padding: 13px 16px;
  animation: summaryContentIn 220ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.summary-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.summary-empty small {
  border-top: 1px solid rgba(13, 130, 118, 0.1);
  padding-top: 9px;
  color: rgba(105, 115, 111, 0.92);
  font-size: 12px;
  line-height: 1.55;
}

.summary-face button {
  justify-self: auto;
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal);
  box-shadow: 0 6px 14px rgba(24, 32, 30, 0.04);
  font-size: 12px;
  padding: 0 12px;
}

.summary-front .summary-face-actions button {
  border-color: #17211f;
  background: #17211f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 32, 30, 0.1);
}

.summary-front .summary-face-actions .summary-requirement-toggle {
  border-color: rgba(13, 130, 118, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.summary-front .summary-face-actions .summary-requirement-toggle[aria-expanded="true"] {
  border-color: rgba(13, 130, 118, 0.34);
  background: rgba(13, 130, 118, 0.09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 7px 16px rgba(13, 130, 118, 0.08);
}

.summary-front .summary-face-actions button:disabled {
  border-color: rgba(23, 33, 31, 0.14);
  background: rgba(23, 33, 31, 0.72);
  color: rgba(255, 255, 255, 0.86);
}

.summary-requirement-popover {
  position: absolute;
  top: 72px;
  right: 22px;
  z-index: 4;
  width: min(390px, calc(100% - 44px));
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 252, 0.98));
  box-shadow:
    0 12px 26px rgba(24, 32, 30, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  padding: 9px;
  animation: summaryRequirementIn 180ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.summary-requirement-head,
.summary-requirement-section,
.summary-requirement-popover label {
  display: grid;
  gap: 6px;
}

.summary-requirement-section {
  margin-top: 8px;
}

.summary-requirement-popover span,
.summary-requirement-popover small {
  color: rgba(154, 116, 63, 0.96);
  font-size: 10.5px;
  font-weight: 900;
}

.summary-requirement-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.summary-requirement-options button {
  min-height: 26px;
  border-color: rgba(22, 31, 29, 0.12);
  background: #f7f8f6;
  color: rgba(23, 33, 31, 0.74);
  box-shadow: none;
  font-size: 11px;
  padding: 0 8px;
}

.summary-requirement-options button.active {
  border-color: rgba(13, 130, 118, 0.86);
  background: #0d8276;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 130, 118, 0.16);
}

.summary-requirement-popover textarea {
  min-height: 54px;
  border-color: rgba(13, 130, 118, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

@keyframes summaryRequirementIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.summary-loading {
  display: grid;
  gap: 12px;
  width: min(860px, 100%);
  padding: 8px 0 4px;
  animation: summaryContentIn 180ms ease;
}

.summary-loading span {
  position: relative;
  overflow: hidden;
  height: 15px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
}

.summary-loading span:nth-child(1) {
  width: 84%;
}

.summary-loading span:nth-child(2) {
  width: 64%;
}

.summary-loading span:nth-child(3) {
  width: 42%;
}

.summary-loading span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent);
  transform: translateX(-100%);
  animation: summaryShimmer 1150ms ease-in-out infinite;
}

@keyframes summaryContentIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summaryShimmer {
  to {
    transform: translateX(100%);
  }
}

.summary-face dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.summary-back button {
  justify-self: start;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.ai-circle-hero {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.circle-report {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 16px;
}

.circle-report span,
.circle-report small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.circle-report strong {
  color: var(--teal);
  font-size: 42px;
  line-height: 1;
}

.activity-list,
.opportunity-state-list,
.visitor-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.visitor-row {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 82px;
  justify-items: start;
  border-color: rgba(23, 32, 31, 0.08);
  background: var(--paper-soft);
  text-align: left;
  padding: 13px;
}

.activity-item span,
.visitor-row small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.activity-item strong,
.visitor-row strong {
  color: var(--ink);
  line-height: 1.3;
}

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

.opportunity-board {
  min-height: auto;
}

.decision-card {
  border-color: rgba(13, 130, 118, 0.14);
  background: #fbfdfc;
}

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

.opportunity-actions button:first-child {
  border-color: #17211f;
  background: #17211f;
  color: #f5dca8;
}

.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.button-link {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 0 14px;
  text-decoration: none;
}

.public-card-workspace .public-name-card {
  margin: 0;
}

.visitor-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.visitor-row span:not(.avatar) {
  display: grid;
  gap: 4px;
}

.train-actions {
  display: flex;
  justify-content: flex-end;
}

.train-actions button {
  min-width: 180px;
}

.draft-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(180, 121, 47, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  padding: 10px;
}

.draft-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.draft-preview-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.draft-preview-head strong {
  color: var(--ink);
  font-size: 13px;
}

.draft-preview-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.draft-preview pre {
  max-height: 170px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(180, 121, 47, 0.13);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  padding: 9px;
}

.draft-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.profile-import-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px;
}

.profile-import-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.profile-import-head > div,
.profile-import-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-import-head strong,
.profile-import-meta b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-import-head span,
.profile-import-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
}

.profile-import-button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(13, 130, 118, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.profile-import-input {
  display: none;
}

.profile-import-result {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(141, 107, 61, 0.12);
  padding-top: 9px;
}

.profile-import-result.is-error {
  border-top-color: rgba(159, 63, 53, 0.18);
}

.profile-import-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
}

.profile-import-meta span {
  grid-column: 1 / -1;
}

.profile-import-meta em {
  justify-self: end;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.profile-import-result.is-error .profile-import-meta em {
  background: #fff0ee;
  color: var(--danger);
}

.profile-import-preview {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(13, 130, 118, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.profile-import-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  border-radius: 6px;
  background: #f3f1eb;
  object-fit: contain;
}

.profile-import-preview figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-import-block {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(13, 130, 118, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px;
}

.profile-import-block strong {
  color: var(--ink);
  font-size: 14px;
}

.profile-import-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.profile-import-block div,
.profile-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-import-block span,
.profile-import-actions b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0 8px;
}

.profile-import-section {
  display: grid;
  gap: 7px;
}

.profile-import-section h5 {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.profile-import-list {
  display: grid;
  gap: 7px;
}

.profile-import-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  padding: 10px;
}

.profile-import-item.is-selected {
  border-color: rgba(13, 130, 118, 0.26);
  background: var(--teal-soft);
}

.profile-import-item input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.profile-import-item span,
.profile-import-mini {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-import-item b,
.profile-import-mini b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-import-item small,
.profile-import-mini span,
.profile-import-mini small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.3;
}

.profile-import-item em,
.profile-import-mini p,
.profile-import-note {
  margin: 0;
  color: rgba(23, 33, 31, 0.78);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.profile-import-item i {
  color: rgba(13, 95, 86, 0.78);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.4;
}

.profile-import-mini,
.profile-import-note {
  border: 1px solid rgba(141, 107, 61, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.profile-import-note.is-warning {
  border-color: rgba(159, 63, 53, 0.18);
  background: #fff8f5;
  color: var(--danger);
}

.profile-import-result pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(141, 107, 61, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: rgba(23, 33, 31, 0.82);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  padding: 9px;
}

.profile-import-actions {
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid rgba(141, 107, 61, 0.12);
  padding-top: 8px;
}

.profile-import-actions button {
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
}

.profile-import-actions button:last-child {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.train-form .draft-preview button {
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
}

.train-form .draft-preview-actions button:last-child {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 117, 106, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 117, 106, 0.11);
}

textarea {
  resize: vertical;
}

.train-form button,
.opp-form button,
.composer button,
.contact-card button {
  min-height: 46px;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(13, 130, 118, 0.14);
}

.train-form .draft-builder-head button {
  min-height: 30px;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(13, 130, 118, 0.12);
}

.train-form .selection-guide-head button {
  min-height: 24px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 11px;
  padding: 0 7px;
}

.train-form .selection-options button {
  min-height: 23px;
  border-color: rgba(22, 31, 29, 0.14);
  background: #f7f8f6;
  color: rgba(23, 33, 31, 0.72);
  box-shadow: none;
  font-size: 10.5px;
  padding: 0 7px;
}

.train-form .selection-options button.active {
  border-color: rgba(13, 130, 118, 0.95);
  background: #0d8276;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 130, 118, 0.16);
}

.train-form .profile-guide-card button {
  min-height: 34px;
  border-color: rgba(13, 130, 118, 0.14);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
}

.train-form .train-field-head button {
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
  white-space: nowrap;
}

.voice-panel {
  display: grid;
  gap: 7px;
  position: relative;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 0;
}

.voice-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-close {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  border-color: rgba(13, 130, 118, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.voice-layout {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.voice-record {
  display: inline-grid;
  grid-template-columns: auto auto;
  place-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border-color: rgba(13, 130, 118, 0.16);
  border-radius: 8px;
  background: #0f756a;
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: none;
}

.voice-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.voice-panel[data-composer-mode="input"] .voice-status {
  display: none;
}

.voice-sheet {
  pointer-events: auto;
}

.voice-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: min(390px, calc(100vh - 180px));
  overflow: visible;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 247, 0.96);
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.14);
  padding: 5px;
  backdrop-filter: blur(16px);
}

.voice-sheet[data-has-draft="true"] {
  max-height: min(540px, calc(100vh - 140px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 5px;
}

.composer-draft-action {
  display: grid;
  gap: 0;
  border: 1px solid rgba(142, 104, 35, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9ec 0%, #ffffff 80%);
  box-shadow: 0 8px 18px rgba(91, 73, 37, 0.1);
  padding: 5px;
}

.composer-conversation-controls {
  display: grid;
  gap: 6px;
  border: 1.5px solid rgba(43, 91, 136, 0.42);
  border-radius: 13px;
  background: linear-gradient(180deg, #eaf5ff 0%, #f8fcff 100%);
  padding: 6px;
  box-shadow: inset 3px 0 0 rgba(43, 91, 136, 0.34), 0 8px 18px rgba(44, 91, 127, 0.16);
}

.composer-conversation-controls .conversation-mode {
  min-height: 32px;
}

.composer-conversation-controls .conversation-mode button {
  border-color: rgba(43, 91, 136, 0.18);
  min-height: 28px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
}

.composer-conversation-controls .conversation-mode-wrap p {
  display: none;
}

.composer-conversation-controls .conversation-goals {
  padding-bottom: 0;
}

.composer-conversation-controls .conversation-goals button {
  border-color: rgba(43, 91, 136, 0.16);
  min-height: 26px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  padding: 0 9px;
}

.composer-draft-action .conversation-draft {
  gap: 6px;
  border-color: rgba(142, 104, 35, 0.26);
  background: #ffffff;
  box-shadow: inset 3px 0 0 rgba(209, 155, 49, 0.42);
  padding: 9px;
}

.composer-draft-action .conversation-draft p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.composer-draft-action .conversation-draft.is-editing p {
  display: block;
}

.composer-draft-action .conversation-draft textarea {
  min-height: 132px;
  max-height: min(34vh, 260px);
}

.composer-draft-action .conversation-actions {
  grid-template-columns: 0.85fr 1fr 0.85fr 1.25fr;
}

.composer-draft-action .conversation-actions button {
  min-height: 34px;
  font-size: 11.5px;
  padding: 0 7px;
}

.voice-record::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-bottom: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffdf8 0 5px, transparent 6px),
    linear-gradient(#fffdf8, #fffdf8);
  background-size: 100% 100%, 5px 9px;
  background-position: center top, center 10px;
  background-repeat: no-repeat;
}

.voice-record.listening,
.composer-voice-action.is-capturing {
  background: #9f3f35;
  color: #ffffff;
  animation: listeningPulse 1.25s ease-in-out infinite;
}

.revision-setup {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px;
}

.revision-setup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.revision-setup-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.revision-setup-head strong {
  color: var(--ink);
  font-size: 13px;
}

.revision-setup-head span,
.revision-choice-group > span,
.revision-choice-group small,
.revision-action-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.revision-setup-head button {
  min-height: 30px;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  font-size: 12px;
  padding: 0 10px;
  white-space: nowrap;
}

.revision-recommended,
.revision-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.revision-recommended b,
.revision-recommended span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  padding: 0 7px;
}

.revision-recommended b {
  background: rgba(180, 121, 47, 0.11);
  color: var(--gold);
}

.revision-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.revision-review-list button {
  justify-content: start;
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.14);
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  padding: 0 10px;
}

.revision-review-list button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.revision-flow {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(13, 130, 118, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.revision-flow strong {
  color: var(--ink);
  font-size: 12px;
}

.revision-flow ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: revision-step;
}

.revision-flow li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
  counter-increment: revision-step;
}

.revision-flow li::before {
  content: counter(revision-step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.1);
  color: var(--teal);
  font-size: 10px;
  font-weight: 950;
}

.revision-form {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(13, 130, 118, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.revision-form-head {
  display: grid;
  gap: 2px;
}

.revision-form-head strong {
  color: var(--ink);
  font-size: 12px;
}

.revision-form-head span,
.revision-form-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.revision-form-field span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.revision-form-field span b {
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.09);
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 3px 5px;
}

.revision-form-field span b.pending {
  background: rgba(180, 121, 47, 0.12);
  color: var(--gold);
}

.revision-form-field {
  display: grid;
  grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.revision-form-field input {
  min-height: 32px;
  font-size: 12px;
}

.revision-form-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: calc(28% + 7px);
}

.revision-form-suggestions button {
  min-height: 24px;
  border-radius: 999px;
  border-color: rgba(141, 107, 61, 0.16);
  background: #fbfaf7;
  color: var(--teal-ink);
  font-size: 11px;
  padding: 0 7px;
}

.revision-form-apply {
  justify-self: end;
  min-height: 30px;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  font-size: 12px;
  padding: 0 11px;
}

.revision-details {
  display: grid;
  gap: 7px;
}

.revision-details summary {
  width: fit-content;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.revision-details[open] {
  border-top: 1px solid rgba(13, 130, 118, 0.1);
  padding-top: 8px;
}

.revision-details[open] .revision-choice-group {
  margin-top: 7px;
}

.revision-choice-group {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.revision-choice-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.revision-choice-group button {
  min-height: 26px;
  border-radius: 999px;
  border-color: rgba(13, 130, 118, 0.16);
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  padding: 0 8px;
}

.revision-choice-group button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.revision-action-row {
  justify-content: space-between;
  border-top: 1px solid rgba(13, 130, 118, 0.1);
  padding-top: 8px;
}

.revision-action-row button {
  min-height: 28px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  padding: 0 9px;
}

.voice-editor {
  display: grid;
  gap: 0;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.command-box {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(13, 130, 118, 0.48);
  border-radius: 16px;
  background: #fbfffd;
  box-shadow: 0 8px 20px rgba(13, 71, 64, 0.12);
}

.voice-panel[data-text-expanded="true"] .command-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  z-index: 2;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.38);
  pointer-events: none;
}

.voice-editor textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 74px;
  max-height: 128px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 13px 15px 7px;
  resize: none;
  line-height: 1.45;
}

.voice-panel[data-text-expanded="true"] .voice-editor textarea {
  min-height: min(42vh, 320px);
  max-height: min(42vh, 320px);
  padding-top: 42px;
}

.voice-editor textarea:focus {
  box-shadow: none;
}

.composer-collapse-text {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 1;
  min-height: 28px;
  border-color: rgba(13, 130, 118, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(13, 71, 64, 0.1);
}

.voice-interim,
.voice-error,
.voice-meta-line {
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.5;
}

.voice-interim {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.voice-error {
  background: #fff0ee;
  color: var(--danger);
}

.voice-scope-note {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(117, 90, 49, 0.16);
  background: #fff7e8;
  color: #755a31;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
}

.voice-scope-note strong {
  font-size: 12px;
  font-weight: 950;
}

.voice-scope-note span {
  color: rgba(117, 90, 49, 0.86);
}

.voice-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: rgba(247, 250, 249, 0.86);
  color: var(--muted);
  overflow: hidden;
}

.voice-timer {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.voice-timer.is-warning {
  color: #9f3f35;
}

.voice-notice {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-log {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  border-top: 1px solid rgba(13, 130, 118, 0.1);
  background: rgba(240, 248, 245, 0.72);
  padding: 6px 8px;
}

.composer-confirmation {
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(13, 71, 64, 0.12);
}

.composer-log-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  align-items: center;
  gap: 8px;
}

.composer-log-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.composer-log-text span,
.composer-log-text small {
  color: var(--muted);
  font-size: 12px;
}

.composer-log-text strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.composer-log-text small {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.composer-confirm {
  min-width: 0;
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.24);
  background: #ffffff;
  color: var(--teal);
  padding: 0 8px;
  white-space: nowrap;
}

.composer-log .operator-details {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  border-top: 1px solid rgba(13, 130, 118, 0.12);
  padding-top: 5px;
  overflow-wrap: anywhere;
}

.composer-log .operator-details ol {
  margin: 5px 0 0;
  padding-left: 18px;
}

.composer-log .operator-details li {
  overflow-wrap: anywhere;
}

.voice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  border-top: 0;
  background: transparent;
  padding: 0 10px 10px;
}

.voice-actions.is-compact {
  display: flex;
}

.composer-icon-button,
.voice-actions button {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-color: rgba(13, 130, 118, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal);
  padding: 0;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.composer-tool-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.composer-voice-action {
  background: #ffffff;
  color: var(--teal);
}

.composer-voice-action span {
  position: relative;
  width: 18px;
  height: 18px;
  font-size: 0;
}

.composer-voice-action span::before,
.composer-voice-action span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.composer-voice-action span::before {
  top: 1px;
  width: 10px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.composer-voice-action span::after {
  bottom: 0;
  width: 14px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0 0 999px 999px;
}

.composer-voice-action.is-capturing span {
  width: auto;
  height: auto;
  font-size: 15px;
}

.composer-voice-action.is-capturing span::before,
.composer-voice-action.is-capturing span::after {
  content: none;
}

.voice-actions button[data-clear-voice] {
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
}

.composer-action-panel-toggle {
  border-color: rgba(13, 130, 118, 0.3);
  background: #f8fffd;
  color: #087b70;
  font-size: 16px;
}

.composer-action-panel-toggle.active,
.composer-action-panel-toggle[aria-expanded="true"] {
  border-color: rgba(13, 130, 118, 0.8);
  background: #0d8276;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 130, 118, 0.2);
}

.voice-actions.is-compact .composer-tool-button,
.voice-actions.is-compact [data-voice-close] {
  display: none;
}

.voice-actions.is-compact .composer-action-panel-toggle {
  display: grid;
}

.voice-actions.is-compact .composer-expand-button {
  display: grid;
}

.composer-primary {
  width: 40px;
  min-width: 40px;
  min-height: 38px;
  margin: 0;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: none;
}

.operator-details {
  color: var(--muted);
  font-size: 12px;
}

.operator-details summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 850;
}

@keyframes listeningPulse {
  0%,
  100% {
    box-shadow: 0 18px 36px rgba(7, 16, 15, 0.28), 0 0 0 0 rgba(159, 63, 53, 0.32);
  }

  50% {
    box-shadow: 0 18px 36px rgba(7, 16, 15, 0.28), 0 0 0 8px rgba(159, 63, 53, 0);
  }
}

.result-box,
.note,
.empty {
  border: 1px dashed rgba(23, 108, 98, 0.28);
  border-radius: 8px;
  background: #f5fbf9;
  color: var(--muted);
  padding: 12px;
  line-height: 1.6;
}

.result-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.result-box.active {
  border-style: solid;
  background: #fbfaf7;
  color: var(--text);
}

.loading-panel {
  min-height: min(62vh, 560px);
}

.loading-surface {
  pointer-events: none;
}

.loading-line,
.loading-chip-row span,
.loading-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eef5f2;
}

.loading-line {
  width: 100%;
  height: 13px;
}

.loading-line.short {
  width: 34%;
}

.loading-line.medium {
  width: 58%;
}

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

.loading-chip-row span {
  width: 70px;
  height: 28px;
  border-radius: 999px;
}

.loading-card {
  height: 132px;
  border: 1px solid rgba(13, 130, 118, 0.08);
  background: #fbfdfc;
}

.loading-card.compact {
  height: 92px;
}

.loading-line::after,
.loading-chip-row span::after,
.loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: loadingSweep 1.35s ease-in-out infinite;
}

@keyframes loadingSweep {
  100% {
    transform: translateX(100%);
  }
}

.result-box span {
  white-space: pre-line;
}

.result-box button {
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
  white-space: nowrap;
}

.recent-assets {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(13, 130, 118, 0.1);
  padding-top: 10px;
}

.recent-assets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-assets-head strong {
  color: var(--ink);
  font-size: 13px;
}

.recent-assets-head button {
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
}

.memory-list,
.contact-grid,
.opportunity-list,
.task-list {
  display: grid;
  gap: 12px;
}

.asset-aggregate {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.profile-value-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
  margin-bottom: 14px;
}

.profile-value-hero {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(245, 220, 168, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #17211f 0%, #22322e 100%);
  color: #ffffff;
  padding: 18px;
}

.profile-value-hero > span {
  color: #f5dca8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-value-hero h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
}

.profile-value-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.profile-value-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(245, 220, 168, 0.18);
  padding-top: 12px;
}

.profile-value-status b {
  color: #f5dca8;
  font-size: 22px;
  line-height: 1;
}

.profile-value-status small {
  align-self: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}

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

.profile-value-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 122px;
  border: 1px solid rgba(141, 107, 61, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.profile-value-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.profile-value-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-value-card span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  border: 1px solid rgba(141, 107, 61, 0.14);
  border-radius: 999px;
  background: #fbfaf7;
  color: rgba(23, 33, 31, 0.82);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  padding: 4px 8px;
}

.asset-score {
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(141, 107, 61, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.82), rgba(255, 255, 255, 0.96));
  padding: 14px;
}

.asset-score strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.asset-score span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.asset-score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.asset-map {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 130, 118, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.asset-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.asset-map-head strong {
  color: var(--ink);
  font-size: 14px;
}

.asset-map-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

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

.asset-fact {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(13, 130, 118, 0.09);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.72);
  padding: 9px 10px;
}

.asset-fact span {
  color: rgba(154, 116, 63, 0.92);
  font-size: 10.5px;
  font-weight: 900;
}

.asset-fact p {
  margin: 0;
  color: rgba(23, 33, 31, 0.9);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.asset-empty {
  border: 1px dashed rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
}

.asset-evidence {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(13, 130, 118, 0.08);
  padding-top: 9px;
}

.asset-evidence > span {
  color: rgba(154, 116, 63, 0.92);
  font-size: 10.5px;
  font-weight: 900;
}

.asset-evidence > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-evidence b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.06);
  color: rgba(23, 33, 31, 0.82);
  font-size: 11px;
  font-weight: 850;
  padding: 5px 8px;
}

.asset-evidence small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

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

.workspace-tabs-panel {
  position: sticky;
  top: 10px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 8px;
}

.today-tabs-panel {
  margin-bottom: 2px;
}

.today-tabs-panel .workspace-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 8px;
  background: #f7f9f7;
  padding: 4px;
}

.workspace-tabs button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: rgba(23, 33, 31, 0.78);
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.workspace-tabs button.active {
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal-ink);
  box-shadow: 0 6px 14px rgba(24, 32, 30, 0.05);
}

.workspace-tabs.opportunity-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-rail-panel {
  align-content: start;
  gap: 12px;
}

.opportunity-search-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  border-color: rgba(141, 107, 61, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.opportunity-search {
  grid-template-columns: minmax(0, min(420px, 100%)) auto;
  align-items: center;
  justify-content: start;
  margin-bottom: 0;
}

.opportunity-search button {
  min-height: 38px;
  white-space: nowrap;
  padding: 0 14px;
}

.opportunity-status-filter {
  padding-top: 2px;
}

.opportunity-concept-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(141, 107, 61, 0.16);
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.opportunity-concept-copy {
  display: grid;
  gap: 6px;
  max-width: 860px;
}

.opportunity-concept-copy span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.opportunity-concept-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.24;
}

.opportunity-concept-copy p,
.opportunity-workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.opportunity-scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.opportunity-scene-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(141, 107, 61, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

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

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

.opportunity-scene-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  border: 1px solid rgba(13, 130, 118, 0.13);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.opportunity-scene-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.opportunity-scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.opportunity-workflow-step {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  border: 1px solid rgba(141, 107, 61, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.opportunity-workflow-step em {
  color: rgba(13, 130, 118, 0.44);
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.opportunity-workflow-step strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.28;
}

.opportunity-workflow-step p {
  font-size: 12px;
}

.filters.compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.contact-quick-search {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-quick-search button {
  min-height: 28px;
  border-color: rgba(13, 130, 118, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(23, 33, 31, 0.76);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  padding: 0 9px;
}

.contact-quick-search button.active {
  border-color: rgba(13, 130, 118, 0.28);
  background: var(--teal-soft);
  color: var(--teal);
}

.contact-list-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 3px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 999px;
  background: #f7f9f7;
  padding: 3px;
}

.contact-list-mode button {
  min-height: 26px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 33, 31, 0.7);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  padding: 0 8px;
}

.contact-list-mode button.active {
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 4px 10px rgba(24, 32, 30, 0.05);
}

.contact-panel-close {
  display: none;
}

.contact-rail {
  display: grid;
  gap: 8px;
  overflow: visible;
}

.contact-rail-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border-color: rgba(20, 38, 35, 0.08);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  padding: 9px;
}

.contact-rail-item.active {
  border-color: rgba(13, 130, 118, 0.26);
  background: var(--teal-soft);
}

.contact-rail-item .avatar {
  width: 34px;
  height: 34px;
}

.contact-rail-item span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-rail-item strong,
.contact-rail-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-rail-item small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.contact-rail-item b {
  justify-self: end;
}

.contact-rail-item.is-abstract {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  min-height: 82px;
  padding: 11px;
}

.contact-rail-item.is-abstract span:nth-child(2) {
  gap: 5px;
}

.contact-rail-item.is-abstract small {
  white-space: normal;
}

.contact-abstract,
.contact-path {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(23, 33, 31, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
}

.contact-abstract {
  -webkit-line-clamp: 2;
}

.contact-path {
  color: rgba(129, 93, 37, 0.86);
  font-size: 11px;
  font-weight: 850;
  -webkit-line-clamp: 1;
}

.contact-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(20, 38, 35, 0.08);
  padding-top: 10px;
}

.contact-pager button {
  min-height: 34px;
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
}

.contact-pager span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.contact-card,
.memory,
.opportunity {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 15px;
  box-shadow: 0 1px 0 rgba(24, 33, 31, 0.03);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 900;
  flex: 0 0 auto;
}

button.avatar {
  min-height: 40px;
  border: 1px solid transparent;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}

button.avatar:hover,
button.avatar.active {
  border-color: rgba(13, 130, 118, 0.22);
  background: #dff3ee;
  color: #056f61;
}

.contact-detail-toggle {
  position: relative;
}

.contact-detail-toggle::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--teal);
}

.card-title {
  margin-bottom: 0;
}

.card-title > div {
  min-width: 0;
  flex: 1;
}

.card-title p {
  margin: 2px 0 0;
  font-size: 12px;
}

.card-title strong,
.opportunity span {
  color: var(--teal);
  font-weight: 900;
}

.business-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 112px;
  min-height: 24px;
  border: 1px solid rgba(13, 130, 118, 0.16);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink) !important;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
}

.business-tag.tag-priority {
  border-color: rgba(13, 130, 118, 0.24);
  background: #e6f6f1;
  color: #056f61 !important;
}

.business-tag.tag-invite {
  border-color: rgba(42, 118, 176, 0.22);
  background: #eaf4fb;
  color: #17608f !important;
}

.business-tag.tag-confirm {
  border-color: rgba(183, 122, 24, 0.24);
  background: #fff5df;
  color: #8a570d !important;
}

.business-tag.tag-maintain {
  border-color: rgba(91, 104, 101, 0.16);
  background: #f1f4f3;
  color: #53605d !important;
}

.business-tag.tag-referral {
  border-color: rgba(9, 139, 157, 0.22);
  background: #e7f7f8;
  color: #087382 !important;
}

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

.tag-row span {
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.path {
  color: #755a31;
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  margin-bottom: 16px;
}

.conversation-panel {
  display: grid;
  gap: 12px;
}

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

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.dashboard-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.relationship-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.relationship-dashboard-stats span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(13, 130, 118, 0.1);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  padding: 10px;
}

.relationship-dashboard-stats b {
  color: var(--teal-ink);
  font-size: 18px;
  line-height: 1;
}

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

.dashboard-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(20, 38, 35, 0.08);
  padding-top: 10px;
}

.dashboard-list-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.dashboard-list-actions button {
  min-height: 32px;
  border-color: rgba(13, 130, 118, 0.16);
  background: #fff;
  box-shadow: none;
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.dashboard-list-actions button:first-child {
  background: var(--teal-soft);
}

.conversation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
}

.conversation-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-color: rgba(23, 32, 31, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(23, 33, 31, 0.58);
  box-shadow: none;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  padding: 0 0 2px;
}

.conversation-close:hover {
  border-color: rgba(13, 130, 118, 0.2);
  color: var(--teal);
}

.conversation-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.conversation-person h3,
.conversation-person p {
  margin: 0;
}

.conversation-person h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.conversation-person p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.conversation-score {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 86px;
}

.conversation-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.conversation-score strong {
  max-width: none;
  min-height: 30px;
  font-size: 13px;
  padding: 0 11px;
}

.conversation-mode-wrap {
  display: grid;
  gap: 7px;
}

.conversation-overview,
.conversation-basis-panel {
  display: grid;
  gap: 10px;
}

.overview-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(13, 130, 118, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.overview-card span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
}

.overview-card p {
  margin: 0;
  color: rgba(23, 33, 31, 0.86);
  font-size: 13.5px;
  line-height: 1.55;
}

.conversation-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 8px;
  background: #f7f9f7;
  padding: 4px;
}

.conversation-mode button {
  min-width: 0;
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  text-align: center;
  padding: 0 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-mode button.active {
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal-ink);
  box-shadow: 0 6px 14px rgba(24, 32, 30, 0.05);
}

.conversation-mode-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.conversation-sync {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(141, 107, 61, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  padding: 10px;
}

.conversation-sync span {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  color: rgba(23, 33, 31, 0.82);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-sync b {
  color: rgba(23, 33, 31, 0.48);
  font-size: 10px;
  font-weight: 950;
}

.conversation-goals {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.conversation-goals::-webkit-scrollbar {
  display: none;
}

.conversation-goals span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.conversation-goals button {
  flex: 0 0 auto;
  min-height: 32px;
  border-color: rgba(23, 32, 31, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(23, 33, 31, 0.78);
  box-shadow: none;
  font-size: 12px;
  padding: 0 11px;
}

.conversation-goals button.active {
  border-color: rgba(13, 130, 118, 0.28);
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.conversation-strategy {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 130, 118, 0.12);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.conversation-strategy > div {
  display: grid;
  gap: 3px;
}

.conversation-strategy strong {
  color: var(--ink);
  font-size: 14px;
}

.conversation-strategy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.conversation-strategy ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.conversation-strategy li {
  position: relative;
  color: rgba(23, 33, 31, 0.82);
  font-size: 13px;
  line-height: 1.45;
  padding-left: 16px;
}

.conversation-strategy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.chat {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 247, 0.92)),
    var(--paper-soft);
  padding: 14px;
}

.chat-latest-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-color: rgba(13, 130, 118, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--teal);
  box-shadow: 0 10px 24px rgba(24, 32, 30, 0.1);
  padding: 0 10px 0 12px;
  text-align: left;
}

.chat-latest-bar span {
  color: rgba(13, 95, 86, 0.72);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.chat-latest-bar strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(23, 33, 31, 0.82);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-latest-bar b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
}

.chat-head {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(20, 38, 35, 0.08);
  margin-bottom: 2px;
  padding-bottom: 10px;
}

.chat-head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.chat-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
}

.chat-row.own {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.chat-row.own .chat-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-row.own .bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 950;
}

.chat-row.ai .chat-avatar {
  background: rgba(23, 33, 31, 0.06);
  color: rgba(23, 33, 31, 0.68);
}

.chat-row.me .chat-avatar {
  background: #dff3ee;
  color: #086a60;
}

.chat-row.contact .chat-avatar {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.chat-row.contact-ai .chat-avatar {
  background: #17211f;
  color: #f5dca8;
}

.bubble.contact-ai .bubble-meta span {
  color: #755a31;
}

.conversation-draft {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 130, 118, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
  box-shadow: 0 10px 24px rgba(24, 32, 30, 0.055);
}

.conversation-draft.is-confirmed {
  border-color: rgba(13, 130, 118, 0.34);
  background: #f8fcfb;
}

.conversation-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-draft-head span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.conversation-draft-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  padding: 5px 8px;
}

.draft-variants {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.draft-variants::-webkit-scrollbar {
  display: none;
}

.draft-variants span,
.draft-variants button {
  flex: 0 0 auto;
}

.draft-variants span {
  color: rgba(117, 90, 49, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.draft-variants button {
  min-height: 24px;
  border-color: rgba(117, 90, 49, 0.16);
  border-radius: 999px;
  background: #fff9ec;
  color: #755a31;
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  padding: 0 8px;
}

.draft-variants button.active {
  border-color: rgba(13, 130, 118, 0.36);
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.conversation-draft p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.68;
}

.conversation-draft textarea {
  min-height: 160px;
  border-color: rgba(13, 130, 118, 0.24);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
  resize: vertical;
}

.conversation-draft > small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.conversation-risk {
  display: block;
  border-radius: 8px;
  padding: 7px 9px;
  line-height: 1.35;
}

.conversation-risk.low {
  background: rgba(13, 130, 118, 0.08);
  color: #087b70;
}

.conversation-risk.medium {
  background: #fff5df;
  color: #755a31;
}

.conversation-risk.high {
  background: #fdebea;
  color: #9b342f;
}

.conversation-edit-warning {
  color: #8a642b !important;
  line-height: 1.45;
}

.bubble {
  display: grid;
  gap: 7px;
  width: fit-content;
  max-width: min(100%, 560px);
  border-radius: 8px;
  padding: 11px 12px;
  line-height: 1.58;
  box-shadow: none;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.bubble span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  opacity: 0.78;
}

.bubble em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  padding: 4px 7px;
}

.bubble.me .bubble-meta span {
  color: #086a60;
}

.bubble.ai .bubble-meta span {
  color: rgba(23, 33, 31, 0.68);
}

.bubble.ai.is-confirmed em {
  background: rgba(13, 130, 118, 0.12);
  color: #056f61;
}

.bubble-route {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(23, 33, 31, 0.56);
  font-size: 11px;
  font-weight: 850;
}

.bubble-route b {
  display: inline-flex;
  align-items: center;
  max-width: min(150px, 44%);
  min-height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.045);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-route i {
  flex: 0 0 auto;
  color: rgba(23, 33, 31, 0.34);
  font-style: normal;
  font-weight: 950;
}

.bubble-route small {
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.bubble.me .bubble-route b {
  background: rgba(13, 130, 118, 0.08);
  color: #086a60;
}

.bubble.ai .bubble-route b {
  background: rgba(23, 33, 31, 0.055);
  color: rgba(23, 33, 31, 0.68);
}

.bubble p {
  margin: 0;
  color: rgba(23, 33, 31, 0.82);
  font-size: 13.5px;
}

.bubble.is-compact-event {
  gap: 8px;
  background: #ffffff;
}

.bubble.is-compact-event p {
  color: rgba(23, 33, 31, 0.62);
  font-size: 12.5px;
  font-weight: 850;
}

.bubble-preview {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(13, 130, 118, 0.18);
  border-radius: 0 8px 8px 0;
  background: rgba(247, 249, 247, 0.72);
  padding: 8px 10px;
}

.bubble-preview span {
  display: block;
  overflow: hidden;
  color: rgba(23, 33, 31, 0.74);
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.48;
  opacity: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bubble.has-nested-draft > p {
  color: rgba(23, 33, 31, 0.82);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.bubble-nested-draft {
  display: grid;
  border-top: 1px solid rgba(13, 130, 118, 0.24);
  margin-top: 8px;
  padding-top: 9px;
}

.conversation-draft-log {
  color: rgba(13, 95, 86, 0.68);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.bubble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  margin-top: 2px;
  padding-top: 8px;
}

.bubble-actions button {
  min-height: 28px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(23, 33, 31, 0.68);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0 9px;
}

.bubble-actions button:hover {
  border-color: rgba(13, 130, 118, 0.26);
  background: #ffffff;
  color: var(--teal);
}

.bubble.contact-ai .bubble-actions,
.bubble.ai .bubble-actions {
  border-top-color: rgba(23, 33, 31, 0.07);
}

.bubble.me {
  border: 1.5px solid rgba(13, 130, 118, 0.34);
  background: #eaf8f5;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(13, 130, 118, 0.08);
}

.bubble.me.has-nested-draft {
  border-color: rgba(13, 130, 118, 0.46);
  background: linear-gradient(180deg, #eaf8f5 0%, #def3ef 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 10px 24px rgba(13, 130, 118, 0.12);
}

.bubble.contact {
  border: 1.5px solid rgba(13, 130, 118, 0.18);
  background: rgba(232, 245, 242, 0.62);
  color: var(--ink);
}

.bubble.contact-ai {
  border: 1.5px solid rgba(23, 33, 31, 0.24);
  background: #f7faf8;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.86) inset,
    0 8px 18px rgba(23, 33, 31, 0.07);
}

.bubble.ai {
  border: 1px solid rgba(20, 38, 35, 0.08);
  background: #ffffff;
  color: #213b37;
}

.bubble.ai.is-confirmed {
  border-color: rgba(13, 130, 118, 0.24);
  background: #f8fcfb;
}

.bubble small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.conversation-empty {
  align-self: center;
  justify-self: center;
}

.conversation-actions button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

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

.conversation-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.conversation-side h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.conversation-basis-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.conversation-side .note {
  margin: 0;
}

.conversation-basis-panel .note {
  margin: 0;
}

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

.thinking-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 0 10px;
}

.thinking-step em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.thinking-step strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
}

.thinking-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.conversation-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.memory > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.memory > div:first-child strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.memory > div:first-child span {
  flex: 0 0 auto;
  padding-top: 1px;
  text-align: right;
}

.memory p,
.opportunity p {
  margin: 0;
  font-size: 13px;
}

.opportunity p.opportunity-commerce {
  color: #4f655f;
  font-size: 12px;
  font-weight: 750;
}

.memory-tools {
  display: flex;
  justify-content: flex-end;
}

.memory-tools button {
  min-height: 30px;
  border-color: rgba(13, 130, 118, 0.18);
  background: #ffffff;
  color: var(--teal);
  box-shadow: none;
  font-size: 12px;
  padding: 0 10px;
}

.memory-material-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 130, 118, 0.14);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px;
}

.memory-material-preview-head {
  display: grid;
  gap: 4px;
}

.memory-material-preview-head strong,
.memory-material-preview section > strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.memory-material-preview-head span,
.memory-material-preview article span,
.memory-material-preview article small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1.35;
}

.memory-material-preview > p,
.memory-material-preview section > p,
.memory-material-preview article p {
  color: rgba(23, 33, 31, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.memory-material-preview > p b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 10.5px;
  line-height: 1;
}

.memory-material-preview section {
  display: grid;
  gap: 7px;
}

.memory-material-preview section > div {
  display: grid;
  gap: 7px;
}

.memory-material-preview article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(141, 107, 61, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.memory-material-preview article b {
  color: var(--ink);
  font-size: 12px;
}

.memory-facts {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(13, 130, 118, 0.08);
  padding-top: 9px;
}

.memory-fact-row {
  display: grid;
  gap: 3px;
}

.memory-fact-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(154, 116, 63, 0.92);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.memory-fact-row > span em {
  border-radius: 999px;
  background: rgba(13, 130, 118, 0.08);
  color: var(--teal);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
}

.memory-fact-row[data-diff="check"] > span em {
  background: rgba(154, 116, 63, 0.12);
  color: #8a642b;
}

.memory-fact-row[data-diff="same"] > span em {
  background: rgba(105, 115, 111, 0.08);
  color: rgba(105, 115, 111, 0.9);
}

.memory-fact-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  padding-left: 12px;
}

.memory-fact-row b {
  display: inline;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(23, 33, 31, 0.84);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
  padding: 0;
}

.memory-fact-row b:not(:last-child)::after {
  content: "、";
}

.memory-fact-row small {
  color: rgba(105, 115, 111, 0.82);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  padding-left: 12px;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button:last-child {
  color: var(--danger);
}

.memory-actions {
  flex-wrap: wrap;
}

.memory-actions button[data-memory-action="approve"] {
  color: var(--teal);
}

.memory-actions button[data-memory-action="reject"] {
  color: var(--danger);
}

.memory-actions button[data-memory-action="delete"] {
  color: var(--danger);
}

.memory-actions button[data-memory-action="pending"] {
  color: var(--gold);
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    align-self: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    height: auto;
    max-height: none;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 32, 31, 0.1);
    padding: 16px 22px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

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

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

  .main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    height: 60px;
    max-width: none;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(24, 32, 30, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 5px;
  }

  .account-panel {
    grid-column: 1 / -1;
  }

  .account-drawer {
    padding: 10px;
  }

  .corp-dropdown-button {
    max-width: 100%;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    position: relative;
    display: grid;
    grid-template-rows: 22px 14px;
    place-items: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border-color: transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(23, 33, 31, 0.74);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.05;
    padding: 3px 2px 2px;
    box-shadow: none;
    text-align: center;
  }

  .nav button > span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav .tab-icon,
  .nav .composer-tag-icon {
    display: block;
    justify-self: center;
    margin: 0 auto;
  }

  .nav button.active {
    border-color: transparent;
    background: transparent;
    color: var(--teal);
    box-shadow: none;
  }

  .nav button.active::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
    transform: translateX(-50%);
  }

  .nav button.active:not(.composer-nav) {
    background: rgba(13, 130, 118, 0.06);
  }

  .composer-nav {
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-self: center;
    gap: 3px;
    min-height: 54px;
    border-color: rgba(23, 33, 31, 0.12) !important;
    background: #17211f !important;
    color: #f5dca8 !important;
    transform: translateY(-7px);
    box-shadow:
      0 12px 22px rgba(23, 33, 31, 0.18),
      inset 0 0 0 1px rgba(245, 220, 168, 0.12);
    padding: 5px 2px 4px;
  }

  .composer-title {
    color: #f5dca8;
    font-size: 9.5px;
    font-weight: 950;
  }

  .composer-nav.composer-active,
  .composer-nav.active {
    border-color: rgba(13, 130, 118, 0.5) !important;
    background: #0d8276 !important;
    color: #ffffff !important;
    box-shadow:
      0 14px 26px rgba(13, 130, 118, 0.26),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .composer-nav.composer-active .composer-title,
  .composer-nav.active .composer-title,
  .composer-nav.composer-active .composer-tag-icon,
  .composer-nav.active .composer-tag-icon {
    color: #ffffff;
  }

  .content-grid,
  .hero-panel,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .content-grid.relationship-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-rail {
    max-height: none;
    overflow: visible;
  }

  .dashboard-workspace,
  .dashboard-preview-grid,
  .dashboard-hero,
  .dashboard-brief,
  .ai-circle-hero,
  .profile-value-panel,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .profile-value-grid,
  .opportunity-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-split,
  .portal-flow {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 641px) and (max-width: 1080px) {
  .sidebar {
    gap: 12px;
    padding-bottom: 12px;
  }

  .main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .nav {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    height: 62px;
    box-shadow: 0 14px 34px rgba(24, 32, 30, 0.1);
  }

  .nav button {
    min-height: 52px;
    padding: 4px 6px;
  }

  .composer-nav {
    min-height: 56px;
    transform: translateY(-5px);
  }

  .workspace-tabs.opportunity-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  :root {
    --mobile-header-height: 68px;
    --mobile-contact-rail-height: 60px;
    --mobile-page-tabs-height: 62px;
    --mobile-opportunity-search-height: 175px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #f3f3ef;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  *,
  *::before,
  *::after {
    max-width: 100%;
  }

  button {
    min-height: 46px;
  }

  .app {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .sidebar {
    position: static;
    z-index: auto;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }

  body.mobile-header-hidden .sidebar {
    min-height: 0;
  }

  body.mobile-header-hidden .brand,
  body.mobile-header-hidden .account-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  body.mobile-header-hidden .brand {
    min-height: 0;
    border-bottom-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
  }

  .panel.workspace-tabs-panel {
    position: fixed;
    left: 8px;
    right: auto;
    top: var(--mobile-header-height);
    z-index: 13;
    box-sizing: border-box;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin-top: 0;
    border-color: rgba(13, 130, 118, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(24, 32, 30, 0.05);
    transition: top 180ms ease;
  }

  body.mobile-header-hidden .panel.workspace-tabs-panel {
    top: 0;
  }

  .panel.opportunity-search-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    box-shadow: 0 10px 26px rgba(24, 32, 30, 0.06);
    transition: none;
  }

  .opportunity-search {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .opportunity-search button {
    min-width: 64px;
    padding: 0 12px;
  }

  body.mobile-header-hidden .panel.opportunity-search-panel {
    top: auto;
  }

  .panel.workspace-tabs-panel + .panel,
  .panel.workspace-tabs-panel + .dashboard-report,
  .panel.workspace-tabs-panel + .hero-panel {
    margin-top: calc(var(--mobile-header-height) + var(--mobile-page-tabs-height) + 2px);
  }

  .panel.opportunity-search-panel + .panel {
    margin-top: 10px;
  }

  .account-drawer {
    gap: 10px;
    padding: 10px;
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
  }

  .account-drawer-section select {
    min-height: 38px;
  }

  .brand {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 14;
    justify-content: space-between;
    gap: 11px;
    max-height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
    transition:
      max-height 180ms ease,
      min-height 180ms ease,
      opacity 160ms ease,
      padding 180ms ease,
      transform 180ms ease;
  }

  .brand-main {
    gap: 11px;
  }

  .brand-mark {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    font-size: 15px;
  }

  .brand p {
    font-size: 10px;
  }

  .brand strong {
    font-size: 18px;
  }

  .language-toggle {
    min-width: 46px;
    min-height: 30px;
    font-size: 10px;
    padding: 0 9px;
  }

  .help-toggle {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .system-notice-host {
    margin-bottom: 10px;
  }

  .system-notice {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 11px;
  }

  .system-notice button:not(.system-notice-close) {
    grid-column: 1 / -1;
    width: 100%;
  }

  .connection-issue {
    gap: 13px;
    margin: 28px auto;
    padding: 18px;
  }

  .connection-issue h2 {
    font-size: 21px;
  }

  .connection-issue button,
  .login-recovery button {
    width: 100%;
  }

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

  .report-head h2 {
    font-size: 28px;
  }

  .report-card {
    min-height: 0;
  }

  .quick-prompts {
    grid-template-columns: 1fr;
  }

  .profile-guide-head,
  .draft-builder .profile-guide-head,
  .draft-builder-head,
  .train-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .train-actions {
    display: grid;
  }

  .train-actions button {
    width: 100%;
  }

  .train-form {
    gap: 8px;
  }

  .train-panel {
    padding: 12px;
  }

  .draft-builder-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .draft-builder-head button {
    justify-self: end;
  }

  .draft-builder-head span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .draft-preview-head,
  .draft-preview-actions {
    grid-template-columns: 1fr;
  }

  .draft-preview-actions {
    display: grid;
  }

  .draft-preview-actions button,
  .draft-preview-head button {
    width: 100%;
  }

  .profile-guide-head label,
  .draft-builder .profile-guide-head label,
  .profile-guide-head select,
  .draft-builder .profile-guide-head select {
    width: 100%;
  }

  .profile-guide,
  .draft-builder .profile-guide {
    gap: 7px;
    margin-bottom: 8px;
  }

  .draft-builder {
    gap: 7px;
    padding: 8px;
  }

  .draft-builder .profile-guide {
    overflow: hidden;
    padding: 8px;
  }

  .profile-guide-head,
  .draft-builder .profile-guide-head {
    gap: 6px;
  }

  .profile-guide-head > div,
  .profile-guide-head label {
    gap: 3px;
  }

  .profile-guide-head strong,
  .draft-builder-head strong {
    font-size: 13px;
  }

  .profile-guide-head span,
  .draft-builder-note {
    font-size: 11px;
    line-height: 1.35;
  }

  .profile-guide-head select,
  .draft-builder .profile-guide-head select {
    min-height: 34px;
    font-size: 13px;
    padding: 7px 10px;
  }

  .profile-guide-card,
  .draft-builder .profile-guide-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .profile-guide-card > span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10px;
  }

  .profile-guide-card strong {
    font-size: 13px;
  }

  .profile-guide-card small {
    font-size: 11px;
    line-height: 1.3;
  }

  .profile-guide-card button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
  }

  .result-box {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px;
    font-size: 13px;
    line-height: 1.45;
  }

  .result-box button {
    justify-self: start;
  }

  .executive-summary {
    gap: 7px;
    margin-bottom: 8px;
    padding: 8px;
  }

  .executive-summary-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .executive-summary-head button {
    justify-self: start;
    min-height: 32px;
  }

  .summary-flip-card,
  .summary-face {
    min-height: 214px;
  }

  .summary-face {
    gap: 7px;
    padding: 9px;
  }

  .summary-face-top {
    align-items: flex-start;
  }

  .summary-face-label {
    display: grid;
    gap: 3px;
  }

  .summary-face-label strong {
    font-size: 14px;
  }

  .summary-face-label strong::before {
    display: none;
  }

  .summary-face-actions {
    gap: 5px;
  }

  .summary-face-actions button {
    min-height: 28px;
    font-size: 11px;
    padding: 0 8px;
  }

  .summary-requirement-popover {
    top: 54px;
    right: 9px;
    left: 9px;
    width: auto;
    padding: 8px;
  }

  .executive-summary[data-prompt-open="true"] .summary-flip-card,
  .executive-summary[data-prompt-open="true"] .summary-face {
    min-height: 430px;
  }

  .summary-front[data-prompt-open="true"] .summary-generated p,
  .summary-front[data-prompt-open="true"] .summary-empty,
  .summary-front[data-prompt-open="true"] .summary-loading {
    margin-top: 238px;
  }

  .summary-requirement-options button {
    min-height: 25px;
    font-size: 10.5px;
    padding: 0 7px;
  }

  .summary-requirement-popover textarea {
    min-height: 52px;
    font-size: 11.5px;
  }

  .summary-face h4 {
    font-size: 14px;
  }

  .summary-face p,
  .summary-face dd {
    font-size: 12px;
    line-height: 1.45;
  }

  .summary-generated {
    gap: 10px;
  }

  .summary-generated p {
    padding-left: 10px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .summary-empty {
    gap: 7px;
    padding: 10px;
  }

  .selection-guide {
    padding: 10px;
  }

  .selection-guide-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .selection-guide-actions {
    justify-content: flex-end;
  }

  .selection-guide-head button,
  .selection-options button {
    min-height: 28px;
  }

  .card-toolbar,
  .opportunity-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .judgment-item > span {
    width: 32px;
    height: 32px;
  }

  .judgment-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .desktop-composer-entry {
    min-height: 88px;
  }

  .conversation-panel {
    gap: 9px;
    padding: 12px;
    padding-bottom: 14px;
  }

  .relationship-dashboard-panel {
    gap: 10px;
    padding: 12px;
  }

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

  .dashboard-panel-head p {
    font-size: 12.5px;
  }

  .relationship-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .relationship-dashboard-stats span {
    min-width: 0;
    font-size: 10.5px;
    padding: 8px;
  }

  .relationship-dashboard-stats b {
    font-size: 16px;
  }

  .dashboard-list-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-list-actions {
    justify-content: stretch;
  }

  .dashboard-list-actions button {
    flex: 1 1 auto;
    min-height: 36px;
  }

  .contact-rail-panel {
    position: fixed;
    right: 8px;
    left: 8px;
    top: var(--mobile-header-height);
    z-index: 13;
    gap: 8px;
    margin-top: 0;
    border-color: rgba(13, 130, 118, 0.16);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    box-shadow: 0 10px 26px rgba(24, 32, 30, 0.06);
    backdrop-filter: blur(14px);
    transition: top 180ms ease;
  }

  body.mobile-header-hidden .contact-rail-panel {
    top: 0;
  }

  .contact-rail-panel.is-open {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .contact-rail-panel.is-collapsed {
    gap: 0;
    padding: 8px;
    border-radius: 14px;
  }

  .contact-rail-panel.is-collapsed .panel-head,
  .contact-rail-panel.is-collapsed .contact-quick-search,
  .contact-rail-panel.is-collapsed .contact-rail,
  .contact-rail-panel.is-collapsed .contact-pager,
  .contact-rail-panel.is-collapsed select {
    display: none;
  }

  .contact-rail-panel.is-collapsed .filters.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-rail-panel.is-collapsed .filters.compact input {
    min-height: 42px;
    border-color: rgba(141, 107, 61, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font-weight: 800;
  }

  .contact-rail-panel.is-collapsed .filters.compact input::placeholder {
    color: rgba(23, 33, 31, 0.62);
    font-weight: 800;
  }

  .contact-rail-panel .panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
  }

  .contact-rail-panel .panel-head > div:first-child {
    min-width: 0;
  }

  .contact-rail-panel .panel-head h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .contact-rail-panel .panel-head span {
    font-size: 11px;
  }

  .contact-list-mode {
    flex: 0 0 auto;
  }

  .contact-list-mode button {
    min-height: 23px;
    font-size: 10.5px;
    padding: 0 6px;
  }

  .contact-panel-close {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-color: rgba(23, 32, 31, 0.08);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(23, 33, 31, 0.64);
    box-shadow: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    padding: 0 0 2px;
  }

  .filters.compact {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 6px;
  }

  .filters.compact input,
  .filters.compact select {
    min-height: 38px;
    font-size: 12.5px;
  }

  .contact-quick-search {
    flex-wrap: nowrap;
    gap: 5px;
    margin-right: -2px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .contact-quick-search::-webkit-scrollbar {
    display: none;
  }

  .contact-quick-search button {
    flex: 0 0 auto;
    min-height: 25px;
    font-size: 10.5px;
    padding: 0 8px;
  }

  .contact-rail {
    display: grid;
    gap: 6px;
    max-width: 100%;
    margin-right: 0;
    overflow: visible;
    padding: 0;
  }

  .contact-rail-item {
    position: relative;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 7px 8px;
  }

  .contact-rail-item .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .contact-rail-item span:nth-child(2) {
    padding-right: 0;
  }

  .contact-rail-item strong {
    font-size: 12.5px;
    line-height: 1.2;
  }

  .contact-rail-item small {
    font-size: 10.5px;
    line-height: 1.25;
  }

  .contact-rail-item b {
    position: static;
    max-width: 78px;
    min-height: 19px;
    font-size: 9.5px;
    padding: 0 5px;
  }

  .contact-rail-item.is-abstract {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 9px;
  }

  .contact-rail-item.is-abstract b {
    max-width: 72px;
  }

  .contact-abstract {
    font-size: 11.5px;
    line-height: 1.42;
  }

  .contact-path {
    font-size: 10.5px;
  }

  .contact-pager {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding-top: 8px;
  }

  .contact-pager button {
    min-height: 30px;
    font-size: 11px;
    padding: 0 8px;
  }

  .conversation-hero {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 8px;
  }

  .conversation-close {
    width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 18px;
  }

  .conversation-score {
    display: inline-flex;
    justify-content: center;
    border: 1px solid rgba(13, 130, 118, 0.16);
    border-radius: 999px;
    background: var(--teal-soft);
    padding: 5px 9px;
    min-width: 0;
  }

  .conversation-score span {
    display: none;
  }

  .conversation-score strong {
    font-size: 18px;
    line-height: 1;
  }

  .conversation-person h3 {
    font-size: 18px;
  }

  .conversation-person p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .conversation-mode {
    gap: 4px;
  }

  .conversation-mode button {
    min-height: 36px;
    padding: 0 6px;
    font-size: 12px;
  }

  .conversation-sync {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px 10px;
  }

  .conversation-sync span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
  }

  .bubble-route {
    flex-wrap: wrap;
    gap: 5px;
  }

  .bubble-route b {
    max-width: calc(50% - 18px);
  }

  .bubble-route small {
    margin-left: 0;
  }

  .overview-card {
    padding: 10px 11px;
  }

  .overview-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .conversation-mode-wrap p {
    display: none;
  }

  .conversation-goals {
    gap: 6px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .conversation-goals span {
    font-size: 11px;
  }

  .conversation-goals button {
    min-height: 30px;
    font-size: 11.5px;
    padding: 0 10px;
  }

  .conversation-strategy {
    gap: 8px;
    padding: 10px;
  }

  .conversation-strategy span {
    display: none;
  }

  .conversation-strategy ul {
    gap: 4px;
  }

  .conversation-strategy li {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .chat {
    min-height: 260px;
    gap: 10px;
    padding: 12px;
  }

  .chat-head {
    padding-bottom: 9px;
  }

  .bubble {
    width: fit-content;
    max-width: min(100%, 520px);
    padding: 10px 11px;
  }

  .chat-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 5px;
  }

  .chat-row.own {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .chat-row.own .chat-avatar {
    grid-column: 2;
    grid-row: 1;
  }

  .chat-row.own .bubble {
    grid-column: 1;
    grid-row: 1;
  }

  .chat-avatar {
    width: 28px;
    height: 28px;
    font-size: 10.5px;
  }

  .bubble-meta {
    align-items: flex-start;
  }

  .bubble span {
    display: inline;
  }

  .bubble p {
    font-size: 13px;
    line-height: 1.58;
  }

  .bubble small {
    font-size: 10.5px;
  }

  .conversation-draft {
    gap: 8px;
    padding: 11px;
  }

  .conversation-draft p {
    font-size: 14px;
    line-height: 1.62;
  }

  .conversation-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .conversation-actions button {
    min-width: 0;
    min-height: 44px;
    font-size: 13px;
    overflow: hidden;
    padding: 0 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conversation-mode button,
  .conversation-goals button,
  .workspace-tabs button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conversation-actions button {
    width: 100%;
  }

  .conversation-side {
    gap: 10px;
    padding: 14px;
  }

  .conversation-side .memory-list {
    gap: 8px;
  }

  .conversation-side .memory {
    gap: 5px;
    padding: 10px 12px;
  }

  .conversation-side .memory > div:first-child {
    margin-bottom: 0;
  }

  .conversation-side .memory > div:first-child span {
    display: none;
  }

  .conversation-side .memory p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .thinking-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 7px;
  }

  .thinking-step em {
    width: 26px;
    height: 26px;
  }

  .thinking-step strong {
    font-size: 12.5px;
  }

  .thinking-step p {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    font-size: 11.8px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    height: 60px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(24, 32, 30, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 5px;
  }

  .nav button {
    position: relative;
    display: grid;
    grid-template-rows: 22px 14px;
    place-items: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border-color: transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(23, 33, 31, 0.74);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.05;
    padding: 3px 2px 2px;
    box-shadow: none;
    text-align: center;
  }

  .nav button > span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .composer-nav {
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-self: center;
    gap: 3px;
    min-height: 54px;
    border-color: rgba(23, 33, 31, 0.12) !important;
    background: #17211f !important;
    color: #f5dca8 !important;
    transform: translateY(-7px);
    box-shadow:
      0 12px 22px rgba(23, 33, 31, 0.18),
      inset 0 0 0 1px rgba(245, 220, 168, 0.12);
    padding: 5px 2px 4px;
  }

  .composer-title {
    color: #f5dca8;
    font-size: 9.5px;
    font-weight: 950;
  }

  .tab-icon {
    width: 19px;
    min-width: 19px;
    height: 19px;
  }

  .composer-tag-icon {
    display: block;
    justify-self: center;
    width: 21px;
    min-width: 21px;
    height: 18px;
    margin: 0 auto;
    color: #f5dca8;
  }

  .nav button.active {
    border-color: transparent;
    background: transparent;
    color: var(--teal);
  }

  .nav button.active::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
    transform: translateX(-50%);
  }

  .nav button.active:not(.composer-nav) {
    background: rgba(13, 130, 118, 0.06);
  }

  .composer-nav.composer-active,
  .composer-nav.active {
    border-color: rgba(13, 130, 118, 0.5) !important;
    background: #0d8276 !important;
    color: #ffffff !important;
    box-shadow:
      0 14px 26px rgba(13, 130, 118, 0.26),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .composer-nav.composer-active .composer-title,
  .composer-nav.active .composer-title,
  .composer-nav.composer-active .composer-tag-icon,
  .composer-nav.active .composer-tag-icon {
    color: #ffffff;
  }

  .composer-nav.active::before {
    background: #ffffff;
    opacity: 0.9;
  }

  .voice-dock {
    left: 14px;
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: flex-end;
    overflow: visible;
  }

  .voice-sheet {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: min(32vh, 280px);
    overflow: visible;
    border-radius: 16px;
    padding: 5px;
  }

  .voice-sheet[data-has-draft="true"] {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding-right: 1px;
  }

  .voice-sheet[data-profile-revision="true"] {
    max-height: min(54vh, 480px);
  }

  .voice-sheet[data-profile-revision="true"][data-has-draft="true"] {
    max-height: min(62vh, 560px);
  }

  .composer-draft-action .conversation-draft p {
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .composer-draft-action .conversation-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .composer-draft-action .conversation-actions button {
    min-height: 34px;
    font-size: 11.5px;
  }

  .composer-conversation-controls {
    gap: 5px;
    padding: 6px;
  }

  .composer-conversation-controls .conversation-mode {
    min-height: 32px;
  }

  .composer-conversation-controls .conversation-mode button {
    min-height: 28px;
    font-size: 11.5px;
  }

  .composer-conversation-controls .conversation-goals {
    margin-right: -8px;
    padding-right: 8px;
  }

  .voice-panel {
    gap: 5px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .voice-close {
    width: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 17px;
  }

  .voice-status {
    display: none;
  }

  .train-field-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 2px;
  }

  .train-field-label {
    font-size: 12px;
  }

  .train-form .train-field-head button {
    min-height: 36px;
    padding: 0 10px;
  }

  .train-form textarea[name="message"] {
    min-height: 176px;
    max-height: 34vh;
    font-size: 16px;
    line-height: 1.45;
    padding: 10px;
  }

  .train-form .train-actions button {
    min-height: 44px;
    font-size: 15px;
  }

  .revision-setup {
    gap: 6px;
    padding: 8px;
  }

  .revision-setup-head,
  .revision-choice-group,
  .revision-form-field {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
  }

  .revision-form-suggestions {
    padding-left: 0;
  }

  .revision-review-list {
    grid-template-columns: 1fr;
  }

  .revision-form-apply {
    justify-self: stretch;
  }

  .revision-setup-head button {
    justify-self: start;
  }

  .voice-editor textarea {
    width: 100%;
    min-height: 86px;
    max-height: 132px;
    padding: 14px 14px 8px;
  }

  .voice-actions {
    padding: 0 9px 9px;
  }

  .voice-actions button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .composer-log {
    padding: 6px;
  }

  .composer-log-main {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .composer-log-text small {
    display: none;
  }

  .main {
    padding: 2px 8px calc(86px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .view,
  .content-grid,
  .panel,
  .main-panel,
  .conversation-panel,
  .conversation-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content-grid {
    gap: 10px;
  }

  .content-grid.relationship-workspace {
    padding-top: calc(var(--mobile-header-height) + var(--mobile-contact-rail-height) + 2px);
  }

  .panel {
    overflow-x: hidden;
  }

  .panel-head,
  .card-title,
  .conversation-hero,
  .conversation-mode,
  .workspace-tabs,
  .filters,
  .filters.compact {
    min-width: 0;
  }

  .panel-head > *,
  .card-title > *,
  .conversation-person,
  .conversation-person > div {
    min-width: 0;
  }

  .help-bubble-host {
    top: 88px;
    width: 100%;
  }

  .help-bubble {
    width: 100%;
  }

  .help-steps li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .help-steps button {
    grid-column: 2;
    justify-self: start;
  }

  body[data-auth="guest"] .main,
  body[data-auth="corp-selection"] .main {
    padding: 0;
  }

  .login-screen {
    min-height: 100vh;
  }

  .visitor-header {
    min-height: 68px;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  }

  .visitor-brand {
    gap: 11px;
  }

  .visitor-brand strong {
    font-size: 18px;
  }

  .visitor-brand p {
    font-size: 10px;
  }

  .login-layout {
    gap: 18px;
    width: 100%;
    padding: 18px 14px 24px;
  }

  .portal-hero {
    padding: 20px;
  }

  .portal-hero h2 {
    font-size: 30px;
  }

  .public-name-card {
    width: 100%;
    margin-top: 4px;
    padding: 15px;
  }

  .public-card-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .public-card-top h3 {
    font-size: 22px;
  }

  .public-card-sections {
    grid-template-columns: 1fr;
  }

  .public-card-qr {
    width: 96px;
    min-width: 96px;
  }

  .public-card-qr svg {
    width: 72px;
    height: 72px;
  }

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

  .public-share-body {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .public-share-qr {
    width: 100%;
    min-width: 0;
  }

  .public-share-copy div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-hero p {
    font-size: 15px;
  }

  .login-points strong {
    padding: 7px 9px;
    font-size: 12px;
  }

  .intent-card,
  .login-card {
    padding: 18px;
  }

  .panel-head,
  .filters {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .voice-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .contact-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

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

  .asset-score {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }

  .asset-score small {
    grid-column: 1 / -1;
  }

  .profile-import-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .profile-import-button,
  .profile-import-actions button {
    width: 100%;
  }

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

  .profile-import-preview img {
    max-height: 220px;
  }

  .hero-panel {
    padding: 18px;
    gap: 18px;
  }

  .voice-layout {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .voice-actions {
    gap: 7px;
    padding: 0 9px 9px;
  }

  .composer-primary {
    width: 38px;
    min-width: 38px;
    min-height: 36px;
    margin: 0;
  }

  .hero-panel h2 {
    font-size: 24px;
  }

  .meter-block {
    padding: 14px;
  }

  .panel {
    padding: 12px;
  }

  .stat,
  .panel,
  .hero-panel {
    box-shadow: 0 10px 26px rgba(24, 32, 30, 0.05);
  }

  .main-panel {
    min-height: 0;
  }

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

  .bubble {
    max-width: 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-avatar-toggle {
    transition: none;
  }

  .account-drawer {
    animation: none;
  }

  .help-bubble {
    animation: none;
  }

  .summary-empty,
  .summary-generated p,
  .summary-loading {
    animation: none;
  }

  .summary-loading span::after {
    animation: none;
  }

  .selection-guide[data-open="false"] button.selection-guide-foot,
  .selection-guide[data-open="false"] button.selection-guide-foot > span {
    animation: none;
  }

  .summary-flip-card {
    transition: none;
  }

  .public-name-card::before,
  .public-card-qr::after {
    animation: none;
  }

  .public-card-qr {
    transition: none;
  }

  .loading-line::after,
  .loading-chip-row span::after,
  .loading-card::after {
    animation: none;
  }
}

@media (max-width: 420px) {
  .public-card-main {
    grid-template-columns: 1fr;
  }

  .public-card-sections section {
    display: grid;
    gap: 6px;
  }

  .public-card-qr {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .public-card-promise-copy {
    display: grid;
  }

  .public-card-promise div {
    justify-content: flex-start;
  }

  .selection-guide-head {
    grid-template-columns: 1fr;
  }

  .selection-guide-actions {
    justify-content: flex-start;
  }

  .memory > div:first-child {
    display: grid;
    gap: 4px;
  }

  .memory > div:first-child span {
    text-align: left;
  }

  .memory-fact-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .profile-value-grid,
  .opportunity-scene-grid,
  .opportunity-workflow-grid {
    grid-template-columns: 1fr;
  }

  button.selection-guide-foot {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  button.selection-guide-foot b {
    justify-content: flex-start;
  }

  .train-field-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .train-form .train-field-head button {
    justify-self: end;
  }

  .selection-hint {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 2px;
  }

  .selection-group-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 0;
  }

  .selection-group-title {
    min-height: 22px;
    padding-top: 2px;
  }

  .selection-group-title strong {
    font-size: 10.5px;
  }

  .selection-group-title b {
    height: 14px;
    min-width: 14px;
    font-size: 8px;
  }
}
