:root {
  font:
    16px/1.5 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: #18251f;
  background: #f6f7f3;
  --ink: #18251f;
  --muted: #51615a;
  --line: #dce3da;
  --paper: #fff;
  --green: #24533f;
  --mint: #bcec9a;
  --night: #152a22;
  --pale: #e9f4e5;
  --warm: #faf0da;
  --gold: #79572a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #70a449;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg,
nav svg {
  flex: none;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
h1 {
  font-size: clamp(2.25rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.064em;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.28;
}
.skip {
  position: fixed;
  top: -70px;
  left: 10px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 17px 16px;
  background: var(--night);
  color: #f2f7ed;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 5px;
  margin-bottom: 44px;
}
.brand strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.brand small,
.rail-end small {
  display: block;
  color: #b4c7bb;
  font-size: 0.78rem;
  margin-top: 3px;
}
.mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 13px;
  background: var(--mint);
  color: #183226;
  font-size: 1.48rem;
  line-height: 1;
}
.nav-label {
  letter-spacing: 0.13em;
  color: #a8c2b1;
  font-weight: 650;
  font-size: 0.75rem;
  margin: 0 10px 11px;
}
nav {
  display: grid;
  gap: 4px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  text-align: left;
  background: none;
  color: #dceade;
  font-size: 0.94rem;
  font-weight: 560;
  white-space: nowrap;
}
nav button:hover {
  background: #234235;
}
nav button[aria-current] {
  background: #315941;
  color: #e7ffda;
}
nav .nav-count {
  margin-left: auto;
  padding: 1px 6px;
  color: #e1f7d1;
  background: #42634c;
  border-radius: 8px;
  font-size: 0.74rem;
}
.rail-end {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 13px 5px 5px;
  border-top: 1px solid #476254;
}
.rail-end strong {
  font-size: 0.9rem;
}
.small-mark {
  display: grid;
  place-items: center;
  color: #bcec9a;
  width: 29px;
  height: 29px;
  border: 1px solid #5d7a67;
  border-radius: 7px;
}
.work {
  min-width: 0;
}
.top {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
}
.crumb,
.top-right {
  display: flex;
  gap: 13px;
  align-items: center;
}
.crumb span {
  color: var(--muted);
  font-size: 0.87rem;
}
.crumb b {
  font-size: 0.9rem;
}
.demo-pill {
  color: #31533f;
  background: var(--pale);
  border: 1px solid #d6e6d2;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.78rem;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4eddf;
  color: #24533f;
  font-weight: 750;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 33px clamp(18px, 4vw, 48px) 55px;
  min-height: calc(100dvh - 64px);
}
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.eyebrow {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 790;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sub {
  color: var(--muted);
  margin-top: 9px;
  max-width: 67ch;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
  border: 1px solid #cbd9cc;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 670;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn:hover {
  background: #edf3e9;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #163b2d;
}
.btn.light {
  background: #d5f6bc;
  color: #173222;
  border-color: #d5f6bc;
}
.btn.light:hover {
  background: #c7f0ab;
}
.btn.small {
  min-height: 36px;
  padding: 6px 10px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.ghost:hover {
  background: #e9efe7;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #1b3529;
  color: #fff;
  border-radius: 15px;
  min-height: 245px;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  padding: 25px 29px;
  align-self: center;
}
.hero .eyebrow {
  color: #caeeae;
  margin-bottom: 10px;
}
.hero h2 {
  font-size: clamp(1.95rem, 4vw, 3.35rem);
  letter-spacing: -0.06em;
}
.hero p {
  color: #dfebde;
  max-width: 42ch;
  font-size: 0.95rem;
  margin: 8px 0 17px;
}
.hero-art {
  position: relative;
  min-height: 230px;
  background: #573a23;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1b3529 0%, transparent 25%);
}
.hero-art span {
  z-index: 1;
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #f7f5e8;
  background: #19291eeb;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.74rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0 27px;
}
.kpi,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 8px;
  color: #345846;
  background: #e9f4e5;
  flex: none;
}
.kpi strong {
  display: block;
  line-height: 1.12;
  font-size: 1.3rem;
}
.kpi span:not(.kpi-icon) {
  font-size: 0.83rem;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 17px;
  align-items: start;
}
.card {
  padding: 17px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.row {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.row:first-child {
  border-top: 0;
}
.row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-main strong {
  display: block;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 3px;
}
.thumb {
  width: 57px;
  height: 42px;
  border-radius: 6px;
  flex: none;
  object-fit: cover;
  background: #e8eee5;
  display: grid;
  place-items: center;
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 3px 7px;
  background: #eef1ed;
  color: #43544b;
  font-weight: 650;
  font-size: 0.75rem;
  white-space: nowrap;
}
.badge.good {
  background: #e0f0dd;
  color: #29533c;
}
.badge.warn {
  background: #faf0db;
  color: #795327;
}
.badge.danger {
  background: #f9e8e4;
  color: #883b30;
}
.stack {
  display: grid;
  gap: 14px;
}
.error {
  font-size: 0.87rem;
  color: #883b30;
}
.empty {
  color: var(--muted);
  padding: 19px 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.release-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #edf4e9;
  border: 1px solid #d7e5d2;
  border-radius: 10px;
  padding: 13px 15px;
  margin: 0 0 14px;
  color: #284634;
  font-size: 0.91rem;
}
.release-banner svg {
  flex: none;
}
.progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  gap: 5px;
  flex-wrap: wrap;
}
.progress li {
  font-size: 0.84rem;
  border-radius: 6px;
  background: #e9eee7;
  padding: 5px 9px;
  color: var(--muted);
}
.progress li.current {
  color: #1e4935;
  background: #dcefd5;
  font-weight: 750;
}
.field {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  font-size: 0.91rem;
  font-weight: 660;
  min-width: 0;
}
.field input:not([type='checkbox']),
.field textarea,
.field select,
input.search {
  width: 100%;
  border: 1px solid #c7d6ca;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  min-height: 42px;
}
.field textarea {
  min-height: 111px;
  resize: vertical;
}
.field small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.field input[type='file'] {
  font-size: 0.82rem;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}
.tab {
  padding: 6px 9px;
  border: 1px solid #d2ded4;
  border-radius: 6px;
  background: #fff;
  color: #334e3e;
  font-weight: 650;
  font-size: 0.83rem;
}
.tab[aria-pressed='true'] {
  background: #e3f1df;
  border-color: #a1b9a1;
  color: #204330;
}
.release-side img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  margin-bottom: 9px;
}
.release-side .row {
  font-size: 0.9rem;
}
.panel-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0;
}
.manual-card,
.channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--green);
  flex: none;
}
.channel .row-main {
  align-items: flex-start;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.toolbar input.search {
  max-width: 340px;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.91rem;
  min-width: 540px;
}
.table th {
  font-size: 0.77rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 9px 9px;
}
.table td {
  border-top: 1px solid var(--line);
  padding: 12px 9px;
  text-align: left;
}
.table td:first-child,
.table th:first-child {
  padding-left: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 13px 0;
}
.metric {
  padding: 10px;
  background: #edf4e9;
  border-radius: 8px;
}
.metric strong {
  display: block;
  font-size: 1.31rem;
}
.metric span {
  font-size: 0.83rem;
  color: #3d5848;
}
.chart {
  display: grid;
  gap: 11px;
  margin: 18px 0 4px;
}
.bar-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
}
.bar-track {
  height: 14px;
  border-radius: 5px;
  background: #ecf1ea;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #4a7f56;
  border-radius: 5px;
}
.steps {
  list-style: decimal;
  margin: 12px 0;
  padding-left: 24px;
  font-size: 0.9rem;
}
.steps li {
  margin: 6px 0;
}
dialog {
  width: min(520px, calc(100% - 26px));
  border: 1px solid var(--line);
  background: #fbfcf9;
  color: var(--ink);
  border-radius: 13px;
  padding: 23px;
  box-shadow: 0 24px 90px #14291e66;
}
dialog::backdrop {
  background: #11261e99;
}
dialog h2 {
  margin: 0 0 8px;
}
dialog p {
  margin: 0 0 13px;
  color: var(--muted);
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}
.toast {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 40px));
  background: #214631;
  color: #fff;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 8px 30px #19271033;
}
.toast:not(:empty) {
  padding: 11px 15px;
}
@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 740px) {
  .shell {
    display: block;
  }
  .rail {
    height: auto;
    position: static;
    padding: 12px 12px 8px;
    gap: 8px;
  }
  .brand {
    margin: 0;
    padding: 0 4px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .brand small {
    margin: 0;
  }
  .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1.25rem;
  }
  .nav-label,
  .rail-end {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 3px;
    padding: 3px;
  }
  nav button {
    width: auto;
    padding: 7px 9px;
    gap: 6px;
    font-size: 0.83rem;
  }
  nav button svg {
    width: 16px;
    height: 16px;
  }
  .top {
    height: 49px;
  }
  main {
    padding-top: 20px;
  }
  .head {
    gap: 10px;
    align-items: flex-start;
  }
  .head .btn {
    margin-top: 6px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 17px;
  }
  .hero-art {
    min-height: 144px;
  }
  .hero-art:after {
    background: linear-gradient(180deg, #1b3529 0%, transparent 30%);
  }
  .kpi {
    padding: 8px;
    gap: 5px;
  }
  .kpi-icon {
    display: none;
  }
  .kpi span:not(.kpi-icon) {
    font-size: 0.76rem;
  }
  .card {
    padding: 13px;
  }
  .row {
    gap: 7px;
  }
  .thumb {
    width: 42px;
    height: 34px;
  }
  .row-main {
    gap: 8px;
  }
  .top,
  .brand {
    padding-right: 14px;
  }
  .crumb {
    gap: 7px;
  }
  .manual-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .head {
    display: block;
  }
  .head .btn {
    margin-top: 12px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .kpis {
    gap: 5px;
  }
  .badge {
    white-space: normal;
  }
  .bar-row {
    grid-template-columns: 67px minmax(0, 1fr) 48px;
  }
}
.cal-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.cal-controls .tabs {
  margin: 0;
}
.cal-filters {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.cal-filters label {
  display: grid;
  gap: 3px;
  color: #42554a;
  font-size: 0.82rem;
  font-weight: 700;
}
.cal-filters select {
  background: white;
  color: #203a2b;
  border: 1px solid #c7d6ca;
  border-radius: 7px;
  min-height: 36px;
  max-width: 200px;
  padding: 5px 8px;
  font-size: 0.87rem;
}
.cal-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 260px);
  align-items: start;
}
.cal-board {
  min-width: 0;
}
.cal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-day {
  background: #f5f7f3;
  border: 1px solid #e4e9df;
  border-radius: 8px;
  padding: 6px;
  min-height: 175px;
  min-width: 0;
}
.calendar-day.is-today {
  background: #edf4e6;
  border-color: #a7bfa4;
}
.calendar-day h3 {
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin: 2px 1px 10px;
  color: #3b5145;
  text-transform: capitalize;
}
.calendar-day h3 b {
  color: var(--ink);
}
.cal-empty {
  font-size: 0.75rem;
  color: #637066;
  text-align: left;
}
.cal-slot {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 5px 6px;
  text-align: left;
  background: white;
  border-radius: 6px;
  border: 1px solid #dbe4d8;
  border-left: 3px solid #68956a;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.cal-slot:hover {
  border-color: #83a782;
  background: #f6faf3;
}
.cal-slot span,
.cal-slot small {
  line-height: 1.12;
  font-size: 0.715rem;
  color: #43554b;
}
.cal-slot strong {
  line-height: 1.2;
  font-size: 0.83rem;
}
.cal-slot.failed {
  border-left-color: #b45e4d;
  background: #fdf1ed;
}
.cal-slot.manual {
  border-left-color: #ad8a4c;
  background: #fbf4e5;
}
.attention .row {
  line-height: 1.25;
  align-items: flex-start;
}
.attention .row strong,
.attention .row .meta {
  overflow-wrap: anywhere;
}
.attention .rows {
  margin-top: 7px;
}
.attention .row .btn {
  min-height: 32px;
}
.slot-fields {
  max-height: 40vh;
  overflow: auto;
  padding: 4px;
}
.agenda-mobile {
  display: none;
}
@media (max-width: 1120px) {
  .cal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .attention {
    grid-row: 2;
  }
  .calendar-day {
    min-height: 135px;
  }
}
@media (max-width: 740px) {
  .cal-title {
    display: block;
  }
  .cal-title .actions {
    margin-top: 9px;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-day {
    min-height: 80px;
  }
  .cal-filters select {
    max-width: 160px;
  }
  .cal-layout .table-wrap {
    display: none;
  }
  .agenda-mobile {
    display: block;
  }
  .cal-slot span,
  .cal-slot small {
    font-size: 0.79rem;
  }
}
.dialog-actions {
  flex-wrap: wrap;
}
.calendar-grid .cal-slot {
  padding: 6px 4px;
  overflow-wrap: normal;
  min-width: 0;
}
.calendar-grid .cal-slot span,
.calendar-grid .cal-slot small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-grid .cal-slot strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-clamp: 2;
  overflow-wrap: normal;
}
.calendar-grid .cal-slot small {
  font-weight: 660;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  background: #e7f0e2;
  border: 1px solid #d6e3d1;
  border-radius: 12px;
  padding: 15px 17px;
  margin: 2px 0 12px;
}
.plan-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 21px;
  font-size: 0.89rem;
  color: var(--muted);
  padding: 1px 0 12px;
}
.plan-summary strong {
  color: var(--ink);
}
.plan-summary .error strong {
  color: #883b30;
}
.plan-navigation {
  display: flex;
  gap: 3px;
  margin-left: auto;
  flex-wrap: wrap;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.plan-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid #d5e0d2;
  border-radius: 9px;
  padding: 10px 11px;
  transition: background 0.12s;
}
.plan-card:hover {
  background: #eaf4e6;
  border-color: #87ab87;
}
.plan-card.vacant {
  background: transparent;
  border-style: dashed;
  color: #45594b;
}
.plan-card.vacant:hover {
  background: #edf4e9;
  border-style: solid;
}
.plan-card.conflict {
  background: #fff4f0;
  border-color: #d9ada1;
}
.plan-card .badge {
  white-space: normal;
  text-align: left;
  margin-top: auto;
}
.plan-date {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e0e7de;
  color: #244834;
  font-size: 0.87rem;
  font-weight: 750;
  padding-bottom: 5px;
}
.plan-date small {
  color: #51655a;
  font-size: 0.75rem;
  text-transform: capitalize;
}
.plan-empty {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  margin: auto 0;
  font-weight: 650;
}
.plan-empty svg {
  width: 16px;
  height: 16px;
}
.plan-ident {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.plan-ident strong {
  overflow-wrap: anywhere;
  line-height: 1.22;
}
.plan-ident .thumb {
  width: 37px;
  height: 31px;
}
.dialog-list {
  max-height: 45dvh;
  overflow: auto;
  margin: 10px 0;
  padding-right: 4px;
}
dialog {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
@media (max-width: 1120px) {
  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 840px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan-navigation {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-top {
    display: block;
  }
  .plan-top .actions {
    margin-top: 9px;
  }
  .plan-top .btn {
    white-space: normal;
  }
  .plan-summary {
    gap: 8px;
  }
  .plan-card {
    min-height: 116px;
    padding: 9px;
  }
  .plan-navigation .btn {
    font-size: 0.76rem;
    padding: 5px 6px;
  }
}
main.timeline-page {
  max-width: none;
  padding: 30px 0 36px;
  --tl-gutter: clamp(14px, 3vw, 46px);
}
.tl-head,
.tl-tools {
  padding-inline: var(--tl-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.tl-head h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.35rem);
}
.tl-head .meta {
  font-size: 0.96rem;
  margin-top: 7px;
}
.tl-head {
  margin-bottom: 23px;
}
.tl-tools {
  margin-bottom: 15px;
}
.tl-scope {
  display: grid;
  color: #244634;
}
.tl-scope > strong {
  font-size: 1.07rem;
}
.tl-scope > small {
  color: var(--muted);
  font-size: 0.86rem;
}
.tl-filter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.tl-filter select {
  max-width: 180px;
  border: 1px solid #c7d6ca;
  border-radius: 7px;
  background: white;
  min-height: 36px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--ink);
}
.tl-zoom {
  display: flex;
  gap: 3px;
}
.tl-zoom .btn {
  width: 36px;
  padding: 3px;
  font-size: 1.13rem;
}
.tl-board {
  background: #fbfcf9;
  border-block: 1px solid #d8e2d5;
  min-width: 0;
}
.tl-legend,
.tl-foot {
  padding-inline: var(--tl-gutter);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #475d51;
  font-size: 0.83rem;
}
.tl-legend {
  min-height: 44px;
  border-bottom: 1px solid #e0e8df;
  gap: 14px;
  justify-content: flex-start;
}
.tl-legend > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tl-legend span {
  display: inline-block;
  width: 11px;
  height: 13px;
  border-radius: 2px;
}
.legend-past {
  background: #45715d;
}
.legend-future {
  background: #a3ada6;
}
.tl-foot {
  padding-block: 8px;
  min-height: 50px;
}
.tl-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #889d8b #edf1eb;
  scrollbar-width: auto;
  border-bottom: 1px solid #dce5db;
}
.tl-track {
  --day-width: 55px;
  display: flex;
  width: max-content;
  min-width: 100%;
  padding-top: 22px;
  background: #f7f9f5;
}
.tl-cell {
  width: var(--day-width);
  flex: none;
  position: relative;
  background: #f6f8f4;
  border-right: 1px solid #e6ece3;
}
.tl-cell.past {
  background: #ebf2e9;
  border-color: #dfe9dd;
}
.tl-cell.today {
  border-left: 3px solid #426e53;
}
.tl-now {
  font-size: 11px;
  font-weight: 760;
  position: absolute;
  top: -20px;
  left: -3px;
  color: white;
  background: #426e53;
  padding: 2px 5px;
  border-radius: 0 5px 5px 0;
  line-height: 1.3;
  z-index: 2;
  pointer-events: none;
}
.tl-tile {
  color: var(--ink);
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}
.tl-tile:focus-visible {
  outline-offset: -4px;
}
.tl-tile:is(button):hover {
  background: #dcebd8;
}
.tl-chart {
  height: clamp(170px, 26vh, 270px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding-top: 6px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    #92a79224 calc(25% - 1px),
    #92a79224 25%
  );
}
.future .tl-chart {
  background: none;
}
.tl-mark {
  font-size: 0.72rem;
  color: #3e574a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 2px;
  font-weight: 660;
  margin-bottom: 4px;
}
.tl-bar {
  height: calc(var(--value) * 0.86);
  min-height: 0;
  display: grid;
  place-items: center;
  width: 62%;
  max-width: 88px;
  flex: none;
  border-radius: 4px 4px 0 0;
  background: #45715d;
  color: #345544;
  font-weight: 800;
}
.tl-cell.ready .tl-bar {
  height: 47%;
  background: #a3ada6;
}
.tl-cell.empty .tl-bar {
  height: 47%;
  border: 1px dashed #8ca194;
  border-bottom: 0;
  background: transparent;
  color: #648070;
}
.tl-cell.problem .tl-bar {
  height: 47%;
  background: #f7e9cc;
  border: 1px solid #c6a268;
  border-bottom: 0;
  color: #7d4f29;
}
.tl-cell.problem .tl-mark {
  color: #875429;
}
.tl-cell.zero .tl-bar {
  height: 9px;
  background: #477761;
  color: transparent;
}
.tl-cell.no-data .tl-bar {
  height: 26px;
  border: 1px dashed #a3b1a0;
  background: transparent;
  color: #667e6b;
}
.tl-cell.quiet .tl-chart {
  opacity: 0.7;
}
.tl-date {
  display: block;
  padding: 6px 0 4px;
  font-size: 0.73rem;
  font-weight: 720;
  white-space: nowrap;
  border-top: 1px solid #b7c6b7;
}
.tl-name {
  display: block;
  font-size: 0.69rem;
  line-height: 1.17;
  min-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #506459;
  padding: 0 2px 6px;
}
.tl-cell.today .tl-date {
  color: #214c33;
  background: #e0ebdc;
}
.arch-metric {
  display: grid;
  gap: 2px;
  background: #e7f1e3;
  padding: 13px 15px;
  border-radius: 8px;
  margin: 10px 0;
}
.arch-metric strong {
  font-size: 1.65rem;
}
.arch-metric small {
  color: #3f5b4b;
}
@media (max-width: 660px) {
  main.timeline-page {
    padding-top: 18px;
  }
  .tl-head {
    margin-bottom: 13px;
  }
  .tl-tools {
    gap: 9px;
  }
  .tl-tools .actions {
    gap: 6px;
  }
  .tl-filter select {
    max-width: 125px;
  }
  .tl-head .actions .btn {
    min-height: 37px;
  }
  .tl-legend {
    font-size: 0.75rem;
    gap: 4px 10px;
    padding-block: 7px;
  }
  .tl-foot > span {
    display: none;
  }
  .tl-foot {
    font-size: 0.78rem;
  }
  .tl-chart {
    height: 180px;
  }
  .tl-mark {
    font-size: 0.65rem;
  }
}
.tl-cell.empty {
  padding: 0;
}
.tl-mark {
  text-overflow: clip;
}
.tl-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.tl-cell.ready .tl-bar {
  box-shadow: inset 0 1px #65786b2c;
}
.tl-track {
  display: block;
  padding-top: 0;
}
.tl-months,
.tl-days {
  display: flex;
}
.tl-months {
  height: 35px;
  background: #e5eee3;
  border-bottom: 1px solid #c2d0c0;
}
.tl-month {
  flex: 0 0 calc(var(--day-width) * var(--month-days));
  min-width: 0;
  border-left: 1px solid #a3b5a2;
  padding: 6px 9px;
  text-align: left;
}
.tl-month:nth-child(even) {
  background: #e9f0e7;
}
.tl-month > span {
  position: sticky;
  left: 9px;
  color: #284d38;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: capitalize;
}
.tl-days {
  padding-top: 22px;
}
.tl-cell.month-start::after {
  content: '';
  position: absolute;
  inset: -22px auto 0 0;
  width: 1px;
  background: #97aa97;
  pointer-events: none;
}
.tl-cell.today.month-start::after {
  display: none;
}
.tl-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 0 3px;
  line-height: 1.18;
}
.tl-date-num {
  min-height: 14px;
}
.tl-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 15px;
  font-size: 0.72rem;
  font-weight: 660;
  color: #53685b;
}
.tl-weekday i {
  font-size: 0.6rem;
  font-style: normal;
  color: #825628;
}
.tl-cell[data-calendar='weekend'] .tl-date {
  background: #e6eceb;
}
.tl-cell[data-calendar='weekend'] .tl-weekday {
  font-weight: 800;
  color: #394f55;
}
.tl-cell[data-calendar='holiday'] .tl-date {
  background: #f4e6c8;
  color: #714c26;
}
.tl-cell[data-calendar='transfer'] .tl-date {
  background: #f7edd8;
  color: #71542b;
}
.tl-cell[data-calendar='holiday'] .tl-weekday,
.tl-cell[data-calendar='transfer'] .tl-weekday {
  color: #714c26;
}
.tl-cell[data-calendar='weekend'] .tl-chart {
  box-shadow: inset 0 -5px #839d9b35;
}
.tl-cell:is([data-calendar='holiday'], [data-calendar='transfer']) .tl-chart {
  box-shadow: inset 0 -5px #bf8c442e;
}
.tl-legend .legend-weekend {
  background: #dce6e5;
  border: 1px solid #a6b8b6;
}
.tl-cal-legend b {
  color: #825628;
}
.tl-cell.today .tl-date-num {
  color: #214c33;
}
@media (max-width: 660px) {
  .tl-legend .tl-cal-legend {
    gap: 5px;
  }
  .tl-month > span {
    font-size: 0.72rem;
  }
}
.tl-cell.week-start:not(.month-start):not(.today)::after {
  content: '';
  position: absolute;
  inset: -22px auto 0 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #9eaea1 0 3px, transparent 3px 6px);
  pointer-events: none;
}
.tl-cell.week-start .tl-weekday {
  font-weight: 800;
}
.top[hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
main.timeline-page {
  padding-top: 0;
}
.tl-toolbar {
  padding: 10px var(--tl-gutter);
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 9px 16px;
  flex-wrap: wrap;
  background: #fafbf8;
}
.tl-toolbar .tl-scope {
  margin-right: auto;
  min-width: 130px;
}
.tl-toolbar .tl-scope > strong {
  font-size: 0.94rem;
}
.tl-toolbar .tl-scope > small {
  font-size: 0.78rem;
}
.tl-toolbar .actions {
  gap: 6px;
}
.tl-plan-tools {
  border-left: 1px solid #d9e3d7;
  padding-left: 14px;
}
.tl-legend {
  min-height: 35px;
  font-size: 0.77rem;
}
.tl-foot {
  min-height: 37px;
  padding-block: 3px;
}
.tl-foot .btn {
  min-height: 29px;
}
.tl-cell.is-selected .tl-tile {
  background: #d8e8d6;
}
.tl-cell.is-selected .tl-date {
  background: #c6ddc7;
  color: #163c26;
  box-shadow: inset 0 2px #4b7758;
}
.tl-cell.is-selected::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  z-index: 1;
  border-inline: 1px solid #66966a;
  pointer-events: none;
}
.tl-cell.is-selected .tl-name {
  font-weight: 720;
  color: #244c35;
}
.day-detail {
  padding: 17px var(--tl-gutter) 25px;
  background: #f7faf5;
  min-height: 270px;
  overflow-anchor: none;
}
.day-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 11px;
}
.day-detail-head h2 {
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
}
.day-kicker {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  color: #496d54;
  margin-bottom: 3px;
}
.day-release,
.day-archive,
.day-channel-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.2fr);
  gap: 10px 22px;
  align-items: start;
  max-width: 1260px;
}
.day-release h3 {
  margin-bottom: 4px;
}
.day-brief {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.91rem;
  color: #43574a;
}
.day-brief img {
  width: clamp(80px, 13vw, 180px);
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 7px;
  flex: none;
}
.day-account-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #dce4d9;
  padding: 2px 0;
}
.day-account .btn {
  min-height: 31px;
}
.day-account strong {
  font-size: 0.91rem;
}
.day-account .meta {
  margin-top: 0;
  font-size: 0.77rem;
}
.day-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 8px;
}
.day-metrics > div {
  border: 1px solid #d9e4d5;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.day-metrics dt {
  font-size: 0.78rem;
  color: #405b4b;
}
.day-metrics dd {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 760;
}
.day-archive .arch-metric {
  margin: 0;
}
.day-add {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
}
.day-add .field {
  margin: 0;
  flex: 0 1 275px;
}
.day-detail .error {
  margin-top: 5px;
}
.day-channel-summary .actions {
  justify-content: flex-end;
}
@media (max-width: 740px) {
  .tl-toolbar {
    padding-block: 8px;
    gap: 7px 9px;
  }
  .tl-plan-tools {
    border: 0;
    padding-left: 0;
  }
  .tl-toolbar .tl-scope {
    flex-basis: 100%;
  }
  .tl-toolbar .btn {
    min-height: 34px;
  }
  .day-release,
  .day-archive,
  .day-channel-summary {
    grid-template-columns: 1fr;
  }
  .day-detail {
    padding-top: 12px;
  }
  .day-channel-summary .actions {
    justify-content: flex-start;
  }
  .day-brief {
    display: block;
  }
  .day-brief img {
    display: block;
    margin-bottom: 8px;
  }
}

