/* [next]/internal/font/google/inter_c15e96cb.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5476f68d60460930-s.2uwcyprjm3xu3.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_c15e96cb-module__0bjUvq__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

.inter_c15e96cb-module__0bjUvq__variable {
  --font-inter: "Inter", "Inter Fallback";
}

/* [next]/internal/font/google/source_serif_4_9a5cef3f.module.css [app-client] (css) */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/20aee433927f7d4b-s.22-vwy_zcz7be.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/256e1f7f180674ba-s.3_q_pmj-3v7pv.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/be3bf58b83159894-s.0kupvvif_223v.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/753b6407f468151f-s.11jlrhjosin9v.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/292081311a6a8abc-s.3z1vcboutudqk.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/68d403cf9f2c68c5-s.p.012bmydply3go.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/20aee433927f7d4b-s.22-vwy_zcz7be.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/256e1f7f180674ba-s.3_q_pmj-3v7pv.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/be3bf58b83159894-s.0kupvvif_223v.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/753b6407f468151f-s.11jlrhjosin9v.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/292081311a6a8abc-s.3z1vcboutudqk.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/68d403cf9f2c68c5-s.p.012bmydply3go.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/20aee433927f7d4b-s.22-vwy_zcz7be.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/256e1f7f180674ba-s.3_q_pmj-3v7pv.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/be3bf58b83159894-s.0kupvvif_223v.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/753b6407f468151f-s.11jlrhjosin9v.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/292081311a6a8abc-s.3z1vcboutudqk.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/68d403cf9f2c68c5-s.p.012bmydply3go.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local(Times New Roman);
  ascent-override: 87.87%;
  descent-override: 28.41%;
  line-gap-override: 0.0%;
  size-adjust: 117.91%;
}

.source_serif_4_9a5cef3f-module__rc7PEq__className {
  font-family: "Source Serif 4", "Source Serif 4 Fallback";
  font-style: normal;
}

