:root {
  --bg: #f5f6f2;
  --paper: #fff;
  --ink: #18332c;
  --muted: #65716b;
  --line: #dfe5dc;
  --green: #17694d;
  --lime: #d7f37b;
  --side: #102d28;
  --danger: #a42e32;
  --warn: #8b570d;
  --blue: #27698a;
  --radius: 16px;
  --shadow: 0 8px 30px #15362b08;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #288eac;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.mono {
  font:
    12px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: -100px;
  background: white;
  padding: 14px;
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
.boot {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.brandmark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--side);
  display: grid;
  place-items: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -3px;
  padding-right: 3px;
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  background: var(--side);
  color: #e5eee8;
  position: fixed;
  width: 232px;
  height: 100svh;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 8px;
}
.brand-name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.brand-sub {
  font-size: 10px;
  color: #9db3a8;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-top: 2px;
}
.workspace-pill {
  border: 1px solid #ffffff20;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.workspace-pill .dot {
  background: var(--lime);
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.nav-link {
  color: #b4c9bd;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.3;
  padding: 10px 12px;
  min-height: 40px;
}
.nav-link:hover {
  background: #ffffff0a;
  color: white;
}
.nav-link.active {
  background: #d7f37b;
  color: #102d28;
  font-weight: 650;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-group {
  color: #769b88;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 21px 12px 7px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid #ffffff18;
  font-size: 12px;
  color: #b4c9bd;
}
.safe-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 11px;
  margin-bottom: 8px;
}
.main-wrap {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #ffffffa8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 11px;
  align-items: center;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8eee4;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  padding: 7px;
}
.locale-select {
  font-size: 11px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: var(--ink);
  width: 61px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: normal;
}
.pill.fixture {
  background: #f2e9ff;
  color: #6e4993;
}
.pill.good {
  background: #e7f4e9;
  color: #236548;
}
.pill.warn {
  background: #fff2da;
  color: #8b570d;
}
.pill.bad {
  background: #fcebed;
  color: #9c3238;
}
.pill.neutral {
  background: #edf0eb;
  color: #647067;
}
.pill.info {
  background: #e8f1f8;
  color: #326884;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  flex-shrink: 0;
}
.page {
  max-width: 1600px;
  margin: auto;
  padding: 31px 34px 44px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 650;
  margin-bottom: 10px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 800px;
}
.buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  min-height: 38px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.button:hover {
  background: #f3f5f0;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #11563e;
}
.button.danger {
  background: #fff6f5;
  border-color: #edc5c4;
  color: var(--danger);
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}
.button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #edf2e6;
  border: 1px solid #dce6cd;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.banner.warn {
  background: #fff5e2;
  border-color: #ecdbb8;
  color: #795016;
}
.banner.error {
  background: #fff0f0;
  border-color: #efcccc;
  color: #9c3238;
}
.banner.info {
  background: #eef5f8;
  border-color: #cfe0e8;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 21px;
}
.filters label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.filters select,
.filters input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  min-height: 36px;
  max-width: 200px;
  font-size: 11px;
  color: var(--ink);
}
.period-tabs {
  display: flex;
  padding: 3px;
  background: #e9ede5;
  border-radius: 8px;
  gap: 2px;
}
.period-tabs button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.period-tabs button.active {
  background: white;
  box-shadow: 0 1px 4px #102d2812;
  color: var(--ink);
  font-weight: 600;
}
.freshness {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}
.metric {
  background: white;
  padding: 19px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 128px;
}
.metric.featured {
  background: var(--side);
  color: #eff6ee;
  border-color: var(--side);
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.metric.featured .metric-label {
  color: #b2cbb7;
}
.metric-value {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin-top: 12px;
  line-height: 1.1;
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric.featured .metric-foot {
  color: #b2cbb7;
}
.trend-positive {
  color: #2d815c;
}
.metric.featured .trend-positive {
  color: var(--lime);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 19px;
  margin-bottom: 19px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 21px 15px;
}
.panel-head h2 {
  font-size: 14px;
}
.panel-body {
  padding: 3px 21px 21px;
}
.legend {
  display: flex;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.chart {
  width: 100%;
  height: 220px;
  display: block;
}
.chart text {
  font: 10px system-ui;
  fill: #7d887f;
}
.chart .grid {
  stroke: #edf0eb;
  stroke-width: 1;
}
.chart-key {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.queue-card {
  padding: 16px 0;
  border-bottom: 1px solid #ebeee7;
}
.queue-card:first-child {
  padding-top: 3px;
}
.queue-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.queue-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin: 8px 0 6px;
}
.queue-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.queue-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 20px;
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td strong {
  font-weight: 600;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.platform-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  background: #e9eff9;
  color: #3374c1;
}
.platform-icon.tiktok {
  background: #272f2c;
  color: #fff;
}
.platform-icon.nextdoor {
  background: #e9f6d8;
  color: #429926;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.card p {
  font-size: 12px;
}
.card-footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff2e7;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 19px;
}
.card dl,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 11px;
  margin: 16px 0 0;
}
.card dt,
.detail-grid dt {
  color: var(--muted);
  margin-bottom: 4px;
}
.card dd,
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.empty {
  padding: 44px 25px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
}
.empty svg {
  width: 32px;
  height: 32px;
  color: #93a28f;
}
.empty h3 {
  color: var(--ink);
}
.empty p {
  font-size: 12px;
  max-width: 410px;
}
.section-gap {
  margin-top: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 25px 0 15px;
}
.section-title h2 {
  font-size: 17px;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--side);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
}
.login-art h1 {
  font-size: clamp(40px, 5vw, 68px);
  max-width: 560px;
  line-height: 1.06;
  margin-bottom: 25px;
}
.login-art h1 em {
  font-style: normal;
  color: var(--lime);
}
.login-art p {
  color: #b4c9bd;
  font-size: 14px;
  max-width: 460px;
}
.login-art .brand {
  padding: 0;
}
.login-decor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0;
}
.login-decor div {
  border-top: 1px solid #ffffff35;
  padding-top: 15px;
  font-size: 12px;
  color: #a9c2b1;
}
.login-decor strong {
  color: #edf5ed;
  display: block;
  font-size: 19px;
  margin-bottom: 5px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-box {
  width: 100%;
  max-width: 390px;
}
.login-box h2 {
  font-size: 25px;
  margin: 25px 0 8px;
}
.login-box .subtitle {
  margin-bottom: 24px;
}
.login-box .locale-select {
  float: right;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfd8ce;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 13px;
  min-height: 42px;
}
.field textarea {
  min-height: 98px;
  resize: vertical;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.55;
}
.check-field input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  line-height: 1.6;
  white-space: pre-wrap;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(610px, calc(100vw - 28px));
  max-height: 85svh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #102d2830;
}
.modal::backdrop {
  background: #061b1680;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-body {
  padding: 22px 24px;
}
.modal-foot {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.diff > div {
  padding: 14px;
  background: #f3f5ef;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.diff .after {
  background: #edf5e5;
}
.diff pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px ui-monospace,
    monospace;
  margin: 8px 0 0;
  max-height: 130px;
  overflow: auto;
}
.evidence {
  font-size: 11px;
  padding: 10px;
  background: #f4f6f0;
  border-radius: 7px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.checks {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}
.checks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.checks .check-icon {
  width: 17px;
  flex-shrink: 0;
  color: var(--green);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 21px 22px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93ac92;
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline strong {
  font-size: 12px;
}
.timeline p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100svh - 215px);
  min-height: 480px;
  max-height: 900px;
  gap: 16px;
}
.chat-rail {
  overflow: auto;
}
.chat-item {
  padding: 13px 14px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0e7;
  background: white;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.chat-item.active {
  background: #edf3e6;
  border-left: 3px solid var(--green);
}
.chat-item small {
  font-size: 10px;
  color: var(--muted);
}
.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-pane .panel-head {
  border-bottom: 1px solid var(--line);
}
.messages {
  padding: 22px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.message {
  max-width: 88%;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  align-self: flex-end;
  background: #edf3e6;
  border-radius: 12px 12px 3px 12px;
  padding: 12px 16px;
}
.message.assistant {
  align-self: flex-start;
}
.message-role {
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
  white-space: normal;
  margin-bottom: 5px;
}
.message-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  white-space: normal;
}
.message-links a {
  font-size: 11px;
}
.composer {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: #fcfdf9;
}
.composer textarea {
  border: 0;
  resize: vertical;
  width: 100%;
  min-height: 58px;
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.voice-controls {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.voice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.voice-actions .check-field {
  min-width: 0;
  flex: 1 1 220px;
  font-size: 12px;
}
.voice-status {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.voice-controls[data-voice-state="listening"] .voice-status,
.voice-controls[data-voice-state="speaking"] .voice-status {
  font-weight: 700;
}
.voice-controls [hidden] {
  display: none !important;
}
.composer-hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.upload-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 10px;
}
.creative-preview {
  aspect-ratio: 16/10;
  background: #e9ede4;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #71806e;
  border: 1px dashed #bfccbc;
}
.creative-preview svg {
  width: 35px;
  height: 35px;
}
.creative-preview p {
  font-size: 10px;
}
.cost-value {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 16px 0 9px;
}
.budget-track {
  height: 5px;
  background: #eaf0e6;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 12px;
}
.budget-track i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 5px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.more-item {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
  padding: 23px;
  border-radius: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
}
.more-item svg {
  color: var(--green);
}
.bottom-nav {
  display: none;
}
.toast-region {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 18px;
  background: var(--side);
  color: white;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 8px 40px #102d2830;
}
.toast.error {
  background: #812b2b;
}
.loading-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #83b479, transparent);
  animation: load 1.4s infinite;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-error {
  padding: 12px;
  color: var(--danger);
  font-size: 12px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.nowrap {
  white-space: nowrap;
}
.full-width {
  width: 100%;
}
.row-link {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #bbcec0;
  text-underline-offset: 3px;
}
.mobile-only {
  display: none;
}
@keyframes load {
  from {
    background-position: -500px 0;
  }
  to {
    background-position: 500px 0;
  }
}
@media (min-width: 1600px) {
  .page {
    padding-top: 38px;
  }
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .sidebar {
    width: 198px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .page {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-value {
    font-size: 25px;
  }
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  }
  .freshness {
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
  }
  .chat-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-art {
    padding: 40px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-rail {
    max-height: 130px;
  }
  .chat-rail .panel-head {
    padding: 10px 14px;
  }
  .chat-rail > div:last-child {
    display: flex;
    overflow: auto;
  }
  .chat-item {
    min-width: 160px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .chat-layout {
    height: auto;
  }
  .chat-pane {
    height: 600px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 63px;
    padding: 0 17px;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb:before {
    content: "b";
    width: 27px;
    height: 27px;
    background: var(--side);
    border-radius: 7px;
    color: var(--lime);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 750;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .avatar {
    display: none;
  }
  .page {
    padding: 24px 16px 102px;
  }
  .page-header {
    margin-bottom: 18px;
    gap: 13px;
  }
  .page-header h1 {
    font-size: 27px;
  }
  .page-header > .buttons {
    max-width: 145px;
    justify-content: flex-end;
  }
  .page-header > .buttons .button {
    font-size: 11px;
    padding: 8px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .subtitle {
    font-size: 11px;
  }
  .banner {
    font-size: 10px;
    padding: 10px 12px;
    align-items: flex-start;
    gap: 9px;
  }
  .banner .button {
    font-size: 10px;
    flex-shrink: 0;
    padding: 6px 8px;
    min-height: 30px;
  }
  .metric-grid {
    gap: 10px;
    margin-bottom: 15px;
  }
  .metric {
    padding: 16px 13px;
    min-height: 124px;
    border-radius: 12px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
    margin-top: 14px;
  }
  .metric-foot {
    font-size: 9px;
    line-height: 1.5;
  }
  .period-tabs {
    max-width: 100%;
    overflow: auto;
  }
  .period-tabs button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .filters {
    gap: 7px;
    margin-bottom: 16px;
  }
  .filters select,
  .filters input {
    max-width: 165px;
    font-size: 10px;
  }
  .filters label {
    font-size: 10px;
  }
  .panel-head {
    padding: 17px 16px 13px;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .panel-body {
    padding: 2px 16px 17px;
  }
  .dashboard-grid {
    gap: 15px;
  }
  .chart {
    height: 195px;
  }
  .legend {
    font-size: 9px;
    gap: 8px;
  }
  .chart-key {
    font-size: 10px;
  }
  .list-grid {
    grid-template-columns: 1fr;
  }
  .more-grid {
    gap: 10px;
  }
  .more-item {
    padding: 18px 13px;
    font-size: 12px;
    gap: 10px;
  }
  .more-item svg {
    width: 18px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: #fffffff5;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px #102d2805;
  }
  .bottom-nav a {
    width: 25%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    color: #7b877a;
    text-decoration: none;
    font-size: 9px;
    min-height: 45px;
    justify-content: center;
    border-radius: 8px;
  }
  .bottom-nav a.active {
    color: var(--green);
    background: #eff5e8;
    font-weight: 650;
  }
  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }
  .login-layout {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-main {
    min-height: 100svh;
    padding: 25px;
  }
  .login-box .brand {
    margin-bottom: 35px;
    color: var(--ink);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    max-height: 90svh;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-foot {
    padding: 15px 18px;
  }
  .diff {
    gap: 8px;
  }
  .diff > div {
    padding: 10px;
  }
  .diff pre {
    font-size: 11px;
  }
  .chat-layout {
    min-height: 0;
    gap: 12px;
  }
  .chat-pane {
    height: calc(100svh - 345px);
    min-height: 370px;
  }
  .messages {
    padding: 17px;
  }
  .message {
    max-width: 95%;
    font-size: 12px;
  }
  .composer {
    padding: 12px;
  }
  .toast-region {
    bottom: 85px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  td,
  th {
    padding: 13px 15px;
  }
  .card {
    padding: 18px;
  }
  .topbar .pill {
    font-size: 9px;
    padding: 4px 6px;
  }
  .freshness {
    font-size: 9px;
  }
  .chart-key strong {
    display: block;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.legend-revenue {
  background: #17694d;
}
.legend-spend {
  background: #b9cfaa;
}
/* Keep operator tables legible on narrow screens; scroll only this region. */
.table-wrap table {
  min-width: 720px;
}
.table-wrap td:first-child {
  min-width: 180px;
}
.card-footer {
  flex-wrap: wrap;
}
.private-media {
  margin: 12px 0;
}
.private-media figure {
  margin: 0 0 14px;
}
.asset-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  background: #edf0e9;
}
.private-media figcaption {
  margin-top: 7px;
}
@media (max-width: 720px) {
  .chart text {
    font-size: 13px;
  }
}

/* Preserve native hidden semantics for flex/grid components and conditional approvals. */
[hidden] {
  display: none !important;
}
.stacked-banner {
  display: block;
}
.stacked-banner .check-field {
  margin-top: 12px;
}
.prerequisite-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

/* Reference parity: compact owner overview, specialist tabs, and durable work. */
.workspace-context {
  padding: 16px 38px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.workspace-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.workspace-identity > strong {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.context-divider {
  color: var(--line);
}
.context-meta {
  color: var(--muted);
  font:
    11px ui-monospace,
    monospace;
  margin-top: 5px;
}
.working-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  text-decoration: none;
}
.owner-overview .page-header h1 {
  font-size: 24px;
}
.owner-overview .page-header {
  margin-bottom: 16px;
}
.owner-overview .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reference-metrics .metric {
  min-height: 115px;
  padding: 16px 18px;
}
.reference-metrics .metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.8px;
  margin-top: 9px;
  display: block;
}
.metric-link {
  text-decoration: none;
  color: inherit;
}
.metric-link::after {
  content: " →";
  font: 15px system-ui;
  opacity: 0.5;
}
.reference-metrics .metric.featured {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.reference-metrics .featured .metric-label,
.reference-metrics .featured .metric-foot {
  color: var(--muted);
}
.metric-method {
  margin: 12px 0 20px;
}
.source-chips {
  display: flex;
  width: 100%;
  gap: 6px;
  overflow: auto;
  padding: 2px 0;
}
.source-chip,
.specialist-chip {
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.source-chip.selected,
.specialist-chip.selected {
  background: #e6f2dd;
  border-color: #c5d7b9;
  color: var(--green);
}
.owner-overview .filters > select {
  font-size: 11px;
  padding: 6px 8px;
  min-height: 32px;
}
.specialist-chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 0 0 12px;
  padding: 2px 0 5px;
}
.specialist-chip {
  flex: none;
  min-height: 42px;
}
.specialist-chip svg {
  width: 16px;
  height: 16px;
}
.agent-name-link {
  display: block;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.agent-name-link:hover {
  text-decoration: underline;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  margin: 0 0 20px;
}
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.profile-header h1 {
  font-size: 26px;
}
.profile-header .subtitle {
  margin: 8px 0 12px;
  max-width: 800px;
}
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.profile-tab {
  padding: 10px 13px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
}
.profile-tab.active {
  background: #e6f2dd;
  color: var(--green);
  border-color: #c5d7b9;
}
.profile-content {
  min-height: 180px;
}
.profile-content > .button,
.profile-content > .profile-chats {
  margin: 16px;
}
.profile-chats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scope-note {
  padding: 12px 18px;
}
.contract-readiness {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  background: var(--paper);
}
.contract-readiness summary {
  cursor: pointer;
}
.contract-readiness > p {
  margin-top: 10px;
}
.report-content {
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.65;
}
.report-content p + p,
.report-content ul,
.report-content h3 {
  margin-top: 10px;
}
.report-content ul {
  padding-left: 20px;
}
.report-content li + li {
  margin-top: 7px;
}
.report-content table {
  font-size: 12px;
  min-width: 360px;
}
.report-content .table-wrap {
  margin: 12px 0;
  max-width: 100%;
}
.report-content th,
.report-content td {
  white-space: normal;
  padding: 9px 11px;
}
.message.assistant {
  max-width: 100%;
}
.run-status {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #f6f8f2;
  font-size: 12px;
}
.run-status details {
  margin-top: 8px;
}
.run-status summary {
  cursor: pointer;
  color: var(--muted);
}
.workflow-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.workflow-template h2 {
  margin: 14px 0 8px;
}
.workflow-template > .button {
  margin-top: 16px;
}
.workflow-step-preview {
  padding-left: 23px;
  margin: 18px 0 0;
}
.workflow-step-preview li {
  padding: 6px 0;
  font-size: 12px;
}
.workflow-step-preview li > span.small {
  display: block;
}
.workflow-step-preview .pill {
  margin: 3px 0;
}
.workflow-stages {
  list-style: none;
  padding: 20px;
  margin: 0;
}
.workflow-stage {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 25px;
}
.stage-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f0f5e9;
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
}
.stage-body {
  min-width: 0;
  flex: 1;
}
.stage-body > p {
  margin: 6px 0;
}
.artifact-card {
  margin: 15px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9faf7;
}
.artifact-card > h3 {
  margin: 10px 0;
}
.artifact-card > details {
  margin: 12px 0;
}
.safe-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font:
    11px/1.6 ui-monospace,
    monospace;
  max-height: 350px;
  overflow: auto;
  margin: 12px 0;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.check-field input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
@media (max-width: 960px) {
  .workflow-catalog {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .workspace-context {
    padding: 12px 16px;
  }
  .workspace-identity > strong {
    font-size: 22px;
  }
  .workspace-identity > span {
    font-size: 11px;
  }
  .topbar {
    height: 48px;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  .page {
    padding-top: 16px;
  }
  .owner-overview .page-header {
    margin-bottom: 12px;
  }
  .owner-overview .page-header h1 {
    font-size: 19px;
  }
  .owner-overview .page-header .eyebrow {
    display: none;
  }
  .owner-overview .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .reference-metrics .metric {
    min-height: 99px;
    padding: 12px 13px;
  }
  .reference-metrics .metric-value {
    font-size: 28px;
    margin-top: 7px;
  }
  .reference-metrics .metric-foot {
    font-size: 10px;
  }
  .source-chip {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .owner-overview .filters > select {
    max-width: calc(50% - 4px);
    font-size: 10px;
    min-height: 29px;
  }
  .source-chips {
    gap: 5px;
  }
  .specialist-chips {
    margin-bottom: 8px;
    gap: 5px;
  }
  .specialist-chip {
    font-size: 11px;
    padding: 8px 10px;
  }
  .profile-header {
    gap: 10px;
  }
  .profile-header h1 {
    font-size: 22px;
  }
  .profile-tabs {
    margin: 12px 0;
    gap: 2px;
  }
  .profile-tab {
    padding: 9px 10px;
    font-size: 11px;
  }
  .profile-header .agent-avatar {
    width: 34px;
    height: 34px;
  }
  .chat-rail {
    max-height: 88px;
  }
  .chat-rail .panel-head {
    padding: 7px 12px;
  }
  .chat-item {
    min-width: 145px;
    padding: 8px 12px;
  }
  .chat-item small {
    font-size: 9px;
  }
  .chat-pane {
    min-height: 420px;
  }
  .chat-pane .panel-head {
    padding: 10px 12px;
  }
  .messages {
    padding: 12px;
  }
  .message.assistant {
    padding: 12px;
    background: #f8faf5;
  }
  .composer {
    padding: 10px;
  }
  .run-status {
    padding: 10px 12px;
  }
  .workflow-stages {
    padding: 15px 12px;
  }
  .workflow-stage {
    gap: 9px;
  }
  .stage-number {
    width: 24px;
    height: 24px;
  }
  .artifact-card {
    padding: 12px;
  }
}
.workspace-identity {
  min-width: 0;
}
.workspace-identity > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-meta,
.workflow-run h1,
.artifact-card h3,
.reference-metrics .metric-value {
  overflow-wrap: anywhere;
}
.conversation-drawer {
  min-width: 0;
}
.conversation-drawer > summary {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 960px) {
  .conversation-drawer > summary {
    display: block;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    padding: 10px 12px;
  }
  .conversation-drawer[open] > summary {
    margin-bottom: 8px;
  }
}
@media (max-width: 720px) {
  .specialist-chat > .page-header .subtitle,
  .specialist-chat > .page-header .eyebrow {
    display: none;
  }
  .specialist-chat > .page-header {
    margin-bottom: 9px;
    align-items: center;
  }
  .specialist-chat > .page-header h1 {
    font-size: 18px;
  }
  .specialist-chat .chat-pane {
    height: calc(100svh - 380px);
    min-height: 340px;
  }
}
[data-campaign-setup-panel] .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
[data-campaign-setup-panel] .panel-head {
  flex-wrap: wrap;
  gap: 12px;
}
.setup-wrap {
  overflow-wrap: anywhere;
}
.setup-empty {
  padding: 18px 0;
}
.setup-plan-detail > h3 {
  margin-top: 15px;
}
.setup-step-list {
  padding-left: 20px;
  overflow-wrap: anywhere;
}

/* Keep operator-supplied URLs/identifiers inside readable creative cards. */
.creative-brief-card {
  overflow-wrap: anywhere;
}