.tl-legend > .tl-coverage {
  display: grid;
  gap: 0;
  padding-block: 5px;
  padding-right: 14px;
  border-right: 1px solid #d9e3d7;
  color: #254638;
}
.tl-coverage strong {
  font-size: 0.92rem;
}
.tl-coverage small {
  font-size: 0.78rem;
  color: #536458;
}
.tl-cell.ready .tl-bar {
  background: #96a49c;
  color: #182d22;
  font-size: 1rem;
}
.tl-legend .legend-future {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  background: #96a49c;
  color: #182d22;
  font-weight: 800;
}
.tl-cell.pending .tl-bar {
  height: 47%;
  background: #f0dfb9;
  border: 1px solid #b99964;
  border-bottom: 0;
  color: #6b471c;
}
@media (max-width: 740px) {
  .tl-legend > .tl-coverage {
    flex-basis: 100%;
    border-right: 0;
    padding-bottom: 2px;
  }
}

.tl-plan-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #d6e1d4;
  border-radius: 8px;
  padding: 2px;
  background: #eff4ee;
}
.tl-plan-mode .btn {
  border-color: transparent;
  color: #435d4a;
  background: transparent;
  white-space: nowrap;
}
.tl-plan-mode .btn[aria-current='page'] {
  background: #d5e8d7;
  color: #193c29;
  border-color: #b7d1be;
  font-weight: 750;
}
@media (max-width: 740px) {
  .tl-toolbar .tl-scope {
    flex: 1;
    min-width: 132px;
  }
}
.tracking-date {
  margin: 0 0 9px;
  text-transform: capitalize;
}
.tracking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.tracking-card {
  min-width: 0;
  border: 1px solid #d8e4d7;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  overflow-wrap: anywhere;
}
.tracking-card > h3 {
  font-size: 0.86rem;
  font-weight: 760;
  color: #365746;
  margin-bottom: 12px;
}
.tracking-card > h2 {
  font-size: clamp(1.16rem, 2vw, 1.64rem);
  line-height: 1.13;
  margin: 12px 0;
}
.day-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.day-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.day-cover > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cover-rain {
  background: linear-gradient(160deg, #30495a, #7e9995 77%);
}
.cover-honey {
  background: linear-gradient(155deg, #8c5235, #f1d399);
}
.cover-empty {
  background: linear-gradient(145deg, #e4eae2, #f2f5f0);
  color: #4e6455;
  align-content: center;
  gap: 7px;
  text-align: center;
  font-size: 0.82rem;
}
.cover-empty > svg {
  width: 32px;
  height: 32px;
}
.tracking-meta {
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
}
.tracking-meta div,
.tracking-kpis div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
}
.tracking-meta dd,
.tracking-kpis dd {
  margin: 0;
  font-weight: 750;
}
.day-note {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #526657;
  margin: 8px 0 0;
}
.tracking-card .actions {
  margin-top: 10px;
}
.tracking-channels {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 5px;
}
.track-channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  padding: 7px 8px;
  background: #edf3ed;
  border-radius: 7px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.track-channel small {
  display: block;
  color: #425a4d;
  font-size: 0.77rem;
}
.track-channel.needs-manual {
  background: #fff0cf;
  box-shadow: inset 3px 0 #ad751f;
}
.track-channel.needs-manual small {
  color: #6d4614;
}
.track-channel-tail {
  display: flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.tracking-kpis {
  margin: 0 0 12px;
  font-size: 0.88rem;
}
.tracking-kpis div {
  padding: 6px 0;
  border-bottom: 1px solid #e6ede4;
  align-items: baseline;
}
.tracking-kpis dd {
  font-variant-numeric: tabular-nums;
}
dialog:has(.feedback-threads) {
  width: min(720px, calc(100% - 26px));
  max-height: calc(100dvh - 32px);
}
.feedback-notice {
  font-size: 0.86rem;
}
.feedback-threads {
  display: grid;
  gap: 9px;
}
.feedback-thread {
  border: 1px solid #d8e4d7;
  border-radius: 9px;
  padding: 12px 13px;
  background: #fff;
}
.feedback-thread-head {
  display: flex;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.feedback-thread-head small {
  font-weight: 500;
  color: #536558;
}
.feedback-thread p {
  margin: 0 0 8px;
  color: #294135;
}
.feedback-thread textarea {
  min-height: 68px;
}
.feedback-thread .actions {
  justify-content: flex-end;
}
.feedback-answer {
  background: #eef5ec;
  border-radius: 7px;
  padding: 8px 10px;
}
@media (max-width: 850px) {
  .tracking-grid {
    grid-template-columns: 1fr;
  }
  .day-cover {
    max-width: 380px;
  }
  .tracking-meta {
    max-width: 380px;
  }
}

/* Calendar chrome and release overview. Chart and date rail geometry stay unchanged. */
main.timeline-page {
  padding-bottom: 0;
  --tl-gutter: clamp(14px, 2.4vw, 38px);
}
.tl-toolbar {
  min-height: 48px;
  padding-block: 6px;
  gap: 6px 12px;
  justify-content: space-between;
}
.tl-toolbar .tl-plan-mode {
  margin-right: auto;
  flex-shrink: 0;
}
.tl-toolbar .btn {
  min-height: 32px;
  padding: 4px 9px;
}
.tl-toolbar .tl-zoom .btn {
  min-width: 31px;
}
.tl-view-tools {
  flex-wrap: nowrap;
}
#tl-filter {
  min-height: 32px;
  max-width: 140px;
  background: #fff;
  color: var(--ink);
  padding: 3px 5px;
  border: 1px solid #cbd9cc;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 650;
}
.plan-options {
  position: relative;
}
.plan-options summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  align-items: center;
}
.plan-options summary::-webkit-details-marker {
  display: none;
}
.plan-options-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  min-width: 197px;
  z-index: 8;
  display: grid;
  gap: 5px;
  border: 1px solid #c8d8cb;
  border-radius: 9px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 9px 26px #17342929;
}
.plan-options-pop p {
  font-size: 0.78rem;
  color: #456050;
  padding: 3px 6px 5px;
  white-space: nowrap;
}
.plan-options-pop .btn {
  justify-content: flex-start;
}
.tl-legend {
  gap: 5px 15px;
  padding-block: 5px;
  min-height: 35px;
}
.tl-legend > .tl-coverage {
  display: flex;
  align-items: baseline;
  gap: 5px 9px;
  flex-wrap: wrap;
  padding: 0 13px 0 0;
}
.tl-coverage strong {
  font-size: 0.86rem;
}
.tl-metric-key .legend-future {
  margin-left: 6px;
}
.tl-legend .tl-cal-legend {
  margin-left: auto;
}
.day-detail {
  padding: 12px var(--tl-gutter) 14px;
  min-height: 0;
}
.tracking-date {
  margin-bottom: 8px;
}
.tracking-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: 11px;
}
.tracking-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.tracking-card > h3 {
  margin-bottom: 8px;
}
.tracking-release-body {
  display: grid;
  grid-template-columns: clamp(94px, 11vw, 158px) minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.tracking-release-body .day-cover {
  min-width: 0;
}
.shared-release-preview:has(> [hidden]) {
  grid-template-columns: 1fr;
}
.shared-release-preview > img[hidden] {
  display: none;
}
.shared-release-preview > img {
  display: block;
  object-fit: cover;
}
.tracking-release-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1rem, 1.5vw, 1.31rem);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tracking-release-copy .tracking-meta {
  display: grid;
  gap: 4px;
  font-size: 0.79rem;
  line-height: 1.23;
}
.tracking-release-copy .tracking-meta div {
  display: block;
  min-width: 0;
}
.tracking-release-copy .tracking-meta dt {
  color: #516457;
  font-size: 0.73rem;
}
.tracking-release-copy .tracking-meta dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracking-card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.tracking-card .btn {
  min-height: 30px;
  padding: 3px 9px;
  font-size: 0.81rem;
}
.tracking-card .day-note {
  margin-top: 0;
}
.tracking-channels {
  margin-top: 0;
  gap: 4px;
}
.track-channel {
  padding: 5px 7px;
  line-height: 1.15;
  min-height: 27px;
  gap: 4px 6px;
}
.track-channel strong {
  font-size: 0.82rem;
}
.track-channel small {
  font-size: 0.74rem;
}
.track-channel.track-error {
  background: #f4dfdc;
  box-shadow: inset 3px 0 #a44436;
}
.tracking-kpis {
  margin: 0;
  font-size: 0.84rem;
}
.tracking-kpis div {
  padding: 5px 0;
}
dialog:has(.tracking-expanded) {
  width: min(650px, calc(100% - 26px));
  max-height: calc(100dvh - 32px);
}
.tracking-expanded-release {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.tracking-expanded .tracking-meta {
  font-size: 0.91rem;
}
.tracking-expanded .track-channel {
  padding: 8px;
}
.tracking-expanded .day-note {
  margin-top: 9px;
}
@media (max-width: 1100px) {
  .tl-legend .tl-cal-legend {
    margin-left: 0;
  }
  .tracking-release-body {
    grid-template-columns: clamp(82px, 10vw, 115px) minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 740px) {
  .tl-toolbar {
    justify-content: flex-start;
  }
  .tl-toolbar .tl-plan-mode {
    margin-right: 0;
  }
  .tl-legend {
    font-size: 0.72rem;
  }
  .tl-legend > .tl-coverage {
    border: 0;
    flex-basis: 100%;
  }
  .tl-legend .tl-cal-legend {
    display: none;
  }
  .tracking-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .tracking-card {
    padding: 8px 10px;
  }
  .tracking-card > h3 {
    margin-bottom: 5px;
  }
  .day-detail {
    padding-top: 8px;
  }
  .tracking-release-body {
    grid-template-columns: 77px minmax(0, 1fr);
  }
  .tracking-release-copy .tracking-meta div {
    display: flex;
  }
  .tracking-release-copy .tracking-meta dd {
    flex: 1 1 55%;
    text-align: right;
  }
  .tracking-card-actions {
    padding-top: 4px;
  }
  .tracking-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .tracking-kpis div {
    display: block;
    padding: 2px 0;
  }
  .tracking-expanded-release {
    grid-template-columns: minmax(96px, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 740px) {
  .shell:has(.timeline-page) .rail {
    padding-top: 7px;
    padding-bottom: 4px;
    gap: 4px;
  }
  .shell:has(.timeline-page) #nav {
    padding: 1px 0 3px;
  }
  .shell:has(.timeline-page) #nav button {
    padding-block: 5px;
  }
  .timeline-page .tl-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'mode plan' 'controls controls';
    gap: 4px 5px;
    padding-block: 4px;
  }
  .timeline-page .tl-plan-mode {
    grid-area: mode;
    justify-self: start;
    max-width: 100%;
  }
  .timeline-page .plan-options {
    grid-area: plan;
  }
  .timeline-page .tl-view-tools {
    grid-area: controls;
    justify-self: end;
  }
  .timeline-page .tl-toolbar .btn,
  .timeline-page #tl-filter {
    min-height: 29px;
  }
  .timeline-page .tl-legend {
    gap: 3px;
    padding-block: 4px;
  }
  .timeline-page .tl-coverage strong,
  .timeline-page .tl-coverage small {
    font-size: 0.73rem;
  }
  .timeline-page .tl-metric-key {
    font-size: 0.72rem;
  }
  .tracking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tracking-grid [aria-labelledby='tracking-release'] {
    grid-column: span 2;
  }
  .tracking-kpis {
    display: block;
  }
  .tracking-kpis div {
    display: flex;
    gap: 2px 4px;
  }
  .tracking-card .track-channel {
    padding: 4px 5px;
    display: block;
  }
  .tracking-card .tracking-channels {
    gap: 3px;
  }
  .tracking-card .track-channel strong {
    font-size: 0.8rem;
  }
  .tracking-card .track-channel small {
    font-size: 0.71rem;
  }
}

