.tl-head {
  row-gap: 8px;
}
.tl-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tl-range-btn {
  gap: 8px;
}
.tl-lead {
  margin: -4px 0 0;
  max-width: 860px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.tl-seg button {
  min-width: 56px;
}
.page-head > .tl-seg {
  flex: 0 0 auto;
  min-width: 0;
}
@media (max-width: 899px) {
  .tl-head .tl-seg {
    flex: 1 1 auto;
  }
  .tl-head .tl-seg button {
    flex: 1 1 0;
  }
  .tl-range,
  .tl-range-btn {
    flex: 1 1 auto;
  }
  .tl-lead {
    font-size: 13px;
    line-height: 18px;
    margin: 0;
  }
}
.tl-pick-back {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(17, 24, 39, .45);
}
.tl-pick {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--hd-surface, #fff);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(16px + var(--cab-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow-y: auto;
}
.tl-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tl-pick h2 {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
}
.tl-pick p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.tl-pick p b {
  color: var(--ink);
}
.tl-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-presets .btn {
  border-radius: 999px;
  font-weight: 500;
}
.tl-years {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-year > b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-mgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.tl-mgrid button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--hd-surface, #fff);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.tl-mgrid button.in {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue-ink);
}
.tl-mgrid button.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}
.tl-pick-acts {
  display: flex;
  gap: 8px;
}
.tl-pick-acts .btn {
  flex: 1 1 0;
  min-height: 44px;
}
@media (min-width: 900px) {
  .tl-pick-back {
    background: transparent;
  }
  .tl-pick {
    position: absolute;
    left: 0;
    right: auto;
    bottom: auto;
    top: calc(100% + 6px);
    width: 520px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .16);
    padding: 20px;
    max-height: none;
  }
  .tl-years {
    flex-direction: row;
    gap: 16px;
  }
  .tl-year {
    flex: 1 1 0;
  }
  .tl-mgrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tl-pick-acts {
    justify-content: flex-end;
  }
  .tl-pick-acts .btn {
    flex: 0 0 auto;
    min-height: 40px;
  }
}
.tl-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}
.tl-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tl-sw {
  display: inline-block;
  width: 24px;
  height: 12px;
  border-radius: 4px;
}
.tl-sw.deal {
  background: var(--hd-blue-tint, #DCE7FF);
}
.tl-sw.ending {
  background: var(--hd-amber-tint2, #FEF3C7);
}
.tl-sw.free {
  background: var(--hd-green-tint, #E7F6EC);
  border: 1px dashed #8FD1A6;
}
.tl-sw.today {
  width: 2px;
  height: 14px;
  border-radius: 0;
  background: #DC2626;
}
.tl-gantt {
  background: var(--hd-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tl-gtitle {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-gtitle h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.tl-gtitle .tl-legend {
  font-size: 12px;
  gap: 6px 14px;
}
.tl-scroll {
  overflow-x: auto;
}
.tl-grid {
  display: grid;
  grid-template-columns: 216px minmax(calc(var(--n) * 58px), 1fr);
}
.tl-names {
  border-right: 1px solid var(--line);
  background: var(--hd-surface, #fff);
  position: sticky;
  left: 0;
  z-index: 2;
}
.tl-h {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted2);
  background: var(--hd-subtle, #F8F9FA);
}
.tl-name {
  height: 48px;
  border-top: 1px solid var(--line2);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  min-width: 0;
}
.tl-name:hover {
  background: var(--hd-subtle, #FAFBFC);
  color: var(--ink);
}
.tl-name b,
.tl-name small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-name b {
  font-size: 13px;
  font-weight: 600;
}
.tl-name small {
  font-size: 12px;
  color: var(--muted2);
}
.tl-f {
  height: 44px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--hd-subtle, #F8F9FA);
}
.tl-track {
  position: relative;
  background-image:
    linear-gradient(
      to right,
      var(--line2) 1px,
      transparent 1px);
  background-size: calc(100% / var(--n)) 100%;
}
.tl-mh,
.tl-counts {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 0;
}
.tl-mh span {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted2);
  white-space: nowrap;
}
.tl-mh span.now {
  color: var(--link);
  font-weight: 600;
}
.tl-counts span {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.tl-counts span.low {
  color: var(--amber);
}
.tl-line {
  position: relative;
  height: 48px;
  border-top: 1px solid var(--line2);
}
.tl-barx {
  position: absolute;
  top: 9px;
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  min-width: 6px;
}
.tl-barx.deal {
  background: var(--hd-blue-tint, #DCE7FF);
  color: var(--hd-blue-ink, #1E4FBF);
}
.tl-barx.ending {
  background: var(--hd-amber-tint2, #FEF3C7);
  color: var(--amber);
}
.tl-barx.done {
  background: var(--hd-subtle2, #F0F1F3);
  color: var(--muted2);
}
.tl-barx.free {
  background: var(--hd-green-tint, #E7F6EC);
  color: var(--hd-green-ink, #15803D);
  border: 1px dashed #8FD1A6;
}
.tl-barx:hover {
  filter: brightness(.97);
}
.tl-today {
  position: absolute;
  top: 40px;
  bottom: 44px;
  width: 2px;
  margin-left: -1px;
  background: #DC2626;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 899px) {
  .tl-grid {
    grid-template-columns: 124px minmax(calc(var(--n) * 58px), 1fr);
  }
  .tl-h,
  .tl-name,
  .tl-f {
    padding: 0 10px;
  }
  .tl-names .tl-h {
    font-size: 11px;
  }
  .tl-name {
    height: 52px;
  }
  .tl-name b {
    font-size: 12px;
    white-space: normal;
    line-height: 15px;
    max-height: 30px;
  }
  .tl-line {
    height: 52px;
  }
  .tl-barx {
    top: 11px;
  }
}
.tl-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.tl-main,
.tl-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tl-lhead {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.tl-lhead h2 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.tl-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.tl-kinds span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tl-kinds i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.tl-kinds .tag {
  border: 0;
  cursor: pointer;
  min-height: 0;
}
.tl-months {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-month {
  background: var(--hd-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px 6px;
  display: flex;
  flex-direction: column;
}
.tl-month.now {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue) inset;
}
.tl-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tl-mhead > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-mhead b {
  font-weight: 600;
}
.tl-mhead > span:first-child b {
  font-size: 16px;
  line-height: 24px;
}
.tl-mhead em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--link);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 2px 6px;
}
.tl-mhead .muted {
  font-size: 12px;
  white-space: nowrap;
}
.tl-mhead .muted b {
  color: var(--ink);
}
.tl-mbar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--hd-subtle2, #F0F1F3);
  margin: 8px 0 4px;
}
.tl-mbar span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #F5A91B;
}
.tl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line2);
}
.tl-mbar + .tl-row,
.tl-now + .tl-row {
  border-top: 0;
}
.tl-row.past {
  opacity: .6;
}
.tl-day {
  flex: 0 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-day b {
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
}
.tl-day small {
  font-size: 11px;
  line-height: 14px;
  color: var(--muted2);
}
.tl-row.past .tl-day b {
  color: var(--hd-muted2, #9AA0AB);
}
.tl-row.today .tl-day b {
  color: var(--link);
}
.tl-stripe {
  flex: 0 0 3px;
  align-self: stretch;
  border-radius: 2px;
}
.tl-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tl-badge {
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 6px;
}
.tl-title {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  color: var(--ink);
}
a.tl-title:hover {
  color: var(--link);
}
.tl-body small {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.tl-act {
  flex: 0 0 auto;
  align-self: center;
}
.tl-none {
  margin: 8px 0 10px;
}
.tl-now {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.tl-now span {
  font-size: 11px;
  font-weight: 700;
  color: var(--hd-red-ink, #DC2626);
  white-space: nowrap;
}
.tl-now i {
  flex: 1;
  height: 1.5px;
  background: #DC2626;
}
.tl-rest {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
.tl-rest > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tl-rest b {
  font-size: 16px;
  font-weight: 600;
}
.tl-rest small {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 899px) {
  .tl-lhead h2 {
    flex: 1 1 100%;
  }
  .tl-filters {
    flex: 1 1 100%;
  }
  .tl-filters .pick {
    flex: 1 1 0;
  }
  .tl-filters .pick select {
    width: 100%;
  }
  .tl-month {
    padding: 12px 14px 4px;
  }
  .tl-row {
    display: grid;
    grid-template-columns: 34px 3px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
  }
  .tl-act {
    grid-column: 3;
    justify-self: start;
    align-self: start;
  }
  .tl-rest {
    padding: 12px 14px;
  }
}
.tl-side-card {
  gap: 10px;
}
.tl-side-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.tl-side-card .card-head .btn {
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
}
.tl-soon em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  background: var(--hd-subtle2, #F0F1F3);
  border-radius: 999px;
  padding: 1px 8px;
}
.tl-rem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line2);
  background: transparent;
  text-align: left;
  color: var(--ink);
  width: 100%;
}
.tl-rem:first-of-type {
  border-top: 0;
}
.tl-rem:hover {
  color: var(--ink);
}
.tl-rem:hover b {
  color: var(--link);
}
.tl-ric {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tl-ric.red {
  background: var(--red-soft);
  color: var(--red);
}
.tl-ric.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.tl-ric.blue {
  background: var(--blue-soft);
  color: var(--link);
}
.tl-rtext {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-rtext b {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
}
.tl-rtext small {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.tl-rem em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  color: var(--muted2);
}
.tl-foot {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line2);
}
.tl-fp {
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-fp > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-fp b {
  font-size: 14px;
  font-weight: 600;
}
.tl-fp b a {
  color: var(--ink);
}
.tl-fp b a:hover {
  color: var(--link);
}
.tl-fp small {
  font-size: 13px;
  color: var(--muted);
}
.tl-fp small.ok {
  color: var(--hd-green-ink, #15803D);
}
.tl-fp.warn {
  border-color: var(--hd-amber-line, #FCD9A0);
  background: var(--hd-amber-tint, #FFFBEB);
}
.tl-fp.warn small {
  color: var(--hd-orange-ink, #92400E);
}
.tl-soon-tag {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
}
.ev-tools .search {
  max-width: none;
}
.ev-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}
.ev-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ev-day {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
}
.ev-dlabel {
  align-self: start;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 6px 8px;
}
.ev-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ev-card {
  background: var(--hd-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 44px 22px minmax(0, 1fr) 170px;
  gap: 4px 10px;
}
.ev-card time {
  font-size: 13px;
  color: var(--muted2);
  padding-top: 1px;
}
.ev-ico {
  padding-top: 1px;
  display: inline-flex;
}
.ev-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ev-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}
.ev-text {
  font-size: 14px;
  line-height: 20px;
}
.ev-quote {
  font-size: 14px;
  line-height: 22px;
  padding-left: 10px;
  border-left: 3px solid var(--line);
  quotes: "«" "»";
}
.ev-crumb {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}
.ev-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.ev-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.ev-ava {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ev-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ev-link:hover {
  color: var(--blue-ink);
}
.ev-foot {
  margin: 4px 0 0;
  text-align: center;
}
.ev-cats {
  gap: 6px;
  position: sticky;
  top: 16px;
}
.ev-cats > b {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ev-cats button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.ev-cats button:hover {
  background: var(--hd-subtle, #F5F6F8);
}
.ev-cats button[aria-pressed=true] {
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 600;
}
.ev-cats button i {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 999px;
}
.ev-cats button span {
  flex: 1 1 auto;
}
.ev-cats button b {
  font-weight: 500;
  color: var(--muted);
}
.ev-cats p {
  margin: 4px 0 0;
}
.ev-dh {
  margin: 4px 0 -4px;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 899px) {
  .ev-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
    gap: 10px;
  }
  .ev-ico {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--hd-subtle, #F5F6F8);
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .ev-hrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .ev-hrow time {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--muted2);
  }
  .ev-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .ev-btns .btn {
    min-height: 40px;
    font-size: 14px;
  }
  .ev-tools .pick {
    flex: 1 1 0;
  }
  .ev-tools .search {
    flex: 1 1 100%;
  }
}
.ev-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 1px;
}
.ohist-wrap {
  border: 0;
  border-radius: 0;
}
.otable.ohist td.nowrap {
  white-space: nowrap;
  color: var(--muted);
}
.ohist-list {
  display: flex;
  flex-direction: column;
}
.ohist-list > div {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line2);
}
.ohist-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.ohist-list .ev-dot {
  margin-top: 6px;
  flex: 0 0 8px;
}
.ohist-list span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ohist-list b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.ohist-list small {
  font-size: 12px;
  color: var(--muted2);
}
.ohist-list p {
  margin: 8px 0 0;
}
.tl-months .state,
.ev-list .state {
  min-height: 0;
  padding: 32px 16px;
}
.tl-soon-pill {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  background: var(--hd-subtle2, #F0F1F3);
  border-radius: 999px;
  padding: 1px 8px;
}
.tl-kind-note {
  font-size: 13px;
  color: var(--muted2);
}
