:root {
  --ink: #101828;
  --muted: #697386;
  --line: #e6eaf0;
  --soft-line: #eef1f6;
  --blue: #2457f5;
  --blue-dark: #1744d8;
  --blue-soft: #eef3ff;
  --violet: #7755f7;
  --cyan: #23a8d8;
  --green: #25a56a;
  --surface: #ffffff;
  --canvas: #f7f8fb;
  --shadow: 0 18px 55px rgba(36, 61, 119, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(36, 87, 245, 0.2);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 248px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  padding: 27px 18px 20px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand {
  padding: 0 10px;
  font-size: 19px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(145deg, #1947e8, #6385ff);
  box-shadow: 0 8px 18px rgba(36, 87, 245, 0.25);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.primary-nav {
  margin-top: 39px;
}

.primary-nav,
.secondary-nav {
  display: grid;
  gap: 6px;
}

.sidebar-label {
  margin: 29px 12px 10px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: var(--ink);
  background: #f5f7fb;
}

.nav-item.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
}

.nav-count {
  margin-left: auto;
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 20px;
  color: #667085;
  background: #eef1f5;
  font-size: 10px;
  text-align: center;
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #f1b84a;
  box-shadow: 0 0 0 4px rgba(241, 184, 74, 0.12);
}

.sidebar-spacer {
  flex: 1;
  min-height: 25px;
}

.usage-card {
  padding: 15px;
  border: 1px solid #e2e8f5;
  border-radius: 14px;
  background: linear-gradient(150deg, #f7f9ff, #edf3ff);
}

.usage-topline {
  display: flex;
  justify-content: space-between;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
}

.usage-topline strong {
  color: var(--blue);
}

.progress-track {
  height: 5px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 9px;
  background: #d9e3ff;
}

.progress-track span {
  display: block;
  width: 53%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315ff5, #829cff);
}

.usage-card p {
  margin: 0 0 12px;
  color: #7b8494;
  font-size: 10px;
}

.usage-card button {
  width: 100%;
  padding: 8px;
  border: 1px solid #d4ddf4;
  border-radius: 8px;
  color: #3154c6;
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.profile-card {
  width: 100%;
  margin-top: 13px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.profile-card:hover {
  background: #f5f7fb;
}

.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #1b2148, #334a9b);
  font-size: 11px;
  font-weight: 700;
}

.profile-copy {
  display: grid;
  gap: 2px;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  color: #8b95a7;
  font-size: 10px;
}

.profile-card > svg {
  width: 16px;
  margin-left: auto;
  color: #98a2b3;
}

.independence-note {
  margin: 3px 10px 0;
  color: #a0a8b6;
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

.main-content {
  width: calc(100% - 248px);
  min-width: 0;
  margin-left: 248px;
}

.topbar {
  height: 69px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(230, 234, 240, 0.9);
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

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

.autosave {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d8797;
  font-size: 11px;
}

.autosave i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31b47b;
  box-shadow: 0 0 0 4px rgba(49, 180, 123, 0.1);
}

.icon-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #687386;
  background: white;
}

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

.workspace {
  max-width: 1210px;
  margin: 0 auto;
  padding: 54px 34px 80px;
}

.hero-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  position: relative;
}

.hero-copy::before {
  content: "";
  width: 390px;
  height: 240px;
  position: absolute;
  z-index: -1;
  top: -145px;
  left: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 112, 255, 0.14), transparent 68%);
  filter: blur(8px);
}

.eyebrow,
.step-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 10px 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: var(--blue);
}

.hero-copy > div:first-child > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.agent-status {
  min-width: 296px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dde4f2;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 9px 28px rgba(33, 55, 105, 0.06);
}

.agent-orb {
  width: 39px;
  height: 39px;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #dbe7ff, #f5f8ff);
}

.agent-orb span {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background:
    radial-gradient(circle at 35% 28%, white 0 8%, transparent 9%),
    linear-gradient(145deg, #2b5af2, #7d9bff);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.45), 0 5px 12px rgba(36, 87, 245, 0.25);
}

.agent-status > div {
  display: grid;
  gap: 3px;
}

.agent-status strong {
  font-size: 12px;
}

.agent-status small {
  color: #7e899a;
  font-size: 10px;
}

.live-pill {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 20px;
  color: #198354;
  background: #e9f8f1;
  font-size: 9px;
  font-weight: 700;
}

.workflow-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(330px, 0.76fr);
  gap: 20px;
  align-items: start;
}

.composer-card,
.analysis-card,
.proposal-output {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.composer-card,
.analysis-card {
  padding: 25px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.card-heading h2,
.results-header h2 {
  margin: 7px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.paste-button {
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dde3ed;
  border-radius: 9px;
  color: #566174;
  background: white;
  font-size: 11px;
  font-weight: 600;
}

.paste-button:hover {
  color: var(--blue);
  border-color: #becdff;
  background: #f8faff;
}

.paste-button svg {
  width: 14px;
  height: 14px;
}

textarea {
  width: 100%;
  min-height: 259px;
  margin-top: 21px;
  padding: 18px;
  resize: vertical;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  color: #263044;
  background: #fbfcfe;
  font-size: 13px;
  line-height: 1.65;
  transition: 160ms ease;
}

textarea::placeholder {
  color: #a6aebb;
}

textarea:focus {
  border-color: #8ca6fa;
  background: white;
  box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.07);
}

.textarea-footer {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #98a2b3;
  font-size: 9px;
}

.input-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}

.input-hint svg {
  width: 12px;
  height: 12px;
}

.example-strip {
  margin-top: 18px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed #d6deed;
  border-radius: 10px;
  color: #7c8798;
  background: #fafbfe;
  font-size: 10px;
}

.example-strip button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.controls-row {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.control-group {
  display: grid;
  gap: 7px;
}

.control-group label {
  color: #4f596b;
  font-size: 10px;
  font-weight: 700;
}

.control-group select {
  width: 100%;
  padding: 10px 31px 10px 11px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  color: #364152;
  background: #fff;
  font-size: 10px;
}

.generate-button {
  width: 100%;
  min-height: 49px;
  margin-top: 21px;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(105deg, #1744df, #3d70ff 55%, #6e88ff);
  box-shadow: 0 12px 25px rgba(36, 87, 245, 0.22);
  font-size: 12px;
  font-weight: 700;
  transition: 180ms ease;
}

.generate-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 29px rgba(36, 87, 245, 0.3);
}

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

.generate-button.loading svg {
  animation: spin 1s linear infinite;
}

.generate-button svg {
  width: 18px;
  height: 18px;
}

.generate-button kbd {
  position: absolute;
  right: 13px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 8px;
}

.button-shine {
  width: 80px;
  height: 130px;
  position: absolute;
  top: -40px;
  left: -110px;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.2);
  filter: blur(4px);
}

.generate-button:not(:disabled):hover .button-shine {
  animation: shine 900ms ease;
}

.generate-note {
  margin: 9px 0 0;
  color: #929bab;
  font-size: 9px;
  text-align: center;
}

.spark-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
}

.spark-badge svg {
  width: 17px;
  height: 17px;
}

.analysis-visual {
  height: 173px;
  margin-top: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #e1e8f7;
  border-radius: 13px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at center, #d7e3ff, #f7f9ff 72%);
}

.analysis-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(#dce5f9 1px, transparent 1px),
    linear-gradient(90deg, #dce5f9 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, black, transparent 73%);
}

.radar {
  width: 89px;
  height: 89px;
  position: relative;
  display: grid;
  place-items: center;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(83, 119, 236, 0.18);
  border-radius: 50%;
}

.ring-one {
  inset: 0;
}

.ring-two {
  inset: 13px;
}

.radar-core {
  width: 42px;
  height: 42px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #2555ee, #7995ff);
  box-shadow: 0 8px 24px rgba(37, 85, 238, 0.3), 0 0 0 8px rgba(72, 111, 245, 0.08);
}

.radar-core svg {
  width: 20px;
}

.radar-dot {
  width: 5px;
  height: 5px;
  position: absolute;
  border-radius: 50%;
  background: #5e7ff1;
  box-shadow: 0 0 0 3px rgba(94, 127, 241, 0.12);
}

.dot-one {
  top: 13px;
  right: 4px;
}

.dot-two {
  bottom: 8px;
  left: 11px;
}

.dot-three {
  top: 26px;
  left: -3px;
}

.analysis-visual p {
  z-index: 1;
  margin: 9px 0 0;
  color: #798397;
  font-size: 9px;
}

.analysis-card.active .radar-core {
  animation: pulse 1.7s ease-in-out infinite;
}

.analysis-card.active .radar {
  animation: float 2.4s ease-in-out infinite;
}

.criteria-list {
  margin-top: 17px;
  display: grid;
}

.criteria-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.criteria-item:last-child {
  border-bottom: 0;
}

.criteria-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.criteria-icon svg {
  width: 15px;
  height: 15px;
}

.criteria-icon.blue {
  color: #3f6bf2;
  background: #eef3ff;
}

.criteria-icon.violet {
  color: #7b55e7;
  background: #f2efff;
}

.criteria-icon.cyan {
  color: #168fb8;
  background: #ebf8fc;
}

.criteria-icon.green {
  color: #269a66;
  background: #ecf8f2;
}

.criteria-item > div {
  display: grid;
  gap: 3px;
}

.criteria-item strong {
  font-size: 10px;
}

.criteria-item small {
  color: #8b94a3;
  font-size: 8px;
  line-height: 1.5;
}

.criteria-check {
  width: 18px;
  height: 18px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8aa0c8;
  background: #f3f6fb;
  font-size: 9px;
}

.analysis-card.active .criteria-check {
  color: white;
  background: #39ac79;
}

.safety-note {
  margin-top: 15px;
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 10px;
  color: #667085;
  background: #f6f8fc;
  font-size: 8px;
  line-height: 1.55;
}

.safety-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--blue);
}