/* Keep registry status separate from the publishing mode. */
.platform-table-wrap {
  overflow-x: auto;
}
.platform-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
  text-align: left;
}
.platform-table th,
.platform-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid #e6ede4;
  vertical-align: top;
}
.platform-table thead th {
  color: #435c4a;
  font-size: 0.875rem;
}
.platform-table tbody th small {
  display: block;
  margin-top: 0.15rem;
  color: #536558;
  font-weight: 400;
}
.platform-paused,
.platform-excluded {
  background: #f6f8f5;
}
.platform-own th,
.platform-own td {
  border-top: 2px solid #d8e4d7;
}
.tracking-kpis dt {
  min-width: 0;
}
.feedback-filters {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.feedback-filters .field {
  margin: 0;
}
.feedback-visible {
  font-size: 0.875rem;
  color: #536558;
}
@media (max-width: 500px) {
  .feedback-filters {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 741px) {
  .tracking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1101px) {
  .tracking-release-body {
    grid-template-columns: clamp(94px, 10vw, 139px) minmax(0, 1fr);
  }
}
.coverage-out {
  background: #e4f4e8;
  color: #245b37;
}
.coverage-queued {
  background: #e7effb;
  color: #284e88;
}
.coverage-manual {
  background: #fff0c9;
  color: #6b4800;
}
.coverage-failed {
  background: #fbe5e1;
  color: #8f2822;
}
.coverage-prepare,
.coverage-unknown {
  background: #f3edf8;
  color: #58416e;
}
.coverage-off {
  background: #f0f2f0;
  color: #505953;
}
.coverage-details .track-channel div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.coverage-details .track-channel small {
  color: inherit;
}
.feedback-actionable dd {
  color: #774a00;
  background: #fff1cd;
  border-radius: 5px;
  padding: 0 5px;
}
@media (max-width: 460px) {
  .tracking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tracking-grid [aria-labelledby='tracking-release'] {
    grid-column: auto;
  }
}

@media (min-width: 1100px) and (min-height: 810px) {
  main.timeline-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .timeline-page > .tl-toolbar,
  .timeline-page > .tl-board {
    flex: none;
  }
  .timeline-page > .day-detail {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
  }
  .day-detail > .tracking-grid {
    flex: 1 0 auto;
  }
  .tracking-card {
    padding: 15px;
  }
  .tracking-card > h3 {
    font-size: 0.95rem;
    margin-bottom: 11px;
  }
  .tracking-release-body {
    grid-template-columns: clamp(124px, 11.2vw, 170px) minmax(0, 1fr);
    gap: 13px;
  }
  .tracking-release-copy .tracking-meta {
    font-size: 0.86rem;
    gap: 7px;
  }
  .tracking-release-copy .tracking-meta dt {
    font-size: 0.78rem;
  }
  .tracking-release-copy .tracking-meta dd {
    white-space: normal;
  }
  .tracking-kpis {
    font-size: 0.92rem;
  }
  .tracking-kpis div {
    padding-block: 8px;
  }
  .tracking-card-actions {
    padding-top: 12px;
  }
}

/* Publication status by group under the selected day. */
.coverage-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 6px;
}
.coverage-group {
  min-width: 0;
}
.coverage-group + .coverage-group {
  border-inline-start: 1px solid #dce5db;
  padding-inline-start: 6px;
}
.coverage-group h4 {
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0 0 6px;
  min-block-size: 2.05rem;
  color: #30483b;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.coverage-group h4 span {
  display: inline-block;
  font-size: 0.69rem;
  color: #526558;
  font-weight: 550;
}
.coverage-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.coverage-entry {
  display: grid;
  grid-template-columns: 0.75em minmax(0, 1fr);
  gap: 3px;
  align-items: start;
  border-radius: 4px;
  padding: 2px 3px;
  font-size: 0.75rem;
  line-height: 1.12;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.coverage-state-icon {
  text-align: center;
  font-weight: 850;
}
.coverage-empty {
  font-size: 0.75rem;
  color: #526558;
  margin: 0;
}
.tl-publish-alert {
  position: absolute;
  z-index: 2;
  inset: 8px 4px auto auto;
  width: 24px;
  height: 24px;
  border: 1px solid #9d241d;
  border-radius: 50%;
  padding: 0;
  background: #fff0ec;
  color: #9d241d;
  font-weight: 850;
  cursor: pointer;
  line-height: 1;
}
.tl-publish-alert:hover {
  background: #9d241d;
  color: white;
}
@media (max-width: 740px) and (min-width: 461px) {
  .tracking-grid [aria-labelledby='tracking-channels'] {
    grid-column: 1/-1;
    grid-row: 2;
  }
}
@media (min-width: 1250px) {
  .coverage-columns {
    gap: 8px;
  }
  .coverage-group + .coverage-group {
    padding-inline-start: 8px;
  }
  .coverage-group h4 {
    font-size: 0.72rem;
  }
  .coverage-entry {
    font-size: 0.79rem;
  }
}

/* Keep post links visually quiet until hover. Reserve icon space to avoid reflow. */
.coverage-post-link {
  grid-template-columns: 0.75em minmax(0, 1fr) 0.8em;
  color: #245b37;
  text-decoration: none;
}
.coverage-post-link svg {
  width: 1em;
  height: 1em;
  align-self: center;
  visibility: hidden;
}
@media (any-hover: hover) {
  .coverage-post-link:hover {
    background: #cfead7;
    color: #143e25;
  }
  .coverage-post-link:hover svg {
    visibility: visible;
  }
}
.coverage-post-link:focus-visible {
  outline: 2px solid #497850;
  outline-offset: 1px;
}
.coverage-entry > .sr-only {
  position: absolute;
}
.shell.demo-post-page {
  display: block;
}
.demo-post-page main {
  max-width: 700px;
  margin: auto;
  padding: 24px 16px;
}
.demo-post-card {
  padding: clamp(16px, 4vw, 32px);
}
.demo-post-card .eyebrow {
  margin-top: 24px;
}
.demo-post-body {
  display: grid;
  grid-template-columns: minmax(80px, 160px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* Releases: a single edge-to-edge work surface. */
main.studio-page {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  --studio-inset: clamp(10px, 1.5vw, 23px);
}
.studio-page {
  color: var(--ink);
  background: #f7f9f5;
}
.studio-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-height: 49px;
  padding: 6px var(--studio-inset);
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
.studio-filters h1 {
  font-size: 1.4rem;
  letter-spacing: -0.045em;
  margin-right: 4px;
}
.studio-filter {
  min-width: 0;
}
.studio-filter input,
.studio-filter select {
  height: 33px;
  border: 1px solid #cbd8cc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  max-width: 100%;
  font-size: 0.84rem;
}
.studio-search {
  flex: 1 1 150px;
  max-width: 260px;
}
.studio-search input {
  width: 100%;
}
.studio-more {
  position: relative;
  font-size: 0.83rem;
  z-index: 4;
}
.studio-more > summary {
  cursor: pointer;
  padding: 5px 5px;
}
.studio-more > div {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  min-width: 180px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 16px #152a221c;
}
.studio-more select {
  width: 100%;
}
.studio-filters > .btn {
  margin-inline-start: auto;
  flex: none;
}
#studio-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-browser {
  --studio-inset: clamp(10px, 1.5vw, 23px);
  background: #eaf0e7;
  border-bottom: 1px solid #c6d4c7;
  min-width: 0;
}
.studio-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 2px var(--studio-inset);
  min-height: 34px;
  font-size: 0.8rem;
  color: #435e50;
  background: #f5f8f2;
  border-bottom: 1px solid #d6e0d5;
}
.studio-rail-top {
  flex-wrap: wrap;
}
.studio-rail-controls,
.studio-format-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.studio-rail-controls {
  margin-inline-start: auto;
  justify-content: flex-end;
}
.studio-rail-button {
  min-height: 27px;
  padding: 2px 8px;
  border: 1px solid #c4d3c5;
  border-radius: 4px;
  background: #fff;
  color: #315441;
  font-size: 0.79rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.studio-rail-button:hover {
  border-color: #64896c;
}
.studio-rail-button[aria-pressed='true'] {
  background: #365b47;
  border-color: #365b47;
  color: #fff;
}
.studio-previews-button {
  margin-inline-start: 5px;
}
.studio-previews-off .studio-bar > img,
.studio-previews-off .studio-bar > svg {
  display: none;
}
.studio-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #899e8a #e8efe6;
  overscroll-behavior-inline: contain;
}
.studio-scroll:focus-visible {
  outline-offset: -2px;
}
.studio-date-slot {
  flex: 0 0 clamp(37px, 4.55%, 100px);
  position: relative;
  padding-top: 21px;
  text-align: center;
  border-inline-start: 1px solid #d4ded2;
  background: linear-gradient(#e4ede2 0 21px, transparent 21px);
}
.studio-date-slot.week-start {
  border-inline-start: 1px dashed #a5b7a7;
}
.studio-date-slot.month {
  border-inline-start: 1px solid #7e9984;
}
.studio-date-slot:is(
  [data-calendar='weekend'],
  [data-calendar='holiday'],
  [data-calendar='transfer']
) {
  background: linear-gradient(#dfe8de 0 21px, #e3ece3 21px);
}
.studio-date-slot.today {
  border-inline-start: 2px solid #477451;
  background: #dbe9d8;
}
.studio-month,
.studio-now {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 16px;
  white-space: nowrap;
  color: #3f6149;
}
.studio-now {
  top: 3px;
  left: 2px;
  border-radius: 3px;
  padding-inline: 3px;
  background: #426952;
  color: white;
  font-size: 0.62rem;
}
.studio-date-slot button {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: end;
  gap: 4px;
  width: 100%;
  border: 0;
  background: none;
  font-size: 0.75rem;
  color: #314b3c;
  padding: 2px 0 4px;
}
.studio-date-slot button:disabled {
  opacity: 1;
  cursor: default;
  color: #536d5b;
}
.studio-bar {
  display: grid;
  place-items: center;
  width: calc(100% - clamp(7px, 1.35vw, 14px));
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #a1aea3;
  color: #fff;
}
.studio-bar > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.studio-bar > svg {
  width: 38%;
  height: 38%;
  opacity: 0.85;
}
.studio-date-slot .before .studio-bar {
  background: #4d755f;
}
.studio-date-slot .muted-release .studio-bar {
  opacity: 0.22;
}
.studio-date-slot .no-release .studio-bar {
  background: none;
  border: 1px dashed #96aa98;
}
.studio-tick {
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1.05;
  white-space: nowrap;
}
.studio-tick small {
  font-size: 0.67rem;
  color: #526b59;
}
.studio-date-slot button[aria-pressed='true'] {
  background: #d3e7ce;
  color: #1d4b31;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #64896c;
}
.studio-date-slot button[aria-pressed='true'] .studio-bar {
  outline: 1px solid #426d51;
}
.studio-date-slot button:not(:disabled):hover {
  background: #dfeade;
}
.studio-date-slot button:focus-visible {
  outline-offset: -2px;
}
.studio-undated-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px var(--studio-inset);
  font-size: 0.85rem;
  max-height: 140px;
  overflow: auto;
}
.studio-browser > .field {
  padding: 0 var(--studio-inset);
  margin: 5px 0;
}
.studio-browser > .field select {
  max-width: min(100%, 24rem);
  margin: 4px 0;
}
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}
.studio-card,
.studio-viewer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 12px var(--studio-inset);
  border: 0;
  border-radius: 0;
  margin: 0;
}
.studio-card {
  border-inline-end: 1px solid var(--line);
}
.studio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.studio-card-head .eyebrow {
  margin: 0;
}
.studio-card > h2 {
  font-size: clamp(1.22rem, 2vw, 1.75rem);
}
.studio-date-line,
.studio-caption,
.studio-media-footer small {
  font-size: 0.79rem;
  color: #516a59;
}
.studio-card .tracking-meta {
  margin-top: 9px;
}
.studio-master-field {
  margin: 10px 0 4px;
}
.studio-master-field textarea {
  min-height: 76px;
  max-height: 170px;
  height: clamp(78px, 12vh, 125px);
  resize: vertical;
}
.studio-card .actions {
  margin-top: 8px;
  flex-wrap: wrap;
}
.studio-viewer {
  background: #f8faf6;
}
.studio-viewer h2 {
  font-size: 1.18rem;
}
.studio-stage {
  min-height: 200px;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 4px;
  background: #edf1e9;
  overflow: hidden;
}
.studio-stage img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: min(50vh, 520px);
  object-fit: contain;
  border-radius: 3px;
}
.studio-stage-video {
  --media-limit: min(50vh, 520px);
}
.studio-stage-video video {
  --media-ratio: calc(16 / 9);
  display: block;
  width: min(100%, calc(var(--media-limit) * var(--media-ratio)));
  height: auto;
  aspect-ratio: var(--media-ratio);
  object-fit: contain;
  background: #111;
  border-radius: 3px;
}
.studio-stage-video video.studio-vertical {
  --media-ratio: calc(9 / 16);
}
.studio-slide-controls,
.studio-media-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  padding-top: 5px;
  font-size: 0.81rem;
}
.studio-media-footer {
  justify-content: space-between;
  flex-wrap: wrap;
}
.studio-file {
  position: relative;
  font-size: 0.78rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #cbd8cc;
  border-radius: 5px;
  cursor: pointer;
  background: white;
}
.studio-file:focus-within {
  outline: 2px solid #70a449;
  outline-offset: 2px;
}
.studio-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.studio-media-empty,
.studio-empty {
  text-align: center;
  padding: 12px;
  color: #506456;
}
.studio-media-empty svg {
  width: 28px;
  height: 28px;
}
@media (min-width: 741px) and (min-height: 650px) {
  main.studio-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .studio-filters,
  .studio-browser {
    flex: none;
  }
  #studio-body {
    flex: 1 1 auto;
    min-height: 0;
  }
  .studio-card,
  .studio-viewer {
    overflow: auto;
    overscroll-behavior: contain;
  }
  .studio-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    margin: auto;
  }
  .studio-stage-video {
    container-type: size;
    --media-limit: 100cqh;
  }
}
@media (max-width: 920px) {
  .studio-workspace {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.45fr);
  }
}
@media (max-width: 740px) {
  .studio-filters,
  .studio-rail-top {
    padding-inline: 8px;
  }
  .studio-search {
    flex: 1 0 110px;
  }
  .studio-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-card {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .studio-date-slot {
    flex-basis: 44px;
  }
  .studio-stage img {
    max-height: min(48vh, 420px);
  }
  .studio-stage-video {
    --media-limit: min(48vh, 420px);
  }
}
@media (max-width: 430px) {
  .studio-filter select {
    max-width: 100%;
    font-size: 0.78rem;
  }
  .studio-filters > .btn {
    font-size: 0.78rem;
  }
  .studio-more > div {
    right: auto;
    left: 0;
  }
}

/* Operations screens: horizontal bands on one shared surface. */
main.ops-page {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  --op-gap: clamp(10px, 1.55vw, 23px);
  background: #f7f9f5;
}
.ops-bar,
.ops-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-height: 49px;
  padding: 6px var(--op-gap);
  background: #fafbf8;
  border-bottom: 1px solid #d6e1d4;
}
.ops-bar h1 {
  font-size: 1.4rem;
  letter-spacing: -0.045em;
  flex: none;
}
.ops-controls {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  min-width: 0;
}
.ops-mode,
.ops-sub > span {
  margin-inline-start: auto;
  color: #496255;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ops-mode {
  font-weight: 750;
  background: #e6efe1;
  padding: 3px 7px;
  border-radius: 4px;
}
.ops-sub {
  background: #edf3e8;
  min-height: 39px;
  font-size: 0.85rem;
}
.ops-sub > span {
  white-space: normal;
}
.ops-filter select {
  height: 33px;
  max-width: 165px;
  padding: 0 6px;
  border: 1px solid #cbd9ce;
  background: white;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--ink);
}
.ops-chip {
  min-height: 29px;
  white-space: nowrap;
}
.ops-chip[aria-pressed='true'] {
  background: #dcebd6;
  border-color: #aec6a8;
  color: #234838;
}
.ops-chip small {
  margin-inline-start: 3px;
  font-weight: 800;
}
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ops-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.ops-pane {
  padding: 12px var(--op-gap);
  min-width: 0;
  min-height: 0;
  background: white;
}
.ops-pane + .ops-pane {
  border-inline-start: 1px solid #d6e1d4;
}
.ops-pane h2 {
  font-size: 1.13rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ops-context + h2 {
  font-size: clamp(1.28rem, 2vw, 1.64rem);
}
.ops-empty,
.ops-hint {
  color: #4c6457;
  font-size: 0.83rem;
}
.ops-empty {
  padding: 12px 0;
}
.ops-hint {
  margin: 6px 0 0;
}
.ops-list {
  background: #f8faf6;
}
.ops-manual {
  grid-template-columns: minmax(235px, 0.8fr) minmax(0, 1.45fr);
}
.ops-queue {
  display: grid;
  gap: 4px;
}
.ops-workrow {
  width: 100%;
  border: 1px solid transparent;
  border-bottom-color: #e3ebe0;
  background: transparent;
  text-align: start;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
  color: var(--ink);
}
.ops-workrow:hover,
.ops-workrow[aria-pressed='true'] {
  background: #e8f1e4;
  border-color: #c4d7c1;
}
.ops-row-copy {
  min-width: 0;
  display: grid;
}
.ops-row-copy strong,
.ops-row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-row-copy small,
.ops-context {
  color: #506a5a;
  font-size: 0.79rem;
}
.ops-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 5px;
}
.ops-state {
  white-space: nowrap;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 3px 5px;
  font-weight: 750;
  background: #e9eee8;
  color: #40564a;
}
.ops-state.late,
.ops-state.failed,
.ops-error {
  color: #922e24;
  background: #f9e8e3;
}
.ops-state.today,
.ops-state.manual {
  color: #704c14;
  background: #fff0cd;
}
.ops-state.done,
.ops-state.auto {
  color: #245942;
  background: #dceee1;
}
.ops-error {
  padding: 8px;
  margin: 8px 0;
  border-radius: 5px;
}
.ops-task-facts {
  margin: 8px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 9px;
}
.ops-task-facts > div {
  border-top: 1px solid #e0e8df;
  padding-top: 4px;
  min-width: 0;
}
.ops-task-facts dt {
  font-size: 0.78rem;
  color: #4b6657;
}
.ops-task-facts dd {
  margin: 0;
  font-size: 0.91rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.ops-task-facts dd small {
  font-size: 0.68rem;
  color: #48644f;
}
.ops-task-pane textarea {
  min-height: 95px;
  resize: vertical;
}
.ops-task-pane .field {
  margin: 8px 0;
}
.ops-confirm {
  margin-top: 11px;
  border-top: 1px solid #e0e8df;
  padding-top: 9px;
}
.ops-confirm label {
  font-weight: 650;
  font-size: 0.83rem;
}
.ops-confirm > div {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ops-confirm input {
  flex: 1;
  min-width: min(180px, 100%);
  height: 34px;
  border: 1px solid #cbd9ce;
  background: white;
  border-radius: 6px;
  padding: 0 7px;
}
.ops-result {
  margin-top: 8px;
}
.ops-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #eaf2e6;
  border-bottom: 1px solid #d0decf;
}
.ops-stats > div {
  padding: 7px var(--op-gap);
  min-width: 0;
  display: grid;
  gap: 1px;
}
.ops-stats > div + div {
  border-inline-start: 1px solid #d0decf;
}
.ops-stats span,
.ops-stats small {
  color: #496255;
  font-size: 0.76rem;
  line-height: 1.18;
}
.ops-stats strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.06rem, 2.4vw, 1.76rem);
  line-height: 1.12;
}
.ops-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.ops-section-head p {
  font-size: 0.77rem;
  color: #4b6856;
  margin-top: -3px;
}
.ops-trend {
  border-bottom: 1px solid #d6e1d4;
  background: #f8faf6;
}
.ops-chart-body {
  display: grid;
  grid-template-columns: minmax(31px, max-content) minmax(0, 1fr);
  gap: 5px;
}
.ops-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  padding-block: 3px 17px;
  font-size: 0.71rem;
  color: #4f6558;
  font-variant-numeric: tabular-nums;
}
.ops-plot {
  min-width: 0;
}
.ops-plot svg {
  display: block;
  width: 100%;
  height: clamp(115px, 24dvh, 235px);
}
.ops-axis-dates {
  position: relative;
  height: 1.1rem;
  font-size: 0.72rem;
  color: #4f6558;
}
.ops-axis-dates > span {
  position: absolute;
  left: var(--tick);
  transform: translateX(-50%);
}
.ops-axis-dates > span:first-child {
  transform: translateX(-28%);
}
.ops-axis-dates > span:last-child {
  transform: translateX(-72%);
}
.ops-chart-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 5px;
}
.ops-chart-foot > div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 0.78rem;
}
.ops-chart-foot small {
  font-size: 0.74rem;
  color: #53695c;
}
.ops-chart-foot i {
  display: inline-block;
  width: 12px;
  height: 3px;
  background: var(--series);
  vertical-align: middle;
  margin-right: 4px;
}
.ops-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.ops-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ops-table th,
.ops-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e0e8de;
}
.ops-table tbody th {
  white-space: normal;
}
.ops-table thead {
  color: #496255;
  background: #f0f5ed;
}
.ops-table .is-current {
  background: #e8f2e4;
}
.ops-row-link {
  background: none;
  color: #244d38;
  text-align: left;
  border: 0;
  padding: 3px 0;
  font-size: inherit;
  font-weight: 750;
  line-height: 1.2;
}
.ops-row-link:hover {
  color: #166943;
}
.ops-hypothesis {
  margin-top: 8px;
  border-top: 1px solid #e0e8df;
  padding-top: 6px;
  font-size: 0.83rem;
}
.ops-hypothesis summary {
  cursor: pointer;
  color: #23543c;
  font-weight: 700;
}
.ops-hypothesis p {
  margin-top: 5px;
  color: #496255;
}
.ops-platforms {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.ops-platforms .ops-list {
  padding-top: 7px;
}
.ops-platform-health {
  padding: 6px 0;
  margin: 7px 0;
  border-block: 1px solid #e0e8df;
  font-size: 0.86rem;
}
.ops-platform-health h3 {
  font-size: 0.9rem;
}
@media (min-width: 860px) and (min-height: 650px) {
  main.ops-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .ops-bar,
  .ops-sub,
  .ops-stats,
  .ops-trend {
    flex: none;
  }
  .ops-split {
    flex: 1;
  }
  .ops-split .ops-pane {
    overflow: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 740px) {
  .ops-split,
  .ops-manual,
  .ops-platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-pane + .ops-pane {
    border-inline-start: 0;
    border-top: 1px solid #d6e1d4;
  }
  .ops-bar h1 {
    font-size: 1.2rem;
  }
  .ops-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-stats > div:nth-child(n + 3) {
    border-top: 1px solid #d6e1d4;
  }
  .ops-mode {
    order: -1;
    margin: 0;
  }
  .ops-controls {
    flex-basis: 100%;
  }
  .ops-platforms .ops-table {
    min-width: 420px;
  }
  .ops-confirm input {
    min-width: 130px;
  }
}
@media (max-width: 440px) {
  .ops-mode {
    margin-inline-start: auto;
    order: 0;
  }
  .ops-axis-dates > span:nth-child(even) {
    visibility: hidden;
  }
  .ops-stats > div {
    padding: 6px 9px;
  }
}

/* The studio mark is the home control. */
a.brand {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
a.brand:hover {
  background: #284536;
}
a.brand:focus-visible {
  outline-color: #bcec9a;
  outline-offset: 3px;
}

/* Release artwork: a single square cover and a format-specific viewer. */
.studio-release-summary {
  display: grid;
  grid-template-columns: clamp(78px, 10vw, 132px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 8px;
}
.studio-release-summary .day-cover {
  max-width: none;
}
.studio-release-summary .tracking-meta {
  margin-top: 0;
}
.studio-comic {
  margin: 0;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  width: min(100%, 50vh, 520px);
  max-width: 100%;
}
.studio-comic > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  inset: 0;
}
.studio-bubble {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: 5%;
  max-width: 76%;
  margin: 0;
  padding: 0.4em 0.85em;
  border: 2px solid #26201b;
  border-radius: 1.1em;
  background: #fffdf6;
  color: #231c19;
  font-weight: 680;
  font-size: clamp(0.78rem, 1.35vw, 1rem);
  line-height: 1.2;
  box-shadow: 1px 2px 1px #231c1940;
}
.studio-bubble::after {
  content: '';
  position: absolute;
  width: 0.62em;
  height: 0.62em;
  left: 1.2em;
  bottom: -0.41em;
  border-right: 2px solid #26201b;
  border-bottom: 2px solid #26201b;
  transform: skew(-12deg) rotate(45deg);
  background: inherit;
}
.studio-comic-right .studio-bubble {
  top: auto;
  bottom: 8%;
  left: auto;
  right: 5%;
}
.studio-comic-right .studio-bubble::after {
  left: auto;
  right: 1.2em;
}

/* Release intake: one shared surface, aligned with the releases and calendar screens. */
#nav button[data-do='new'] {
  color: #c7efad;
}
#nav button[data-do='new'][aria-current] {
  color: #e7ffda;
}
main.compose-page {
  max-width: none;
  padding: 0;
  min-height: 100dvh;
  --compose-inset: clamp(12px, 1.5vw, 24px);
  background: #f7f9f5;
}
#compose-form {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.compose-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 50px;
  padding: 8px var(--compose-inset);
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
.compose-top h1 {
  font-size: 1.42rem;
  letter-spacing: -0.045em;
}
.compose-top span,
.compose-muted {
  font-size: 0.85rem;
  color: var(--muted);
}
.compose-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.03fr);
}
.compose-grid > section {
  min-width: 0;
  padding: 14px var(--compose-inset);
}
.compose-grid > section + section {
  border-left: 1px solid var(--line);
}
.compose-grid > section:first-child {
  background: white;
}
.compose-grid h2 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.compose-grid .field {
  margin-bottom: 9px;
  font-size: 0.89rem;
}
.compose-grid .field :is(input, select, textarea) {
  min-height: 36px;
  padding: 5px 8px;
  font-size: 0.94rem;
}
.compose-grid .field textarea {
  min-height: 112px;
}
.compose-drop {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 158px;
  padding: 10px;
  border: 1px dashed #9bb59e;
  border-radius: 6px;
  background: #eaf1e7;
  text-align: center;
}
.compose-drop:focus-within,
.compose-drop.over {
  outline: 2px solid #70a449;
  outline-offset: 2px;
}
.compose-drop label {
  cursor: pointer;
}
.compose-drop > svg {
  width: 28px;
  height: 28px;
  color: #4c7354;
}
.compose-drop small,
.compose-date-line {
  font-size: 0.85rem;
  color: var(--muted);
}
.compose-drop :is(video, img) {
  max-width: 100%;
  max-height: min(36vh, 270px);
  display: block;
  object-fit: contain;
  border-radius: 4px;
}
#compose-media + .compose-muted {
  margin-top: 9px;
}
.compose-file-list {
  display: grid;
  gap: 3px;
  max-height: 185px;
  overflow: auto;
  padding-left: 26px;
  margin: 6px 0 0;
  font-size: 0.86rem;
}
.compose-file-list li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.compose-file-list li > span {
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.compose-file-list .btn {
  padding: 0 6px;
  min-height: 25px;
}
.compose-date-line,
.compose-target-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.compose-date-line {
  margin: -5px 0 11px;
}
.compose-date-line .btn {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 0.79rem;
}
.compose-target-head {
  margin: 0 0 3px;
}
.compose-target {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #e2e9e0;
  font-size: 0.89rem;
}
.compose-target input {
  accent-color: var(--green);
  margin: 0;
  width: 15px;
  height: 15px;
}
.compose-target:has(input:not(:disabled)) {
  cursor: pointer;
}
.compose-target small {
  font-size: 0.77rem;
  color: #4e6b54;
  white-space: nowrap;
}
.compose-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px var(--compose-inset);
  background: #fafbf8;
  border-top: 1px solid var(--line);
}
#compose-message {
  margin-inline-end: auto;
  color: #883b30;
  font-size: 0.85rem;
}
@media (max-width: 1100px) {
  .compose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compose-grid > section:last-child {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #compose-targets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}
@media (max-width: 740px) {
  .compose-grid {
    display: block;
  }
  .compose-grid > section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #compose-targets {
    display: block;
  }
  .compose-footer {
    justify-content: flex-start;
  }
}

.studio-month {
  max-width: calc(100% - 5px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-holiday {
  color: #814933;
  font-weight: 800;
}

/* Same date strip and insertion feedback in Releases and Add Release. */
.release-date-scroll [data-move-release] button,
.release-date-scroll [data-move-release] button:disabled,
.release-date-scroll [data-move-release] .studio-bar {
  cursor: grab;
  user-select: none;
}
.release-date-scroll button[aria-disabled='true'] {
  cursor: default;
  color: #536d5b;
}
.release-date-scroll button[aria-disabled='true']:hover {
  background: none;
}
.release-date-scroll.dragging,
.release-date-scroll.dragging .studio-bar {
  cursor: grabbing;
  user-select: none;
}
.release-date-scroll.dragging .studio-bar,
.release-date-scroll.dragging .studio-bar * {
  pointer-events: none;
}
.release-date-scroll .drop-origin .studio-bar {
  opacity: 0;
}
.release-date-scroll .drop-target {
  box-shadow: inset 0 0 0 2px #567f60;
  background-color: #d3e7ce;
}
.release-date-scroll .drop-blocked {
  box-shadow: inset 0 0 0 2px #a4524d;
}
.release-date-scroll .drop-shift .studio-bar {
  position: relative;
  z-index: 3;
  transform: translateX(var(--slot-shift));
  outline: 1px solid #64896c;
}
.release-date-scroll .drop-receive .no-release .studio-bar {
  border-color: transparent;
}
.release-date-scroll .drop-target::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset-inline: clamp(4px, 0.7vw, 8px);
  top: 23px;
  aspect-ratio: 1;
  border: 2px dashed #56825f;
  border-radius: 4px;
}
.release-date-scroll.dragging .studio-bar {
  transition: transform 0.16s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .release-date-scroll.dragging .studio-bar {
    transition: none;
  }
}

/* Analytics: one wide trend and three equally weighted decision surfaces. */
.ana-dashboard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  background: white;
}
.ana-main {
  border-bottom: 1px solid var(--line);
  background: #f8faf6;
}
.ana-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #eaf2e6;
  border-bottom: 1px solid #cfddcd;
}
.ana-kpi {
  display: grid;
  text-align: start;
  gap: 1px;
  color: var(--ink);
  border: 0;
  border-inline-end: 1px solid #cfddcd;
  background: transparent;
  padding: 7px var(--op-gap) 9px;
  min-width: 0;
  border-radius: 0;
}
.ana-kpi:last-child {
  border-inline-end: 0;
}
.ana-kpi:hover {
  background: #e4eedf;
}
.ana-kpi[aria-pressed='true'] {
  box-shadow: inset 0 -3px #507858;
  background: #dcebd7;
}
.ana-kpi span,
.ana-kpi small {
  font-size: 0.8rem;
  color: #476054;
}
.ana-kpi strong {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ana-trend {
  padding: 11px var(--op-gap) 9px;
}
.ana-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
}
.ana-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.18;
}
.ana-heading p {
  margin: 1px 0 0;
  color: #53695c;
  font-size: 0.8rem;
}
.ana-note {
  color: #53695c;
  font-size: 0.79rem;
  line-height: 1.32;
  margin: 4px 0;
}
.ana-chart {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.ana-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.73rem;
  color: #506756;
  padding: 3px 0 18px;
  text-align: right;
  line-height: 1;
}
.ana-plot svg {
  display: block;
  width: 100%;
  height: clamp(115px, 24vh, 245px);
}
.ana-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  color: #506756;
  font-size: 0.74rem;
  margin-top: 1px;
}
.ana-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 14px;
  font-size: 0.8rem;
  margin-top: 3px;
}
.ana-legend i {
  display: inline-block;
  width: 13px;
  border-top: 2px solid var(--ana-color);
  vertical-align: middle;
  margin-right: 5px;
}
.ana-legend i.dashed {
  border-top-style: dashed;
}
.ana-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  flex: 1;
}
.ana-panel {
  min-width: 0;
  padding: 9px var(--op-gap) 11px;
  background: #fff;
}
.ana-panel + .ana-panel {
  border-inline-start: 1px solid var(--line);
}
.ana-panel .ops-table {
  font-size: 0.8rem;
}
.ana-panel .ops-table th,
.ana-panel .ops-table td {
  padding: 5px 4px;
}
.ana-panel .ops-table thead th {
  white-space: normal;
  line-height: 1.12;
}
.ana-group {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ana-group .ops-chip {
  padding: 3px 6px;
  min-height: 25px;
}
.ana-bars {
  display: grid;
  gap: 2px;
  margin: 5px 0;
}
.ana-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0 8px;
  align-items: baseline;
  line-height: 1.2;
  min-width: 0;
  padding: 3px 0;
  font-size: 0.83rem;
}
.ana-bar-row > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ana-bar-row strong {
  font-variant-numeric: tabular-nums;
}
.ana-bar-row small {
  color: #546b59;
}
.ana-bar-track {
  grid-column: 1/-1;
  background: #edf2eb;
  height: 4px;
  margin-top: 3px;
  border-radius: 2px;
}
.ana-bar-track > i {
  display: block;
  height: 100%;
  background: #73947a;
  border-radius: 2px;
}
.ana-row-link {
  padding: 0;
  border: 0;
  color: #28523d;
  background: none;
  font-weight: 750;
  text-align: start;
}
.ana-row-link:hover:not(:disabled) {
  color: #37774f;
  text-decoration: underline;
}
.ana-row-link:disabled {
  color: #536957;
}
.ana-release-list {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}
.ana-release {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  text-align: start;
  gap: 8px;
  align-items: center;
  border: 1px solid #dce6da;
  padding: 4px;
  background: #f7faf5;
  border-radius: 5px;
  color: var(--ink);
  min-width: 0;
}
.ana-release:hover {
  background: #e9f1e5;
  border-color: #b7c9b6;
}
.ana-release .tracking-cover {
  width: 46px;
  height: 46px;
  min-width: 0;
}
.ana-release > span {
  display: grid;
  min-width: 0;
}
.ana-release > span strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ana-release > span small {
  color: #4d6654;
  font-size: 0.76rem;
}
.ana-detail-stats {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.ana-detail-stats > div {
  display: grid;
  flex: 1;
  background: #eaf2e6;
  padding: 6px 8px;
}
.ana-detail-stats span {
  font-size: 0.78rem;
}
.ana-net-menu {
  position: relative;
}
.ana-net-menu summary {
  cursor: pointer;
  padding: 6px 8px;
  border: 1px solid #cbd9ce;
  border-radius: 5px;
  font-size: 0.8rem;
  background: white;
}
.ana-net-menu > div {
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  z-index: 5;
  display: grid;
  gap: 6px;
  background: white;
  border: 1px solid #cbd9ce;
  min-width: 140px;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 0 4px 12px #1d392422;
}
.ana-net-menu label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
}
.ana-net-menu input {
  accent-color: #416b50;
}
@media (max-width: 900px) {
  .ana-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ana-panel:last-child {
    grid-column: 1/-1;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 580px) {
  .ana-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ana-kpi:first-child,
  .ana-kpi:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .ana-bottom {
    display: block;
  }
  .ana-panel + .ana-panel {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}
.release-date-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  box-shadow:
    0 4px 12px #183c2c6b,
    0 0 0 2px #f9fff8;
  will-change: transform;
}
.release-date-ghost * {
  pointer-events: none;
}
.release-date-ghost-empty > img,
.release-date-ghost-empty > svg {
  display: none;
}

/* Drag has one visible selection: the lifted release, never the draft date. */
.release-date-scroll.dragging button[aria-pressed='true'] {
  box-shadow: none;
  background: transparent;
  font-weight: inherit;
  color: inherit;
}
.release-date-scroll.dragging button[aria-pressed='true'] .studio-bar {
  outline: none;
}
.release-date-scroll.dragging .drop-target {
  box-shadow: none;
  background-color: transparent;
}
.release-date-scroll.dragging .drop-target::after {
  border-color: #496d84;
}
.release-date-ghost {
  box-shadow:
    0 4px 12px #183c2c6b,
    0 0 0 2px #f9fff8,
    0 0 0 4px #507858;
}
#studio-selection {
  display: contents;
}
#studio-date-choice:empty {
  display: none;
}