.source_serif_4_9a5cef3f-module__rc7PEq__variable {
  --font-source-serif: "Source Serif 4", "Source Serif 4 Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
:root {
  --canvas: #f8f6f0;
  --surface: #fffdf9;
  --surface-soft: #f1ede4;
  --ink: #181714;
  --ink-secondary: #4f4c46;
  --ink-muted: #746f66;
  --border: #ded8ce;
  --border-strong: #c9c1b5;
  --accent: #995038;
  --accent-hover: #773c2a;
  --accent-soft: #f3dfd7;
  --success: #286a43;
  --success-soft: #dfeee4;
  --warning: #7b5914;
  --warning-soft: #f6e8bd;
  --danger: #9b3636;
  --danger-soft: #f5dddd;
  --slate: #48515f;
  --shadow-sm: 0 1px 2px #1817140f, 0 8px 24px #1817140a;
  --shadow-md: 0 18px 50px #1817141a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: var(--font-source-serif), Georgia, serif;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 10% -10%, #9950381a, transparent 30rem), var(--canvas);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.workspace-shell {
  min-height: 100vh;
  padding-left: 250px;
}

.workspace-sidebar {
  z-index: 30;
  color: #f7f7f8;
  background: #17171c;
  border-right: 1px solid #ffffff14;
  flex-direction: column;
  width: 250px;
  min-height: 100vh;
  padding: 18px 14px 14px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  overflow: hidden;
}

.workspace-brand {
  color: inherit;
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  align-items: center;
  gap: 10px;
  padding: 5px 7px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
}

.workspace-brand em {
  color: #c8a2f4;
  font-style: normal;
  font-weight: 500;
}

.workspace-brand-symbol {
  color: #fff;
  width: 32px;
  height: 32px;
  font-family: var(--font-serif);
  background: linear-gradient(145deg, #a86cda, #7941a9);
  border-radius: 10px;
  place-items: center;
  font-size: 18px;
  display: grid;
  box-shadow: 0 7px 24px #7540a54d;
}

.workspace-navigation {
  margin-top: 28px;
}

.workspace-navigation > p, .sidebar-section-heading > p {
  color: #8d8d99;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 8px 9px;
  font-size: 9px;
  font-weight: 800;
}

.workspace-nav-link {
  color: #bdbdc6;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  margin-bottom: 3px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background .14s, color .14s;
  display: flex;
}

.workspace-nav-link svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.workspace-nav-link:hover {
  color: #fff;
  background: #ffffff0f;
}

.workspace-nav-link-active {
  color: #ead8fb;
  background: #ad70de2b;
}

.sidebar-profiles {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 25px;
  display: flex;
}

.sidebar-section-heading {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.sidebar-section-heading > p {
  margin-bottom: 9px;
}

.sidebar-section-heading > a {
  color: #aaaab5;
  background: #ffffff14;
  border-radius: 999px;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-right: 7px;
  font-size: 9px;
  text-decoration: none;
  display: grid;
}

.sidebar-profile-list {
  scrollbar-width: thin;
  min-height: 0;
  overflow: auto;
}

.sidebar-profile-link {
  color: #c8c8cf;
  border-radius: 9px;
  grid-template-columns: 30px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 5px 7px;
  text-decoration: none;
  display: grid;
}

.sidebar-profile-link:hover, .sidebar-profile-link-active {
  color: #fff;
  background: #ffffff0f;
}

.profile-avatar {
  color: #fff;
  background: linear-gradient(145deg, #4c596e, #303746);
  border: 1px solid #ffffff21;
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 9px;
  font-weight: 850;
  display: grid;
  position: relative;
  overflow: hidden;
}

.profile-avatar img, .company-avatar img {
  object-fit: contain;
  background: #fff;
  width: 100%;
  height: 100%;
}

.profile-avatar-linkedin {
  background: linear-gradient(145deg, #2477a9, #145177);
}

.profile-avatar-instagram {
  background: linear-gradient(145deg, #a84d85, #67418d);
}

.sidebar-profile-copy {
  min-width: 0;
}

.sidebar-profile-copy strong, .sidebar-profile-copy small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

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

.sidebar-profile-copy small {
  color: #a0a0ab;
  margin-top: 2px;
  font-size: 8px;
}

.channel-dot {
  background: #9d5dc1;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.channel-dot-linkedin {
  background: #4ba7d9;
}

.workspace-status {
  border-top: 1px solid #ffffff12;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 9px 5px;
  display: flex;
}

.workspace-status > span {
  background: #64c18a;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #64c18a1f;
}

.workspace-status strong, .workspace-status small {
  display: block;
}

.workspace-status strong {
  font-size: 9px;
}

.workspace-status small {
  color: #898994;
  margin-top: 2px;
  font-size: 8px;
}

.workspace-content {
  min-width: 0;
}

.workspace-mobile-header {
  display: none;
}

.workspace-main {
  min-width: 0;
}

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

button, a, textarea, select, input, summary {
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #99503859;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -.025em;
  font-weight: 500;
}

.lab-header {
  z-index: 10;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #f8f6f0e0;
  border-bottom: 1px solid #c9c1b5c7;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 4vw;
  display: flex;
  position: sticky;
  top: 0;
}

.brand-mark {
  color: var(--ink);
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark span {
  color: var(--accent);
  font-weight: 400;
}

.environment-badge {
  background: var(--success-soft);
  color: #1e5836;
  letter-spacing: .02em;
  border: 1px solid #bbd7c4;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.environment-badge > span {
  background: var(--success);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #286a431f;
}

.page-shell {
  width: min(1480px, 100% - 48px);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: end;
  gap: 56px;
  padding: 8px 0 34px;
  display: grid;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.hero h1 {
  max-width: 830px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 750px;
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.safety-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #fffdf9b8;
  gap: 14px;
  padding: 20px;
  display: flex;
}

.safety-icon {
  background: var(--success-soft);
  width: 32px;
  height: 32px;
  color: var(--success);
  border-radius: 50%;
  flex: 0 0 32px;
  place-items: center;
  font-weight: 800;
  display: grid;
}

.safety-note strong {
  margin: 1px 0 5px;
  font-size: 14px;
  display: block;
}

.safety-note p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.metrics-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  display: grid;
  overflow: hidden;
}

.metric-card {
  border-right: 1px solid var(--border);
  min-width: 0;
  padding: 20px 22px;
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card > span, .metric-card small {
  color: var(--ink-muted);
  font-size: 11px;
  display: block;
}

.metric-card > span {
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 700;
}

.metric-card strong {
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: 500;
  display: block;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, .75fr);
  align-items: start;
  gap: 26px;
  display: grid;
}

.main-column, .side-column {
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  display: flex;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.simulation-panel, .run-panel {
  padding: 28px;
}

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

.panel-heading .eyebrow {
  margin-bottom: 6px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 27px;
}

.compact-heading {
  margin-bottom: 18px;
  padding: 22px 22px 0;
}

.compact-heading h2 {
  font-size: 22px;
}

.field-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  display: block;
}

select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  margin-bottom: 16px;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

select:hover, select:focus {
  border-color: var(--accent);
}

select:focus {
  box-shadow: 0 0 0 4px #99503814;
}

.profile-channel {
  color: var(--ink-secondary);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  display: block;
}

.profile-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  display: flex;
}

.profile-status, .risk-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}

.profile-status-production_restricted {
  background: var(--warning-soft);
  color: var(--warning);
}

.profile-status-discovery_only, .risk-high, .risk-critical {
  background: var(--danger-soft);
  color: #742929;
}

.risk-medium {
  background: var(--warning-soft);
  color: var(--warning);
}

.risk-low {
  background: var(--success-soft);
  color: var(--success);
}

.profile-picker-toolbar {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 12px;
  display: flex;
}

.profile-picker-toolbar .field-label {
  margin-bottom: 3px;
}

.profile-picker-toolbar p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 12px;
}

.profile-picker-actions {
  gap: 13px;
  display: flex;
}

.text-button {
  color: var(--accent-hover);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 2px;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover:not(:disabled) {
  text-decoration: underline;
}

.text-button:disabled, .button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.profile-picker, .coordination-panel {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

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

.profile-channel-group {
  margin-bottom: 16px;
}

.profile-channel-group h3 {
  color: var(--ink-muted);
  font-family: var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 850;
}

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

.profile-option-shell {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

.profile-option {
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 0;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 10px 11px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  display: flex;
}

.profile-option:hover {
  background: var(--surface-soft);
}

.profile-option:has(input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #9950381a;
}

.profile-option-selected {
  background: #fff9f5;
}

.profile-option-shell:has(.profile-option-selected) {
  border-color: #9950388c;
}

.profile-config-link {
  border-top: 1px solid var(--border);
  color: var(--accent-hover);
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  display: block;
}

.profile-config-link:hover {
  background: var(--accent-soft);
  text-decoration: underline;
}

.inline-config-link {
  border: 0;
  margin: 2px 0 12px;
  padding: 0;
  display: inline-block;
}

.profile-option input, .coordination-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: 0 0 17px;
  margin: 0;
}

.profile-option-copy, .coordination-option > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.profile-option strong, .coordination-option strong {
  font-size: 12px;
  line-height: 1.3;
}

.profile-option small, .coordination-option small {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.4;
}

.selection-policies {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  margin: 2px 0 22px;
  padding: 13px 15px;
}

.selection-policies > summary {
  color: var(--accent-hover);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

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

.selected-policy-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
}

.selected-policy-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.selected-policy-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.selected-policy-card > p {
  color: var(--ink-secondary);
  margin: 10px 0 12px;
  font-size: 11px;
  line-height: 1.55;
}

.selected-policy-card h4 {
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 7px;
  font-size: 10px;
}

.selected-policy-card ul {
  color: var(--ink-secondary);
  margin: 0;
  padding-left: 17px;
  font-size: 10px;
  line-height: 1.5;
}

.selected-policy-card li + li {
  margin-top: 5px;
}

.coordination-panel {
  border: 1px solid var(--border);
  background: #fbfaf6;
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 18px;
}

.coordination-panel > legend {
  font-family: var(--font-serif);
  padding: 0 5px;
  font-size: 20px;
  font-weight: 500;
}

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

.coordination-option {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  display: flex;
}

.coordination-option-selected {
  background: #fff7f2;
  border-color: #9950388c;
}

.coordination-option-disabled {
  cursor: not-allowed;
  opacity: .58;
}

.coordination-help, .privacy-hint {
  color: var(--ink-muted);
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.correlation-fields {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

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

.correlation-fields select {
  margin-bottom: 14px;
}

.correlation-fields textarea {
  min-height: 92px;
}

.bot-settings {
  border: 1px solid var(--border);
  background: #fbfaf6;
  border-radius: 12px;
  margin: 0 0 22px;
  overflow: hidden;
}

.bot-settings > summary {
  cursor: pointer;
  color: var(--accent-hover);
  padding: 15px 17px;
  font-size: 13px;
  font-weight: 850;
}

.settings-section {
  border-top: 1px solid var(--border);
  padding: 18px;
}

.settings-heading, .generation-result-heading, .adaptation-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.settings-heading {
  margin-bottom: 16px;
}

.settings-heading h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.learning-state {
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 850;
}

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

.text-input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  margin-bottom: 16px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

.text-input:hover, .text-input:focus {
  border-color: var(--accent);
}

.text-input:focus {
  box-shadow: 0 0 0 4px #99503814;
}

.compact-textarea {
  min-height: 88px;
  margin-bottom: 16px;
  font-size: 13px;
}

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

.provider-option {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 12px 13px;
  display: flex;
}

.provider-readonly {
  cursor: default;
}

.provider-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: 0 0 17px;
  margin: 0;
}

.provider-option > span:last-child {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.provider-option strong {
  font-size: 12px;
}

.provider-option small {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.45;
}

.provider-dot {
  background: var(--accent);
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-radius: 50%;
  flex: 0 0 10px;
}

textarea {
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 116px;
  color: var(--ink);
  background: #fff;
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}

textarea:hover, textarea:focus {
  border-color: var(--accent);
}

textarea:focus {
  box-shadow: 0 0 0 4px #99503814;
}

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

.form-footer p {
  max-width: 560px;
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.5;
}

.generation-actions {
  flex-shrink: 0;
  gap: 9px;
  display: flex;
}

.button {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s;
  display: inline-flex;
}

.button:hover {
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-primary:disabled:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.error-message {
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #742929;
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 13px;
}

.run-state, .progress-label, .status-pill {
  white-space: nowrap;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.run-state {
  padding: 7px 10px;
}

.run-state-awaiting_approval {
  background: var(--warning-soft);
  color: var(--warning);
}

.run-state-completed {
  background: var(--success-soft);
  color: var(--success);
}

.run-state-cancelled {
  background: var(--surface-soft);
  color: var(--ink-secondary);
}

.run-state-blocked {
  background: var(--danger-soft);
  color: #742929;
}

.progress-label {
  background: var(--surface-soft);
  color: var(--ink-secondary);
  padding: 6px 9px;
}

.progress-track {
  background: var(--surface-soft);
  border-radius: 999px;
  width: 100%;
  height: 5px;
  margin: -8px 0 28px;
  overflow: hidden;
}

.progress-track span {
  border-radius: inherit;
  background: var(--accent);
  height: 100%;
  transition: width .3s;
  display: block;
}

.distribution-map {
  border: 1px solid var(--border);
  background: #fbfaf6;
  border-radius: 12px;
  margin: -8px 0 26px;
  padding: 18px;
}

.distribution-map-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  display: flex;
}

.distribution-map-heading h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.distribution-map-heading > span {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}

.source-reference {
  border-left: 3px solid var(--accent);
  background: #fff;
  margin-bottom: 13px;
  padding: 11px 12px;
}

.source-reference strong {
  margin-bottom: 4px;
  font-size: 11px;
  display: block;
}

.source-reference p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.5;
}

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

.assignment-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding: 13px;
  display: grid;
}

.assignment-blocked {
  background: var(--surface-soft);
}

.assignment-role {
  color: var(--ink-muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 850;
  display: block;
}

.assignment-card h4 {
  margin: 0;
  font-size: 12px;
}

.assignment-placement, .assignment-card > p {
  grid-column: 1 / -1;
}

.assignment-placement {
  color: var(--accent-hover);
  font-size: 11px;
}

.assignment-card > p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.5;
}

.status-ready {
  background: var(--success-soft);
  color: var(--success);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  display: grid;
  position: relative;
}

.timeline-item:not(:last-child):before {
  z-index: 0;
  background: var(--border);
  content: "";
  width: 1px;
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 19px;
}

.agent-avatar {
  z-index: 1;
  color: #25231f;
  letter-spacing: .04em;
  border: 1px solid #1817141f;
  border-radius: 12px;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 10px;
  font-weight: 850;
  display: grid;
  position: relative;
}

.agent-coral {
  background: #f1d3c8;
}

.agent-amber {
  background: #f2dfb1;
}

.agent-blue {
  background: #d6e4ee;
}

.agent-violet {
  background: #ded7ec;
}

.agent-pink {
  background: #eed5df;
}

.agent-green {
  background: #d5e6d8;
}

.agent-slate {
  background: #d9dde3;
}

.agent-teal {
  background: #cee5e2;
}

.step-body {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  min-width: 0;
  padding: 15px 16px 14px;
}

.timeline-awaiting_approval .step-body {
  background: #fffbef;
  border-color: #d9bf72;
  box-shadow: 0 0 0 3px #7b59140f;
}

.timeline-blocked .step-body, .timeline-queued .step-body {
  background: var(--surface-soft);
  opacity: .76;
}

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

.step-number {
  color: var(--ink-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 750;
  display: block;
}

.step-heading h3 {
  font-family: var(--font-sans);
  letter-spacing: -.01em;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 750;
}

.status-pill {
  padding: 5px 8px;
}

.status-completed {
  background: var(--success-soft);
  color: var(--success);
}

.status-awaiting_approval {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-blocked, .status-queued {
  color: #565149;
  background: #e5e1da;
}

.step-body > p {
  color: var(--ink-secondary);
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.step-output {
  border-left: 2px solid var(--border-strong);
  background: var(--canvas);
  color: var(--ink-secondary);
  margin-top: 11px;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.5;
}

.agent-name {
  color: var(--ink-muted);
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}

.approval-gate {
  background: linear-gradient(135deg, #fff9e8, #fffdf8);
  border: 1px solid #d9bf72;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 6px;
  padding: 22px;
  display: flex;
}

.policy-block {
  background: linear-gradient(135deg, #fff1f1, snow);
  border: 1px solid #d8a5a5;
  border-radius: 12px;
  gap: 14px;
  margin: -8px 0 24px;
  padding: 18px;
  display: flex;
}

.policy-block > span {
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 900;
  display: grid;
}

.policy-block h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.policy-block p:not(.eyebrow) {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.generation-result {
  background: linear-gradient(145deg, #f7fcf8, #fffdf9 55%);
  border: 1px solid #286a4359;
  border-radius: 14px;
  margin: -8px 0 28px;
  padding: 20px;
}

.generation-result-heading {
  margin-bottom: 17px;
}

.generation-result-heading h3 {
  margin-bottom: 0;
  font-size: 27px;
}

.provider-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.provider-badges span {
  background: var(--success-soft);
  color: var(--success);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}

.generation-warnings {
  background: var(--warning-soft);
  color: #5f450f;
  border: 1px solid #ddc981;
  border-radius: 9px;
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
}

.generation-warnings p {
  margin-bottom: 0;
}

.generation-warnings p + p {
  margin-top: 7px;
}

.generation-overview {
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  gap: 18px;
  display: grid;
}

.generation-copy {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 16px;
}

.result-label {
  color: var(--accent-hover);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 850;
  display: block;
}

.generation-copy p {
  color: var(--ink-secondary);
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.generation-copy p:last-child {
  margin-bottom: 0;
}

.preserve-lines {
  white-space: pre-wrap;
}

.generated-image-shell {
  min-width: 0;
}

.generated-image-shell > img, .image-placeholder {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  width: 100%;
}

.generated-image-shell > img {
  object-fit: cover;
  height: auto;
  display: block;
}

.image-placeholder {
  text-align: center;
  align-content: center;
  place-items: center;
  padding: 24px;
  display: grid;
}

.image-placeholder strong {
  font-family: var(--font-serif);
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 500;
}

.image-placeholder p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.5;
}

.image-prompt, .research-result {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  margin-top: 10px;
  padding: 10px 12px;
}

.image-prompt summary, .research-result summary {
  cursor: pointer;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 800;
}

.image-prompt p, .research-result p {
  color: var(--ink-secondary);
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.research-result {
  margin-top: 18px;
}

.research-result ul, .adaptation-card ul {
  margin: 10px 0 0;
  padding-left: 17px;
  font-size: 10px;
  line-height: 1.5;
}

.research-result a {
  color: var(--accent-hover);
}

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

.adaptation-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 15px;
}

.adaptation-heading {
  margin-bottom: 12px;
}

.adaptation-heading span {
  color: var(--accent-hover);
  text-transform: uppercase;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 800;
  display: block;
}

.adaptation-heading h4 {
  margin: 0;
  font-size: 13px;
}

.adaptation-heading > strong {
  text-align: right;
  max-width: 48%;
  font-size: 11px;
  line-height: 1.4;
}

.adaptation-card > p {
  color: var(--ink-secondary);
  margin-bottom: 11px;
  font-size: 11px;
  line-height: 1.6;
}

.adaptation-card > small {
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.45;
}

.adaptation-card ul {
  color: #5f450f;
}

.approval-gate h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.approval-gate p:not(.eyebrow) {
  max-width: 560px;
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.approval-actions {
  flex-shrink: 0;
  gap: 9px;
  display: flex;
}

.empty-run {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  align-content: center;
  place-items: center;
  min-height: 320px;
  padding: 40px;
  display: grid;
}

.empty-orbit {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 50%;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  display: grid;
  box-shadow: 0 0 0 10px #9950380d, 0 0 0 20px #99503806;
}

.empty-orbit span {
  font-family: var(--font-serif);
  font-size: 30px;
}

.empty-run h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.empty-run p {
  max-width: 470px;
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.agent-list, .integration-list {
  margin: 0;
  padding: 0 22px 22px;
  list-style: none;
}

.agent-list li {
  border-top: 1px solid var(--border);
}

.agent-list li:first-child {
  border-top: 0;
}

.agent-list .agent-avatar {
  border-radius: 10px;
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.agent-list-link {
  color: inherit;
  border-radius: 8px;
  gap: 12px;
  padding: 13px 4px;
  text-decoration: none;
  transition: background .15s;
  display: flex;
}

.agent-list-link:hover {
  background: var(--surface-soft);
}

.agent-list-link > div {
  min-width: 0;
}

.agent-list strong {
  margin-bottom: 3px;
  font-size: 12px;
  display: block;
}

.agent-list p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.45;
}

.agent-list small {
  color: var(--accent-hover);
  margin-top: 6px;
  font-size: 9px;
  font-weight: 750;
  display: block;
}

.integration-list li {
  border-top: 1px solid var(--border);
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  display: grid;
}

.integration-list li:first-child {
  border-top: 0;
}

.integration-dot {
  background: var(--border-strong);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.integration-list strong, .integration-list small {
  display: block;
}

.integration-list strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.integration-list small, .integration-list > li > span:last-child {
  color: var(--ink-muted);
  font-size: 9px;
}

.integration-list > li > span:last-child {
  background: var(--surface-soft);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 4px 6px;
  font-weight: 750;
}

.audit-panel {
  padding: 18px 20px;
}

.audit-panel summary {
  cursor: pointer;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 750;
}

.audit-panel ol {
  color: var(--ink-muted);
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 10px;
  line-height: 1.6;
}

.dispatch-bar {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  display: grid;
}

.operations-center {
  margin-bottom: 28px;
  padding: 24px;
}

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

.health-grid article {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 3px 9px;
  padding: 13px;
  display: grid;
}

.health-grid div, .health-grid strong, .health-grid small, .health-grid b {
  display: block;
}

.health-grid strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.health-grid small {
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.45;
}

.health-grid b {
  color: var(--ink-secondary);
  grid-column: 2;
  font-size: 9px;
}

.health-dot {
  background: var(--border-strong);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.health-ok {
  background: #2f7b4a;
  box-shadow: 0 0 0 4px #2f7b4a1a;
}

.health-warn {
  background: #b3831e;
  box-shadow: 0 0 0 4px #b3831e1a;
}

.health-idle {
  background: #777168;
}

.backup-strip {
  background: #f1f8f3;
  border: 1px solid #c8d9cc;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
}

.backup-strip strong {
  margin-bottom: 3px;
  font-size: 12px;
  display: block;
}

.backup-strip p {
  color: #3f5c48;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 9px;
}

.inline-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  display: flex;
}

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

.schedule-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  padding: 16px;
}

.schedule-heading, .schedule-footer {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.schedule-heading > div > span, .schedule-fields > label > span, .notification-options > span {
  color: var(--ink-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 800;
  display: block;
}

.schedule-heading h3 {
  margin: 0;
  font-size: 15px;
}

.schedule-profiles {
  color: var(--ink-secondary);
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.4;
  display: block;
}

.operations-heading-actions {
  justify-content: flex-end;
}

.switch-label {
  color: var(--ink-secondary);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.schedule-fields {
  grid-template-columns: .8fr .7fr 1.5fr;
  gap: 9px;
  margin: 15px 0;
  display: grid;
}

.schedule-fields select, .schedule-fields input[type="time"] {
  width: 100%;
}

.notification-options > div {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  display: flex;
}

.notification-options label {
  color: var(--ink-secondary);
  align-items: center;
  gap: 4px;
  font-size: 9px;
  display: flex;
}

.schedule-footer {
  border-top: 1px solid var(--border);
  padding-top: 11px;
}

.schedule-footer small {
  color: var(--ink-muted);
  font-size: 8px;
}

.connector-note {
  color: var(--ink-muted);
  margin: 14px 0 0;
  font-size: 9px;
  line-height: 1.5;
}

.automation-results {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 9px;
  margin-top: 15px;
  padding: 13px;
}

.automation-results summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.automation-results article {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.automation-results strong, .automation-results small {
  display: block;
}

.automation-results small {
  color: var(--ink-muted);
  margin-top: 3px;
  font-size: 8px;
}

.automation-results pre {
  max-height: 260px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  margin: 10px 0 0;
  font-family: inherit;
  font-size: 9px;
  line-height: 1.55;
  overflow: auto;
}

.operation-message {
  background: var(--success-soft);
  color: var(--success);
  border-radius: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 750;
}

.dispatch-bar select {
  width: 100%;
}

.dispatch-flow {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  display: flex;
}

.dispatch-flow span {
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  background: #fff;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 750;
}

.editorial-memory {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  margin: 24px 0;
}

.editorial-memory > summary {
  cursor: pointer;
  color: var(--ink-secondary);
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 800;
}

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

.memory-overview article {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  min-width: 0;
  padding: 14px;
}

.memory-overview span, .memory-overview strong, .memory-overview p {
  display: block;
}

.memory-overview span {
  color: var(--ink-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
}

.memory-overview strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
  font-size: 13px;
  overflow: hidden;
}

.memory-overview p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.memory-form, .memory-history {
  border-top: 1px solid var(--border);
  padding: 18px;
}

.memory-primary-fields {
  grid-template-columns: 1.5fr .7fr 1.2fr .9fr;
}

.metrics-fields {
  border: 0;
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  display: grid;
}

.metrics-fields legend {
  color: var(--ink-secondary);
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
}

.metrics-fields label span {
  color: var(--ink-muted);
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 750;
  display: block;
}

.metrics-fields input {
  width: 100%;
}

.memory-history h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.memory-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.memory-history li {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.memory-history li:first-child {
  border-top: 0;
}

.memory-history span, .memory-history strong, .memory-history small {
  display: block;
}

.memory-history span, .memory-history small {
  color: var(--ink-muted);
  font-size: 9px;
}

.memory-history strong {
  margin: 3px 0;
  font-size: 11px;
}

.local-ready {
  color: #25653c;
  background: #e8f6ed;
}

.claude-result-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr);
  gap: 14px;
  display: grid;
}

.claude-output, .next-action-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  min-width: 0;
  padding: 16px;
}

.claude-output pre {
  max-height: 720px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.65;
  overflow: auto;
}

.next-action-card > strong {
  margin: 10px 0 6px;
  font-size: 16px;
  display: block;
}

.next-action-card > p {
  color: var(--ink-secondary);
  font-size: 10px;
  line-height: 1.55;
}

.next-action-card .button {
  width: 100%;
  margin-top: 12px;
}

.image-review-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  margin-top: 12px;
  padding: 10px;
}

.image-review-card > img {
  border: 1px solid var(--border);
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

.image-review-card > small {
  color: var(--ink-muted);
  margin: 8px 0 12px;
  font-size: 9px;
  line-height: 1.45;
  display: block;
}

.image-review-card textarea {
  resize: vertical;
  width: 100%;
}

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

.image-copy-fallback {
  text-align: center;
  width: 100%;
  margin-top: 9px;
}

.approved-action {
  background: #eff9f2;
  border: 1px solid #b8d8c2;
  border-radius: 10px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  display: flex;
}

.approved-action > span {
  color: #fff;
  background: #25653c;
  border-radius: 50%;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: grid;
}

.approved-action strong {
  font-size: 12px;
}

.approved-action p {
  color: #31533c;
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.error-shell {
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.error-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  width: min(560px, 100%);
  box-shadow: var(--shadow-md);
  padding: 34px;
}

.error-card h1 {
  font-size: 34px;
}

.error-card p:not(.eyebrow) {
  color: var(--ink-secondary);
  line-height: 1.6;
}

.detail-page {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.detail-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.detail-back {
  color: var(--accent-hover);
  margin-bottom: 34px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  display: inline-block;
}

.detail-back:hover {
  text-decoration: underline;
}

.detail-kicker {
  color: var(--accent-hover);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 850;
  display: block;
}

.detail-header h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .98;
}

.detail-header > p, .detail-title-row p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

.detail-title-row {
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

.detail-title-row > .agent-avatar {
  border-radius: 14px;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  font-size: 14px;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.profile-detail-grid {
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.35fr);
}

.detail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.detail-card h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

.detail-card > p {
  color: var(--ink-secondary);
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.65;
}

.detail-editor-card select, .detail-editor-card textarea {
  width: 100%;
  margin-bottom: 18px;
}

.detail-editor-card textarea {
  resize: vertical;
  min-height: 160px;
}

.detail-save-row {
  align-items: center;
  gap: 14px;
  display: flex;
}

.detail-save-row > span {
  color: var(--success);
  font-size: 10px;
  font-weight: 750;
}

.detail-safety-card ul {
  color: var(--ink-secondary);
  gap: 11px;
  margin: 20px 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  display: grid;
}

.detail-note {
  background: var(--surface-soft);
  border-radius: 9px;
  padding: 13px;
  margin: 0 !important;
}

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

.markdown-card pre {
  border: 1px solid var(--border);
  color: #34312c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f4ed;
  border-radius: 9px;
  max-height: 680px;
  margin: 0;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 11px;
  line-height: 1.65;
  overflow: auto;
}

.profile-console-page {
  width: min(1320px, 100% - 48px);
}

.profile-console-header {
  max-width: 920px;
}

.profile-operation-message {
  color: var(--success);
  background: #f1f8f3;
  border: 1px solid #c8d9cc;
  border-radius: 9px;
  margin: -22px 0 18px;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 750;
}

.profile-operation-error {
  color: var(--danger);
  background: #fff2f0;
  border-color: #e0b6b0;
}

.profile-page-actions {
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  display: flex;
}

.profile-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}

.profile-summary-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  padding: 18px;
}

.profile-summary-card > span {
  color: var(--accent-hover);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 850;
  display: block;
}

.profile-summary-card p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.profile-config-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.competitor-settings-card {
  margin-top: 18px;
}

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

.competitor-settings-heading {
  margin-bottom: 22px;
}

.competitor-settings-heading h2, .competitor-editor-heading h3 {
  margin: 0;
}

.competitor-settings-heading p {
  max-width: 760px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.competitor-settings-card > textarea, .competitor-editor textarea, .competitor-editor input {
  width: 100%;
}

.competitor-settings-card > textarea {
  margin-bottom: 18px;
}

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

.competitor-editor {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 11px;
  min-width: 0;
  padding: 16px;
}

.competitor-editor-heading {
  align-items: center;
  margin-bottom: 14px;
}

.competitor-editor-heading h3 {
  font-size: 15px;
}

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

.competitor-fields-grid label > span {
  color: var(--ink-muted);
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  display: block;
}

.competitor-editor textarea {
  resize: vertical;
}

.competitor-save-row {
  margin-top: 18px;
}

.competitor-settings-card > .detail-note {
  margin-top: 14px !important;
}

.profile-options-card > p {
  margin-bottom: 18px;
}

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

.planning-option {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #f7f4ed;
  border-radius: 9px;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  display: flex;
}

.planning-option-active {
  background: #f0f8f2;
  border-color: #9bc2a8;
}

.planning-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--success);
  flex: 0 0 17px;
  margin: 1px 0 0;
}

.planning-option > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.planning-option strong {
  font-size: 12px;
}

.planning-option small {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.45;
}

.empty-inline {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 14px;
  margin: 0 !important;
}

.inline-error {
  color: var(--danger) !important;
  margin: 14px 0 0 !important;
}

.markdown-source-card {
  margin-top: 18px;
}

.markdown-source-card > summary {
  cursor: pointer;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
}

.markdown-source-card > p {
  margin: 14px 0;
}

.markdown-source-card pre {
  border: 1px solid var(--border);
  color: #34312c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f4ed;
  border-radius: 9px;
  max-height: 620px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 11px;
  line-height: 1.65;
  overflow: auto;
}

.directory-page, .content-library-page {
  width: min(1480px, 100% - 48px);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.directory-header, .content-library-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
  display: flex;
}

.directory-header h1, .content-library-header h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.03;
}

.directory-header > div:first-child > p:last-child, .content-library-header > div:first-child > p:last-child {
  max-width: 700px;
  color: var(--ink-secondary);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.directory-summary {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.directory-summary span {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  white-space: nowrap;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 9px;
}

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

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

.company-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 15px;
  flex-direction: column;
  transition: transform .16s, box-shadow .16s;
  display: flex;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.company-card-header {
  align-items: center;
  gap: 13px;
  padding: 18px 18px 14px;
  display: flex;
}

.company-avatar {
  color: #fff;
  letter-spacing: .03em;
  background: linear-gradient(145deg, #24242b, #484854);
  border-radius: 13px;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 12px;
  font-weight: 850;
  display: grid;
  overflow: hidden;
}

.brand-logo-settings {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 0;
  display: grid;
}

.brand-logo-preview {
  border: 1px solid var(--border);
  width: 88px;
  height: 88px;
  color: var(--ink-muted);
  background: #fff;
  border-radius: 8px;
  place-items: center;
  font-size: 16px;
  font-weight: 850;
  display: grid;
  overflow: hidden;
}

.brand-logo-preview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.brand-logo-settings strong, .brand-logo-settings small {
  display: block;
}

.brand-logo-settings strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.brand-logo-settings small {
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-size: 9px;
  line-height: 1.5;
}

.brand-logo-settings .button {
  width: auto;
  display: inline-flex;
}

.brand-manual-settings {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 188px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  display: grid;
}

.brand-manual-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  min-height: 112px;
  color: var(--ink-secondary);
  text-align: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
  padding: 7px;
  font-size: 14px;
  font-weight: 850;
  display: grid;
  overflow: hidden;
}

.brand-manual-preview > span {
  grid-column: 1 / -1;
}

.brand-manual-preview img {
  border: 1px solid var(--border);
  object-fit: cover;
  background: #fff;
  width: 100%;
  height: 96px;
}

.brand-manual-settings strong, .brand-manual-settings small, .brand-manual-file {
  display: block;
}

.brand-manual-settings strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.brand-manual-settings small, .brand-manual-file {
  color: var(--ink-muted);
  margin-bottom: 9px;
  font-size: 9px;
  line-height: 1.5;
}

.brand-manual-file {
  color: var(--ink-secondary);
  font-weight: 750;
}

.brand-manual-settings .button {
  width: auto;
  display: inline-flex;
}

.company-card-header h2 {
  font-family: var(--font-sans);
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 800;
}

.company-card-header p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 9px;
}

.company-profile-list {
  gap: 1px;
  padding: 0 11px 12px;
  display: grid;
}

.company-profile-row {
  background: var(--surface-soft);
  border-radius: 9px;
  grid-template-columns: 30px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  display: grid;
}

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

.company-profile-row strong {
  font-size: 10px;
}

.company-profile-row small {
  color: #5f5b54;
  margin-top: 2px;
  font-size: 8px;
}

.profile-operational-dot {
  background: var(--warning);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.profile-operational-production_restricted {
  background: var(--success);
}

.company-card-actions {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.company-channel-actions {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: grid;
}

.company-channel-actions:last-child {
  border-bottom: 0;
}

.company-channel-actions > span {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
}

.company-channel-actions a {
  color: var(--accent-hover);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.company-channel-actions a:hover {
  text-decoration: underline;
}

.content-library-header .button {
  flex: none;
  text-decoration: none;
}

.content-toolbar {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 13px;
  grid-template-columns: minmax(180px, .7fr) minmax(150px, .5fr) minmax(400px, 1.8fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px;
  display: grid;
}

.content-toolbar > label {
  color: var(--ink-muted);
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}

.content-toolbar select {
  border: 1px solid var(--border);
  min-height: 36px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  font-size: 10px;
}

.content-status-filters {
  gap: 5px;
  display: flex;
  overflow-x: auto;
}

.content-filter-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  min-height: 36px;
  color: var(--ink-secondary);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 11px;
  font-size: 9px;
  font-weight: 750;
}

.content-filter-chip-active {
  color: #67368c;
  background: #eee2f8;
  border-color: #9e69c6;
}

.content-result-count {
  color: var(--ink-muted);
  white-space: nowrap;
  align-self: center;
  font-size: 9px;
  font-weight: 750;
}

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

.content-thumbnail-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
}

.content-thumbnail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-thumbnail {
  aspect-ratio: 4 / 3;
  background: #e6e1d9;
  position: relative;
  overflow: hidden;
}

.content-thumbnail > img {
  object-fit: cover;
}

.content-library-media, .weekly-gallery-media {
  position: absolute;
  inset: 0;
}

.content-library-media img, .weekly-gallery-media img, .content-library-media video, .weekly-gallery-media video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.content-placeholder {
  color: #fff;
  background: radial-gradient(circle at 85% 15%, #ffffff59, #0000 30%), linear-gradient(145deg, #b96291, #634278 70%);
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
}

.content-placeholder-linkedin {
  background: radial-gradient(circle at 85% 15%, #ffffff47, #0000 30%), linear-gradient(145deg, #377ca7, #1d465f 70%);
}

.content-placeholder > span {
  font-family: var(--font-serif);
  letter-spacing: -.04em;
  font-size: 36px;
}

.content-placeholder > small {
  letter-spacing: .05em;
  text-transform: uppercase;
  max-width: 90%;
  font-size: 9px;
  font-weight: 800;
}

.content-status-badge {
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #19191dd1;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 800;
  position: absolute;
  top: 10px;
  right: 10px;
}

.content-status-approved, .content-status-scheduled, .content-status-published {
  background: #1c643ee0;
}

.content-card-body {
  padding: 13px;
}

.content-profile-meta {
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: grid;
}

.content-profile-meta strong, .content-profile-meta small {
  display: block;
}

.content-profile-meta strong {
  font-size: 10px;
}

.content-profile-meta small {
  color: var(--ink-muted);
  margin-top: 2px;
  font-size: 8px;
}

.content-card-body h2 {
  min-height: 39px;
  font-family: var(--font-sans);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.content-card-body > p {
  min-height: 45px;
  color: var(--ink-secondary);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
  font-size: 9px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
}

.content-hashtags {
  color: #416993;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 12px;
  font-size: 8px;
  display: block;
  overflow: hidden;
}

.content-card-body > a {
  border-top: 1px solid var(--border);
  color: var(--accent-hover);
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
}

.library-loading, .library-empty {
  border: 1px dashed var(--border-strong);
  min-height: 260px;
  color: var(--ink-muted);
  text-align: center;
  border-radius: 14px;
  place-items: center;
  padding: 40px;
  font-size: 11px;
  display: grid;
}

.library-empty span {
  color: #9b75b7;
  margin-bottom: 8px;
  font-size: 38px;
}

.library-empty h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.library-empty p {
  margin: 0;
  font-size: 10px;
}

.board-page {
  width: min(1800px, 100% - 40px);
  margin: 0 auto;
  padding: 34px 0 80px;
}

.board-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 20px;
  display: flex;
}

.board-header h1 {
  margin-bottom: 7px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.board-header p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 13px;
}

.board-controls {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  grid-template-columns: minmax(160px, .65fr) minmax(220px, 1fr);
  gap: 7px 10px;
  min-width: min(100%, 460px);
  padding: 16px;
  display: grid;
}

.board-controls label {
  color: var(--ink-muted);
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 800;
}

.board-controls input {
  width: 100%;
}

.board-connection-bar {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, .8fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  display: grid;
}

.board-connection-bar strong, .board-connection-bar small {
  display: block;
}

.board-connection-bar strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.board-connection-bar small {
  color: var(--ink-muted);
  font-size: 10px;
}

.connection-ready, .connection-missing {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 850;
}

.connection-ready {
  background: var(--success-soft);
  color: var(--success);
}

.connection-missing {
  background: var(--warning-soft);
  color: var(--warning);
}

.board-message, .board-error {
  border-radius: 9px;
  margin: 10px 0;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
}

.board-message {
  background: var(--success-soft);
  color: var(--success);
}

.board-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.board-view-toolbar {
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
  display: grid;
}

.board-view-switcher, .board-stage-filters {
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.board-view-switcher {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 3px;
}

.board-view-switcher button, .board-stage-filters button {
  min-height: 32px;
  color: var(--ink-muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 800;
}

.board-view-switcher button[aria-pressed="true"] {
  color: #fff;
  background: #26262d;
  box-shadow: 0 2px 8px #1414182e;
}

.board-stage-filters button {
  border: 1px solid var(--border);
  background: var(--surface);
}

.board-stage-filters button[aria-pressed="true"] {
  color: #67368c;
  background: #eee2f8;
  border-color: #9e69c6;
}

.board-view-toolbar > span {
  color: var(--ink-muted);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 750;
}

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

.weekly-gallery-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 13px;
  overflow: hidden;
}

.weekly-gallery-thumbnail {
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

.weekly-gallery-thumbnail > img {
  object-fit: cover;
}

.weekly-gallery-body {
  padding: 13px;
}

.weekly-gallery-body h2 {
  min-height: 40px;
  font-family: var(--font-sans);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.weekly-gallery-body > p {
  min-height: 46px;
  color: var(--ink-secondary);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 9px;
  font-size: 9px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
}

.weekly-gallery-body > small {
  color: #416993;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 17px;
  margin-bottom: 8px;
  font-size: 8px;
  display: block;
  overflow: hidden;
}

.weekly-gallery-body .text-button {
  border-top: 1px solid var(--border);
  text-align: left;
  width: 100%;
  padding-top: 10px;
}

.kanban-board {
  grid-template-columns: repeat(5, minmax(300px, 1fr));
  gap: 12px;
  padding: 2px 2px 18px;
  display: grid;
  overflow-x: auto;
}

.kanban-column {
  border: 1px solid var(--border);
  background: #ede8de;
  border-radius: 13px;
  min-width: 0;
  min-height: 520px;
  padding: 10px;
}

.kanban-column > header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 4px 12px;
  display: flex;
}

.kanban-column h2 {
  font-family: var(--font-sans);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
  font-size: 11px;
  font-weight: 850;
}

.kanban-column > header > span {
  background: var(--surface);
  width: 22px;
  height: 22px;
  color: var(--ink-secondary);
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
  font-weight: 850;
  display: grid;
}

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

.weekly-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  border-radius: 11px;
  padding: 12px;
}

.weekly-card-image {
  background: var(--surface-soft);
  border-radius: 8px;
  margin-bottom: 11px;
  position: relative;
  overflow: hidden;
}

.weekly-card-image img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.weekly-card-media {
  aspect-ratio: 1;
}

.weekly-card-media video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.weekly-card-placeholder {
  aspect-ratio: 1;
}

.weekly-card-placeholder .content-placeholder {
  position: absolute;
  inset: 0;
}

.weekly-card-image > .media-approval-label, .weekly-card-placeholder > span {
  color: #fff;
  background: #181714db;
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 800;
  position: absolute;
  bottom: 7px;
  right: 7px;
}

.media-approval-label {
  top: 7px;
  bottom: auto !important;
}

.media-carousel-controls {
  z-index: 2;
  color: #fff;
  background: #181714d1;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 3px;
  display: flex;
  position: absolute;
  bottom: 7px;
  right: 50%;
  transform: translateX(50%);
}

.media-carousel-controls button {
  color: #fff;
  cursor: pointer;
  background: #ffffff29;
  border: 0;
  border-radius: 999px;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  display: grid;
}

.media-carousel-controls button:hover {
  background: #ffffff4d;
}

.media-carousel-controls span {
  min-width: 34px;
  color: inherit;
  text-align: center;
  background: none;
  padding: 0;
  font-size: 9px;
  position: static;
}

.media-expand-button {
  z-index: 3;
  color: #fff;
  cursor: pointer;
  background: #181714d6;
  border: 1px solid #ffffff47;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
  display: grid;
  position: absolute;
  top: 7px;
  left: 7px;
}

.media-expand-button:hover {
  background: #181714f5;
}

.media-preview-backdrop {
  z-index: 100;
  background: #0e0e11eb;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.media-preview-dialog {
  color: #fff;
  background: #18181d;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  height: min(92vh, 920px);
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 80px #0000007a;
}

.media-preview-dialog header, .media-preview-dialog footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 14px;
  display: flex;
}

.media-preview-dialog header strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.media-preview-dialog button {
  color: #fff;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  display: grid;
}

.media-preview-canvas {
  background: #0e0e11;
  min-height: 0;
  position: relative;
}

.media-preview-canvas img {
  object-fit: contain;
}

.media-preview-dialog footer {
  justify-content: center;
}

.media-preview-dialog footer span {
  text-align: center;
  min-width: 64px;
  font-size: 10px;
  font-weight: 800;
}

.weekly-card-meta {
  color: var(--ink-muted);
  text-transform: uppercase;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 8px;
  font-weight: 800;
  display: flex;
}

.weekly-title-input {
  width: 100%;
  color: var(--ink);
  font-family: var(--font-serif);
  background: none;
  border: 0;
  margin-bottom: 10px;
  padding: 0;
  font-size: 19px;
  font-weight: 600;
}

.weekly-card label {
  color: var(--ink-muted);
  margin-top: 10px;
  font-size: 9px;
  font-weight: 800;
  display: block;
}

.weekly-card label textarea, .weekly-card label input, .weekly-image-details textarea, .weekly-card-actions input {
  width: 100%;
  margin-top: 5px;
  font-size: 10px;
}

.weekly-card label textarea, .weekly-image-details textarea {
  resize: vertical;
}

.caption-rewrite, .story-overlay-editor {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.caption-rewrite .button {
  width: 100%;
  margin-top: 7px;
}

.story-overlay-editor > strong {
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 10px;
  display: block;
}

.story-overlay-editor > small {
  color: var(--ink-muted);
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.5;
  display: block;
}

.weekly-image-details {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 8px;
  margin-top: 11px;
  padding: 10px;
}

.weekly-image-details summary {
  cursor: pointer;
  color: var(--accent-hover);
  font-size: 9px;
  font-weight: 800;
}

.weekly-image-details .button {
  width: 100%;
  margin-top: 7px;
}

.carousel-generation-controls {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: end;
  gap: 9px;
  margin-top: 8px;
  display: grid;
}

.carousel-generation-controls label {
  color: var(--ink-secondary);
  font-size: 8px;
  font-weight: 800;
}

.carousel-generation-controls input {
  width: 100%;
  min-height: 36px;
  margin-top: 5px;
  padding: 7px 9px;
}

.carousel-generation-controls small {
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.45;
}

.reference-image-studio {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: var(--surface);
  border-radius: 9px;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  display: grid;
}

.reference-studio-heading {
  gap: 3px;
  display: grid;
}

.reference-studio-heading strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 15px;
}

.reference-studio-heading small {
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.45;
}

.reference-image-studio select {
  min-height: 38px;
  margin: 5px 0 0;
  padding: 8px 32px 8px 10px;
  font-size: 10px;
}

.reference-upload-field input[type="file"] {
  border: 1px dashed var(--border-strong);
  background: var(--canvas);
  border-radius: 7px;
  padding: 7px;
}

.media-upload-button, .media-replace-button {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.media-upload-button input[type="file"], .media-replace-button input[type="file"] {
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.media-upload-button:focus-within, .media-replace-button:focus-within {
  outline-offset: 2px;
  outline: 3px solid #643a7f4d;
}

.media-upload-help {
  color: var(--ink-muted);
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.5;
  display: block;
}

.media-manager-list {
  gap: 7px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.media-manager-list > li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  gap: 7px;
  padding: 8px;
  display: grid;
}

.media-manager-list > li > span {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.media-manager-list strong {
  color: var(--ink);
  font-size: 9px;
}

.media-manager-list small {
  color: var(--ink-muted);
  text-align: right;
  font-size: 8px;
}

.media-manager-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  display: flex;
}

.media-manager-actions .text-button {
  min-height: 28px;
  padding: 4px 0;
  font-size: 8px;
}

.reference-preview {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.reference-preview img {
  object-fit: cover;
  width: 100%;
  height: 160px;
  display: block;
}

.reference-preview span {
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
  padding: 7px 9px;
  font-size: 8px;
  display: block;
}

.weekly-card-actions {
  gap: 7px;
  margin-top: 12px;
  display: grid;
}

.weekly-card-actions .button, .weekly-card-actions .text-button {
  width: 100%;
}

.danger-text {
  color: var(--danger);
}

.postiz-reference {
  color: var(--ink-muted);
  overflow-wrap: anywhere;
  margin-top: 10px;
  font-size: 8px;
  display: block;
}

.kanban-empty {
  color: var(--ink-secondary);
  text-align: center;
  margin: 0;
  padding: 22px 8px;
  font-size: 10px;
}

@media (max-width: 900px) {
  .workspace-shell {
    padding-left: 0;
  }

  .workspace-sidebar {
    display: none;
  }

  .workspace-mobile-header {
    z-index: 25;
    border-bottom: 1px solid var(--border);
    color: #fff;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: #17171cf5;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 9px 20px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-companies-link {
    color: #e4d8ee;
    border: 1px solid #ffffff24;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
  }
}

@media (max-width: 1080px) {
  .hero, .workspace-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
  }

  .safety-note {
    max-width: 520px;
  }

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

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

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

  .audit-panel {
    grid-column: 1 / -1;
  }

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

  .detail-grid, .profile-detail-grid, .profile-config-layout {
    grid-template-columns: 1fr;
  }

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

  .competitor-editor-list {
    grid-template-columns: 1fr;
  }

  .board-header {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .content-toolbar, .board-view-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-status-filters, .board-stage-filters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .lab-header {
    padding: 0 20px;
  }

  .page-shell {
    width: min(100% - 32px, 1440px);
    padding-top: 42px;
  }

  .directory-page, .content-library-page {
    width: min(100% - 32px, 1480px);
    padding-top: 30px;
  }

  .directory-header, .content-library-header {
    flex-direction: column;
    align-items: stretch;
  }

  .directory-summary {
    justify-content: flex-start;
  }

  .company-directory, .content-gallery, .weekly-gallery, .content-toolbar, .board-view-toolbar {
    grid-template-columns: 1fr;
  }

  .content-status-filters, .board-stage-filters {
    grid-column: auto;
  }

  .content-library-header .button {
    align-self: flex-start;
  }

  .detail-page {
    width: min(100% - 32px, 1180px);
    padding-top: 32px;
  }

  .detail-back {
    margin-bottom: 26px;
  }

  .detail-card {
    padding: 20px;
  }

  .profile-summary-grid, .board-controls, .board-connection-bar {
    grid-template-columns: 1fr;
  }

  .profile-page-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-page {
    width: min(100% - 24px, 1800px);
    padding-top: 28px;
  }

  .detail-save-row, .markdown-heading, .competitor-settings-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .competitor-fields-grid, .brand-logo-settings, .brand-manual-settings {
    grid-template-columns: 1fr;
  }

  .brand-manual-preview {
    width: min(100%, 260px);
  }

  .hero {
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .metrics-grid, .side-column {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric-card:nth-child(3) {
    border-bottom: 1px solid var(--border);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .simulation-panel, .run-panel {
    padding: 20px;
  }

  .panel-heading, .form-footer, .approval-gate, .profile-picker-toolbar, .selected-policy-heading, .distribution-map-heading, .settings-heading, .generation-result-heading, .adaptation-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-badges {
    justify-content: flex-start;
  }

  .profile-options-grid, .selected-policy-grid, .coordination-options, .correlation-selects, .assignment-grid, .settings-grid, .generation-overview, .adaptation-list, .memory-overview, .memory-primary-fields, .claude-result-grid, .dispatch-bar {
    grid-template-columns: 1fr;
  }

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

  .dispatch-flow, .profile-picker-actions {
    justify-content: flex-start;
  }

  .health-grid, .schedule-list, .schedule-fields {
    grid-template-columns: 1fr;
  }

  .backup-strip, .inline-actions, .schedule-heading, .schedule-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-footer .button, .generation-actions, .generation-actions .button, .approval-actions, .approval-actions .button {
    width: 100%;
  }

  .generation-actions, .approval-actions {
    flex-direction: column-reverse;
  }

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

  .provider-badges {
    justify-content: flex-start;
  }

  .adaptation-heading > strong {
    text-align: left;
    max-width: none;
  }

  .step-heading {
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }
}

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

.login-page {
  flex-direction: column;
  gap: 1rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
}

.login-form {
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
  display: flex;
}

.login-form label {
  font-weight: 600;
}

.login-form input {
  border: 1px solid var(--border, #c7c7c7);
  font: inherit;
  border-radius: .5rem;
  padding: .65rem .75rem;
}

.login-form button {
  align-self: flex-start;
  margin-top: .25rem;
}

.login-error:empty {
  display: none;
}

.login-error {
  color: var(--danger-text, #8c1d18);
  margin: 0;
}

.login-hint {
  opacity: .85;
  font-size: .9rem;
}

.learning-cycle-card {
  gap: 1.15rem;
  display: grid;
}

.learning-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.learning-stats-grid article {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: .9rem;
  gap: .3rem;
  padding: .9rem;
  display: grid;
}

.learning-stats-grid span, .learning-rule-card span {
  color: var(--ink-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
}

.learning-stats-grid strong {
  font-size: 1.5rem;
}

.learning-proposal-form {
  grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr);
  gap: .9rem;
  display: grid;
}

.learning-proposal-main, .learning-rule-card > div:first-child {
  gap: .45rem;
  display: grid;
}

.learning-rule-list {
  gap: .75rem;
  display: grid;
}

.learning-rule-list h3 {
  margin: 0;
}

.learning-rule-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: .9rem;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  display: flex;
}

.learning-rule-card p, .learning-rule-card small {
  margin: 0;
}

.learning-rule-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  display: flex;
}

.learning-rule-approved {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

@media (max-width: 760px) {
  .learning-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-proposal-form {
    grid-template-columns: 1fr;
  }

  .learning-rule-card {
    flex-direction: column;
  }

  .learning-rule-actions {
    justify-content: flex-start;
  }
}

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

.prospecting-page .content-toolbar {
  grid-template-columns: repeat(3, minmax(130px, .6fr)) minmax(180px, 1fr) auto auto;
}

.prospecting-page .content-toolbar input[type="search"] {
  border: 1px solid var(--border);
  min-height: 36px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
}

.prospecting-page .content-toolbar > label {
  min-width: 0;
}

.prospecting-page .content-toolbar select, .prospecting-page .content-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
}

.content-toolbar > label.prospecting-toggle {
  white-space: nowrap;
  align-self: center;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: flex;
}

.prospecting-note {
  color: var(--ink-secondary);
  margin: 0 0 16px;
  font-size: 12px;
}

.prospecting-report {
  border: 1px solid var(--border);
  background: var(--success-soft);
  color: var(--ink);
  border-radius: 13px;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 12px;
  display: grid;
}

.prospecting-report ul {
  max-height: 220px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
  padding-left: 18px;
  overflow-y: auto;
}

.prospecting-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}

.prospecting-stats > div {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 13px;
  gap: 2px;
  padding: 14px 16px;
  display: grid;
}

.prospecting-stats strong {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
}

.prospecting-stats span {
  color: var(--ink-muted);
  font-size: 11px;
}

.prospecting-table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 13px;
  overflow-x: auto;
}

.prospecting-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.prospecting-table th {
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
}

.prospecting-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 11px 12px;
}

.prospecting-table tr:last-child td {
  border-bottom: 0;
}

.prospecting-table td strong, .prospecting-table td small, .prospecting-email, .prospecting-phone {
  display: block;
}

.prospecting-table td small {
  color: var(--ink-muted);
  margin-top: 3px;
  font-size: 11px;
}

.prospecting-table small.prospecting-reasons {
  color: var(--ink-secondary);
  font-size: 10px;
}

.prospecting-email {
  overflow-wrap: anywhere;
}

.prospecting-email em {
  color: var(--success);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.prospecting-phone {
  color: var(--ink-muted);
  margin-top: 3px;
}

.prospecting-phone-mobile {
  color: var(--success);
  font-weight: 650;
}

.prospecting-links a {
  color: var(--accent);
  font-weight: 650;
  display: block;
}

.prospecting-table select {
  border: 1px solid var(--border);
  min-height: 32px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
}

.prospect-score {
  border-radius: 999px;
  place-items: center;
  min-width: 36px;
  height: 28px;
  font-weight: 800;
  display: inline-grid;
}

.prospect-score-high {
  background: var(--success-soft);
  color: var(--success);
}

.prospect-score-mid {
  background: var(--warning-soft);
  color: var(--warning);
}

.prospect-score-low {
  background: var(--surface-soft);
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .prospecting-page .content-library-header {
    flex-direction: column;
    align-items: stretch;
  }

  .prospecting-actions {
    justify-content: flex-start;
  }

  .prospecting-page .content-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

.campaign-page .eyebrow a {
  color: inherit;
}

.campaign-status {
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 999px;
  align-self: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 750;
}

.campaign-status-approved {
  background: var(--success-soft);
  color: var(--success);
}

.campaign-problems {
  border: 1px solid var(--border);
  background: var(--warning-soft);
  color: var(--ink);
  border-radius: 13px;
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 12px;
}

.campaign-problems ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.campaign-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 13px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  display: grid;
}

.campaign-card h2 {
  margin: 0;
  font-size: 20px;
}

.campaign-card-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

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

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

.campaign-card label {
  min-width: 0;
  color: var(--ink-muted);
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  display: grid;
}

.campaign-card label small {
  font-weight: 500;
}

.campaign-card input:not([type="checkbox"]), .campaign-card textarea, .campaign-card select {
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
}

.campaign-card .prospecting-actions select {
  width: auto;
  max-width: 260px;
}

.campaign-hint {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.campaign-hint code {
  background: var(--surface-soft);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
}

.campaign-step {
  border: 1px solid var(--border);
  background: var(--canvas);
  border-radius: 10px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.campaign-step-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.campaign-step-head label {
  align-items: center;
  gap: 6px;
  display: flex;
}

.campaign-step-head input {
  width: 70px !important;
}

.campaign-leads {
  gap: 6px;
  max-height: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow-y: auto;
}

.campaign-lead {
  border: 1px solid var(--border);
  opacity: .7;
  border-radius: 10px;
  gap: 8px;
  padding: 10px 12px;
  display: grid;
}

.campaign-lead-on {
  border-color: var(--border-strong);
  background: var(--canvas);
  opacity: 1;
}

.campaign-card label.campaign-lead-pick {
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.campaign-lead-pick strong, .campaign-lead-pick small {
  display: block;
}

.campaign-lead-pick small {
  color: var(--ink-muted);
  overflow-wrap: anywhere;
  font-weight: 500;
}

.campaign-lead-opener {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
  display: grid;
}

.campaign-link-button {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
}

.campaign-preview {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
}

.campaign-preview p {
  margin: 0 0 4px;
}

.campaign-preview span {
  color: var(--ink-muted);
}

.campaign-preview pre {
  font-family: var(--font-sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  .campaign-grid, .campaign-lead-opener {
    grid-template-columns: 1fr;
  }
}

.campaign-card label {
  align-content: start;
}

.campaign-card .campaign-lead-opener textarea {
  resize: vertical;
  height: auto;
  min-height: 0;
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0z_23v6._.css.map*/