:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #e9eef3;
  background: #272d3d;
  font-size: 16px;
  line-height: 1.5;
  --panel: #303b4e;
  --muted: #b3c1d2;
  --mint: #a6d9c4;
  --line: #4a586d;
  --deep: #222a39;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  background: transparent;
  border: 1px solid #788ba2;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  line-height: 1.35;
  min-height: 44px;
  font-weight: 600;
}
button:hover {
  background: #ffffff0b;
  border-color: var(--mint);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  color: #193c34;
  background: var(--mint);
  border-color: var(--mint);
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #b5d7ff;
  outline-offset: 3px;
}
a {
  color: var(--mint);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  font-weight: 650;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: var(--deep);
  border: 1px solid #70849b;
  color: inherit;
  border-radius: 7px;
  padding: 12px;
  font-size: 16px;
  line-height: 1.45;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--mint);
  flex-shrink: 0;
}
.check {
  flex-direction: row;
  align-items: center;
  font-size: 16px;
  color: inherit;
  gap: 10px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
}
legend {
  padding: 0 8px;
}
select[multiple] {
  height: 145px;
}
section {
  margin-bottom: 28px;
}
section + section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.app-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 100dvh;
}
.project-rail {
  background: #202635;
  border-right: 1px solid var(--line);
  padding: 24px 12px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--mint);
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.project-rail nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-rail button {
  padding: 8px 4px;
  border: 0;
  color: #95a2b7;
}
.project-rail button[aria-pressed="true"] {
  color: var(--mint);
  background: #a6d9c41a;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: #222838;
  min-height: 74px;
}
.topbar nav {
  display: flex;
  gap: 20px;
  min-width: 0;
  overflow: auto;
}
.topbar nav button {
  border: 0;
  border-radius: 0;
  padding: 14px 4px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.topbar nav button[aria-current="page"] {
  color: var(--mint);
  border-bottom-color: var(--mint);
}
.account {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.account button {
  font-size: 14px;
}
.atc {
  color: var(--mint);
}
main {
  padding: 32px;
  max-width: 1680px;
  margin: auto;
}
.page-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin-bottom: 4px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 245px;
  padding: 24px;
  box-shadow: 0 5px 18px #11182720;
}
.feature-card h2 {
  margin-top: 14px;
  font-size: 21px;
}
.feature-card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--mint);
  font-weight: 600;
}
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--mint);
}
.empty {
  text-align: center;
  padding: 70px 25px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.empty h2 {
  color: #e9eef3;
}
.login {
  max-width: 480px;
  margin: 12vh auto;
  text-align: center;
}
.login .brand {
  font-size: 22px;
}
.error {
  background: #633f47;
  color: #ffe5dd;
  border: 1px solid #bc9295;
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
}
.error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.notice {
  background: #263245;
  border-left: 3px solid var(--mint);
  padding: 18px;
  border-radius: 5px;
  color: var(--muted);
}
dialog {
  color: inherit;
  background: var(--panel);
  border: 0;
  box-shadow: -12px 0 40px #10162455;
}
dialog::backdrop {
  background: #10162477;
}
#panel {
  margin: 0 0 0 auto;
  width: min(760px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border-left: 1px solid var(--line);
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
#panel[open] {
  display: grid;
}
.panel-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: #263145;
}
.panel-header span {
  color: var(--muted);
  font-size: 14px;
}
.panel-header h2 {
  margin: 0;
}
.icon {
  border: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 400;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
}
.panel-body {
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
}
.panel-body h1 {
  font-size: 28px;
  margin-bottom: 24px;
}
.panel-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  background: #263145;
}
.panel-footer span {
  font-size: 13px;
  color: var(--muted);
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.source p {
  margin: 10px 0;
}
.source small {
  display: block;
  margin: 6px 0 12px;
}
.source button {
  font-size: 14px;
}
.source a {
  overflow-wrap: anywhere;
}
.vote-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  background: #263647;
  padding: 20px;
  border-radius: 8px;
}
.vote-summary small {
  grid-column: 1/-1;
}
.big-number {
  font-size: 32px;
  font-weight: 650;
  color: var(--mint);
}
.vote-summary button {
  justify-self: start;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--mint);
  padding: 6px 0;
  min-height: 40px;
}
details[open] > summary {
  margin-bottom: 16px;
}
#job-state {
  margin: 18px 0;
  color: var(--mint);
}
#public-preview {
  padding: 20px;
  border: 1px solid var(--mint);
  border-radius: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #a6d9c444;
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
#help {
  width: min(480px, calc(100vw - 32px));
  border-radius: 12px;
  padding: 24px;
}
#help .panel-header {
  margin: -24px -24px 24px;
}
.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
}
.member-row small {
  display: block;
}
.member-row strong {
  font-weight: 600;
}
.member-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 3fr;
  gap: 12px;
}
dd {
  margin: 0;
}
dt {
  color: var(--muted);
}
@media (max-width: 900px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 8px 20px;
  }
  .account {
    justify-content: flex-end;
  }
  .topbar nav {
    gap: 16px;
  }
  main {
    padding: 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  .app-shell {
    display: block;
  }
  .project-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
  }
  .project-rail .brand {
    margin: 0;
  }
  .project-rail nav {
    flex-direction: row;
    gap: 5px;
    overflow: auto;
  }
  .project-rail button {
    min-width: 42px;
  }
  .topbar {
    padding: 4px 16px;
  }
  .topbar nav {
    font-size: 14px;
    gap: 18px;
  }
  .account {
    padding-bottom: 8px;
  }
  .account button {
    min-height: 38px;
    padding: 7px 10px;
  }
  main {
    padding: 22px 16px;
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  .feature-grid {
    gap: 16px;
  }
  .feature-card {
    min-height: 220px;
    padding: 20px;
  }
  #panel {
    width: 100vw;
    border-left: 0;
  }
  .panel-body {
    padding: 22px 18px;
  }
  .panel-header {
    padding: 10px 14px;
  }
  .panel-footer {
    padding: 12px 16px;
  }
  .panel-footer button {
    flex: 1 1 auto;
  }
  .panel-body h1 {
    font-size: 25px;
  }
  .vote-summary {
    grid-template-columns: 1fr;
  }
  .vote-summary small {
    grid-column: auto;
  }
  .member-row {
    padding: 12px 0;
    font-size: 14px;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  dd {
    margin-bottom: 14px;
  }
  .empty {
    padding: 40px 18px;
  }
}
.atc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.atc img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 50%;
}
.panel-header .atc {
  margin-left: auto;
  font-size: 14px;
}
/* Shared production workflow */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.section-toolbar h2 {
  margin: 0;
  font-size: 17px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 320px;
  text-align: left;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 5px 0 #a6d9c455,
    0 10px 20px #11182722;
  font-weight: 400;
}
.work-card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 18px 18px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card p {
  margin: 0 18px;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
}
.work-card small {
  margin: 10px 18px 16px;
  min-height: 21px;
}
.phase {
  padding: 10px 18px;
  background: #466b6355;
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
}
.work-status {
  margin: auto 18px 0;
  padding-top: 16px;
  color: var(--mint);
  font-size: 15px;
}
.desk {
  padding: 18px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #2b3445;
  margin-bottom: 24px;
}
.desk-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 14px 4px 10px;
}
.desk-slot {
  min-width: 0;
  height: 330px;
  padding: 4px;
}
.vacant {
  border: 1px dashed #70849b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 400;
}
.vacant strong {
  font-size: 28px;
  font-weight: 500;
}
.vacant:hover {
  background: #a6d9c40b;
  transform: scale(1.015);
}
.queue-tabs nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.queue-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
}
.queue-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--mint);
  color: var(--mint);
  background: none;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  overflow: auto;
  padding: 0 0 20px;
  align-items: start;
}
.kanban-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--deep);
}
.kanban-column + .kanban-column {
  margin: 0;
  padding: 14px;
}
.kanban-column h2 {
  font-size: 17px;
}
.kanban-column .work-card {
  height: 230px;
  margin-bottom: 18px;
}
.compact {
  padding: 30px;
}
.parent-link {
  margin-bottom: 20px;
  display: block;
  text-align: left;
  color: var(--mint);
}
.next-step {
  border-left: 3px solid var(--mint);
  padding: 12px 18px;
  background: #a6d9c408;
}
.metadata {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.metadata dt {
  font-size: 13px;
  color: var(--muted);
}
.metadata dd {
  margin: 4px 0 0;
}
.child-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  border-color: var(--line);
  font-weight: 500;
}
.child-row small {
  font-weight: 400;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.qa-scenarios {
  padding-left: 22px;
}
.qa-scenarios > li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
#work-error {
  scroll-margin: 15px;
}
@media (max-width: 1100px) {
  .desk-slots {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .desk-slot {
    scroll-snap-align: start;
    height: 280px;
  }
  .desk-slot .work-card {
    height: 270px;
  }
}
@media (max-width: 600px) {
  .desk {
    padding: 12px;
  }
  .desk-slots {
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    gap: 12px;
  }
  .desk-slot {
    height: 215px;
  }
  .desk-slot .work-card {
    height: 205px;
  }
  .desk-slot .work-card p {
    display: none;
  }
  .desk-slot .work-card h2 {
    font-size: 16px;
    margin: 12px;
  }
  .desk-slot .phase {
    padding: 8px 12px;
    font-size: 13px;
  }
  .desk-slot .work-status {
    font-size: 13px;
    margin: auto 12px 0;
  }
  .desk-slot small {
    font-size: 12px;
    margin: 8px 12px;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .work-grid .work-card {
    height: 290px;
  }
  .work-grid h2 {
    font-size: 17px;
    margin: 12px;
  }
  .work-grid p {
    font-size: 14px;
    margin: 0 12px;
  }
  .work-grid .work-status {
    margin: auto 12px 0;
    font-size: 13px;
  }
  .work-grid .phase {
    padding: 8px 12px;
  }
  .work-grid small {
    margin: 8px 12px;
  }
  .queue-tabs {
    gap: 8px;
  }
  .queue-tabs nav {
    gap: 0;
  }
  .queue-tabs button {
    font-size: 14px;
    padding: 10px;
  }
  .kanban {
    grid-template-columns: repeat(5, minmax(240px, 80vw));
  }
  .panel-body {
    padding: 20px;
  }
  .panel-footer {
    padding: 14px;
  }
  .metadata {
    gap: 16px;
  }
}
.marketing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.campaign-card {
  background: var(--surface, #303d50);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
}
.campaign-card.selected {
  border-bottom-color: #a5d6c2;
}
.campaign-main {
  padding: 0 20px 18px;
  text-align: left;
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  color: inherit;
}
.campaign-main h2 {
  font-size: 20px;
  font-weight: 600;
}
.campaign-main p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.campaign-cover {
  display: flex;
  align-items: end;
  padding: 18px;
  margin: 0 -20px 18px;
  height: 84px;
  background:
    radial-gradient(
      circle at 80% 160%,
      transparent 35%,
      #89b5ac33 36%,
      transparent 37%
    ),
    linear-gradient(120deg, #264652, #49756c);
  font-size: 14px;
}
.campaign-card footer {
  padding: 0 20px 16px;
  text-align: right;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.mockup-image {
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: auto;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #a5d6c255;
  border-top-color: #a5d6c2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading {
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
.panel-body {
  padding: 24px;
  overflow: auto;
  min-height: 0;
}
.panel-body section {
  margin: 24px 0;
}
.panel-body form {
  display: grid;
  gap: 16px;
}
.panel-body > h1 {
  font-size: 28px;
}
.filter-context {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  border-bottom: 1px solid #536174;
  margin: 12px 0 18px;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 12px 3px;
  color: #aebdd0;
  font-weight: 500;
}
.tabs button[aria-current="page"] {
  color: #a5d6c2;
  border-bottom-color: #a5d6c2;
  background: transparent;
}
.tabs button:hover {
  color: #e4eee9;
}
.finance-order {
  padding: 16px 0;
  border-bottom: 1px solid #536174;
}
.button-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #8195ac;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  margin-right: 10px;
}
.work-grid + section {
  margin-top: 28px;
}

.panel-body > button {
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Shared visual language from the local Tower reference. */
:root {
  font-family:
    "Avenir Next",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
.glyph {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  pointer-events: none;
}
button {
  touch-action: manipulation;
}
.workspace {
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 34px;
  object-fit: contain;
}
.project-rail {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.project-rail nav {
  flex-shrink: 0;
}
.project-rail button {
  flex-shrink: 0;
}
.project-rail button[data-project] {
  font-weight: 650;
  opacity: 0.6;
  background: #42485e;
  border-radius: 8px;
}
.project-rail button[data-project][aria-pressed="true"] {
  color: #fff;
  background: #5b7bed;
  opacity: 1;
}
.project-rail .rail-modules {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.rail-modules button[aria-current="page"] {
  color: var(--mint);
  background: #a6d9c415;
}
.topbar nav {
  gap: 12px;
  flex: 1;
}
.topbar nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}
.topbar nav button .glyph {
  width: 21px;
  height: 21px;
}
.account button {
  border-color: transparent;
}
.account .atc {
  border-color: var(--line);
}
.page-heading > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.page-heading .muted {
  font-size: 14px;
}
main {
  padding: 28px 32px;
  max-width: 1920px;
}
.tabs {
  flex-wrap: wrap;
}
.tabs button,
.queue-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
}
.tabs button[aria-current="page"] {
  color: var(--mint);
  background: none;
  border-bottom-color: var(--mint);
}
.work-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 280px));
  gap: 24px;
  align-items: stretch;
}
.work-grid .work-card,
.work-card {
  height: 380px;
  border-radius: 12px;
  border-color: #6f837e;
  background: #364155;
  --card-accent: var(--mint);
  box-shadow:
    0 5px 0 var(--card-accent),
    0 12px 20px #10172733;
}
.work-card.preparation {
  --card-accent: #d3bd7f;
  border-color: #827654;
}
.work-card.qa {
  --card-accent: #c6b2e1;
  border-color: #847298;
}
.work-card:hover {
  border-color: var(--card-accent);
  background: #3b485e;
}
.card-cover {
  position: relative;
  height: 104px;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  background: #33485b;
}
.illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.marketing-art {
  background: radial-gradient(circle at 65% 85%, #56877c 0, #264956 75%);
  overflow: hidden;
}
.marketing-art > .glyph {
  width: 110px;
  height: 110px;
  margin-left: 60%;
  opacity: 0.25;
  transform: rotate(-15deg);
}
.cover-badges {
  position: absolute;
  inset: 10px 10px auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}
.project-badge {
  background: #133442e0;
  padding: 5px 9px;
  border-radius: 5px;
  color: #e1edf4;
  font-size: 12px;
  font-weight: 650;
}
.xp-badge {
  background: #efd092;
  color: #604d26;
  border: 2px solid #f7dfae;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 650;
  margin-left: auto;
}
.work-card .phase {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  height: 36px;
  flex-shrink: 0;
  background: #36584e;
  color: var(--card-accent);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #a6d9c444;
}
.work-card.preparation .phase {
  background: #594e3b;
  border-bottom-color: #d3bd7f44;
}
.work-card.qa .phase {
  background: #4e4565;
  border-bottom-color: #c6b2e144;
}
.card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 15px 16px 12px;
}
.work-card .card-copy h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
  -webkit-line-clamp: 2;
}
.work-card .card-copy p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  -webkit-line-clamp: 2;
  font-weight: 400;
}
.card-parent {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card .work-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding: 12px 0 0;
  color: var(--card-accent);
  font-size: 14px;
  line-height: 1.3;
  min-height: 32px;
}
.card-facts {
  border-top: 1px solid #ffffff25;
  margin-top: 12px;
  padding-top: 9px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
}
.card-facts:empty {
  border-top-color: transparent;
}
.card-facts > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-facts .glyph {
  width: 16px;
  height: 16px;
}
.desk {
  padding: 16px 20px 22px;
  background: #2b3445;
  border-color: #465268;
  margin-bottom: 24px;
}
.desk .section-toolbar {
  margin-bottom: 2px;
}
.desk .section-toolbar h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.desk-slots {
  padding: 18px 6px 12px;
  gap: 20px;
  align-items: stretch;
}
.desk-slot {
  height: 360px;
  padding: 0;
}
.desk-slot .work-card {
  height: 100%;
}
.desk-slot.occupied {
  padding: 5px;
  border-radius: 15px;
  background: #71829633;
  outline: 1px solid #8291a355;
}
.desk-slot.vacant {
  border-radius: 13px;
}
.vacant strong {
  font-size: 32px;
  color: #a5a0bd;
}
.vacant > .glyph {
  width: 28px;
  height: 28px;
  color: #a0adc1;
  margin: 8px;
}
.vacant:hover,
.vacant.drag-over {
  transform: scale(1.015);
  border-color: var(--mint);
  background: #a6d9c410;
}
.external-slot {
  padding: 16px;
}
.external-slot h2 {
  font-size: 18px;
  margin: 20px 0;
}
#queue {
  border-top: 0;
  padding-top: 0;
}
.queue-tabs {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  justify-content: flex-start;
  gap: 32px;
}
.queue-tabs h2 {
  font-size: 15px;
}
.queue-tabs nav {
  gap: 8px;
}
.queue-tabs button {
  padding: 15px 10px;
  font-size: 14px;
}
.queue-tabs button small {
  padding: 2px 7px;
  border-radius: 5px;
  background: #39465c;
  margin: 0;
  font-size: 12px;
}
.queue-tabs button[aria-pressed="true"] small {
  color: var(--mint);
  background: #426657;
}
.queue-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  min-height: 58px;
}
.queue-tools .tabs {
  margin: 0;
}
.queue-tools .tabs button {
  font-size: 13px;
  padding: 10px;
}
.search-field {
  margin: 0;
  position: relative;
  width: 230px;
  flex-shrink: 0;
}
.search-field .glyph {
  position: absolute;
  left: 10px;
  top: 12px;
}
.search-field input {
  padding: 10px 10px 10px 38px;
  font-size: 14px;
}
#queue-results {
  min-height: 400px;
}
.kanban {
  grid-template-columns: repeat(5, minmax(230px, 1fr));
}
.kanban-column {
  border-top: 3px solid var(--muted);
}
.kanban-column:nth-child(2) {
  border-top-color: #d3bd7f;
}
.kanban-column:nth-child(3) {
  border-top-color: #c6b2e1;
}
.kanban-column:nth-child(4) {
  border-top-color: var(--mint);
}
.kanban-column > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.kanban-column > h2 small {
  margin-left: auto;
  background: #171f2e;
  padding: 2px 7px;
  border-radius: 5px;
}
.kanban-column .work-card {
  height: 245px;
  box-shadow: none;
  border-color: var(--line);
  margin-bottom: 14px;
}
.kanban-column .card-cover {
  height: 64px;
}
.kanban-column .phase {
  display: none;
}
.kanban-column .card-copy h2 {
  font-size: 16px;
}
.kanban-column .card-copy p {
  -webkit-line-clamp: 1;
  font-size: 13px;
}
.kanban-column .card-facts {
  margin-top: 8px;
  padding-top: 8px;
}
.column-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
  font-size: 14px;
}
.panel-top {
  min-width: 0;
  background: #243043;
}
.panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.panel-controls .icon {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 10px;
  border: 0;
}
.panel-header {
  gap: 12px;
}
.detail-tabs {
  padding: 0 20px;
  margin: 0;
  gap: 8px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  padding: 13px 8px;
  font-size: 14px;
}
.detail-tabs button .glyph {
  width: 18px;
  height: 18px;
}
.detail-cover {
  height: 110px;
  margin: -24px -28px 24px;
  overflow: hidden;
  border-bottom: 4px solid #a6d9c480;
}
.parent-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  width: 100%;
  margin: 0 0 24px;
}
.parent-link small {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.parent-link + .detail-cover {
  margin-top: 0;
}
.panel-body h1 {
  font-size: 28px;
  font-weight: 600;
}
.panel-body .next-step {
  font-size: 15px;
  line-height: 1.6;
}
.panel-body .metadata {
  gap: 28px;
  font-size: 15px;
  padding: 8px 0;
}
.panel-body section h2 {
  font-size: 18px;
}
[data-detail-section] .prose {
  font-size: 15px;
  line-height: 1.7;
}
.activity-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row p {
  margin: 6px 0 0;
}
#panel.expanded {
  width: min(1100px, 100vw);
}
.campaign-cover {
  position: relative;
  align-items: start;
  justify-content: space-between;
  height: 104px;
  overflow: hidden;
}
.campaign-cover > .glyph {
  position: absolute;
  right: 22px;
  top: 5px;
  width: 120px;
  height: 120px;
  transform: rotate(-15deg);
  opacity: 0.22;
}
.campaign-cover > span {
  z-index: 1;
}
.collection-state {
  margin-left: auto;
  font-weight: 400;
  font-size: 13px;
}
.campaign-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.campaign-main h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  min-height: 56px;
}
.campaign-main > span:last-child {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.campaign-card.selected .campaign-main h2 {
  color: var(--mint);
}
.campaign-card footer {
  padding-top: 12px;
  border-top: 1px solid #ffffff09;
}
.inbox-list {
  display: grid;
  gap: 12px;
}
.inbox-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  text-align: left;
  background: var(--panel);
  border-color: var(--line);
  font-weight: 400;
}
.inbox-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.inbox-row strong {
  font-weight: 600;
}
.inbox-preview {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  margin-top: 6px;
}
.source-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #415168;
  border-radius: 8px;
}
@media (max-width: 1100px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .account {
    justify-content: flex-end;
  }
  .topbar nav {
    overflow: auto;
    flex-shrink: 0;
  }
  .desk-slots {
    grid-template-columns: repeat(4, minmax(185px, 1fr));
    overflow: auto;
  }
  .queue-tools {
    flex-wrap: wrap;
  }
  .queue-tabs {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 20px 16px;
  }
  .project-rail {
    flex-direction: row;
    overflow: auto;
    gap: 14px;
    padding: 8px 12px;
  }
  .project-rail .brand {
    flex-shrink: 0;
  }
  .brand img {
    width: 32px;
    height: 24px;
  }
  .project-rail .rail-modules {
    margin: 0;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
    flex-direction: row;
  }
  .project-rail nav {
    overflow: visible;
  }
  .project-rail button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .topbar nav {
    gap: 12px;
  }
  .topbar nav button {
    font-size: 13px;
    gap: 6px;
  }
  .page-heading > div {
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
  }
  .desk {
    padding: 14px 10px 18px;
  }
  .desk-slots {
    grid-template-columns: repeat(4, 200px);
    gap: 16px;
    padding: 16px 6px 14px;
  }
  .desk-slot {
    height: 340px;
  }
  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
  .work-grid .work-card {
    height: 380px;
  }
  .card-cover {
    height: 110px;
  }
  .queue-tabs {
    gap: 0;
    display: block;
  }
  .queue-tabs h2 {
    margin-bottom: 8px;
  }
  .queue-tabs nav {
    flex-wrap: nowrap;
    overflow: auto;
    gap: 4px;
  }
  .queue-tabs button {
    white-space: nowrap;
    font-size: 13px;
    padding: 12px 8px;
  }
  .queue-tools {
    gap: 6px;
    margin-bottom: 16px;
  }
  .queue-tools .tabs {
    flex-wrap: nowrap;
    width: 100%;
    overflow: auto;
  }
  .queue-tools .tabs button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px 8px;
  }
  .search-field {
    width: 100%;
  }
  .detail-tabs {
    gap: 0;
    padding: 0 10px;
  }
  .detail-tabs button {
    font-size: 12px;
    padding: 12px 6px;
    gap: 5px;
  }
  .detail-tabs button .glyph {
    width: 16px;
    height: 16px;
  }
  .panel-controls {
    gap: 2px;
  }
  .panel-controls .icon {
    width: 36px;
    padding: 8px;
  }
  .panel-header .atc {
    font-size: 12px;
    padding: 6px;
  }
  .panel-header > span {
    font-size: 12px;
  }
  .detail-cover {
    margin: -20px -20px 20px;
    height: 90px;
  }
  .inbox-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .inbox-row > small {
    margin-left: 46px;
    flex-basis: 80%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vacant:hover,
  .vacant.drag-over {
    transform: none;
  }
}
@media (max-width: 600px) {
  .desk-slot {
    height: 280px;
  }
  .desk-slot .card-cover {
    height: 78px;
  }
  .desk-slot .card-copy {
    padding: 12px;
  }
  .desk-slot .card-copy h2 {
    font-size: 16px;
    margin: 0 0 8px;
  }
  .desk-slot .card-facts {
    margin-top: 8px;
  }
}
.panel-footer > button.primary {
  flex: 1 1 220px;
}
/* Shared project scope and desk actions. Keep all targets inside the viewport. */
.project-chooser {
  max-width: 420px;
  width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid var(--border, #566477);
  border-radius: 16px;
  background: #29374a;
  color: #edf0ed;
}
.project-chooser button {
  display: block;
  width: 100%;
  margin: 10px 0;
  text-align: left;
}
.desk-workspace {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
}
.desk-workspace .desk {
  min-width: 0;
  margin-bottom: 0;
}
.desk-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px dashed #627185;
  background: transparent;
  border-radius: 14px;
  padding: 8px;
  color: #a9d9c5;
  font-size: 13px;
}
.desk-zone .glyph {
  width: 28px;
  height: 28px;
}
.desk-zone[data-desk-zone="return"] {
  color: #dcc29a;
}
.desk-zone.drag-over {
  background: #3c5c58;
  border-style: solid;
}
.desk-slot.choose-action {
  outline: 2px solid #a9d9c5;
  outline-offset: 3px;
}
.text-filter[aria-pressed="true"] {
  color: #a9d9c5;
  border-bottom: 2px solid currentColor;
  background: transparent;
}
.timeline-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 20px;
}
.timeline-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
}
.timeline-table th,
.timeline-table td {
  border: 1px solid #465267;
  padding: 12px;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}