/* Three contemporaneous platform series; the editorial comparisons live in details. */
.ana-three {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  flex: 1;
  min-height: 0;
}
.ana-series-legend {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 3px var(--op-gap);
  border-bottom: 1px solid var(--line);
  background: #eaf2e6;
}
.ana-series-legend .ana-legend,
.ana-series-legend .ana-note {
  margin: 0;
}
.ana-series-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 7px var(--op-gap) 6px;
  border-bottom: 1px solid var(--line);
  background: #f8faf6;
}
.ana-series-panel:nth-child(odd) {
  background: #fff;
}
.ana-series-panel:last-child {
  border-bottom: 0;
}
.ana-series-head {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  min-height: 25px;
}
.ana-series-head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}
.ana-mini-switch {
  display: flex;
  gap: 4px;
}
.ana-mini-switch .ops-chip {
  min-height: 25px;
  padding: 2px 7px;
}
.ana-window {
  color: #506756;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
}
.ana-chart-focus {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1;
  align-items: stretch;
}
.ana-chart-focus .ana-chart {
  width: 100%;
  min-height: 0;
  margin-top: 4px;
}
.ana-chart-focus .ana-plot {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.ana-chart-focus .ana-plot svg {
  height: 100%;
  min-height: 35px;
  overflow: visible;
}
.ana-chart-focus .ana-axis {
  padding-bottom: 15px;
}
.ana-series-panel > .ana-note {
  margin: 2px 0 0;
}
#dialog:has(.ana-bottom) {
  width: min(1100px, calc(100vw - 34px));
}
@media (max-width: 859px), (max-height: 649px) {
  .ana-series-panel .ana-chart-focus {
    min-height: 150px;
  }
}
@media (max-width: 540px) {
  .ana-series-legend .ana-note {
    width: 100%;
    order: 2;
  }
  .ana-window {
    margin-inline-start: 0;
  }
  .ana-mini-switch {
    order: 2;
    width: 100%;
  }
}
.ana-chart-focus .ana-chart {
  grid-template-columns: 3rem minmax(0, 1fr);
}
.ana-axis-labels {
  position: relative;
  display: block;
  height: 1em;
}
.ana-axis-labels > span {
  position: absolute;
  inset-inline-start: var(--ana-x);
  transform: translateX(-50%);
  white-space: nowrap;
}
.ana-axis-labels > span:first-child {
  transform: none;
}
.ana-axis-labels > span:last-child {
  transform: translateX(-100%);
}

