:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #142f56;
  background: #f4f8fc;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 225px;
  background: #f7fbff;
  border-right: 1px solid #dbe8f5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 24px 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 27px;
  font-size: 18px;
  line-height: 1.14;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #20c0a3, #0669d7);
  font-size: 19px;
  font-weight: 800;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav {
  background: transparent;
  border: 0;
  text-align: left;
  border-radius: 9px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #214b7a;
  font-size: 15px;
  cursor: pointer;
}
.nav > span:first-child {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
.nav:hover,
.nav.active {
  background: #e2efff;
  color: #006bd5;
}
.side-bottom {
  margin-top: auto;
  padding: 18px 9px;
  color: #6e839b;
}
.body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 24px 18px;
  min-height: 95px;
}
.searchwrap {
  max-width: 850px;
  flex: 1;
  margin: auto;
  position: relative;
}
.searchwrap input {
  width: 100%;
  border: 2px solid #2686f7;
  border-radius: 30px;
  background: white;
  padding: 15px 44px 15px 53px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 5px 22px #cfe2f558;
}
.searchicon {
  position: absolute;
  left: 19px;
  top: 5px;
  font-size: 32px;
  color: #1283ff;
}
#clearSearch {
  position: absolute;
  right: 12px;
  top: 11px;
  font-size: 22px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #607791;
  font-size: 12px;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #87bdff;
  outline-offset: 2px;
}
.primary {
  background: #087cf2;
  color: #fff;
  border: 1px solid #087cf2;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 650;
}
.primary:hover {
  background: #0766c6;
}
.outline {
  background: white;
  color: #23649c;
  border: 1px solid #d1e0ee;
  border-radius: 9px;
  padding: 10px 15px;
}
.outline:hover {
  background: #f2f7ff;
}
.small {
  padding: 7px 10px;
}
.link,
.quiet {
  background: none;
  border: 0;
  color: #0979e9;
}
.iconbutton {
  border: 1px solid #d7e5f2;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  background: white;
  font-size: 23px;
  color: #1a4575;
}
.hamburger {
  display: none;
}
main {
  display: grid;
  grid-template-columns: minmax(420px, 1.8fr) minmax(325px, 1fr);
  gap: 19px;
  padding: 0 24px;
  flex: 1;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid #e4ecf6;
  border-radius: 17px;
  box-shadow: 0 8px 30px #dce8f250;
  padding: 22px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  margin-bottom: 3px;
}
h2 {
  font-size: 21px;
  margin-bottom: 0;
}
h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.section-head p {
  margin: 0;
  font-size: 14px;
  color: #6c819c;
}
.blog-feed {
  height: calc(100vh - 238px);
  min-height: 420px;
  overflow-y: auto;
  padding-right: 7px;
  scrollbar-color: #bdd4ed transparent;
  scrollbar-width: thin;
}
.post {
  border: 1px solid #e1eaf6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  background: #fff;
}
.post.editable {
  cursor: pointer;
}
.post.editable:hover {
  border-color: #9cc9f8;
  background: #fbfdff;
}
.post-top {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: start;
}
.post h3 {
  margin-bottom: 8px;
}
.post time {
  color: #7c90a9;
  white-space: nowrap;
  font-size: 12px;
}
.post p {
  font-size: 14px;
  color: #526c8b;
  line-height: 1.55;
  margin: 0 0 11px;
  white-space: pre-wrap;
}
.tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: #e7f1ff;
  color: #1973d0;
}
.post-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.textbtn {
  background: transparent;
  border: 0;
  color: #087bf0;
  padding: 5px 0;
  font-size: 13px;
}
.rightcol {
  display: grid;
  gap: 18px;
}
.product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eaf0f8;
  padding: 13px 2px;
}
.product-item .prod-name {
  font-size: 14px;
  font-weight: 550;
  flex: 1;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status {
  border-radius: 20px;
  background: #e9f3fd;
  padding: 6px 9px;
  color: #275f96;
  font-size: 12px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 12px 0 18px;
}
.cal-head strong {
  flex: 1;
  text-align: center;
}
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.weekdays {
  font-size: 11px;
  color: #7b8da4;
  margin-bottom: 9px;
}
.calendar-grid {
  gap: 4px;
}
.day {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 9px;
  position: relative;
  color: #2d4b73;
  font-size: 13px;
}
.day.outside {
  color: #bdc9d7;
}
.day.has-events:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #0983fc;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}
.day.today {
  outline: 1px solid #57a1f7;
}
.day.selected {
  background: #087bf1;
  color: white;
  font-weight: 700;
}
.day.selected:after {
  background: white;
}
.day:hover {
  background: #e5f1ff;
  color: #156ed1;
}
.day.selected:hover {
  background: #087bf1;
  color: white;
}
.day-detail {
  border-top: 1px solid #e5edf6;
  margin-top: 13px;
  padding-top: 13px;
}
.day-detail h3 {
  font-size: 14px;
}
.event-card {
  background: #f4f8ff;
  border-left: 3px solid #1386f2;
  border-radius: 6px;
  padding: 9px 11px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.event-card span {
  font-size: 12px;
  color: #657c98;
}
.event-card strong {
  font-size: 13px;
}
.hint {
  color: #7b8da4;
  font-size: 12px;
  margin: 12px 0 0;
}
.empty {
  color: #778ba4;
  text-align: center;
  padding: 50px 15px;
}
[hidden] {
  display: none !important;
}
footer {
  color: #8393a6;
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 0;
  width: min(580px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 18px 70px #18335455;
  color: #17375d;
}
dialog::backdrop {
  background: #15335680;
}
.editor {
  padding: 24px;
  overflow: auto;
  max-height: 90vh;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d0dfef;
  border-radius: 9px;
  padding: 11px;
  font: inherit;
  font-size: 14px;
  background: white;
  color: #183c65;
}
.field textarea {
  min-height: 125px;
  resize: vertical;
}
.modal-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 20px;
}
.grow {
  flex: 1;
}
.danger {
  color: #b42331;
  border-color: #edc8cd;
}
.secondary {
  margin: 0 24px;
  min-height: 360px;
}
.secondary p {
  color: #5d7591;
}
.secondary .resource-row {
  border-bottom: 1px solid #e8eef7;
  padding: 14px 0;
}
.managebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}
.smallnote {
  font-size: 13px;
  color: #7890a8;
}
@media (max-width: 1080px) {
  .sidebar {
    width: 180px;
  }
  .brand {
    font-size: 15px;
  }
  .nav {
    font-size: 13px;
  }
  main {
    grid-template-columns: minmax(330px, 1.4fr) minmax(285px, 1fr);
    padding: 0 14px;
    gap: 12px;
  }
  .panel {
    padding: 16px;
  }
  header {
    padding: 15px;
  }
  .identity span {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 8px 0 30px #172c4830;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .hamburger {
    display: block;
  }
  header {
    min-height: 75px;
    gap: 9px;
    padding: 13px;
  }
  .searchwrap input {
    padding: 13px 32px 13px 40px;
    font-size: 13px;
  }
  .searchicon {
    left: 13px;
    top: 4px;
  }
  .identity {
    gap: 0;
  }
  .identity .small {
    font-size: 11px;
    padding: 9px 7px;
  }
  main {
    grid-template-columns: 1fr;
    padding: 0 11px;
  }
  .blog-feed {
    height: 58vh;
    min-height: 320px;
  }
  .section-head {
    align-items: start;
  }
  .section-head h1 {
    font-size: 21px;
  }
  .section-head p {
    font-size: 12px;
  }
  .primary {
    padding: 10px 12px;
    font-size: 13px;
  }
  .post {
    padding: 13px;
  }
  .post h3 {
    font-size: 15px;
  }
  .post-top {
    gap: 7px;
  }
  .post time {
    font-size: 11px;
  }
  .rightcol {
    gap: 12px;
  }
  .calendar-grid {
    gap: 2px;
  }
  .day {
    min-height: 43px;
  }
  footer {
    padding: 20px 12px;
  }
  .secondary {
    margin: 0 12px;
  }
}

/* v1.1 — milestone-led calendar and Gantt */
.gantt-panel {
  padding-bottom: 18px;
}
.gantt-launch {
  margin-top: 12px;
  width: 100%;
}
.gantt-scroll {
  overflow-x: auto;
  padding-bottom: 5px;
}
.gantt-matrix {
  min-width: 390px;
}
.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: 140px minmax(210px, 1fr);
  align-items: center;
  gap: 9px;
}
.gantt-header {
  font-size: 11px;
  font-weight: 700;
  color: #55718d;
  padding: 7px 0;
  border-bottom: 1px solid #dfeaf6;
}
.gantt-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.gantt-row {
  min-height: 39px;
  border-bottom: 1px solid #eef3f8;
}
.gantt-product {
  border: 0;
  background: transparent;
  color: #24527f;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
.gantt-product:hover {
  text-decoration: underline;
}
.gantt-track {
  position: relative;
  height: 24px;
  border-left: 1px solid #e3edf8;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(33.333% - 1px),
    #edf2f8 calc(33.333% - 1px),
    #edf2f8 33.333%
  );
}
.gantt-bar {
  position: absolute;
  top: 9px;
  height: 7px;
  border-radius: 8px;
  background: #a4c9f3;
}
.gantt-mark {
  position: absolute;
  z-index: 2;
  top: 5px;
  width: 13px;
  height: 13px;
  border: 2px solid white;
  border-radius: 50%;
  background: #087bf2;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px #087bf2;
  padding: 0;
}
.milestone-list {
  border-top: 1px solid #e7edf5;
  padding-top: 14px;
  margin-top: 12px;
}
.milestone-list .section-head {
  margin-bottom: 8px;
}
.milestone-list h3 {
  margin: 0;
}
.milestone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e7edf5;
  padding: 9px 0;
  font-size: 13px;
}
.milestone-row span:first-child {
  flex: 1;
}
.milestone-row span:nth-child(2) {
  color: #758ba4;
}
#fullGantt {
  margin-top: 18px;
}
#fullGantt .gantt-matrix {
  min-width: 650px;
}
#fullGantt .gantt-header,
#fullGantt .gantt-row {
  grid-template-columns: 220px 1fr;
}
@media (max-width: 760px) {
  .rightcol {
    display: flex;
    flex-direction: column;
  }
  .rightcol .calendar-panel {
    order: 0;
  }
  .rightcol .product-panel {
    order: 1;
  }
  .rightcol .gantt-panel {
    order: 2;
  }
  .gantt-header,
  .gantt-row {
    grid-template-columns: 135px minmax(205px, 1fr);
  }
}