.safety-note strong {
  color: #3a465a;
}

.results-section {
  display: none;
  margin-top: 44px;
  scroll-margin-top: 90px;
}

.results-section.visible {
  display: block;
  animation: reveal 450ms ease both;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.results-header h2 {
  margin-top: 8px;
  font-size: 26px;
}

.results-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.ghost-button {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce2ec;
  border-radius: 9px;
  color: #556174;
  background: white;
  font-size: 10px;
  font-weight: 600;
}

.ghost-button svg {
  width: 14px;
  height: 14px;
}

.proposal-tabs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.job-brief-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  gap: 13px;
}

.client-brief-card,
.quality-check-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 11px 32px rgba(36, 61, 119, 0.05);
}

.brief-heading,
.coverage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brief-heading h3,
.quality-check-card h3,
.coverage-heading h3 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: -0.035em;
}

.fit-verdict {
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.fit-verdict.good {
  color: #157c51;
  background: #e8f8f0;
}

.fit-verdict.caution {
  color: #8b6011;
  background: #fff2d3;
}

.need-summary {
  margin-top: 16px;
  padding: 14px 15px;
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
  color: #3e4a5e;
  background: #f5f8ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.brief-facts {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.brief-facts article {
  min-height: 73px;
  padding: 11px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid #e6eaf1;
  border-radius: 9px;
  background: #fcfdff;
}

.brief-facts span {
  color: #8a94a5;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brief-facts strong {
  color: #364152;
  font-size: 9px;
  line-height: 1.5;
}

.connect-advice {
  margin-top: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e8e2cd;
  border-radius: 9px;
  background: #fffcf3;
}

.connect-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #8d681a;
  background: #fff2cb;
}

