@import "assets/fonts/fonts.css";
:root {
  color-scheme: light;
  --navy:#102548;
  --ink:#172b46;
  --muted:#58677b;
  --line:#dce2e9;
  --yellow:#ffe23a;
  --body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: #f5f6f8;
  color: var(--ink);
  font: 400 14px/1.55 var(--body);
}
a {
  color: #204e8d;
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  padding: 9px 14px;
  min-height: 40px;
}
button:hover {
  background: #213e65;
}
button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}
button.secondary:hover {
  background: #edf1f6;
}
input,
select {
  width: 100%;
  background: white;
  border: 1px solid #b9c4d1;
  border-radius: 5px;
  padding: 9px 10px;
  min-height: 40px;
  color: var(--ink);
}
input[type=color] {
  padding: 4px;
}
input[type=checkbox] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--navy);
}
input[type=file] {
  font-size: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
label:has(input[type=checkbox]) {
  flex-direction: row;
  align-items: flex-start;
}
:focus-visible {
  outline: 3px solid #326dc1;
  outline-offset: 3px;
}
p {
  margin: 8px 0 16px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -.025em;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 8px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 6px;
}
h3 {
  font-size: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #d9e3f3;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  text-decoration: none;
  display: block;
  padding: 0 9px 24px;
}
.admin-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.admin-brand span {
  color: #b9c8df;
  display: block;
  font-size: 12px;
  padding-top: 10px;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #91a8c9;
  font-size: 10px;
  font-weight: 700;
  margin: 22px 12px 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 13px;
  color: #d9e3f3;
  background: transparent;
  padding: 11px 12px;
  min-height: 44px;
}
.sidebar nav button:hover {
  background: #233b5d;
}
.sidebar nav button[aria-current=page] {
  background: var(--yellow);
  color: #17263d;
}
.nav-icon {
  font-size: 18px;
  font-weight: 500;
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: #ffffff16;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
}
.sidebar nav button[aria-current] .nav-count {
  background: #10254814;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 32px 12px 0;
  display: grid;
  gap: 14px;
  font-size: 12px;
}
.sidebar-bottom a {
  color: #c7d6eb;
  text-decoration: none;
}
.sidebar-bottom p {
  margin: 16px 0 0;
  border-top: 1px solid #ffffff21;
  padding-top: 16px;
  color: #e5edfa;
  font-weight: 600;
}
.sidebar-bottom p span {
  color: #9fb2d0;
  font-weight: 400;
  font-size: 11px;
}
.workspace {
  min-width: 0;
}
.workspace-bar {
  height: 67px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}
.workspace-bar > div {
  display: flex;
  align-items: center;
  gap: 22px;
}
.workspace-bar a {
  text-decoration: none;
}
.slash {
  padding: 0 12px;
  color: #b0bcca;
}
.approval-mode {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
}
.approval-mode:before {
  content: "";
  display: inline-block;
  background: #4c6b96;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
main {
  padding: 24px 36px 70px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
  color: #66768d;
}
.environment-note {
  background: #fff9de;
  border: 1px solid #e6d898;
  border-radius: 6px;
  padding: 10px 14px;
  color: #624d18;
  font-size: 12px;
}
.service-status {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.service-status[data-error=true] {
  background: #fff0ef;
  color: #9b2922;
  padding: 12px;
  border: 1px solid #e8c3bf;
  border-radius: 6px;
}
#access-panel {
  border: 1px solid var(--line);
  background: white;
  padding: 16px;
  margin-bottom: 20px;
}
#access {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}
.campaign-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.campaign-count {
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}
.campaign-count:hover {
  background: #f9fbff;
  border-color: #96aac5;
}
.campaign-count strong {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  grid-column: 1;
  grid-row: 2;
}
.campaign-count span {
  font-size: 12px;
  font-weight: 600;
}
.campaign-count small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  grid-column: 1/-1;
}
.campaign-count .stat-arrow {
  grid-column: 2;
  grid-row: 1/3;
  color: #73859c;
  font-size: 18px;
}
.campaign-count[data-state=review] {
  border-top: 3px solid #dba629;
  padding-top: 10px;
}
.surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.list-heading {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.list-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.search-label {
  width: min(300px, 40%);
}
.search-label input {
  font-size: 12px;
  min-width: 180px;
  padding-left: 12px;
}
.list-toolbar {
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.status-tabs {
  display: flex;
  gap: 18px;
  overflow: auto;
}
.status-tabs button {
  white-space: nowrap;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  font-size: 12px;
}
.status-tabs button[aria-pressed=true] {
  color: var(--navy);
  border-color: var(--navy);
}
.filter-label select {
  font-size: 11px;
  min-height: 32px;
  padding: 4px 24px 4px 8px;
  width: auto;
  max-width: 165px;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid #e8ecf1;
  vertical-align: middle;
}
thead {
  background: #fafbfc;
}
thead th {
  font-size: 10px;
  font-weight: 650;
  color: #66768b;
  letter-spacing: .02em;
  white-space: nowrap;
}
.campaign-table {
  min-width: 850px;
}
.campaign-table td:first-child {
  padding-left: 22px;
  min-width: 180px;
}
.campaign-table td:nth-child(3) {
  white-space: nowrap;
  font-size: 11px;
}
.campaign-name {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  min-height: 24px;
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.campaign-name:hover {
  background: none;
  color: #245ba6;
  text-decoration: underline;
}
.cell-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.status {
  display: inline-block;
  border: 1px solid #d5dce7;
  background: #f0f3f7;
  color: #445570;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.status[data-state=review] {
  background: #fff7db;
  color: #7c5711;
  border-color: #ead9a8;
}
.status[data-state=running] {
  background: #eaf4ef;
  color: #216444;
  border-color: #c5decf;
}
.status[data-state=scheduled] {
  background: #edf2ff;
  color: #3c5790;
  border-color: #d3ddf3;
}
.status[data-state=paused] {
  background: #fff1e5;
  color: #945125;
  border-color: #efd9c1;
}
.next-action {
  font-size: 11px;
  max-width: 170px;
}
.next-action[data-attention=true] {
  color: #a13a30;
  font-weight: 600;
}
.row-open {
  padding: 6px 10px;
  font-size: 11px;
  min-height: 32px;
  background: white;
  color: #204e8d;
  border-color: #dce2e9;
}
.row-open:hover {
  background: #eff4fc;
}
.table-footer {
  padding: 13px 22px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  background: #fdfdfe;
}
.empty-state {
  padding: 40px 24px;
  color: var(--muted);
  text-align: center;
}
.context-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.text-button {
  padding: 0;
  min-height: 28px;
  background: none;
  border: 0;
  color: #204e8d;
  font-weight: 600;
  font-size: 12px;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
.section-pad {
  padding: 24px;
}
.section-pad > p {
  color: var(--muted);
  max-width: 900px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.capacity-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  margin: 24px 0;
}
.capacity-controls input {
  max-width: 200px;
}
.capacity-controls label:nth-child(2) {
  max-width: 130px;
}
[data-available=no] {
  color: #a23c30;
}
[data-available=yes] {
  color: #276344;
}
.meta {
  font-size: 12px;
  color: var(--muted);
}
.help-steps {
  padding-left: 20px;
  display: grid;
  gap: 20px;
  margin: 24px 0 32px;
}
.help-steps b {
  display: block;
}
.help-steps li {
  padding-left: 8px;
  color: var(--muted);
}
.help-steps b {
  color: var(--ink);
}
.workflow-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 24px;
  margin: 22px 0 26px;
}
.workflow-note b {
  font-size: 12px;
  grid-row: 1;
}
.workflow-note span {
  font-size: 12px;
  color: var(--muted);
  grid-row: 2;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}
.activity-list p {
  font-size: 12px;
  margin: 7px 0;
  color: var(--muted);
}
.activity-list strong {
  font-size: 13px;
}
.activity-list a {
  font-size: 12px;
}
.prepare-panel {
  border-top: 1px solid var(--line);
  padding: 20px 22px;
}
.prepare-panel > summary {
  font-weight: 650;
}
.prepare-panel > p {
  font-size: 12px;
  color: var(--muted);
}
.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.editor p,
.editor button,
.editor label:has(input[type=checkbox]),
.editor label:has(input[type=file]),
.editor label:has(input[name=image]) {
  grid-column: 1/-1;
}
.editor p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.editor button {
  justify-self: start;
}
.editor .calculation {
  background: #f0f4f9;
  padding: 14px;
  border-radius: 5px;
}
.check-label {
  font-weight: 400;
  font-size: 12px;
}
.check-label input {
  flex-shrink: 0;
  margin-top: 3px;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(680px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: -12px 0 50px #10254825;
}
dialog::backdrop {
  background: #10254866;
}
.detail-bar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  z-index: 1;
}
.detail-bar h2 {
  font-size: 20px;
  margin: 3px 0 0;
}
.detail-bar button {
  font-size: 12px;
}
.campaign-card {
  padding: 26px 28px;
}
.booking-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.company {
  font-size: 20px;
  margin: 3px 0;
}
.placement-name {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.state-explanation {
  background: #f3f6fa;
  border: 1px solid #e1e7ee;
  padding: 13px 15px;
  font-size: 13px;
  border-radius: 6px;
  margin: 20px 0;
}
.attention {
  background: #fff5db;
  border: 1px solid #ead59f;
  color: #785a13;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
}
.campaign-snapshot canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--navy);
}
dl {
  display: grid;
  grid-template-columns: 112px 1fr;
  font-size: 12px;
  gap: 12px;
  margin: 22px 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
dd a {
  display: block;
  font-size: 11px;
}
.campaign-edit {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.campaign-edit summary {
  font-size: 13px;
  font-weight: 650;
}
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.booking-actions button {
  font-size: 12px;
}
.booking-actions [data-status=paused] {
  background: white;
  color: var(--ink);
  border-color: #bac5d2;
}
.booking-actions [data-status=rejected] {
  background: white;
  color: #a43a30;
  border-color: #ddbcb8;
}
.booking-message {
  font-size: 12px;
  color: #8e3a2d;
}
.detail-footer {
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1450px) {
  .campaign-table td,
  .campaign-table th {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}
@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  main {
    padding: 26px 22px;
  }
  .workspace-bar {
    padding: 0 22px;
  }
  .list-heading {
    align-items: start;
  }
  .status-tabs {
    gap: 14px;
  }
  .campaign-summary {
    gap: 10px;
  }
  .campaign-count {
    padding: 14px 12px;
  }
  .campaign-count[data-state=review] {
    padding-top: 12px;
  }
  .campaign-count small {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px 16px 10px;
  }
  .admin-brand {
    padding: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .admin-brand img {
    width: 158px;
    max-height: 42px;
  }
  .admin-brand span {
    font-size: 11px;
    padding: 0;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 12px;
    min-height: 40px;
    gap: 6px;
  }
  .nav-icon {
    display: none;
  }
  .workspace-bar {
    height: 52px;
    padding: 0 18px;
    font-size: 10px;
  }
  .workspace-bar > div {
    gap: 12px;
  }
  .approval-mode {
    font-size: 10px;
    padding: 3px 6px;
  }
  main {
    padding: 24px 16px 50px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    align-items: start;
    gap: 12px;
  }
  .page-heading > button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .campaign-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .campaign-count small {
    font-size: 11px;
  }
  .list-heading {
    flex-direction: column;
    padding: 18px;
  }
  .search-label {
    width: 100%;
  }
  .list-toolbar {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 0;
  }
  .status-tabs {
    width: 100%;
    gap: 18px;
  }
  .filter-label {
    padding: 10px 0;
  }
  .section-pad {
    padding: 18px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .capacity-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .workflow-note {
    display: block;
    border-left: 2px solid #c0cbda;
    padding-left: 16px;
  }
  .workflow-note b,
  .workflow-note span {
    display: block;
  }
  .workflow-note span {
    margin: 4px 0 15px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .editor > * {
    grid-column: 1 !important;
  }
  .detail-bar {
    padding: 18px 20px;
  }
  .campaign-card {
    padding: 22px 20px;
  }
  .detail-footer {
    padding: 18px 20px;
  }
  .campaign-snapshot dl {
    grid-template-columns: 90px 1fr;
  }
  .booking-actions button {
    flex-grow: 1;
  }
  .environment-note {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color .15s,
      border-color .15s,
      color .15s;
  }
}
.confirmation {
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  height: auto;
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 20px 80px #10254833;
}
.confirmation h2 {
  font-size: 20px;
}
.confirmation p {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 24px;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirmation-actions button {
  font-size: 12px;
}
.mobile-campaign-meta {
  display: none;
}
@media (max-width: 760px) {
  .campaign-table {
    min-width: 0;
  }
  .campaign-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .campaign-table tbody {
    display: block;
  }
  .campaign-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
    gap: 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  .campaign-table td {
    display: block;
    border: 0;
    padding: 0 !important;
    min-width: 0 !important;
  }
  .campaign-table td:first-child {
    grid-column: 1/-1;
  }
  .campaign-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .campaign-table td:nth-child(3),
  .campaign-table td:nth-child(4) {
    display: none;
  }
  .campaign-table td:nth-child(5) {
    grid-column: 1/-1;
    max-width: none;
    grid-row: 3;
  }
  .campaign-table td:last-child {
    grid-column: 2;
    grid-row: 2;
  }
  .campaign-name {
    font-size: 13px;
    max-width: none;
  }
  .mobile-campaign-meta {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
  }
  .campaign-table .status {
    font-size: 11px;
  }
  .next-action {
    font-size: 12px;
  }
}