/* Version 1.3 — updates classification and ordering */
.update-kind {
  display: block;
  font-size: 11px;
  color: #7288a1;
  font-weight: 500;
  margin-top: 3px;
}
.reorder-actions {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.move-btn {
  width: 25px;
  height: 29px;
  border: 1px solid #dde7f3;
  background: #fff;
  color: #315d8f;
  border-radius: 7px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.move-btn:hover:not(:disabled) {
  background: #e9f2ff;
  border-color: #94bbef;
}
.move-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.type-fieldset {
  border: 0;
  padding: 0;
  margin: 12px 0 16px;
  min-width: 0;
}
.type-fieldset legend {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 9px;
  color: #223959;
}
.type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.type-option {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #f6f9fe;
  border: 1px solid #d9e5f4;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
.type-option:has(input:checked) {
  border-color: #4e79e9;
  background: #edf3ff;
  color: #1947a2;
}
.type-option input {
  accent-color: #4775e6;
  width: 17px;
  height: 17px;
  margin: 0;
}
@media (max-width: 550px) {
  .product-item {
    gap: 5px;
    flex-wrap: wrap;
  }
  .product-item .prod-name {
    min-width: 130px;
    flex: 1;
  }
  .product-item .status {
    font-size: 11px;
  }
  .move-btn {
    width: 30px;
    height: 32px;
  }
}

/* v1.4 readability and event visibility — no main column width changes */
.post h3 {
  font-size: 20px;
  line-height: 1.35;
}
.post p {
  font-size: 16px;
  line-height: 1.65;
  color: #3d5877;
}
.post time {
  font-size: 13px;
}
.post .tag,
.post .textbtn {
  font-size: 13px;
}
.day {
  min-height: 47px;
  font-size: 15px;
  font-weight: 550;
  flex-direction: column;
  gap: 0;
  isolation: isolate;
}
.day.has-events {
  background: #deedff;
  border: 1px solid #70aaff;
  color: #064d9b;
  font-weight: 800;
}
.day.has-events:after {
  display: none;
}
.day.has-events .day-count {
  display: block;
  position: absolute;
  right: 1px;
  top: 1px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #096ce1;
  color: white;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  padding: 0 3px;
  box-shadow: 0 1px 3px #23599755;
}
.day.selected,
.day.selected.has-events {
  background: #1769db;
  color: white;
  border-color: #1258bc;
}
.day.selected .day-count {
  background: #fff;
  color: #125bc4;
}
.day.today:not(.selected) {
  outline: 2px solid #ff9e30;
  outline-offset: -2px;
}
.day.has-events:hover {
  background: #c5e1ff;
  color: #084f96;
}
.day.selected:hover,
.day.selected.has-events:hover {
  background: #1769db;
  color: #fff;
}
.gantt-matrix {
  min-width: 790px;
}
.gantt-header,
.gantt-row {
  grid-template-columns: 145px minmax(610px, 1fr);
}
.gantt-timeline.weekly {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  font-size: 10px;
  gap: 0;
}
.week-label {
  text-align: center;
  white-space: nowrap;
  border-left: 1px solid #e1eaf4;
  padding: 4px 1px;
}
.gantt-track.weekly {
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 13 - 1px),
    #e1eaf4 calc(100% / 13 - 1px),
    #e1eaf4 calc(100% / 13)
  );
}
.gantt-row {
  min-height: 42px;
}
.gantt-range {
  margin: 8px 0 0;
  color: #667f9b;
  font-size: 11px;
}
#fullGantt .gantt-matrix {
  min-width: 1020px;
}
#fullGantt .gantt-header,
#fullGantt .gantt-row {
  grid-template-columns: 220px minmax(780px, 1fr);
}
@media (max-width: 760px) {
  .post h3 {
    font-size: 18px;
  }
  .post p {
    font-size: 16px;
  }
  .post time {
    font-size: 12px;
  }
  .day {
    min-height: 45px;
  }
  .gantt-header,
  .gantt-row {
    grid-template-columns: 145px minmax(610px, 1fr);
  }
}

/* v1.6: ensure mobile preview is genuinely responsive, never a clipped desktop page */
html,
body {
  max-width: 100%;
}
.body,
main,
.rightcol,
.panel,
.blog-feed,
.post,
.post-top,
.post h3,
.post p,
.section-head,
.section-head > div,
.cal-head,
.calendar-panel,
.product-panel,
.gantt-panel {
  min-width: 0;
}
.post h3,
.post p,
.event-card,
.event-card strong,
.event-card span,
.prod-name,
.section-head p,
.smallnote {
  overflow-wrap: anywhere;
  word-break: normal;
}
.post p {
  white-space: pre-wrap;
}
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: clip;
  }
  .app,
  .body,
  main,
  .rightcol,
  .blog-panel,
  .post,
  .calendar-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .body {
    overflow-x: clip;
  }
  main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
  }
  .rightcol {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .panel {
    padding: 15px;
    border-radius: 14px;
  }
  header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 10px;
    min-height: 68px;
  }
  .hamburger {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .searchwrap {
    min-width: 0;
    flex: 1 1 0;
    margin: 0;
  }
  .searchwrap input {
    min-width: 0;
    width: 100%;
    padding: 11px 27px 11px 34px;
    font-size: 13px;
    text-overflow: ellipsis;
  }
  .searchicon {
    left: 9px;
    top: 1px;
    font-size: 26px;
  }
  #clearSearch {
    right: 3px;
    top: 7px;
    font-size: 18px;
  }
  .identity {
    min-width: 0;
    flex: 0 0 auto;
  }
  #loginButton {
    max-width: 79px;
    white-space: normal;
    line-height: 1.1;
    padding: 6px;
    font-size: 11px;
  }
  .section-head {
    gap: 8px;
    align-items: flex-start;
  }
  .section-head > div {
    flex: 1 1 0;
  }
  .section-head .primary {
    flex: 0 0 auto;
    max-width: 106px;
    white-space: normal;
  }
  .section-head h1,
  .section-head h2 {
    font-size: 21px;
  }
  .post {
    padding: 13px;
    margin-bottom: 10px;
  }
  .post-top {
    display: block;
  }
  .post h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 5px;
  }
  .post time {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
  }
  .post p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }
  .blog-feed {
    height: 62vh;
    min-height: 320px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
  }
  .cal-head {
    gap: 6px;
  }
  .cal-head strong {
    font-size: 14px;
  }
  .cal-head .outline {
    padding: 8px;
  }
  .calendar-grid {
    width: 100%;
  }
  .day {
    min-width: 0;
  }
  .product-item {
    min-width: 0;
  }
  .product-item .prod-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .gantt-scroll {
    max-width: 100%;
    overflow-x: auto;
  }
  .gantt-matrix {
    max-width: none;
  }
  .secondary {
    margin: 0 10px;
    width: calc(100% - 20px);
    min-width: 0;
  }
  footer {
    gap: 8px;
    flex-wrap: wrap;
  }
}
/* v1.7: all calendar-sourced dated entries are visible in Gantt. */
.gantt-mark.gantt-blog {
  background: #ed9440;
  box-shadow: 0 0 0 1px #d47b26;
}
.gantt-mark.gantt-event {
  background: #895bdc;
  box-shadow: 0 0 0 1px #7040bd;
}
.gantt-mark.gantt-milestone {
  background: #087bf2;
  box-shadow: 0 0 0 1px #087bf2;
}
.gantt-mark {
  cursor: pointer;
}
.gantt-mark:focus-visible {
  outline: 3px solid #1c53df;
  outline-offset: 3px;
}
.gantt-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: 14px;
}
.gantt-legend .key {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-left: 5px;
}
.key-milestone {
  background: #087bf2;
}
.key-blog {
  background: #ed9440;
}
.key-event {
  background: #895bdc;
}
.gantt-uncategorized {
  display: inline-block;
  padding: 4px 6px;
  color: #53667f;
}

