@font-face { font-family: "Bebas Neue"; src: url("/fonts/BebasNeue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }@font-face { font-family: "Overpass"; src: url("/fonts/Overpass.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  font-family: "Overpass", sans-serif;
  color: #eff0f7;
  background: #010211;
  --bg: #010211;
  --surface: #11111c;
  --raised: #1c1629;
  --text: #eff0f7;
  --muted: #a9adc2;
  --border: #343040;
  --accent: #caa2ed;
  --accent-text: #280a49;
  --danger: #ff8c98;
  --soft: #2a2130;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color: #222638;
  background: #f5f5fa;
  --bg: #f5f5fa;
  --surface: #fff;
  --raised: #eeedf8;
  --text: #222638;
  --muted: #60657b;
  --border: #dddfe9;
  --accent: #7900ca;
  --accent-text: #fff;
  --danger: #ad263d;
  --soft: #fff0f2;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button,
a.button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 14px;
  text-decoration: none;
}
button:hover,
a.button:hover {
  border-color: var(--accent);
  background: var(--raised);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
}
.primary {
  background: var(--accent) !important;
  color: var(--accent-text) !important;
  border: 0 !important;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.shell {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: "Overpass", sans-serif;
  font-weight: 800;
  letter-spacing: -3px;
  font-size: 40px;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.brand span {
  display: block;
  font:
    600 10px "Overpass",
    sans-serif;
  letter-spacing: 2px;
  margin-top: 4px;
  color: var(--accent);
}
nav {
  margin-top: 42px;
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}
.active {
  background: var(--raised) !important;
  color: var(--accent) !important;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.sidebar-bottom > button {
  font-size: 12px;
  text-align: left;
}
.user {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.user small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
main {
  padding: 34px 40px;
  min-width: 0;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
}
h1,
h2,
h3 {
  font-family: "Overpass", sans-serif;
  letter-spacing: -0.6px;
}
h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 42px;
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 24px 0 16px;
}
h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
small {
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 10px;
}
.header-actions button {
  font-size: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 20px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font-family: "Overpass";
  font-size: 34px;
  margin-top: 12px;
}
.queues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.attention-list {
  display: grid;
  gap: 8px;
}
.attention-list button {
  display: flex;
  text-align: left;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.attention-list strong {
  font-size: 13px;
}
.attention-list p {
  margin: 4px 0;
  font-size: 12px;
}
.arrow {
  margin-left: auto;
  color: var(--accent);
}
.warning,
.notice {
  display: grid;
  place-items: center;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  background: var(--soft);
  color: var(--danger);
  font-weight: 800;
  flex-shrink: 0;
}
.notice {
  color: var(--accent);
  background: var(--raised);
}
.red-dot {
  display: inline-block;
  background: var(--danger);
  height: 6px;
  width: 6px;
  border-radius: 50%;
  margin-left: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.campaign-card {
  padding: 20px;
  text-align: left;
  min-height: 260px;
  border-radius: 14px;
  transition: transform 0.15s;
}
.campaign-card:hover {
  transform: translateY(-2px);
}
.campaign-card.critical {
  border-left: 3px solid var(--danger);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.platform {
  background: var(--raised);
  color: var(--accent);
  font-weight: 700;
  border-radius: 6px;
  padding: 7px;
  font-size: 11px;
}
.chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--raised);
}
.chip.urgent {
  color: var(--danger);
  background: var(--soft);
}
.campaign-card h3 {
  margin-top: 22px;
}
.campaign-card > p {
  margin: 0;
}
.card-date {
  font-size: 12px;
  margin: 17px 0 12px;
}
.phase {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.6px;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0;
}
.service-chips span {
  background: var(--raised);
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 5px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  margin-right: 3px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.empty {
  padding: 25px;
  background: var(--surface);
  border-radius: 12px;
}
.error {
  padding: 16px;
  border: 1px solid var(--danger);
  background: var(--soft);
  border-radius: 10px;
  color: var(--danger);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.toolbar input {
  flex: 1;
  max-width: 550px;
}
input,
select,
textarea {
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.back {
  border: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 12px;
}
.workspace-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.team-line {
  font-size: 13px;
  color: var(--muted);
}
.team-line button {
  padding: 5px;
  border: 0;
}
.workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.workspace-actions button {
  font-size: 12px;
}
.readiness {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 22px;
  background: var(--surface);
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.readiness h2 {
  margin: 8px 0;
}
.readiness > div:last-child {
  display: grid;
  gap: 8px;
}
.dates-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px 0;
  font-size: 11px;
  color: var(--muted);
}
.dates-summary strong {
  display: block;
  color: var(--text);
  margin-top: 8px;
  font-size: 12px;
}
.links {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  font-size: 13px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.module {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  text-align: left;
  margin: 0;
}
.module summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.module summary h3 {
  margin: 0;
}
.module summary p {
  margin: 8px 0 0;
  font-size: 11px;
}
.module > button {
  margin: 8px 5px 0 0;
}
.requirements {
  margin-top: 20px;
  display: grid;
  gap: 15px;
}
.requirements > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.requirements label {
  font-size: 12px;
}
.requirements small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.requirements select {
  font-size: 10px;
  max-width: 160px;
}
.history {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.history small {
  font-size: 10px;
}
.history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
.overlay {
  position: fixed;
  inset: 0;
  background: #060711b3;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}
.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
}
.dialog .check,
.checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 25px;
}
.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 12px;
}
.steps {
  display: flex;
  gap: 6px;
  margin: 20px 0;
}
.steps button {
  flex: 1;
  font-size: 12px;
}
.briefing .summary-grid {
  grid-template-columns: 1fr 1fr;
}
.preview {
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 8px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.calendar > div {
  min-height: 125px;
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--surface);
}
.calendar strong {
  font-size: 12px;
}
.calendar button {
  display: block;
  font-size: 9px;
  text-align: left;
  margin-top: 8px;
  padding: 5px;
}
.timeline {
  overflow: auto;
}
.timeline-row {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-width: 700px;
  margin: 8px 0;
  text-align: left;
}
.timeline-row > div:first-child {
  width: 220px;
  flex-shrink: 0;
  font-size: 12px;
}
.timeline-row small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
.track {
  position: relative;
  height: 45px;
  flex: 1;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 31 - 1px),
    var(--border) calc(100% / 31)
  );
}
.bar {
  position: absolute;
  top: 9px;
  height: 27px;
  border-radius: 5px;
  padding: 5px;
  font-size: 10px;
  overflow: hidden;
}
.pre {
  background: var(--raised);
  color: var(--accent);
}
.live {
  background: var(--accent);
  color: var(--accent-text);
}
.launch-marker {
  position: absolute;
  top: 14px;
  font-size: 12px;
  color: var(--text);
}
.estimated {
  border: 2px dashed var(--muted) !important;
  opacity: 0.7;
}
.admin-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.admin-user > span {
  flex: 1;
}
.admin-user small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(600px, 100%);
  padding: 40px;
  margin: auto;
}
.login h1 {
  font-size: 58px;
  line-height: 1.15;
  margin: 30px 0 10px;
}
.login .brand {
  color: var(--accent);
  margin-bottom: 20px;
}
.login small {
  margin-top: 20px;
}
.login .primary {
  margin-top: 20px;
}
@media (max-width: 1100px) {
  main {
    padding: 25px;
  }
  .shell {
    grid-template-columns: 185px 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .queues {
    grid-template-columns: 1fr;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    flex-direction: column;
  }
  .calendar {
    grid-template-columns: repeat(7, 100px);
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    font-size: 28px;
  }
  .brand span {
    display: inline;
    margin-left: 14px;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar-bottom {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .header-actions button {
    font-size: 10px;
    padding: 9px;
  }
  .summary-grid {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .workspace-meta {
    flex-wrap: wrap;
  }
  .readiness {
    display: block;
  }
  .readiness > div:last-child {
    margin-top: 16px;
  }
  .dates-summary {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
    flex-basis: 100%;
  }
  .requirements > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .requirements select {
    max-width: 100%;
    width: 100%;
  }
  .admin-user {
    flex-wrap: wrap;
  }
  .login h1 {
    font-size: 43px;
  }
  .dialog {
    padding: 24px 20px;
  }
  .links {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}



/* Shared typography and visual priority across every workspace. */
body,
button,
input,
select,
textarea,
h2,
h3 {
  font-family: Overpass, sans-serif;
}
h1,
.brand {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  line-height: 1.05;
}
.brand .brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand span {
  font-family: Overpass, sans-serif;
  letter-spacing: 1.4px;
  font-size: 8px;
  line-height: 1.5;
  margin-top: 6px;
}
.light-logo {
  display: none;
}
:root[data-theme="light"] .dark-logo {
  display: none;
}
:root[data-theme="light"] .light-logo {
  display: block;
}
.primary {
  background: #7900ca !important;
  color: #fff !important;
}
.platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  max-width: 110px;
  height: 32px;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  color: #272335;
  font-size: 9px;
  line-height: 1.1;
  overflow: hidden;
}
.platform-logo img {
  height: 100%;
  max-width: 95px;
  width: auto;
  object-fit: contain;
}
.platform-logo.backerkit-logo {
  width: 116px;
  max-width: 116px;
  display: block;
  padding: 0;
  height: 25px;
  position: relative;
}
.backerkit-logo img {
  position: absolute;
  height: 23px;
  max-width: none;
  width: 224px;
  left: 4px;
  top: 1px;
}
.oracle-service {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.oracle-service .platform-logo {
  height: 22px;
  min-width: 25px;
  width: 25px;
  padding: 0;
}
.oracle-service .platform-logo img {
  width: 25px;
  height: 25px;
  max-width: none;
}
.phase-pre,
.service-chips .phase-pre {
  background: #7900ca !important;
  color: #ffffff !important;
  border-color: #7900ca !important;
}
.phase-live,
.service-chips .phase-live {
  background: #117985 !important;
  color: #ffffff !important;
  border-color: #117985 !important;
}
.phase-late,
.service-chips .phase-late {
  background: #0b1c2b !important;
  color: #78ddd7 !important;
  border-color: #0b1c2b !important;
}
.phase-neutral {
  background: var(--raised);
  color: var(--muted);
}
.phase {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.55px;
  font-size: 10px;
}
.pre {
  background: #7900ca;
  color: #ffffff;
}
.live {
  background: #117985;
  color: #ffffff;
}
.late {
  background: #0b1c2b;
  color: #78ddd7;
}
.phase-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.phase-legend span {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.focus-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}
.focus-tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}
.focus-tile.lead {
  grid-row: span 2;
  justify-content: center;
  padding: 30px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--surface) 84%, #7900ca),
    var(--surface)
  );
  border-color: #76508f;
}
.focus-tile h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 3px 0;
  font-weight: 700;
}
.focus-tile.lead h3 {
  font-size: 29px;
  line-height: 1.12;
  max-width: 430px;
}
.focus-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.focus-urgent .focus-kicker {
  color: var(--danger);
}
.focus-attention .focus-kicker {
  color: var(--accent);
}
.focus-tile .focus-client {
  margin: 0;
  font-size: 11px;
}
.focus-tile .next-action {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  margin: 6px 0;
}
.focus-tile.lead .next-action {
  font-size: 17px;
  margin-top: 16px;
}
.secondary-action {
  font-size: 12px;
  margin: 0;
}
.focus-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted);
}
.more-attention {
  border-top: 1px solid var(--border);
  padding: 15px 0;
  margin-top: 16px;
  font-size: 12px;
}
.more-attention summary {
  cursor: pointer;
  color: var(--muted);
}
.compact-campaigns {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.compact-campaigns button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  font-size: 12px;
}
.compact-campaigns span {
  color: var(--muted);
  white-space: nowrap;
}
.briefing {
  width: min(930px, 100%);
  max-width: 930px;
  padding: 30px;
}
.briefing h2 {
  font-size: 25px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.briefing-context {
  margin-bottom: 20px;
}
.briefing .focus-tile.lead {
  grid-row: span 2;
}
.briefing .focus-tile.lead h3 {
  font-size: 26px;
}
.briefing .focus-tile {
  padding: 17px;
  gap: 5px;
}
.briefing .focus-tile h3 {
  font-size: 17px;
}
.briefing .focus-tile p {
  line-height: 1.35;
}
.briefing .focus-tile .focus-client {
  font-size: 11px;
}
.briefing .focus-bottom {
  padding-top: 8px;
}
.briefing .more-attention {
  padding: 11px 0;
  margin-top: 12px;
}
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-choice {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px !important;
  margin: 0 !important;
  cursor: pointer;
}
.tag-choice.selected {
  background: var(--raised);
  border-color: var(--accent);
}
.tag-choice input {
  width: 14px !important;
  margin: 0 !important;
}
.tag-choice small {
  font-size: 10px;
  color: var(--muted);
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.assigned-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 10px;
}
.assigned-tags span {
  background: var(--raised);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
}
.import-note {
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.calendar > .weekday {
  min-height: unset;
  padding: 8px;
  font-size: 11px;
  text-align: center;
  background: var(--raised);
}
.calendar > .empty-day {
  background: transparent;
}
@media (max-width: 900px) {
  .brand {
    font-size: 22px;
    gap: 7px;
  }
  .brand .brand-mark {
    width: 34px;
    height: 34px;
  }
  .focus-tile.lead {
    padding: 22px;
  }
  .focus-tile.lead h3 {
    font-size: 24px;
  }
  .team-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .focus-tile.lead,
  .briefing .focus-tile.lead {
    grid-row: auto;
  }
  .focus-tile {
    padding: 18px;
  }
  .briefing {
    padding: 20px;
  }
  .briefing .focus-tile.lead h3 {
    font-size: 23px;
  }
  .focus-bottom {
    flex-wrap: wrap;
  }
  .section-heading > span {
    display: none;
  }
  .brand {
    font-size: 24px;
  }
  .brand span {
    display: block;
  }
  .brand .brand-mark {
    width: 36px;
    height: 36px;
  }
  .compact-campaigns button {
    flex-wrap: wrap;
  }
  .phase-legend {
    gap: 5px;
  }
  .phase-legend span {
    font-size: 11px;
  }
}
.platform-control{display:flex;align-items:center;gap:12px}.platform-control select{flex:1}.platform-control .platform-logo{flex-shrink:0}
/* Quiet surfaces. Colour carries phase and action, never every data point. */
:root {
  --end-ink: #eda5c8;
  --end-bg: #372031;
  --bg: #090912;
  --surface: #10101b;
  --raised: #191423;
  --border: #292734;
  --muted: #a4a2b5;
  --accent: #c99aef;
  --pre: #7900ca;
  --live: #117985;
  --late: #0b1c2b;
}
:root[data-theme="light"] {
  --end-ink: #953568;
  --end-bg: #f8e9f1;
  --bg: #f7f7f7;
  --surface: #fff;
  --raised: #f1eaf8;
  --border: #dedbe5;
  --muted: #666074;
  --accent: #7900ca;
}
:root[data-theme="light"] aside {
  background: #fff;
}
:root[data-theme="light"] .focus-tile.lead {
  background: linear-gradient(105deg, #f3e9fc, transparent 75%);
}
:root[data-theme="light"] .focus-urgent .focus-kicker {
  color: #a93b70;
}
:root[data-theme="light"] .phase-tabs .pre-tab.selected {
  background: #f3e9fc;
}
:root[data-theme="light"] .phase-tabs .live-tab.selected {
  background: #eaf7f6;
}
body {
  font-size: 14px;
}
main {
  padding: 28px 36px 48px;
  max-width: 1660px;
}
header {
  margin-bottom: 22px;
}
h1 {
  font-size: 40px;
  line-height: 1.1;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
button,
a.button {
  font-size: 12px;
  padding: 9px 12px;
}
aside {
  padding: 25px 16px;
}
aside .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  line-height: 1;
}
aside .brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  object-fit: contain;
}
aside .brand > div {
  white-space: nowrap;
  line-height: 1.1;
}
aside .brand span {
  font-family: Overpass, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.7px;
  margin-top: 7px;
}
nav {
  gap: 3px;
  margin-top: 36px;
}
nav button {
  padding: 11px 12px;
}
.summary-grid {
  display: flex;
  gap: 0;
  margin: 18px 0 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.stat {
  flex: 1;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0 24px;
  background: none;
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border-right: 0;
}
.stat span {
  font-size: 11px;
}
.stat strong {
  font-size: 28px;
  margin-top: 7px;
  font-weight: 550;
}
.section-heading {
  margin: 25px 0 12px;
}
.section-heading h2,
.section-heading p {
  margin: 0;
}
.section-heading p {
  margin-top: 6px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 2px;
  text-align: left;
  color: var(--text);
}
.text-button:hover {
  color: var(--accent);
  background: none;
  border: 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.data-table th {
  padding: 13px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.65px;
  color: var(--muted);
  text-transform: uppercase;
}
.data-table thead {
  background: color-mix(in srgb, var(--surface) 70%, var(--raised));
}
.data-table td {
  padding: 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:hover:not(.expanded-row) {
  background: color-mix(in srgb, var(--raised) 40%, transparent);
}
.data-table small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.4;
}
.data-table th:first-child {
  text-align: left;
}
.campaign-table {
  min-width: 800px;
}
.campaign-table td:first-child {
  width: 27%;
  min-width: 190px;
}
.campaign-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.campaign-name > span {
  opacity: 0;
}
.campaign-name:hover > span {
  opacity: 1;
}
.campaign-table td:nth-child(2) {
  width: 13%;
}
.campaign-table td:last-child {
  width: 24%;
}
.campaign-table small > .platform-logo {
  margin-left: 8px;
  vertical-align: middle;
  height: 16px;
  min-width: 20px;
  max-width: 64px;
}
.campaign-table small > .platform-logo img {
  max-width: 64px;
}
.date-cell {
  white-space: nowrap;
}
.size-label {
  text-transform: capitalize;
  color: var(--muted);
}
.next-step {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 12px;
}
.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #280a49;
  color: #e2c6f7;
  font-size: 10px;
  border: 1px solid #49305d;
  overflow: hidden;
  margin: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phase {
  text-transform: capitalize;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 10px;
  padding: 5px 8px;
  white-space: nowrap;
}
.phase-pre {
  background: #280a49 !important;
  color: #e0b6ff !important;
  border: 1px solid #713e98;
}
.phase-live {
  background: #0c343c !important;
  color: #87dfdc !important;
  border: 1px solid #22626b;
}
.phase-late {
  background: #0b1c2b !important;
  color: #abc8e8 !important;
  border: 1px solid #385671;
}
.phase-neutral {
  border: 1px solid var(--border);
}
:root[data-theme="light"] .phase-pre {
  background: #f0e0ff !important;
  color: #6500a4 !important;
}
:root[data-theme="light"] .phase-live {
  background: #def4f2 !important;
  color: #075962 !important;
}
:root[data-theme="light"] .phase-late {
  background: #e6edf6 !important;
  color: #284b70 !important;
}
.platform-logo {
  background: transparent;
  padding: 0;
  color: var(--muted);
  border: 0;
  min-width: 28px;
  height: 26px;
  max-width: 90px;
}
.platform-logo img {
  max-width: 90px;
  object-fit: contain;
}
.platform-logo.backerkit-logo {
  width: 95px;
  max-width: 95px;
  height: 26px;
  display: inline-flex;
  position: static;
}
.backerkit-logo img {
  position: static;
  width: auto;
  height: auto;
  max-width: 95px;
  max-height: 26px;
}
.adaptive-logo img {
  filter: brightness(0) invert(1);
}
:root[data-theme="light"] .adaptive-logo img {
  filter: none;
}
.focus-grid {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.focus-tile,
.focus-tile.lead {
  display: grid;
  grid-template-columns: 28px minmax(140px, 1fr) minmax(150px, 1.35fr) 18px;
  width: 100%;
  gap: 16px;
  align-items: center;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  background: none;
  box-shadow: none;
}
.focus-tile:first-child {
  border-top: 0;
}
.focus-tile.lead {
  padding: 24px 20px;
  background: linear-gradient(105deg, #280a4948, transparent 70%);
  border-left: 3px solid #a56adb;
}
.focus-tile.lead:before {
  content: none;
}
.focus-number {
  color: var(--muted);
  font-size: 12px;
}
.focus-tile h3,
.focus-tile.lead h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 4px 0;
}
.focus-tile.lead h3 {
  font-size: 18px;
}
.focus-tile .focus-client {
  margin: 0;
  font-size: 11px;
}
.focus-tile .next-action {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.focus-kicker {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent);
  gap: 8px;
}
.focus-urgent .focus-kicker {
  color: #ec9bbb;
}
.more-attention {
  margin-top: 12px;
  border: 0;
  background: none;
  padding: 0;
}
.more-attention summary {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
}
.briefing {
  width: min(810px, 100%);
  padding: 30px;
}
.briefing-context {
  margin-bottom: 24px;
}
.workspace-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.destination-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.action-menu {
  position: relative;
}
.action-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
}
.action-menu summary span {
  padding-left: 10px;
}
.action-menu > div {
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 10;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 30px #0005;
  border-radius: 9px;
  display: grid;
}
.action-menu button {
  border: 0;
  text-align: left;
}
.section-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 12px 0 24px;
  overflow-x: auto;
}
.section-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  color: var(--muted);
  padding: 12px 0;
  white-space: nowrap;
}
.section-tabs button.selected {
  border-bottom-color: var(--accent);
  color: var(--text);
}
.phase-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.phase-tabs button {
  flex: 1;
  display: grid;
  gap: 7px;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 17px;
}
.phase-tabs button:last-child {
  border-right: 0;
}
.phase-tabs .phase-number {
  font-size: 10px;
  color: var(--muted);
}
.phase-tabs strong {
  font-weight: 600;
  font-size: 13px;
}
.phase-tabs small {
  font-size: 10px;
}
.phase-tabs button.selected {
  box-shadow: inset 0 -3px var(--accent);
  background: var(--raised);
}
.phase-tabs .pre-tab.selected {
  box-shadow: inset 0 -3px #b65df2;
  background: #280a4955;
}
.phase-tabs .live-tab.selected {
  box-shadow: inset 0 -3px #19bab6;
  background: #11798522;
}
.phase-tabs .late-tab.selected {
  box-shadow: inset 0 -3px #5d85ad;
  background: #0b1c2b88;
}
:root[data-theme="light"] .phase-tabs .late-tab.selected {
  background: #e6edf6;
}
.readiness-strip,
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  margin: 12px 0 18px;
  background: var(--raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}
.readiness-strip small {
  display: block;
  margin-top: 5px;
}
.status-banner {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.status-banner small {
  width: 100%;
}
.service-table {
  min-width: 600px;
}
.service-table th:first-child {
  width: 27%;
}
.service-table td:nth-child(2) {
  width: 115px;
}
.service-table button.text-button {
  font-weight: 600;
}
.next-requirement {
  font-size: 11px;
  color: var(--muted);
}
.task-deadline {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
}
.task-deadline-basis { font-size: 10px; color: var(--muted); }
.task-deadline.is-overdue > span:first-child { color: var(--danger, #c03c67); }
.row-chevron {
  display: inline-block;
  width: 23px;
  color: var(--accent);
}
.progress-text {
  font-size: 10px;
  color: var(--muted);
}
progress {
  display: block;
  appearance: none;
  width: 64px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  margin-top: 7px;
}
progress::-webkit-progress-bar {
  background: var(--border);
}
progress::-webkit-progress-value {
  background: #19bab6;
}
.expanded-row > td {
  padding: 0 20px 12px;
  background: color-mix(in srgb, var(--raised) 50%, var(--surface));
}
.requirement-table {
  width: 100%;
  border-collapse: collapse;
}
.requirement-table th {
  padding-top: 17px;
}
.requirement-table td {
  padding: 13px 16px;
  font-size: 11px;
}
.requirement-table select {
  max-width: 210px;
  font-size: 11px;
  padding: 8px;
}
.requirement-table td:first-child {
  width: 50%;
}
.requirement-table td:nth-child(2) {
  width: 20%;
  color: var(--muted);
}
.oracle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  font-size: 12px;
}
.oracle-label small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.oracle-label .platform-logo {
  width: 36px;
  height: 28px;
}
.phase-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.phase-footer label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-footer select {
  font-size: 11px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
}
.detail-layout .data-table th {
  width: 45%;
  border-top: 1px solid var(--border);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}
.detail-layout .data-table td {
  padding: 14px 10px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.team-member small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.links {
  gap: 10px;
  margin-bottom: 24px;
}
.campaign-notes {
  white-space: pre-wrap;
}
.history-row {
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}
.history-entry {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.history-row small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.history-row time {
  color: var(--muted);
  font-size: 10px;
}
.history-row pre {
  max-height: 260px;
  overflow: auto;
  background: var(--surface);
  padding: 12px;
  font-size: 10px;
}
.history-list {
  margin-bottom: 20px;
}
.team-table td:first-child {
  width: 35%;
}
.team-table td:last-child {
  text-align: right;
}
.team-table .avatar {
  width: 40px;
  height: 40px;
}
.team-table .assigned-tags {
  margin: 0;
}
.assigned-tags span {
  font-size: 10px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
}
.team-table .tag-picker {
  padding: 16px 0;
}
.team-table .person {
  white-space: normal;
}
.client-directory {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.client-row {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.client-row > summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
}
.client-row > summary span {
  color: var(--muted);
  font-size: 11px;
}
.client-row[open] > .table-wrap {
  margin-top: 18px;
}
.client-row .toolbar {
  margin: 15px 0 0;
}
.admin-panel {
  border: 0;
  background: none;
}
.admin-user {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.admin-panel > h2 {
  margin-top: 0;
}
.admin-panel p {
  font-size: 12px;
}
.admin-panel[hidden] {
  display: none;
}
.dialog form > label,
.dialog .form-grid > label,
.scope-stage label:not(.check):not(.channel-options label),
.close-flow form > label {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
}
.dialog form > label > :is(input, select, textarea),
.scope-stage label > :is(input:not([type="checkbox"]), select),
.close-flow form > label > :is(input, select) {
  width: 100%;
  min-width: 0;
}
.dialog form > label > textarea {
  min-height: 110px;
  resize: vertical;
}
.dialog form > small {
  display: block;
  line-height: 1.6;
  color: var(--muted);
}
.dialog .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.reminder-dialog {
  max-width: 580px;
}
.reminder-dialog > h2 {
  margin-bottom: 14px;
}
.reminder-dialog form > label {
  margin-bottom: 16px;
}
.reminder-dialog form > label > textarea {
  min-height: 82px;
}
.reminder-dialog .dialog-footer {
  padding-top: 16px;
  margin-top: 18px;
}
.reminder-dialog > p {
  margin: 10px 0 18px;
  max-width: 460px;
}
.reminder-campaign {
  display: grid;
  gap: 5px;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: var(--raised);
  border-radius: 8px;
}
.reminder-campaign small,
.reminder-time small {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.reminder-schedule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-bottom: 20px;
  align-items: end;
}
.reminder-schedule > label {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
.reminder-schedule input {
  width: 100%;
}
.reminder-time {
  display: grid;
  gap: 7px;
  padding: 5px 10px 10px;
}
.reminder-time strong {
  font-size: 17px;
}
.reminder-time strong span {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.scope-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.scope-label h3 {
  margin: 0;
}
.scope-label small {
  color: var(--muted);
}
.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.service-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
}
.service-options label.chosen {
  background: var(--raised);
}
.service-options input,
.channel-options input {
  width: 15px;
  height: 15px;
  accent-color: #7900ca;
  flex-shrink: 0;
}
.scope-stage-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 20px 0;
}
.scope-stage-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 10px 6px;
}
.scope-stage-tabs button[aria-selected="true"] {
  background: var(--raised);
  color: var(--accent);
  font-weight: 700;
}
.scope-stage h3 {
  font-size: 13px;
  margin: 0 0 14px;
}
.channel-options {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.channel-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}
.channel-options label.chosen {
  border-color: var(--accent);
  background: var(--raised);
}
.scope-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.prelaunch-destination {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.prelaunch-destination .oracle-label {
  margin: 12px 0 22px;
  font-size: 12px;
}
.custom-channel {
  margin: 0 10px 15px 0;
}
.campaign-sow {
  margin-top: 28px;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.sow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 16px;
}
.sow-toolbar small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.sow-versions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.sow-viewer {
  width: 100%;
  height: 72vh;
  min-height: 460px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.pdf-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.pdf-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pdf-controls .button-group {
  margin: 0;
  gap: 10px;
}
.pdf-controls span {
  font-size: 12px;
  color: var(--muted);
}
.pdf-pages {
  height: 65vh;
  min-height: 350px;
  overflow: auto;
  padding: 16px;
  background: #38373f;
  position: relative;
}
.pdf-pages canvas {
  display: block;
  margin: auto;
  background: white;
  box-shadow: 0 3px 14px #0005;
  max-width: none;
}
.pdf-loading {
  position: absolute;
  top: 15px;
  left: 22px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
}
.pdf-page-text {
  padding: 14px 18px;
  font-size: 12px;
}
.pdf-page-text p {
  white-space: pre-wrap;
  line-height: 1.6;
}
.sow-empty {
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  margin: 28px 0;
}
.sow-empty > span {
  font-size: 32px;
  color: var(--accent);
}
.sow-empty p {
  max-width: 390px;
  margin: 12px auto 24px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .service-options {
    grid-template-columns: 1fr;
  }
  .scope-stage-tabs button {
    font-size: 11px;
  }
  .dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .sow-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .reminder-schedule {
    grid-template-columns: 1fr auto;
  }
}
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 26px;
  padding: 0 0 6px;
}
.admin-section-heading h2 {
  margin: 0;
}
.admin-panel > h2 {
  margin-bottom: 22px;
}
.admin-panel > button {
  margin-bottom: 24px;
}
.admin-panel .admin-user {
  padding: 20px 0;
  gap: 20px;
}
.admin-panel .admin-user small {
  margin-top: 7px;
}
.admin-panel + .admin-panel:not([hidden]) {
  margin-top: 32px;
}
.conversation {
  margin-top: 36px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}
.conversation .section-heading select {
  width: auto;
  max-width: 150px;
  font-size: 11px;
}
.conversation-feed {
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment > div {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-meta strong {
  font-size: 12px;
}
.comment-meta span {
  font-size: 9px;
  color: var(--accent);
  background: var(--raised);
  padding: 3px 6px;
  border-radius: 4px;
}
.comment-meta time {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
}
.comment p {
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 9px 0 0;
  background: var(--surface);
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
  display: inline-block;
}
.comment-composer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.comment-composer > div {
  flex: 1;
  min-width: 0;
}
.comment-composer label {
  font-size: 11px;
  margin-bottom: 8px;
}
.comment-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  font-size: 12px;
  background: var(--surface);
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.composer-footer small {
  font-size: 10px;
}
.close-flow {
  width: min(700px, 100%);
}
.close-flow > h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  margin: 12px 0 0;
}
.close-steps {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 18px 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}
.close-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.close-steps li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}
.close-steps li.current {
  color: var(--accent);
}
.close-steps li.current > span {
  background: #7900ca;
  color: #fff;
}
.close-steps li.done > span {
  background: #117985;
  color: #fff;
}
.close-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.close-flow .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.close-flow .form-grid label {
  font-size: 12px;
}
.close-flow .form-grid + .campaign-page-field {
  margin-top: 15px;
}
.close-flow .dialog-footer {
  flex-wrap: wrap;
}
.close-flow small {
  display: block;
  margin-top: 14px;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin: 0;
}
.inline-label select {
  width: auto;
  font-size: 12px;
}
.year-hero {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: linear-gradient(110deg, #280a4955, transparent 80%);
}
.year-hero h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  margin: 12px 0 0;
}
.year-hero p {
  margin: 7px 0;
}
.year-total {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.year-total strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 62px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.year-total span {
  color: var(--muted);
  font-size: 12px;
}
.year-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  flex-wrap: wrap;
}
.year-highlight > span:last-child {
  color: var(--muted);
  font-size: 12px;
}
.data-caption {
  font-size: 11px;
}
.year-empty {
  text-align: center;
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.completion-record {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 12px;
}
.completion-record span {
  color: var(--muted);
}
.completion-record p {
  width: 100%;
}
:root[data-theme="light"] .year-hero {
  background: linear-gradient(110deg, #f1e6fb, #fff 85%);
}
.calendar {
  border-color: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.calendar > div {
  background: var(--surface);
  min-height: 105px;
}
.calendar > div.weekday {
  min-height: 0;
  padding: 10px;
}
.calendar button {
  padding: 7px;
  font-size: 10px;
  line-height: 1.4;
}
.button-group,
.dialog-footer,
.close-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.button-group {
  margin-top: 20px;
}
.button-group > :is(button, .button) {
  margin: 0;
}
.section-tabs {
  flex-wrap: wrap;
  row-gap: 10px;
}
.phase-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  text-transform: none;
}
.phase-control > span {
  font-size: 11px;
  opacity: 0.8;
}
.inline-close {
  max-width: 800px;
  margin: 32px auto 42px;
}
.inline-close .close-flow {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.inline-close .close-flow h2 {
  font-size: 32px;
}
.close-flow :is(input, textarea),
.form-grid :is(input, select) {
  width: 100%;
}
.launch-record {
  padding: 20px 0 4px;
}
.launch-record label {
  max-width: 300px;
  margin: 20px 0;
  display: grid;
  gap: 8px;
}
.reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.reminder-row small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.reminder-row p {
  white-space: pre-wrap;
  margin-bottom: 0;
}
.reminder-row button {
  flex-shrink: 0;
}
.calendar .calendar-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calendar .calendar-day-heading strong {
  font-size: 12px;
  color: var(--muted);
}
.calendar .add-on-date {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
.calendar .add-on-date:hover {
  background: var(--raised);
  color: var(--accent);
}
.calendar > div:not(.weekday):not(.empty-day) {
  padding: 10px;
  min-height: 142px;
}
.calendar button:not(.add-on-date) {
  display: grid;
  gap: 3px;
  text-align: left;
  width: 100%;
  padding: 9px 10px;
  margin: 0 0 7px;
  border-radius: 7px;
  font-size: 11px;
  border: 0;
  border-left: 3px solid currentColor;
}
.calendar .event-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.calendar .phase-pre {
  background: #29123e;
  color: #d5a5ff;
}
.calendar .phase-live {
  background: #12343a;
  color: #83ded7;
}
.phase-end,
.calendar .phase-end {
  background: var(--end-bg);
  color: var(--end-ink);
}
.phase-reminder,
.calendar .phase-reminder {
  background: #202b46;
  color: #abc6ff;
}
:root[data-theme="light"] .calendar .phase-pre {
  background: #f0e4ff;
  color: #7322ad;
}
:root[data-theme="light"] .calendar .phase-live {
  background: #e2f5f1;
  color: #14695f;
}
:root[data-theme="light"] .phase-reminder {
  background: #e9effc;
  color: #345996;
}
.calendar-add {
  margin-left: auto;
}
.month-picker {
  position: relative;
  min-width: 230px;
  z-index: 5;
}
.month-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 13px 16px;
  background: var(--surface);
  border-color: var(--border);
}
.month-trigger strong {
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.month-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 16px 44px #0005;
}
.year-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.year-stepper button {
  border: 0;
  background: transparent;
  padding: 3px 12px;
  font-size: 22px;
}
.month-wheel {
  height: 136px;
  overflow-y: auto;
  padding: 48px 0;
  mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.month-wheel::-webkit-scrollbar {
  display: none;
}
.month-wheel button {
  width: 100%;
  display: flex;
  align-items: center;
  scroll-snap-align: center;
  border: 0;
  background: transparent;
  padding: 0 14px;
  min-height: 40px;
  height: 40px;
  text-align: left;
  border-radius: 8px;
  font-size: 14px;
}
.month-face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transform-origin: center;
  will-change: transform;
}
.month-wheel button[aria-selected="true"] {
  background: var(--raised);
  color: var(--accent);
  font-weight: 700;
}
.month-wheel button:hover {
  background: var(--raised);
}
.month-wheel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.month-dropdown .this-month {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  padding-top: 14px;
}
.coming-soon {
  padding: 44px 28px;
  max-width: 620px;
}
.coming-soon h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  margin: 14px 0;
}
.future-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  color: var(--muted);
}
.future-connections > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .month-face {
    transform: none !important;
    will-change: auto;
  }
  .month-wheel {
    scroll-behavior: auto;
  }
}
@media (max-width: 760px) {
  .inline-close .close-flow {
    padding: 22px 18px;
  }
  .reminder-row {
    flex-direction: column;
    gap: 10px;
  }
  .month-picker {
    min-width: 210px;
  }
  .calendar-add {
    margin-left: 0;
  }
  .phase-control {
    flex-wrap: wrap;
  }
  .button-group {
    gap: 10px;
  }
  .button-group > * {
    flex: 1 1 auto;
  }
}
.timeline-row {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
}
.track {
  background: repeating-linear-gradient(
    to right,
    var(--surface) 0,
    var(--surface) calc(25% - 1px),
    var(--border) 25%
  );
}
.timeline-axis {
  display: flex;
  gap: 20px;
  min-width: 700px;
  padding: 12px;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.timeline-axis > span {
  width: 220px;
  flex-shrink: 0;
}
.timeline-axis > div {
  position: relative;
  flex: 1;
  height: 12px;
}
.timeline-axis > div > span {
  position: absolute;
}
.unconfirmed-end {
  position: absolute;
  right: 8px;
  top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.pre {
  background: #7900ca;
  color: #fff;
}
.live {
  background: #117985;
  color: #fff;
}
.late {
  background: #0b1c2b;
  color: #abc8e8;
  border: 1px solid #385671;
}
.compact-campaigns button {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 13px 0;
}
.attention-list button {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0;
  background: none;
}
@media (min-width: 1500px) {
  .campaign-table td {
    padding-top: 19px;
    padding-bottom: 19px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 25px;
  }
  .workspace-toolbar {
    align-items: flex-start;
  }
  .person > .muted {
    display: none;
  }
  .campaign-table {
    min-width: 720px;
  }
  .campaign-table th:last-child,
  .campaign-table td:last-child {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .phase-tabs button {
    padding: 14px 10px;
  }
}
@media (max-width: 760px) {
  .service-table {
    min-width: 0;
  }
  .service-table > thead > tr > th:nth-child(3),
  .service-table > tbody > tr:not(.expanded-row) > td:nth-child(3) {
    display: none;
  }
  .service-table > tbody > tr > td,
  .service-table > thead > tr > th {
    padding: 14px 10px;
  }
  .service-table > tbody > tr > td:first-child {
    width: 55%;
  }
  .service-table .text-button {
    font-size: 11px;
  }
  .requirement-table {
    min-width: 520px;
  }
  .close-flow .form-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 20px 16px;
  }
  h1 {
    font-size: 32px;
  }
  .summary-grid {
    flex-wrap: wrap;
    gap: 20px 0;
  }
  .stat {
    flex-basis: 50%;
    padding: 0 16px;
  }
  .stat:nth-child(3) {
    padding-left: 0;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat strong {
    font-size: 24px;
  }
  .focus-tile,
  .focus-tile.lead {
    grid-template-columns: 20px 1fr 12px;
    gap: 12px;
    padding: 18px 15px;
  }
  .focus-tile .next-action {
    grid-column: 2;
    grid-row: 2;
  }
  .focus-tile > .focus-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .focus-tile.lead h3 {
    font-size: 16px;
  }
  .briefing {
    padding: 24px 20px;
  }
  .phase-tabs {
    overflow-x: auto;
  }
  .phase-tabs button {
    min-width: 112px;
  }
  .section-tabs {
    gap: 22px;
  }
  .workspace-meta .destination-label {
    margin-left: 0;
    width: 100%;
  }
  .workspace-toolbar > .person {
    width: 100%;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions > button,
  .action-menu summary {
    font-size: 11px;
  }
  .team-table {
    min-width: 550px;
  }
  .phase-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-heading > span {
    display: none;
  }
  .history-entry {
    flex-direction: column;
  }
  .campaign-table {
    min-width: 620px;
  }
  .campaign-table th:nth-child(5),
  .campaign-table td:nth-child(5) {
    display: none;
  }
  .calendar {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
  }
  .action-menu > div {
    right: auto;
    left: 0;
  }
}
.flux-options {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 16px 0;
}
.flux-options .check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.flux-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
.timeline-help {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 22px;
}
.timeline .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 0;
}
.timeline .bar > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline .bar:first-child {
  border-radius: 5px 0 0 5px;
}
.timeline .bar:last-child {
  border-radius: 0 5px 5px 0;
}
.timeline .bar.open-ended {
  border-right: 3px dotted currentColor;
}
.late-check-in {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-left: 3px solid #549ce8;
  border-radius: 12px;
}
.late-check-in h2 {
  margin: 8px 0;
}
.late-check-in p {
  color: var(--muted);
  margin: 0 0 20px;
}
.check-in-actions,
.reminder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.late-end-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-top: 20px;
}
.late-end-form label {
  display: grid;
  gap: 8px;
}
.late-end-form small {
  width: 100%;
  color: var(--muted);
}
.reminder-audience {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.reminder-audience summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.reminder-audience summary span {
  color: var(--muted);
}
.reminder-audience fieldset {
  border: 0;
  padding: 8px 0;
  margin: 12px 0;
}
.reminder-audience legend {
  font-weight: 600;
}
.reminder-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  max-height: 160px;
  overflow: auto;
  padding: 4px;
}
.reminder-dialog .reminder-people label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.reminder-dialog .reminder-people input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.personal-reminders {
  margin: 32px 0;
}
.personal-reminder {
  display: grid;
  grid-template-columns: 110px 1fr 20px;
  gap: 20px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 4px;
  text-align: left;
  background: transparent;
}
.personal-reminder small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.personal-reminder > span {
  min-width: 0;
}
.personal-reminders details {
  padding-top: 14px;
}
.campaign-workspace > footer.conversation {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.campaign-table caption {
  padding: 12px 18px;
  text-align: left;
  font-size: 11px;
  color: var(--muted);
}
.campaign-platforms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}
.campaign-platforms .platform-logo {
  margin: 0;
}
.platform-pending {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
}
.priority-client {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 11px;
  margin-left: 8px;
  white-space: nowrap;
}
.client-profile {
  padding: 22px 4px 14px;
}
.client-profile > .section-heading {
  margin: 0 0 20px;
}
.client-profile > .section-heading p {
  max-width: 600px;
  white-space: pre-wrap;
}
.client-profile > .table-wrap {
  margin: 16px 0;
}
.client-management {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}
.campaign-table td:first-child > small {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.campaign-table td:first-child .campaign-platforms {
  margin-left: 0;
}
/* Size visible artwork, not the transparent canvas supplied by each brand. */
.platform-logo.platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 24px;
  max-width: none;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
  vertical-align: middle;
}
.logo-artwork {
  display: block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.calendar .calendar-day-heading {
  min-height: 44px;
  margin-bottom: 6px;
}
.calendar .add-on-date {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
  border-radius: 8px;
  touch-action: manipulation;
}
.calendar .add-on-date svg {
  pointer-events: none;
}
.calendar .add-on-date:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.parent-phase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.parent-phase-tabs button {
  min-width: 0;
}
.stage-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 0 8px;
  overflow-x: auto;
}
.stage-tabs button {
  background: transparent;
  border-color: transparent;
  padding: 9px 15px;
  white-space: nowrap;
  color: var(--muted);
}
.stage-tabs button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
  border-color: var(--border);
}
.campaign-table .phase-stage-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.phase-picker {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.phase-picker fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.phase-picker legend {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}
.parent-phase-options,
.stage-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.parent-phase-options button,
.stage-options button {
  min-height: 44px;
  padding: 10px;
}
.phase-picker button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--raised);
}
.phase-picker .live-choice[aria-pressed="true"] {
  color: #87dfdc;
  border-color: #22626b;
  background: #0c343c;
}
.phase-picker .late-choice[aria-pressed="true"] {
  color: #abc8e8;
  border-color: #385671;
  background: #0b1c2b;
}
:root[data-theme="light"] .phase-picker .live-choice[aria-pressed="true"] {
  color: #075962;
  background: #def4f2;
}
:root[data-theme="light"] .phase-picker .late-choice[aria-pressed="true"] {
  color: #284b70;
  background: #e6edf6;
}
.phase-picker fieldset p {
  margin: 12px 0 0;
  font-size: 12px;
}
.phase-tracking {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.phase-tracking button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 13px;
}
.tracking-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}
.parent-phase-tabs button.optional-phase,
.parent-phase-tabs button.optional-phase.selected {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
}
.parent-phase-tabs button.optional-phase .phase-number {
  color: var(--muted);
  background: var(--raised);
}
.optional-phase-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.optional-phase-panel h3 {
  margin: 0 0 10px;
}
.optional-phase-panel p {
  margin: 0 0 10px;
  max-width: 62ch;
}
.optional-phase-panel small,
.task-carry-note,
.task-carry-label {
  color: var(--muted);
}
.optional-phase-panel button {
  flex-shrink: 0;
}
.task-carry-note {
  font-size: 12px;
  margin: -4px 0 18px;
}
.automatic-task-status {
  display: block;
  font-size: 12px;
}
.automatic-task-status small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.phase-picker button:disabled {
  cursor: not-allowed;
}
@media (max-width: 620px) {
  .optional-phase-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .parent-phase-tabs button {
    padding: 14px 10px;
  }
  .stage-tabs button {
    padding: 9px 11px;
  }
}

/* SOW references use the same theme tokens and inline forms as campaign work. */
.sow-link-form { display: grid; gap: 16px; max-width: 680px; padding: 22px; margin: 24px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sow-link-form label { display: grid; gap: 8px; min-width: 0; }
.sow-link-form input { width: 100%; min-width: 0; box-sizing: border-box; }
.sow-link-form button { justify-self: start; }
.sow-link-form p, .sow-link-form h3 { margin: 0; line-height: 1.6; }
.sow-drive-reference { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sow-drive-reference p { color: var(--muted); line-height: 1.6; margin: 8px 0 0; max-width: 680px; }
.sow-toolbar > div { min-width: 0; overflow-wrap: anywhere; }
.sow-toolbar a { flex-shrink: 0; }
.sow-versions select { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .sow-versions { align-items: stretch; flex-direction: column; } .sow-link-form { padding: 16px; } }
/* Shared onboarding language, with the public form isolated from the staff shell. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.creation-route {
  max-width: 680px;
}
.creation-options {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.creation-options > button {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 7px 14px;
  padding: 24px;
  text-align: left;
}
.creation-options strong {
  font-size: 17px;
  grid-column: 2;
}
.creation-options > button > span:not(.route-number) {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.creation-options .route-number {
  grid-column: 1;
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 13px;
  padding-top: 4px;
}
.creation-options b {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 22px;
  color: var(--accent);
}
.frame-dialog {
  width: min(760px, 100%);
}
.frame-dialog form {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.frame-dialog form > label,
.form-pair > label,
.resource-editor label {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.frame-dialog input:not([type="checkbox"]),
.frame-dialog select,
.frame-dialog textarea,
.resource-editor input {
  width: 100%;
  min-width: 0;
}
.frame-dialog small {
  color: var(--muted);
  line-height: 1.5;
}
.form-pair {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.frame-services {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.frame-services legend {
  padding: 0 8px;
  font-weight: 650;
}
.frame-services p {
  margin: 0 0 16px;
  color: var(--muted);
}
.frame-services > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.frame-services label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
.frame-services input[type="checkbox"],
.review-ack input {
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--accent);
}
.optional-fields {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.optional-fields summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
}
.optional-fields summary span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px;
}
.optional-fields > label {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.resource-editor {
  display: grid;
  gap: 16px;
}
.resource-editor > button {
  justify-self: start;
}
.resource-editor-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.6fr) 40px;
  gap: 12px;
  align-items: end;
}
.resource-editor-row > button {
  height: 42px;
  font-size: 20px;
  padding: 0;
}
.client-portal {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.client-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.client-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.client-brand > span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  line-height: 1;
}
.client-brand small {
  display: block;
  font:
    600 9px/1.4 "Overpass",
    sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 7px;
}
.client-gate {
  width: min(580px, 100%);
  padding: 64px 32px;
  margin: 0 auto;
}
.client-gate h1 {
  font-size: 56px;
  margin: 20px 0;
}
.client-gate > p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  font-size: 16px;
}
.client-gate form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 16px;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.client-gate form > label {
  font-weight: 600;
}
.client-gate form > small {
  text-align: center;
  color: var(--muted);
  margin-top: 4px;
}
.password-input {
  display: flex;
  gap: 8px;
}
.password-input input {
  width: 100%;
  min-width: 0;
}
.client-portal button,
.client-portal .button {
  min-height: 42px;
  font-size: 14px;
}
.client-content {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 40px 64px;
}
.client-title {
  margin-bottom: 32px;
  max-width: 800px;
}
.client-title h1 {
  margin: 12px 0;
  font-size: 46px;
  overflow-wrap: anywhere;
}
.client-title > p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.service-labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.service-labels span {
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface);
}
.client-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 30px;
}
.client-main {
  min-width: 0;
}
.client-resources {
  position: sticky;
  top: 24px;
  padding: 24px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
}
.client-resources h2 {
  margin: 0 0 12px;
}
.client-resources > p,
.resource-help p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.client-resources > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  line-height: 1.5;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.client-resources > a span {
  flex: none;
}
.resource-help {
  margin-top: 24px;
}
.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.onboarding-steps button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  background: transparent;
  border-color: transparent;
}
.onboarding-steps button > span {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.onboarding-steps button[aria-current="step"] {
  background: var(--raised);
  color: var(--accent);
  border-color: var(--border);
}
.onboarding-steps button[aria-current="step"] > span {
  background: var(--accent);
  color: white;
  border-color: transparent;
}
.client-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.client-form-panel h2 {
  font-size: 24px;
  margin: 12px 0;
}
.client-form-panel > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.client-fields {
  display: grid;
  gap: 24px;
}
.client-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.client-field > label {
  font-weight: 600;
}
.client-field input,
.client-field textarea,
.client-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
}
.client-field textarea {
  resize: vertical;
  min-height: 110px;
}
.client-field small {
  line-height: 1.55;
  color: var(--muted);
}
.required-mark {
  color: var(--accent);
}
.confirmed-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}
.confidence-control {
  display: block;
  min-width: 0;
}
.client-field .field-error {
  color: var(--danger);
}
.client-field [aria-invalid="true"] {
  border-color: var(--danger);
}
.client-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 30px;
}
.client-form-actions > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.client-form-actions > .primary:last-child {
  margin-left: auto;
}
.form-notice,
.submitted-banner {
  padding: 20px 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.submitted-banner {
  background: #e9f6f3;
  color: #13594e;
}
.submitted-banner > span {
  display: block;
  margin: 8px 0;
  font-size: 12px;
}
.submitted-banner p {
  margin: 0;
}
.review-ack {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  line-height: 1.65;
}
.review-ack input {
  margin-top: 3px;
}
.client-footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.answer-summary {
  display: grid;
  gap: 12px;
}
.answer-summary > details,
.creator-record,
.client-draft {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
.answer-summary summary,
.creator-record > summary,
.client-draft > summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 650;
}
.answer-summary dl,
.creator-record > dl {
  padding: 0 20px 8px;
  margin: 0;
}
.answer-summary dl > div,
.creator-record dl > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.answer-summary dt,
.creator-record dt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.answer-summary dd,
.creator-record dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 13px;
}
.answer-confidence {
  display: table;
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 5px;
}
.answer-confidence.provisional {
  color: var(--accent);
  background: var(--raised);
}
.campaign-intake {
  padding: 28px;
  margin: 24px 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
}
.campaign-intake .section-heading {
  gap: 20px;
  align-items: flex-start;
}
.intake-status {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
}
.intake-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.intake-actions .action-menu {
  position: relative;
}
.intake-actions .action-menu summary {
  cursor: pointer;
  padding: 10px;
  font-size: 12px;
}
.intake-actions .action-menu > div {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 10px 30px #0002;
  display: grid;
  gap: 8px;
}
.share-invitation {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.share-invitation label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.share-invitation textarea {
  width: 100%;
  resize: vertical;
  min-height: 220px;
  font-size: 13px;
  line-height: 1.7;
}
.share-invitation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.local-share-note {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  line-height: 1.6;
}
.share-invitation .share-text-heading {
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 12px;
}
.share-text-heading label {
  margin: 0;
}
.copy-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share-invitation textarea {
  min-height: 190px;
}
.share-invitation .share-credentials {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 18px;
}
.share-credentials > div {
  min-width: 0;
}
.share-credentials label {
  font-size: 12px;
  margin-bottom: 8px;
}
.copy-field {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.copy-field input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.copy-field button {
  display: grid;
  place-items: center;
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
}
.share-invitation .share-bottom {
  align-items: center;
  justify-content: space-between;
}
.share-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .share-invitation .share-credentials {
    grid-template-columns: minmax(0, 1fr);
  }
}
.intake-resource-form {
  border-block: 1px solid var(--border);
  padding: 20px 0;
  margin: 24px 0;
}
.intake-record-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 24px 0 16px;
  line-height: 1.7;
}
.campaign-intake > h3 {
  margin: 28px 0 16px;
}
.provisional-details {
  margin-top: 28px;
}
.provisional-details > p {
  color: var(--muted);
  line-height: 1.6;
}
.provisional-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.provisional-details small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}
.provisional-details strong {
  font-size: 13px;
  font-weight: 600;
}
.confirmed-note {
  color: var(--muted);
  font-size: 12px;
}
.onboarding-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--raised);
}
.client-draft {
  margin-top: 20px;
  padding-bottom: 16px;
}
.client-draft > p,
.client-draft > .answer-summary {
  margin: 12px 20px;
}
@media (max-width: 850px) {
  .client-columns {
    grid-template-columns: 1fr;
  }
  .client-resources {
    position: static;
  }
  .client-content {
    padding: 32px 24px;
  }
  .client-header {
    padding: 22px 24px;
  }
}
@media (max-width: 560px) {
  .form-pair,
  .frame-services > div,
  .confirmed-input {
    grid-template-columns: 1fr;
  }
  .resource-editor-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .resource-editor-row > label {
    grid-column: 1;
  }
  .resource-editor-row > button {
    grid-column: 2;
    grid-row: 2;
  }
  .client-gate {
    padding: 38px 20px;
  }
  .client-gate h1 {
    font-size: 46px;
  }
  .client-gate form,
  .client-form-panel,
  .campaign-intake,
  .share-invitation {
    padding: 20px;
  }
  .client-content {
    padding: 28px 16px;
  }
  .client-title h1 {
    font-size: 38px;
  }
  .client-form-actions > span {
    display: none;
  }
  .answer-summary dl > div,
  .creator-record dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .provisional-details > div,
  .campaign-intake .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .creation-options > button {
    padding: 18px;
    grid-template-columns: 26px 1fr 16px;
    gap: 8px;
  }
  .creation-options strong {
    font-size: 15px;
  }
}

.client-picker {
  min-width: 0;
  margin: 16px 0;
}
.form-pair > .client-picker {
  margin: 0;
}
.client-picker > label,
.inline-client > label:not(.inline-client-priority) {
  display: grid;
  gap: 8px;
}
.client-picker input:not([type="checkbox"]),
.client-picker select {
  width: 100%;
  min-width: 0;
}
.inline-client {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.inline-client-priority {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  line-height: 1.5;
}
.inline-client-priority input {
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--accent);
}
.inline-client > small {
  display: block;
  margin: 8px 0 20px;
  color: var(--muted);
}
.inline-client-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.client-matches {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
#onboarding-section-title {
  scroll-margin-top: 24px;
}

.share-invitation .invitation-message {
  display: block;
  margin-top: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  line-height: 1.65;
  color: var(--text);
  user-select: text;
}

.client-gate h1 {
  overflow-wrap: anywhere;
}
.client-gate .client-gate-client {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px;
}
.client-gate-client > span {
  font-size: 12px;
  color: var(--muted);
}
.client-gate-client > strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.timezone-field {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.timezone-picker {
  min-width: 0;
}
.timezone-picker > input {
  width: 100%;
}
.timezone-options {
  max-height: 248px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  margin-top: 6px;
  background: var(--surface);
}
.timezone-options button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
}
.timezone-options button[aria-selected="true"],
.timezone-options button:hover {
  background: var(--raised);
  color: var(--accent);
}
.timezone-options span {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.timezone-help {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.timezone-help button {
  justify-self: start;
  padding: 6px 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--accent);
}
.client-field.schedule-field {
  container-type: inline-size;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
@container (min-width: 720px) {
  .confirmed-input:has(.time-picker) > .confidence-control {
    padding-top: 21px;
  }
}
.schedule-field > label {
  font-size: 15px;
}
.time-conversion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--raised);
  font-size: 12px;
  margin-top: 14px;
}
.time-conversion strong {
  font-weight: 600;
}
.time-conversion.needs-time {
  color: var(--muted);
}
.clock-choice {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
}
.clock-choice legend {
  font-size: 12px;
  padding: 0 6px;
}
.clock-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
}
.clock-choice input {
  width: auto;
  flex-shrink: 0;
}
.schedule-original {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .timezone-options button {
    display: grid;
    gap: 4px;
  }
}
/* One shell and one inset scroll viewport for every modal. */
.dialog {
  --dialog-inset: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: var(--dialog-inset);
  overflow: hidden;
  box-shadow: 0 24px 80px #0003;
}
.dialog-body {
  min-height: 0;
  min-width: 0;
  padding: 4px 22px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  border-radius: 10px;
  scroll-padding-block: 24px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 20px 14px 18px 22px;
}
.dialog-heading > div {
  min-width: 0;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.dialog-heading .eyebrow {
  display: block;
  margin-bottom: 6px;
}
.dialog-body > p:first-child {
  margin-top: 0;
}
.briefing .dialog-heading h2,
.close-flow .dialog-heading h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 35px;
  font-weight: 400;
}
.dialog-body > label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
}
.dialog-close {
  flex: 0 0 36px;
  margin-top: -6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-color: transparent;
  background: var(--surface);
}
.dialog-close:hover {
  background: var(--raised);
}
.delete-campaign-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  margin-left: auto;
}
.danger-button {
  background: #a92843;
  border-color: #a92843;
  color: #fff;
}
.danger-button:hover {
  background: #8e1e37;
  border-color: #8e1e37;
}
.briefing .dialog-body > .primary {
  margin-top: 20px;
}
/* Textareas and optional recipients must not introduce another frame-edge bar. */
.dialog-body textarea {
  max-width: 100%;
  resize: vertical;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.dialog-body .reminder-people {
  max-height: none;
  overflow: visible;
}
@media (max-width: 560px) {
  .overlay {
    padding: 12px;
  }
  .dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog-body {
    padding: 4px 12px 18px;
  }
  .dialog-heading {
    padding: 16px 8px 18px 12px;
    gap: 10px;
  }
}

.client-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.client-management {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.delete-choice {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.delete-choice legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.delete-choice > label {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.delete-choice > label:has(input:checked) {
  border-color: var(--accent);
  background: var(--raised);
}
.delete-choice input,
.delete-confirm-check input {
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.delete-choice small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.dialog-body > .delete-confirm-check {
  display: flex;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}
.delete-campaign-list {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.delete-campaign-list ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.delete-campaign-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.delete-campaign-list small {
  color: var(--muted);
  white-space: nowrap;
}
.platform-picker {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 18px 0;
}
.platform-picker legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.platform-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.platform-option {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.platform-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0;
}
.platform-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 112px;
  padding: 20px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
.platform-tile-mark {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.platform-tile .platform-logo.platform-mark {
  height: 38px;
}
.platform-tile-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
}
.platform-tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--accent);
  opacity: 0;
}
.platform-option:hover .platform-tile {
  border-color: var(--accent);
  background: var(--raised);
}
.platform-option input:checked + .platform-tile {
  border-color: var(--accent);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.platform-option input:checked + .platform-tile .platform-tile-check {
  opacity: 1;
}
.platform-option input:focus-visible + .platform-tile {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.platform-picker[aria-invalid="true"] .platform-tile {
  border-color: var(--danger);
}
.client-field > .platform-picker {
  margin: 0;
}
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 20px;
  background: var(--raised);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
  white-space: nowrap;
}
.priority-badge svg {
  flex-shrink: 0;
}
.priority-badge.compact {
  width: 25px;
  height: 25px;
  padding: 4px;
  border-radius: 8px;
}
.client-row summary strong + .priority-badge {
  margin-left: 10px;
}
.selected-client-priority {
  margin-top: 9px;
}
@media (max-width: 480px) {
  .platform-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .platform-tile {
    min-height: 100px;
  }
}
.date-picker {
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}
.date-entry {
  display: flex;
  align-items: start;
  gap: 10px;
}
.date-entry.with-time {
  display: grid;
  gap: 12px;
}
.time-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.time-selects {
  display: flex;
  align-items: end;
  gap: 8px;
}
.time-selects label {
  display: grid;
  gap: 5px;
  margin: 0;
  flex: 0 0 78px;
}
.time-selects label > span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.time-selects select {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.time-colon {
  align-self: end;
  padding-bottom: 12px;
}
.time-selects > small {
  padding: 0 0 5px 6px;
  overflow-wrap: anywhere;
  line-height: 1.5;
  color: var(--muted);
}
.time-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.time-shortcuts button {
  padding: 6px 12px;
  min-height: 34px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.time-shortcuts button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--raised);
}
.optional-time {
  justify-self: start;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  text-align: left;
}
@container (min-width: 540px) {
  .date-entry.with-time:has(.time-picker) {
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 1fr);
    gap: 14px;
  }
  .date-entry.with-time:has(.time-picker) > .date-input-wrap {
    margin-top: 21px;
  }
  .date-entry.with-time > .optional-time {
    grid-column: 1 / -1;
  }
}
.date-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.date-input-wrap input {
  width: 100%;
  min-width: 0;
  padding-right: 48px;
}
.date-trigger {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.date-trigger:hover,
.date-trigger[aria-expanded="true"] {
  color: var(--accent);
  background: var(--raised);
}
.date-time-input {
  display: block;
  position: relative;
  flex: 0 0 120px;
  margin: 0;
}
.date-time-input input {
  width: 100%;
  min-width: 0;
  padding-right: 44px;
}
.date-time-input > span:last-child {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}
.date-panel {
  margin-top: 10px;
  width: min(100%, 340px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 8px 28px #0001;
}
.date-month-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.date-month-row > button {
  padding: 0;
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
}
.date-month-row .month-picker {
  min-width: 0;
  flex: 1;
}
.date-month-row .month-trigger {
  padding: 9px 10px;
  gap: 5px;
  border-color: transparent;
  font-size: 13px;
}
.date-weekdays,
.date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.date-weekdays {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 0 8px;
}
.date-days button {
  padding: 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  min-height: 30px;
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.date-days button.outside-month {
  color: var(--muted);
  opacity: 0.6;
}
.date-days button.is-today {
  border-color: var(--accent);
}
.date-days button[aria-pressed="true"] {
  background: #7900ca;
  border-color: #7900ca;
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.date-days button:not(:disabled):hover {
  background: var(--raised);
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}
.date-days button:disabled {
  opacity: 0.25;
}
.date-panel-footer {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}
.date-panel-footer button {
  border: 0;
  font-size: 11px;
  padding: 7px 8px;
}
.date-panel-footer button:last-child {
  margin-left: auto;
  color: var(--accent);
}
.confirmed-input {
  align-items: start;
}
.reminder-schedule {
  align-items: start;
}
@media (max-width: 560px) {
  .date-entry.with-time {
    flex-wrap: wrap;
  }
  .date-entry.with-time .date-input-wrap {
    flex-basis: 160px;
  }
  .reminder-schedule {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .reminder-time {
    grid-row: 1;
    display: flex;
    align-items: baseline;
    padding: 0;
    gap: 10px;
  }
}