.connect-icon svg {
  width: 15px;
  height: 15px;
}

.connect-advice > div {
  display: grid;
  gap: 3px;
}

.connect-advice strong {
  color: #655023;
  font-size: 9px;
}

.connect-advice p {
  margin: 0;
  color: #796b4e;
  font-size: 8px;
  line-height: 1.55;
}

.quality-list {
  margin-top: 15px;
  display: grid;
}

.quality-list > div {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-bottom: 1px solid var(--soft-line);
}

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

.quality-check {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #2aa36f;
  font-size: 9px;
  font-weight: 800;
}

.quality-list p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.quality-list strong {
  color: #3b4658;
  font-size: 9px;
}

.quality-list small {
  color: #8993a3;
  font-size: 7.5px;
  line-height: 1.5;
}

.proposal-tab {
  min-height: 71px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  text-align: left;
  transition: 160ms ease;
}

.proposal-tab:hover {
  border-color: #c3d0f7;
}

.proposal-tab.active {
  border-color: #82a0ff;
  background: #f6f8ff;
  box-shadow: 0 0 0 3px rgba(36, 87, 245, 0.06);
}

.proposal-tab > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.proposal-tab strong {
  font-size: 11px;
}

.proposal-tab small {
  color: #8993a4;
  font-size: 8px;
}