.timeline-table th:first-child {
  width: 230px;
}
.timeline-table th button {
  text-align: left;
  width: 100%;
}
.timeline-event {
  width: 100%;
  background: #496e64;
  color: #e0f2e7;
  font-size: 13px;
  padding: 12px 6px;
}
.timeline-event.done {
  opacity: 0.65;
}
.capacity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 24px;
}
.capacity-list section {
  padding: 18px;
  border: 1px solid #465267;
  border-radius: 12px;
  min-width: 0;
}
.capacity-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.capacity-list .child-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .desk-workspace {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 8px;
  }
  .desk-zone {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .desk-workspace {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .desk-workspace .desk {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .desk-zone {
    flex-direction: row;
    padding: 10px;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
  }
  .desk-workspace .desk-slots {
    padding: 14px 8px 20px;
  }
  .queue-tools {
    flex-wrap: wrap;
  }
  .timeline-table th:first-child {
    width: 180px;
  }
}
.work-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-badge {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.metric-badge summary {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  padding: 9px;
  background: #30384a;
  border-radius: 7px;
  color: #a9d9c5;
  font-size: 13px;
  list-style: none;
}
.metric-badge summary::-webkit-details-marker {
  display: none;
}
.metric-badge summary .glyph {
  width: 16px;
  height: 16px;
}
.metric-popover {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  background: #263449;
  border: 1px solid #627185;
  box-shadow: 0 12px 35px #0006;
  border-radius: 10px;
  padding: 16px;
  width: 300px;
  max-height: 360px;
  overflow: auto;
}
.metric-popover h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.metric-popover button {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #465267;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
  }
  .topbar > nav {
    flex-basis: 100%;
  }
  .account {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .work-indicators {
    gap: 4px;
  }
  .metric-badge summary {
    padding: 7px;
  }
  .metric-popover {
    position: fixed;
    top: 120px;
    left: 16px;
    right: 16px;
    width: auto;
  }
  .account {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
}
@media (max-width: 600px) {
  .account {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  }
  .work-indicators {
    margin-right: auto;
  }
  .metric-badge summary > .glyph:last-child {
    display: none;
  }
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: nowrap;
  }
  .topbar > nav {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }
  .account {
    margin-left: 0;
  }
}
.text-filter {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 4px;
}
.text-filter[aria-pressed="true"] {
  border-bottom-width: 3px;
}
.plan-forecast {
  margin: 20px 0;
}
.plan-forecast .child-row,
.plan-conflicts .child-row {
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
}
.plan-conflicts {
  border-left: 3px solid #edb48c;
  padding: 12px 18px;
  margin: 16px 0;
  background: #edb48c09;
}
.dependency-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dependency-row button {
  border: 0;
  background: transparent;
  color: var(--mint);
  font-weight: 500;
}
.plan-forecast h2,
.plan-conflicts h3 {
  font-size: 18px;
}
