:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --ink: #171719;
  --muted: #6d6d73;
  --line: rgba(21, 21, 23, 0.09);
  --soft-line: rgba(21, 21, 23, 0.06);
  --brand: #ec1769;
  --brand-dark: #bd0f51;
  --cyan: #0a84ff;
  --green: #28a745;
  --amber: #b7791f;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.055);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(236, 23, 105, 0.08), transparent 28%),
    radial-gradient(circle at 18% 6%, rgba(10, 132, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 48%, #ececf0 100%);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  background: #050505;
  color: #f5f5f7;
}

.login-visual {
  position: relative;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto -18% -18% -18%;
  height: 42%;
  background: linear-gradient(90deg, rgba(236, 23, 105, 0.34), rgba(10, 132, 255, 0.26));
  filter: blur(46px);
  opacity: 0.75;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 156px;
  height: 42px;
  object-fit: contain;
}

.product-badge {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-copy p {
  margin: 22px 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #f5f5f7;
  color: var(--ink);
}

.login-card {
  width: min(460px, 100%);
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: #3a3a3d;
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(236, 23, 105, 0.5);
  box-shadow: 0 0 0 4px rgba(236, 23, 105, 0.1);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  white-space: nowrap;
}

.primary-btn {
  padding: 0 18px;
  background: #111113;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn.brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.secondary-btn {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-btn {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.icon-btn {
  width: 38px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.panel-header > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(251, 251, 253, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(24px);
}

.sidebar-logo {
  height: 44px;
  width: 170px;
  object-fit: contain;
  margin: 0 0 30px 8px;
}

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

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 13px;
  background: transparent;
  color: #4e4e53;
  font-size: 15px;
  font-weight: 650;
}

.nav button.active {
  background: #111113;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nav svg,
.mini-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.sidebar-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #111113;
  color: #fff;
}

.sidebar-status strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.sidebar-status span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.4;
}

.main {
  min-width: 0;
  padding: 42px 32px 28px;
  max-width: 1760px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  font-weight: 800;
}

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

.lane-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  margin-bottom: 16px;
}

.lane-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lane-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 2.3vw, 40px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lane-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.lane-cell {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--soft-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
}

.lane-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lane-cell strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

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

.metric {
  padding: 16px 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(440px, 1.08fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

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

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lead-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.lead-card {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.lead-card.active {
  border-color: rgba(236, 23, 105, 0.32);
  background: #fff;
  box-shadow: 0 12px 28px rgba(236, 23, 105, 0.08);
}

.lead-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.22;
}

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

.lead-card-row,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: #075cad;
  font-size: 11px;
  font-weight: 750;
}

.status-pill.hot {
  background: rgba(236, 23, 105, 0.11);
  color: var(--brand-dark);
}

.status-pill.green {
  background: rgba(40, 167, 69, 0.12);
  color: #207a36;
}

.detail-body {
  padding: 18px;
}

.property-hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 17, 19, 0.95), rgba(50, 51, 56, 0.94)),
    #111113;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.property-hero h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(30px, 2.35vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.property-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

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

.hero-stat {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.18;
}

.hero-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

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

.info-cell {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--soft-line);
}

.info-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.info-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
  line-height: 1.32;
}

.learning-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.learning-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.06);
  color: #48484d;
  font-size: 12px;
  font-weight: 650;
}

.timeline {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.event-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  font-size: 14px;
}

.event-content {
  padding: 12px 13px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.event-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.event-content p {
  margin: 0;
  color: #4f4f54;
  font-size: 12px;
  line-height: 1.45;
}

.coach-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.coach-tabs button {
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.coach-tabs button.active {
  background: #111113;
  color: #fff;
}

.coach-body {
  padding: 16px 18px 18px;
}

.coach-output {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  color: #333338;
  font-size: 13px;
  white-space: pre-wrap;
}

.coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 16px;
}

.dropzone {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed rgba(23, 23, 25, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.dropzone svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
}

.dropzone input {
  display: none;
}

.dropzone label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  margin-top: 14px;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  cursor: pointer;
}

.mapping-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.detected-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.detected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.detected-row code {
  color: #353539;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detected-pill {
  min-width: 110px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(236, 23, 105, 0.1);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.detected-pill.ignore {
  background: rgba(17, 17, 19, 0.06);
  color: var(--muted);
}

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

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.mapping-row code {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 19, 0.06);
  color: #333338;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-weight: 750;
}

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

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.settings-hero h2 {
  max-width: 780px;
  margin: 13px 0 10px;
  font-size: clamp(28px, 3.1vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.settings-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}

.settings-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 17, 19, 0.96), rgba(43, 44, 48, 0.94)),
    #111113;
  color: #fff;
}

.settings-hero-card span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.settings-hero-card strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.22;
}

.settings-hero-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.connection-card {
  padding: 18px;
  min-height: 178px;
}

.connection-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.connection-card .status-row > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.connection-card p {
  margin: 16px 0 18px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.connector-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4c4c8;
}

.connector-dot.ready {
  background: var(--green);
}

.connector-dot.mock {
  background: var(--amber);
}

.guide-shell {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.guide-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: end;
  padding: 10px 8px 20px;
}

.guide-header .eyebrow {
  margin-bottom: 10px;
}

.guide-header h2 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

.guide-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}

.guide-section {
  padding: 20px 8px;
  border-top: 1px solid var(--soft-line);
}

.section-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.section-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.section-heading p {
  max-width: 860px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

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

.workflow-step {
  min-width: 0;
  min-height: 188px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.step-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(236, 23, 105, 0.1);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
}

.workflow-step h4,
.tool-card h4,
.extension-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.workflow-step p,
.tool-card p,
.extension-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

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

.tool-card,
.extension-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.tool-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 750;
}

.data-flow {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 28px minmax(160px, 1fr) 28px minmax(160px, 1fr) 28px minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
}

.flow-node {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border-radius: 18px;
  background: #111113;
  color: #fff;
}

.flow-node strong {
  font-size: 14px;
}

.flow-node span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.flow-arrow {
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

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

.route-grid div,
.checklist div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.route-grid strong {
  display: block;
  font-size: 13px;
}

.route-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.final-guide {
  padding-bottom: 8px;
}

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

.checklist div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.checklist svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  margin-top: 1px;
}

.checklist span {
  color: #3f3f44;
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .lane-panel {
    grid-template-columns: 1fr;
  }

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

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

  .import-layout,
  .settings-grid,
  .settings-hero,
  .guide-header {
    grid-template-columns: 1fr;
  }

  .workflow-list,
  .tool-matrix,
  .extension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .route-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .workspace-grid {
    grid-template-columns: minmax(290px, 0.88fr) minmax(420px, 1.12fr);
  }

  .workspace-grid > .panel:nth-child(3) {
    grid-column: 1 / -1;
  }

  .coach-body {
    max-width: 760px;
  }
}

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

  .login-visual {
    min-height: 420px;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .sidebar-status {
    position: static;
    margin-top: 18px;
  }

  .metrics,
  .lane-grid,
  .hero-stats,
  .info-grid,
  .workflow-list,
  .tool-matrix,
  .extension-grid {
    grid-template-columns: 1fr;
  }

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