.proposal-tab b {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #edf2ff;
  font-size: 11px;
}

.rank-medal {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.rank-medal.gold {
  color: #936810;
  background: #fff4d8;
}

.rank-medal.silver {
  color: #637084;
  background: #edf0f5;
}

.rank-medal.bronze {
  color: #9a5c37;
  background: #f9e6da;
}

.proposal-output {
  margin-top: 12px;
  overflow: hidden;
}

.proposal-toolbar {
  min-height: 57px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft-line);
  background: #fbfcfe;
}

.winner-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #765510;
  font-size: 10px;
  font-weight: 700;
}

.winner-label svg {
  width: 14px;
  height: 14px;
}

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

.toolbar-actions button {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dde3ed;
  border-radius: 8px;
  color: #596579;
  background: white;
  font-size: 9px;
  font-weight: 700;
}

.toolbar-actions button svg {
  width: 13px;
  height: 13px;
}

.toolbar-actions .copy-button {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.toolbar-actions .sent-button {
  border-color: #bde3d1;
  color: #16764e;
  background: #ecf8f2;
}

.proposal-body {
  min-height: 300px;
  padding: 30px max(30px, 8vw);
  color: #354052;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.proposal-body[contenteditable="true"] {
  margin: 16px;
  padding: 20px max(20px, 7vw);
  border: 1px solid #9cb2f8;
  border-radius: 10px;
  background: #fcfdff;
}

.coverage-section {
  padding: 20px 22px;
  border-top: 1px solid var(--soft-line);
  background: #f9fbff;
}

.coverage-heading {
  align-items: flex-end;
}

.coverage-heading > span {
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--blue);
  background: #eaf0ff;
  font-size: 8px;
  font-weight: 700;
}

.coverage-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.coverage-item {
  padding: 12px;
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 9px;
  border: 1px solid #e1e7f2;
  border-radius: 9px;
  background: white;
}

.coverage-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

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

.coverage-copy strong {
  color: #374255;
  font-size: 8.5px;
}

.coverage-copy p {
  margin: 0;
  color: #7c8798;
  font-size: 7.5px;
  line-height: 1.55;
}

.score-breakdown {
  min-height: 59px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--soft-line);
  background: #fbfcfe;
}

.score-breakdown > span {
  margin-right: auto;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
}

.score-pill {
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e8f1;
  border-radius: 7px;
  color: #697386;
  background: white;
  font-size: 8px;
}

.score-pill i {
  width: var(--score);
  height: 2px;
  position: absolute;
  inset: auto auto 0 0;
  background: var(--blue);
}

.score-pill strong {
  margin-right: 3px;
  color: var(--blue);
}

.aftercare-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.aftercare-card {
  min-height: 145px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 9px 28px rgba(36, 61, 119, 0.05);
}

.aftercare-card p {
  margin: 11px 0 15px;
  color: #566174;
  font-size: 9px;
  line-height: 1.65;
}

.aftercare-card button {
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  color: var(--blue);
  background: #f7f9ff;
  font-size: 8px;
  font-weight: 700;
}

.toast {
  padding: 11px 15px;
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 10px;
  color: white;
  background: #172033;
  box-shadow: 0 12px 32px rgba(12, 18, 32, 0.24);
  font-size: 11px;
  transition: 200ms ease;
}

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

