:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-warm: #fffaf7;
  --soft: #f7f2ee;
  --line: #eadfd7;
  --line-strong: #decfc4;
  --ink: #191614;
  --text: #4c403a;
  --muted: #756a64;
  --faint: #a79a91;
  --orange: #d83a00;
  --orange-dark: #c53200;
  --orange-soft: #fff1e8;
  --green: #19a15f;
  --green-soft: #eaf8ef;
  --purple: #7c3cff;
  --purple-soft: #f3edff;
  --yellow: #f7a52d;
  --yellow-soft: #fff6e7;
  --red: #d83a00;
  --shadow: 0 10px 28px rgba(50, 35, 27, 0.08);
  --shadow-soft: 0 1px 2px rgba(50, 35, 27, 0.05);
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 58, 0, 0.055), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, #fbfaf8 58%, #f9f5f1 100%);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(216, 58, 0, 0.34);
  outline-offset: 2px;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-flex;
  font-family: "Material Symbols Rounded";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  font-style: normal;
  font-weight: 450;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.app-root {
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 252, 249, 0.82);
  overflow-y: auto;
  padding: 22px 10px 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-text {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text sup {
  margin-left: 2px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-groups {
  display: grid;
  gap: 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

.nav-group:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.nav-section-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 2px 0 4px;
  text-transform: uppercase;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
}

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

.nav-item.active .material-symbols-rounded {
  font-variation-settings: "FILL" 1;
}

.nav-item span:last-child {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border: 1px solid #f1cdb9;
  border-radius: 10px;
  background: rgba(255, 249, 245, 0.9);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.user-card img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

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

.user-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card small {
  color: var(--muted);
  font-size: 11px;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 700px) minmax(280px, 360px);
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
}

.auth-preview,
.auth-loading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 0;
}

.auth-loading-card {
  padding: 32px;
}

.auth-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.auth-eyebrow {
  margin: 4px 0 -4px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card h1 {
  max-width: 500px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.auth-copy {
  max-width: 470px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.auth-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.auth-option {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.auth-option-primary {
  border-color: rgba(216, 58, 0, 0.22);
  background: linear-gradient(180deg, #fffaf7, #fff);
}

.auth-option-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.auth-option-head > .material-symbols-rounded {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 22px;
}

.auth-option h2,
.auth-option p {
  margin: 0;
}

.auth-option h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.auth-option p,
.auth-error,
.auth-success,
.auth-result p,
.auth-result a {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.auth-error {
  margin: 0;
  color: var(--orange-dark);
  font-weight: 650;
}

.auth-success {
  margin: 0;
  color: #0c7442;
  font-weight: 750;
}

.auth-phone-field {
  display: grid;
  gap: 6px;
}

.auth-phone-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.auth-phone-field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.auth-phone-field input:focus {
  border-color: #e6a583;
  box-shadow: 0 0 0 3px rgba(216, 58, 0, 0.12);
  outline: none;
}

.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #dd4207, #cf3300);
  box-shadow: 0 10px 22px rgba(216, 58, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
}

.auth-result {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.auth-result a {
  width: max-content;
  max-width: 100%;
  color: var(--orange-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.google-signin-slot {
  min-height: 44px;
}

.auth-preview {
  display: grid;
  gap: 16px;
  align-self: center;
  align-content: center;
  min-height: 430px;
  padding: 26px;
}

.auth-preview div {
  display: grid;
  gap: 8px;
}

.auth-preview span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-preview strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
}

.auth-preview p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.auth-preview-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.auth-preview-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.auth-preview-list strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.google-fallback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 240px;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #d7e3f8;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  padding: 0 14px;
}

.google-fallback-button[hidden] {
  display: none !important;
}

.google-fallback-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: #fff;
  color: #4285f4;
  font-weight: 800;
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.onboarding-copy {
  display: grid;
  gap: 4px;
}

.onboarding-copy span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onboarding-copy h2,
.onboarding-copy p {
  margin: 0;
}

.onboarding-copy h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.onboarding-copy p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.onboarding-steps,
.onboarding-actions,
.phone-form,
.source-form,
.writing-form,
.social-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  padding: 6px 10px;
  text-decoration: none;
}

.step-pill.done {
  border-color: rgba(25, 161, 95, 0.22);
  background: var(--green-soft);
  color: #0c7442;
}

.step-pill.pending {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.onboarding-actions {
  grid-column: 1 / -1;
  align-items: center;
}

.onboarding-status-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-status-strip span {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdfb;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  gap: 6px;
  padding: 7px 9px;
}

.phone-form,
.source-form {
  align-items: end;
}

.writing-form {
  width: 100%;
  align-items: end;
}

.phone-form label,
.source-form label,
.writing-form label {
  display: grid;
  gap: 6px;
}

.phone-form label span,
.source-form label span,
.writing-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.phone-form input,
.source-form input {
  width: 210px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.source-form input {
  width: 248px;
}

.writing-form label {
  flex: 1 1 460px;
}

.writing-form textarea {
  min-height: 86px;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  line-height: 1.45;
  padding: 10px 12px;
}

.social-source-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  padding: 8px 11px;
  text-decoration: none;
}

.social-candidate-list {
  display: grid;
  gap: 8px;
  min-width: min(420px, 100%);
}

.social-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}

.social-candidate span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.social-candidate small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-error,
.form-success {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.form-error {
  color: var(--orange-dark);
}

.form-success {
  color: #0c7442;
}

.onboarding-actions .form-error,
.onboarding-actions .form-success {
  width: 100%;
}

.workspace {
  min-width: 0;
  overflow: hidden;
  padding: 22px 16px 30px 24px;
}

.topbar {
  display: grid;
  grid-template-columns: 420px minmax(330px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.page-title h1,
.page-title p,
.panel h2,
.drawer h2 {
  margin: 0;
}

.page-title h1 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--faint);
  gap: 9px;
  padding: 0 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-box:focus-within {
  border-color: #e6a583;
  box-shadow: 0 0 0 3px rgba(216, 58, 0, 0.12);
}

.search-box input::placeholder {
  color: #8a817c;
}

kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7f3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button,
.icon-outline,
.outline-button,
.new-task,
.approve-button,
.tab,
.context-row,
.timeline-item,
.connection-row,
.person-card,
.draft-card,
.content-row,
.kanban-card,
.calendar-day,
.module-update-card,
.action-card,
.setting-row,
.view-all,
.close-button,
.user-card {
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.icon-button {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.notification::after {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.new-task,
.approve-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #dd4207, #cf3300);
  box-shadow: 0 10px 22px rgba(216, 58, 0, 0.2);
  color: white;
  cursor: pointer;
  gap: 8px;
  font-weight: 800;
  padding: 0 16px;
}

.new-task:hover,
.approve-button:hover,
.context-row:hover,
.timeline-item:hover,
.connection-row:hover,
.person-card:hover,
.draft-card:hover,
.content-row:hover,
.kanban-card:hover,
.calendar-day:hover,
.module-update-card:hover,
.action-card:hover,
.setting-row:hover {
  transform: translateY(-1px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  height: 118px;
  padding: 18px 20px;
}

.metric-top,
.metric-body,
.panel-heading,
.panel-tools,
.drawer-head,
.platform-line,
.primary-actions,
.secondary-actions {
  display: flex;
  align-items: center;
}

.metric-top,
.panel-heading,
.drawer-head {
  justify-content: space-between;
}

.metric-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-top em {
  border-radius: 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 4px 7px;
}

.metric-top em.green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-top em.orange,
.metric-top em.purple {
  background: var(--soft);
  color: var(--muted);
}

.metric-body {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.metric-body strong {
  display: block;
  color: #080605;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.metric-body p.up {
  color: var(--green);
}

.metric-body p.alert {
  color: var(--orange);
}

.metric-body p.purple {
  color: var(--purple);
}

.sparkline {
  width: 86px;
  height: 40px;
  flex: 0 0 auto;
  overflow: visible;
}

.sparkline path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sparkline.green path {
  stroke: var(--green);
}

.sparkline.orange path {
  stroke: var(--orange);
}

.sparkline.purple path {
  stroke: var(--purple);
}

.focused-page {
  display: grid;
  max-width: 1160px;
  gap: 12px;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 0.56fr);
  gap: 10px;
}

.focus-strip.no-action {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-tile,
.focus-action {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px;
}

.focus-tile {
  display: grid;
  align-content: start;
  gap: 6px;
}

.focus-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.focus-tile strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-tile p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
}

.focus-action {
  display: flex;
  align-items: stretch;
}

.focus-action > * {
  width: 100%;
}

.module-update-grid {
  display: grid;
  max-width: 1160px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.module-update-card {
  display: grid;
  width: 100%;
  min-height: 220px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  cursor: pointer;
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.module-update-card:hover {
  border-color: #e6b59b;
  background: #fffaf6;
}

.module-update-head,
.module-title {
  display: flex;
  min-width: 0;
  align-items: center;
}

.module-update-head {
  justify-content: space-between;
  gap: 12px;
}

.module-title {
  gap: 10px;
}

.module-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange);
}

.module-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-update-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f6eee8;
  color: var(--orange);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 9px;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.module-metrics span {
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdfb;
  padding: 10px;
}

.module-metrics small,
.module-updates small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.module-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-updates {
  display: grid;
  gap: 8px;
}

.module-updates small {
  position: relative;
  display: block;
  padding-left: 12px;
}

.module-updates small::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.overview-actions {
  display: grid;
  max-width: 1160px;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.section-intro {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.section-intro:first-child {
  margin-top: 0;
}

.section-intro span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.content-page-stack {
  display: grid;
  max-width: 1160px;
  gap: 12px;
}

.left-stack {
  display: grid;
  gap: 10px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel h2 {
  display: inline;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.count-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 0 8px;
  vertical-align: middle;
}

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

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

.action-card {
  display: grid;
  width: 100%;
  min-height: 154px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
  gap: 11px;
  padding: 14px;
  text-align: left;
}

.action-card:hover {
  border-color: #e6b59b;
  background: #fffaf6;
}

.action-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange);
}

.action-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.action-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.action-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
}

.action-copy em {
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.action-priority {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
}

.action-priority.high {
  background: var(--orange-soft);
  color: var(--orange);
}

.action-priority.medium {
  background: var(--yellow-soft);
  color: #bf7500;
}

.agent-chat-panel {
  display: grid;
  max-width: 1160px;
  gap: 12px;
  margin-top: 12px;
}

.agent-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.agent-chat-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.agent-chat-thread {
  display: grid;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 247, 0.7);
  gap: 8px;
  padding: 10px;
}

.chat-message {
  display: grid;
  width: fit-content;
  max-width: min(760px, 88%);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.chat-message.user {
  justify-self: end;
  border-color: var(--orange);
  background: linear-gradient(180deg, #dd4207, #cf3300);
  box-shadow: 0 8px 18px rgba(216, 58, 0, 0.14);
  color: #fff;
}

.chat-message.assistant {
  justify-self: start;
}

.chat-message.pending {
  opacity: 0.76;
}

.chat-message strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-message.user strong {
  color: rgba(255, 255, 255, 0.72);
}

.chat-message p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.48;
}

.chat-message.user p {
  color: #fff;
}

.agent-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.agent-chat-form label {
  min-width: 0;
}

.agent-chat-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  line-height: 1.45;
  outline: none;
  padding: 10px 12px;
}

.agent-chat-form textarea:focus {
  border-color: #e6a583;
  box-shadow: 0 0 0 3px rgba(216, 58, 0, 0.12);
}

.agent-chat-form textarea::placeholder {
  color: #8a817c;
}

.agent-chat-form button[disabled],
.agent-chat-form textarea[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.agent-chat-error {
  margin: 0;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.focus-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.focus-list div {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.focus-list div:last-child {
  border-bottom: 0;
}

.focus-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.focus-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.38;
}

.panel-tools {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.tabs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  cursor: pointer;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 11px;
}

.tab.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.tab span {
  color: inherit;
  opacity: 0.72;
}

.tool-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.outline-button,
.icon-outline {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
}

.icon-outline {
  width: 32px;
  padding: 0;
}

.icon-outline.mini {
  min-height: 32px;
  pointer-events: none;
}

.outline-button:hover,
.icon-outline:hover,
.tab:hover {
  border-color: #e6b59b;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.context-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 14px;
}

.context-row {
  display: grid;
  width: 100%;
  grid-template-columns: 32px minmax(210px, 1fr) minmax(110px, 0.7fr) 72px 40px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

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

.context-row.selected {
  background: #fffaf6;
  box-shadow: inset 3px 0 0 var(--orange);
}

.source-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

.context-main,
.person-cell span,
.draft-main,
.drawer-stats div {
  display: grid;
  min-width: 0;
}

.context-main strong,
.draft-main strong,
.person-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-main small,
.draft-main small,
.person-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-stack {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-stack em {
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  padding: 3px 6px;
}

.time {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.score-pill {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.score-pill.good {
  background: var(--green-soft);
  color: var(--green);
}

.score-pill.warn {
  background: var(--yellow-soft);
  color: #d87a00;
}

.score-pill.risk {
  background: var(--orange-soft);
  color: var(--orange);
}

.context-timeline {
  display: grid;
  margin-top: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 90px 28px minmax(0, 1fr) 76px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.timeline-item:first-child {
  border-radius: 10px 10px 0 0;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

.timeline-item.selected {
  background: #fffaf6;
  box-shadow: inset 3px 0 0 var(--orange);
}

.timeline-time {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 2px;
}

.timeline-time strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.timeline-time small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-rail::before {
  position: absolute;
  top: -12px;
  bottom: -13px;
  width: 2px;
  border-radius: 999px;
  background: #ead8ce;
  content: "";
}

.timeline-item:first-child .timeline-rail::before {
  top: 12px;
}

.timeline-item:last-child .timeline-rail::before {
  bottom: 50%;
}

.timeline-rail i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #f3d5c5;
  margin-top: 4px;
}

.timeline-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.timeline-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-copy small {
  display: flex;
  min-width: 0;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  gap: 7px;
}

.timeline-copy .source-icon {
  width: 20px;
  height: 20px;
}

.timeline-copy p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-score {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
}

.timeline-score em {
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
}

.connection-panel {
  padding-bottom: 12px;
}

.connection-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 12px;
}

.connection-head,
.connection-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.9fr) 74px 66px 62px 62px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.connection-head {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.connection-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.connection-row.selected {
  background: #fffdfb;
}

.person-cell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.person-cell img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.engaged,
.seen {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.fit-cell {
  display: grid;
  gap: 5px;
}

.fit-cell strong {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.fit-cell i {
  display: block;
  width: 50px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e2dd;
}

.fit-cell i::before {
  display: block;
  width: var(--fit);
  height: 100%;
  border-radius: inherit;
  background: #19bf61;
  content: "";
}

.intent {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.intent.high {
  background: var(--orange-soft);
  color: var(--orange);
}

.intent.medium {
  background: var(--yellow-soft);
  color: #bf7500;
}

.review-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange);
  border-radius: 7px;
  background: #fffaf6;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px;
}

.people-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.person-card {
  display: grid;
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  cursor: pointer;
  gap: 12px;
  padding: 13px;
  text-align: left;
}

.person-card.selected {
  border-color: var(--purple);
  background: #fffdfc;
  box-shadow: 0 0 0 1px rgba(124, 60, 255, 0.18);
}

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

.person-card-top img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.person-card-top strong,
.person-card-top small,
.person-signal,
.person-metrics strong,
.next-step {
  display: block;
}

.person-card-top strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card-top small,
.person-metrics small,
.next-step small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.next-step small {
  display: block;
  margin-bottom: 3px;
}

.person-signal {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.person-metrics {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 60px;
  gap: 9px;
}

.person-metrics span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.person-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-metrics span:first-child strong {
  color: var(--green);
}

.person-metrics i {
  display: block;
  width: 58px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e2dd;
}

.person-metrics i::before {
  display: block;
  width: var(--fit);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  content: "";
}

.next-step {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  padding-top: 11px;
}

.content-panel {
  min-height: 0;
}

.content-tabs {
  margin-top: 16px;
}

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

.content-list-head,
.content-row {
  display: grid;
  grid-template-columns: 112px minmax(300px, 1fr) 150px 132px 20px;
  gap: 12px;
}

.content-list-head {
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 13px;
  text-transform: uppercase;
}

.content-row {
  width: 100%;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  cursor: pointer;
  padding: 13px;
  text-align: left;
}

.content-row.to-post {
  border-color: rgba(209, 69, 12, 0.28);
  background: rgba(255, 248, 244, 0.9);
}

.content-row.published {
  background: rgba(252, 255, 253, 0.86);
}

.content-status {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.content-status em {
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 8px;
}

.content-row.published .content-status em {
  background: var(--green-soft);
  color: var(--green);
}

.content-status small,
.content-platform small,
.content-when small,
.content-when em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

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

.content-platform {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.content-platform .source-icon {
  width: 20px;
  height: 20px;
}

.content-main strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.content-main p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
}

.content-when {
  display: grid;
  gap: 5px;
}

.content-when strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.content-score {
  display: grid;
  gap: 5px;
}

.content-score > strong {
  width: max-content;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
}

.content-score > strong.good {
  color: var(--green);
}

.content-score > strong.warn {
  color: var(--orange);
}

.content-score > strong.risk {
  color: #b93131;
}

.content-score .axis-score-strip.compact {
  gap: 3px;
}

.content-score .axis-chip {
  grid-template-columns: 10px minmax(42px, 1fr) 20px;
  gap: 5px;
}

.content-score .axis-chip small,
.content-score .axis-chip strong {
  font-size: 9px;
}

.content-score .axis-chip i {
  height: 3px;
}

.content-open {
  color: var(--muted);
  justify-self: end;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.kanban-board.focused {
  grid-template-columns: minmax(280px, 560px);
}

.kanban-column {
  display: grid;
  align-content: start;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 247, 0.72);
  padding: 10px;
}

.kanban-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kanban-column-head strong,
.kanban-column-head small {
  display: block;
}

.kanban-column-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.kanban-column-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 3px;
}

.kanban-column-head em {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.kanban-cards {
  display: grid;
  gap: 8px;
}

.kanban-card {
  display: grid;
  width: 100%;
  min-height: 146px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  cursor: pointer;
  gap: 9px;
  padding: 11px;
  text-align: left;
}

.kanban-card.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(124, 60, 255, 0.18);
}

.kanban-card-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.kanban-card-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.kanban-card-copy,
.kanban-schedule {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.kanban-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-meta em,
.kanban-meta b,
.calendar-meta em,
.calendar-meta b {
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
}

.kanban-meta em,
.calendar-meta em {
  background: var(--soft);
  color: var(--muted);
}

.kanban-meta b,
.calendar-meta b {
  background: var(--orange-soft);
  color: var(--orange);
}

.kanban-meta b.good,
.axis-panel-head strong.good {
  background: rgba(38, 160, 98, 0.1);
  color: var(--green);
}

.kanban-meta b.warn,
.axis-panel-head strong.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.kanban-meta b.risk,
.axis-panel-head strong.risk {
  background: rgba(215, 57, 57, 0.1);
  color: #b93131;
}

.axis-score-strip {
  display: grid;
  gap: 7px;
}

.axis-score-strip.compact {
  gap: 6px;
}

.axis-chip {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 7px;
}

.axis-chip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.axis-chip i,
.axis-detail-row i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 217, 210, 0.7);
}

.axis-chip i b,
.axis-detail-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--purple));
}

.axis-chip strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.kanban-empty,
.archive-empty {
  display: grid;
  place-items: center;
  min-height: 126px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 14px;
  text-align: center;
}

.archive-empty {
  gap: 8px;
  margin-top: 14px;
}

.archive-empty .material-symbols-rounded {
  color: var(--orange);
}

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

.archive-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.embedded-calendar {
  margin-top: 14px;
}

.calendar-panel {
  overflow: hidden;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.embedded-calendar .calendar-strip {
  margin-top: 0;
}

.calendar-day {
  display: grid;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
  gap: 10px;
  justify-items: start;
  padding: 12px;
  text-align: left;
}

.calendar-day.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(124, 60, 255, 0.18);
}

.calendar-date {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-date strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.calendar-date small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.calendar-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.calendar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

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

.draft-card {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(128px, 1fr) 46px 58px 68px 32px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 13px 12px;
  text-align: left;
}

.draft-card.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(124, 60, 255, 0.2);
}

.draft-meta {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.draft-meta small,
.drawer-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.draft-meta strong {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.updated strong {
  color: var(--text);
  font-weight: 600;
}

.view-all {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  gap: 8px;
  font-weight: 700;
  margin: 12px auto 0;
}

.drawer {
  min-height: 100%;
  overflow: visible;
  padding: 16px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(25, 22, 20, 0.38);
  backdrop-filter: blur(2px);
}

.drawer-shell {
  width: min(438px, calc(100vw - 28px));
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -18px 0 42px rgba(50, 35, 27, 0.16);
}

.drawer-shell .drawer {
  min-height: 100vh;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.drawer-head {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.close-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  gap: 8px;
  font-size: 12px;
}

.platform-line {
  gap: 10px;
  margin-top: 18px;
}

.platform-line span {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.platform-line em {
  border-radius: 6px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 4px 9px;
}

.drawer h2 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.drawer-stats div:first-child {
  grid-column: 1 / -1;
}

.drawer-stats strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.axis-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 247, 0.82);
  margin-top: 14px;
  padding: 14px;
}

.axis-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.axis-panel-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.axis-panel-head strong {
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.axis-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

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

.axis-detail-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;
}

.axis-detail-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.axis-detail-row span b {
  color: var(--orange);
}

.axis-detail-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.axis-detail-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.credibility-note {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.credibility-note span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.credibility-note small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdfc;
  margin-top: 14px;
  padding: 14px;
}

.preview-card span,
.trace-section > span,
.checks > span,
.more-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.preview-card p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 7px 0 12px;
}

.pager span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfc5be;
}

.pager .active {
  background: var(--orange);
}

.source-trace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.source-trace img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
}

.source-trace em {
  display: inline-flex;
  height: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  padding: 0 6px;
}

.integration-grid,
.profile-rule-grid {
  display: grid;
  gap: 10px;
}

.profile-rule-grid div,
.sample-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.profile-rule-grid div {
  display: grid;
  gap: 5px;
}

.profile-rule-grid strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-rule-grid span,
.muted-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.source-table,
.goal-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 14px;
}

.source-table-row,
.goal-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  padding: 11px 12px;
  text-align: left;
}

.source-table-row:last-child,
.goal-row:last-child {
  border-bottom: 0;
}

.source-table-row {
  grid-template-columns: 32px minmax(180px, 1fr) 120px 116px;
  cursor: pointer;
}

.goal-row {
  grid-template-columns: minmax(0, 1fr) 160px 90px;
  cursor: pointer;
}

.source-table-row strong,
.goal-row strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.source-table-row small,
.goal-row small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.source-table-row em,
.goal-row em,
.goal-row b,
.integration-card em {
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  justify-self: start;
  padding: 4px 8px;
}

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

.integration-card {
  display: grid;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  cursor: pointer;
  gap: 9px;
  justify-items: start;
  padding: 14px;
  text-align: left;
}

.integration-card strong {
  color: var(--ink);
  font-size: 14px;
}

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

.profile-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

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

.profile-page-stack {
  display: grid;
  max-width: 1160px;
  gap: 12px;
}

.profile-hero {
  display: grid;
  gap: 14px;
}

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

.profile-intro {
  max-width: 820px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

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

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

.source-trace-card {
  display: grid;
  min-width: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  gap: 7px;
  padding: 12px;
}

.source-trace-card span,
.source-column-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.source-trace-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-trace-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.profile-source-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.profile-source-columns > div {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfb;
  gap: 10px;
  padding: 12px;
}

.profile-source-list,
.profile-next-step-list {
  display: grid;
  gap: 8px;
}

.profile-source-list a,
.profile-source-sample,
.profile-next-step-list span {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
}

.profile-source-list strong,
.profile-next-step-list span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.profile-source-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-source-sample span {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.profile-card {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  gap: 12px;
  padding: 16px;
}

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

.profile-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.profile-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  padding: 10px 12px;
}

.profile-list div:last-child {
  border-bottom: 0;
}

.profile-list span,
.sample-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-list strong,
.sample-card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.sample-card {
  display: grid;
  gap: 6px;
  border: 1px solid #f1cdb9;
  border-radius: 10px;
  background: #fffaf7;
  padding: 12px;
}

.compact-action {
  min-height: 38px;
  width: 100%;
}

.settings-page-stack {
  display: grid;
  max-width: 1160px;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

.settings-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.settings-profile-panel .panel-heading {
  gap: 12px;
}

.settings-profile-panel .outline-button {
  flex: 0 0 auto;
}

.settings-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.settings-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 14px;
}

.setting-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
}

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

.setting-row:hover {
  background: #fffaf6;
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.setting-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.setting-row > .material-symbols-rounded {
  color: var(--muted);
  justify-self: end;
}

.source-table.compact,
.goal-list.compact {
  margin-top: 14px;
}

.source-table.compact .source-table-row {
  grid-template-columns: 32px minmax(0, 1fr) 92px 112px;
}

.goal-list.compact .goal-row {
  grid-template-columns: minmax(0, 1fr) 112px 72px;
}

.help-flow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.help-flow div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  gap: 10px;
  padding: 12px;
}

.help-flow strong {
  color: var(--orange);
}

.help-flow span {
  color: var(--text);
}

.checks {
  margin-top: 12px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 10px;
  margin-top: 8px;
}

.check-grid span {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 11px;
  gap: 4px;
}

.check-grid .material-symbols-rounded {
  font-size: 15px;
  font-variation-settings: "FILL" 1;
}

.check-grid .ok {
  color: #16a061;
}

.check-grid .muted {
  color: #c9c1bb;
}

.next-action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #b87cff;
  border-radius: 9px;
  background: #fffdfc;
  margin-top: 14px;
  padding: 12px;
}

.next-action > .material-symbols-rounded {
  color: var(--purple);
  font-variation-settings: "FILL" 1;
}

.next-action strong,
.next-action small {
  display: block;
}

.next-action strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.next-action small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.primary-actions,
.secondary-actions {
  gap: 12px;
  margin-top: 12px;
}

.primary-actions > *,
.secondary-actions > * {
  flex: 1 1 0;
}

.more-label {
  margin-top: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #e6b59b;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: white;
  font-weight: 700;
  padding: 13px 15px;
}

.toast.drawer-toast {
  right: auto;
  left: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: minmax(220px, 340px) minmax(300px, 1fr) auto;
  }

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

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

  .integration-grid,
  .profile-source-grid,
  .profile-rule-grid,
  .profile-rule-grid.expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kanban-board,
  .calendar-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .drawer {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .auth-preview {
    min-height: auto;
  }

  .auth-options {
    grid-template-columns: 1fr;
  }

  .auth-option {
    min-height: auto;
  }

  .onboarding-panel {
    grid-template-columns: 1fr;
  }

  .onboarding-steps,
  .onboarding-actions,
  .phone-form,
  .source-form,
  .writing-form,
  .social-source-list,
  .social-candidate-list {
    justify-content: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-lockup {
    margin-bottom: 18px;
  }

  .nav-groups {
    gap: 10px;
  }

  .nav-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 0;
    padding-bottom: 0;
  }

  .user-card {
    display: none;
  }

  .workspace {
    padding: 20px 14px 28px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .toolbar-actions {
    justify-content: flex-end;
  }

  .metric-grid,
  .module-update-grid,
  .focus-strip,
  .focus-strip.no-action,
  .onboarding-status-strip {
    grid-template-columns: 1fr;
  }

  .agent-chat-head {
    display: grid;
  }

  .agent-chat-head p {
    max-width: none;
    text-align: left;
  }

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

  .timeline-item {
    grid-template-columns: 74px 24px minmax(0, 1fr) 60px;
    gap: 10px;
  }

  .kanban-board,
  .kanban-board.focused,
  .calendar-strip,
  .profile-source-columns,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .content-list-head {
    display: none;
  }

  .content-row {
    grid-template-columns: 1fr;
  }

  .source-table.compact .source-table-row,
  .goal-list.compact .goal-row {
    grid-template-columns: 1fr;
  }

  .content-score {
    display: flex;
    align-items: center;
    grid-column: auto;
    gap: 6px;
  }

  .content-score .axis-score-strip {
    display: none;
  }

  .content-open {
    justify-self: start;
  }

  .content-panel,
  .drawer {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .auth-screen {
    padding: 16px;
  }

  .auth-card,
  .auth-preview {
    padding: 20px;
  }

  .auth-card:not(.auth-loading-card) {
    padding: 0;
  }

  .auth-card h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .auth-option {
    padding: 16px;
  }

  .primary-button,
  .google-fallback-button {
    width: 100%;
  }

  .phone-form,
  .source-form,
  .writing-form,
  .social-candidate-list,
  .agent-chat-form,
  .phone-form label,
  .source-form label,
  .writing-form label,
  .agent-chat-form label,
  .phone-form input,
  .source-form input,
  .writing-form textarea,
  .agent-chat-form textarea,
  .phone-form button,
  .source-form button,
  .writing-form button,
  .agent-chat-form button {
    width: 100%;
  }

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

  .profile-source-grid {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .form-error,
  .form-success {
    text-align: left;
  }

  .social-candidate {
    align-items: stretch;
    flex-direction: column;
  }

  .social-candidate button {
    width: 100%;
  }

  .sidebar {
    padding: 18px 8px;
  }

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

  .nav-section-label {
    grid-column: 1 / -1;
  }

  .nav-item {
    min-height: 44px;
  }

  .tab,
  .outline-button,
  .icon-outline,
  .close-button {
    min-height: 44px;
  }

  .icon-outline {
    width: 44px;
  }

  .metric-card {
    min-height: 112px;
  }

  .module-update-card {
    min-height: auto;
  }

  .module-metrics {
    grid-template-columns: 1fr;
  }

  .context-row,
  .timeline-item,
  .action-card,
  .source-table-row,
  .goal-row,
  .connection-head,
  .connection-row,
  .draft-card,
  .help-flow div {
    grid-template-columns: 1fr;
  }

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

  .timeline-rail {
    display: none;
  }

  .integration-grid,
  .profile-rule-grid,
  .profile-rule-grid.expanded {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions > * {
    flex: 1 1 auto;
  }

  .profile-list div {
    grid-template-columns: 1fr;
  }

  .context-row .source-icon,
  .draft-card .source-icon {
    display: none;
  }

  .context-main strong,
  .draft-main strong,
  .person-cell strong,
  .context-main small,
  .draft-main small,
  .person-cell small,
  .engaged,
  .seen {
    white-space: normal;
  }

  .tag-stack,
  .time,
  .score-pill,
  .timeline-score,
  .review-button,
  .draft-meta {
    justify-self: start;
  }

  .timeline-copy strong,
  .person-card-top strong {
    white-space: normal;
  }

  .person-card-top,
  .person-metrics {
    grid-template-columns: 1fr;
  }

  .connection-head {
    display: none;
  }

  .drawer-stats,
  .axis-detail-row,
  .check-grid,
  .primary-actions,
  .secondary-actions {
    grid-template-columns: 1fr;
  }

  .axis-detail-row strong {
    text-align: left;
  }

  .drawer-stats div:first-child {
    grid-column: auto;
  }

  .toast.drawer-toast {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: 16px;
  }
}