/* One screen: three parallel charts above the editorial working area. */
.ana-summary {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.ana-summary > .ana-three {
  grid-template-rows: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
}
.ana-summary .ana-series-panel {
  padding-top: 8px;
  padding-bottom: 9px;
  min-height: clamp(250px, 48dvh, 475px);
  border-bottom: 1px solid var(--line);
}
.ana-summary .ana-series-panel + .ana-series-panel {
  border-inline-start: 1px solid var(--line);
}
.ana-summary .ana-series-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: 'name dates' 'controls controls';
  grid-template-rows: minmax(22px, auto) 27px;
  gap: 3px 6px;
}
.ana-summary .ana-series-head h2 {
  grid-area: name;
}
.ana-summary .ana-series-head .ana-mini-switch {
  grid-area: controls;
}
.ana-summary .ana-window {
  grid-area: dates;
  margin-inline-start: 0;
  white-space: nowrap;
}
.ana-summary .ana-series-head .ana-mini-switch .ops-chip {
  font-size: 0.77rem;
  padding-inline: 5px;
}
.ana-summary .ana-chart-focus .ana-chart {
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 5px;
}
.ana-summary .ana-axis-labels {
  height: 20px;
  font-size: 0.7rem;
  line-height: 20px;
}
@media (max-width: 900px) {
  .ana-summary > .ana-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ana-summary .ana-series-panel:last-child {
    grid-column: 1/-1;
    border-inline-start: 0;
  }
  .ana-summary .ana-series-panel {
    min-height: 258px;
  }
}
@media (max-width: 630px) {
  .ana-summary > .ana-three {
    display: block;
  }
  .ana-summary .ana-series-panel + .ana-series-panel {
    border-inline-start: 0;
  }
  .ana-summary .ana-series-head .ana-mini-switch {
    width: auto;
  }
}