.mobile-nav {
  display: none;
}

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

.app-view {
  display: none;
}

.app-view.active {
  display: block;
  animation: reveal 280ms ease both;
}

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

.page-heading h1 {
  margin: 9px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.page-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.primary-action,
.secondary-action,
.text-action {
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.primary-action {
  padding: 11px 15px;
  border: 0;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(36, 87, 245, 0.2);
}

.secondary-action {
  padding: 9px 12px;
  border: 1px solid #dce3ef;
  color: #4f5c70;
  background: white;
}

.text-action {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
}

.date-pill,
.save-status {
  padding: 8px 11px;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  color: #667085;
  background: white;
  font-size: 9px;
  font-weight: 700;
}

.automation-state {
  padding: 8px 11px;
  border-radius: 20px;
  color: #7b5a19;
  background: #fff2d3;
  font-size: 9px;
  font-weight: 700;
}

.automation-state.ready {
  color: #157c51;
  background: #e8f8f0;
}

.automation-flow {
  margin-bottom: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(135deg, #f8faff, #fff);
}

.automation-flow article {
  min-height: 92px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid #e2e8f4;
  border-radius: 11px;
  background: white;
}

.automation-flow article > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

.automation-flow strong {
  font-size: 10px;
}

.automation-flow small {
  color: #8892a2;
  font-size: 8px;
  line-height: 1.5;
}

.automation-flow > i {
  height: 1px;
  position: relative;
  background: #ccd7ef;
}

.automation-flow > i::after {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  right: 0;
  top: -2px;
  transform: rotate(45deg);
  border-top: 1px solid #7891c8;
  border-right: 1px solid #7891c8;
}

.automation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.section-copy {
  margin: 14px 0 0;
  color: #7b8596;
  font-size: 9px;
  line-height: 1.6;
}

.token-row {
  margin-top: 17px;
  display: flex;
  gap: 9px;
}

.token-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  color: #364152;
  background: #fbfcfe;
  font-size: 10px;
}

.automation-actions {
  margin-top: 12px;
  display: flex;
  gap: 9px;
}

.watch-status {
  margin: 11px 0 0;
  color: #7f8999;
  font-size: 8px;
  line-height: 1.5;
}

.watch-status.active {
  color: #198354;
}

.connection-panel {
  padding: 22px;
}

.connection-list {
  margin-top: 13px;
  display: grid;
}

.connection-list > div {
  padding: 11px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--soft-line);
}

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

.service-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

.connection-list p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.connection-list strong {
  font-size: 9px;
}

.connection-list small {
  color: #8a94a4;
  font-size: 7.5px;
}

.connection-list b {
  margin-left: auto;
  color: #8a94a4;
  font-size: 8px;
}

.connection-list b.connected {
  color: #198354;
}

.automation-note {
  margin-top: 17px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #fffcf3;
}

.automation-note strong {
  color: #73591f;
  font-size: 9px;
  white-space: nowrap;
}

.automation-note p {
  margin: 0;
  color: #796e57;
  font-size: 8.5px;
  line-height: 1.6;
}

.setup-checklist {
  margin-top: 17px;
  padding: 22px;
}

.setup-steps {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.setup-steps article {
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e3e8f1;
  border-radius: 10px;
  background: #fbfcfe;
}

.setup-steps article > span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--blue);
  font-size: 8px;
  font-weight: 800;
}

.setup-steps article > div {
  display: grid;
  gap: 4px;
}

.setup-steps strong {
  font-size: 9px;
}

.setup-steps small {
  color: #8791a1;
  font-size: 8px;
  line-height: 1.55;
}

.setup-steps code {
  color: #3155be;
  font-family: Consolas, monospace;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 122px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 30px rgba(36, 61, 119, 0.05);
}