/* v1.8 blog emphasis editing */
.blog-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -5px 0 13px;
}
.format-button {
  font-size: 17px;
  min-width: 39px;
  height: 35px;
  padding: 4px 10px;
}
.format-hint {
  color: #627994;
  font-size: 12px;
  flex: 1;
  min-width: 180px;
}
.blog-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #476380;
  margin: 5px 0;
}
.blog-text-preview {
  border: 1px solid #dce7f5;
  background: #f8fbff;
  border-radius: 9px;
  padding: 12px;
  min-height: 54px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #3d5877;
  font-size: 15px;
  line-height: 1.6;
}
.blog-text-preview .preview-empty {
  color: #8ba0b8;
}
.post p strong,
.blog-text-preview strong {
  font-weight: 750;
  color: #22395f;
}
.post p em,
.blog-text-preview em {
  font-style: italic;
}

/* v1.9 browser voice reader */
.blog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.blog-actions .speech-settings {
  font-size: 19px;
  flex-shrink: 0;
}
.speech-play {
  font-weight: 700;
  color: #1259b5;
  border-color: #80acdf;
  background: #edf5ff;
}
.speech-stop:disabled {
  opacity: 0.42;
  cursor: default;
}
.speech-status {
  margin: -5px 0 12px;
  padding: 9px 12px;
  background: #edf6ff;
  border: 1px solid #cfe3ff;
  color: #205994;
  font-size: 13px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.post.reading-now {
  border-color: #227bef;
  box-shadow: inset 4px 0 #227bef;
  background: #f7fbff;
}
.voice-settings-panel {
  border-top: 1px solid #dae6f4;
  margin-top: 28px;
  padding-top: 24px;
  max-width: 680px;
}
.voice-settings-panel p {
  font-size: 14px;
}
.voice-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.voice-settings-panel input[type="range"] {
  padding: 0;
  accent-color: #167bef;
}
.voice-settings-panel output {
  font-weight: 500;
  color: #397bb7;
}
@media (max-width: 760px) {
  .blog-actions {
    gap: 5px;
    max-width: 100%;
    justify-content: flex-end;
  }
  .blog-actions button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .blog-actions .speech-settings {
    width: 31px;
    height: 31px;
    padding: 0;
  }
  .voice-sliders {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .section-head:has(.blog-actions) {
    flex-wrap: wrap;
  }
}

/* v2.0 appearance themes. Default deliberately retains the original CSS unchanged. */
.hub-theme-settings {
  max-width: 680px;
  padding: 0 0 25px;
  border-bottom: 1px solid #dae6f4;
  margin: 26px 0 0;
}
.hub-theme-settings p {
  color: #667e99;
  font-size: 14px;
  margin: 9px 0 16px;
}
.hub-theme-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hub-theme-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 7px;
  border: 1px solid #cfdeed;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}
.hub-theme-choice:has(input:checked) {
  outline: 2px solid #4386ee;
  outline-offset: 1px;
}
.hub-theme-choice input {
  accent-color: #377bef;
}
.hub-theme-swatch {
  height: 36px;
  width: 72px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #aec2d8;
  box-shadow: inset 0 0 0 7px #ffffff70;
}
.swatch-default {
  background: linear-gradient(135deg, #e8f4ff 50%, #167af0 50%);
}
.swatch-dark {
  background: linear-gradient(135deg, #1b293e 50%, #516f98 50%);
}
.swatch-pastel-blue {
  background: linear-gradient(135deg, #e7efff 50%, #b3ccf3 50%);
}
.swatch-pastel-green {
  background: linear-gradient(135deg, #edf7e7 50%, #b7ddcd 50%);
}
@media (max-width: 530px) {
  .hub-theme-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:root[data-hub-theme="dark"] {
  color-scheme: dark;
}
:root[data-hub-theme="dark"] body {
  background: #141e2e;
  color: #e7edf9;
}
:root[data-hub-theme="dark"] .sidebar {
  background: #182538;
  border-color: #30435a;
}
:root[data-hub-theme="dark"] .brand,
:root[data-hub-theme="dark"] h1,
:root[data-hub-theme="dark"] h2,
:root[data-hub-theme="dark"] h3 {
  color: #e9efff;
}
:root[data-hub-theme="dark"] .panel,
:root[data-hub-theme="dark"] .post,
:root[data-hub-theme="dark"] .secondary,
:root[data-hub-theme="dark"] dialog {
  background: #203149;
  color: #e6eefb;
  border-color: #344a67;
}
:root[data-hub-theme="dark"] .post p,
:root[data-hub-theme="dark"] .post time,
:root[data-hub-theme="dark"] .section-head p,
:root[data-hub-theme="dark"] .secondary p,
:root[data-hub-theme="dark"] .hint,
:root[data-hub-theme="dark"] .smallnote,
:root[data-hub-theme="dark"] .hub-theme-settings p {
  color: #b9cbe4;
}
:root[data-hub-theme="dark"] .post:hover,
:root[data-hub-theme="dark"] .post.reading-now {
  background: #293f59;
}
:root[data-hub-theme="dark"] .nav {
  color: #b9d2f3;
}
:root[data-hub-theme="dark"] .nav.active,
:root[data-hub-theme="dark"] .nav:hover {
  background: #2a4565;
  color: #9dccff;
}
:root[data-hub-theme="dark"] .outline,
:root[data-hub-theme="dark"] .iconbutton,
:root[data-hub-theme="dark"] .hub-theme-choice,
:root[data-hub-theme="dark"] .searchwrap input,
:root[data-hub-theme="dark"] .field input,
:root[data-hub-theme="dark"] .field textarea,
:root[data-hub-theme="dark"] .field select {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .outline:hover {
  background: #33516f;
}
:root[data-hub-theme="dark"] .event-card,
:root[data-hub-theme="dark"] .blog-text-preview,
:root[data-hub-theme="dark"] .speech-status {
  background: #293f59;
  color: #d5e4f9;
  border-color: #5c8fc6;
}
:root[data-hub-theme="dark"] .post p strong,
:root[data-hub-theme="dark"] .blog-text-preview strong {
  color: #f6f9ff;
}
:root[data-hub-theme="dark"] .day {
  color: #dce8fa;
}
:root[data-hub-theme="dark"] .day.outside {
  color: #6f84a0;
}
:root[data-hub-theme="dark"] .day.selected {
  color: white;
}
:root[data-hub-theme="dark"] .day:hover {
  background: #304a69;
}
:root[data-hub-theme="dark"] .status,
:root[data-hub-theme="dark"] .tag {
  background: #334e6a;
  color: #bce0ff;
}
:root[data-hub-theme="dark"] .product-item,
:root[data-hub-theme="dark"] .resource-row,
:root[data-hub-theme="dark"] .day-detail,
:root[data-hub-theme="dark"] .voice-settings-panel {
  border-color: #3b506b;
}
:root[data-hub-theme="dark"] .identity,
:root[data-hub-theme="dark"] footer {
  color: #a7b9d3;
}
:root[data-hub-theme="dark"] .gantt-panel,
:root[data-hub-theme="dark"] .gantt-row,
:root[data-hub-theme="dark"] .gantt-head {
  color: #d9e8f8;
}
:root[data-hub-theme="pastel-blue"] body {
  background: #edf2fc;
  color: #30476e;
}
:root[data-hub-theme="pastel-blue"] .sidebar {
  background: #e9f1ff;
  border-color: #cbd8ef;
}
:root[data-hub-theme="pastel-blue"] .panel,
:root[data-hub-theme="pastel-blue"] .secondary {
  background: #fcfdff;
  border-color: #d7e3f7;
}
:root[data-hub-theme="pastel-blue"] .post {
  background: #f5f8ff;
  border-color: #dae5fa;
}
:root[data-hub-theme="pastel-blue"] .post.editable:hover {
  background: #ecf2ff;
}
:root[data-hub-theme="pastel-blue"] .nav.active,
:root[data-hub-theme="pastel-blue"] .nav:hover {
  background: #d6e4fd;
}
:root[data-hub-theme="pastel-blue"] .primary,
:root[data-hub-theme="pastel-blue"] .day.selected {
  background: #6889d5;
  border-color: #6889d5;
}
:root[data-hub-theme="pastel-blue"] .searchwrap input {
  border-color: #8ba9e8;
}
:root[data-hub-theme="pastel-blue"] .event-card {
  background: #ecf2fe;
  border-left-color: #7f9fdf;
}
:root[data-hub-theme="pastel-green"] body {
  background: #f1f6ef;
  color: #2e4d4a;
}
:root[data-hub-theme="pastel-green"] .sidebar {
  background: #eaf4ea;
  border-color: #cee5d6;
}
:root[data-hub-theme="pastel-green"] .panel,
:root[data-hub-theme="pastel-green"] .secondary {
  background: #fcfefb;
  border-color: #d9e9dc;
}
:root[data-hub-theme="pastel-green"] .post {
  background: #f6fbf5;
  border-color: #dbeade;
}
:root[data-hub-theme="pastel-green"] .post.editable:hover {
  background: #eaf5eb;
}
:root[data-hub-theme="pastel-green"] .nav.active,
:root[data-hub-theme="pastel-green"] .nav:hover {
  background: #d7ebde;
  color: #286f63;
}
:root[data-hub-theme="pastel-green"] .primary,
:root[data-hub-theme="pastel-green"] .day.selected {
  background: #539d89;
  border-color: #539d89;
}
:root[data-hub-theme="pastel-green"] .searchwrap input {
  border-color: #8bc4b0;
}
:root[data-hub-theme="pastel-green"] .event-card {
  background: #edf8f0;
  border-left-color: #65a88a;
}
:root[data-hub-theme="pastel-green"] .post p,
:root[data-hub-theme="pastel-green"] .secondary p {
  color: #526f6b;
}

/* Version 2.1: Viewer is the default, Editor enables authoring controls. */
.view-switch {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  gap: 2px;
  border: 1px solid #cadbed;
  background: var(--panel, #fff);
  border-radius: 10px;
}
.view-choice {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 7px 11px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
}
.view-choice.active {
  background: #4379e8;
  color: white;
}
.blog-url {
  color: #1665c5;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-url:hover {
  color: #064497;
}
:root[data-hub-theme="dark"] .view-switch {
  background: #273b55;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .blog-url {
  color: #8fc7ff;
}
@media (max-width: 760px) {
  .view-switch {
    order: 5;
  }
  .view-choice {
    padding: 7px 8px;
    font-size: 12px;
  }
}

/* v3.0 — sign-in, publishing bar, notices, inline milestones */
.gantt-product {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gantt-header > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
span.gantt-product {
  display: block;
  cursor: default;
}
span.gantt-mark {
  cursor: default;
}
.gantt-empty {
  margin: 10px 0 0;
  color: #667f9b;
  font-size: 13px;
}
.section-head.compact {
  margin-bottom: 6px;
}
.spaced {
  margin-top: 28px;
  margin-bottom: 10px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.login-card {
  width: min(400px, 100%);
  padding: 28px;
}
.login-card .brand {
  padding: 0 0 22px;
}
.login-card h1 {
  margin-bottom: 16px;
}
.login-submit {
  width: 100%;
  margin-top: 4px;
}
.login-error {
  color: #b42331;
  font-size: 13px;
  min-height: 1.2em;
  margin: 0 0 10px;
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 24px 14px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #cfe3ff;
  background: #edf6ff;
  color: #205994;
  font-size: 13px;
}
.editor-bar.is-ok {
  border-color: #bfe8d6;
  background: #effaf5;
  color: #17694a;
}
.editor-bar.is-warn {
  border-color: #f5d6a8;
  background: #fff7ea;
  color: #8a5208;
}
.editor-bar.is-error {
  border-color: #f0c2c7;
  background: #fff1f2;
  color: #9e1f2c;
}
.editor-bar-role {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.editor-bar-status {
  flex: 1;
  min-width: 200px;
}
.notice {
  margin: 0 24px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f5d6a8;
  background: #fff7ea;
  color: #6d4207;
  font-size: 14px;
}
.notice p {
  margin: 0 0 8px;
}
.notice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-section {
  max-width: 680px;
  margin: 26px 0 0;
  padding: 0 0 25px;
  border-bottom: 1px solid #dae6f4;
}
.settings-section code {
  background: #eef4fb;
  padding: 1px 5px;
  border-radius: 4px;
}
.ms-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 140px 35px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.ms-row select,
.ms-row input {
  width: 100%;
  border: 1px solid #d0dfef;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #183c65;
}
.ms-remove {
  font-size: 18px;
}
@media (max-width: 760px) {
  .editor-bar,
  .notice {
    margin: 0 10px 12px;
  }
  .ms-row {
    grid-template-columns: 1fr 1fr 35px;
  }
  .ms-row .ms-date {
    grid-column: 1 / 3;
  }
  }
:root[data-hub-theme="dark"] .move-btn,
:root[data-hub-theme="dark"] .ms-row select,
:root[data-hub-theme="dark"] .ms-row input,
:root[data-hub-theme="dark"] .type-option {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .day.has-events {
  background: #2b4a73;
  border-color: #5b8fd6;
  color: #e6f0ff;
}
:root[data-hub-theme="dark"] .editor-bar,
:root[data-hub-theme="dark"] .notice {
  background: #293f59;
  color: #e3eefc;
  border-color: #5c8fc6;
}
:root[data-hub-theme="dark"] .settings-section code {
  background: #273b55;
}
:root[data-hub-theme="dark"] .login-error {
  color: #ff9aa5;
}
.settings-section.voice-settings-panel {
  border-top: 0;
  padding-top: 0;
  margin-top: 26px;
}
.settings-section h2 {
  margin-bottom: 8px;
}

/* v3.2 — scrollable Gantt starting on the plan start date */
.gantt-matrix {
  --label: 150px;
  --col: 46px;
  --gantt-label-bg: #fff;
  width: max-content;
  min-width: 0;
}
#fullGantt .gantt-matrix {
  --label: 230px;
  --col: 62px;
  min-width: 0;
}
.gantt-header,
.gantt-row,
#fullGantt .gantt-header,
#fullGantt .gantt-row {
  grid-template-columns: var(--label) calc(var(--weeks) * var(--col));
  gap: 0;
}
.gantt-timeline.weekly {
  grid-template-columns: repeat(var(--weeks), var(--col));
}
.gantt-track.weekly {
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--col) - 1px), #e1eaf4 calc(var(--col) - 1px), #e1eaf4 var(--col));
}
/* Row names stay put while the weeks scroll underneath. */
.gantt-header > span:first-child,
.gantt-row > .gantt-product {
  position: sticky;
  left: 0;
  z-index: 4;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 4px 10px 4px 2px;
  background: var(--gantt-label-bg);
  box-shadow: 1px 0 0 #dfeaf6;
}
.gantt-scroll {
  overflow-x: auto;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
}
.gantt-scroll:focus-visible {
  outline: 3px solid #87bdff;
  outline-offset: 2px;
}
.gantt-controls {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.week-label.month-start {
  font-weight: 800;
  color: #24527f;
}
.week-label.current-week {
  background: #fff1df;
  color: #9a5300;
  font-weight: 800;
}
.gantt-today {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: #ff9e30;
  z-index: 1;
  pointer-events: none;
}
.gantt-mark.is-launch {
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  background: #12a36e;
  box-shadow: 0 0 0 1px #0d8a5c;
}
.key-launch {
  background: #12a36e;
  border-radius: 2px !important;
  transform: rotate(45deg);
}
.key-today {
  background: #ff9e30;
  width: 3px !important;
  border-radius: 0 !important;
}
.plan-start-field {
  max-width: 260px;
}
:root[data-hub-theme="dark"] .gantt-matrix {
  --gantt-label-bg: #203149;
}
:root[data-hub-theme="dark"] .gantt-track.weekly {
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--col) - 1px), #344a67 calc(var(--col) - 1px), #344a67 var(--col));
}
:root[data-hub-theme="dark"] .week-label.month-start {
  color: #cfe3ff;
}
:root[data-hub-theme="dark"] .week-label.current-week {
  background: #5a3a12;
  color: #ffd29a;
}
:root[data-hub-theme="pastel-blue"] .gantt-matrix {
  --gantt-label-bg: #fcfdff;
}
:root[data-hub-theme="pastel-green"] .gantt-matrix {
  --gantt-label-bg: #fcfefb;
}
@media (max-width: 760px) {
  .gantt-matrix {
    --label: 120px;
    --col: 44px;
  }
  #fullGantt .gantt-matrix {
    --label: 130px;
    --col: 48px;
  }
}

/* v3.3 — labelled Gantt entries */
.gantt-row {
  min-height: 54px;
}
.gantt-track,
.gantt-track.weekly {
  height: 50px;
}
.gantt-mark {
  top: 4px;
}
.gantt-bar {
  top: 8px;
}
.gantt-label {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--gantt-label-bg);
  color: #1d4f86;
  font-size: 10px;
  line-height: 13px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
}
.gantt-label.level-1 {
  top: 34px;
}
.gantt-label-launch {
  color: #0b7a52;
  font-weight: 800;
}
.gantt-label-blog {
  color: #a35a12;
  font-weight: 500;
}
.gantt-label-event {
  color: #6236b3;
  font-weight: 500;
}
#miniGantt [data-gantt-excel] {
  display: none;
}
:root[data-hub-theme="dark"] .gantt-label {
  color: #bcdcff;
}
:root[data-hub-theme="dark"] .gantt-label-launch {
  color: #6fe0b4;
}
:root[data-hub-theme="dark"] .gantt-label-blog {
  color: #ffc58a;
}
:root[data-hub-theme="dark"] .gantt-label-event {
  color: #cdb4ff;
}

/* v3.4 — colour = stage, shape = source */
:root {
  --stage-planning: #7c3aed;
  --stage-design: #2563eb;
  --stage-testing: #d97706;
  --stage-launch: #16a34a;
  --stage-none: #94a3b8;
  --bar-planning: #c4b5fd;
  --bar-design: #93c5fd;
  --bar-testing: #fcd34d;
  --bar-launch: #86efac;
  --bar-none: #cbd5e1;
  --text-planning: #6d28d9;
  --text-design: #1d4ed8;
  --text-testing: #b45309;
  --text-launch: #15803d;
  --text-none: #64748b;
  --today: #dc2626;
}
:root[data-hub-theme="dark"] {
  --bar-planning: #5b45a8;
  --bar-design: #2f5aa8;
  --bar-testing: #8a6416;
  --bar-launch: #1f7a44;
  --bar-none: #4b5b70;
  --text-planning: #c9b6ff;
  --text-design: #a9c8ff;
  --text-testing: #ffcf7a;
  --text-launch: #7fe0a7;
  --text-none: #a9b6c8;
  --today: #ff6b6b;
}

/* Markers: colour from the stage... */
.gantt-mark.stage-planning { --c: var(--stage-planning); }
.gantt-mark.stage-design { --c: var(--stage-design); }
.gantt-mark.stage-testing { --c: var(--stage-testing); }
.gantt-mark.stage-launch { --c: var(--stage-launch); }
.gantt-mark.stage-none { --c: var(--stage-none); }
.gantt-mark,
.gantt-mark.src-milestone,
.gantt-mark.src-blog,
.gantt-mark.src-event,
.gantt-mark.is-launch {
  width: 13px;
  height: 13px;
  top: 4px;
  background: var(--c, var(--stage-none));
  border: 2px solid var(--gantt-label-bg, #fff);
  box-shadow: 0 0 0 1px var(--c, var(--stage-none));
  transform: translateX(-50%);
}
/* ...shape from the source. */
.gantt-mark.src-milestone { border-radius: 50%; }
.gantt-mark.src-blog { border-radius: 2px; }
.gantt-mark.src-event {
  width: 15px;
  height: 14px;
  top: 3px;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.gantt-mark.is-launch {
  width: 17px;
  height: 17px;
  top: 2px;
  border-width: 3px;
}

/* Bar sections coloured by the stage the update is in. */
.gantt-bar.stage-planning { background: var(--bar-planning); }
.gantt-bar.stage-design { background: var(--bar-design); }
.gantt-bar.stage-testing { background: var(--bar-testing); }
.gantt-bar.stage-launch { background: var(--bar-launch); }
.gantt-bar.stage-none { background: var(--bar-none); }
.gantt-bar { border-radius: 0; }

.gantt-label.stage-planning { color: var(--text-planning); }
.gantt-label.stage-design { color: var(--text-design); }
.gantt-label.stage-testing { color: var(--text-testing); }
.gantt-label.stage-launch { color: var(--text-launch); }
.gantt-label.stage-none { color: var(--text-none); }
.gantt-label { font-weight: 650; }
.gantt-label.is-launch { font-weight: 850; }

/* Today is red so it cannot be confused with the amber Testing stage. */
.gantt-today { background: var(--today); }
.week-label.current-week { background: #fde2e2; color: #b91c1c; }
:root[data-hub-theme="dark"] .week-label.current-week { background: #5c1f24; color: #ffc2c2; }

/* Key */
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 8px 0 0;
  font-size: 11px;
  color: #55718d;
}
.legend-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.legend-group strong { color: #24527f; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-item .swatch { width: 18px; height: 8px; border-radius: 4px; }
.swatch.stage-planning { background: var(--stage-planning); }
.swatch.stage-design { background: var(--stage-design); }
.swatch.stage-testing { background: var(--stage-testing); }
.swatch.stage-launch { background: var(--stage-launch); }
.swatch.stage-none { background: var(--stage-none); }
.legend-item .shape { width: 11px; height: 11px; background: #55718d; }
.shape.src-milestone { border-radius: 50%; }
.shape.src-blog { border-radius: 2px; }
.shape.src-event { width: 12px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.legend-item .key-today { display: inline-block; width: 3px; height: 12px; background: var(--today); }
:root[data-hub-theme="dark"] .gantt-legend { color: #b9cbe4; }
:root[data-hub-theme="dark"] .legend-group strong { color: #e3eefc; }
:root[data-hub-theme="dark"] .legend-item .shape { background: #b9cbe4; }

/* Milestone row in the editor: name + date + remove on line 1; custom name + stage on line 2 (for "Other"). */
.ms-row,
.ms-row:has(.ms-custom:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) 150px 35px;
}
.ms-row .ms-name { grid-column: 1; grid-row: 1; }
.ms-row .ms-date { grid-column: 2; grid-row: 1; }
.ms-row .ms-remove { grid-column: 3; grid-row: 1; }
.ms-row .ms-custom { grid-column: 1; grid-row: 2; }
.ms-row .ms-stage { grid-column: 2 / 4; grid-row: 2; }
.milestone-overview-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.milestone-overview-dot.stage-planning { background: var(--stage-planning); }
.milestone-overview-dot.stage-design { background: var(--stage-design); }
.milestone-overview-dot.stage-testing { background: var(--stage-testing); }
.milestone-overview-dot.stage-launch { background: var(--stage-launch); }
.milestone-overview-dot.stage-none { background: var(--stage-none); }
@media (max-width: 760px) {
  .ms-row,
  .ms-row:has(.ms-custom:not([hidden])) { grid-template-columns: minmax(0, 1fr) 130px 35px; }
}

/* v3.5 — keyboard shortcuts */
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  border: 1px solid #c9d8e8;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f6f9fd;
  color: #24466e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}
.nav .nav-kbd {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  color: #7a8fa8;
  background: transparent;
  border-color: #dbe6f2;
  border-bottom-width: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
.sidebar:hover .nav-kbd,
.nav:focus-visible .nav-kbd {
  opacity: 1;
}
.shortcuts-link {
  margin-top: auto;
  background: none;
  border: 0;
  text-align: left;
  color: #6e839b;
  font-size: 13px;
  padding: 18px 12px 4px;
}
.shortcuts-link:hover {
  color: #006bd5;
  text-decoration: underline;
}
.shortcut-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e7edf5;
  font-size: 14px;
}
.shortcut-row > span:first-child {
  white-space: nowrap;
}
.shortcut-row > span:last-child {
  text-align: right;
}
@media (max-width: 760px) {
  .nav .nav-kbd,
  .shortcuts-link {
    display: none;
  }
}
:root[data-hub-theme="dark"] kbd {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .nav .nav-kbd {
  background: transparent;
  color: #9db3cf;
}
:root[data-hub-theme="dark"] .shortcut-row {
  border-color: #3b506b;
}

/* v3.6 — row order and compact rows */
.gantt-label-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px 0 2px;
  background: var(--gantt-label-bg);
  box-shadow: 1px 0 0 #dfeaf6;
}
.gantt-label-cell .gantt-product {
  position: static;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  box-shadow: none;
  background: none;
  overflow-wrap: anywhere;
}
.gantt-reorder {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.gantt-reorder .move-btn {
  width: 22px;
  height: 22px;
  font-size: 13px;
}
/* Heights: two label lines 54px, one line 40px, no dates 26px. */
.gantt-row {
  min-height: 40px;
}
.gantt-row .gantt-track,
.gantt-row .gantt-track.weekly {
  height: 36px;
}
.gantt-row.is-tall {
  min-height: 54px;
}
.gantt-row.is-tall .gantt-track {
  height: 50px;
}
.gantt-row.is-empty {
  min-height: 26px;
}
.gantt-row.is-empty .gantt-track {
  height: 24px;
}
.gantt-row.is-empty .gantt-product {
  font-size: 11px;
  color: #6c819c;
  padding: 0;
}
.gantt-row.is-empty .gantt-today {
  top: 0;
  bottom: 0;
}
.gantt-divider {
  grid-column: 1 / -1;
  border-bottom: 1px solid #dfeaf6;
  background: #f6f9fd;
}
.gantt-divider span {
  position: sticky;
  left: 0;
  display: inline-block;
  padding: 3px 8px 3px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #7a8fa8;
}
.gantt-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 13px;
  color: #55718d;
}
.gantt-order select {
  border: 1px solid #d1e0ee;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #183c65;
}
:root[data-hub-theme="dark"] .gantt-label-cell {
  box-shadow: 1px 0 0 #344a67;
}
:root[data-hub-theme="dark"] .gantt-divider {
  background: #1b2a3f;
  border-color: #344a67;
}
:root[data-hub-theme="dark"] .gantt-row.is-empty .gantt-product,
:root[data-hub-theme="dark"] .gantt-order {
  color: #a9bbd3;
}
:root[data-hub-theme="dark"] .gantt-order select {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}

/* v3.8 — several item types per update */
.type-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.legend-note {
  font-weight: 400;
  color: #6c819c;
}
.type-other {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d0dfef;
  border-radius: 9px;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: #183c65;
}
.type-error {
  margin: 6px 0 0;
  min-height: 0;
  color: #b42331;
  font-size: 13px;
}
.type-error:empty {
  display: none;
}
@media (max-width: 550px) {
  .type-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:root[data-hub-theme="dark"] .type-other {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .legend-note {
  color: #a9bbd3;
}

/* v3.9 — milestone quick-pick codes */
.ms-hint {
  margin: 8px 0 4px;
  line-height: 1.7;
}
.ms-hint kbd {
  min-width: 18px;
  padding: 0 4px;
  font-size: 11px;
  margin: 0 1px;
}
.ms-codes b {
  color: #24527f;
}
:root[data-hub-theme="dark"] .ms-codes b {
  color: #cfe3ff;
}

/* v3.10 — milestone order buttons */
.ms-row,
.ms-row:has(.ms-custom:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) 150px 26px 26px 35px;
}
.ms-row .ms-up { grid-column: 3; grid-row: 1; }
.ms-row .ms-down { grid-column: 4; grid-row: 1; }
.ms-row .ms-remove { grid-column: 5; grid-row: 1; }
.ms-row .ms-stage { grid-column: 2 / 6; grid-row: 2; }
.ms-row .move-btn {
  width: 26px;
  height: 32px;
  font-size: 14px;
}
.ms-actions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
#sortMilestones {
  font-size: 13px;
  color: #5a7794;
}
@media (max-width: 760px) {
  .ms-row,
  .ms-row:has(.ms-custom:not([hidden])) { grid-template-columns: minmax(0, 1fr) 128px 26px 26px 32px; }
}

/* v3.11 — milestone template */
.template-panel {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid #cfe3ff;
  border-radius: 10px;
  background: #f4f9ff;
}
.template-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  font-weight: 650;
}
.template-head input {
  border: 1px solid #d0dfef;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #183c65;
}
.template-head .smallnote {
  font-weight: 400;
  margin: 0;
}
.template-preview {
  margin: 10px 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.template-preview li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #e3edf8;
}
.template-preview li b {
  display: inline-block;
  min-width: 26px;
  color: #24527f;
}
.template-preview li span:last-child {
  color: #5d7591;
  white-space: nowrap;
}
.template-preview li.is-skipped {
  opacity: 0.55;
}
.template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
:root[data-hub-theme="dark"] .template-panel {
  background: #1d2d44;
  border-color: #3b5a80;
}
:root[data-hub-theme="dark"] .template-head input {
  background: #273b55;
  color: #e5efff;
  border-color: #425c7e;
}
:root[data-hub-theme="dark"] .template-preview li {
  border-color: #344a67;
}
:root[data-hub-theme="dark"] .template-preview li b {
  color: #cfe3ff;
}

/* v4.0 — company logo */
.logo,
img.logo {
  width: 34px;
  height: 40px;
  border-radius: 0;
  background: none;
  object-fit: contain;
  flex-shrink: 0;
}

/* v4.0 — "Coming up this week" newsletter */
.newsletter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid #1D7FC1;
  border-radius: 9px;
  background: #eef6fd;
  color: #0b4f86;
  font-weight: 700;
}
.newsletter-btn:hover { background: #dcecfa; }
.nl-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.print-frame {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 0;
  height: 0;
  border: 0;
}
.newsletter-dialog {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  background: #f4f8fc;
}
.nl { padding: 0 0 22px; color: #142f56; }
.nl-mast {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 4px solid #1D7FC1;
}
.nl-logo svg { display: block; width: 44px; height: 51px; }
.nl-mast-text { flex: 1; min-width: 0; }
.nl-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #1D7FC1; }
.nl-mast h1 { margin: 2px 0 2px; font-size: 28px; line-height: 1.1; color: #082A41; }
.nl-dates { font-size: 14px; color: #4d6684; }
.nl-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nl-status { margin: 12px 24px 0; padding: 8px 12px; border-radius: 8px; background: #edf6ff; border: 1px solid #cfe3ff; color: #205994; font-size: 13px; }
.nl-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 24px 4px; }
.nl-stat { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #dbe7f4; }
.nl-stat b { display: block; font-size: 22px; line-height: 1.15; color: #082A41; }
.nl-stat span { font-size: 13px; color: #55718d; }
.nl-stat-launch { border-color: #a7e0bd; background: #f1fbf5; }
.nl-stat-launch b { color: #15803d; }
.nl-section { margin: 22px 24px 0; }
.nl-section h2 { margin: 0 0 10px; font-size: 19px; color: #082A41; padding-bottom: 6px; border-bottom: 1px solid #dbe7f4; }
.nl-day h3 { margin: 14px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #4d6684; }
.nl-item {
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe7f4;
  border-left: 6px solid var(--stage-none);
  transition: box-shadow 0.2s, background 0.2s;
}
.nl-item.stage-planning { border-left-color: var(--stage-planning); }
.nl-item.stage-design { border-left-color: var(--stage-design); }
.nl-item.stage-testing { border-left-color: var(--stage-testing); }
.nl-item.stage-launch { border-left-color: var(--stage-launch); }
.nl-item.is-launch { background: #f1fbf5; }
.nl-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nl-item-head strong { font-size: 17px; color: #082A41; }
.nl-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--stage-none); }
.nl-tag.stage-planning { background: var(--stage-planning); }
.nl-tag.stage-design { background: var(--stage-design); }
.nl-tag.stage-testing { background: var(--stage-testing); }
.nl-tag.stage-launch { background: var(--stage-launch); }
.nl-item p { margin: 8px 0; font-size: 16px; line-height: 1.6; color: #2c4a6e; }
.nl-item-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6c819c; }
.nl-steps { display: inline-flex; gap: 3px; flex-shrink: 0; }
.nl-steps i { width: 18px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.nl-steps i.on.planning { background: var(--stage-planning); }
.nl-steps i.on.design { background: var(--stage-design); }
.nl-steps i.on.testing { background: var(--stage-testing); }
.nl-steps i.on.launch { background: var(--stage-launch); }
.nl-quiet { font-size: 16px; font-style: italic; color: #55718d; }
.nl-list { margin: 0; padding: 0; list-style: none; }
.nl-list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #e5edf6; font-size: 15px; }
.nl-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.nl-when { min-width: 92px; font-weight: 700; color: #1D7FC1; font-size: 13px; }
.nl-src { font-size: 12px; color: #6c819c; white-space: nowrap; }
.nl-count { min-width: 92px; font-weight: 800; color: #15803d; }
.nl-past li { display: block; }
.nl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--stage-none); }
.nl-dot.stage-planning { background: var(--stage-planning); }
.nl-dot.stage-design { background: var(--stage-design); }
.nl-dot.stage-testing { background: var(--stage-testing); }
.nl-dot.stage-launch { background: var(--stage-launch); }
.nl-post { padding: 12px 0; border-bottom: 1px solid #e5edf6; }
.nl-post h3 { margin: 0 0 2px; font-size: 16px; color: #082A41; }
.nl-post time { font-size: 12px; color: #6c819c; }
.nl-post p { margin: 6px 0; font-size: 15px; line-height: 1.55; color: #2c4a6e; }
.nl-reading { box-shadow: 0 0 0 3px #f59e0b; border-radius: 8px; background: #fffbeb !important; }
.nl-feedback { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #dbe7f4; }
.nl-feedback h2 { border: 0; padding: 0; }
.nl-form label { display: block; font-size: 14px; margin-bottom: 6px; color: #2c4a6e; }
.nl-form textarea { width: 100%; resize: vertical; border: 1px solid #c9d8e8; border-radius: 9px; padding: 10px; font: inherit; font-size: 15px; }
.nl-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.nl-preview-note { margin: 8px 0 0; font-style: italic; }
.nl-thanks blockquote { margin: 8px 0; padding: 8px 12px; border-left: 4px solid #1D7FC1; background: #f4f9ff; font-style: italic; }
@media (max-width: 640px) {
  .nl-mast { flex-wrap: wrap; padding: 14px; }
  .nl-mast h1 { font-size: 22px; }
  .nl-controls { width: 100%; justify-content: flex-start; }
  .nl-glance { grid-template-columns: 1fr; margin: 14px 14px 0; }
  .nl-section { margin: 18px 14px 0; }
  .newsletter-btn .nl-text { display: none; }
}
:root[data-hub-theme="dark"] .newsletter-dialog { background: #141e2e; }
:root[data-hub-theme="dark"] .nl { color: #e3eefc; }
:root[data-hub-theme="dark"] .nl-mast,
:root[data-hub-theme="dark"] .nl-stat,
:root[data-hub-theme="dark"] .nl-item,
:root[data-hub-theme="dark"] .nl-feedback { background: #203149; border-color: #344a67; }
:root[data-hub-theme="dark"] .nl-mast h1,
:root[data-hub-theme="dark"] .nl-section h2,
:root[data-hub-theme="dark"] .nl-item-head strong,
:root[data-hub-theme="dark"] .nl-stat b,
:root[data-hub-theme="dark"] .nl-post h3 { color: #f0f6ff; }
:root[data-hub-theme="dark"] .nl-item p,
:root[data-hub-theme="dark"] .nl-post p,
:root[data-hub-theme="dark"] .nl-form label { color: #c9d9ee; }
:root[data-hub-theme="dark"] .nl-item.is-launch,
:root[data-hub-theme="dark"] .nl-stat-launch { background: #173a2a; }
:root[data-hub-theme="dark"] .nl-form textarea { background: #273b55; color: #e5efff; border-color: #425c7e; }
:root[data-hub-theme="dark"] .newsletter-btn { background: #1d3550; color: #cfe6ff; }
:root[data-hub-theme="dark"] .nl-reading { background: #3a3215 !important; }

/* v4.1 — email sign-in, password eye, people and passwords */
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap input {
  width: 100%;
  padding-right: 44px !important;
}
.pw-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5a7794;
  cursor: pointer;
}
.pw-eye:hover { background: #eef5fd; color: #0b4f86; }
.pw-eye .eye-slash { display: none; }
.pw-eye.is-showing .eye-slash { display: inline; }
.people-section .table-wrap { overflow-x: auto; }
.people-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.people-table th { text-align: left; font-size: 12px; color: #6c819c; font-weight: 700; padding: 6px 8px 6px 0; border-bottom: 1px solid #dae6f4; }
.people-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid #edf2f8; }
.people-table td.email { color: #4d6684; }
.people-table td.actions { text-align: right; white-space: nowrap; }
.people-table td.actions .textbtn { margin-left: 12px; }
.people-table .you { color: #6c819c; font-size: 12px; }
.danger-text { color: #b42331 !important; }
.people-panel { margin: 12px 0; padding: 12px; border: 1px solid #cfe3ff; border-radius: 10px; background: #f4f9ff; }
.people-panel h3, .people-tool h3 { margin: 0 0 8px; font-size: 14px; }
.people-tools { display: grid; gap: 14px; margin-top: 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form > input, .inline-form > select, .inline-form .pw-wrap { flex: 1 1 180px; }
.inline-form input, .inline-form select { border: 1px solid #d0dfef; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 14px; background: #fff; color: #183c65; width: 100%; }
.people-pending { padding: 8px 12px; border-radius: 8px; border: 1px solid #f5d6a8; background: #fff7ea; color: #8a5208; font-size: 13px; }
.people-msg { min-height: 1.2em; font-size: 13px; color: #17694a; margin: 10px 0 0; }
.people-msg.is-error { color: #b42331; }
:root[data-hub-theme="dark"] .pw-eye { color: #a9bbd3; }
:root[data-hub-theme="dark"] .pw-eye:hover { background: #2a4565; color: #e5efff; }
:root[data-hub-theme="dark"] .people-panel { background: #1d2d44; border-color: #3b5a80; }
:root[data-hub-theme="dark"] .inline-form input, :root[data-hub-theme="dark"] .inline-form select { background: #273b55; color: #e5efff; border-color: #425c7e; }
:root[data-hub-theme="dark"] .people-table th, :root[data-hub-theme="dark"] .people-table td { border-color: #344a67; }
:root[data-hub-theme="dark"] .people-table td.email { color: #b9cbe4; }

/* v4.2 — sidebar stays in view so the version is always visible at the bottom */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}
.side-version {
  padding: 4px 12px 0;
  font-size: 12px;
  color: #6e839b;
}
:root[data-hub-theme="dark"] .side-version {
  color: #a7b9d3;
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    height: auto;
    align-self: auto;
  }
}

/* v4.2.2 — bars that started before the chart: arrowhead at the left edge */
.gantt-from-earlier {
  position: absolute;
  left: -1px;
  top: 5.5px;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid var(--stage-none);
  cursor: help;
}
.gantt-from-earlier.stage-planning { border-right-color: var(--stage-planning); }
.gantt-from-earlier.stage-design { border-right-color: var(--stage-design); }
.gantt-from-earlier.stage-testing { border-right-color: var(--stage-testing); }
.gantt-from-earlier.stage-launch { border-right-color: var(--stage-launch); }

/* v4.3 — Updates page: team views, sign-offs, priorities */
.prio-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; vertical-align: -1px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 40, 70, 0.12); }
.prio-dot.big { width: 14px; height: 14px; }
.gantt-label-cell .prio-dot { margin-right: 6px; width: 9px; height: 9px; }
.product-item .prio-dot { width: 12px; height: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-row .ms-stage { grid-column: 2 / 3; grid-row: 2; }
.ms-row .ms-team { grid-column: 3 / 6; grid-row: 2; }
.gantt-label.is-done { text-decoration: none; opacity: 0.85; }
.gantt-mark.is-done { outline: 2px solid #16a34a; outline-offset: 1px; }
.focus-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 24px 14px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid #cfe3ff; font-size: 14px; color: #24466e; }
.focus-strip .bad, .team-summary .bad b, .team-card .bad { color: #dc2626; font-weight: 700; }
.updates-page { max-width: 1100px; }
.updates-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.updates-head p { margin: 2px 0 0; }
.view-tabs { display: inline-flex; padding: 4px; gap: 4px; background: #eef4fb; border: 1px solid #d5e3f2; border-radius: 12px; }
.view-tab { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font-weight: 700; color: #24466e; }
.view-tab.on { background: #1D7FC1; color: #fff; box-shadow: 0 2px 6px rgba(29, 127, 193, 0.3); }
.view-tab .mine { font-weight: 500; opacity: 0.85; font-size: 12px; }
.view-only { padding: 8px 12px; border-radius: 8px; background: #f4f8fc; border: 1px dashed #b9cde3; font-size: 14px; color: #3d5877; }
.pending-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #fff7ea; border: 1px solid #f5d6a8; color: #8a5208; font-size: 14px; }
.team-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ts { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f4; }
.ts b { display: block; font-size: 22px; color: #082A41; }
.ts span { font-size: 13px; color: #55718d; }
.ts.done b { color: #15803d; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d1e0ee; background: #fff; color: #24466e; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.seg-btn.on { border-color: #1D7FC1; background: #e7f2fc; color: #0b4f86; box-shadow: inset 0 0 0 1px #1D7FC1; }
.seg.compact .seg-btn { padding: 5px 7px; }
.filter-seg { margin: 4px 0 6px; }
.task-group { margin-top: 16px; }
.task-group h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: #4d6684; }
.task-group h3 .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #e2ecf7; color: #24466e; text-align: center; letter-spacing: 0; }
.task-group.g-overdue h3 { color: #b91c1c; }
.task-group.g-overdue h3 .count { background: #fde2e2; color: #b91c1c; }
.task { margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #dbe7f4; border-left: 6px solid var(--stage-none); }
.task.stage-planning { border-left-color: var(--stage-planning); }
.task.stage-design { border-left-color: var(--stage-design); }
.task.stage-testing { border-left-color: var(--stage-testing); }
.task.stage-launch { border-left-color: var(--stage-launch); }
.task.is-overdue { box-shadow: inset 0 0 0 1px #fca5a5; }
.task.is-done { opacity: 0.8; background: #f6fbf7; }
.task-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-head strong { font-size: 16px; color: #082A41; }
.task-when { margin-left: auto; font-size: 13px; color: #4d6684; font-weight: 600; }
.task-when.overdue, .smallnote.overdue { color: #dc2626; font-weight: 700; }
.task-done { margin-left: auto; font-size: 13px; color: #15803d; font-weight: 700; }
.task-action { margin: 8px 0 6px; font-size: 14px; line-height: 1.5; color: #2c4a6e; }
.task-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.task-buttons { display: inline-flex; gap: 10px; align-items: center; }
.empty-tasks { padding: 18px; border-radius: 10px; background: #fff; border: 1px dashed #c9d8e8; color: #55718d; }
.helping-list, .suggest-list { margin: 0; padding: 0; list-style: none; }
.helping-list li, .suggest-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid #e5edf6; font-size: 14px; }
.suggest-name { flex: 1; min-width: 200px; }
.team-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.team-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid #dbe7f4; background: #fff; text-align: left; color: #3d5877; font-size: 13px; }
.team-card b { font-size: 17px; color: #082A41; margin-bottom: 2px; }
.team-card:hover { border-color: #1D7FC1; }
.editor-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; }
.editor-table th { text-align: left; font-size: 12px; color: #55718d; padding: 8px; border-bottom: 1px solid #d5e3f2; background: #f6f9fd; }
.editor-table td { padding: 9px 8px; border-bottom: 1px solid #edf2f8; vertical-align: top; }
.sugg-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 999px; background: #f1f5fa; font-size: 12px; }
.high-warning { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid #f5b5b5; background: #fff1f1; color: #7f1d1d; }
.high-warning ul { margin: 6px 0; padding: 0; list-style: none; }
.high-warning li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.import-box { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f4; }
.import-box h3 { margin: 0 0 4px; font-size: 14px; }
@media (max-width: 760px) {
  .team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .focus-strip { margin: 0 10px 12px; }
  .seg.compact .seg-text { display: none; }
}
:root[data-hub-theme="dark"] .focus-strip, :root[data-hub-theme="dark"] .ts, :root[data-hub-theme="dark"] .task, :root[data-hub-theme="dark"] .team-card,
:root[data-hub-theme="dark"] .editor-table, :root[data-hub-theme="dark"] .import-box, :root[data-hub-theme="dark"] .empty-tasks, :root[data-hub-theme="dark"] .seg-btn { background: #203149; border-color: #344a67; color: #dce8fa; }
:root[data-hub-theme="dark"] .task-head strong, :root[data-hub-theme="dark"] .ts b, :root[data-hub-theme="dark"] .team-card b { color: #f0f6ff; }
:root[data-hub-theme="dark"] .task-action { color: #c9d9ee; }
:root[data-hub-theme="dark"] .view-tabs { background: #1b2a3f; border-color: #344a67; }
:root[data-hub-theme="dark"] .view-tab { color: #cfe3ff; }
:root[data-hub-theme="dark"] .editor-table th { background: #1b2a3f; border-color: #344a67; }
:root[data-hub-theme="dark"] .task.is-done { background: #183326; }
:root[data-hub-theme="dark"] .prio-dot { box-shadow: 0 0 0 2px #203149; }

/* v4.3.1 — Save at the top of the edit window; header stays visible while scrolling */
.sticky-head {
  position: sticky;
  top: -24px; /* the form has 24px padding */
  z-index: 6;
  margin: -24px -24px 16px;
  padding: 16px 24px 12px;
  background: #fff;
  border-bottom: 1px solid #e3ebf5;
}
.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.modal-head-actions .primary.small {
  padding: 8px 18px;
}
:root[data-hub-theme="dark"] .sticky-head {
  background: #203149;
  border-color: #344a67;
}

/* v4.3.2 — Helping with: where to sign off; catch-up */
.helping-note { margin: -2px 0 6px; }
.helping-list li { justify-content: space-between; }
.helping-text { flex: 1; min-width: 240px; }
.helping-actions { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.task.flash { animation: taskflash 2.2s ease-out; }
@keyframes taskflash { 0%, 40% { box-shadow: 0 0 0 4px #f59e0b; } 100% { box-shadow: none; } }
.catchup-box .inline-form input { max-width: 180px; }

/* v4.3.3 — quiet period: what is coming next */
.coming-next { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: #f4f9ff; border: 1px solid #cfe3ff; color: #24466e; font-size: 15px; line-height: 1.5; }
:root[data-hub-theme="dark"] .coming-next { background: #1d2d44; border-color: #3b5a80; color: #dce8fa; }

/* v4.5.1 — one-click priority buttons in the edit window */
.field-label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.prio-pick { display: flex; gap: 6px; }
.prio-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border: 1px solid #d0dfef; border-radius: 9px; background: #fff; color: #183c65; font-size: 14px; font-weight: 650; }
.prio-btn:hover { background: #f4f8fd; }
.prio-btn.on.prio-high { background: #e6f7ec; border-color: #16a34a; box-shadow: inset 0 0 0 1px #16a34a; color: #14532d; }
.prio-btn.on.prio-medium { background: #fff4e0; border-color: #f59e0b; box-shadow: inset 0 0 0 1px #f59e0b; color: #78350f; }
.prio-btn.on.prio-low { background: #fde8ea; border-color: #e0242c; box-shadow: inset 0 0 0 1px #e0242c; color: #7f1d1d; }
:root[data-hub-theme="dark"] .prio-btn { background: #273b55; border-color: #425c7e; color: #e5efff; }
:root[data-hub-theme="dark"] .prio-btn.on { color: #fff; background: #33516f; }

/* v4.6 — content file connection */
.setup-steps { margin: 8px 0; font-size: 14px; color: #3d5877; }
.setup-steps summary { cursor: pointer; font-weight: 650; color: #1D7FC1; }
.setup-steps ol { margin: 8px 0 0 18px; padding: 0; line-height: 1.6; }
.editor-bar .outline.small, .editor-bar .primary.small { white-space: nowrap; }

/* v4.7 — Documents library */
.docs-page { max-width: 1400px; }
.docs-head p { margin: 2px 0 12px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #9cc4ea; border-radius: 14px; background: #f4f9ff; color: #24466e; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.drop-zone strong { font-size: 16px; }
.drop-zone span { font-size: 13px; color: #55718d; }
.drop-zone.over { background: #e3f0fd; border-color: #1D7FC1; }
.drop-zone:focus-visible { outline: 3px solid #87bdff; outline-offset: 2px; }
.doc-folder { margin: 8px 0 0; font-size: 13px; color: #4d6684; }
.doc-folder.ok { color: #15803d; }
.doc-folder.warn { color: #b45309; }
.doc-status { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #effaf5; border: 1px solid #bfe8d6; color: #17694a; font-size: 13px; }
.docs-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.docs-filters { display: flex; gap: 6px; margin-bottom: 8px; }
.docs-filters input, .docs-filters select { flex: 1; min-width: 0; border: 1px solid #d0dfef; border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13px; background: #fff; color: #183c65; }
.doc-group { margin-bottom: 12px; }
.doc-group h3 { margin: 8px 0 4px; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: #4d6684; }
.doc-group h3 .count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e2ecf7; text-align: center; letter-spacing: 0; }
.doc-group ul { margin: 0; padding: 0; list-style: none; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.doc-row:hover { background: #f4f9ff; }
.doc-row.on { background: #e7f2fc; border-color: #9cc4ea; }
.doc-icon { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 40px; border-radius: 5px; font-size: 11px; font-weight: 800; color: #fff; background: #94a3b8; }
.doc-icon.doc-pdf { background: #d6243a; }
.doc-icon.doc-docx, .doc-icon.doc-doc { background: #2b5797; font-size: 15px; }
.doc-icon.big { width: 52px; height: 62px; font-size: 14px; }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-title { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; color: #082A41; font-size: 14px; overflow-wrap: anywhere; }
.doc-title:hover { color: #1D7FC1; text-decoration: underline; }
.doc-actions { display: inline-flex; gap: 10px; }
.doc-edit { margin: 4px 0 10px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #cfe3ff; }
.doc-edit .field input, .doc-edit .field select { width: 100%; border: 1px solid #d0dfef; border-radius: 8px; padding: 8px; font: inherit; font-size: 13px; }
.doc-edit-actions { display: flex; gap: 8px; align-items: center; }
.docs-viewer { position: sticky; top: 12px; min-height: 70vh; border-radius: 14px; background: #fff; border: 1px solid #dbe7f4; overflow: hidden; display: flex; flex-direction: column; }
.viewer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6c819c; padding: 30px; }
.viewer-empty .doc-icon { display: inline-grid; margin: 0 4px; }
.viewer-empty p { margin: 6px 0 0; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e3ebf5; }
.viewer-head > div { display: flex; flex-direction: column; min-width: 0; }
.viewer-actions { display: inline-flex; gap: 8px; align-items: center; }
.viewer-actions a { text-decoration: none; }
.viewer-body { flex: 1; min-height: 0; }
.viewer-msg { padding: 24px; margin: 0; }
.pdf-frame { display: block; width: 100%; height: calc(100vh - 140px); min-height: 520px; border: 0; }
.docx-wrap { height: calc(100vh - 140px); min-height: 520px; overflow: auto; background: #e9eef4; }
.docx-wrap .docx-wrapper { background: #e9eef4; padding: 20px 10px; }
.docx-wrap .docx-wrapper > section.docx { box-shadow: 0 2px 10px rgba(15, 40, 70, 0.15); margin-bottom: 20px; }
@media (max-width: 980px) { .docs-layout { grid-template-columns: 1fr; } .docs-viewer { position: static; } }
:root[data-hub-theme="dark"] .drop-zone { background: #1d2d44; border-color: #3b5a80; color: #dce8fa; }
:root[data-hub-theme="dark"] .docs-viewer, :root[data-hub-theme="dark"] .doc-edit { background: #203149; border-color: #344a67; }
:root[data-hub-theme="dark"] .doc-title { color: #f0f6ff; }
:root[data-hub-theme="dark"] .doc-row:hover, :root[data-hub-theme="dark"] .doc-row.on { background: #263c58; }
:root[data-hub-theme="dark"] .docs-filters input, :root[data-hub-theme="dark"] .docs-filters select { background: #273b55; color: #e5efff; border-color: #425c7e; }