.ana-summary .ana-series-panel > .ana-note {
  min-height: 2.64em;
}

/* Platform filters and linked time cursor. */
.ana-platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ana-platform-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.ana-platform-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ana-color);
}
.ana-platform-chip[aria-pressed='false'] i {
  background: transparent;
  border: 1px solid var(--ana-color);
}
.ana-platform-chip[aria-disabled='true'] {
  cursor: default;
}
.ana-lock.btn {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 30px;
  margin-inline-start: auto;
  padding: 4px;
  color: #426153;
}
.ana-lock[aria-pressed='true'] {
  background: #d6e8d5;
  border-color: #82a68b;
  color: #243d2a;
}
.ana-chart-focus svg {
  cursor: crosshair;
}
.ana-chart-focus .ana-plot {
  position: relative;
}
.ana-crosshair {
  position: absolute;
  grid-area: 1/1/2/2;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: #224737;
}
.ana-crosshair[hidden] {
  display: none;
}
.ana-crosshair i {
  position: absolute;
  inset: 0 auto 0 var(--ana-cursor-x);
  border-left: 1px solid currentColor;
}
/* Date replaces only colliding time ticks; positions and plot size stay fixed. */
.ana-axis-labels > .ana-tick-covered {
  visibility: hidden;
}
.ana-cursor-date {
  position: absolute;
  left: clamp(min(47px, 50%), var(--ana-cursor-x), max(calc(100% - 47px), 50%));
  top: calc(100% + 1px);
  transform: translateX(-50%);
  padding: 0 6px;
  line-height: 20px;
  border-radius: 3px;
  background: #224737;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ana-cursor-marks {
  position: absolute;
  inset: 0;
}
.ana-cursor-point {
  position: absolute;
  left: var(--ana-cursor-x);
  top: var(--ana-point-y);
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: var(--ana-color);
  box-shadow: 0 0 0 1px var(--ana-color);
}
.ana-cursor-value {
  position: absolute;
  left: calc(var(--ana-cursor-x) + 9px);
  top: clamp(10px, var(--ana-point-y), calc(100% - 10px));
  transform: translateY(-50%);
  padding: 1px 5px;
  border: 1px solid #87a491;
  border-radius: 3px;
  background: #fff;
  color: #224737;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ana-cursor-left .ana-cursor-value {
  left: auto;
  right: calc(100% - var(--ana-cursor-x) + 9px);
}
.ana-cursor-values {
  position: absolute;
  inset: 2px 3px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 7px;
  align-items: center;
  padding: 3px 5px;
  border: 1px solid #c4d4c6;
  border-radius: 3px;
  background: #fffffff5;
  color: #224737;
  font-size: 0.72rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ana-cursor-values[hidden] {
  display: none;
}
.ana-cursor-values > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.ana-cursor-values b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ana-color);
}