.metric-card.featured {
  color: white;
  border-color: transparent;
  background: linear-gradient(145deg, #1744df, #5e7ff3);
}

.metric-card > span {
  color: #7d8797;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card.featured > span,
.metric-card.featured small {
  color: rgba(255, 255, 255, 0.75);
}

.metric-card strong {
  margin: 9px 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.metric-card strong.metric-word {
  font-size: 18px;
}

.metric-card small {
  color: #8d96a5;
  font-size: 9px;
}

.positive {
  color: #219266 !important;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.panel-toolbar {
  padding: 14px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.panel-toolbar select,
.search-field {
  min-height: 38px;
  border: 1px solid #e0e5ed;
  border-radius: 9px;
  background: #fbfcfe;
}

.panel-toolbar select {
  padding: 0 30px 0 11px;
  color: #5f6b7d;
  font-size: 10px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}

.search-field svg {
  width: 15px;
  height: 15px;
  color: #8e98a8;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #344054;
  background: transparent;
  font-size: 10px;
}

.proposal-list {
  min-height: 220px;
}

.history-item {
  padding: 17px 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(120px, 0.7fr) 90px 105px 35px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-job {
  display: grid;
  gap: 4px;
}

.history-job strong {
  font-size: 11px;
}

.history-job small,
.history-meta small {
  color: #8a94a4;
  font-size: 8px;
}

.history-meta {
  display: grid;
  gap: 3px;
}

.history-meta strong {
  color: #556174;
  font-size: 9px;
}

.status-pill {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.draft { color: #687386; background: #eef1f5; }
.status-pill.sent { color: #3159bd; background: #eaf0ff; }
.status-pill.replied { color: #157c51; background: #e8f8f0; }
.status-pill.interview { color: #7b5410; background: #fff2d3; }

.history-score {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}

.row-action {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  color: #6b7688;
  background: white;
}

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

.empty-state {
  padding: 58px 20px;
  color: #8a94a4;
  font-size: 11px;
  text-align: center;
}

.insights-grid,
.settings-layout,
.settings-columns {
  display: grid;
  gap: 17px;
  align-items: start;
}

.insights-grid {
  grid-template-columns: 1.4fr 0.8fr;
}

.settings-layout {
  grid-template-columns: 1.6fr 0.6fr;
}

.settings-columns {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 17px;
}

.chart-panel,
.insight-panel,
.form-panel,
.proof-panel,
.ranking-panel,
.completeness-card {
  padding: 22px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-title span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.legend {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7c8798 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.bar-chart {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.bar-item {
  display: grid;
  grid-template-columns: 90px 1fr 35px;
  gap: 12px;
  align-items: center;
  color: #647084;
  font-size: 9px;
}

.bar-item > div {
  height: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf1f7;
}

.bar-item i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2858ef, #7795fc);
}

.bar-item strong {
  color: #344054;
}

.insight-callout {
  margin-top: 18px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e7ebf2;
  border-radius: 11px;
  background: #fafbfe;
}

.insight-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

.insight-callout p {
  margin: 0;
  color: #5d687a;
  font-size: 9px;
  line-height: 1.65;
}

.insight-panel .text-action {
  margin-top: 18px;
}

.form-grid {
  margin-top: 21px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

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

.field > span {
  color: #505c6f;
  font-size: 9px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  color: #364152;
  background: #fbfcfe;
  font-size: 10px;
  resize: vertical;
}

.completion-ring {
  width: 132px;
  height: 132px;
  margin: 24px auto 18px;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 78%, #e9eef8 78% 100%);
}

.completion-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: white;
}

.completion-ring strong,
.completion-ring span {
  z-index: 1;
  text-align: center;
}

.completion-ring strong {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.completion-ring span {
  color: #8a94a4;
  font-size: 8px;
}

.completeness-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  text-align: center;
}

.completeness-card p {
  margin: 8px 0 0;
  color: #7a8596;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.proof-panel {
  margin-top: 17px;
}

.proof-list {
  margin-top: 17px;
  display: grid;
  gap: 9px;
}

.proof-item {
  padding: 13px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 11px;
  align-items: center;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
}

.proof-symbol {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}

.proof-copy {
  display: grid;
  gap: 3px;
}

.proof-copy strong {
  font-size: 10px;
}

.proof-copy small {
  color: #8993a3;
  font-size: 8px;
}

.proof-item button {
  border: 0;
  color: #9a6c6c;
  background: transparent;
  font-size: 9px;
}

.toggle-list {
  margin-top: 20px;
  display: grid;
}

.toggle-list label {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--soft-line);
}

.toggle-list label > span {
  display: grid;
  gap: 3px;
}

.toggle-list strong {
  font-size: 9px;
}

.toggle-list small {
  color: #8b95a5;
  font-size: 8px;
}

.toggle-list input {
  width: 34px;
  height: 18px;
  accent-color: var(--blue);
}

.weight-grid {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 19px;
}

.weight-grid label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: center;
  color: #566174;
  font-size: 9px;
}

.weight-grid input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
}

.weight-grid b {
  color: var(--blue);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shine {
  to { left: calc(100% + 30px); }
}

@keyframes pulse {
  50% { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 85, 238, 0.35), 0 0 0 13px rgba(72, 111, 245, 0.06); }
}

@keyframes float {
  50% { transform: translateY(-4px); }
}

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

@media (max-width: 1050px) {
  .sidebar {
    width: 215px;
  }

  .main-content {
    width: calc(100% - 215px);
    margin-left: 215px;
  }

  .hero-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-status {
    min-width: 0;
  }

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

  .analysis-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }

  .analysis-card .card-heading,
  .analysis-card .safety-note {
    grid-column: 1 / -1;
  }

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

  .insights-grid,
  .settings-layout,
  .settings-columns,
  .job-brief-grid,
  .automation-grid {
    grid-template-columns: 1fr;
  }

  .automation-flow {
    grid-template-columns: 1fr 18px 1fr;
  }

  .automation-flow article:nth-of-type(3),
  .automation-flow article:nth-of-type(4),
  .automation-flow > i:nth-of-type(3) {
    margin-top: 12px;
  }

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

  .history-item {
    grid-template-columns: 1fr 120px 80px 35px;
  }

  .history-item .history-meta:nth-child(2) {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: none;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
    justify-content: space-between;
  }

  .mobile-brand {
    display: flex;
    font-size: 16px;
  }

  .mobile-brand .brand-mark {
    width: 28px;
    height: 28px;
  }

  .autosave {
    display: none;
  }

  .workspace {
    padding: 36px 17px 105px;
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .agent-status {
    width: 100%;
  }

  .composer-card,
  .analysis-card {
    padding: 20px;
  }

  .analysis-card {
    display: block;
  }

  .controls-row,
  .proposal-tabs {
    grid-template-columns: 1fr;
  }

  .textarea-footer,
  .results-header,
  .proposal-toolbar,
  .score-breakdown {
    align-items: flex-start;
    flex-direction: column;
  }

  .proposal-toolbar,
  .score-breakdown {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions button {
    flex: 1;
    justify-content: center;
  }

  .score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .score-breakdown > span {
    grid-column: 1 / -1;
  }

  .proposal-body {
    padding: 24px 21px;
  }

  .generate-button kbd {
    display: none;
  }

  .mobile-nav {
    height: 68px;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    border-top: 1px solid #e0e5ee;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 25px rgba(29, 48, 91, 0.08);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 10px;
    color: #8993a4;
    background: transparent;
    font-size: 7.5px;
    font-weight: 700;
  }

  .mobile-nav-item svg {
    width: 19px;
    height: 19px;
  }

  .mobile-nav-item.active {
    color: var(--blue);
    background: #f1f5ff;
  }

  .page-heading,
  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-flow {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .automation-flow > i {
    width: 1px;
    height: 14px;
    justify-self: center;
  }

  .automation-flow > i::after {
    right: -2px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .token-row,
  .automation-actions,
  .automation-note {
    flex-direction: column;
  }

  .metric-row,
  .form-grid,
  .weight-grid,
  .brief-facts,
  .coverage-list,
  .aftercare-grid,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .history-item {
    grid-template-columns: 1fr auto;
  }

  .history-item .history-meta,
  .history-item .history-score {
    display: none;
  }

  .row-action {
    grid-column: 2;
    grid-row: 1;
  }
}
