:root {
  --navy: #061b3a;
  --navy2: #0b2854;
  --blue: #155eef;
  --blue2: #eaf2ff;
  --green: #067647;
  --ink: #101828;
  --muted: #667085;
  --line: #d0d5dd;
  --soft: #f2f4f7;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font:
    13px/1.45 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.planner-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.planner-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #d6e4ff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}
.planner-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 0 8px 22px;
}
.planner-brand img {
  width: 34px;
  height: 34px;
}
.planner-brand span {
  display: flex;
  flex-direction: column;
}
.planner-brand b {
  font-size: 15px;
}
.planner-brand small {
  font-size: 10px;
  color: #8ca9d7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.planner-nav nav p {
  margin: 20px 10px 7px;
  color: #6f8dbb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.planner-nav nav a {
  display: block;
  color: #b9cbea;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 7px;
  margin: 2px 0;
  font-weight: 600;
}
.planner-nav nav a:hover,
.planner-nav nav a.active {
  background: #14386e;
  color: #fff;
}
.planner-nav nav a.active {
  box-shadow: inset 3px 0 var(--blue);
}
.safety-note {
  margin-top: auto;
  border-top: 1px solid #24446f;
  padding: 16px 8px 10px;
  display: flex;
  gap: 9px;
}
.safety-note > span,
.source-state > span,
.source-strip > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  margin-top: 5px;
  flex: 0 0 auto;
}
.safety-note div {
  display: flex;
  flex-direction: column;
}
.safety-note small {
  color: #8ca9d7;
}
.nav-footer {
  font-size: 10px;
  color: #718db6;
  padding: 6px 8px;
}
.planner-workspace {
  min-width: 0;
}
.planner-topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px) auto;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
}
.planner-topbar p,
.panel-heading p,
.laydown-title p {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.planner-topbar h1 {
  font-size: 20px;
  margin: 2px 0 0;
}
.global-search {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 7px;
}
.global-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
}
.planner-toolbar {
  min-height: 64px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fcfcfd;
}
.planner-toolbar > div:last-child {
  display: flex;
  gap: 8px;
}
.source-state {
  display: grid;
  grid-template-columns: 12px auto;
  column-gap: 4px;
}
.source-state > span {
  grid-row: 1/3;
}
.source-state b {
  font-size: 12px;
}
.source-state small {
  color: var(--muted);
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  border-radius: 8px;
  padding: 9px 13px;
  font: 600 12px/1 inherit;
  cursor: pointer;
}
.button:hover {
  background: var(--soft);
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.planner-message {
  min-height: 0;
  margin: 0;
  padding: 0 28px;
  color: var(--green);
  font-weight: 600;
}
.planner-message:not(:empty) {
  padding-top: 10px;
}
.planner-message.error {
  color: #b42318;
}
.planner-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: calc(100vh - 136px);
}
.brief-panel {
  border-right: 1px solid var(--line);
  padding: 20px 22px;
  background: #fcfcfd;
  overflow: auto;
}
.panel-heading,
.laydown-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-heading h2,
.laydown-title h2 {
  font-size: 17px;
  margin: 3px 0;
}
.panel-heading > span {
  font-size: 10px;
  color: var(--green);
  background: #ecfdf3;
  border-radius: 99px;
  padding: 4px 8px;
  font-weight: 700;
}
.brief-panel > label,
.two-cols label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
  color: #344054;
  font-weight: 650;
  font-size: 12px;
}
.brief-panel input,
.brief-panel select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
}
.searchable-select input[type="search"] {
  height: 32px;
  border-radius: 7px 7px 0 0;
  margin-bottom: -6px;
  padding-bottom: 3px;
  color: #475467;
}
.searchable-select select {
  border-radius: 0 0 7px 7px;
}
.inline-action {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: 700 11px/1 inherit;
  cursor: pointer;
  padding: 4px;
}
.inline-action:hover {
  text-decoration: underline;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.goal-switch,
.day-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eaecf0;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 13px;
}
.goal-switch button,
.day-presets button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 7px;
  color: #475467;
  font: 600 12px inherit;
  cursor: pointer;
}
.goal-switch button.active,
.day-presets button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px #10182818;
}
.advanced-weighting {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 15px;
}
.advanced-weighting summary {
  padding: 12px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.advanced-weighting summary span {
  display: flex;
  flex-direction: column;
}
.advanced-weighting summary small {
  color: var(--muted);
  font-weight: 400;
}
.advanced-weighting[open] summary i {
  transform: rotate(180deg);
}
.advanced-weighting > div {
  margin: 0 12px 12px;
}
.day-presets {
  grid-template-columns: repeat(3, 1fr);
}
.day-weights {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day-weights label {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.day-weights input {
  height: 30px;
  padding: 0 3px;
  text-align: center;
  margin-top: 4px;
}
.weighting-fields {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
.weighting-fields legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.weighting-fields label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
  color: #475467;
}
.weighting-fields input {
  width: 72px;
  height: 32px;
}
.weighting-fields small {
  display: block;
  text-align: right;
  color: var(--muted);
}
.station-setup {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.station-setup p {
  margin: 7px 0;
  color: var(--muted);
}
.station-setup strong {
  color: var(--ink);
}
.laydown-panel {
  padding: 20px 24px;
  min-width: 0;
}
.pricing-legend {
  display: flex;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.dot.spot {
  background: var(--blue);
}
.dot.audience {
  background: #7a5af8;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}
.metric-row div {
  padding: 12px 15px;
  border-right: 1px solid var(--line);
}
.metric-row div:last-child {
  border: 0;
}
.metric-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.metric-row strong {
  display: block;
  font-size: 20px;
  margin-top: 2px;
}
.source-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 9px 13px;
}
.source-strip > span {
  margin: 0;
}
.source-strip small {
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.table-wrap {
  border: 1px solid var(--line);
  border-top: 0;
  overflow: auto;
  max-height: 520px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
  font-size: 11px;
}
th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  color: #475467;
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 8px 9px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
}
.station-cell {
  font-size: 12px;
}
.pricing-cell span {
  white-space: nowrap;
}
.week-allocation {
  min-width: 55px;
}
.capacity-track {
  display: block;
  height: 4px;
  background: #eaecf0;
  border-radius: 99px;
}
.capacity-track i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
}
.capacity-track i.audience {
  background: #7a5af8;
}
.subtotal {
  background: #fcfcfd;
  font-weight: 650;
}
.empty-plan {
  text-align: center;
  color: var(--muted);
  padding: 50px;
}
tfoot {
  font-weight: 800;
  background: #f8fafc;
}
.plan-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
}
.plan-footer div {
  display: flex;
  flex-direction: column;
}
.plan-footer small {
  color: var(--muted);
}
.plan-footer ul {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.planner-busy {
  cursor: progress;
}
@media (max-width: 1050px) {
  .planner-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .planner-brand span,
  .planner-nav nav p,
  .planner-nav nav a,
  .safety-note,
  .nav-footer {
    font-size: 0;
  }
  .planner-nav nav a {
    height: 36px;
  }
  .planner-grid {
    grid-template-columns: 315px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .planner-app {
    display: block;
  }
  .planner-nav {
    height: auto;
    position: static;
    padding: 9px 14px;
    flex-direction: row;
    align-items: center;
  }
  .planner-brand {
    padding: 0;
  }
  .planner-nav nav {
    display: flex;
    margin-left: auto;
  }
  .planner-nav nav p,
  .planner-nav nav a:not(.active) {
    display: none;
  }
  .planner-nav nav a.active {
    font-size: 12px;
    height: auto;
  }
  .planner-topbar {
    height: auto;
    padding: 14px 16px;
    grid-template-columns: 1fr auto;
  }
  .global-search {
    grid-row: 2;
    grid-column: 1/3;
  }
  .planner-toolbar {
    padding: 10px 16px;
    align-items: flex-start;
  }
  .planner-toolbar > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .planner-grid {
    display: block;
  }
  .brief-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px;
  }
  .laydown-panel {
    padding: 18px 16px;
  }
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .metric-row div:nth-child(2) {
    border-right: 0;
  }
  .metric-row div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .source-strip {
    flex-wrap: wrap;
  }
  .plan-footer {
    display: block;
  }
  .plan-footer ul {
    padding-left: 18px;
    margin-top: 12px;
  }
}
.planner-message.warning {
  color: #b54708;
}
.station-builder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin: 18px 0 10px;
}
.station-builder legend {
  font-weight: 700;
  padding: 0 5px;
}
.station-builder > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.station-builder input[type="search"] {
  grid-column: 1 / -1;
}
.station-builder small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.station-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  margin: 8px 0;
}
.station-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.station-card-head small {
  display: block;
  color: var(--muted);
}
.station-card-remove {
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 700;
  cursor: pointer;
}
.station-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.station-price label {
  font-size: 10px;
  color: var(--muted);
}
.station-price input,
.station-price select {
  height: 32px;
  margin-top: 3px;
}
.view-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}
.view-toolbar > div > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.segmented {
  display: flex;
  background: #eaecf0;
  border-radius: 7px;
  padding: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 6px 9px;
  color: #475467;
  font: 600 11px inherit;
  cursor: pointer;
}
.segmented button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px #10182818;
}
.report-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.report-dialog {
  width: min(1100px, 94vw);
  height: min(850px, 92vh);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px #10182833;
}
.report-dialog::backdrop {
  background: #061b3acc;
}
.report-dialog-head {
  height: 70px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-dialog-head p {
  margin: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.report-dialog-head h2 {
  margin: 2px 0;
  font-size: 18px;
}
.report-dialog-toolbar {
  height: 58px;
  padding: 9px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: end;
  gap: 8px;
}
.report-dialog-toolbar label {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 10px;
}
.report-dialog-toolbar select {
  height: 34px;
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.report-dialog iframe {
  width: 100%;
  height: calc(100% - 128px);
  border: 0;
  background: #667085;
}
.source-strip.warning > span {
  background: #f79009;
}
@media (max-width: 900px) {
  .view-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .report-actions {
    margin-left: 0;
    width: 100%;
  }
  .report-actions .button {
    flex: 1;
  }
  .station-price {
    grid-template-columns: 1fr;
  }
  .report-dialog-toolbar select {
    min-width: 140px;
  }
}