/* Time ticks keep calendar boundaries stable across zoom levels. */
.ana-time-grid path {
  fill: none;
  pointer-events: none;
  stroke-width: 1px;
}
.ana-time-mark-month {
  stroke: #a1b5a6;
  opacity: 0.62;
}
.ana-time-mark-week {
  stroke: #bcccbf;
  stroke-dasharray: 2 4;
  opacity: 0.65;
}
.ana-time-mark-day {
  stroke: #b7c7ba;
  opacity: 0.72;
}
.ana-time-axis > .ana-time-label {
  transform: translateX(-50%);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ana-time-axis > .ana-time-month {
  color: #305543;
  font-weight: 700;
}
.ana-time-axis > .ana-time-week {
  color: #536e5e;
  font-weight: 550;
}
.ana-time-axis > .ana-time-day {
  color: #687e71;
}

#dialog:has(#readiness-body) {
  width: min(850px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px 18px;
}
#dialog:has(#readiness-body) h2 {
  margin-top: 0;
}
.readiness-head,
.readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.readiness-head strong {
  font-size: 17px;
}
.readiness-access {
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.readiness-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  max-height: min(64dvh, 620px);
  padding-right: 6px;
}
.readiness-group h3 {
  font-size: 13px;
  margin: 14px 0 5px;
  color: #c6c9d6;
}
.readiness-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.readiness-row {
  border-top: 1px solid #41445333;
  padding: 8px 4px;
  min-height: 62px;
}
.readiness-row p {
  margin: 3px 0;
  line-height: 1.3;
}
.readiness-row small {
  color: #a4abc4;
}
.readiness-row.complete small {
  color: #84d2a1;
}
.readiness-checks {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.readiness-checks label {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
}
.readiness-checks input {
  width: 16px;
  height: 16px;
  accent-color: #a49ce6;
}
.readiness-checks input:disabled {
  opacity: 0.75;
}
@media (max-width: 540px) {
  .readiness-row {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .readiness-checks {
    padding: 1px 0 3px;
  }
}

/* Shared-plan platform status sits inside the existing calendar day card. */
.shared-manual-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}
.shared-manual-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  font-size: 0.82rem;
  min-width: 0;
}
.shared-manual-list li strong {
  font-weight: 700;
}
.shared-manual-list .coverage-post-link:focus-visible {
  outline-offset: 2px;
  text-decoration: underline;
}

/* Real shared coverage: same three lanes, no demo account marked as connected. */
.shared-coverage {
  margin-bottom: 0.55rem;
}
.shared-coverage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.3rem;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  color: #414f48;
  background: #f0f2f0;
  font-size: 0.78rem;
  line-height: 1.18;
}
.shared-coverage [data-group='out'] .shared-coverage-row {
  color: #245b37;
  background: #e4f4e8;
}
.shared-coverage [data-group='next'] .shared-coverage-row {
  color: #654600;
  background: #fff0c9;
}
.shared-coverage [data-state='failed'] {
  color: #862820 !important;
  background: #fff0ec !important;
}
.shared-coverage-row small {
  flex-basis: 100%;
  font-size: 0.68rem;
  opacity: 0.87;
  margin-block-start: 0.12rem;
}
.shared-coverage-link {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
}
.shared-coverage-link:focus-visible svg {
  visibility: visible;
}
.shared-coverage-row .btn {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 0.7rem;
}

.ops-package-media {
  margin-block: 0.65rem 0;
}
.ops-package-media h3 {
  font-size: 0.83rem;
  margin: 0 0 0.3rem;
}
.ops-package-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.ops-package-files li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.shared-day-publications {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0 0 8px;
}
.shared-day-publications li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dce5db;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
}
.shared-day-publications li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shared-day-publications strong,
.shared-day-publications small {
  overflow-wrap: anywhere;
}
.shared-day-publications small {
  color: #465c4e;
}
.shared-day-plan-label {
  margin: 0.65rem 0 0.25rem;
  color: #4d6354;
  font-size: 0.76rem;
}
.shared-planned-copy {
  white-space: pre-wrap;
}
.shared-coverage-row.shared-test-platform:is(
    [data-state='test-sent'],
    [data-state='publication-manual']
  ) {
  background: #fff0b6;
  color: #4b3805;
  border-color: #e8cc6d;
}
.shared-test-platform .shared-test-link {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.shared-test-platform .shared-test-link:hover {
  text-decoration: underline;
}

.shared-coverage {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.1fr) minmax(0, 1fr);
}
.shared-coverage [data-group='out'] h4 {
  font-size: 0.72rem;
  overflow-wrap: normal;
}
